diff --git a/.github/workflows/full.yml b/.github/workflows/full.yml index 1d9454c4..7d03cad8 100644 --- a/.github/workflows/full.yml +++ b/.github/workflows/full.yml @@ -243,6 +243,9 @@ jobs: - name: Running OPA tests run: | + python cvat/apps/iam/rules/tests/generate_tests.py \ + --output-dir cvat/apps/iam/rules/ + curl -L -o opa https://openpolicyagent.org/downloads/v0.34.2/opa_linux_amd64_static chmod +x ./opa ./opa test cvat/apps/iam/rules diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c870f3a4..6e4c1091 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -209,6 +209,9 @@ jobs: - name: Running OPA tests run: | + python cvat/apps/iam/rules/tests/generate_tests.py \ + --output-dir cvat/apps/iam/rules/ + curl -L -o opa https://openpolicyagent.org/downloads/v0.34.2/opa_linux_amd64_static chmod +x ./opa ./opa test cvat/apps/iam/rules diff --git a/cvat/apps/iam/rules/.gitignore b/cvat/apps/iam/rules/.gitignore new file mode 100644 index 00000000..b29dc890 --- /dev/null +++ b/cvat/apps/iam/rules/.gitignore @@ -0,0 +1,2 @@ +# Autogenerated files +/*_test.gen.rego diff --git a/cvat/apps/iam/rules/analytics_test.gen.rego b/cvat/apps/iam/rules/analytics_test.gen.rego deleted file mode 100644 index 5278e321..00000000 --- a/cvat/apps/iam/rules/analytics_test.gen.rego +++ /dev/null @@ -1,404 +0,0 @@ -package analytics - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": null}, "resource": {"visibility": "public"}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": null}, "resource": {"visibility": "private"}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": null}, "resource": {"visibility": "public"}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": null}, "resource": {"visibility": "private"}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": null}, "resource": {"visibility": "public"}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": null}, "resource": {"visibility": "private"}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": null}, "resource": {"visibility": "public"}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": null}, "resource": {"visibility": "private"}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": null}, "resource": {"visibility": "public"}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": null}, "resource": {"visibility": "private"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"visibility": "public"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"visibility": "private"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"visibility": "public"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"visibility": "private"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"visibility": "public"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"visibility": "private"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"visibility": "public"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"visibility": "private"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"visibility": "public"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"visibility": "private"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"visibility": "public"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER { - not allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"visibility": "private"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"visibility": "public"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER { - not allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"visibility": "private"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"visibility": "public"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR { - not allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"visibility": "private"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"visibility": "public"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER { - not allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"visibility": "private"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"visibility": "public"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"visibility": "private"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER { - not allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"visibility": "public"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER { - not allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"visibility": "private"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER { - not allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"visibility": "public"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER { - not allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"visibility": "private"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR { - not allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"visibility": "public"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR { - not allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"visibility": "private"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER { - not allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"visibility": "public"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER { - not allow with input as {"scope": "view", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"visibility": "private"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"visibility": "public"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"visibility": "private"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER { - not allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"visibility": "public"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER { - not allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"visibility": "private"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER { - not allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"visibility": "public"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER { - not allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"visibility": "private"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR { - not allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"visibility": "public"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR { - not allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"visibility": "private"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER { - not allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"visibility": "public"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER { - not allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"visibility": "private"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"visibility": "public"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"visibility": "private"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER { - not allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"visibility": "public"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER { - not allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"visibility": "private"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER { - not allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"visibility": "public"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER { - not allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"visibility": "private"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR { - not allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"visibility": "public"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR { - not allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"visibility": "private"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER { - not allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"visibility": "public"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER { - not allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"visibility": "private"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"visibility": "public"}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"visibility": "private"}} -} - - - -# analytics_test.gen.py -# # Copyright (C) 2022 Intel Corporation -# # -# # SPDX-License-Identifier: MIT -# -# import csv -# import json -# import random -# import sys -# import os -# from itertools import product -# from tkinter.messagebox import NO -# -# NAME = 'analytics' -# -# def read_rules(name): -# rules = [] -# with open(os.path.join(sys.argv[1], f'{name}.csv')) as f: -# reader = csv.DictReader(f) -# for row in reader: -# row = {k.lower():v.lower().replace('n/a','na') for k,v in row.items()} -# row['limit'] = row['limit'].replace('none', 'None') -# found = False -# for col,val in row.items(): -# if col in ["limit", "method", "url"]: -# continue -# complex_val = [v.strip() for v in val.split(',')] -# if len(complex_val) > 1: -# found = True -# for item in complex_val: -# new_row = row.copy() -# new_row[col] = item -# rules.append(new_row) -# if not found: -# rules.append(row) -# -# return rules -# -# simple_rules = read_rules(NAME) -# -# SCOPES = {rule['scope'] for rule in simple_rules} -# CONTEXTS = ['sandbox', 'organization'] -# OWNERSHIPS = ['none'] -# GROUPS = ['admin', 'business', 'user', 'worker', 'none'] -# ORG_ROLES = ['owner', 'maintainer', 'supervisor', 'worker', None] -# -# def RESOURCES(scope): -# if scope == 'view': -# return [ -# {'visibility': 'public'}, -# {'visibility': 'private'}, -# ] -# -# return [None] -# -# def eval_rule(scope, context, ownership, privilege, membership, data): -# if privilege == 'admin': -# return True -# -# rules = list(filter(lambda r: scope == r['scope'], simple_rules)) -# rules = list(filter(lambda r: r['context'] == 'na' or context == r['context'], rules)) -# rules = list(filter(lambda r: r['ownership'] == 'na' or ownership == r['ownership'], rules)) -# rules = list(filter(lambda r: r['membership'] == 'na' or -# ORG_ROLES.index(membership) <= ORG_ROLES.index(r['membership']), rules)) -# rules = list(filter(lambda r: GROUPS.index(privilege) <= GROUPS.index(r['privilege']), rules)) -# resource = data['resource'] -# rules = list(filter(lambda r: eval(r['limit'], {'resource': resource}), rules)) -# -# return bool(rules) -# -# def get_data(scope, context, ownership, privilege, membership, resource): -# data = { -# "scope": scope, -# "auth": { -# "user": { "id": random.randrange(0,100), "privilege": privilege }, -# "organization": { -# "id": random.randrange(100,200), -# "owner": { "id": random.randrange(200, 300) }, -# "user": { "role": membership } -# } if context == 'organization' else None -# }, -# "resource": resource -# } -# -# user_id = data['auth']['user']['id'] -# if context == 'organization': -# if data['auth']['organization']['user']['role'] == 'owner': -# data['auth']['organization']['owner']['id'] = user_id -# -# return data -# -# def _get_name(prefix, **kwargs): -# name = prefix -# for k,v in kwargs.items(): -# if k == 'resource': -# continue -# prefix = '_' + str(k) -# if isinstance(v, dict): -# if 'id' in v: -# v = v.copy() -# v.pop('id') -# if v: -# name += _get_name(prefix, **v) -# else: -# name += ''.join(map(lambda c: c if c.isalnum() else {'@':'_IN_'}.get(c, '_'), -# f'{prefix}_{str(v).upper()}')) -# -# return name -# -# def get_name(scope, context, ownership, privilege, membership, resource): -# return _get_name('test', **locals()) -# -# def is_valid(scope, context, ownership, privilege, membership, resource): -# if context == "sandbox" and membership: -# return False -# if scope == 'list' and ownership != 'None': -# return False -# -# return True -# -# def gen_test_rego(name): -# with open(f'{name}_test.gen.rego', 'wt') as f: -# f.write(f'package {name}\n\n') -# for scope, context, ownership, privilege, membership in product( -# SCOPES, CONTEXTS, OWNERSHIPS, GROUPS, ORG_ROLES): -# for resource in RESOURCES(scope): -# if not is_valid(scope, context, ownership, privilege, membership, resource): -# continue -# -# data = get_data(scope, context, ownership, privilege, membership, resource) -# test_name = get_name(scope, context, ownership, privilege, membership, resource) -# result = eval_rule(scope, context, ownership, privilege, membership, data) -# f.write('{test_name} {{\n {allow} with input as {data}\n}}\n\n'.format( -# test_name=test_name, allow='allow' if result else 'not allow', -# data=json.dumps(data))) -# -# # Write the script which is used to generate the file -# with open(sys.argv[0]) as this_file: -# f.write(f'\n\n# {os.path.split(sys.argv[0])[1]}\n') -# for line in this_file: -# if line.strip(): -# f.write(f'# {line}') -# else: -# f.write(f'#\n') -# -# # Write rules which are used to generate the file -# with open(os.path.join(sys.argv[1], f'{name}.csv')) as rego_file: -# f.write(f'\n\n# {name}.csv\n') -# for line in rego_file: -# if line.strip(): -# f.write(f'# {line}') -# else: -# f.write(f'#\n') -# -# gen_test_rego(NAME) - -# analytics.csv -# Scope,Resource,Context,Ownership,Limit,Method,URL,Privilege,Membership -# view,Analytics,N/A,N/A,resource['visibility']=='public',GET,"/analytics",business,N/A -# view,Analytics,N/A,N/A,,GET,"/analytics",admin,N/A diff --git a/cvat/apps/iam/rules/cloudstorages_test.gen.rego b/cvat/apps/iam/rules/cloudstorages_test.gen.rego deleted file mode 100644 index 77c9ee70..00000000 --- a/cvat/apps/iam/rules/cloudstorages_test.gen.rego +++ /dev/null @@ -1,2405 +0,0 @@ -package cloudstorages - -test_scope_LIST_CONTENT_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": null}, "resource": {"id": 305, "owner": {"id": 10}, "organization": {"id": 541}, "user": {"num_resources": 0}}} -} - -test_scope_LIST_CONTENT_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": null}, "resource": {"id": 373, "owner": {"id": 39}, "organization": {"id": 550}, "user": {"num_resources": 3}}} -} - -test_scope_LIST_CONTENT_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": null}, "resource": {"id": 350, "owner": {"id": 25}, "organization": {"id": 580}, "user": {"num_resources": 0}}} -} - -test_scope_LIST_CONTENT_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": null}, "resource": {"id": 304, "owner": {"id": 56}, "organization": {"id": 553}, "user": {"num_resources": 0}}} -} - -test_scope_LIST_CONTENT_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": null}, "resource": {"id": 316, "owner": {"id": 73}, "organization": {"id": 518}, "user": {"num_resources": 0}}} -} - -test_scope_LIST_CONTENT_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": null}, "resource": {"id": 309, "owner": {"id": 445}, "organization": {"id": 545}, "user": {"num_resources": 8}}} -} - -test_scope_LIST_CONTENT_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": null}, "resource": {"id": 394, "owner": {"id": 421}, "organization": {"id": 516}, "user": {"num_resources": 4}}} -} - -test_scope_LIST_CONTENT_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": null}, "resource": {"id": 381, "owner": {"id": 420}, "organization": {"id": 503}, "user": {"num_resources": 3}}} -} - -test_scope_LIST_CONTENT_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": null}, "resource": {"id": 359, "owner": {"id": 421}, "organization": {"id": 575}, "user": {"num_resources": 1}}} -} - -test_scope_LIST_CONTENT_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": null}, "resource": {"id": 326, "owner": {"id": 494}, "organization": {"id": 516}, "user": {"num_resources": 5}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 333, "owner": {"id": 69}, "organization": {"id": 586}, "user": {"num_resources": 5}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 70}, "organization": {"id": 112}, "user": {"num_resources": 6}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "owner": {"id": 53}, "organization": {"id": 559}, "user": {"num_resources": 0}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "owner": {"id": 93}, "organization": {"id": 119}, "user": {"num_resources": 5}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 343, "owner": {"id": 51}, "organization": {"id": 595}, "user": {"num_resources": 7}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 16}, "organization": {"id": 101}, "user": {"num_resources": 4}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 317, "owner": {"id": 95}, "organization": {"id": 556}, "user": {"num_resources": 0}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 372, "owner": {"id": 52}, "organization": {"id": 163}, "user": {"num_resources": 9}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 305, "owner": {"id": 70}, "organization": {"id": 542}, "user": {"num_resources": 6}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 327, "owner": {"id": 76}, "organization": {"id": 105}, "user": {"num_resources": 5}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 308, "owner": {"id": 71}, "organization": {"id": 528}, "user": {"num_resources": 8}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 384, "owner": {"id": 61}, "organization": {"id": 146}, "user": {"num_resources": 1}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 18}, "organization": {"id": 522}, "user": {"num_resources": 7}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 46}, "organization": {"id": 106}, "user": {"num_resources": 8}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "owner": {"id": 51}, "organization": {"id": 582}, "user": {"num_resources": 3}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 66}, "organization": {"id": 172}, "user": {"num_resources": 2}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 384, "owner": {"id": 84}, "organization": {"id": 593}, "user": {"num_resources": 7}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 379, "owner": {"id": 68}, "organization": {"id": 106}, "user": {"num_resources": 0}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 355, "owner": {"id": 6}, "organization": {"id": 596}, "user": {"num_resources": 4}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 365, "owner": {"id": 41}, "organization": {"id": 114}, "user": {"num_resources": 3}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 380, "owner": {"id": 35}, "organization": {"id": 556}, "user": {"num_resources": 8}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 349, "owner": {"id": 32}, "organization": {"id": 132}, "user": {"num_resources": 4}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "owner": {"id": 45}, "organization": {"id": 588}, "user": {"num_resources": 9}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "owner": {"id": 67}, "organization": {"id": 152}, "user": {"num_resources": 8}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "owner": {"id": 10}, "organization": {"id": 586}, "user": {"num_resources": 5}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "owner": {"id": 22}, "organization": {"id": 168}, "user": {"num_resources": 6}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 351, "owner": {"id": 36}, "organization": {"id": 594}, "user": {"num_resources": 6}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 316, "owner": {"id": 42}, "organization": {"id": 130}, "user": {"num_resources": 3}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 371, "owner": {"id": 4}, "organization": {"id": 557}, "user": {"num_resources": 9}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 325, "owner": {"id": 7}, "organization": {"id": 189}, "user": {"num_resources": 6}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 88}, "organization": {"id": 513}, "user": {"num_resources": 4}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 348, "owner": {"id": 28}, "organization": {"id": 142}, "user": {"num_resources": 5}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "owner": {"id": 30}, "organization": {"id": 506}, "user": {"num_resources": 4}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "owner": {"id": 31}, "organization": {"id": 110}, "user": {"num_resources": 6}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "owner": {"id": 5}, "organization": {"id": 515}, "user": {"num_resources": 3}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "owner": {"id": 23}, "organization": {"id": 107}, "user": {"num_resources": 3}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 311, "owner": {"id": 27}, "organization": {"id": 578}, "user": {"num_resources": 1}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 368, "owner": {"id": 12}, "organization": {"id": 109}, "user": {"num_resources": 5}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 63}, "organization": {"id": 513}, "user": {"num_resources": 9}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 337, "owner": {"id": 51}, "organization": {"id": 146}, "user": {"num_resources": 1}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 369, "owner": {"id": 37}, "organization": {"id": 548}, "user": {"num_resources": 6}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 46}, "organization": {"id": 156}, "user": {"num_resources": 0}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "owner": {"id": 30}, "organization": {"id": 520}, "user": {"num_resources": 1}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "owner": {"id": 8}, "organization": {"id": 111}, "user": {"num_resources": 3}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "owner": {"id": 83}, "organization": {"id": 554}, "user": {"num_resources": 5}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "owner": {"id": 82}, "organization": {"id": 156}, "user": {"num_resources": 3}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 10}, "organization": {"id": 540}, "user": {"num_resources": 9}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 397, "owner": {"id": 92}, "organization": {"id": 194}, "user": {"num_resources": 4}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 373, "owner": {"id": 34}, "organization": {"id": 538}, "user": {"num_resources": 3}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 322, "owner": {"id": 77}, "organization": {"id": 196}, "user": {"num_resources": 1}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 408}, "organization": {"id": 543}, "user": {"num_resources": 3}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 327, "owner": {"id": 409}, "organization": {"id": 110}, "user": {"num_resources": 7}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 483}, "organization": {"id": 511}, "user": {"num_resources": 9}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "owner": {"id": 449}, "organization": {"id": 107}, "user": {"num_resources": 0}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 465}, "organization": {"id": 531}, "user": {"num_resources": 8}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 405}, "organization": {"id": 114}, "user": {"num_resources": 2}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 424}, "organization": {"id": 585}, "user": {"num_resources": 8}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 338, "owner": {"id": 467}, "organization": {"id": 177}, "user": {"num_resources": 4}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 420}, "organization": {"id": 550}, "user": {"num_resources": 6}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 319, "owner": {"id": 468}, "organization": {"id": 198}, "user": {"num_resources": 3}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 306, "owner": {"id": 498}, "organization": {"id": 517}, "user": {"num_resources": 3}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 345, "owner": {"id": 497}, "organization": {"id": 112}, "user": {"num_resources": 7}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 372, "owner": {"id": 492}, "organization": {"id": 503}, "user": {"num_resources": 6}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "owner": {"id": 431}, "organization": {"id": 165}, "user": {"num_resources": 5}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "owner": {"id": 413}, "organization": {"id": 509}, "user": {"num_resources": 6}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "owner": {"id": 467}, "organization": {"id": 151}, "user": {"num_resources": 3}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 317, "owner": {"id": 429}, "organization": {"id": 593}, "user": {"num_resources": 7}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 427}, "organization": {"id": 193}, "user": {"num_resources": 9}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 399, "owner": {"id": 489}, "organization": {"id": 556}, "user": {"num_resources": 8}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 344, "owner": {"id": 426}, "organization": {"id": 147}, "user": {"num_resources": 5}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 365, "owner": {"id": 487}, "organization": {"id": 515}, "user": {"num_resources": 8}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 19, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 374, "owner": {"id": 409}, "organization": {"id": 162}, "user": {"num_resources": 6}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "owner": {"id": 495}, "organization": {"id": 524}, "user": {"num_resources": 3}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "owner": {"id": 448}, "organization": {"id": 163}, "user": {"num_resources": 6}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 448}, "organization": {"id": 501}, "user": {"num_resources": 0}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "owner": {"id": 453}, "organization": {"id": 104}, "user": {"num_resources": 7}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 419}, "organization": {"id": 569}, "user": {"num_resources": 7}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 419}, "organization": {"id": 194}, "user": {"num_resources": 5}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 356, "owner": {"id": 489}, "organization": {"id": 516}, "user": {"num_resources": 4}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 319, "owner": {"id": 401}, "organization": {"id": 100}, "user": {"num_resources": 1}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 314, "owner": {"id": 432}, "organization": {"id": 571}, "user": {"num_resources": 0}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 380, "owner": {"id": 420}, "organization": {"id": 130}, "user": {"num_resources": 5}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "owner": {"id": 466}, "organization": {"id": 554}, "user": {"num_resources": 0}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "owner": {"id": 452}, "organization": {"id": 129}, "user": {"num_resources": 5}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "owner": {"id": 413}, "organization": {"id": 549}, "user": {"num_resources": 6}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "owner": {"id": 424}, "organization": {"id": 160}, "user": {"num_resources": 2}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 325, "owner": {"id": 493}, "organization": {"id": 550}, "user": {"num_resources": 1}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 426}, "organization": {"id": 129}, "user": {"num_resources": 2}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 328, "owner": {"id": 434}, "organization": {"id": 598}, "user": {"num_resources": 3}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 327, "owner": {"id": 472}, "organization": {"id": 104}, "user": {"num_resources": 8}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 304, "owner": {"id": 486}, "organization": {"id": 593}, "user": {"num_resources": 2}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 335, "owner": {"id": 426}, "organization": {"id": 129}, "user": {"num_resources": 7}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "owner": {"id": 477}, "organization": {"id": 571}, "user": {"num_resources": 3}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 419}, "organization": {"id": 119}, "user": {"num_resources": 8}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 410}, "organization": {"id": 579}, "user": {"num_resources": 2}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 499}, "organization": {"id": 110}, "user": {"num_resources": 2}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 392, "owner": {"id": 480}, "organization": {"id": 533}, "user": {"num_resources": 3}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 391, "owner": {"id": 444}, "organization": {"id": 118}, "user": {"num_resources": 5}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 312, "owner": {"id": 454}, "organization": {"id": 501}, "user": {"num_resources": 3}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 428}, "organization": {"id": 168}, "user": {"num_resources": 1}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": null}, "resource": {"id": 354, "owner": {"id": 59}, "organization": {"id": 578}, "user": {"num_resources": 1}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": null}, "resource": {"id": 314, "owner": {"id": 59}, "organization": {"id": 544}, "user": {"num_resources": 3}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": null}, "resource": {"id": 374, "owner": {"id": 88}, "organization": {"id": 571}, "user": {"num_resources": 4}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "worker"}, "organization": null}, "resource": {"id": 380, "owner": {"id": 29}, "organization": {"id": 574}, "user": {"num_resources": 0}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": null}, "resource": {"id": 346, "owner": {"id": 98}, "organization": {"id": 594}, "user": {"num_resources": 9}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": null}, "resource": {"id": 367, "owner": {"id": 453}, "organization": {"id": 551}, "user": {"num_resources": 0}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": null}, "resource": {"id": 331, "owner": {"id": 434}, "organization": {"id": 512}, "user": {"num_resources": 5}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": null}, "resource": {"id": 369, "owner": {"id": 449}, "organization": {"id": 536}, "user": {"num_resources": 4}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": null}, "resource": {"id": 375, "owner": {"id": 461}, "organization": {"id": 556}, "user": {"num_resources": 2}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": null}, "resource": {"id": 303, "owner": {"id": 479}, "organization": {"id": 534}, "user": {"num_resources": 3}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 351, "owner": {"id": 43}, "organization": {"id": 529}, "user": {"num_resources": 7}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 371, "owner": {"id": 36}, "organization": {"id": 152}, "user": {"num_resources": 9}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 372, "owner": {"id": 92}, "organization": {"id": 510}, "user": {"num_resources": 2}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 389, "owner": {"id": 40}, "organization": {"id": 193}, "user": {"num_resources": 7}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 6}, "organization": {"id": 527}, "user": {"num_resources": 3}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 324, "owner": {"id": 24}, "organization": {"id": 166}, "user": {"num_resources": 5}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 373, "owner": {"id": 70}, "organization": {"id": 588}, "user": {"num_resources": 9}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 337, "owner": {"id": 90}, "organization": {"id": 140}, "user": {"num_resources": 6}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"id": 377, "owner": {"id": 27}, "organization": {"id": 538}, "user": {"num_resources": 5}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 352, "owner": {"id": 51}, "organization": {"id": 155}, "user": {"num_resources": 1}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 310, "owner": {"id": 6}, "organization": {"id": 525}, "user": {"num_resources": 7}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 89}, "organization": {"id": 154}, "user": {"num_resources": 1}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "owner": {"id": 80}, "organization": {"id": 567}, "user": {"num_resources": 4}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 36}, "organization": {"id": 137}, "user": {"num_resources": 7}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "owner": {"id": 14}, "organization": {"id": 527}, "user": {"num_resources": 9}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "owner": {"id": 47}, "organization": {"id": 168}, "user": {"num_resources": 5}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 383, "owner": {"id": 13}, "organization": {"id": 575}, "user": {"num_resources": 7}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 312, "owner": {"id": 74}, "organization": {"id": 103}, "user": {"num_resources": 8}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 313, "owner": {"id": 21}, "organization": {"id": 574}, "user": {"num_resources": 8}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 317, "owner": {"id": 43}, "organization": {"id": 157}, "user": {"num_resources": 7}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 59}, "organization": {"id": 542}, "user": {"num_resources": 3}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 74}, "organization": {"id": 148}, "user": {"num_resources": 3}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 27}, "organization": {"id": 525}, "user": {"num_resources": 0}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 8}, "organization": {"id": 140}, "user": {"num_resources": 5}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 65}, "organization": {"id": 502}, "user": {"num_resources": 3}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "owner": {"id": 38}, "organization": {"id": 176}, "user": {"num_resources": 7}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 328, "owner": {"id": 99}, "organization": {"id": 534}, "user": {"num_resources": 8}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 329, "owner": {"id": 80}, "organization": {"id": 104}, "user": {"num_resources": 0}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 18}, "organization": {"id": 590}, "user": {"num_resources": 1}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 376, "owner": {"id": 37}, "organization": {"id": 166}, "user": {"num_resources": 3}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 325, "owner": {"id": 39}, "organization": {"id": 564}, "user": {"num_resources": 7}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 300, "owner": {"id": 6}, "organization": {"id": 177}, "user": {"num_resources": 7}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "owner": {"id": 46}, "organization": {"id": 582}, "user": {"num_resources": 0}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 51}, "organization": {"id": 170}, "user": {"num_resources": 7}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "owner": {"id": 26}, "organization": {"id": 571}, "user": {"num_resources": 5}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 87}, "organization": {"id": 119}, "user": {"num_resources": 1}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 366, "owner": {"id": 0}, "organization": {"id": 559}, "user": {"num_resources": 4}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 98}, "organization": {"id": 191}, "user": {"num_resources": 4}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 98}, "organization": {"id": 599}, "user": {"num_resources": 8}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 321, "owner": {"id": 18}, "organization": {"id": 159}, "user": {"num_resources": 5}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 71}, "organization": {"id": 576}, "user": {"num_resources": 9}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 311, "owner": {"id": 94}, "organization": {"id": 136}, "user": {"num_resources": 5}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "owner": {"id": 13}, "organization": {"id": 574}, "user": {"num_resources": 5}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 94}, "organization": {"id": 183}, "user": {"num_resources": 1}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "owner": {"id": 30}, "organization": {"id": 594}, "user": {"num_resources": 7}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "owner": {"id": 84}, "organization": {"id": 118}, "user": {"num_resources": 2}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 388, "owner": {"id": 52}, "organization": {"id": 552}, "user": {"num_resources": 4}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 342, "owner": {"id": 15}, "organization": {"id": 193}, "user": {"num_resources": 0}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 309, "owner": {"id": 95}, "organization": {"id": 517}, "user": {"num_resources": 9}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 79}, "organization": {"id": 198}, "user": {"num_resources": 1}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 322, "owner": {"id": 460}, "organization": {"id": 549}, "user": {"num_resources": 9}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 382, "owner": {"id": 405}, "organization": {"id": 146}, "user": {"num_resources": 3}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "owner": {"id": 496}, "organization": {"id": 547}, "user": {"num_resources": 2}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 401}, "organization": {"id": 160}, "user": {"num_resources": 3}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "owner": {"id": 441}, "organization": {"id": 532}, "user": {"num_resources": 7}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 371, "owner": {"id": 464}, "organization": {"id": 199}, "user": {"num_resources": 1}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 476}, "organization": {"id": 573}, "user": {"num_resources": 8}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 414}, "organization": {"id": 186}, "user": {"num_resources": 7}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 315, "owner": {"id": 413}, "organization": {"id": 558}, "user": {"num_resources": 7}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 369, "owner": {"id": 480}, "organization": {"id": 114}, "user": {"num_resources": 6}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 333, "owner": {"id": 498}, "organization": {"id": 521}, "user": {"num_resources": 5}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 418}, "organization": {"id": 150}, "user": {"num_resources": 5}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 453}, "organization": {"id": 518}, "user": {"num_resources": 0}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 409}, "organization": {"id": 180}, "user": {"num_resources": 1}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 493}, "organization": {"id": 558}, "user": {"num_resources": 0}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 371, "owner": {"id": 407}, "organization": {"id": 100}, "user": {"num_resources": 7}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 472}, "organization": {"id": 508}, "user": {"num_resources": 0}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 304, "owner": {"id": 472}, "organization": {"id": 129}, "user": {"num_resources": 8}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 328, "owner": {"id": 439}, "organization": {"id": 519}, "user": {"num_resources": 6}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 474}, "organization": {"id": 103}, "user": {"num_resources": 8}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 395, "owner": {"id": 446}, "organization": {"id": 547}, "user": {"num_resources": 6}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 432}, "organization": {"id": 109}, "user": {"num_resources": 7}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "owner": {"id": 436}, "organization": {"id": 577}, "user": {"num_resources": 5}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "owner": {"id": 413}, "organization": {"id": 126}, "user": {"num_resources": 8}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "owner": {"id": 493}, "organization": {"id": 549}, "user": {"num_resources": 0}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "owner": {"id": 466}, "organization": {"id": 133}, "user": {"num_resources": 8}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 398, "owner": {"id": 414}, "organization": {"id": 505}, "user": {"num_resources": 7}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 369, "owner": {"id": 477}, "organization": {"id": 100}, "user": {"num_resources": 7}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 406}, "organization": {"id": 547}, "user": {"num_resources": 5}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 369, "owner": {"id": 487}, "organization": {"id": 199}, "user": {"num_resources": 9}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 393, "owner": {"id": 457}, "organization": {"id": 570}, "user": {"num_resources": 1}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 351, "owner": {"id": 429}, "organization": {"id": 180}, "user": {"num_resources": 6}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "owner": {"id": 418}, "organization": {"id": 557}, "user": {"num_resources": 7}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 402}, "organization": {"id": 172}, "user": {"num_resources": 6}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "owner": {"id": 401}, "organization": {"id": 563}, "user": {"num_resources": 7}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 482}, "organization": {"id": 186}, "user": {"num_resources": 6}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 371, "owner": {"id": 404}, "organization": {"id": 518}, "user": {"num_resources": 7}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 316, "owner": {"id": 444}, "organization": {"id": 174}, "user": {"num_resources": 9}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 342, "owner": {"id": 413}, "organization": {"id": 524}, "user": {"num_resources": 2}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 399, "owner": {"id": 418}, "organization": {"id": 122}, "user": {"num_resources": 3}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 363, "owner": {"id": 411}, "organization": {"id": 574}, "user": {"num_resources": 9}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 318, "owner": {"id": 402}, "organization": {"id": 138}, "user": {"num_resources": 9}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "owner": {"id": 411}, "organization": {"id": 559}, "user": {"num_resources": 5}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "owner": {"id": 400}, "organization": {"id": 118}, "user": {"num_resources": 1}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 491}, "organization": {"id": 559}, "user": {"num_resources": 2}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 453}, "organization": {"id": 197}, "user": {"num_resources": 4}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 364, "owner": {"id": 489}, "organization": {"id": 549}, "user": {"num_resources": 6}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 305, "owner": {"id": 418}, "organization": {"id": 109}, "user": {"num_resources": 3}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 467}, "organization": {"id": 559}, "user": {"num_resources": 6}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 393, "owner": {"id": 466}, "organization": {"id": 144}, "user": {"num_resources": 5}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": null}, "resource": {"id": 347, "owner": {"id": 0}, "organization": {"id": 558}, "user": {"num_resources": 2}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": null}, "resource": {"id": 388, "owner": {"id": 88}, "organization": {"id": 551}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": null}, "resource": {"id": 316, "owner": {"id": 44}, "organization": {"id": 520}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": null}, "resource": {"id": 355, "owner": {"id": 28}, "organization": {"id": 512}, "user": {"num_resources": 4}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": null}, "resource": {"id": 398, "owner": {"id": 8}, "organization": {"id": 596}, "user": {"num_resources": 8}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": null}, "resource": {"id": 304, "owner": {"id": 499}, "organization": {"id": 587}, "user": {"num_resources": 5}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": null}, "resource": {"id": 337, "owner": {"id": 459}, "organization": {"id": 503}, "user": {"num_resources": 8}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": null}, "resource": {"id": 346, "owner": {"id": 485}, "organization": {"id": 532}, "user": {"num_resources": 5}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": null}, "resource": {"id": 353, "owner": {"id": 418}, "organization": {"id": 513}, "user": {"num_resources": 7}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": null}, "resource": {"id": 387, "owner": {"id": 428}, "organization": {"id": 552}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 48}, "organization": {"id": 507}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 380, "owner": {"id": 53}, "organization": {"id": 180}, "user": {"num_resources": 9}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 10}, "organization": {"id": 599}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "owner": {"id": 25}, "organization": {"id": 190}, "user": {"num_resources": 5}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 55}, "organization": {"id": 576}, "user": {"num_resources": 9}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "owner": {"id": 75}, "organization": {"id": 123}, "user": {"num_resources": 7}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 15}, "organization": {"id": 579}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 3}, "organization": {"id": 128}, "user": {"num_resources": 7}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 381, "owner": {"id": 55}, "organization": {"id": 532}, "user": {"num_resources": 9}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"id": 399, "owner": {"id": 12}, "organization": {"id": 193}, "user": {"num_resources": 4}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 383, "owner": {"id": 75}, "organization": {"id": 524}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 352, "owner": {"id": 36}, "organization": {"id": 125}, "user": {"num_resources": 2}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 64}, "organization": {"id": 594}, "user": {"num_resources": 8}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "owner": {"id": 25}, "organization": {"id": 110}, "user": {"num_resources": 7}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 57}, "organization": {"id": 569}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "owner": {"id": 42}, "organization": {"id": 128}, "user": {"num_resources": 7}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 83}, "organization": {"id": 575}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 391, "owner": {"id": 27}, "organization": {"id": 166}, "user": {"num_resources": 4}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 59}, "organization": {"id": 544}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 308, "owner": {"id": 18}, "organization": {"id": 113}, "user": {"num_resources": 9}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 14}, "organization": {"id": 570}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 380, "owner": {"id": 42}, "organization": {"id": 160}, "user": {"num_resources": 4}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "owner": {"id": 28}, "organization": {"id": 568}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 21}, "organization": {"id": 171}, "user": {"num_resources": 6}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "owner": {"id": 13}, "organization": {"id": 572}, "user": {"num_resources": 6}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "owner": {"id": 78}, "organization": {"id": 103}, "user": {"num_resources": 6}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 75}, "organization": {"id": 568}, "user": {"num_resources": 8}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 384, "owner": {"id": 97}, "organization": {"id": 141}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"id": 383, "owner": {"id": 72}, "organization": {"id": 589}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 390, "owner": {"id": 51}, "organization": {"id": 176}, "user": {"num_resources": 2}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 371, "owner": {"id": 54}, "organization": {"id": 567}, "user": {"num_resources": 7}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 358, "owner": {"id": 65}, "organization": {"id": 101}, "user": {"num_resources": 6}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 48}, "organization": {"id": 514}, "user": {"num_resources": 9}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "owner": {"id": 58}, "organization": {"id": 177}, "user": {"num_resources": 9}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "owner": {"id": 40}, "organization": {"id": 552}, "user": {"num_resources": 4}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "owner": {"id": 7}, "organization": {"id": 151}, "user": {"num_resources": 4}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 336, "owner": {"id": 21}, "organization": {"id": 585}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 355, "owner": {"id": 32}, "organization": {"id": 156}, "user": {"num_resources": 5}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 347, "owner": {"id": 62}, "organization": {"id": 594}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 392, "owner": {"id": 96}, "organization": {"id": 149}, "user": {"num_resources": 8}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 315, "owner": {"id": 29}, "organization": {"id": 547}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 54}, "organization": {"id": 151}, "user": {"num_resources": 7}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "owner": {"id": 48}, "organization": {"id": 518}, "user": {"num_resources": 4}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 88}, "organization": {"id": 177}, "user": {"num_resources": 8}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 86}, "organization": {"id": 591}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "owner": {"id": 21}, "organization": {"id": 169}, "user": {"num_resources": 5}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 58}, "organization": {"id": 522}, "user": {"num_resources": 4}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 39}, "organization": {"id": 138}, "user": {"num_resources": 7}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 39}, "organization": {"id": 516}, "user": {"num_resources": 6}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 330, "owner": {"id": 8}, "organization": {"id": 105}, "user": {"num_resources": 2}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 300, "owner": {"id": 470}, "organization": {"id": 530}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 306, "owner": {"id": 411}, "organization": {"id": 186}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 415}, "organization": {"id": 532}, "user": {"num_resources": 7}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 407}, "organization": {"id": 147}, "user": {"num_resources": 6}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "owner": {"id": 434}, "organization": {"id": 539}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "owner": {"id": 492}, "organization": {"id": 121}, "user": {"num_resources": 2}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 417}, "organization": {"id": 503}, "user": {"num_resources": 8}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 381, "owner": {"id": 493}, "organization": {"id": 157}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 347, "owner": {"id": 456}, "organization": {"id": 596}, "user": {"num_resources": 4}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"id": 361, "owner": {"id": 448}, "organization": {"id": 157}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 312, "owner": {"id": 489}, "organization": {"id": 541}, "user": {"num_resources": 9}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 396, "owner": {"id": 400}, "organization": {"id": 133}, "user": {"num_resources": 9}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 330, "owner": {"id": 499}, "organization": {"id": 559}, "user": {"num_resources": 6}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 489}, "organization": {"id": 183}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "owner": {"id": 499}, "organization": {"id": 598}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "owner": {"id": 433}, "organization": {"id": 107}, "user": {"num_resources": 4}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 81, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 302, "owner": {"id": 420}, "organization": {"id": 519}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 449}, "organization": {"id": 113}, "user": {"num_resources": 5}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 384, "owner": {"id": 492}, "organization": {"id": 543}, "user": {"num_resources": 8}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 327, "owner": {"id": 494}, "organization": {"id": 140}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 352, "owner": {"id": 457}, "organization": {"id": 570}, "user": {"num_resources": 9}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 379, "owner": {"id": 409}, "organization": {"id": 116}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 482}, "organization": {"id": 526}, "user": {"num_resources": 4}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 430}, "organization": {"id": 183}, "user": {"num_resources": 5}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 416}, "organization": {"id": 509}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "owner": {"id": 490}, "organization": {"id": 196}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 402}, "organization": {"id": 555}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 451}, "organization": {"id": 179}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 453}, "organization": {"id": 524}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 301, "owner": {"id": 405}, "organization": {"id": 180}, "user": {"num_resources": 5}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 384, "owner": {"id": 430}, "organization": {"id": 523}, "user": {"num_resources": 5}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 365, "owner": {"id": 406}, "organization": {"id": 155}, "user": {"num_resources": 8}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "owner": {"id": 472}, "organization": {"id": 599}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 489}, "organization": {"id": 100}, "user": {"num_resources": 8}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 67, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 460}, "organization": {"id": 503}, "user": {"num_resources": 6}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "owner": {"id": 495}, "organization": {"id": 120}, "user": {"num_resources": 5}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 426}, "organization": {"id": 585}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 311, "owner": {"id": 437}, "organization": {"id": 193}, "user": {"num_resources": 2}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 302, "owner": {"id": 469}, "organization": {"id": 535}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 402}, "organization": {"id": 147}, "user": {"num_resources": 8}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 451}, "organization": {"id": 505}, "user": {"num_resources": 2}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 480}, "organization": {"id": 162}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "owner": {"id": 448}, "organization": {"id": 509}, "user": {"num_resources": 8}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "owner": {"id": 455}, "organization": {"id": 190}, "user": {"num_resources": 4}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 343, "owner": {"id": 495}, "organization": {"id": 516}, "user": {"num_resources": 9}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "owner": {"id": 490}, "organization": {"id": 185}, "user": {"num_resources": 2}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 465}, "organization": {"id": 566}, "user": {"num_resources": 6}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 334, "owner": {"id": 451}, "organization": {"id": 186}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 439}, "organization": {"id": 545}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 483}, "organization": {"id": 136}, "user": {"num_resources": 7}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": null}, "resource": {"id": 327, "owner": {"id": 17}, "organization": {"id": 518}, "user": {"num_resources": 6}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": null}, "resource": {"id": 341, "owner": {"id": 72}, "organization": {"id": 570}, "user": {"num_resources": 6}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": null}, "resource": {"id": 303, "owner": {"id": 56}, "organization": {"id": 516}, "user": {"num_resources": 6}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": null}, "resource": {"id": 331, "owner": {"id": 95}, "organization": {"id": 527}, "user": {"num_resources": 4}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": null}, "resource": {"id": 352, "owner": {"id": 91}, "organization": {"id": 557}, "user": {"num_resources": 4}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": null}, "resource": {"id": 365, "owner": {"id": 473}, "organization": {"id": 522}, "user": {"num_resources": 2}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": null}, "resource": {"id": 334, "owner": {"id": 450}, "organization": {"id": 549}, "user": {"num_resources": 7}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": null}, "resource": {"id": 339, "owner": {"id": 452}, "organization": {"id": 555}, "user": {"num_resources": 8}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": null}, "resource": {"id": 304, "owner": {"id": 485}, "organization": {"id": 591}, "user": {"num_resources": 0}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": null}, "resource": {"id": 380, "owner": {"id": 439}, "organization": {"id": 591}, "user": {"num_resources": 8}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 318, "owner": {"id": 89}, "organization": {"id": 545}, "user": {"num_resources": 5}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 316, "owner": {"id": 67}, "organization": {"id": 139}, "user": {"num_resources": 7}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 15}, "organization": {"id": 526}, "user": {"num_resources": 1}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "owner": {"id": 29}, "organization": {"id": 121}, "user": {"num_resources": 0}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 17}, "organization": {"id": 534}, "user": {"num_resources": 9}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "owner": {"id": 67}, "organization": {"id": 108}, "user": {"num_resources": 0}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 388, "owner": {"id": 89}, "organization": {"id": 579}, "user": {"num_resources": 4}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 388, "owner": {"id": 61}, "organization": {"id": 110}, "user": {"num_resources": 6}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"id": 337, "owner": {"id": 76}, "organization": {"id": 563}, "user": {"num_resources": 4}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 379, "owner": {"id": 45}, "organization": {"id": 157}, "user": {"num_resources": 2}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 350, "owner": {"id": 83}, "organization": {"id": 519}, "user": {"num_resources": 9}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 317, "owner": {"id": 15}, "organization": {"id": 140}, "user": {"num_resources": 9}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "owner": {"id": 96}, "organization": {"id": 544}, "user": {"num_resources": 0}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "owner": {"id": 70}, "organization": {"id": 127}, "user": {"num_resources": 3}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 58}, "organization": {"id": 570}, "user": {"num_resources": 2}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 390, "owner": {"id": 76}, "organization": {"id": 175}, "user": {"num_resources": 6}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 42}, "organization": {"id": 557}, "user": {"num_resources": 6}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 396, "owner": {"id": 41}, "organization": {"id": 164}, "user": {"num_resources": 0}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 75}, "organization": {"id": 574}, "user": {"num_resources": 0}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 63}, "organization": {"id": 191}, "user": {"num_resources": 4}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 375, "owner": {"id": 76}, "organization": {"id": 521}, "user": {"num_resources": 1}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 5}, "organization": {"id": 129}, "user": {"num_resources": 4}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "owner": {"id": 19}, "organization": {"id": 527}, "user": {"num_resources": 3}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 46}, "organization": {"id": 192}, "user": {"num_resources": 2}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 348, "owner": {"id": 52}, "organization": {"id": 525}, "user": {"num_resources": 3}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "owner": {"id": 11}, "organization": {"id": 176}, "user": {"num_resources": 5}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 36}, "organization": {"id": 582}, "user": {"num_resources": 4}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 320, "owner": {"id": 69}, "organization": {"id": 135}, "user": {"num_resources": 2}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 309, "owner": {"id": 77}, "organization": {"id": 507}, "user": {"num_resources": 6}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 377, "owner": {"id": 33}, "organization": {"id": 120}, "user": {"num_resources": 2}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 300, "owner": {"id": 0}, "organization": {"id": 552}, "user": {"num_resources": 2}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 38}, "organization": {"id": 176}, "user": {"num_resources": 8}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "owner": {"id": 70}, "organization": {"id": 594}, "user": {"num_resources": 4}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "owner": {"id": 22}, "organization": {"id": 136}, "user": {"num_resources": 4}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "owner": {"id": 35}, "organization": {"id": 549}, "user": {"num_resources": 0}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 54}, "organization": {"id": 137}, "user": {"num_resources": 5}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 318, "owner": {"id": 72}, "organization": {"id": 564}, "user": {"num_resources": 4}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 364, "owner": {"id": 6}, "organization": {"id": 190}, "user": {"num_resources": 9}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 301, "owner": {"id": 21}, "organization": {"id": 566}, "user": {"num_resources": 1}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 381, "owner": {"id": 81}, "organization": {"id": 106}, "user": {"num_resources": 0}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 353, "owner": {"id": 72}, "organization": {"id": 506}, "user": {"num_resources": 4}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 341, "owner": {"id": 74}, "organization": {"id": 106}, "user": {"num_resources": 4}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 68}, "organization": {"id": 535}, "user": {"num_resources": 0}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "owner": {"id": 29}, "organization": {"id": 117}, "user": {"num_resources": 5}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "owner": {"id": 43}, "organization": {"id": 560}, "user": {"num_resources": 3}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 58}, "organization": {"id": 121}, "user": {"num_resources": 9}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 394, "owner": {"id": 32}, "organization": {"id": 525}, "user": {"num_resources": 4}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 361, "owner": {"id": 88}, "organization": {"id": 163}, "user": {"num_resources": 4}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 365, "owner": {"id": 63}, "organization": {"id": 591}, "user": {"num_resources": 0}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 336, "owner": {"id": 84}, "organization": {"id": 151}, "user": {"num_resources": 7}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 399, "owner": {"id": 458}, "organization": {"id": 542}, "user": {"num_resources": 2}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 370, "owner": {"id": 484}, "organization": {"id": 108}, "user": {"num_resources": 5}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "owner": {"id": 457}, "organization": {"id": 535}, "user": {"num_resources": 6}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "owner": {"id": 408}, "organization": {"id": 199}, "user": {"num_resources": 6}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 470}, "organization": {"id": 503}, "user": {"num_resources": 0}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "owner": {"id": 489}, "organization": {"id": 175}, "user": {"num_resources": 6}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 418}, "organization": {"id": 516}, "user": {"num_resources": 4}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 333, "owner": {"id": 424}, "organization": {"id": 164}, "user": {"num_resources": 9}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 303, "owner": {"id": 443}, "organization": {"id": 588}, "user": {"num_resources": 3}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 340, "owner": {"id": 426}, "organization": {"id": 160}, "user": {"num_resources": 2}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 379, "owner": {"id": 472}, "organization": {"id": 527}, "user": {"num_resources": 8}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 358, "owner": {"id": 427}, "organization": {"id": 103}, "user": {"num_resources": 3}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 446}, "organization": {"id": 597}, "user": {"num_resources": 1}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 417}, "organization": {"id": 106}, "user": {"num_resources": 9}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "owner": {"id": 463}, "organization": {"id": 569}, "user": {"num_resources": 7}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 477}, "organization": {"id": 121}, "user": {"num_resources": 5}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 368, "owner": {"id": 450}, "organization": {"id": 538}, "user": {"num_resources": 2}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 443}, "organization": {"id": 164}, "user": {"num_resources": 1}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 354, "owner": {"id": 419}, "organization": {"id": 561}, "user": {"num_resources": 5}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 369, "owner": {"id": 447}, "organization": {"id": 133}, "user": {"num_resources": 1}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 466}, "organization": {"id": 570}, "user": {"num_resources": 0}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 375, "owner": {"id": 448}, "organization": {"id": 109}, "user": {"num_resources": 7}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 320, "owner": {"id": 451}, "organization": {"id": 508}, "user": {"num_resources": 9}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "owner": {"id": 430}, "organization": {"id": 121}, "user": {"num_resources": 0}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "owner": {"id": 448}, "organization": {"id": 582}, "user": {"num_resources": 6}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "owner": {"id": 496}, "organization": {"id": 129}, "user": {"num_resources": 4}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 330, "owner": {"id": 417}, "organization": {"id": 598}, "user": {"num_resources": 4}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 300, "owner": {"id": 409}, "organization": {"id": 127}, "user": {"num_resources": 1}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 316, "owner": {"id": 468}, "organization": {"id": 598}, "user": {"num_resources": 0}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"id": 384, "owner": {"id": 456}, "organization": {"id": 182}, "user": {"num_resources": 3}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 316, "owner": {"id": 483}, "organization": {"id": 517}, "user": {"num_resources": 7}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 336, "owner": {"id": 489}, "organization": {"id": 117}, "user": {"num_resources": 5}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 403}, "organization": {"id": 511}, "user": {"num_resources": 2}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 434}, "organization": {"id": 146}, "user": {"num_resources": 4}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "owner": {"id": 416}, "organization": {"id": 541}, "user": {"num_resources": 0}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "owner": {"id": 496}, "organization": {"id": 104}, "user": {"num_resources": 8}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 497}, "organization": {"id": 531}, "user": {"num_resources": 0}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 327, "owner": {"id": 467}, "organization": {"id": 155}, "user": {"num_resources": 3}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 417}, "organization": {"id": 539}, "user": {"num_resources": 8}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 315, "owner": {"id": 429}, "organization": {"id": 162}, "user": {"num_resources": 7}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 408}, "organization": {"id": 531}, "user": {"num_resources": 1}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 329, "owner": {"id": 447}, "organization": {"id": 137}, "user": {"num_resources": 0}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "owner": {"id": 433}, "organization": {"id": 589}, "user": {"num_resources": 7}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "owner": {"id": 419}, "organization": {"id": 150}, "user": {"num_resources": 9}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 495}, "organization": {"id": 525}, "user": {"num_resources": 0}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "owner": {"id": 421}, "organization": {"id": 143}, "user": {"num_resources": 0}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 302, "owner": {"id": 468}, "organization": {"id": 505}, "user": {"num_resources": 2}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 424}, "organization": {"id": 141}, "user": {"num_resources": 0}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 456}, "organization": {"id": 588}, "user": {"num_resources": 7}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 330, "owner": {"id": 485}, "organization": {"id": 141}, "user": {"num_resources": 9}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": null}, "resource": {"id": 311, "owner": {"id": 89}, "organization": {"id": 593}, "user": {"num_resources": 0}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": null}, "resource": {"id": 330, "owner": {"id": 7}, "organization": {"id": 537}, "user": {"num_resources": 3}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": null}, "resource": {"id": 382, "owner": {"id": 86}, "organization": {"id": 509}, "user": {"num_resources": 4}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": null}, "resource": {"id": 377, "owner": {"id": 59}, "organization": {"id": 512}, "user": {"num_resources": 5}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": null}, "resource": {"id": 354, "owner": {"id": 81}, "organization": {"id": 550}, "user": {"num_resources": 7}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": null}, "resource": {"id": 320, "owner": {"id": 463}, "organization": {"id": 576}, "user": {"num_resources": 9}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": null}, "resource": {"id": 388, "owner": {"id": 405}, "organization": {"id": 537}, "user": {"num_resources": 6}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": null}, "resource": {"id": 368, "owner": {"id": 411}, "organization": {"id": 505}, "user": {"num_resources": 3}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": null}, "resource": {"id": 310, "owner": {"id": 479}, "organization": {"id": 561}, "user": {"num_resources": 1}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": null}, "resource": {"id": 338, "owner": {"id": 414}, "organization": {"id": 582}, "user": {"num_resources": 3}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 52}, "organization": {"id": 574}, "user": {"num_resources": 9}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 381, "owner": {"id": 45}, "organization": {"id": 182}, "user": {"num_resources": 0}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "owner": {"id": 93}, "organization": {"id": 534}, "user": {"num_resources": 9}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 40}, "organization": {"id": 155}, "user": {"num_resources": 2}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 324, "owner": {"id": 53}, "organization": {"id": 500}, "user": {"num_resources": 7}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 7, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 380, "owner": {"id": 7}, "organization": {"id": 182}, "user": {"num_resources": 6}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 32}, "organization": {"id": 597}, "user": {"num_resources": 4}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 361, "owner": {"id": 82}, "organization": {"id": 170}, "user": {"num_resources": 8}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 346, "owner": {"id": 87}, "organization": {"id": 522}, "user": {"num_resources": 5}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 374, "owner": {"id": 16}, "organization": {"id": 139}, "user": {"num_resources": 0}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 397, "owner": {"id": 64}, "organization": {"id": 577}, "user": {"num_resources": 9}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 357, "owner": {"id": 34}, "organization": {"id": 195}, "user": {"num_resources": 2}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "owner": {"id": 34}, "organization": {"id": 591}, "user": {"num_resources": 7}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "owner": {"id": 71}, "organization": {"id": 109}, "user": {"num_resources": 9}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 28}, "organization": {"id": 529}, "user": {"num_resources": 5}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 7}, "organization": {"id": 169}, "user": {"num_resources": 9}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 384, "owner": {"id": 10}, "organization": {"id": 545}, "user": {"num_resources": 4}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 30}, "organization": {"id": 115}, "user": {"num_resources": 0}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 332, "owner": {"id": 32}, "organization": {"id": 572}, "user": {"num_resources": 0}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 302, "owner": {"id": 38}, "organization": {"id": 127}, "user": {"num_resources": 9}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 93}, "organization": {"id": 502}, "user": {"num_resources": 6}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 383, "owner": {"id": 34}, "organization": {"id": 148}, "user": {"num_resources": 6}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "owner": {"id": 85}, "organization": {"id": 521}, "user": {"num_resources": 1}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 46}, "organization": {"id": 131}, "user": {"num_resources": 1}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 340, "owner": {"id": 72}, "organization": {"id": 510}, "user": {"num_resources": 4}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "owner": {"id": 43}, "organization": {"id": 176}, "user": {"num_resources": 0}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 382, "owner": {"id": 64}, "organization": {"id": 583}, "user": {"num_resources": 0}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 321, "owner": {"id": 10}, "organization": {"id": 161}, "user": {"num_resources": 0}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 303, "owner": {"id": 33}, "organization": {"id": 569}, "user": {"num_resources": 8}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 80}, "organization": {"id": 106}, "user": {"num_resources": 8}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 374, "owner": {"id": 7}, "organization": {"id": 574}, "user": {"num_resources": 2}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 312, "owner": {"id": 55}, "organization": {"id": 122}, "user": {"num_resources": 0}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 58}, "organization": {"id": 593}, "user": {"num_resources": 9}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 7}, "organization": {"id": 119}, "user": {"num_resources": 7}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "owner": {"id": 1}, "organization": {"id": 525}, "user": {"num_resources": 0}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 23}, "organization": {"id": 116}, "user": {"num_resources": 8}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 329, "owner": {"id": 6}, "organization": {"id": 524}, "user": {"num_resources": 8}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 368, "owner": {"id": 47}, "organization": {"id": 117}, "user": {"num_resources": 8}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 52}, "organization": {"id": 587}, "user": {"num_resources": 1}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 329, "owner": {"id": 7}, "organization": {"id": 175}, "user": {"num_resources": 0}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 343, "owner": {"id": 27}, "organization": {"id": 561}, "user": {"num_resources": 3}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 317, "owner": {"id": 26}, "organization": {"id": 137}, "user": {"num_resources": 4}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 83}, "organization": {"id": 541}, "user": {"num_resources": 9}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 54}, "organization": {"id": 131}, "user": {"num_resources": 1}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "owner": {"id": 47}, "organization": {"id": 592}, "user": {"num_resources": 0}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 39}, "organization": {"id": 104}, "user": {"num_resources": 7}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 324, "owner": {"id": 44}, "organization": {"id": 515}, "user": {"num_resources": 1}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 337, "owner": {"id": 91}, "organization": {"id": 126}, "user": {"num_resources": 4}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"id": 325, "owner": {"id": 89}, "organization": {"id": 520}, "user": {"num_resources": 3}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 301, "owner": {"id": 29}, "organization": {"id": 135}, "user": {"num_resources": 0}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 376, "owner": {"id": 435}, "organization": {"id": 571}, "user": {"num_resources": 9}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 409}, "organization": {"id": 142}, "user": {"num_resources": 5}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 431}, "organization": {"id": 551}, "user": {"num_resources": 7}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "owner": {"id": 441}, "organization": {"id": 197}, "user": {"num_resources": 2}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "owner": {"id": 476}, "organization": {"id": 583}, "user": {"num_resources": 0}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "owner": {"id": 476}, "organization": {"id": 169}, "user": {"num_resources": 1}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 395, "owner": {"id": 479}, "organization": {"id": 527}, "user": {"num_resources": 1}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 449}, "organization": {"id": 157}, "user": {"num_resources": 5}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 326, "owner": {"id": 462}, "organization": {"id": 508}, "user": {"num_resources": 9}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 337, "owner": {"id": 450}, "organization": {"id": 142}, "user": {"num_resources": 1}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 392, "owner": {"id": 490}, "organization": {"id": 568}, "user": {"num_resources": 1}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 376, "owner": {"id": 436}, "organization": {"id": 193}, "user": {"num_resources": 9}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "owner": {"id": 414}, "organization": {"id": 573}, "user": {"num_resources": 2}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 453}, "organization": {"id": 180}, "user": {"num_resources": 3}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 450}, "organization": {"id": 584}, "user": {"num_resources": 7}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 387, "owner": {"id": 426}, "organization": {"id": 111}, "user": {"num_resources": 1}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 431}, "organization": {"id": 544}, "user": {"num_resources": 5}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 447}, "organization": {"id": 199}, "user": {"num_resources": 5}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 316, "owner": {"id": 439}, "organization": {"id": 544}, "user": {"num_resources": 9}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 342, "owner": {"id": 444}, "organization": {"id": 174}, "user": {"num_resources": 2}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 484}, "organization": {"id": 596}, "user": {"num_resources": 8}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 383, "owner": {"id": 461}, "organization": {"id": 173}, "user": {"num_resources": 9}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 330, "owner": {"id": 406}, "organization": {"id": 529}, "user": {"num_resources": 3}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "owner": {"id": 420}, "organization": {"id": 173}, "user": {"num_resources": 1}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "owner": {"id": 479}, "organization": {"id": 599}, "user": {"num_resources": 9}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "owner": {"id": 407}, "organization": {"id": 135}, "user": {"num_resources": 1}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 303, "owner": {"id": 409}, "organization": {"id": 589}, "user": {"num_resources": 5}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 303, "owner": {"id": 443}, "organization": {"id": 103}, "user": {"num_resources": 9}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 484}, "organization": {"id": 581}, "user": {"num_resources": 6}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 408}, "organization": {"id": 196}, "user": {"num_resources": 9}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 393, "owner": {"id": 452}, "organization": {"id": 566}, "user": {"num_resources": 7}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 390, "owner": {"id": 430}, "organization": {"id": 193}, "user": {"num_resources": 0}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "owner": {"id": 481}, "organization": {"id": 556}, "user": {"num_resources": 7}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "owner": {"id": 400}, "organization": {"id": 182}, "user": {"num_resources": 4}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "owner": {"id": 452}, "organization": {"id": 505}, "user": {"num_resources": 0}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "owner": {"id": 472}, "organization": {"id": 188}, "user": {"num_resources": 5}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 24, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 351, "owner": {"id": 443}, "organization": {"id": 597}, "user": {"num_resources": 9}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 407}, "organization": {"id": 122}, "user": {"num_resources": 5}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 370, "owner": {"id": 496}, "organization": {"id": 515}, "user": {"num_resources": 4}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 437}, "organization": {"id": 190}, "user": {"num_resources": 6}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 327, "owner": {"id": 492}, "organization": {"id": 504}, "user": {"num_resources": 4}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 433}, "organization": {"id": 198}, "user": {"num_resources": 3}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "owner": {"id": 423}, "organization": {"id": 514}, "user": {"num_resources": 9}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "owner": {"id": 490}, "organization": {"id": 118}, "user": {"num_resources": 9}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 408}, "organization": {"id": 511}, "user": {"num_resources": 1}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "owner": {"id": 464}, "organization": {"id": 184}, "user": {"num_resources": 1}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 431}, "organization": {"id": 579}, "user": {"num_resources": 4}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 417}, "organization": {"id": 175}, "user": {"num_resources": 3}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 495}, "organization": {"id": 536}, "user": {"num_resources": 7}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 304, "owner": {"id": 462}, "organization": {"id": 171}, "user": {"num_resources": 7}}} -} - - - -# cloudstorages_test.gen.rego.py -# # Copyright (C) 2021-2022 Intel Corporation -# # -# # SPDX-License-Identifier: MIT -# -# # Copyright (C) 2021-2022 Intel Corporation -# # -# # SPDX-License-Identifier: MIT -# -# import csv -# import json -# import random -# import sys -# import os -# from itertools import product -# -# NAME = 'cloudstorages' -# -# def read_rules(name): -# rules = [] -# with open(os.path.join(sys.argv[1], f'{name}.csv')) as f: -# reader = csv.DictReader(f) -# for row in reader: -# row = {k.lower():v.lower().replace('n/a','na') for k,v in row.items()} -# row['limit'] = row['limit'].replace('none', 'None') -# found = False -# for col,val in row.items(): -# if col in ["limit", "method", "url"]: -# continue -# complex_val = [v.strip() for v in val.split(',')] -# if len(complex_val) > 1: -# found = True -# for item in complex_val: -# new_row = row.copy() -# new_row[col] = item -# rules.append(new_row) -# if not found: -# rules.append(row) -# -# return rules -# -# simple_rules = read_rules(NAME) -# -# SCOPES = {rule['scope'] for rule in simple_rules} -# CONTEXTS = ['sandbox', 'organization'] -# OWNERSHIPS = ['owner', 'none'] -# GROUPS = ['admin', 'business', 'user', 'worker', 'none'] -# ORG_ROLES = ['owner', 'maintainer', 'supervisor', 'worker', None] -# SAME_ORG = [False, True] -# -# def RESOURCES(scope): -# if scope == 'list': -# return [None] -# else: -# return [{ -# "id": random.randrange(300, 400), -# "owner": { "id": random.randrange(400, 500) }, -# "organization": { -# "id": random.randrange(500,600) -# }, -# "user": { -# "num_resources": random.randrange(10) -# } -# }] -# -# def is_same_org(org1, org2): -# if org1 != None and org2 != None: -# return org1['id'] == org2['id'] -# elif org1 == None and org2 == None: -# return True -# else: -# return False -# -# def eval_rule(scope, context, ownership, privilege, membership, data): -# if privilege == 'admin': -# return True -# -# rules = list(filter(lambda r: scope == r['scope'], simple_rules)) -# rules = list(filter(lambda r: r['context'] == 'na' or context == r['context'], rules)) -# rules = list(filter(lambda r: r['ownership'] == 'na' or ownership == r['ownership'], rules)) -# rules = list(filter(lambda r: r['membership'] == 'na' or -# ORG_ROLES.index(membership) <= ORG_ROLES.index(r['membership']), rules)) -# rules = list(filter(lambda r: GROUPS.index(privilege) <= GROUPS.index(r['privilege']), rules)) -# resource = data['resource'] -# rules = list(filter(lambda r: not r['limit'] or eval(r['limit'], {'resource': resource}), rules)) -# if not is_same_org(data['auth']['organization'], data['resource']['organization']) and context != 'sandbox': -# return False -# -# return bool(rules) -# -# def get_data(scope, context, ownership, privilege, membership, resource, same_org): -# data = { -# "scope": scope, -# "auth": { -# "user": { "id": random.randrange(0,100), "privilege": privilege }, -# "organization": { -# "id": random.randrange(100,200), -# "owner": { "id": random.randrange(200, 300) }, -# "user": { "role": membership } -# } if context == 'organization' else None -# }, -# "resource": resource -# } -# -# user_id = data['auth']['user']['id'] -# if context == 'organization': -# org_id = data['auth']['organization']['id'] -# if data['auth']['organization']['user']['role'] == 'owner': -# data['auth']['organization']['owner']['id'] = user_id -# -# if same_org: -# data['resource']['organization']['id'] = org_id -# -# if ownership == 'owner': -# data['resource']['owner']['id'] = user_id -# -# return data -# -# def _get_name(prefix, **kwargs): -# name = prefix -# for k,v in kwargs.items(): -# prefix = '_' + str(k) -# if isinstance(v, dict): -# if 'id' not in v: -# name += _get_name(prefix, **v) -# else: -# name += f'{prefix}_{str(v).upper().replace(":", "_")}' -# -# return name -# -# def get_name(scope, context, ownership, privilege, membership, resource, same_org): -# return _get_name('test', **locals()) -# -# def is_valid(scope, context, ownership, privilege, membership, resource, same_org): -# if context == "sandbox" and membership: -# return False -# if scope == 'list' and ownership != 'None': -# return False -# if context == 'sandbox' and same_org == False: -# return False -# -# return True -# -# def gen_test_rego(name): -# with open(f'{name}_test.gen.rego', 'wt') as f: -# f.write(f'package {name}\n\n') -# for scope, context, ownership, privilege, membership, same_org in product( -# SCOPES, CONTEXTS, OWNERSHIPS, GROUPS, ORG_ROLES, SAME_ORG): -# for resource in RESOURCES(scope): -# if not is_valid(scope, context, ownership, privilege, membership, resource, same_org): -# continue -# -# data = get_data(scope, context, ownership, privilege, membership, resource, same_org) -# test_name = get_name(scope, context, ownership, privilege, membership, resource, same_org) -# result = eval_rule(scope, context, ownership, privilege, membership, data) -# f.write('{test_name} {{\n {allow} with input as {data}\n}}\n\n'.format( -# test_name=test_name, allow='allow' if result else 'not allow', -# data=json.dumps(data))) -# -# # Write the script which is used to generate the file -# with open(sys.argv[0]) as this_file: -# f.write(f'\n\n# {os.path.split(sys.argv[0])[1]}\n') -# for line in this_file: -# if line.strip(): -# f.write(f'# {line}') -# else: -# f.write(f'#\n') -# -# # Write rules which are used to generate the file -# with open(os.path.join(sys.argv[1], f'{name}.csv')) as rego_file: -# f.write(f'\n\n# {name}.csv\n') -# for line in rego_file: -# if line.strip(): -# f.write(f'# {line}') -# else: -# f.write(f'#\n') -# -# gen_test_rego(NAME) - -# cloudstorages.csv -# Scope,Resource,Context,Ownership,Limit,Method,URL,Privilege,Membership -# create,Storage,Sandbox,N/A,,POST,/cloudstorages,User,N/A -# create,Storage,Organization,N/A,,POST,/cloudstorages,User,Maintainer -# list,Storage,Sandbox,N/A,,GET,/cloudstorages,None,N/A -# list,Storage,Organization,N/A,,GET,/cloudstorages,None,Worker -# view,Storage,Sandbox,None,,GET,"/cloudstorages/{id}, /cloudstorages/{id}/preview, /cloudstorages/{id}/status",Admin,N/A -# view,Storage,Sandbox,Owner,,GET,"/cloudstorages/{id}, /cloudstorages/{id}/preview, /cloudstorages/{id}/status",None,N/A -# view,Storage,Organization,Owner,,GET,"/cloudstorages/{id}, /cloudstorages/{id}/preview, /cloudstorages/{id}/status",None,Worker -# view,Storage,Organization,None,,GET,/cloudstorages/{id},User,Supervisor -# update,Storage,Sandbox,None,,PATCH,/cloudstorages/{id},Admin,N/A -# update,Storage,Sandbox,Owner,,PATCH,/cloudstorages/{id},Worker,N/A -# update,Storage,Organization,Owner,,PATCH,/cloudstorages/{id},Worker,Worker -# update,Storage,Organization,None,,PATCH,/cloudstorages/{id},User,Maintainer -# delete,Storage,Sandbox,None,,DELETE,/cloudstorages/{id},Admin,N/A -# delete,Storage,Sandbox,Owner,,DELETE,/cloudstorages/{id},Worker,N/A -# delete,Storage,Organization,Owner,,DELETE,/cloudstorages/{id},Worker,Worker -# delete,Storage,Organization,None,,DELETE,/cloudstorages/{id},User,Maintainer -# list:content,Storage,Sandbox,None,,GET,/cloudstorages/{id}/content,Admin,N/A -# list:content,Storage,Sandbox,Owner,,GET,/cloudstorages/{id}/content,None,N/A -# list:content,Storage,Organization,Owner,,GET,/cloudstorages/{id}/content,None,Worker -# list:content,Storage,Organization,None,,GET,/cloudstorages/{id}/content,User,Supervisor \ No newline at end of file diff --git a/cvat/apps/iam/rules/comments_test.gen.rego b/cvat/apps/iam/rules/comments_test.gen.rego deleted file mode 100644 index 8e13653c..00000000 --- a/cvat/apps/iam/rules/comments_test.gen.rego +++ /dev/null @@ -1,13895 +0,0 @@ -package comments - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": null}, "resource": {"id": 375, "owner": {"id": 633}, "assignee": {"id": 535}, "project": {"id": 364, "owner": {"id": 40}, "assignee": {"id": 883}}, "task": {"id": 318, "owner": {"id": 945}, "assignee": {"id": 1079}}, "job": {"id": 301, "assignee": {"id": 1106}}, "issue": {"id": 339, "owner": {"id": 1242}, "assignee": {"id": 1380}}, "organization": {"id": 1482}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": null}, "resource": {"id": 342, "owner": {"id": 611}, "assignee": {"id": 557}, "project": {"id": 367, "owner": {"id": 35}, "assignee": {"id": 872}}, "task": {"id": 328, "owner": {"id": 947}, "assignee": {"id": 1039}}, "job": {"id": 315, "assignee": {"id": 1143}}, "issue": {"id": 367, "owner": {"id": 1232}, "assignee": {"id": 1360}}, "organization": {"id": 1433}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": null}, "resource": {"id": 369, "owner": {"id": 653}, "assignee": {"id": 501}, "project": {"id": 354, "owner": {"id": 13}, "assignee": {"id": 855}}, "task": {"id": 383, "owner": {"id": 937}, "assignee": {"id": 1040}}, "job": {"id": 377, "assignee": {"id": 1157}}, "issue": {"id": 361, "owner": {"id": 1299}, "assignee": {"id": 1391}}, "organization": {"id": 1426}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": null}, "resource": {"id": 334, "owner": {"id": 615}, "assignee": {"id": 530}, "project": {"id": 375, "owner": {"id": 15}, "assignee": {"id": 862}}, "task": {"id": 361, "owner": {"id": 983}, "assignee": {"id": 1046}}, "job": {"id": 303, "assignee": {"id": 1141}}, "issue": {"id": 382, "owner": {"id": 1247}, "assignee": {"id": 1363}}, "organization": {"id": 1466}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": null}, "resource": {"id": 358, "owner": {"id": 607}, "assignee": {"id": 588}, "project": {"id": 365, "owner": {"id": 17}, "assignee": {"id": 812}}, "task": {"id": 345, "owner": {"id": 991}, "assignee": {"id": 1041}}, "job": {"id": 390, "assignee": {"id": 1169}}, "issue": {"id": 357, "owner": {"id": 1276}, "assignee": {"id": 1345}}, "organization": {"id": 1491}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": null}, "resource": {"id": 320, "owner": {"id": 686}, "assignee": {"id": 526}, "project": {"id": 301, "owner": {"id": 788}, "assignee": {"id": 43}}, "task": {"id": 388, "owner": {"id": 928}, "assignee": {"id": 1065}}, "job": {"id": 367, "assignee": {"id": 1122}}, "issue": {"id": 353, "owner": {"id": 1206}, "assignee": {"id": 1396}}, "organization": {"id": 1474}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": null}, "resource": {"id": 354, "owner": {"id": 674}, "assignee": {"id": 541}, "project": {"id": 359, "owner": {"id": 797}, "assignee": {"id": 41}}, "task": {"id": 396, "owner": {"id": 916}, "assignee": {"id": 1032}}, "job": {"id": 308, "assignee": {"id": 1180}}, "issue": {"id": 330, "owner": {"id": 1244}, "assignee": {"id": 1316}}, "organization": {"id": 1400}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": null}, "resource": {"id": 341, "owner": {"id": 628}, "assignee": {"id": 542}, "project": {"id": 329, "owner": {"id": 751}, "assignee": {"id": 22}}, "task": {"id": 345, "owner": {"id": 920}, "assignee": {"id": 1033}}, "job": {"id": 352, "assignee": {"id": 1175}}, "issue": {"id": 385, "owner": {"id": 1257}, "assignee": {"id": 1302}}, "organization": {"id": 1445}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": null}, "resource": {"id": 352, "owner": {"id": 662}, "assignee": {"id": 555}, "project": {"id": 335, "owner": {"id": 757}, "assignee": {"id": 60}}, "task": {"id": 330, "owner": {"id": 917}, "assignee": {"id": 1075}}, "job": {"id": 353, "assignee": {"id": 1159}}, "issue": {"id": 382, "owner": {"id": 1206}, "assignee": {"id": 1318}}, "organization": {"id": 1471}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": null}, "resource": {"id": 340, "owner": {"id": 611}, "assignee": {"id": 526}, "project": {"id": 370, "owner": {"id": 731}, "assignee": {"id": 77}}, "task": {"id": 364, "owner": {"id": 907}, "assignee": {"id": 1081}}, "job": {"id": 323, "assignee": {"id": 1129}}, "issue": {"id": 380, "owner": {"id": 1200}, "assignee": {"id": 1301}}, "organization": {"id": 1426}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": null}, "resource": {"id": 327, "owner": {"id": 646}, "assignee": {"id": 506}, "project": {"id": 353, "owner": {"id": 773}, "assignee": {"id": 842}}, "task": {"id": 335, "owner": {"id": 10}, "assignee": {"id": 1081}}, "job": {"id": 329, "assignee": {"id": 1161}}, "issue": {"id": 328, "owner": {"id": 1263}, "assignee": {"id": 1383}}, "organization": {"id": 1494}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": null}, "resource": {"id": 384, "owner": {"id": 640}, "assignee": {"id": 512}, "project": {"id": 318, "owner": {"id": 792}, "assignee": {"id": 898}}, "task": {"id": 388, "owner": {"id": 82}, "assignee": {"id": 1097}}, "job": {"id": 394, "assignee": {"id": 1118}}, "issue": {"id": 374, "owner": {"id": 1222}, "assignee": {"id": 1362}}, "organization": {"id": 1451}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": null}, "resource": {"id": 319, "owner": {"id": 664}, "assignee": {"id": 515}, "project": {"id": 354, "owner": {"id": 780}, "assignee": {"id": 858}}, "task": {"id": 394, "owner": {"id": 65}, "assignee": {"id": 1066}}, "job": {"id": 372, "assignee": {"id": 1172}}, "issue": {"id": 334, "owner": {"id": 1282}, "assignee": {"id": 1371}}, "organization": {"id": 1468}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": null}, "resource": {"id": 352, "owner": {"id": 659}, "assignee": {"id": 532}, "project": {"id": 337, "owner": {"id": 793}, "assignee": {"id": 830}}, "task": {"id": 349, "owner": {"id": 14}, "assignee": {"id": 1052}}, "job": {"id": 316, "assignee": {"id": 1159}}, "issue": {"id": 399, "owner": {"id": 1212}, "assignee": {"id": 1347}}, "organization": {"id": 1444}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": null}, "resource": {"id": 342, "owner": {"id": 609}, "assignee": {"id": 567}, "project": {"id": 326, "owner": {"id": 747}, "assignee": {"id": 867}}, "task": {"id": 324, "owner": {"id": 50}, "assignee": {"id": 1063}}, "job": {"id": 324, "assignee": {"id": 1195}}, "issue": {"id": 380, "owner": {"id": 1201}, "assignee": {"id": 1361}}, "organization": {"id": 1498}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": null}, "resource": {"id": 305, "owner": {"id": 695}, "assignee": {"id": 502}, "project": {"id": 371, "owner": {"id": 771}, "assignee": {"id": 890}}, "task": {"id": 363, "owner": {"id": 57}, "assignee": {"id": 1083}}, "job": {"id": 385, "assignee": {"id": 1198}}, "issue": {"id": 375, "owner": {"id": 1234}, "assignee": {"id": 1306}}, "organization": {"id": 1483}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": null}, "resource": {"id": 393, "owner": {"id": 625}, "assignee": {"id": 504}, "project": {"id": 360, "owner": {"id": 770}, "assignee": {"id": 878}}, "task": {"id": 353, "owner": {"id": 47}, "assignee": {"id": 1044}}, "job": {"id": 363, "assignee": {"id": 1148}}, "issue": {"id": 328, "owner": {"id": 1289}, "assignee": {"id": 1338}}, "organization": {"id": 1435}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": null}, "resource": {"id": 350, "owner": {"id": 635}, "assignee": {"id": 557}, "project": {"id": 381, "owner": {"id": 762}, "assignee": {"id": 803}}, "task": {"id": 395, "owner": {"id": 57}, "assignee": {"id": 1074}}, "job": {"id": 335, "assignee": {"id": 1107}}, "issue": {"id": 366, "owner": {"id": 1273}, "assignee": {"id": 1355}}, "organization": {"id": 1438}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": null}, "resource": {"id": 315, "owner": {"id": 642}, "assignee": {"id": 511}, "project": {"id": 338, "owner": {"id": 782}, "assignee": {"id": 835}}, "task": {"id": 336, "owner": {"id": 21}, "assignee": {"id": 1077}}, "job": {"id": 308, "assignee": {"id": 1196}}, "issue": {"id": 307, "owner": {"id": 1213}, "assignee": {"id": 1322}}, "organization": {"id": 1420}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": null}, "resource": {"id": 306, "owner": {"id": 655}, "assignee": {"id": 595}, "project": {"id": 390, "owner": {"id": 765}, "assignee": {"id": 840}}, "task": {"id": 358, "owner": {"id": 38}, "assignee": {"id": 1017}}, "job": {"id": 384, "assignee": {"id": 1174}}, "issue": {"id": 330, "owner": {"id": 1270}, "assignee": {"id": 1310}}, "organization": {"id": 1417}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": null}, "resource": {"id": 340, "owner": {"id": 670}, "assignee": {"id": 549}, "project": {"id": 346, "owner": {"id": 703}, "assignee": {"id": 803}}, "task": {"id": 379, "owner": {"id": 949}, "assignee": {"id": 77}}, "job": {"id": 317, "assignee": {"id": 1176}}, "issue": {"id": 336, "owner": {"id": 1207}, "assignee": {"id": 1324}}, "organization": {"id": 1461}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": null}, "resource": {"id": 356, "owner": {"id": 691}, "assignee": {"id": 522}, "project": {"id": 351, "owner": {"id": 717}, "assignee": {"id": 821}}, "task": {"id": 367, "owner": {"id": 982}, "assignee": {"id": 61}}, "job": {"id": 395, "assignee": {"id": 1188}}, "issue": {"id": 306, "owner": {"id": 1264}, "assignee": {"id": 1337}}, "organization": {"id": 1483}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": null}, "resource": {"id": 337, "owner": {"id": 668}, "assignee": {"id": 560}, "project": {"id": 390, "owner": {"id": 733}, "assignee": {"id": 813}}, "task": {"id": 384, "owner": {"id": 903}, "assignee": {"id": 66}}, "job": {"id": 376, "assignee": {"id": 1142}}, "issue": {"id": 324, "owner": {"id": 1268}, "assignee": {"id": 1398}}, "organization": {"id": 1426}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": null}, "resource": {"id": 302, "owner": {"id": 635}, "assignee": {"id": 509}, "project": {"id": 360, "owner": {"id": 750}, "assignee": {"id": 888}}, "task": {"id": 383, "owner": {"id": 917}, "assignee": {"id": 43}}, "job": {"id": 331, "assignee": {"id": 1197}}, "issue": {"id": 337, "owner": {"id": 1234}, "assignee": {"id": 1354}}, "organization": {"id": 1464}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": null}, "resource": {"id": 338, "owner": {"id": 644}, "assignee": {"id": 551}, "project": {"id": 317, "owner": {"id": 765}, "assignee": {"id": 895}}, "task": {"id": 349, "owner": {"id": 988}, "assignee": {"id": 29}}, "job": {"id": 364, "assignee": {"id": 1110}}, "issue": {"id": 329, "owner": {"id": 1237}, "assignee": {"id": 1349}}, "organization": {"id": 1422}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": null}, "resource": {"id": 347, "owner": {"id": 664}, "assignee": {"id": 544}, "project": {"id": 320, "owner": {"id": 720}, "assignee": {"id": 840}}, "task": {"id": 352, "owner": {"id": 934}, "assignee": {"id": 73}}, "job": {"id": 317, "assignee": {"id": 1199}}, "issue": {"id": 371, "owner": {"id": 1207}, "assignee": {"id": 1364}}, "organization": {"id": 1405}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": null}, "resource": {"id": 300, "owner": {"id": 612}, "assignee": {"id": 592}, "project": {"id": 354, "owner": {"id": 746}, "assignee": {"id": 805}}, "task": {"id": 317, "owner": {"id": 930}, "assignee": {"id": 7}}, "job": {"id": 344, "assignee": {"id": 1121}}, "issue": {"id": 316, "owner": {"id": 1295}, "assignee": {"id": 1356}}, "organization": {"id": 1435}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": null}, "resource": {"id": 380, "owner": {"id": 633}, "assignee": {"id": 527}, "project": {"id": 320, "owner": {"id": 757}, "assignee": {"id": 893}}, "task": {"id": 308, "owner": {"id": 994}, "assignee": {"id": 50}}, "job": {"id": 355, "assignee": {"id": 1181}}, "issue": {"id": 322, "owner": {"id": 1284}, "assignee": {"id": 1359}}, "organization": {"id": 1403}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": null}, "resource": {"id": 337, "owner": {"id": 621}, "assignee": {"id": 591}, "project": {"id": 313, "owner": {"id": 728}, "assignee": {"id": 875}}, "task": {"id": 324, "owner": {"id": 944}, "assignee": {"id": 73}}, "job": {"id": 309, "assignee": {"id": 1119}}, "issue": {"id": 345, "owner": {"id": 1278}, "assignee": {"id": 1304}}, "organization": {"id": 1427}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": null}, "resource": {"id": 367, "owner": {"id": 691}, "assignee": {"id": 554}, "project": {"id": 329, "owner": {"id": 757}, "assignee": {"id": 837}}, "task": {"id": 374, "owner": {"id": 999}, "assignee": {"id": 30}}, "job": {"id": 390, "assignee": {"id": 1165}}, "issue": {"id": 303, "owner": {"id": 1200}, "assignee": {"id": 1326}}, "organization": {"id": 1477}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": null}, "resource": {"id": 357, "owner": {"id": 611}, "assignee": {"id": 587}, "project": {"id": 317, "owner": {"id": 799}, "assignee": {"id": 812}}, "task": {"id": 350, "owner": {"id": 926}, "assignee": {"id": 1023}}, "job": {"id": 375, "assignee": {"id": 64}}, "issue": {"id": 373, "owner": {"id": 1284}, "assignee": {"id": 1315}}, "organization": {"id": 1443}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": null}, "resource": {"id": 333, "owner": {"id": 624}, "assignee": {"id": 526}, "project": {"id": 389, "owner": {"id": 781}, "assignee": {"id": 840}}, "task": {"id": 310, "owner": {"id": 906}, "assignee": {"id": 1095}}, "job": {"id": 327, "assignee": {"id": 35}}, "issue": {"id": 329, "owner": {"id": 1290}, "assignee": {"id": 1359}}, "organization": {"id": 1492}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": null}, "resource": {"id": 365, "owner": {"id": 668}, "assignee": {"id": 522}, "project": {"id": 389, "owner": {"id": 780}, "assignee": {"id": 817}}, "task": {"id": 334, "owner": {"id": 984}, "assignee": {"id": 1093}}, "job": {"id": 330, "assignee": {"id": 78}}, "issue": {"id": 379, "owner": {"id": 1264}, "assignee": {"id": 1312}}, "organization": {"id": 1460}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": null}, "resource": {"id": 313, "owner": {"id": 644}, "assignee": {"id": 530}, "project": {"id": 373, "owner": {"id": 789}, "assignee": {"id": 815}}, "task": {"id": 363, "owner": {"id": 989}, "assignee": {"id": 1007}}, "job": {"id": 302, "assignee": {"id": 12}}, "issue": {"id": 331, "owner": {"id": 1214}, "assignee": {"id": 1309}}, "organization": {"id": 1478}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": null}, "resource": {"id": 369, "owner": {"id": 616}, "assignee": {"id": 563}, "project": {"id": 386, "owner": {"id": 716}, "assignee": {"id": 836}}, "task": {"id": 386, "owner": {"id": 921}, "assignee": {"id": 1026}}, "job": {"id": 391, "assignee": {"id": 57}}, "issue": {"id": 376, "owner": {"id": 1286}, "assignee": {"id": 1366}}, "organization": {"id": 1489}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": null}, "resource": {"id": 381, "owner": {"id": 603}, "assignee": {"id": 554}, "project": {"id": 399, "owner": {"id": 759}, "assignee": {"id": 874}}, "task": {"id": 302, "owner": {"id": 919}, "assignee": {"id": 1054}}, "job": {"id": 380, "assignee": {"id": 72}}, "issue": {"id": 357, "owner": {"id": 1256}, "assignee": {"id": 1353}}, "organization": {"id": 1493}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": null}, "resource": {"id": 358, "owner": {"id": 638}, "assignee": {"id": 578}, "project": {"id": 349, "owner": {"id": 742}, "assignee": {"id": 895}}, "task": {"id": 327, "owner": {"id": 918}, "assignee": {"id": 1059}}, "job": {"id": 313, "assignee": {"id": 64}}, "issue": {"id": 396, "owner": {"id": 1254}, "assignee": {"id": 1355}}, "organization": {"id": 1413}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": null}, "resource": {"id": 388, "owner": {"id": 675}, "assignee": {"id": 565}, "project": {"id": 353, "owner": {"id": 761}, "assignee": {"id": 889}}, "task": {"id": 381, "owner": {"id": 925}, "assignee": {"id": 1031}}, "job": {"id": 307, "assignee": {"id": 26}}, "issue": {"id": 316, "owner": {"id": 1249}, "assignee": {"id": 1322}}, "organization": {"id": 1431}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": null}, "resource": {"id": 337, "owner": {"id": 674}, "assignee": {"id": 584}, "project": {"id": 333, "owner": {"id": 764}, "assignee": {"id": 820}}, "task": {"id": 358, "owner": {"id": 942}, "assignee": {"id": 1036}}, "job": {"id": 310, "assignee": {"id": 68}}, "issue": {"id": 351, "owner": {"id": 1222}, "assignee": {"id": 1348}}, "organization": {"id": 1439}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": null}, "resource": {"id": 352, "owner": {"id": 606}, "assignee": {"id": 529}, "project": {"id": 374, "owner": {"id": 742}, "assignee": {"id": 877}}, "task": {"id": 357, "owner": {"id": 975}, "assignee": {"id": 1036}}, "job": {"id": 346, "assignee": {"id": 42}}, "issue": {"id": 327, "owner": {"id": 1287}, "assignee": {"id": 1309}}, "organization": {"id": 1493}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_ISSUE_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": null}, "resource": {"id": 348, "owner": {"id": 674}, "assignee": {"id": 518}, "project": {"id": 364, "owner": {"id": 758}, "assignee": {"id": 808}}, "task": {"id": 386, "owner": {"id": 923}, "assignee": {"id": 1025}}, "job": {"id": 353, "assignee": {"id": 1109}}, "issue": {"id": 324, "owner": {"id": 61}, "assignee": {"id": 1323}}, "organization": {"id": 1448}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_ISSUE_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": null}, "resource": {"id": 316, "owner": {"id": 613}, "assignee": {"id": 590}, "project": {"id": 332, "owner": {"id": 744}, "assignee": {"id": 853}}, "task": {"id": 336, "owner": {"id": 999}, "assignee": {"id": 1063}}, "job": {"id": 370, "assignee": {"id": 1186}}, "issue": {"id": 349, "owner": {"id": 76}, "assignee": {"id": 1393}}, "organization": {"id": 1462}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": null}, "resource": {"id": 332, "owner": {"id": 664}, "assignee": {"id": 583}, "project": {"id": 329, "owner": {"id": 704}, "assignee": {"id": 837}}, "task": {"id": 391, "owner": {"id": 953}, "assignee": {"id": 1061}}, "job": {"id": 390, "assignee": {"id": 1183}}, "issue": {"id": 356, "owner": {"id": 68}, "assignee": {"id": 1352}}, "organization": {"id": 1456}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": null}, "resource": {"id": 320, "owner": {"id": 668}, "assignee": {"id": 575}, "project": {"id": 375, "owner": {"id": 714}, "assignee": {"id": 808}}, "task": {"id": 379, "owner": {"id": 950}, "assignee": {"id": 1094}}, "job": {"id": 344, "assignee": {"id": 1164}}, "issue": {"id": 346, "owner": {"id": 76}, "assignee": {"id": 1391}}, "organization": {"id": 1434}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_ISSUE_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": null}, "resource": {"id": 378, "owner": {"id": 698}, "assignee": {"id": 505}, "project": {"id": 311, "owner": {"id": 754}, "assignee": {"id": 821}}, "task": {"id": 311, "owner": {"id": 932}, "assignee": {"id": 1070}}, "job": {"id": 342, "assignee": {"id": 1176}}, "issue": {"id": 387, "owner": {"id": 63}, "assignee": {"id": 1394}}, "organization": {"id": 1487}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_ISSUE_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": null}, "resource": {"id": 315, "owner": {"id": 694}, "assignee": {"id": 508}, "project": {"id": 370, "owner": {"id": 750}, "assignee": {"id": 880}}, "task": {"id": 309, "owner": {"id": 945}, "assignee": {"id": 1073}}, "job": {"id": 355, "assignee": {"id": 1102}}, "issue": {"id": 347, "owner": {"id": 22}, "assignee": {"id": 1373}}, "organization": {"id": 1456}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_ISSUE_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": null}, "resource": {"id": 315, "owner": {"id": 657}, "assignee": {"id": 503}, "project": {"id": 358, "owner": {"id": 796}, "assignee": {"id": 859}}, "task": {"id": 398, "owner": {"id": 955}, "assignee": {"id": 1063}}, "job": {"id": 303, "assignee": {"id": 1184}}, "issue": {"id": 328, "owner": {"id": 52}, "assignee": {"id": 1352}}, "organization": {"id": 1497}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_ISSUE_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": null}, "resource": {"id": 369, "owner": {"id": 611}, "assignee": {"id": 509}, "project": {"id": 306, "owner": {"id": 761}, "assignee": {"id": 899}}, "task": {"id": 353, "owner": {"id": 949}, "assignee": {"id": 1065}}, "job": {"id": 336, "assignee": {"id": 1190}}, "issue": {"id": 366, "owner": {"id": 15}, "assignee": {"id": 1395}}, "organization": {"id": 1449}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_ISSUE_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": null}, "resource": {"id": 397, "owner": {"id": 657}, "assignee": {"id": 563}, "project": {"id": 385, "owner": {"id": 775}, "assignee": {"id": 830}}, "task": {"id": 355, "owner": {"id": 906}, "assignee": {"id": 1070}}, "job": {"id": 347, "assignee": {"id": 1179}}, "issue": {"id": 362, "owner": {"id": 1}, "assignee": {"id": 1341}}, "organization": {"id": 1443}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_ISSUE_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": null}, "resource": {"id": 389, "owner": {"id": 645}, "assignee": {"id": 504}, "project": {"id": 395, "owner": {"id": 703}, "assignee": {"id": 868}}, "task": {"id": 369, "owner": {"id": 908}, "assignee": {"id": 1021}}, "job": {"id": 339, "assignee": {"id": 1129}}, "issue": {"id": 315, "owner": {"id": 21}, "assignee": {"id": 1360}}, "organization": {"id": 1461}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": null}, "resource": {"id": 307, "owner": {"id": 626}, "assignee": {"id": 550}, "project": {"id": 326, "owner": {"id": 764}, "assignee": {"id": 880}}, "task": {"id": 304, "owner": {"id": 977}, "assignee": {"id": 1071}}, "job": {"id": 307, "assignee": {"id": 1126}}, "issue": {"id": 308, "owner": {"id": 1254}, "assignee": {"id": 95}}, "organization": {"id": 1483}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": null}, "resource": {"id": 346, "owner": {"id": 615}, "assignee": {"id": 505}, "project": {"id": 322, "owner": {"id": 730}, "assignee": {"id": 880}}, "task": {"id": 363, "owner": {"id": 955}, "assignee": {"id": 1023}}, "job": {"id": 367, "assignee": {"id": 1129}}, "issue": {"id": 386, "owner": {"id": 1230}, "assignee": {"id": 21}}, "organization": {"id": 1434}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": null}, "resource": {"id": 373, "owner": {"id": 636}, "assignee": {"id": 585}, "project": {"id": 302, "owner": {"id": 706}, "assignee": {"id": 849}}, "task": {"id": 304, "owner": {"id": 996}, "assignee": {"id": 1017}}, "job": {"id": 398, "assignee": {"id": 1151}}, "issue": {"id": 392, "owner": {"id": 1227}, "assignee": {"id": 84}}, "organization": {"id": 1487}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": null}, "resource": {"id": 350, "owner": {"id": 691}, "assignee": {"id": 544}, "project": {"id": 309, "owner": {"id": 738}, "assignee": {"id": 850}}, "task": {"id": 333, "owner": {"id": 949}, "assignee": {"id": 1040}}, "job": {"id": 399, "assignee": {"id": 1168}}, "issue": {"id": 386, "owner": {"id": 1288}, "assignee": {"id": 13}}, "organization": {"id": 1426}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": null}, "resource": {"id": 382, "owner": {"id": 655}, "assignee": {"id": 583}, "project": {"id": 328, "owner": {"id": 731}, "assignee": {"id": 884}}, "task": {"id": 396, "owner": {"id": 989}, "assignee": {"id": 1017}}, "job": {"id": 383, "assignee": {"id": 1138}}, "issue": {"id": 305, "owner": {"id": 1282}, "assignee": {"id": 12}}, "organization": {"id": 1499}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": null}, "resource": {"id": 348, "owner": {"id": 608}, "assignee": {"id": 548}, "project": {"id": 339, "owner": {"id": 799}, "assignee": {"id": 833}}, "task": {"id": 353, "owner": {"id": 992}, "assignee": {"id": 1028}}, "job": {"id": 345, "assignee": {"id": 1143}}, "issue": {"id": 326, "owner": {"id": 1274}, "assignee": {"id": 23}}, "organization": {"id": 1435}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": null}, "resource": {"id": 326, "owner": {"id": 655}, "assignee": {"id": 552}, "project": {"id": 396, "owner": {"id": 752}, "assignee": {"id": 872}}, "task": {"id": 315, "owner": {"id": 942}, "assignee": {"id": 1037}}, "job": {"id": 324, "assignee": {"id": 1140}}, "issue": {"id": 397, "owner": {"id": 1216}, "assignee": {"id": 19}}, "organization": {"id": 1455}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": null}, "resource": {"id": 326, "owner": {"id": 690}, "assignee": {"id": 575}, "project": {"id": 349, "owner": {"id": 728}, "assignee": {"id": 843}}, "task": {"id": 350, "owner": {"id": 936}, "assignee": {"id": 1092}}, "job": {"id": 394, "assignee": {"id": 1117}}, "issue": {"id": 379, "owner": {"id": 1241}, "assignee": {"id": 64}}, "organization": {"id": 1415}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": null}, "resource": {"id": 327, "owner": {"id": 692}, "assignee": {"id": 579}, "project": {"id": 386, "owner": {"id": 768}, "assignee": {"id": 815}}, "task": {"id": 321, "owner": {"id": 928}, "assignee": {"id": 1035}}, "job": {"id": 361, "assignee": {"id": 1162}}, "issue": {"id": 348, "owner": {"id": 1251}, "assignee": {"id": 44}}, "organization": {"id": 1474}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": null}, "resource": {"id": 312, "owner": {"id": 614}, "assignee": {"id": 576}, "project": {"id": 339, "owner": {"id": 705}, "assignee": {"id": 896}}, "task": {"id": 300, "owner": {"id": 909}, "assignee": {"id": 1066}}, "job": {"id": 302, "assignee": {"id": 1126}}, "issue": {"id": 376, "owner": {"id": 1291}, "assignee": {"id": 16}}, "organization": {"id": 1447}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": null}, "resource": {"id": 390, "owner": {"id": 662}, "assignee": {"id": 580}, "project": {"id": 399, "owner": {"id": 788}, "assignee": {"id": 879}}, "task": {"id": 383, "owner": {"id": 975}, "assignee": {"id": 1004}}, "job": {"id": 329, "assignee": {"id": 1101}}, "issue": {"id": 399, "owner": {"id": 1245}, "assignee": {"id": 1339}}, "organization": {"id": 1409}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": null}, "resource": {"id": 335, "owner": {"id": 680}, "assignee": {"id": 547}, "project": {"id": 352, "owner": {"id": 713}, "assignee": {"id": 840}}, "task": {"id": 355, "owner": {"id": 956}, "assignee": {"id": 1021}}, "job": {"id": 361, "assignee": {"id": 1108}}, "issue": {"id": 397, "owner": {"id": 1243}, "assignee": {"id": 1302}}, "organization": {"id": 1485}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": null}, "resource": {"id": 317, "owner": {"id": 649}, "assignee": {"id": 552}, "project": {"id": 387, "owner": {"id": 790}, "assignee": {"id": 812}}, "task": {"id": 373, "owner": {"id": 981}, "assignee": {"id": 1085}}, "job": {"id": 317, "assignee": {"id": 1163}}, "issue": {"id": 316, "owner": {"id": 1267}, "assignee": {"id": 1336}}, "organization": {"id": 1413}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": null}, "resource": {"id": 342, "owner": {"id": 680}, "assignee": {"id": 547}, "project": {"id": 340, "owner": {"id": 741}, "assignee": {"id": 804}}, "task": {"id": 368, "owner": {"id": 986}, "assignee": {"id": 1061}}, "job": {"id": 340, "assignee": {"id": 1102}}, "issue": {"id": 362, "owner": {"id": 1245}, "assignee": {"id": 1377}}, "organization": {"id": 1425}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": null}, "resource": {"id": 397, "owner": {"id": 611}, "assignee": {"id": 563}, "project": {"id": 328, "owner": {"id": 761}, "assignee": {"id": 829}}, "task": {"id": 323, "owner": {"id": 971}, "assignee": {"id": 1035}}, "job": {"id": 378, "assignee": {"id": 1186}}, "issue": {"id": 315, "owner": {"id": 1268}, "assignee": {"id": 1343}}, "organization": {"id": 1470}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": null}, "resource": {"id": 369, "owner": {"id": 660}, "assignee": {"id": 548}, "project": {"id": 391, "owner": {"id": 709}, "assignee": {"id": 878}}, "task": {"id": 334, "owner": {"id": 911}, "assignee": {"id": 1075}}, "job": {"id": 346, "assignee": {"id": 1164}}, "issue": {"id": 378, "owner": {"id": 1202}, "assignee": {"id": 1305}}, "organization": {"id": 1487}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": null}, "resource": {"id": 307, "owner": {"id": 693}, "assignee": {"id": 530}, "project": {"id": 321, "owner": {"id": 771}, "assignee": {"id": 840}}, "task": {"id": 340, "owner": {"id": 900}, "assignee": {"id": 1070}}, "job": {"id": 377, "assignee": {"id": 1196}}, "issue": {"id": 317, "owner": {"id": 1215}, "assignee": {"id": 1312}}, "organization": {"id": 1455}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": null}, "resource": {"id": 303, "owner": {"id": 651}, "assignee": {"id": 520}, "project": {"id": 347, "owner": {"id": 777}, "assignee": {"id": 879}}, "task": {"id": 394, "owner": {"id": 994}, "assignee": {"id": 1031}}, "job": {"id": 316, "assignee": {"id": 1199}}, "issue": {"id": 372, "owner": {"id": 1275}, "assignee": {"id": 1378}}, "organization": {"id": 1454}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": null}, "resource": {"id": 339, "owner": {"id": 667}, "assignee": {"id": 529}, "project": {"id": 390, "owner": {"id": 701}, "assignee": {"id": 803}}, "task": {"id": 352, "owner": {"id": 983}, "assignee": {"id": 1049}}, "job": {"id": 310, "assignee": {"id": 1117}}, "issue": {"id": 375, "owner": {"id": 1275}, "assignee": {"id": 1399}}, "organization": {"id": 1464}}} -} - -test_scope_CREATE_IN_ISSUE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": null}, "resource": {"id": 336, "owner": {"id": 620}, "assignee": {"id": 532}, "project": {"id": 350, "owner": {"id": 786}, "assignee": {"id": 832}}, "task": {"id": 325, "owner": {"id": 972}, "assignee": {"id": 1089}}, "job": {"id": 310, "assignee": {"id": 1130}}, "issue": {"id": 366, "owner": {"id": 1284}, "assignee": {"id": 1377}}, "organization": {"id": 1419}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 367, "owner": {"id": 662}, "assignee": {"id": 582}, "project": {"id": 388, "owner": {"id": 56}, "assignee": {"id": 879}}, "task": {"id": 370, "owner": {"id": 951}, "assignee": {"id": 1059}}, "job": {"id": 374, "assignee": {"id": 1180}}, "issue": {"id": 346, "owner": {"id": 1257}, "assignee": {"id": 1359}}, "organization": {"id": 141}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 386, "owner": {"id": 602}, "assignee": {"id": 565}, "project": {"id": 315, "owner": {"id": 4}, "assignee": {"id": 873}}, "task": {"id": 367, "owner": {"id": 909}, "assignee": {"id": 1094}}, "job": {"id": 321, "assignee": {"id": 1139}}, "issue": {"id": 395, "owner": {"id": 1257}, "assignee": {"id": 1351}}, "organization": {"id": 1460}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "owner": {"id": 651}, "assignee": {"id": 582}, "project": {"id": 373, "owner": {"id": 54}, "assignee": {"id": 824}}, "task": {"id": 368, "owner": {"id": 986}, "assignee": {"id": 1044}}, "job": {"id": 314, "assignee": {"id": 1153}}, "issue": {"id": 316, "owner": {"id": 1241}, "assignee": {"id": 1378}}, "organization": {"id": 122}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 601}, "assignee": {"id": 546}, "project": {"id": 350, "owner": {"id": 32}, "assignee": {"id": 892}}, "task": {"id": 371, "owner": {"id": 903}, "assignee": {"id": 1084}}, "job": {"id": 368, "assignee": {"id": 1184}}, "issue": {"id": 373, "owner": {"id": 1218}, "assignee": {"id": 1398}}, "organization": {"id": 1444}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "owner": {"id": 691}, "assignee": {"id": 519}, "project": {"id": 336, "owner": {"id": 66}, "assignee": {"id": 812}}, "task": {"id": 349, "owner": {"id": 955}, "assignee": {"id": 1085}}, "job": {"id": 350, "assignee": {"id": 1141}}, "issue": {"id": 373, "owner": {"id": 1257}, "assignee": {"id": 1305}}, "organization": {"id": 133}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 343, "owner": {"id": 605}, "assignee": {"id": 576}, "project": {"id": 349, "owner": {"id": 16}, "assignee": {"id": 863}}, "task": {"id": 353, "owner": {"id": 991}, "assignee": {"id": 1062}}, "job": {"id": 367, "assignee": {"id": 1183}}, "issue": {"id": 347, "owner": {"id": 1266}, "assignee": {"id": 1332}}, "organization": {"id": 1446}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 632}, "assignee": {"id": 551}, "project": {"id": 396, "owner": {"id": 28}, "assignee": {"id": 880}}, "task": {"id": 397, "owner": {"id": 975}, "assignee": {"id": 1086}}, "job": {"id": 327, "assignee": {"id": 1128}}, "issue": {"id": 394, "owner": {"id": 1275}, "assignee": {"id": 1312}}, "organization": {"id": 179}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 683}, "assignee": {"id": 539}, "project": {"id": 335, "owner": {"id": 62}, "assignee": {"id": 803}}, "task": {"id": 378, "owner": {"id": 904}, "assignee": {"id": 1053}}, "job": {"id": 337, "assignee": {"id": 1135}}, "issue": {"id": 349, "owner": {"id": 1208}, "assignee": {"id": 1354}}, "organization": {"id": 1481}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 300, "owner": {"id": 628}, "assignee": {"id": 580}, "project": {"id": 342, "owner": {"id": 77}, "assignee": {"id": 895}}, "task": {"id": 391, "owner": {"id": 989}, "assignee": {"id": 1092}}, "job": {"id": 329, "assignee": {"id": 1148}}, "issue": {"id": 350, "owner": {"id": 1265}, "assignee": {"id": 1327}}, "organization": {"id": 119}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"id": 356, "owner": {"id": 651}, "assignee": {"id": 555}, "project": {"id": 337, "owner": {"id": 10}, "assignee": {"id": 831}}, "task": {"id": 331, "owner": {"id": 905}, "assignee": {"id": 1063}}, "job": {"id": 329, "assignee": {"id": 1197}}, "issue": {"id": 391, "owner": {"id": 1205}, "assignee": {"id": 1393}}, "organization": {"id": 1423}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 658}, "assignee": {"id": 501}, "project": {"id": 384, "owner": {"id": 58}, "assignee": {"id": 837}}, "task": {"id": 357, "owner": {"id": 914}, "assignee": {"id": 1058}}, "job": {"id": 346, "assignee": {"id": 1195}}, "issue": {"id": 309, "owner": {"id": 1288}, "assignee": {"id": 1375}}, "organization": {"id": 143}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 375, "owner": {"id": 695}, "assignee": {"id": 537}, "project": {"id": 376, "owner": {"id": 98}, "assignee": {"id": 886}}, "task": {"id": 342, "owner": {"id": 902}, "assignee": {"id": 1069}}, "job": {"id": 378, "assignee": {"id": 1183}}, "issue": {"id": 301, "owner": {"id": 1274}, "assignee": {"id": 1308}}, "organization": {"id": 1450}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 691}, "assignee": {"id": 521}, "project": {"id": 358, "owner": {"id": 75}, "assignee": {"id": 868}}, "task": {"id": 337, "owner": {"id": 940}, "assignee": {"id": 1081}}, "job": {"id": 374, "assignee": {"id": 1147}}, "issue": {"id": 304, "owner": {"id": 1293}, "assignee": {"id": 1392}}, "organization": {"id": 144}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "owner": {"id": 645}, "assignee": {"id": 522}, "project": {"id": 356, "owner": {"id": 79}, "assignee": {"id": 816}}, "task": {"id": 384, "owner": {"id": 966}, "assignee": {"id": 1002}}, "job": {"id": 396, "assignee": {"id": 1140}}, "issue": {"id": 340, "owner": {"id": 1292}, "assignee": {"id": 1370}}, "organization": {"id": 1460}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 684}, "assignee": {"id": 541}, "project": {"id": 315, "owner": {"id": 59}, "assignee": {"id": 836}}, "task": {"id": 398, "owner": {"id": 978}, "assignee": {"id": 1043}}, "job": {"id": 347, "assignee": {"id": 1185}}, "issue": {"id": 392, "owner": {"id": 1278}, "assignee": {"id": 1365}}, "organization": {"id": 106}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "owner": {"id": 686}, "assignee": {"id": 516}, "project": {"id": 397, "owner": {"id": 54}, "assignee": {"id": 848}}, "task": {"id": 322, "owner": {"id": 998}, "assignee": {"id": 1097}}, "job": {"id": 392, "assignee": {"id": 1136}}, "issue": {"id": 309, "owner": {"id": 1211}, "assignee": {"id": 1382}}, "organization": {"id": 1440}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 361, "owner": {"id": 649}, "assignee": {"id": 531}, "project": {"id": 333, "owner": {"id": 12}, "assignee": {"id": 851}}, "task": {"id": 312, "owner": {"id": 904}, "assignee": {"id": 1062}}, "job": {"id": 381, "assignee": {"id": 1183}}, "issue": {"id": 314, "owner": {"id": 1268}, "assignee": {"id": 1380}}, "organization": {"id": 179}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 334, "owner": {"id": 607}, "assignee": {"id": 573}, "project": {"id": 313, "owner": {"id": 37}, "assignee": {"id": 869}}, "task": {"id": 371, "owner": {"id": 996}, "assignee": {"id": 1060}}, "job": {"id": 378, "assignee": {"id": 1161}}, "issue": {"id": 353, "owner": {"id": 1259}, "assignee": {"id": 1348}}, "organization": {"id": 1462}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 345, "owner": {"id": 671}, "assignee": {"id": 559}, "project": {"id": 318, "owner": {"id": 0}, "assignee": {"id": 807}}, "task": {"id": 317, "owner": {"id": 985}, "assignee": {"id": 1051}}, "job": {"id": 335, "assignee": {"id": 1114}}, "issue": {"id": 394, "owner": {"id": 1269}, "assignee": {"id": 1374}}, "organization": {"id": 134}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 305, "owner": {"id": 662}, "assignee": {"id": 506}, "project": {"id": 385, "owner": {"id": 48}, "assignee": {"id": 831}}, "task": {"id": 352, "owner": {"id": 990}, "assignee": {"id": 1042}}, "job": {"id": 379, "assignee": {"id": 1142}}, "issue": {"id": 305, "owner": {"id": 1206}, "assignee": {"id": 1399}}, "organization": {"id": 1471}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 622}, "assignee": {"id": 559}, "project": {"id": 313, "owner": {"id": 41}, "assignee": {"id": 881}}, "task": {"id": 337, "owner": {"id": 958}, "assignee": {"id": 1043}}, "job": {"id": 310, "assignee": {"id": 1150}}, "issue": {"id": 368, "owner": {"id": 1249}, "assignee": {"id": 1334}}, "organization": {"id": 124}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 339, "owner": {"id": 654}, "assignee": {"id": 582}, "project": {"id": 315, "owner": {"id": 14}, "assignee": {"id": 887}}, "task": {"id": 318, "owner": {"id": 918}, "assignee": {"id": 1034}}, "job": {"id": 381, "assignee": {"id": 1114}}, "issue": {"id": 394, "owner": {"id": 1222}, "assignee": {"id": 1306}}, "organization": {"id": 1469}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "owner": {"id": 634}, "assignee": {"id": 521}, "project": {"id": 312, "owner": {"id": 40}, "assignee": {"id": 879}}, "task": {"id": 392, "owner": {"id": 961}, "assignee": {"id": 1065}}, "job": {"id": 370, "assignee": {"id": 1173}}, "issue": {"id": 304, "owner": {"id": 1251}, "assignee": {"id": 1317}}, "organization": {"id": 129}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "owner": {"id": 629}, "assignee": {"id": 544}, "project": {"id": 340, "owner": {"id": 55}, "assignee": {"id": 834}}, "task": {"id": 391, "owner": {"id": 921}, "assignee": {"id": 1072}}, "job": {"id": 334, "assignee": {"id": 1110}}, "issue": {"id": 347, "owner": {"id": 1240}, "assignee": {"id": 1378}}, "organization": {"id": 1400}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "owner": {"id": 687}, "assignee": {"id": 562}, "project": {"id": 389, "owner": {"id": 28}, "assignee": {"id": 891}}, "task": {"id": 320, "owner": {"id": 937}, "assignee": {"id": 1005}}, "job": {"id": 369, "assignee": {"id": 1198}}, "issue": {"id": 302, "owner": {"id": 1295}, "assignee": {"id": 1399}}, "organization": {"id": 137}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "owner": {"id": 697}, "assignee": {"id": 566}, "project": {"id": 393, "owner": {"id": 26}, "assignee": {"id": 825}}, "task": {"id": 394, "owner": {"id": 998}, "assignee": {"id": 1037}}, "job": {"id": 379, "assignee": {"id": 1154}}, "issue": {"id": 391, "owner": {"id": 1216}, "assignee": {"id": 1372}}, "organization": {"id": 1435}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 343, "owner": {"id": 662}, "assignee": {"id": 572}, "project": {"id": 322, "owner": {"id": 76}, "assignee": {"id": 802}}, "task": {"id": 346, "owner": {"id": 906}, "assignee": {"id": 1096}}, "job": {"id": 353, "assignee": {"id": 1159}}, "issue": {"id": 377, "owner": {"id": 1265}, "assignee": {"id": 1309}}, "organization": {"id": 162}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 640}, "assignee": {"id": 510}, "project": {"id": 343, "owner": {"id": 89}, "assignee": {"id": 820}}, "task": {"id": 325, "owner": {"id": 946}, "assignee": {"id": 1048}}, "job": {"id": 326, "assignee": {"id": 1148}}, "issue": {"id": 376, "owner": {"id": 1203}, "assignee": {"id": 1367}}, "organization": {"id": 1497}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 379, "owner": {"id": 617}, "assignee": {"id": 530}, "project": {"id": 358, "owner": {"id": 66}, "assignee": {"id": 813}}, "task": {"id": 310, "owner": {"id": 908}, "assignee": {"id": 1006}}, "job": {"id": 303, "assignee": {"id": 1150}}, "issue": {"id": 381, "owner": {"id": 1262}, "assignee": {"id": 1338}}, "organization": {"id": 177}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 352, "owner": {"id": 656}, "assignee": {"id": 528}, "project": {"id": 305, "owner": {"id": 87}, "assignee": {"id": 885}}, "task": {"id": 365, "owner": {"id": 961}, "assignee": {"id": 1071}}, "job": {"id": 337, "assignee": {"id": 1125}}, "issue": {"id": 362, "owner": {"id": 1222}, "assignee": {"id": 1324}}, "organization": {"id": 1482}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 602}, "assignee": {"id": 580}, "project": {"id": 309, "owner": {"id": 6}, "assignee": {"id": 888}}, "task": {"id": 333, "owner": {"id": 991}, "assignee": {"id": 1046}}, "job": {"id": 396, "assignee": {"id": 1130}}, "issue": {"id": 350, "owner": {"id": 1254}, "assignee": {"id": 1360}}, "organization": {"id": 180}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 624}, "assignee": {"id": 588}, "project": {"id": 341, "owner": {"id": 26}, "assignee": {"id": 895}}, "task": {"id": 380, "owner": {"id": 910}, "assignee": {"id": 1065}}, "job": {"id": 306, "assignee": {"id": 1199}}, "issue": {"id": 390, "owner": {"id": 1209}, "assignee": {"id": 1342}}, "organization": {"id": 1441}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "owner": {"id": 639}, "assignee": {"id": 595}, "project": {"id": 337, "owner": {"id": 78}, "assignee": {"id": 876}}, "task": {"id": 391, "owner": {"id": 936}, "assignee": {"id": 1041}}, "job": {"id": 350, "assignee": {"id": 1156}}, "issue": {"id": 324, "owner": {"id": 1285}, "assignee": {"id": 1310}}, "organization": {"id": 133}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 607}, "assignee": {"id": 592}, "project": {"id": 389, "owner": {"id": 46}, "assignee": {"id": 881}}, "task": {"id": 388, "owner": {"id": 902}, "assignee": {"id": 1083}}, "job": {"id": 381, "assignee": {"id": 1155}}, "issue": {"id": 314, "owner": {"id": 1252}, "assignee": {"id": 1381}}, "organization": {"id": 1407}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "owner": {"id": 640}, "assignee": {"id": 528}, "project": {"id": 371, "owner": {"id": 47}, "assignee": {"id": 878}}, "task": {"id": 316, "owner": {"id": 999}, "assignee": {"id": 1065}}, "job": {"id": 329, "assignee": {"id": 1180}}, "issue": {"id": 325, "owner": {"id": 1215}, "assignee": {"id": 1398}}, "organization": {"id": 196}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "owner": {"id": 648}, "assignee": {"id": 562}, "project": {"id": 355, "owner": {"id": 39}, "assignee": {"id": 898}}, "task": {"id": 377, "owner": {"id": 947}, "assignee": {"id": 1031}}, "job": {"id": 377, "assignee": {"id": 1147}}, "issue": {"id": 360, "owner": {"id": 1210}, "assignee": {"id": 1363}}, "organization": {"id": 1461}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 603}, "assignee": {"id": 567}, "project": {"id": 356, "owner": {"id": 11}, "assignee": {"id": 894}}, "task": {"id": 361, "owner": {"id": 936}, "assignee": {"id": 1046}}, "job": {"id": 360, "assignee": {"id": 1184}}, "issue": {"id": 314, "owner": {"id": 1289}, "assignee": {"id": 1360}}, "organization": {"id": 102}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 687}, "assignee": {"id": 589}, "project": {"id": 316, "owner": {"id": 53}, "assignee": {"id": 831}}, "task": {"id": 315, "owner": {"id": 942}, "assignee": {"id": 1002}}, "job": {"id": 360, "assignee": {"id": 1157}}, "issue": {"id": 326, "owner": {"id": 1226}, "assignee": {"id": 1392}}, "organization": {"id": 1484}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 334, "owner": {"id": 648}, "assignee": {"id": 532}, "project": {"id": 398, "owner": {"id": 87}, "assignee": {"id": 886}}, "task": {"id": 331, "owner": {"id": 912}, "assignee": {"id": 1098}}, "job": {"id": 330, "assignee": {"id": 1170}}, "issue": {"id": 339, "owner": {"id": 1255}, "assignee": {"id": 1348}}, "organization": {"id": 171}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 668}, "assignee": {"id": 561}, "project": {"id": 329, "owner": {"id": 76}, "assignee": {"id": 832}}, "task": {"id": 385, "owner": {"id": 930}, "assignee": {"id": 1096}}, "job": {"id": 393, "assignee": {"id": 1184}}, "issue": {"id": 335, "owner": {"id": 1247}, "assignee": {"id": 1314}}, "organization": {"id": 1430}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 379, "owner": {"id": 681}, "assignee": {"id": 503}, "project": {"id": 345, "owner": {"id": 96}, "assignee": {"id": 860}}, "task": {"id": 383, "owner": {"id": 985}, "assignee": {"id": 1078}}, "job": {"id": 363, "assignee": {"id": 1117}}, "issue": {"id": 343, "owner": {"id": 1211}, "assignee": {"id": 1348}}, "organization": {"id": 136}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 668}, "assignee": {"id": 534}, "project": {"id": 355, "owner": {"id": 68}, "assignee": {"id": 852}}, "task": {"id": 337, "owner": {"id": 918}, "assignee": {"id": 1054}}, "job": {"id": 357, "assignee": {"id": 1184}}, "issue": {"id": 383, "owner": {"id": 1221}, "assignee": {"id": 1310}}, "organization": {"id": 1459}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "owner": {"id": 683}, "assignee": {"id": 575}, "project": {"id": 333, "owner": {"id": 47}, "assignee": {"id": 857}}, "task": {"id": 348, "owner": {"id": 987}, "assignee": {"id": 1035}}, "job": {"id": 371, "assignee": {"id": 1149}}, "issue": {"id": 363, "owner": {"id": 1235}, "assignee": {"id": 1367}}, "organization": {"id": 141}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "owner": {"id": 669}, "assignee": {"id": 526}, "project": {"id": 339, "owner": {"id": 70}, "assignee": {"id": 830}}, "task": {"id": 379, "owner": {"id": 956}, "assignee": {"id": 1079}}, "job": {"id": 350, "assignee": {"id": 1127}}, "issue": {"id": 371, "owner": {"id": 1267}, "assignee": {"id": 1306}}, "organization": {"id": 1460}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 61, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 681}, "assignee": {"id": 568}, "project": {"id": 385, "owner": {"id": 61}, "assignee": {"id": 839}}, "task": {"id": 302, "owner": {"id": 944}, "assignee": {"id": 1065}}, "job": {"id": 397, "assignee": {"id": 1188}}, "issue": {"id": 343, "owner": {"id": 1264}, "assignee": {"id": 1347}}, "organization": {"id": 198}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "owner": {"id": 658}, "assignee": {"id": 517}, "project": {"id": 398, "owner": {"id": 90}, "assignee": {"id": 870}}, "task": {"id": 329, "owner": {"id": 981}, "assignee": {"id": 1057}}, "job": {"id": 300, "assignee": {"id": 1149}}, "issue": {"id": 376, "owner": {"id": 1278}, "assignee": {"id": 1335}}, "organization": {"id": 1495}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 339, "owner": {"id": 615}, "assignee": {"id": 517}, "project": {"id": 360, "owner": {"id": 54}, "assignee": {"id": 882}}, "task": {"id": 305, "owner": {"id": 918}, "assignee": {"id": 1091}}, "job": {"id": 363, "assignee": {"id": 1145}}, "issue": {"id": 370, "owner": {"id": 1232}, "assignee": {"id": 1324}}, "organization": {"id": 145}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 618}, "assignee": {"id": 535}, "project": {"id": 351, "owner": {"id": 96}, "assignee": {"id": 899}}, "task": {"id": 310, "owner": {"id": 921}, "assignee": {"id": 1058}}, "job": {"id": 362, "assignee": {"id": 1123}}, "issue": {"id": 313, "owner": {"id": 1219}, "assignee": {"id": 1387}}, "organization": {"id": 1402}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 672}, "assignee": {"id": 530}, "project": {"id": 398, "owner": {"id": 25}, "assignee": {"id": 804}}, "task": {"id": 325, "owner": {"id": 962}, "assignee": {"id": 1087}}, "job": {"id": 376, "assignee": {"id": 1197}}, "issue": {"id": 309, "owner": {"id": 1273}, "assignee": {"id": 1315}}, "organization": {"id": 114}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 392, "owner": {"id": 606}, "assignee": {"id": 574}, "project": {"id": 383, "owner": {"id": 52}, "assignee": {"id": 882}}, "task": {"id": 373, "owner": {"id": 988}, "assignee": {"id": 1048}}, "job": {"id": 380, "assignee": {"id": 1197}}, "issue": {"id": 351, "owner": {"id": 1207}, "assignee": {"id": 1381}}, "organization": {"id": 1453}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 369, "owner": {"id": 697}, "assignee": {"id": 534}, "project": {"id": 388, "owner": {"id": 712}, "assignee": {"id": 12}}, "task": {"id": 340, "owner": {"id": 934}, "assignee": {"id": 1094}}, "job": {"id": 370, "assignee": {"id": 1170}}, "issue": {"id": 337, "owner": {"id": 1234}, "assignee": {"id": 1336}}, "organization": {"id": 158}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 363, "owner": {"id": 622}, "assignee": {"id": 572}, "project": {"id": 320, "owner": {"id": 779}, "assignee": {"id": 9}}, "task": {"id": 345, "owner": {"id": 919}, "assignee": {"id": 1081}}, "job": {"id": 384, "assignee": {"id": 1129}}, "issue": {"id": 301, "owner": {"id": 1247}, "assignee": {"id": 1346}}, "organization": {"id": 1446}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 665}, "assignee": {"id": 567}, "project": {"id": 309, "owner": {"id": 731}, "assignee": {"id": 34}}, "task": {"id": 353, "owner": {"id": 922}, "assignee": {"id": 1087}}, "job": {"id": 334, "assignee": {"id": 1127}}, "issue": {"id": 301, "owner": {"id": 1238}, "assignee": {"id": 1398}}, "organization": {"id": 139}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "owner": {"id": 683}, "assignee": {"id": 551}, "project": {"id": 314, "owner": {"id": 793}, "assignee": {"id": 65}}, "task": {"id": 317, "owner": {"id": 985}, "assignee": {"id": 1014}}, "job": {"id": 360, "assignee": {"id": 1110}}, "issue": {"id": 392, "owner": {"id": 1246}, "assignee": {"id": 1351}}, "organization": {"id": 1428}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "owner": {"id": 612}, "assignee": {"id": 549}, "project": {"id": 312, "owner": {"id": 761}, "assignee": {"id": 50}}, "task": {"id": 382, "owner": {"id": 913}, "assignee": {"id": 1019}}, "job": {"id": 367, "assignee": {"id": 1117}}, "issue": {"id": 327, "owner": {"id": 1220}, "assignee": {"id": 1376}}, "organization": {"id": 191}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "owner": {"id": 615}, "assignee": {"id": 568}, "project": {"id": 331, "owner": {"id": 746}, "assignee": {"id": 41}}, "task": {"id": 362, "owner": {"id": 944}, "assignee": {"id": 1081}}, "job": {"id": 358, "assignee": {"id": 1186}}, "issue": {"id": 337, "owner": {"id": 1281}, "assignee": {"id": 1303}}, "organization": {"id": 1425}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 338, "owner": {"id": 674}, "assignee": {"id": 510}, "project": {"id": 307, "owner": {"id": 719}, "assignee": {"id": 9}}, "task": {"id": 301, "owner": {"id": 900}, "assignee": {"id": 1028}}, "job": {"id": 381, "assignee": {"id": 1136}}, "issue": {"id": 308, "owner": {"id": 1299}, "assignee": {"id": 1328}}, "organization": {"id": 108}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 326, "owner": {"id": 650}, "assignee": {"id": 530}, "project": {"id": 336, "owner": {"id": 791}, "assignee": {"id": 66}}, "task": {"id": 331, "owner": {"id": 959}, "assignee": {"id": 1050}}, "job": {"id": 329, "assignee": {"id": 1117}}, "issue": {"id": 335, "owner": {"id": 1273}, "assignee": {"id": 1317}}, "organization": {"id": 1400}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 316, "owner": {"id": 663}, "assignee": {"id": 591}, "project": {"id": 361, "owner": {"id": 755}, "assignee": {"id": 14}}, "task": {"id": 300, "owner": {"id": 983}, "assignee": {"id": 1058}}, "job": {"id": 320, "assignee": {"id": 1114}}, "issue": {"id": 388, "owner": {"id": 1221}, "assignee": {"id": 1377}}, "organization": {"id": 120}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 331, "owner": {"id": 611}, "assignee": {"id": 507}, "project": {"id": 326, "owner": {"id": 717}, "assignee": {"id": 95}}, "task": {"id": 353, "owner": {"id": 940}, "assignee": {"id": 1046}}, "job": {"id": 388, "assignee": {"id": 1128}}, "issue": {"id": 326, "owner": {"id": 1235}, "assignee": {"id": 1346}}, "organization": {"id": 1487}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 688}, "assignee": {"id": 513}, "project": {"id": 381, "owner": {"id": 743}, "assignee": {"id": 59}}, "task": {"id": 351, "owner": {"id": 922}, "assignee": {"id": 1091}}, "job": {"id": 348, "assignee": {"id": 1125}}, "issue": {"id": 399, "owner": {"id": 1269}, "assignee": {"id": 1357}}, "organization": {"id": 140}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 351, "owner": {"id": 656}, "assignee": {"id": 594}, "project": {"id": 384, "owner": {"id": 796}, "assignee": {"id": 34}}, "task": {"id": 369, "owner": {"id": 968}, "assignee": {"id": 1034}}, "job": {"id": 380, "assignee": {"id": 1106}}, "issue": {"id": 300, "owner": {"id": 1233}, "assignee": {"id": 1323}}, "organization": {"id": 1408}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "owner": {"id": 683}, "assignee": {"id": 553}, "project": {"id": 301, "owner": {"id": 769}, "assignee": {"id": 86}}, "task": {"id": 390, "owner": {"id": 926}, "assignee": {"id": 1020}}, "job": {"id": 353, "assignee": {"id": 1191}}, "issue": {"id": 336, "owner": {"id": 1259}, "assignee": {"id": 1384}}, "organization": {"id": 193}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 625}, "assignee": {"id": 528}, "project": {"id": 345, "owner": {"id": 707}, "assignee": {"id": 12}}, "task": {"id": 347, "owner": {"id": 969}, "assignee": {"id": 1094}}, "job": {"id": 384, "assignee": {"id": 1141}}, "issue": {"id": 382, "owner": {"id": 1256}, "assignee": {"id": 1393}}, "organization": {"id": 1478}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "owner": {"id": 698}, "assignee": {"id": 522}, "project": {"id": 373, "owner": {"id": 732}, "assignee": {"id": 75}}, "task": {"id": 362, "owner": {"id": 962}, "assignee": {"id": 1001}}, "job": {"id": 326, "assignee": {"id": 1131}}, "issue": {"id": 395, "owner": {"id": 1280}, "assignee": {"id": 1310}}, "organization": {"id": 141}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 604}, "assignee": {"id": 592}, "project": {"id": 322, "owner": {"id": 711}, "assignee": {"id": 39}}, "task": {"id": 378, "owner": {"id": 950}, "assignee": {"id": 1091}}, "job": {"id": 353, "assignee": {"id": 1140}}, "issue": {"id": 307, "owner": {"id": 1210}, "assignee": {"id": 1336}}, "organization": {"id": 1409}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 343, "owner": {"id": 621}, "assignee": {"id": 580}, "project": {"id": 344, "owner": {"id": 754}, "assignee": {"id": 15}}, "task": {"id": 365, "owner": {"id": 908}, "assignee": {"id": 1049}}, "job": {"id": 386, "assignee": {"id": 1103}}, "issue": {"id": 341, "owner": {"id": 1233}, "assignee": {"id": 1387}}, "organization": {"id": 170}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 323, "owner": {"id": 661}, "assignee": {"id": 516}, "project": {"id": 350, "owner": {"id": 726}, "assignee": {"id": 51}}, "task": {"id": 309, "owner": {"id": 907}, "assignee": {"id": 1015}}, "job": {"id": 388, "assignee": {"id": 1105}}, "issue": {"id": 341, "owner": {"id": 1237}, "assignee": {"id": 1370}}, "organization": {"id": 1418}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 326, "owner": {"id": 621}, "assignee": {"id": 516}, "project": {"id": 379, "owner": {"id": 700}, "assignee": {"id": 9}}, "task": {"id": 316, "owner": {"id": 924}, "assignee": {"id": 1099}}, "job": {"id": 381, "assignee": {"id": 1179}}, "issue": {"id": 349, "owner": {"id": 1244}, "assignee": {"id": 1363}}, "organization": {"id": 108}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 661}, "assignee": {"id": 587}, "project": {"id": 356, "owner": {"id": 710}, "assignee": {"id": 91}}, "task": {"id": 349, "owner": {"id": 951}, "assignee": {"id": 1005}}, "job": {"id": 312, "assignee": {"id": 1186}}, "issue": {"id": 359, "owner": {"id": 1220}, "assignee": {"id": 1308}}, "organization": {"id": 1493}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 610}, "assignee": {"id": 596}, "project": {"id": 390, "owner": {"id": 747}, "assignee": {"id": 23}}, "task": {"id": 332, "owner": {"id": 915}, "assignee": {"id": 1032}}, "job": {"id": 340, "assignee": {"id": 1104}}, "issue": {"id": 337, "owner": {"id": 1244}, "assignee": {"id": 1322}}, "organization": {"id": 105}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 353, "owner": {"id": 675}, "assignee": {"id": 514}, "project": {"id": 307, "owner": {"id": 783}, "assignee": {"id": 26}}, "task": {"id": 307, "owner": {"id": 921}, "assignee": {"id": 1011}}, "job": {"id": 353, "assignee": {"id": 1149}}, "issue": {"id": 332, "owner": {"id": 1274}, "assignee": {"id": 1330}}, "organization": {"id": 1403}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "owner": {"id": 649}, "assignee": {"id": 544}, "project": {"id": 347, "owner": {"id": 710}, "assignee": {"id": 81}}, "task": {"id": 396, "owner": {"id": 906}, "assignee": {"id": 1039}}, "job": {"id": 313, "assignee": {"id": 1155}}, "issue": {"id": 378, "owner": {"id": 1276}, "assignee": {"id": 1389}}, "organization": {"id": 124}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "owner": {"id": 639}, "assignee": {"id": 545}, "project": {"id": 350, "owner": {"id": 708}, "assignee": {"id": 14}}, "task": {"id": 346, "owner": {"id": 919}, "assignee": {"id": 1045}}, "job": {"id": 391, "assignee": {"id": 1195}}, "issue": {"id": 355, "owner": {"id": 1282}, "assignee": {"id": 1361}}, "organization": {"id": 1461}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "owner": {"id": 654}, "assignee": {"id": 569}, "project": {"id": 301, "owner": {"id": 715}, "assignee": {"id": 42}}, "task": {"id": 358, "owner": {"id": 995}, "assignee": {"id": 1052}}, "job": {"id": 327, "assignee": {"id": 1133}}, "issue": {"id": 350, "owner": {"id": 1249}, "assignee": {"id": 1333}}, "organization": {"id": 178}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 669}, "assignee": {"id": 522}, "project": {"id": 371, "owner": {"id": 716}, "assignee": {"id": 22}}, "task": {"id": 348, "owner": {"id": 935}, "assignee": {"id": 1073}}, "job": {"id": 308, "assignee": {"id": 1150}}, "issue": {"id": 356, "owner": {"id": 1253}, "assignee": {"id": 1357}}, "organization": {"id": 1429}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 387, "owner": {"id": 693}, "assignee": {"id": 529}, "project": {"id": 350, "owner": {"id": 705}, "assignee": {"id": 47}}, "task": {"id": 335, "owner": {"id": 907}, "assignee": {"id": 1065}}, "job": {"id": 355, "assignee": {"id": 1179}}, "issue": {"id": 387, "owner": {"id": 1291}, "assignee": {"id": 1324}}, "organization": {"id": 181}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 333, "owner": {"id": 696}, "assignee": {"id": 543}, "project": {"id": 313, "owner": {"id": 789}, "assignee": {"id": 68}}, "task": {"id": 347, "owner": {"id": 950}, "assignee": {"id": 1064}}, "job": {"id": 360, "assignee": {"id": 1180}}, "issue": {"id": 363, "owner": {"id": 1225}, "assignee": {"id": 1344}}, "organization": {"id": 1433}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 391, "owner": {"id": 603}, "assignee": {"id": 533}, "project": {"id": 369, "owner": {"id": 782}, "assignee": {"id": 25}}, "task": {"id": 343, "owner": {"id": 997}, "assignee": {"id": 1027}}, "job": {"id": 374, "assignee": {"id": 1185}}, "issue": {"id": 314, "owner": {"id": 1229}, "assignee": {"id": 1367}}, "organization": {"id": 155}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 605}, "assignee": {"id": 577}, "project": {"id": 348, "owner": {"id": 723}, "assignee": {"id": 20}}, "task": {"id": 357, "owner": {"id": 960}, "assignee": {"id": 1064}}, "job": {"id": 360, "assignee": {"id": 1175}}, "issue": {"id": 347, "owner": {"id": 1257}, "assignee": {"id": 1366}}, "organization": {"id": 1497}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 343, "owner": {"id": 656}, "assignee": {"id": 583}, "project": {"id": 395, "owner": {"id": 737}, "assignee": {"id": 37}}, "task": {"id": 315, "owner": {"id": 967}, "assignee": {"id": 1019}}, "job": {"id": 349, "assignee": {"id": 1141}}, "issue": {"id": 350, "owner": {"id": 1279}, "assignee": {"id": 1347}}, "organization": {"id": 194}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 381, "owner": {"id": 678}, "assignee": {"id": 596}, "project": {"id": 322, "owner": {"id": 738}, "assignee": {"id": 22}}, "task": {"id": 331, "owner": {"id": 927}, "assignee": {"id": 1008}}, "job": {"id": 333, "assignee": {"id": 1117}}, "issue": {"id": 393, "owner": {"id": 1223}, "assignee": {"id": 1328}}, "organization": {"id": 1496}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "owner": {"id": 690}, "assignee": {"id": 562}, "project": {"id": 347, "owner": {"id": 740}, "assignee": {"id": 49}}, "task": {"id": 389, "owner": {"id": 953}, "assignee": {"id": 1043}}, "job": {"id": 389, "assignee": {"id": 1105}}, "issue": {"id": 386, "owner": {"id": 1268}, "assignee": {"id": 1351}}, "organization": {"id": 119}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 666}, "assignee": {"id": 591}, "project": {"id": 324, "owner": {"id": 709}, "assignee": {"id": 62}}, "task": {"id": 375, "owner": {"id": 970}, "assignee": {"id": 1065}}, "job": {"id": 321, "assignee": {"id": 1173}}, "issue": {"id": 384, "owner": {"id": 1287}, "assignee": {"id": 1369}}, "organization": {"id": 1450}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "owner": {"id": 623}, "assignee": {"id": 543}, "project": {"id": 323, "owner": {"id": 791}, "assignee": {"id": 70}}, "task": {"id": 323, "owner": {"id": 921}, "assignee": {"id": 1052}}, "job": {"id": 301, "assignee": {"id": 1161}}, "issue": {"id": 373, "owner": {"id": 1278}, "assignee": {"id": 1337}}, "organization": {"id": 194}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "owner": {"id": 638}, "assignee": {"id": 519}, "project": {"id": 328, "owner": {"id": 718}, "assignee": {"id": 35}}, "task": {"id": 369, "owner": {"id": 904}, "assignee": {"id": 1063}}, "job": {"id": 362, "assignee": {"id": 1114}}, "issue": {"id": 359, "owner": {"id": 1213}, "assignee": {"id": 1395}}, "organization": {"id": 1462}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 396, "owner": {"id": 665}, "assignee": {"id": 556}, "project": {"id": 323, "owner": {"id": 742}, "assignee": {"id": 85}}, "task": {"id": 315, "owner": {"id": 926}, "assignee": {"id": 1037}}, "job": {"id": 391, "assignee": {"id": 1186}}, "issue": {"id": 362, "owner": {"id": 1231}, "assignee": {"id": 1346}}, "organization": {"id": 101}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 686}, "assignee": {"id": 563}, "project": {"id": 386, "owner": {"id": 737}, "assignee": {"id": 63}}, "task": {"id": 333, "owner": {"id": 942}, "assignee": {"id": 1080}}, "job": {"id": 305, "assignee": {"id": 1133}}, "issue": {"id": 320, "owner": {"id": 1291}, "assignee": {"id": 1379}}, "organization": {"id": 1417}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 354, "owner": {"id": 623}, "assignee": {"id": 518}, "project": {"id": 391, "owner": {"id": 747}, "assignee": {"id": 20}}, "task": {"id": 392, "owner": {"id": 913}, "assignee": {"id": 1032}}, "job": {"id": 336, "assignee": {"id": 1128}}, "issue": {"id": 304, "owner": {"id": 1265}, "assignee": {"id": 1326}}, "organization": {"id": 106}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 345, "owner": {"id": 695}, "assignee": {"id": 578}, "project": {"id": 364, "owner": {"id": 772}, "assignee": {"id": 89}}, "task": {"id": 399, "owner": {"id": 948}, "assignee": {"id": 1053}}, "job": {"id": 391, "assignee": {"id": 1123}}, "issue": {"id": 342, "owner": {"id": 1295}, "assignee": {"id": 1399}}, "organization": {"id": 1467}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 315, "owner": {"id": 693}, "assignee": {"id": 539}, "project": {"id": 333, "owner": {"id": 773}, "assignee": {"id": 98}}, "task": {"id": 314, "owner": {"id": 918}, "assignee": {"id": 1035}}, "job": {"id": 393, "assignee": {"id": 1181}}, "issue": {"id": 331, "owner": {"id": 1239}, "assignee": {"id": 1369}}, "organization": {"id": 128}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 605}, "assignee": {"id": 567}, "project": {"id": 366, "owner": {"id": 787}, "assignee": {"id": 17}}, "task": {"id": 373, "owner": {"id": 917}, "assignee": {"id": 1006}}, "job": {"id": 313, "assignee": {"id": 1123}}, "issue": {"id": 362, "owner": {"id": 1271}, "assignee": {"id": 1368}}, "organization": {"id": 1495}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "owner": {"id": 600}, "assignee": {"id": 568}, "project": {"id": 329, "owner": {"id": 789}, "assignee": {"id": 13}}, "task": {"id": 301, "owner": {"id": 918}, "assignee": {"id": 1009}}, "job": {"id": 339, "assignee": {"id": 1138}}, "issue": {"id": 342, "owner": {"id": 1205}, "assignee": {"id": 1373}}, "organization": {"id": 179}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "owner": {"id": 638}, "assignee": {"id": 521}, "project": {"id": 356, "owner": {"id": 733}, "assignee": {"id": 88}}, "task": {"id": 395, "owner": {"id": 958}, "assignee": {"id": 1050}}, "job": {"id": 336, "assignee": {"id": 1110}}, "issue": {"id": 303, "owner": {"id": 1231}, "assignee": {"id": 1353}}, "organization": {"id": 1412}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 675}, "assignee": {"id": 520}, "project": {"id": 359, "owner": {"id": 777}, "assignee": {"id": 62}}, "task": {"id": 300, "owner": {"id": 988}, "assignee": {"id": 1069}}, "job": {"id": 345, "assignee": {"id": 1199}}, "issue": {"id": 370, "owner": {"id": 1207}, "assignee": {"id": 1322}}, "organization": {"id": 136}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 628}, "assignee": {"id": 583}, "project": {"id": 304, "owner": {"id": 725}, "assignee": {"id": 74}}, "task": {"id": 364, "owner": {"id": 962}, "assignee": {"id": 1003}}, "job": {"id": 352, "assignee": {"id": 1152}}, "issue": {"id": 307, "owner": {"id": 1296}, "assignee": {"id": 1391}}, "organization": {"id": 1420}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 351, "owner": {"id": 600}, "assignee": {"id": 584}, "project": {"id": 366, "owner": {"id": 778}, "assignee": {"id": 40}}, "task": {"id": 388, "owner": {"id": 936}, "assignee": {"id": 1009}}, "job": {"id": 384, "assignee": {"id": 1116}}, "issue": {"id": 329, "owner": {"id": 1224}, "assignee": {"id": 1368}}, "organization": {"id": 193}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 61, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 661}, "assignee": {"id": 592}, "project": {"id": 371, "owner": {"id": 725}, "assignee": {"id": 61}}, "task": {"id": 313, "owner": {"id": 948}, "assignee": {"id": 1098}}, "job": {"id": 375, "assignee": {"id": 1113}}, "issue": {"id": 328, "owner": {"id": 1228}, "assignee": {"id": 1362}}, "organization": {"id": 1424}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 313, "owner": {"id": 696}, "assignee": {"id": 599}, "project": {"id": 387, "owner": {"id": 772}, "assignee": {"id": 68}}, "task": {"id": 367, "owner": {"id": 996}, "assignee": {"id": 1034}}, "job": {"id": 342, "assignee": {"id": 1174}}, "issue": {"id": 303, "owner": {"id": 1294}, "assignee": {"id": 1330}}, "organization": {"id": 142}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 386, "owner": {"id": 633}, "assignee": {"id": 569}, "project": {"id": 392, "owner": {"id": 716}, "assignee": {"id": 51}}, "task": {"id": 372, "owner": {"id": 934}, "assignee": {"id": 1057}}, "job": {"id": 391, "assignee": {"id": 1172}}, "issue": {"id": 328, "owner": {"id": 1294}, "assignee": {"id": 1306}}, "organization": {"id": 1455}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 647}, "assignee": {"id": 518}, "project": {"id": 398, "owner": {"id": 792}, "assignee": {"id": 827}}, "task": {"id": 384, "owner": {"id": 77}, "assignee": {"id": 1089}}, "job": {"id": 309, "assignee": {"id": 1154}}, "issue": {"id": 356, "owner": {"id": 1299}, "assignee": {"id": 1358}}, "organization": {"id": 112}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 328, "owner": {"id": 649}, "assignee": {"id": 517}, "project": {"id": 362, "owner": {"id": 745}, "assignee": {"id": 807}}, "task": {"id": 398, "owner": {"id": 4}, "assignee": {"id": 1036}}, "job": {"id": 317, "assignee": {"id": 1139}}, "issue": {"id": 308, "owner": {"id": 1221}, "assignee": {"id": 1330}}, "organization": {"id": 140}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 310, "owner": {"id": 655}, "assignee": {"id": 590}, "project": {"id": 320, "owner": {"id": 755}, "assignee": {"id": 884}}, "task": {"id": 352, "owner": {"id": 13}, "assignee": {"id": 1056}}, "job": {"id": 391, "assignee": {"id": 1158}}, "issue": {"id": 320, "owner": {"id": 1287}, "assignee": {"id": 1358}}, "organization": {"id": 1460}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 369, "owner": {"id": 607}, "assignee": {"id": 581}, "project": {"id": 385, "owner": {"id": 798}, "assignee": {"id": 869}}, "task": {"id": 307, "owner": {"id": 52}, "assignee": {"id": 1062}}, "job": {"id": 324, "assignee": {"id": 1161}}, "issue": {"id": 342, "owner": {"id": 1222}, "assignee": {"id": 1364}}, "organization": {"id": 1406}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "owner": {"id": 684}, "assignee": {"id": 596}, "project": {"id": 355, "owner": {"id": 723}, "assignee": {"id": 805}}, "task": {"id": 377, "owner": {"id": 63}, "assignee": {"id": 1081}}, "job": {"id": 335, "assignee": {"id": 1133}}, "issue": {"id": 353, "owner": {"id": 1205}, "assignee": {"id": 1319}}, "organization": {"id": 105}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "owner": {"id": 647}, "assignee": {"id": 520}, "project": {"id": 303, "owner": {"id": 754}, "assignee": {"id": 865}}, "task": {"id": 349, "owner": {"id": 25}, "assignee": {"id": 1043}}, "job": {"id": 301, "assignee": {"id": 1115}}, "issue": {"id": 392, "owner": {"id": 1242}, "assignee": {"id": 1391}}, "organization": {"id": 187}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 624}, "assignee": {"id": 536}, "project": {"id": 380, "owner": {"id": 702}, "assignee": {"id": 839}}, "task": {"id": 395, "owner": {"id": 41}, "assignee": {"id": 1016}}, "job": {"id": 347, "assignee": {"id": 1155}}, "issue": {"id": 391, "owner": {"id": 1272}, "assignee": {"id": 1360}}, "organization": {"id": 1452}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "owner": {"id": 656}, "assignee": {"id": 508}, "project": {"id": 366, "owner": {"id": 774}, "assignee": {"id": 806}}, "task": {"id": 314, "owner": {"id": 90}, "assignee": {"id": 1041}}, "job": {"id": 384, "assignee": {"id": 1152}}, "issue": {"id": 378, "owner": {"id": 1245}, "assignee": {"id": 1399}}, "organization": {"id": 1464}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "owner": {"id": 626}, "assignee": {"id": 576}, "project": {"id": 370, "owner": {"id": 789}, "assignee": {"id": 884}}, "task": {"id": 381, "owner": {"id": 8}, "assignee": {"id": 1046}}, "job": {"id": 367, "assignee": {"id": 1131}}, "issue": {"id": 363, "owner": {"id": 1246}, "assignee": {"id": 1300}}, "organization": {"id": 137}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 340, "owner": {"id": 676}, "assignee": {"id": 579}, "project": {"id": 307, "owner": {"id": 799}, "assignee": {"id": 876}}, "task": {"id": 331, "owner": {"id": 43}, "assignee": {"id": 1033}}, "job": {"id": 320, "assignee": {"id": 1125}}, "issue": {"id": 352, "owner": {"id": 1235}, "assignee": {"id": 1352}}, "organization": {"id": 133}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "owner": {"id": 637}, "assignee": {"id": 506}, "project": {"id": 346, "owner": {"id": 778}, "assignee": {"id": 898}}, "task": {"id": 358, "owner": {"id": 1}, "assignee": {"id": 1063}}, "job": {"id": 337, "assignee": {"id": 1168}}, "issue": {"id": 388, "owner": {"id": 1276}, "assignee": {"id": 1374}}, "organization": {"id": 1423}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "owner": {"id": 674}, "assignee": {"id": 541}, "project": {"id": 335, "owner": {"id": 777}, "assignee": {"id": 851}}, "task": {"id": 379, "owner": {"id": 32}, "assignee": {"id": 1076}}, "job": {"id": 370, "assignee": {"id": 1126}}, "issue": {"id": 344, "owner": {"id": 1286}, "assignee": {"id": 1386}}, "organization": {"id": 1418}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 380, "owner": {"id": 619}, "assignee": {"id": 582}, "project": {"id": 372, "owner": {"id": 731}, "assignee": {"id": 819}}, "task": {"id": 365, "owner": {"id": 64}, "assignee": {"id": 1030}}, "job": {"id": 369, "assignee": {"id": 1168}}, "issue": {"id": 323, "owner": {"id": 1208}, "assignee": {"id": 1389}}, "organization": {"id": 101}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 334, "owner": {"id": 674}, "assignee": {"id": 501}, "project": {"id": 396, "owner": {"id": 719}, "assignee": {"id": 853}}, "task": {"id": 355, "owner": {"id": 52}, "assignee": {"id": 1017}}, "job": {"id": 339, "assignee": {"id": 1153}}, "issue": {"id": 341, "owner": {"id": 1260}, "assignee": {"id": 1317}}, "organization": {"id": 142}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 321, "owner": {"id": 666}, "assignee": {"id": 553}, "project": {"id": 393, "owner": {"id": 795}, "assignee": {"id": 843}}, "task": {"id": 364, "owner": {"id": 41}, "assignee": {"id": 1076}}, "job": {"id": 369, "assignee": {"id": 1177}}, "issue": {"id": 383, "owner": {"id": 1256}, "assignee": {"id": 1330}}, "organization": {"id": 1482}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 638}, "assignee": {"id": 501}, "project": {"id": 363, "owner": {"id": 745}, "assignee": {"id": 871}}, "task": {"id": 370, "owner": {"id": 72}, "assignee": {"id": 1056}}, "job": {"id": 323, "assignee": {"id": 1104}}, "issue": {"id": 397, "owner": {"id": 1231}, "assignee": {"id": 1351}}, "organization": {"id": 1470}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 313, "owner": {"id": 655}, "assignee": {"id": 530}, "project": {"id": 389, "owner": {"id": 732}, "assignee": {"id": 827}}, "task": {"id": 385, "owner": {"id": 20}, "assignee": {"id": 1044}}, "job": {"id": 350, "assignee": {"id": 1119}}, "issue": {"id": 357, "owner": {"id": 1216}, "assignee": {"id": 1333}}, "organization": {"id": 115}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 394, "owner": {"id": 640}, "assignee": {"id": 544}, "project": {"id": 345, "owner": {"id": 715}, "assignee": {"id": 847}}, "task": {"id": 327, "owner": {"id": 52}, "assignee": {"id": 1057}}, "job": {"id": 338, "assignee": {"id": 1191}}, "issue": {"id": 353, "owner": {"id": 1218}, "assignee": {"id": 1391}}, "organization": {"id": 187}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 391, "owner": {"id": 622}, "assignee": {"id": 589}, "project": {"id": 325, "owner": {"id": 715}, "assignee": {"id": 817}}, "task": {"id": 399, "owner": {"id": 62}, "assignee": {"id": 1098}}, "job": {"id": 317, "assignee": {"id": 1158}}, "issue": {"id": 392, "owner": {"id": 1294}, "assignee": {"id": 1301}}, "organization": {"id": 1456}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 669}, "assignee": {"id": 511}, "project": {"id": 308, "owner": {"id": 781}, "assignee": {"id": 877}}, "task": {"id": 308, "owner": {"id": 13}, "assignee": {"id": 1013}}, "job": {"id": 351, "assignee": {"id": 1145}}, "issue": {"id": 319, "owner": {"id": 1294}, "assignee": {"id": 1370}}, "organization": {"id": 1451}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 308, "owner": {"id": 692}, "assignee": {"id": 571}, "project": {"id": 368, "owner": {"id": 783}, "assignee": {"id": 866}}, "task": {"id": 322, "owner": {"id": 53}, "assignee": {"id": 1006}}, "job": {"id": 304, "assignee": {"id": 1184}}, "issue": {"id": 353, "owner": {"id": 1243}, "assignee": {"id": 1303}}, "organization": {"id": 133}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 309, "owner": {"id": 657}, "assignee": {"id": 580}, "project": {"id": 316, "owner": {"id": 713}, "assignee": {"id": 828}}, "task": {"id": 334, "owner": {"id": 25}, "assignee": {"id": 1081}}, "job": {"id": 393, "assignee": {"id": 1103}}, "issue": {"id": 316, "owner": {"id": 1289}, "assignee": {"id": 1337}}, "organization": {"id": 149}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 371, "owner": {"id": 645}, "assignee": {"id": 555}, "project": {"id": 374, "owner": {"id": 717}, "assignee": {"id": 832}}, "task": {"id": 336, "owner": {"id": 73}, "assignee": {"id": 1031}}, "job": {"id": 358, "assignee": {"id": 1100}}, "issue": {"id": 333, "owner": {"id": 1237}, "assignee": {"id": 1395}}, "organization": {"id": 1495}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 376, "owner": {"id": 636}, "assignee": {"id": 554}, "project": {"id": 313, "owner": {"id": 714}, "assignee": {"id": 837}}, "task": {"id": 317, "owner": {"id": 7}, "assignee": {"id": 1062}}, "job": {"id": 366, "assignee": {"id": 1149}}, "issue": {"id": 310, "owner": {"id": 1220}, "assignee": {"id": 1399}}, "organization": {"id": 1467}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 321, "owner": {"id": 659}, "assignee": {"id": 546}, "project": {"id": 301, "owner": {"id": 798}, "assignee": {"id": 877}}, "task": {"id": 382, "owner": {"id": 71}, "assignee": {"id": 1000}}, "job": {"id": 365, "assignee": {"id": 1195}}, "issue": {"id": 377, "owner": {"id": 1225}, "assignee": {"id": 1355}}, "organization": {"id": 199}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 604}, "assignee": {"id": 551}, "project": {"id": 335, "owner": {"id": 762}, "assignee": {"id": 858}}, "task": {"id": 311, "owner": {"id": 51}, "assignee": {"id": 1096}}, "job": {"id": 387, "assignee": {"id": 1147}}, "issue": {"id": 358, "owner": {"id": 1297}, "assignee": {"id": 1360}}, "organization": {"id": 165}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 26, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "owner": {"id": 699}, "assignee": {"id": 582}, "project": {"id": 306, "owner": {"id": 795}, "assignee": {"id": 809}}, "task": {"id": 313, "owner": {"id": 26}, "assignee": {"id": 1092}}, "job": {"id": 384, "assignee": {"id": 1148}}, "issue": {"id": 350, "owner": {"id": 1232}, "assignee": {"id": 1385}}, "organization": {"id": 1444}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "owner": {"id": 605}, "assignee": {"id": 541}, "project": {"id": 344, "owner": {"id": 776}, "assignee": {"id": 837}}, "task": {"id": 330, "owner": {"id": 24}, "assignee": {"id": 1077}}, "job": {"id": 310, "assignee": {"id": 1123}}, "issue": {"id": 356, "owner": {"id": 1228}, "assignee": {"id": 1320}}, "organization": {"id": 1400}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 692}, "assignee": {"id": 580}, "project": {"id": 326, "owner": {"id": 744}, "assignee": {"id": 830}}, "task": {"id": 321, "owner": {"id": 65}, "assignee": {"id": 1037}}, "job": {"id": 397, "assignee": {"id": 1120}}, "issue": {"id": 332, "owner": {"id": 1247}, "assignee": {"id": 1327}}, "organization": {"id": 167}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "owner": {"id": 682}, "assignee": {"id": 543}, "project": {"id": 305, "owner": {"id": 729}, "assignee": {"id": 890}}, "task": {"id": 335, "owner": {"id": 11}, "assignee": {"id": 1007}}, "job": {"id": 365, "assignee": {"id": 1100}}, "issue": {"id": 366, "owner": {"id": 1250}, "assignee": {"id": 1343}}, "organization": {"id": 179}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 629}, "assignee": {"id": 539}, "project": {"id": 367, "owner": {"id": 753}, "assignee": {"id": 891}}, "task": {"id": 372, "owner": {"id": 87}, "assignee": {"id": 1000}}, "job": {"id": 365, "assignee": {"id": 1116}}, "issue": {"id": 395, "owner": {"id": 1246}, "assignee": {"id": 1330}}, "organization": {"id": 1432}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "owner": {"id": 651}, "assignee": {"id": 588}, "project": {"id": 324, "owner": {"id": 772}, "assignee": {"id": 897}}, "task": {"id": 362, "owner": {"id": 58}, "assignee": {"id": 1005}}, "job": {"id": 341, "assignee": {"id": 1116}}, "issue": {"id": 372, "owner": {"id": 1282}, "assignee": {"id": 1343}}, "organization": {"id": 1462}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 318, "owner": {"id": 609}, "assignee": {"id": 506}, "project": {"id": 398, "owner": {"id": 752}, "assignee": {"id": 877}}, "task": {"id": 313, "owner": {"id": 16}, "assignee": {"id": 1000}}, "job": {"id": 355, "assignee": {"id": 1179}}, "issue": {"id": 368, "owner": {"id": 1242}, "assignee": {"id": 1330}}, "organization": {"id": 106}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 364, "owner": {"id": 613}, "assignee": {"id": 561}, "project": {"id": 308, "owner": {"id": 749}, "assignee": {"id": 825}}, "task": {"id": 323, "owner": {"id": 45}, "assignee": {"id": 1073}}, "job": {"id": 363, "assignee": {"id": 1192}}, "issue": {"id": 382, "owner": {"id": 1266}, "assignee": {"id": 1389}}, "organization": {"id": 175}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 388, "owner": {"id": 674}, "assignee": {"id": 532}, "project": {"id": 339, "owner": {"id": 773}, "assignee": {"id": 876}}, "task": {"id": 389, "owner": {"id": 24}, "assignee": {"id": 1068}}, "job": {"id": 370, "assignee": {"id": 1178}}, "issue": {"id": 365, "owner": {"id": 1255}, "assignee": {"id": 1342}}, "organization": {"id": 1475}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 323, "owner": {"id": 677}, "assignee": {"id": 527}, "project": {"id": 328, "owner": {"id": 782}, "assignee": {"id": 807}}, "task": {"id": 319, "owner": {"id": 53}, "assignee": {"id": 1057}}, "job": {"id": 315, "assignee": {"id": 1132}}, "issue": {"id": 335, "owner": {"id": 1272}, "assignee": {"id": 1327}}, "organization": {"id": 1439}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 312, "owner": {"id": 668}, "assignee": {"id": 502}, "project": {"id": 362, "owner": {"id": 764}, "assignee": {"id": 852}}, "task": {"id": 352, "owner": {"id": 20}, "assignee": {"id": 1069}}, "job": {"id": 383, "assignee": {"id": 1164}}, "issue": {"id": 365, "owner": {"id": 1274}, "assignee": {"id": 1330}}, "organization": {"id": 197}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 678}, "assignee": {"id": 533}, "project": {"id": 357, "owner": {"id": 751}, "assignee": {"id": 833}}, "task": {"id": 364, "owner": {"id": 1}, "assignee": {"id": 1061}}, "job": {"id": 385, "assignee": {"id": 1145}}, "issue": {"id": 396, "owner": {"id": 1267}, "assignee": {"id": 1323}}, "organization": {"id": 119}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 664}, "assignee": {"id": 529}, "project": {"id": 334, "owner": {"id": 779}, "assignee": {"id": 875}}, "task": {"id": 343, "owner": {"id": 0}, "assignee": {"id": 1053}}, "job": {"id": 319, "assignee": {"id": 1169}}, "issue": {"id": 388, "owner": {"id": 1229}, "assignee": {"id": 1398}}, "organization": {"id": 1439}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 623}, "assignee": {"id": 520}, "project": {"id": 362, "owner": {"id": 703}, "assignee": {"id": 813}}, "task": {"id": 318, "owner": {"id": 15}, "assignee": {"id": 1085}}, "job": {"id": 369, "assignee": {"id": 1162}}, "issue": {"id": 353, "owner": {"id": 1247}, "assignee": {"id": 1379}}, "organization": {"id": 1420}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 630}, "assignee": {"id": 599}, "project": {"id": 317, "owner": {"id": 774}, "assignee": {"id": 896}}, "task": {"id": 394, "owner": {"id": 91}, "assignee": {"id": 1059}}, "job": {"id": 362, "assignee": {"id": 1155}}, "issue": {"id": 316, "owner": {"id": 1216}, "assignee": {"id": 1300}}, "organization": {"id": 180}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 330, "owner": {"id": 665}, "assignee": {"id": 537}, "project": {"id": 387, "owner": {"id": 719}, "assignee": {"id": 894}}, "task": {"id": 387, "owner": {"id": 74}, "assignee": {"id": 1055}}, "job": {"id": 392, "assignee": {"id": 1112}}, "issue": {"id": 391, "owner": {"id": 1261}, "assignee": {"id": 1358}}, "organization": {"id": 113}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 363, "owner": {"id": 626}, "assignee": {"id": 577}, "project": {"id": 316, "owner": {"id": 750}, "assignee": {"id": 859}}, "task": {"id": 356, "owner": {"id": 65}, "assignee": {"id": 1053}}, "job": {"id": 345, "assignee": {"id": 1102}}, "issue": {"id": 358, "owner": {"id": 1211}, "assignee": {"id": 1324}}, "organization": {"id": 1405}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 662}, "assignee": {"id": 534}, "project": {"id": 309, "owner": {"id": 711}, "assignee": {"id": 817}}, "task": {"id": 324, "owner": {"id": 45}, "assignee": {"id": 1017}}, "job": {"id": 349, "assignee": {"id": 1192}}, "issue": {"id": 337, "owner": {"id": 1274}, "assignee": {"id": 1366}}, "organization": {"id": 1489}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "owner": {"id": 675}, "assignee": {"id": 503}, "project": {"id": 381, "owner": {"id": 746}, "assignee": {"id": 848}}, "task": {"id": 344, "owner": {"id": 82}, "assignee": {"id": 1043}}, "job": {"id": 341, "assignee": {"id": 1151}}, "issue": {"id": 390, "owner": {"id": 1267}, "assignee": {"id": 1385}}, "organization": {"id": 168}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "owner": {"id": 635}, "assignee": {"id": 595}, "project": {"id": 332, "owner": {"id": 799}, "assignee": {"id": 844}}, "task": {"id": 340, "owner": {"id": 63}, "assignee": {"id": 1025}}, "job": {"id": 354, "assignee": {"id": 1170}}, "issue": {"id": 376, "owner": {"id": 1282}, "assignee": {"id": 1345}}, "organization": {"id": 186}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "owner": {"id": 678}, "assignee": {"id": 524}, "project": {"id": 319, "owner": {"id": 730}, "assignee": {"id": 848}}, "task": {"id": 381, "owner": {"id": 48}, "assignee": {"id": 1059}}, "job": {"id": 321, "assignee": {"id": 1136}}, "issue": {"id": 378, "owner": {"id": 1246}, "assignee": {"id": 1330}}, "organization": {"id": 1411}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 389, "owner": {"id": 644}, "assignee": {"id": 506}, "project": {"id": 362, "owner": {"id": 781}, "assignee": {"id": 857}}, "task": {"id": 326, "owner": {"id": 28}, "assignee": {"id": 1084}}, "job": {"id": 339, "assignee": {"id": 1118}}, "issue": {"id": 304, "owner": {"id": 1273}, "assignee": {"id": 1385}}, "organization": {"id": 1490}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 661}, "assignee": {"id": 548}, "project": {"id": 345, "owner": {"id": 772}, "assignee": {"id": 866}}, "task": {"id": 305, "owner": {"id": 49}, "assignee": {"id": 1093}}, "job": {"id": 306, "assignee": {"id": 1109}}, "issue": {"id": 302, "owner": {"id": 1242}, "assignee": {"id": 1314}}, "organization": {"id": 191}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "owner": {"id": 680}, "assignee": {"id": 508}, "project": {"id": 315, "owner": {"id": 702}, "assignee": {"id": 802}}, "task": {"id": 383, "owner": {"id": 39}, "assignee": {"id": 1078}}, "job": {"id": 316, "assignee": {"id": 1132}}, "issue": {"id": 378, "owner": {"id": 1249}, "assignee": {"id": 1324}}, "organization": {"id": 199}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 618}, "assignee": {"id": 541}, "project": {"id": 353, "owner": {"id": 712}, "assignee": {"id": 867}}, "task": {"id": 378, "owner": {"id": 2}, "assignee": {"id": 1079}}, "job": {"id": 341, "assignee": {"id": 1141}}, "issue": {"id": 364, "owner": {"id": 1283}, "assignee": {"id": 1392}}, "organization": {"id": 1476}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "owner": {"id": 638}, "assignee": {"id": 524}, "project": {"id": 318, "owner": {"id": 727}, "assignee": {"id": 831}}, "task": {"id": 379, "owner": {"id": 56}, "assignee": {"id": 1091}}, "job": {"id": 313, "assignee": {"id": 1101}}, "issue": {"id": 374, "owner": {"id": 1247}, "assignee": {"id": 1370}}, "organization": {"id": 1460}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 325, "owner": {"id": 612}, "assignee": {"id": 536}, "project": {"id": 303, "owner": {"id": 795}, "assignee": {"id": 878}}, "task": {"id": 323, "owner": {"id": 18}, "assignee": {"id": 1001}}, "job": {"id": 329, "assignee": {"id": 1184}}, "issue": {"id": 308, "owner": {"id": 1248}, "assignee": {"id": 1388}}, "organization": {"id": 115}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 646}, "assignee": {"id": 523}, "project": {"id": 333, "owner": {"id": 716}, "assignee": {"id": 888}}, "task": {"id": 377, "owner": {"id": 2}, "assignee": {"id": 1057}}, "job": {"id": 359, "assignee": {"id": 1104}}, "issue": {"id": 314, "owner": {"id": 1264}, "assignee": {"id": 1360}}, "organization": {"id": 129}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 343, "owner": {"id": 607}, "assignee": {"id": 513}, "project": {"id": 300, "owner": {"id": 775}, "assignee": {"id": 865}}, "task": {"id": 324, "owner": {"id": 15}, "assignee": {"id": 1009}}, "job": {"id": 326, "assignee": {"id": 1180}}, "issue": {"id": 323, "owner": {"id": 1294}, "assignee": {"id": 1368}}, "organization": {"id": 1425}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 333, "owner": {"id": 633}, "assignee": {"id": 525}, "project": {"id": 381, "owner": {"id": 732}, "assignee": {"id": 887}}, "task": {"id": 354, "owner": {"id": 6}, "assignee": {"id": 1092}}, "job": {"id": 347, "assignee": {"id": 1142}}, "issue": {"id": 324, "owner": {"id": 1295}, "assignee": {"id": 1389}}, "organization": {"id": 1434}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 361, "owner": {"id": 647}, "assignee": {"id": 533}, "project": {"id": 355, "owner": {"id": 759}, "assignee": {"id": 891}}, "task": {"id": 342, "owner": {"id": 96}, "assignee": {"id": 1051}}, "job": {"id": 320, "assignee": {"id": 1150}}, "issue": {"id": 394, "owner": {"id": 1220}, "assignee": {"id": 1378}}, "organization": {"id": 170}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 371, "owner": {"id": 650}, "assignee": {"id": 569}, "project": {"id": 396, "owner": {"id": 771}, "assignee": {"id": 816}}, "task": {"id": 316, "owner": {"id": 0}, "assignee": {"id": 1061}}, "job": {"id": 355, "assignee": {"id": 1124}}, "issue": {"id": 382, "owner": {"id": 1298}, "assignee": {"id": 1389}}, "organization": {"id": 117}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 392, "owner": {"id": 602}, "assignee": {"id": 501}, "project": {"id": 388, "owner": {"id": 739}, "assignee": {"id": 899}}, "task": {"id": 330, "owner": {"id": 7}, "assignee": {"id": 1085}}, "job": {"id": 305, "assignee": {"id": 1121}}, "issue": {"id": 300, "owner": {"id": 1230}, "assignee": {"id": 1305}}, "organization": {"id": 1402}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 372, "owner": {"id": 612}, "assignee": {"id": 541}, "project": {"id": 372, "owner": {"id": 784}, "assignee": {"id": 829}}, "task": {"id": 392, "owner": {"id": 99}, "assignee": {"id": 1095}}, "job": {"id": 341, "assignee": {"id": 1199}}, "issue": {"id": 383, "owner": {"id": 1276}, "assignee": {"id": 1319}}, "organization": {"id": 1460}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 696}, "assignee": {"id": 582}, "project": {"id": 300, "owner": {"id": 772}, "assignee": {"id": 838}}, "task": {"id": 321, "owner": {"id": 49}, "assignee": {"id": 1004}}, "job": {"id": 340, "assignee": {"id": 1196}}, "issue": {"id": 366, "owner": {"id": 1202}, "assignee": {"id": 1346}}, "organization": {"id": 138}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 399, "owner": {"id": 663}, "assignee": {"id": 522}, "project": {"id": 381, "owner": {"id": 776}, "assignee": {"id": 801}}, "task": {"id": 326, "owner": {"id": 22}, "assignee": {"id": 1067}}, "job": {"id": 341, "assignee": {"id": 1192}}, "issue": {"id": 388, "owner": {"id": 1217}, "assignee": {"id": 1364}}, "organization": {"id": 107}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 311, "owner": {"id": 609}, "assignee": {"id": 583}, "project": {"id": 366, "owner": {"id": 716}, "assignee": {"id": 870}}, "task": {"id": 387, "owner": {"id": 82}, "assignee": {"id": 1082}}, "job": {"id": 352, "assignee": {"id": 1175}}, "issue": {"id": 365, "owner": {"id": 1258}, "assignee": {"id": 1395}}, "organization": {"id": 1449}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 399, "owner": {"id": 615}, "assignee": {"id": 552}, "project": {"id": 358, "owner": {"id": 756}, "assignee": {"id": 882}}, "task": {"id": 359, "owner": {"id": 28}, "assignee": {"id": 1072}}, "job": {"id": 393, "assignee": {"id": 1160}}, "issue": {"id": 321, "owner": {"id": 1204}, "assignee": {"id": 1308}}, "organization": {"id": 1410}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "owner": {"id": 615}, "assignee": {"id": 529}, "project": {"id": 332, "owner": {"id": 722}, "assignee": {"id": 800}}, "task": {"id": 361, "owner": {"id": 52}, "assignee": {"id": 1047}}, "job": {"id": 370, "assignee": {"id": 1172}}, "issue": {"id": 389, "owner": {"id": 1277}, "assignee": {"id": 1318}}, "organization": {"id": 120}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "owner": {"id": 682}, "assignee": {"id": 549}, "project": {"id": 390, "owner": {"id": 795}, "assignee": {"id": 822}}, "task": {"id": 378, "owner": {"id": 27}, "assignee": {"id": 1083}}, "job": {"id": 390, "assignee": {"id": 1197}}, "issue": {"id": 345, "owner": {"id": 1230}, "assignee": {"id": 1312}}, "organization": {"id": 156}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "owner": {"id": 618}, "assignee": {"id": 565}, "project": {"id": 388, "owner": {"id": 734}, "assignee": {"id": 898}}, "task": {"id": 358, "owner": {"id": 58}, "assignee": {"id": 1012}}, "job": {"id": 310, "assignee": {"id": 1159}}, "issue": {"id": 319, "owner": {"id": 1296}, "assignee": {"id": 1338}}, "organization": {"id": 1481}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "owner": {"id": 636}, "assignee": {"id": 540}, "project": {"id": 311, "owner": {"id": 702}, "assignee": {"id": 879}}, "task": {"id": 348, "owner": {"id": 2}, "assignee": {"id": 1053}}, "job": {"id": 368, "assignee": {"id": 1160}}, "issue": {"id": 337, "owner": {"id": 1246}, "assignee": {"id": 1339}}, "organization": {"id": 1482}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "owner": {"id": 676}, "assignee": {"id": 530}, "project": {"id": 343, "owner": {"id": 711}, "assignee": {"id": 816}}, "task": {"id": 354, "owner": {"id": 76}, "assignee": {"id": 1077}}, "job": {"id": 333, "assignee": {"id": 1172}}, "issue": {"id": 328, "owner": {"id": 1298}, "assignee": {"id": 1337}}, "organization": {"id": 194}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "owner": {"id": 693}, "assignee": {"id": 527}, "project": {"id": 358, "owner": {"id": 794}, "assignee": {"id": 810}}, "task": {"id": 336, "owner": {"id": 80}, "assignee": {"id": 1019}}, "job": {"id": 325, "assignee": {"id": 1178}}, "issue": {"id": 332, "owner": {"id": 1239}, "assignee": {"id": 1324}}, "organization": {"id": 141}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "owner": {"id": 616}, "assignee": {"id": 594}, "project": {"id": 342, "owner": {"id": 735}, "assignee": {"id": 814}}, "task": {"id": 302, "owner": {"id": 53}, "assignee": {"id": 1012}}, "job": {"id": 397, "assignee": {"id": 1150}}, "issue": {"id": 315, "owner": {"id": 1240}, "assignee": {"id": 1384}}, "organization": {"id": 1427}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "owner": {"id": 601}, "assignee": {"id": 546}, "project": {"id": 374, "owner": {"id": 799}, "assignee": {"id": 821}}, "task": {"id": 382, "owner": {"id": 3}, "assignee": {"id": 1057}}, "job": {"id": 392, "assignee": {"id": 1157}}, "issue": {"id": 322, "owner": {"id": 1230}, "assignee": {"id": 1383}}, "organization": {"id": 1468}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 697}, "assignee": {"id": 571}, "project": {"id": 360, "owner": {"id": 721}, "assignee": {"id": 857}}, "task": {"id": 301, "owner": {"id": 96}, "assignee": {"id": 1023}}, "job": {"id": 346, "assignee": {"id": 1123}}, "issue": {"id": 322, "owner": {"id": 1226}, "assignee": {"id": 1375}}, "organization": {"id": 184}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 338, "owner": {"id": 625}, "assignee": {"id": 517}, "project": {"id": 347, "owner": {"id": 790}, "assignee": {"id": 868}}, "task": {"id": 398, "owner": {"id": 49}, "assignee": {"id": 1020}}, "job": {"id": 339, "assignee": {"id": 1139}}, "issue": {"id": 325, "owner": {"id": 1248}, "assignee": {"id": 1302}}, "organization": {"id": 193}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 617}, "assignee": {"id": 511}, "project": {"id": 388, "owner": {"id": 786}, "assignee": {"id": 831}}, "task": {"id": 347, "owner": {"id": 88}, "assignee": {"id": 1082}}, "job": {"id": 308, "assignee": {"id": 1100}}, "issue": {"id": 379, "owner": {"id": 1259}, "assignee": {"id": 1311}}, "organization": {"id": 1407}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 685}, "assignee": {"id": 503}, "project": {"id": 309, "owner": {"id": 756}, "assignee": {"id": 868}}, "task": {"id": 346, "owner": {"id": 79}, "assignee": {"id": 1066}}, "job": {"id": 322, "assignee": {"id": 1180}}, "issue": {"id": 386, "owner": {"id": 1253}, "assignee": {"id": 1316}}, "organization": {"id": 1462}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 312, "owner": {"id": 661}, "assignee": {"id": 589}, "project": {"id": 336, "owner": {"id": 777}, "assignee": {"id": 872}}, "task": {"id": 313, "owner": {"id": 43}, "assignee": {"id": 1032}}, "job": {"id": 325, "assignee": {"id": 1134}}, "issue": {"id": 346, "owner": {"id": 1226}, "assignee": {"id": 1327}}, "organization": {"id": 176}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 686}, "assignee": {"id": 580}, "project": {"id": 394, "owner": {"id": 799}, "assignee": {"id": 869}}, "task": {"id": 384, "owner": {"id": 70}, "assignee": {"id": 1059}}, "job": {"id": 387, "assignee": {"id": 1163}}, "issue": {"id": 390, "owner": {"id": 1213}, "assignee": {"id": 1315}}, "organization": {"id": 127}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 309, "owner": {"id": 608}, "assignee": {"id": 537}, "project": {"id": 376, "owner": {"id": 764}, "assignee": {"id": 857}}, "task": {"id": 334, "owner": {"id": 51}, "assignee": {"id": 1050}}, "job": {"id": 341, "assignee": {"id": 1192}}, "issue": {"id": 372, "owner": {"id": 1213}, "assignee": {"id": 1316}}, "organization": {"id": 1467}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 308, "owner": {"id": 646}, "assignee": {"id": 590}, "project": {"id": 384, "owner": {"id": 782}, "assignee": {"id": 856}}, "task": {"id": 310, "owner": {"id": 49}, "assignee": {"id": 1076}}, "job": {"id": 347, "assignee": {"id": 1142}}, "issue": {"id": 309, "owner": {"id": 1283}, "assignee": {"id": 1351}}, "organization": {"id": 1485}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 380, "owner": {"id": 606}, "assignee": {"id": 594}, "project": {"id": 350, "owner": {"id": 750}, "assignee": {"id": 897}}, "task": {"id": 375, "owner": {"id": 86}, "assignee": {"id": 1040}}, "job": {"id": 388, "assignee": {"id": 1156}}, "issue": {"id": 315, "owner": {"id": 1228}, "assignee": {"id": 1336}}, "organization": {"id": 167}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 362, "owner": {"id": 635}, "assignee": {"id": 575}, "project": {"id": 313, "owner": {"id": 741}, "assignee": {"id": 809}}, "task": {"id": 390, "owner": {"id": 86}, "assignee": {"id": 1026}}, "job": {"id": 327, "assignee": {"id": 1124}}, "issue": {"id": 381, "owner": {"id": 1224}, "assignee": {"id": 1387}}, "organization": {"id": 156}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 314, "owner": {"id": 634}, "assignee": {"id": 502}, "project": {"id": 314, "owner": {"id": 781}, "assignee": {"id": 877}}, "task": {"id": 353, "owner": {"id": 43}, "assignee": {"id": 1004}}, "job": {"id": 366, "assignee": {"id": 1118}}, "issue": {"id": 337, "owner": {"id": 1298}, "assignee": {"id": 1308}}, "organization": {"id": 1476}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 620}, "assignee": {"id": 595}, "project": {"id": 337, "owner": {"id": 715}, "assignee": {"id": 868}}, "task": {"id": 361, "owner": {"id": 22}, "assignee": {"id": 1080}}, "job": {"id": 336, "assignee": {"id": 1137}}, "issue": {"id": 382, "owner": {"id": 1220}, "assignee": {"id": 1358}}, "organization": {"id": 1488}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 686}, "assignee": {"id": 596}, "project": {"id": 373, "owner": {"id": 771}, "assignee": {"id": 856}}, "task": {"id": 390, "owner": {"id": 59}, "assignee": {"id": 1043}}, "job": {"id": 358, "assignee": {"id": 1150}}, "issue": {"id": 332, "owner": {"id": 1269}, "assignee": {"id": 1301}}, "organization": {"id": 141}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "owner": {"id": 625}, "assignee": {"id": 520}, "project": {"id": 396, "owner": {"id": 726}, "assignee": {"id": 806}}, "task": {"id": 328, "owner": {"id": 51}, "assignee": {"id": 1019}}, "job": {"id": 300, "assignee": {"id": 1141}}, "issue": {"id": 340, "owner": {"id": 1225}, "assignee": {"id": 1388}}, "organization": {"id": 113}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "owner": {"id": 634}, "assignee": {"id": 512}, "project": {"id": 379, "owner": {"id": 732}, "assignee": {"id": 888}}, "task": {"id": 332, "owner": {"id": 25}, "assignee": {"id": 1004}}, "job": {"id": 368, "assignee": {"id": 1155}}, "issue": {"id": 309, "owner": {"id": 1209}, "assignee": {"id": 1307}}, "organization": {"id": 1401}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "owner": {"id": 646}, "assignee": {"id": 575}, "project": {"id": 307, "owner": {"id": 762}, "assignee": {"id": 847}}, "task": {"id": 322, "owner": {"id": 54}, "assignee": {"id": 1022}}, "job": {"id": 355, "assignee": {"id": 1134}}, "issue": {"id": 388, "owner": {"id": 1254}, "assignee": {"id": 1348}}, "organization": {"id": 1482}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "owner": {"id": 620}, "assignee": {"id": 551}, "project": {"id": 333, "owner": {"id": 748}, "assignee": {"id": 835}}, "task": {"id": 369, "owner": {"id": 13}, "assignee": {"id": 1078}}, "job": {"id": 300, "assignee": {"id": 1106}}, "issue": {"id": 393, "owner": {"id": 1210}, "assignee": {"id": 1397}}, "organization": {"id": 110}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "owner": {"id": 692}, "assignee": {"id": 592}, "project": {"id": 350, "owner": {"id": 737}, "assignee": {"id": 880}}, "task": {"id": 366, "owner": {"id": 4}, "assignee": {"id": 1097}}, "job": {"id": 371, "assignee": {"id": 1167}}, "issue": {"id": 390, "owner": {"id": 1217}, "assignee": {"id": 1306}}, "organization": {"id": 131}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "owner": {"id": 641}, "assignee": {"id": 505}, "project": {"id": 398, "owner": {"id": 723}, "assignee": {"id": 814}}, "task": {"id": 334, "owner": {"id": 40}, "assignee": {"id": 1099}}, "job": {"id": 307, "assignee": {"id": 1162}}, "issue": {"id": 301, "owner": {"id": 1264}, "assignee": {"id": 1376}}, "organization": {"id": 1436}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 662}, "assignee": {"id": 515}, "project": {"id": 341, "owner": {"id": 724}, "assignee": {"id": 839}}, "task": {"id": 336, "owner": {"id": 78}, "assignee": {"id": 1030}}, "job": {"id": 368, "assignee": {"id": 1135}}, "issue": {"id": 357, "owner": {"id": 1294}, "assignee": {"id": 1349}}, "organization": {"id": 1480}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 353, "owner": {"id": 637}, "assignee": {"id": 550}, "project": {"id": 318, "owner": {"id": 731}, "assignee": {"id": 820}}, "task": {"id": 376, "owner": {"id": 68}, "assignee": {"id": 1019}}, "job": {"id": 367, "assignee": {"id": 1178}}, "issue": {"id": 310, "owner": {"id": 1255}, "assignee": {"id": 1396}}, "organization": {"id": 136}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 364, "owner": {"id": 691}, "assignee": {"id": 525}, "project": {"id": 309, "owner": {"id": 723}, "assignee": {"id": 863}}, "task": {"id": 342, "owner": {"id": 93}, "assignee": {"id": 1036}}, "job": {"id": 364, "assignee": {"id": 1104}}, "issue": {"id": 326, "owner": {"id": 1228}, "assignee": {"id": 1347}}, "organization": {"id": 146}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 319, "owner": {"id": 660}, "assignee": {"id": 558}, "project": {"id": 302, "owner": {"id": 715}, "assignee": {"id": 825}}, "task": {"id": 330, "owner": {"id": 92}, "assignee": {"id": 1048}}, "job": {"id": 345, "assignee": {"id": 1157}}, "issue": {"id": 354, "owner": {"id": 1216}, "assignee": {"id": 1382}}, "organization": {"id": 1437}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 300, "owner": {"id": 659}, "assignee": {"id": 563}, "project": {"id": 365, "owner": {"id": 729}, "assignee": {"id": 854}}, "task": {"id": 368, "owner": {"id": 27}, "assignee": {"id": 1012}}, "job": {"id": 368, "assignee": {"id": 1167}}, "issue": {"id": 385, "owner": {"id": 1290}, "assignee": {"id": 1367}}, "organization": {"id": 1409}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"id": 388, "owner": {"id": 636}, "assignee": {"id": 572}, "project": {"id": 348, "owner": {"id": 780}, "assignee": {"id": 856}}, "task": {"id": 354, "owner": {"id": 92}, "assignee": {"id": 1075}}, "job": {"id": 382, "assignee": {"id": 1186}}, "issue": {"id": 373, "owner": {"id": 1272}, "assignee": {"id": 1335}}, "organization": {"id": 118}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 331, "owner": {"id": 639}, "assignee": {"id": 565}, "project": {"id": 313, "owner": {"id": 721}, "assignee": {"id": 816}}, "task": {"id": 390, "owner": {"id": 97}, "assignee": {"id": 1075}}, "job": {"id": 370, "assignee": {"id": 1147}}, "issue": {"id": 315, "owner": {"id": 1233}, "assignee": {"id": 1399}}, "organization": {"id": 190}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 19, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 384, "owner": {"id": 666}, "assignee": {"id": 507}, "project": {"id": 330, "owner": {"id": 789}, "assignee": {"id": 811}}, "task": {"id": 363, "owner": {"id": 19}, "assignee": {"id": 1017}}, "job": {"id": 381, "assignee": {"id": 1195}}, "issue": {"id": 333, "owner": {"id": 1229}, "assignee": {"id": 1363}}, "organization": {"id": 1438}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 382, "owner": {"id": 680}, "assignee": {"id": 599}, "project": {"id": 356, "owner": {"id": 786}, "assignee": {"id": 861}}, "task": {"id": 371, "owner": {"id": 82}, "assignee": {"id": 1008}}, "job": {"id": 333, "assignee": {"id": 1118}}, "issue": {"id": 378, "owner": {"id": 1219}, "assignee": {"id": 1333}}, "organization": {"id": 1440}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 329, "owner": {"id": 614}, "assignee": {"id": 598}, "project": {"id": 303, "owner": {"id": 765}, "assignee": {"id": 811}}, "task": {"id": 399, "owner": {"id": 976}, "assignee": {"id": 40}}, "job": {"id": 333, "assignee": {"id": 1158}}, "issue": {"id": 391, "owner": {"id": 1280}, "assignee": {"id": 1313}}, "organization": {"id": 193}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 321, "owner": {"id": 631}, "assignee": {"id": 553}, "project": {"id": 350, "owner": {"id": 732}, "assignee": {"id": 838}}, "task": {"id": 323, "owner": {"id": 977}, "assignee": {"id": 77}}, "job": {"id": 376, "assignee": {"id": 1192}}, "issue": {"id": 383, "owner": {"id": 1296}, "assignee": {"id": 1310}}, "organization": {"id": 152}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 333, "owner": {"id": 602}, "assignee": {"id": 555}, "project": {"id": 337, "owner": {"id": 793}, "assignee": {"id": 880}}, "task": {"id": 329, "owner": {"id": 910}, "assignee": {"id": 2}}, "job": {"id": 358, "assignee": {"id": 1124}}, "issue": {"id": 368, "owner": {"id": 1258}, "assignee": {"id": 1369}}, "organization": {"id": 1455}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 682}, "assignee": {"id": 549}, "project": {"id": 395, "owner": {"id": 747}, "assignee": {"id": 843}}, "task": {"id": 385, "owner": {"id": 900}, "assignee": {"id": 30}}, "job": {"id": 309, "assignee": {"id": 1162}}, "issue": {"id": 358, "owner": {"id": 1206}, "assignee": {"id": 1322}}, "organization": {"id": 1402}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "owner": {"id": 622}, "assignee": {"id": 514}, "project": {"id": 334, "owner": {"id": 767}, "assignee": {"id": 898}}, "task": {"id": 343, "owner": {"id": 946}, "assignee": {"id": 82}}, "job": {"id": 378, "assignee": {"id": 1128}}, "issue": {"id": 335, "owner": {"id": 1242}, "assignee": {"id": 1354}}, "organization": {"id": 147}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "owner": {"id": 693}, "assignee": {"id": 599}, "project": {"id": 385, "owner": {"id": 712}, "assignee": {"id": 880}}, "task": {"id": 330, "owner": {"id": 960}, "assignee": {"id": 93}}, "job": {"id": 322, "assignee": {"id": 1132}}, "issue": {"id": 359, "owner": {"id": 1270}, "assignee": {"id": 1311}}, "organization": {"id": 178}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "owner": {"id": 603}, "assignee": {"id": 580}, "project": {"id": 381, "owner": {"id": 731}, "assignee": {"id": 875}}, "task": {"id": 302, "owner": {"id": 958}, "assignee": {"id": 76}}, "job": {"id": 379, "assignee": {"id": 1154}}, "issue": {"id": 334, "owner": {"id": 1263}, "assignee": {"id": 1391}}, "organization": {"id": 1420}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "owner": {"id": 634}, "assignee": {"id": 576}, "project": {"id": 305, "owner": {"id": 722}, "assignee": {"id": 874}}, "task": {"id": 328, "owner": {"id": 962}, "assignee": {"id": 60}}, "job": {"id": 328, "assignee": {"id": 1144}}, "issue": {"id": 352, "owner": {"id": 1278}, "assignee": {"id": 1383}}, "organization": {"id": 1424}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "owner": {"id": 679}, "assignee": {"id": 578}, "project": {"id": 311, "owner": {"id": 798}, "assignee": {"id": 854}}, "task": {"id": 352, "owner": {"id": 961}, "assignee": {"id": 53}}, "job": {"id": 355, "assignee": {"id": 1128}}, "issue": {"id": 366, "owner": {"id": 1271}, "assignee": {"id": 1367}}, "organization": {"id": 136}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 634}, "assignee": {"id": 593}, "project": {"id": 329, "owner": {"id": 733}, "assignee": {"id": 828}}, "task": {"id": 302, "owner": {"id": 993}, "assignee": {"id": 90}}, "job": {"id": 398, "assignee": {"id": 1133}}, "issue": {"id": 367, "owner": {"id": 1288}, "assignee": {"id": 1337}}, "organization": {"id": 113}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "owner": {"id": 612}, "assignee": {"id": 519}, "project": {"id": 343, "owner": {"id": 789}, "assignee": {"id": 803}}, "task": {"id": 366, "owner": {"id": 916}, "assignee": {"id": 96}}, "job": {"id": 317, "assignee": {"id": 1193}}, "issue": {"id": 383, "owner": {"id": 1202}, "assignee": {"id": 1340}}, "organization": {"id": 1476}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 603}, "assignee": {"id": 568}, "project": {"id": 380, "owner": {"id": 795}, "assignee": {"id": 831}}, "task": {"id": 378, "owner": {"id": 925}, "assignee": {"id": 97}}, "job": {"id": 353, "assignee": {"id": 1121}}, "issue": {"id": 347, "owner": {"id": 1219}, "assignee": {"id": 1323}}, "organization": {"id": 1475}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 397, "owner": {"id": 600}, "assignee": {"id": 571}, "project": {"id": 332, "owner": {"id": 776}, "assignee": {"id": 876}}, "task": {"id": 323, "owner": {"id": 951}, "assignee": {"id": 59}}, "job": {"id": 330, "assignee": {"id": 1157}}, "issue": {"id": 336, "owner": {"id": 1222}, "assignee": {"id": 1313}}, "organization": {"id": 199}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 338, "owner": {"id": 688}, "assignee": {"id": 560}, "project": {"id": 332, "owner": {"id": 734}, "assignee": {"id": 804}}, "task": {"id": 366, "owner": {"id": 918}, "assignee": {"id": 66}}, "job": {"id": 300, "assignee": {"id": 1173}}, "issue": {"id": 350, "owner": {"id": 1208}, "assignee": {"id": 1316}}, "organization": {"id": 166}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 648}, "assignee": {"id": 579}, "project": {"id": 322, "owner": {"id": 729}, "assignee": {"id": 859}}, "task": {"id": 312, "owner": {"id": 924}, "assignee": {"id": 63}}, "job": {"id": 311, "assignee": {"id": 1169}}, "issue": {"id": 348, "owner": {"id": 1241}, "assignee": {"id": 1365}}, "organization": {"id": 1450}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 309, "owner": {"id": 672}, "assignee": {"id": 547}, "project": {"id": 318, "owner": {"id": 796}, "assignee": {"id": 839}}, "task": {"id": 389, "owner": {"id": 938}, "assignee": {"id": 72}}, "job": {"id": 353, "assignee": {"id": 1147}}, "issue": {"id": 348, "owner": {"id": 1266}, "assignee": {"id": 1356}}, "organization": {"id": 1467}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 391, "owner": {"id": 607}, "assignee": {"id": 597}, "project": {"id": 377, "owner": {"id": 703}, "assignee": {"id": 854}}, "task": {"id": 327, "owner": {"id": 988}, "assignee": {"id": 52}}, "job": {"id": 379, "assignee": {"id": 1176}}, "issue": {"id": 312, "owner": {"id": 1225}, "assignee": {"id": 1370}}, "organization": {"id": 151}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 387, "owner": {"id": 675}, "assignee": {"id": 507}, "project": {"id": 386, "owner": {"id": 726}, "assignee": {"id": 860}}, "task": {"id": 358, "owner": {"id": 972}, "assignee": {"id": 20}}, "job": {"id": 362, "assignee": {"id": 1168}}, "issue": {"id": 350, "owner": {"id": 1210}, "assignee": {"id": 1317}}, "organization": {"id": 153}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 604}, "assignee": {"id": 560}, "project": {"id": 318, "owner": {"id": 792}, "assignee": {"id": 839}}, "task": {"id": 390, "owner": {"id": 955}, "assignee": {"id": 69}}, "job": {"id": 339, "assignee": {"id": 1170}}, "issue": {"id": 334, "owner": {"id": 1229}, "assignee": {"id": 1318}}, "organization": {"id": 1475}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 399, "owner": {"id": 628}, "assignee": {"id": 536}, "project": {"id": 388, "owner": {"id": 761}, "assignee": {"id": 878}}, "task": {"id": 301, "owner": {"id": 969}, "assignee": {"id": 21}}, "job": {"id": 389, "assignee": {"id": 1116}}, "issue": {"id": 323, "owner": {"id": 1293}, "assignee": {"id": 1364}}, "organization": {"id": 1478}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 667}, "assignee": {"id": 548}, "project": {"id": 352, "owner": {"id": 714}, "assignee": {"id": 840}}, "task": {"id": 387, "owner": {"id": 943}, "assignee": {"id": 30}}, "job": {"id": 377, "assignee": {"id": 1138}}, "issue": {"id": 321, "owner": {"id": 1217}, "assignee": {"id": 1397}}, "organization": {"id": 150}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 304, "owner": {"id": 625}, "assignee": {"id": 573}, "project": {"id": 356, "owner": {"id": 757}, "assignee": {"id": 894}}, "task": {"id": 342, "owner": {"id": 926}, "assignee": {"id": 70}}, "job": {"id": 309, "assignee": {"id": 1148}}, "issue": {"id": 309, "owner": {"id": 1237}, "assignee": {"id": 1381}}, "organization": {"id": 147}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 615}, "assignee": {"id": 518}, "project": {"id": 317, "owner": {"id": 776}, "assignee": {"id": 887}}, "task": {"id": 363, "owner": {"id": 919}, "assignee": {"id": 48}}, "job": {"id": 391, "assignee": {"id": 1158}}, "issue": {"id": 387, "owner": {"id": 1249}, "assignee": {"id": 1338}}, "organization": {"id": 1446}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 356, "owner": {"id": 669}, "assignee": {"id": 528}, "project": {"id": 393, "owner": {"id": 734}, "assignee": {"id": 832}}, "task": {"id": 388, "owner": {"id": 952}, "assignee": {"id": 89}}, "job": {"id": 372, "assignee": {"id": 1188}}, "issue": {"id": 363, "owner": {"id": 1236}, "assignee": {"id": 1346}}, "organization": {"id": 1407}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 678}, "assignee": {"id": 544}, "project": {"id": 385, "owner": {"id": 750}, "assignee": {"id": 802}}, "task": {"id": 334, "owner": {"id": 998}, "assignee": {"id": 44}}, "job": {"id": 331, "assignee": {"id": 1128}}, "issue": {"id": 322, "owner": {"id": 1245}, "assignee": {"id": 1303}}, "organization": {"id": 171}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "owner": {"id": 659}, "assignee": {"id": 559}, "project": {"id": 398, "owner": {"id": 713}, "assignee": {"id": 817}}, "task": {"id": 324, "owner": {"id": 936}, "assignee": {"id": 33}}, "job": {"id": 300, "assignee": {"id": 1142}}, "issue": {"id": 303, "owner": {"id": 1282}, "assignee": {"id": 1313}}, "organization": {"id": 102}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 667}, "assignee": {"id": 517}, "project": {"id": 357, "owner": {"id": 762}, "assignee": {"id": 818}}, "task": {"id": 341, "owner": {"id": 962}, "assignee": {"id": 27}}, "job": {"id": 303, "assignee": {"id": 1150}}, "issue": {"id": 360, "owner": {"id": 1222}, "assignee": {"id": 1315}}, "organization": {"id": 1437}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "owner": {"id": 633}, "assignee": {"id": 572}, "project": {"id": 356, "owner": {"id": 715}, "assignee": {"id": 868}}, "task": {"id": 313, "owner": {"id": 931}, "assignee": {"id": 28}}, "job": {"id": 378, "assignee": {"id": 1123}}, "issue": {"id": 356, "owner": {"id": 1284}, "assignee": {"id": 1312}}, "organization": {"id": 1404}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 622}, "assignee": {"id": 591}, "project": {"id": 304, "owner": {"id": 702}, "assignee": {"id": 815}}, "task": {"id": 372, "owner": {"id": 956}, "assignee": {"id": 6}}, "job": {"id": 322, "assignee": {"id": 1158}}, "issue": {"id": 328, "owner": {"id": 1265}, "assignee": {"id": 1324}}, "organization": {"id": 113}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "owner": {"id": 639}, "assignee": {"id": 584}, "project": {"id": 345, "owner": {"id": 703}, "assignee": {"id": 833}}, "task": {"id": 377, "owner": {"id": 910}, "assignee": {"id": 72}}, "job": {"id": 344, "assignee": {"id": 1104}}, "issue": {"id": 391, "owner": {"id": 1236}, "assignee": {"id": 1350}}, "organization": {"id": 139}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "owner": {"id": 606}, "assignee": {"id": 586}, "project": {"id": 318, "owner": {"id": 717}, "assignee": {"id": 825}}, "task": {"id": 358, "owner": {"id": 991}, "assignee": {"id": 96}}, "job": {"id": 327, "assignee": {"id": 1127}}, "issue": {"id": 319, "owner": {"id": 1204}, "assignee": {"id": 1319}}, "organization": {"id": 1448}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 688}, "assignee": {"id": 534}, "project": {"id": 350, "owner": {"id": 700}, "assignee": {"id": 894}}, "task": {"id": 331, "owner": {"id": 973}, "assignee": {"id": 10}}, "job": {"id": 371, "assignee": {"id": 1147}}, "issue": {"id": 382, "owner": {"id": 1296}, "assignee": {"id": 1387}}, "organization": {"id": 1438}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 302, "owner": {"id": 681}, "assignee": {"id": 563}, "project": {"id": 300, "owner": {"id": 794}, "assignee": {"id": 874}}, "task": {"id": 356, "owner": {"id": 957}, "assignee": {"id": 44}}, "job": {"id": 307, "assignee": {"id": 1130}}, "issue": {"id": 315, "owner": {"id": 1287}, "assignee": {"id": 1342}}, "organization": {"id": 157}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 324, "owner": {"id": 682}, "assignee": {"id": 577}, "project": {"id": 330, "owner": {"id": 751}, "assignee": {"id": 843}}, "task": {"id": 397, "owner": {"id": 916}, "assignee": {"id": 24}}, "job": {"id": 318, "assignee": {"id": 1168}}, "issue": {"id": 385, "owner": {"id": 1239}, "assignee": {"id": 1363}}, "organization": {"id": 167}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 380, "owner": {"id": 624}, "assignee": {"id": 542}, "project": {"id": 341, "owner": {"id": 741}, "assignee": {"id": 872}}, "task": {"id": 351, "owner": {"id": 966}, "assignee": {"id": 93}}, "job": {"id": 335, "assignee": {"id": 1103}}, "issue": {"id": 332, "owner": {"id": 1299}, "assignee": {"id": 1338}}, "organization": {"id": 1465}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 339, "owner": {"id": 684}, "assignee": {"id": 521}, "project": {"id": 386, "owner": {"id": 750}, "assignee": {"id": 825}}, "task": {"id": 392, "owner": {"id": 919}, "assignee": {"id": 23}}, "job": {"id": 370, "assignee": {"id": 1140}}, "issue": {"id": 390, "owner": {"id": 1290}, "assignee": {"id": 1350}}, "organization": {"id": 1488}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 81, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 381, "owner": {"id": 669}, "assignee": {"id": 537}, "project": {"id": 382, "owner": {"id": 780}, "assignee": {"id": 826}}, "task": {"id": 386, "owner": {"id": 948}, "assignee": {"id": 81}}, "job": {"id": 358, "assignee": {"id": 1161}}, "issue": {"id": 397, "owner": {"id": 1249}, "assignee": {"id": 1392}}, "organization": {"id": 173}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 326, "owner": {"id": 690}, "assignee": {"id": 523}, "project": {"id": 321, "owner": {"id": 784}, "assignee": {"id": 889}}, "task": {"id": 345, "owner": {"id": 930}, "assignee": {"id": 24}}, "job": {"id": 353, "assignee": {"id": 1190}}, "issue": {"id": 379, "owner": {"id": 1213}, "assignee": {"id": 1397}}, "organization": {"id": 181}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 338, "owner": {"id": 687}, "assignee": {"id": 561}, "project": {"id": 352, "owner": {"id": 724}, "assignee": {"id": 858}}, "task": {"id": 330, "owner": {"id": 934}, "assignee": {"id": 25}}, "job": {"id": 316, "assignee": {"id": 1113}}, "issue": {"id": 338, "owner": {"id": 1213}, "assignee": {"id": 1303}}, "organization": {"id": 1410}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"id": 362, "owner": {"id": 656}, "assignee": {"id": 518}, "project": {"id": 360, "owner": {"id": 774}, "assignee": {"id": 892}}, "task": {"id": 300, "owner": {"id": 990}, "assignee": {"id": 45}}, "job": {"id": 330, "assignee": {"id": 1164}}, "issue": {"id": 305, "owner": {"id": 1298}, "assignee": {"id": 1378}}, "organization": {"id": 1431}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 336, "owner": {"id": 679}, "assignee": {"id": 536}, "project": {"id": 324, "owner": {"id": 745}, "assignee": {"id": 836}}, "task": {"id": 316, "owner": {"id": 969}, "assignee": {"id": 4}}, "job": {"id": 317, "assignee": {"id": 1139}}, "issue": {"id": 382, "owner": {"id": 1238}, "assignee": {"id": 1369}}, "organization": {"id": 167}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 666}, "assignee": {"id": 508}, "project": {"id": 352, "owner": {"id": 750}, "assignee": {"id": 860}}, "task": {"id": 333, "owner": {"id": 996}, "assignee": {"id": 59}}, "job": {"id": 308, "assignee": {"id": 1178}}, "issue": {"id": 351, "owner": {"id": 1287}, "assignee": {"id": 1379}}, "organization": {"id": 135}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 365, "owner": {"id": 674}, "assignee": {"id": 569}, "project": {"id": 341, "owner": {"id": 739}, "assignee": {"id": 825}}, "task": {"id": 397, "owner": {"id": 995}, "assignee": {"id": 12}}, "job": {"id": 339, "assignee": {"id": 1168}}, "issue": {"id": 367, "owner": {"id": 1290}, "assignee": {"id": 1340}}, "organization": {"id": 1431}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 376, "owner": {"id": 682}, "assignee": {"id": 525}, "project": {"id": 345, "owner": {"id": 721}, "assignee": {"id": 869}}, "task": {"id": 369, "owner": {"id": 912}, "assignee": {"id": 38}}, "job": {"id": 332, "assignee": {"id": 1111}}, "issue": {"id": 354, "owner": {"id": 1211}, "assignee": {"id": 1342}}, "organization": {"id": 1421}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 692}, "assignee": {"id": 547}, "project": {"id": 324, "owner": {"id": 742}, "assignee": {"id": 847}}, "task": {"id": 342, "owner": {"id": 987}, "assignee": {"id": 22}}, "job": {"id": 364, "assignee": {"id": 1102}}, "issue": {"id": 367, "owner": {"id": 1256}, "assignee": {"id": 1398}}, "organization": {"id": 141}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "owner": {"id": 681}, "assignee": {"id": 518}, "project": {"id": 338, "owner": {"id": 748}, "assignee": {"id": 840}}, "task": {"id": 368, "owner": {"id": 950}, "assignee": {"id": 2}}, "job": {"id": 337, "assignee": {"id": 1178}}, "issue": {"id": 393, "owner": {"id": 1281}, "assignee": {"id": 1391}}, "organization": {"id": 183}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "owner": {"id": 686}, "assignee": {"id": 599}, "project": {"id": 352, "owner": {"id": 746}, "assignee": {"id": 800}}, "task": {"id": 397, "owner": {"id": 970}, "assignee": {"id": 74}}, "job": {"id": 392, "assignee": {"id": 1190}}, "issue": {"id": 302, "owner": {"id": 1240}, "assignee": {"id": 1336}}, "organization": {"id": 1498}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 90, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "owner": {"id": 685}, "assignee": {"id": 539}, "project": {"id": 398, "owner": {"id": 702}, "assignee": {"id": 870}}, "task": {"id": 318, "owner": {"id": 957}, "assignee": {"id": 90}}, "job": {"id": 356, "assignee": {"id": 1121}}, "issue": {"id": 384, "owner": {"id": 1260}, "assignee": {"id": 1397}}, "organization": {"id": 1444}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "owner": {"id": 682}, "assignee": {"id": 540}, "project": {"id": 386, "owner": {"id": 755}, "assignee": {"id": 800}}, "task": {"id": 389, "owner": {"id": 949}, "assignee": {"id": 61}}, "job": {"id": 312, "assignee": {"id": 1145}}, "issue": {"id": 372, "owner": {"id": 1286}, "assignee": {"id": 1386}}, "organization": {"id": 130}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "owner": {"id": 620}, "assignee": {"id": 559}, "project": {"id": 337, "owner": {"id": 738}, "assignee": {"id": 898}}, "task": {"id": 330, "owner": {"id": 900}, "assignee": {"id": 86}}, "job": {"id": 345, "assignee": {"id": 1144}}, "issue": {"id": 343, "owner": {"id": 1242}, "assignee": {"id": 1371}}, "organization": {"id": 180}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "owner": {"id": 673}, "assignee": {"id": 593}, "project": {"id": 374, "owner": {"id": 743}, "assignee": {"id": 865}}, "task": {"id": 384, "owner": {"id": 968}, "assignee": {"id": 25}}, "job": {"id": 300, "assignee": {"id": 1117}}, "issue": {"id": 396, "owner": {"id": 1261}, "assignee": {"id": 1329}}, "organization": {"id": 1493}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "owner": {"id": 657}, "assignee": {"id": 558}, "project": {"id": 309, "owner": {"id": 736}, "assignee": {"id": 802}}, "task": {"id": 354, "owner": {"id": 969}, "assignee": {"id": 86}}, "job": {"id": 370, "assignee": {"id": 1160}}, "issue": {"id": 341, "owner": {"id": 1224}, "assignee": {"id": 1374}}, "organization": {"id": 1443}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 320, "owner": {"id": 638}, "assignee": {"id": 510}, "project": {"id": 304, "owner": {"id": 756}, "assignee": {"id": 847}}, "task": {"id": 382, "owner": {"id": 908}, "assignee": {"id": 1}}, "job": {"id": 323, "assignee": {"id": 1141}}, "issue": {"id": 333, "owner": {"id": 1257}, "assignee": {"id": 1394}}, "organization": {"id": 174}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 366, "owner": {"id": 637}, "assignee": {"id": 507}, "project": {"id": 317, "owner": {"id": 779}, "assignee": {"id": 862}}, "task": {"id": 322, "owner": {"id": 933}, "assignee": {"id": 79}}, "job": {"id": 391, "assignee": {"id": 1133}}, "issue": {"id": 317, "owner": {"id": 1234}, "assignee": {"id": 1394}}, "organization": {"id": 195}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 610}, "assignee": {"id": 526}, "project": {"id": 389, "owner": {"id": 716}, "assignee": {"id": 832}}, "task": {"id": 354, "owner": {"id": 958}, "assignee": {"id": 6}}, "job": {"id": 349, "assignee": {"id": 1193}}, "issue": {"id": 376, "owner": {"id": 1293}, "assignee": {"id": 1359}}, "organization": {"id": 1429}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 364, "owner": {"id": 698}, "assignee": {"id": 539}, "project": {"id": 392, "owner": {"id": 723}, "assignee": {"id": 857}}, "task": {"id": 373, "owner": {"id": 922}, "assignee": {"id": 78}}, "job": {"id": 305, "assignee": {"id": 1143}}, "issue": {"id": 335, "owner": {"id": 1233}, "assignee": {"id": 1349}}, "organization": {"id": 1443}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 71, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 357, "owner": {"id": 625}, "assignee": {"id": 531}, "project": {"id": 327, "owner": {"id": 779}, "assignee": {"id": 835}}, "task": {"id": 356, "owner": {"id": 970}, "assignee": {"id": 71}}, "job": {"id": 356, "assignee": {"id": 1102}}, "issue": {"id": 313, "owner": {"id": 1261}, "assignee": {"id": 1372}}, "organization": {"id": 167}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 341, "owner": {"id": 677}, "assignee": {"id": 587}, "project": {"id": 357, "owner": {"id": 784}, "assignee": {"id": 826}}, "task": {"id": 357, "owner": {"id": 911}, "assignee": {"id": 32}}, "job": {"id": 300, "assignee": {"id": 1142}}, "issue": {"id": 349, "owner": {"id": 1213}, "assignee": {"id": 1335}}, "organization": {"id": 137}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 390, "owner": {"id": 633}, "assignee": {"id": 571}, "project": {"id": 349, "owner": {"id": 795}, "assignee": {"id": 875}}, "task": {"id": 338, "owner": {"id": 935}, "assignee": {"id": 22}}, "job": {"id": 332, "assignee": {"id": 1182}}, "issue": {"id": 350, "owner": {"id": 1263}, "assignee": {"id": 1326}}, "organization": {"id": 1481}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 610}, "assignee": {"id": 588}, "project": {"id": 380, "owner": {"id": 713}, "assignee": {"id": 826}}, "task": {"id": 349, "owner": {"id": 987}, "assignee": {"id": 44}}, "job": {"id": 357, "assignee": {"id": 1166}}, "issue": {"id": 319, "owner": {"id": 1256}, "assignee": {"id": 1304}}, "organization": {"id": 1484}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 379, "owner": {"id": 609}, "assignee": {"id": 532}, "project": {"id": 320, "owner": {"id": 705}, "assignee": {"id": 898}}, "task": {"id": 320, "owner": {"id": 979}, "assignee": {"id": 6}}, "job": {"id": 382, "assignee": {"id": 1104}}, "issue": {"id": 333, "owner": {"id": 1299}, "assignee": {"id": 1321}}, "organization": {"id": 140}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 680}, "assignee": {"id": 509}, "project": {"id": 394, "owner": {"id": 792}, "assignee": {"id": 824}}, "task": {"id": 308, "owner": {"id": 928}, "assignee": {"id": 13}}, "job": {"id": 343, "assignee": {"id": 1184}}, "issue": {"id": 317, "owner": {"id": 1245}, "assignee": {"id": 1310}}, "organization": {"id": 163}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 664}, "assignee": {"id": 575}, "project": {"id": 394, "owner": {"id": 724}, "assignee": {"id": 822}}, "task": {"id": 317, "owner": {"id": 963}, "assignee": {"id": 79}}, "job": {"id": 306, "assignee": {"id": 1121}}, "issue": {"id": 322, "owner": {"id": 1200}, "assignee": {"id": 1384}}, "organization": {"id": 1436}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 368, "owner": {"id": 686}, "assignee": {"id": 571}, "project": {"id": 368, "owner": {"id": 784}, "assignee": {"id": 814}}, "task": {"id": 373, "owner": {"id": 904}, "assignee": {"id": 72}}, "job": {"id": 313, "assignee": {"id": 1141}}, "issue": {"id": 350, "owner": {"id": 1203}, "assignee": {"id": 1356}}, "organization": {"id": 1451}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 656}, "assignee": {"id": 506}, "project": {"id": 374, "owner": {"id": 771}, "assignee": {"id": 881}}, "task": {"id": 399, "owner": {"id": 934}, "assignee": {"id": 35}}, "job": {"id": 380, "assignee": {"id": 1132}}, "issue": {"id": 381, "owner": {"id": 1298}, "assignee": {"id": 1320}}, "organization": {"id": 109}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "owner": {"id": 610}, "assignee": {"id": 594}, "project": {"id": 366, "owner": {"id": 762}, "assignee": {"id": 846}}, "task": {"id": 313, "owner": {"id": 985}, "assignee": {"id": 58}}, "job": {"id": 337, "assignee": {"id": 1168}}, "issue": {"id": 359, "owner": {"id": 1221}, "assignee": {"id": 1346}}, "organization": {"id": 102}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "owner": {"id": 684}, "assignee": {"id": 511}, "project": {"id": 377, "owner": {"id": 783}, "assignee": {"id": 898}}, "task": {"id": 396, "owner": {"id": 963}, "assignee": {"id": 96}}, "job": {"id": 360, "assignee": {"id": 1139}}, "issue": {"id": 345, "owner": {"id": 1278}, "assignee": {"id": 1383}}, "organization": {"id": 1402}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 613}, "assignee": {"id": 573}, "project": {"id": 365, "owner": {"id": 739}, "assignee": {"id": 868}}, "task": {"id": 385, "owner": {"id": 988}, "assignee": {"id": 56}}, "job": {"id": 378, "assignee": {"id": 1100}}, "issue": {"id": 336, "owner": {"id": 1297}, "assignee": {"id": 1300}}, "organization": {"id": 1431}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "owner": {"id": 680}, "assignee": {"id": 594}, "project": {"id": 316, "owner": {"id": 776}, "assignee": {"id": 834}}, "task": {"id": 348, "owner": {"id": 917}, "assignee": {"id": 38}}, "job": {"id": 329, "assignee": {"id": 1144}}, "issue": {"id": 314, "owner": {"id": 1210}, "assignee": {"id": 1329}}, "organization": {"id": 100}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 653}, "assignee": {"id": 566}, "project": {"id": 316, "owner": {"id": 710}, "assignee": {"id": 871}}, "task": {"id": 364, "owner": {"id": 978}, "assignee": {"id": 61}}, "job": {"id": 300, "assignee": {"id": 1144}}, "issue": {"id": 369, "owner": {"id": 1281}, "assignee": {"id": 1316}}, "organization": {"id": 111}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 653}, "assignee": {"id": 565}, "project": {"id": 320, "owner": {"id": 779}, "assignee": {"id": 833}}, "task": {"id": 373, "owner": {"id": 932}, "assignee": {"id": 44}}, "job": {"id": 358, "assignee": {"id": 1130}}, "issue": {"id": 341, "owner": {"id": 1280}, "assignee": {"id": 1398}}, "organization": {"id": 1464}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "owner": {"id": 699}, "assignee": {"id": 546}, "project": {"id": 367, "owner": {"id": 704}, "assignee": {"id": 896}}, "task": {"id": 339, "owner": {"id": 960}, "assignee": {"id": 69}}, "job": {"id": 318, "assignee": {"id": 1145}}, "issue": {"id": 305, "owner": {"id": 1228}, "assignee": {"id": 1357}}, "organization": {"id": 1471}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 338, "owner": {"id": 689}, "assignee": {"id": 588}, "project": {"id": 374, "owner": {"id": 765}, "assignee": {"id": 849}}, "task": {"id": 352, "owner": {"id": 974}, "assignee": {"id": 81}}, "job": {"id": 317, "assignee": {"id": 1155}}, "issue": {"id": 303, "owner": {"id": 1241}, "assignee": {"id": 1327}}, "organization": {"id": 114}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 380, "owner": {"id": 638}, "assignee": {"id": 534}, "project": {"id": 374, "owner": {"id": 763}, "assignee": {"id": 866}}, "task": {"id": 323, "owner": {"id": 903}, "assignee": {"id": 47}}, "job": {"id": 329, "assignee": {"id": 1119}}, "issue": {"id": 380, "owner": {"id": 1282}, "assignee": {"id": 1323}}, "organization": {"id": 187}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 381, "owner": {"id": 650}, "assignee": {"id": 555}, "project": {"id": 318, "owner": {"id": 725}, "assignee": {"id": 868}}, "task": {"id": 377, "owner": {"id": 924}, "assignee": {"id": 41}}, "job": {"id": 385, "assignee": {"id": 1155}}, "issue": {"id": 390, "owner": {"id": 1243}, "assignee": {"id": 1304}}, "organization": {"id": 1441}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 307, "owner": {"id": 619}, "assignee": {"id": 555}, "project": {"id": 343, "owner": {"id": 772}, "assignee": {"id": 846}}, "task": {"id": 316, "owner": {"id": 907}, "assignee": {"id": 51}}, "job": {"id": 379, "assignee": {"id": 1117}}, "issue": {"id": 305, "owner": {"id": 1209}, "assignee": {"id": 1309}}, "organization": {"id": 1416}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 395, "owner": {"id": 609}, "assignee": {"id": 515}, "project": {"id": 316, "owner": {"id": 710}, "assignee": {"id": 854}}, "task": {"id": 383, "owner": {"id": 916}, "assignee": {"id": 58}}, "job": {"id": 397, "assignee": {"id": 1103}}, "issue": {"id": 346, "owner": {"id": 1223}, "assignee": {"id": 1323}}, "organization": {"id": 105}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 345, "owner": {"id": 653}, "assignee": {"id": 544}, "project": {"id": 315, "owner": {"id": 722}, "assignee": {"id": 881}}, "task": {"id": 358, "owner": {"id": 963}, "assignee": {"id": 85}}, "job": {"id": 382, "assignee": {"id": 1188}}, "issue": {"id": 324, "owner": {"id": 1218}, "assignee": {"id": 1355}}, "organization": {"id": 130}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 305, "owner": {"id": 695}, "assignee": {"id": 544}, "project": {"id": 374, "owner": {"id": 783}, "assignee": {"id": 841}}, "task": {"id": 364, "owner": {"id": 940}, "assignee": {"id": 74}}, "job": {"id": 352, "assignee": {"id": 1175}}, "issue": {"id": 332, "owner": {"id": 1292}, "assignee": {"id": 1309}}, "organization": {"id": 1465}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 652}, "assignee": {"id": 521}, "project": {"id": 313, "owner": {"id": 734}, "assignee": {"id": 824}}, "task": {"id": 350, "owner": {"id": 990}, "assignee": {"id": 93}}, "job": {"id": 326, "assignee": {"id": 1171}}, "issue": {"id": 310, "owner": {"id": 1241}, "assignee": {"id": 1317}}, "organization": {"id": 1477}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 630}, "assignee": {"id": 595}, "project": {"id": 307, "owner": {"id": 724}, "assignee": {"id": 881}}, "task": {"id": 349, "owner": {"id": 924}, "assignee": {"id": 32}}, "job": {"id": 343, "assignee": {"id": 1123}}, "issue": {"id": 306, "owner": {"id": 1261}, "assignee": {"id": 1301}}, "organization": {"id": 123}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 684}, "assignee": {"id": 532}, "project": {"id": 376, "owner": {"id": 707}, "assignee": {"id": 899}}, "task": {"id": 321, "owner": {"id": 969}, "assignee": {"id": 14}}, "job": {"id": 318, "assignee": {"id": 1172}}, "issue": {"id": 352, "owner": {"id": 1207}, "assignee": {"id": 1368}}, "organization": {"id": 127}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 699}, "assignee": {"id": 540}, "project": {"id": 313, "owner": {"id": 770}, "assignee": {"id": 885}}, "task": {"id": 349, "owner": {"id": 945}, "assignee": {"id": 59}}, "job": {"id": 330, "assignee": {"id": 1190}}, "issue": {"id": 375, "owner": {"id": 1244}, "assignee": {"id": 1380}}, "organization": {"id": 1472}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 648}, "assignee": {"id": 506}, "project": {"id": 313, "owner": {"id": 786}, "assignee": {"id": 838}}, "task": {"id": 324, "owner": {"id": 963}, "assignee": {"id": 4}}, "job": {"id": 317, "assignee": {"id": 1100}}, "issue": {"id": 310, "owner": {"id": 1294}, "assignee": {"id": 1390}}, "organization": {"id": 1434}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 610}, "assignee": {"id": 567}, "project": {"id": 343, "owner": {"id": 736}, "assignee": {"id": 807}}, "task": {"id": 331, "owner": {"id": 915}, "assignee": {"id": 65}}, "job": {"id": 386, "assignee": {"id": 1191}}, "issue": {"id": 368, "owner": {"id": 1272}, "assignee": {"id": 1311}}, "organization": {"id": 149}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "owner": {"id": 698}, "assignee": {"id": 538}, "project": {"id": 385, "owner": {"id": 714}, "assignee": {"id": 830}}, "task": {"id": 326, "owner": {"id": 938}, "assignee": {"id": 77}}, "job": {"id": 377, "assignee": {"id": 1169}}, "issue": {"id": 309, "owner": {"id": 1217}, "assignee": {"id": 1368}}, "organization": {"id": 158}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "owner": {"id": 696}, "assignee": {"id": 506}, "project": {"id": 387, "owner": {"id": 775}, "assignee": {"id": 880}}, "task": {"id": 317, "owner": {"id": 928}, "assignee": {"id": 80}}, "job": {"id": 368, "assignee": {"id": 1139}}, "issue": {"id": 323, "owner": {"id": 1261}, "assignee": {"id": 1369}}, "organization": {"id": 1472}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "owner": {"id": 695}, "assignee": {"id": 531}, "project": {"id": 323, "owner": {"id": 755}, "assignee": {"id": 875}}, "task": {"id": 399, "owner": {"id": 950}, "assignee": {"id": 75}}, "job": {"id": 368, "assignee": {"id": 1176}}, "issue": {"id": 356, "owner": {"id": 1238}, "assignee": {"id": 1395}}, "organization": {"id": 1430}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 674}, "assignee": {"id": 512}, "project": {"id": 390, "owner": {"id": 722}, "assignee": {"id": 861}}, "task": {"id": 308, "owner": {"id": 952}, "assignee": {"id": 82}}, "job": {"id": 394, "assignee": {"id": 1172}}, "issue": {"id": 308, "owner": {"id": 1269}, "assignee": {"id": 1374}}, "organization": {"id": 183}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "owner": {"id": 697}, "assignee": {"id": 534}, "project": {"id": 322, "owner": {"id": 717}, "assignee": {"id": 860}}, "task": {"id": 356, "owner": {"id": 980}, "assignee": {"id": 91}}, "job": {"id": 368, "assignee": {"id": 1192}}, "issue": {"id": 375, "owner": {"id": 1278}, "assignee": {"id": 1314}}, "organization": {"id": 141}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 697}, "assignee": {"id": 543}, "project": {"id": 337, "owner": {"id": 734}, "assignee": {"id": 816}}, "task": {"id": 329, "owner": {"id": 997}, "assignee": {"id": 40}}, "job": {"id": 377, "assignee": {"id": 1103}}, "issue": {"id": 314, "owner": {"id": 1289}, "assignee": {"id": 1317}}, "organization": {"id": 1429}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "owner": {"id": 600}, "assignee": {"id": 593}, "project": {"id": 394, "owner": {"id": 759}, "assignee": {"id": 865}}, "task": {"id": 327, "owner": {"id": 901}, "assignee": {"id": 12}}, "job": {"id": 396, "assignee": {"id": 1175}}, "issue": {"id": 332, "owner": {"id": 1283}, "assignee": {"id": 1370}}, "organization": {"id": 1428}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 363, "owner": {"id": 642}, "assignee": {"id": 575}, "project": {"id": 373, "owner": {"id": 702}, "assignee": {"id": 888}}, "task": {"id": 345, "owner": {"id": 960}, "assignee": {"id": 38}}, "job": {"id": 340, "assignee": {"id": 1188}}, "issue": {"id": 329, "owner": {"id": 1233}, "assignee": {"id": 1302}}, "organization": {"id": 181}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 337, "owner": {"id": 652}, "assignee": {"id": 505}, "project": {"id": 371, "owner": {"id": 739}, "assignee": {"id": 816}}, "task": {"id": 360, "owner": {"id": 900}, "assignee": {"id": 47}}, "job": {"id": 396, "assignee": {"id": 1103}}, "issue": {"id": 330, "owner": {"id": 1274}, "assignee": {"id": 1362}}, "organization": {"id": 197}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 342, "owner": {"id": 663}, "assignee": {"id": 519}, "project": {"id": 339, "owner": {"id": 733}, "assignee": {"id": 821}}, "task": {"id": 322, "owner": {"id": 979}, "assignee": {"id": 12}}, "job": {"id": 393, "assignee": {"id": 1182}}, "issue": {"id": 308, "owner": {"id": 1201}, "assignee": {"id": 1308}}, "organization": {"id": 1499}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 304, "owner": {"id": 648}, "assignee": {"id": 550}, "project": {"id": 350, "owner": {"id": 763}, "assignee": {"id": 888}}, "task": {"id": 303, "owner": {"id": 901}, "assignee": {"id": 62}}, "job": {"id": 328, "assignee": {"id": 1151}}, "issue": {"id": 359, "owner": {"id": 1225}, "assignee": {"id": 1364}}, "organization": {"id": 1404}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"id": 395, "owner": {"id": 617}, "assignee": {"id": 556}, "project": {"id": 319, "owner": {"id": 760}, "assignee": {"id": 818}}, "task": {"id": 389, "owner": {"id": 990}, "assignee": {"id": 18}}, "job": {"id": 310, "assignee": {"id": 1137}}, "issue": {"id": 340, "owner": {"id": 1216}, "assignee": {"id": 1332}}, "organization": {"id": 138}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"id": 344, "owner": {"id": 644}, "assignee": {"id": 550}, "project": {"id": 327, "owner": {"id": 736}, "assignee": {"id": 827}}, "task": {"id": 342, "owner": {"id": 900}, "assignee": {"id": 0}}, "job": {"id": 312, "assignee": {"id": 1149}}, "issue": {"id": 377, "owner": {"id": 1222}, "assignee": {"id": 1370}}, "organization": {"id": 163}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 398, "owner": {"id": 633}, "assignee": {"id": 588}, "project": {"id": 360, "owner": {"id": 722}, "assignee": {"id": 846}}, "task": {"id": 309, "owner": {"id": 915}, "assignee": {"id": 83}}, "job": {"id": 353, "assignee": {"id": 1149}}, "issue": {"id": 362, "owner": {"id": 1285}, "assignee": {"id": 1349}}, "organization": {"id": 1415}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 322, "owner": {"id": 698}, "assignee": {"id": 517}, "project": {"id": 387, "owner": {"id": 722}, "assignee": {"id": 845}}, "task": {"id": 362, "owner": {"id": 979}, "assignee": {"id": 36}}, "job": {"id": 387, "assignee": {"id": 1174}}, "issue": {"id": 379, "owner": {"id": 1292}, "assignee": {"id": 1342}}, "organization": {"id": 1477}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 325, "owner": {"id": 610}, "assignee": {"id": 591}, "project": {"id": 381, "owner": {"id": 726}, "assignee": {"id": 850}}, "task": {"id": 368, "owner": {"id": 927}, "assignee": {"id": 1091}}, "job": {"id": 382, "assignee": {"id": 16}}, "issue": {"id": 357, "owner": {"id": 1243}, "assignee": {"id": 1306}}, "organization": {"id": 130}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 664}, "assignee": {"id": 549}, "project": {"id": 367, "owner": {"id": 758}, "assignee": {"id": 888}}, "task": {"id": 349, "owner": {"id": 923}, "assignee": {"id": 1030}}, "job": {"id": 300, "assignee": {"id": 19}}, "issue": {"id": 368, "owner": {"id": 1202}, "assignee": {"id": 1325}}, "organization": {"id": 120}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 654}, "assignee": {"id": 591}, "project": {"id": 366, "owner": {"id": 762}, "assignee": {"id": 827}}, "task": {"id": 320, "owner": {"id": 911}, "assignee": {"id": 1008}}, "job": {"id": 385, "assignee": {"id": 47}}, "issue": {"id": 388, "owner": {"id": 1286}, "assignee": {"id": 1370}}, "organization": {"id": 1493}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 381, "owner": {"id": 686}, "assignee": {"id": 501}, "project": {"id": 359, "owner": {"id": 704}, "assignee": {"id": 840}}, "task": {"id": 348, "owner": {"id": 973}, "assignee": {"id": 1062}}, "job": {"id": 397, "assignee": {"id": 35}}, "issue": {"id": 340, "owner": {"id": 1230}, "assignee": {"id": 1399}}, "organization": {"id": 1491}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "owner": {"id": 688}, "assignee": {"id": 562}, "project": {"id": 355, "owner": {"id": 701}, "assignee": {"id": 816}}, "task": {"id": 315, "owner": {"id": 986}, "assignee": {"id": 1062}}, "job": {"id": 330, "assignee": {"id": 59}}, "issue": {"id": 316, "owner": {"id": 1203}, "assignee": {"id": 1333}}, "organization": {"id": 149}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 7, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "owner": {"id": 609}, "assignee": {"id": 554}, "project": {"id": 339, "owner": {"id": 776}, "assignee": {"id": 854}}, "task": {"id": 397, "owner": {"id": 992}, "assignee": {"id": 1025}}, "job": {"id": 317, "assignee": {"id": 7}}, "issue": {"id": 372, "owner": {"id": 1240}, "assignee": {"id": 1389}}, "organization": {"id": 142}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "owner": {"id": 671}, "assignee": {"id": 507}, "project": {"id": 320, "owner": {"id": 764}, "assignee": {"id": 897}}, "task": {"id": 302, "owner": {"id": 983}, "assignee": {"id": 1036}}, "job": {"id": 307, "assignee": {"id": 30}}, "issue": {"id": 372, "owner": {"id": 1239}, "assignee": {"id": 1334}}, "organization": {"id": 1455}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "owner": {"id": 690}, "assignee": {"id": 586}, "project": {"id": 344, "owner": {"id": 769}, "assignee": {"id": 863}}, "task": {"id": 380, "owner": {"id": 991}, "assignee": {"id": 1084}}, "job": {"id": 316, "assignee": {"id": 58}}, "issue": {"id": 336, "owner": {"id": 1282}, "assignee": {"id": 1372}}, "organization": {"id": 1451}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 676}, "assignee": {"id": 517}, "project": {"id": 374, "owner": {"id": 753}, "assignee": {"id": 891}}, "task": {"id": 313, "owner": {"id": 964}, "assignee": {"id": 1086}}, "job": {"id": 338, "assignee": {"id": 26}}, "issue": {"id": 341, "owner": {"id": 1222}, "assignee": {"id": 1329}}, "organization": {"id": 125}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "owner": {"id": 695}, "assignee": {"id": 515}, "project": {"id": 389, "owner": {"id": 757}, "assignee": {"id": 802}}, "task": {"id": 316, "owner": {"id": 973}, "assignee": {"id": 1093}}, "job": {"id": 306, "assignee": {"id": 95}}, "issue": {"id": 331, "owner": {"id": 1254}, "assignee": {"id": 1329}}, "organization": {"id": 113}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "owner": {"id": 666}, "assignee": {"id": 543}, "project": {"id": 322, "owner": {"id": 796}, "assignee": {"id": 840}}, "task": {"id": 396, "owner": {"id": 909}, "assignee": {"id": 1075}}, "job": {"id": 339, "assignee": {"id": 85}}, "issue": {"id": 350, "owner": {"id": 1253}, "assignee": {"id": 1301}}, "organization": {"id": 1411}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 600}, "assignee": {"id": 510}, "project": {"id": 340, "owner": {"id": 756}, "assignee": {"id": 863}}, "task": {"id": 338, "owner": {"id": 919}, "assignee": {"id": 1063}}, "job": {"id": 307, "assignee": {"id": 65}}, "issue": {"id": 344, "owner": {"id": 1262}, "assignee": {"id": 1385}}, "organization": {"id": 1463}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 36, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 367, "owner": {"id": 651}, "assignee": {"id": 540}, "project": {"id": 395, "owner": {"id": 739}, "assignee": {"id": 843}}, "task": {"id": 376, "owner": {"id": 988}, "assignee": {"id": 1098}}, "job": {"id": 317, "assignee": {"id": 36}}, "issue": {"id": 303, "owner": {"id": 1249}, "assignee": {"id": 1310}}, "organization": {"id": 115}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 326, "owner": {"id": 676}, "assignee": {"id": 569}, "project": {"id": 369, "owner": {"id": 702}, "assignee": {"id": 872}}, "task": {"id": 302, "owner": {"id": 946}, "assignee": {"id": 1069}}, "job": {"id": 389, "assignee": {"id": 79}}, "issue": {"id": 364, "owner": {"id": 1274}, "assignee": {"id": 1332}}, "organization": {"id": 172}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 606}, "assignee": {"id": 529}, "project": {"id": 399, "owner": {"id": 705}, "assignee": {"id": 832}}, "task": {"id": 305, "owner": {"id": 954}, "assignee": {"id": 1070}}, "job": {"id": 375, "assignee": {"id": 94}}, "issue": {"id": 311, "owner": {"id": 1209}, "assignee": {"id": 1332}}, "organization": {"id": 1471}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 621}, "assignee": {"id": 575}, "project": {"id": 383, "owner": {"id": 702}, "assignee": {"id": 840}}, "task": {"id": 329, "owner": {"id": 926}, "assignee": {"id": 1085}}, "job": {"id": 354, "assignee": {"id": 99}}, "issue": {"id": 376, "owner": {"id": 1239}, "assignee": {"id": 1370}}, "organization": {"id": 1430}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 679}, "assignee": {"id": 528}, "project": {"id": 316, "owner": {"id": 766}, "assignee": {"id": 822}}, "task": {"id": 380, "owner": {"id": 952}, "assignee": {"id": 1068}}, "job": {"id": 394, "assignee": {"id": 72}}, "issue": {"id": 386, "owner": {"id": 1212}, "assignee": {"id": 1394}}, "organization": {"id": 147}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 628}, "assignee": {"id": 502}, "project": {"id": 361, "owner": {"id": 737}, "assignee": {"id": 850}}, "task": {"id": 351, "owner": {"id": 991}, "assignee": {"id": 1027}}, "job": {"id": 310, "assignee": {"id": 98}}, "issue": {"id": 399, "owner": {"id": 1251}, "assignee": {"id": 1328}}, "organization": {"id": 175}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 331, "owner": {"id": 662}, "assignee": {"id": 594}, "project": {"id": 365, "owner": {"id": 737}, "assignee": {"id": 807}}, "task": {"id": 329, "owner": {"id": 900}, "assignee": {"id": 1070}}, "job": {"id": 376, "assignee": {"id": 48}}, "issue": {"id": 364, "owner": {"id": 1247}, "assignee": {"id": 1356}}, "organization": {"id": 1457}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 355, "owner": {"id": 608}, "assignee": {"id": 574}, "project": {"id": 316, "owner": {"id": 738}, "assignee": {"id": 895}}, "task": {"id": 362, "owner": {"id": 956}, "assignee": {"id": 1043}}, "job": {"id": 306, "assignee": {"id": 66}}, "issue": {"id": 386, "owner": {"id": 1277}, "assignee": {"id": 1300}}, "organization": {"id": 1454}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 376, "owner": {"id": 687}, "assignee": {"id": 595}, "project": {"id": 355, "owner": {"id": 796}, "assignee": {"id": 875}}, "task": {"id": 392, "owner": {"id": 942}, "assignee": {"id": 1014}}, "job": {"id": 311, "assignee": {"id": 38}}, "issue": {"id": 317, "owner": {"id": 1236}, "assignee": {"id": 1353}}, "organization": {"id": 191}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 609}, "assignee": {"id": 562}, "project": {"id": 367, "owner": {"id": 766}, "assignee": {"id": 873}}, "task": {"id": 313, "owner": {"id": 903}, "assignee": {"id": 1042}}, "job": {"id": 344, "assignee": {"id": 91}}, "issue": {"id": 324, "owner": {"id": 1220}, "assignee": {"id": 1386}}, "organization": {"id": 153}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 655}, "assignee": {"id": 547}, "project": {"id": 354, "owner": {"id": 746}, "assignee": {"id": 810}}, "task": {"id": 377, "owner": {"id": 971}, "assignee": {"id": 1020}}, "job": {"id": 310, "assignee": {"id": 55}}, "issue": {"id": 374, "owner": {"id": 1228}, "assignee": {"id": 1318}}, "organization": {"id": 1499}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"id": 353, "owner": {"id": 631}, "assignee": {"id": 549}, "project": {"id": 394, "owner": {"id": 784}, "assignee": {"id": 861}}, "task": {"id": 379, "owner": {"id": 930}, "assignee": {"id": 1045}}, "job": {"id": 362, "assignee": {"id": 20}}, "issue": {"id": 305, "owner": {"id": 1288}, "assignee": {"id": 1376}}, "organization": {"id": 1454}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "owner": {"id": 693}, "assignee": {"id": 590}, "project": {"id": 386, "owner": {"id": 768}, "assignee": {"id": 806}}, "task": {"id": 387, "owner": {"id": 940}, "assignee": {"id": 1060}}, "job": {"id": 337, "assignee": {"id": 86}}, "issue": {"id": 370, "owner": {"id": 1280}, "assignee": {"id": 1344}}, "organization": {"id": 140}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "owner": {"id": 612}, "assignee": {"id": 562}, "project": {"id": 309, "owner": {"id": 799}, "assignee": {"id": 827}}, "task": {"id": 314, "owner": {"id": 936}, "assignee": {"id": 1042}}, "job": {"id": 349, "assignee": {"id": 23}}, "issue": {"id": 366, "owner": {"id": 1234}, "assignee": {"id": 1362}}, "organization": {"id": 112}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "owner": {"id": 665}, "assignee": {"id": 504}, "project": {"id": 363, "owner": {"id": 786}, "assignee": {"id": 812}}, "task": {"id": 392, "owner": {"id": 902}, "assignee": {"id": 1053}}, "job": {"id": 360, "assignee": {"id": 10}}, "issue": {"id": 309, "owner": {"id": 1225}, "assignee": {"id": 1364}}, "organization": {"id": 1439}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "owner": {"id": 651}, "assignee": {"id": 567}, "project": {"id": 346, "owner": {"id": 708}, "assignee": {"id": 824}}, "task": {"id": 341, "owner": {"id": 968}, "assignee": {"id": 1054}}, "job": {"id": 309, "assignee": {"id": 90}}, "issue": {"id": 323, "owner": {"id": 1299}, "assignee": {"id": 1398}}, "organization": {"id": 1473}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "owner": {"id": 679}, "assignee": {"id": 598}, "project": {"id": 325, "owner": {"id": 700}, "assignee": {"id": 831}}, "task": {"id": 350, "owner": {"id": 944}, "assignee": {"id": 1059}}, "job": {"id": 343, "assignee": {"id": 98}}, "issue": {"id": 343, "owner": {"id": 1224}, "assignee": {"id": 1356}}, "organization": {"id": 191}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "owner": {"id": 659}, "assignee": {"id": 522}, "project": {"id": 355, "owner": {"id": 732}, "assignee": {"id": 805}}, "task": {"id": 335, "owner": {"id": 907}, "assignee": {"id": 1012}}, "job": {"id": 316, "assignee": {"id": 2}}, "issue": {"id": 305, "owner": {"id": 1254}, "assignee": {"id": 1397}}, "organization": {"id": 167}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 614}, "assignee": {"id": 564}, "project": {"id": 359, "owner": {"id": 743}, "assignee": {"id": 870}}, "task": {"id": 322, "owner": {"id": 964}, "assignee": {"id": 1079}}, "job": {"id": 381, "assignee": {"id": 28}}, "issue": {"id": 364, "owner": {"id": 1294}, "assignee": {"id": 1338}}, "organization": {"id": 1474}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "owner": {"id": 680}, "assignee": {"id": 561}, "project": {"id": 345, "owner": {"id": 713}, "assignee": {"id": 896}}, "task": {"id": 356, "owner": {"id": 972}, "assignee": {"id": 1091}}, "job": {"id": 319, "assignee": {"id": 77}}, "issue": {"id": 317, "owner": {"id": 1271}, "assignee": {"id": 1327}}, "organization": {"id": 1408}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 381, "owner": {"id": 632}, "assignee": {"id": 517}, "project": {"id": 366, "owner": {"id": 742}, "assignee": {"id": 817}}, "task": {"id": 380, "owner": {"id": 987}, "assignee": {"id": 1092}}, "job": {"id": 343, "assignee": {"id": 11}}, "issue": {"id": 328, "owner": {"id": 1275}, "assignee": {"id": 1347}}, "organization": {"id": 116}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 330, "owner": {"id": 601}, "assignee": {"id": 582}, "project": {"id": 302, "owner": {"id": 752}, "assignee": {"id": 898}}, "task": {"id": 382, "owner": {"id": 989}, "assignee": {"id": 1033}}, "job": {"id": 318, "assignee": {"id": 37}}, "issue": {"id": 358, "owner": {"id": 1246}, "assignee": {"id": 1334}}, "organization": {"id": 108}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 398, "owner": {"id": 658}, "assignee": {"id": 558}, "project": {"id": 353, "owner": {"id": 754}, "assignee": {"id": 877}}, "task": {"id": 348, "owner": {"id": 942}, "assignee": {"id": 1078}}, "job": {"id": 388, "assignee": {"id": 59}}, "issue": {"id": 397, "owner": {"id": 1223}, "assignee": {"id": 1315}}, "organization": {"id": 1465}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 320, "owner": {"id": 623}, "assignee": {"id": 545}, "project": {"id": 354, "owner": {"id": 702}, "assignee": {"id": 847}}, "task": {"id": 338, "owner": {"id": 977}, "assignee": {"id": 1061}}, "job": {"id": 369, "assignee": {"id": 33}}, "issue": {"id": 331, "owner": {"id": 1224}, "assignee": {"id": 1319}}, "organization": {"id": 1439}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 673}, "assignee": {"id": 544}, "project": {"id": 363, "owner": {"id": 739}, "assignee": {"id": 820}}, "task": {"id": 359, "owner": {"id": 981}, "assignee": {"id": 1015}}, "job": {"id": 326, "assignee": {"id": 84}}, "issue": {"id": 339, "owner": {"id": 1217}, "assignee": {"id": 1387}}, "organization": {"id": 180}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 394, "owner": {"id": 649}, "assignee": {"id": 567}, "project": {"id": 366, "owner": {"id": 726}, "assignee": {"id": 894}}, "task": {"id": 343, "owner": {"id": 908}, "assignee": {"id": 1043}}, "job": {"id": 364, "assignee": {"id": 5}}, "issue": {"id": 333, "owner": {"id": 1232}, "assignee": {"id": 1319}}, "organization": {"id": 147}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 321, "owner": {"id": 629}, "assignee": {"id": 528}, "project": {"id": 322, "owner": {"id": 794}, "assignee": {"id": 858}}, "task": {"id": 309, "owner": {"id": 936}, "assignee": {"id": 1056}}, "job": {"id": 363, "assignee": {"id": 47}}, "issue": {"id": 390, "owner": {"id": 1242}, "assignee": {"id": 1309}}, "organization": {"id": 1400}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 662}, "assignee": {"id": 596}, "project": {"id": 397, "owner": {"id": 770}, "assignee": {"id": 884}}, "task": {"id": 370, "owner": {"id": 925}, "assignee": {"id": 1073}}, "job": {"id": 346, "assignee": {"id": 91}}, "issue": {"id": 347, "owner": {"id": 1265}, "assignee": {"id": 1367}}, "organization": {"id": 1437}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 343, "owner": {"id": 677}, "assignee": {"id": 552}, "project": {"id": 326, "owner": {"id": 781}, "assignee": {"id": 856}}, "task": {"id": 370, "owner": {"id": 943}, "assignee": {"id": 1007}}, "job": {"id": 320, "assignee": {"id": 16}}, "issue": {"id": 312, "owner": {"id": 1277}, "assignee": {"id": 1322}}, "organization": {"id": 196}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 343, "owner": {"id": 640}, "assignee": {"id": 550}, "project": {"id": 308, "owner": {"id": 740}, "assignee": {"id": 869}}, "task": {"id": 377, "owner": {"id": 951}, "assignee": {"id": 1098}}, "job": {"id": 396, "assignee": {"id": 23}}, "issue": {"id": 390, "owner": {"id": 1273}, "assignee": {"id": 1349}}, "organization": {"id": 195}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 319, "owner": {"id": 679}, "assignee": {"id": 526}, "project": {"id": 399, "owner": {"id": 751}, "assignee": {"id": 813}}, "task": {"id": 391, "owner": {"id": 929}, "assignee": {"id": 1059}}, "job": {"id": 337, "assignee": {"id": 58}}, "issue": {"id": 307, "owner": {"id": 1203}, "assignee": {"id": 1370}}, "organization": {"id": 1469}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 352, "owner": {"id": 648}, "assignee": {"id": 516}, "project": {"id": 392, "owner": {"id": 755}, "assignee": {"id": 864}}, "task": {"id": 365, "owner": {"id": 972}, "assignee": {"id": 1061}}, "job": {"id": 396, "assignee": {"id": 47}}, "issue": {"id": 339, "owner": {"id": 1276}, "assignee": {"id": 1369}}, "organization": {"id": 1427}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "owner": {"id": 618}, "assignee": {"id": 571}, "project": {"id": 375, "owner": {"id": 718}, "assignee": {"id": 864}}, "task": {"id": 371, "owner": {"id": 979}, "assignee": {"id": 1055}}, "job": {"id": 316, "assignee": {"id": 4}}, "issue": {"id": 312, "owner": {"id": 1247}, "assignee": {"id": 1364}}, "organization": {"id": 188}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 602}, "assignee": {"id": 583}, "project": {"id": 364, "owner": {"id": 781}, "assignee": {"id": 824}}, "task": {"id": 354, "owner": {"id": 900}, "assignee": {"id": 1097}}, "job": {"id": 375, "assignee": {"id": 16}}, "issue": {"id": 321, "owner": {"id": 1282}, "assignee": {"id": 1335}}, "organization": {"id": 106}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "owner": {"id": 686}, "assignee": {"id": 599}, "project": {"id": 395, "owner": {"id": 745}, "assignee": {"id": 863}}, "task": {"id": 332, "owner": {"id": 907}, "assignee": {"id": 1023}}, "job": {"id": 323, "assignee": {"id": 43}}, "issue": {"id": 324, "owner": {"id": 1241}, "assignee": {"id": 1340}}, "organization": {"id": 1437}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 676}, "assignee": {"id": 590}, "project": {"id": 354, "owner": {"id": 791}, "assignee": {"id": 837}}, "task": {"id": 331, "owner": {"id": 922}, "assignee": {"id": 1045}}, "job": {"id": 342, "assignee": {"id": 21}}, "issue": {"id": 396, "owner": {"id": 1253}, "assignee": {"id": 1390}}, "organization": {"id": 1433}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "owner": {"id": 624}, "assignee": {"id": 500}, "project": {"id": 370, "owner": {"id": 777}, "assignee": {"id": 865}}, "task": {"id": 350, "owner": {"id": 913}, "assignee": {"id": 1040}}, "job": {"id": 360, "assignee": {"id": 60}}, "issue": {"id": 346, "owner": {"id": 1234}, "assignee": {"id": 1372}}, "organization": {"id": 153}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "owner": {"id": 676}, "assignee": {"id": 517}, "project": {"id": 355, "owner": {"id": 727}, "assignee": {"id": 861}}, "task": {"id": 375, "owner": {"id": 953}, "assignee": {"id": 1093}}, "job": {"id": 392, "assignee": {"id": 50}}, "issue": {"id": 315, "owner": {"id": 1254}, "assignee": {"id": 1398}}, "organization": {"id": 137}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "owner": {"id": 677}, "assignee": {"id": 543}, "project": {"id": 364, "owner": {"id": 712}, "assignee": {"id": 804}}, "task": {"id": 322, "owner": {"id": 956}, "assignee": {"id": 1049}}, "job": {"id": 391, "assignee": {"id": 0}}, "issue": {"id": 369, "owner": {"id": 1266}, "assignee": {"id": 1360}}, "organization": {"id": 1460}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "owner": {"id": 647}, "assignee": {"id": 560}, "project": {"id": 310, "owner": {"id": 742}, "assignee": {"id": 847}}, "task": {"id": 355, "owner": {"id": 905}, "assignee": {"id": 1007}}, "job": {"id": 307, "assignee": {"id": 28}}, "issue": {"id": 381, "owner": {"id": 1278}, "assignee": {"id": 1332}}, "organization": {"id": 1456}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 622}, "assignee": {"id": 557}, "project": {"id": 339, "owner": {"id": 729}, "assignee": {"id": 821}}, "task": {"id": 398, "owner": {"id": 943}, "assignee": {"id": 1042}}, "job": {"id": 372, "assignee": {"id": 41}}, "issue": {"id": 319, "owner": {"id": 1277}, "assignee": {"id": 1300}}, "organization": {"id": 130}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 641}, "assignee": {"id": 526}, "project": {"id": 347, "owner": {"id": 728}, "assignee": {"id": 866}}, "task": {"id": 338, "owner": {"id": 948}, "assignee": {"id": 1070}}, "job": {"id": 394, "assignee": {"id": 48}}, "issue": {"id": 341, "owner": {"id": 1215}, "assignee": {"id": 1392}}, "organization": {"id": 185}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 638}, "assignee": {"id": 561}, "project": {"id": 343, "owner": {"id": 743}, "assignee": {"id": 853}}, "task": {"id": 397, "owner": {"id": 994}, "assignee": {"id": 1092}}, "job": {"id": 361, "assignee": {"id": 57}}, "issue": {"id": 396, "owner": {"id": 1234}, "assignee": {"id": 1313}}, "organization": {"id": 1440}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 383, "owner": {"id": 620}, "assignee": {"id": 519}, "project": {"id": 351, "owner": {"id": 725}, "assignee": {"id": 808}}, "task": {"id": 389, "owner": {"id": 937}, "assignee": {"id": 1005}}, "job": {"id": 305, "assignee": {"id": 74}}, "issue": {"id": 380, "owner": {"id": 1237}, "assignee": {"id": 1398}}, "organization": {"id": 1416}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 603}, "assignee": {"id": 563}, "project": {"id": 334, "owner": {"id": 751}, "assignee": {"id": 852}}, "task": {"id": 361, "owner": {"id": 989}, "assignee": {"id": 1051}}, "job": {"id": 313, "assignee": {"id": 31}}, "issue": {"id": 390, "owner": {"id": 1227}, "assignee": {"id": 1368}}, "organization": {"id": 180}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 328, "owner": {"id": 658}, "assignee": {"id": 583}, "project": {"id": 367, "owner": {"id": 711}, "assignee": {"id": 806}}, "task": {"id": 322, "owner": {"id": 977}, "assignee": {"id": 1040}}, "job": {"id": 395, "assignee": {"id": 47}}, "issue": {"id": 311, "owner": {"id": 1253}, "assignee": {"id": 1393}}, "organization": {"id": 165}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 369, "owner": {"id": 681}, "assignee": {"id": 517}, "project": {"id": 390, "owner": {"id": 798}, "assignee": {"id": 855}}, "task": {"id": 363, "owner": {"id": 993}, "assignee": {"id": 1026}}, "job": {"id": 302, "assignee": {"id": 92}}, "issue": {"id": 352, "owner": {"id": 1235}, "assignee": {"id": 1384}}, "organization": {"id": 1429}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"id": 323, "owner": {"id": 681}, "assignee": {"id": 576}, "project": {"id": 380, "owner": {"id": 710}, "assignee": {"id": 857}}, "task": {"id": 300, "owner": {"id": 962}, "assignee": {"id": 1013}}, "job": {"id": 368, "assignee": {"id": 81}}, "issue": {"id": 322, "owner": {"id": 1251}, "assignee": {"id": 1323}}, "organization": {"id": 1458}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 659}, "assignee": {"id": 541}, "project": {"id": 310, "owner": {"id": 732}, "assignee": {"id": 869}}, "task": {"id": 326, "owner": {"id": 916}, "assignee": {"id": 1029}}, "job": {"id": 332, "assignee": {"id": 28}}, "issue": {"id": 340, "owner": {"id": 1242}, "assignee": {"id": 1307}}, "organization": {"id": 111}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 399, "owner": {"id": 636}, "assignee": {"id": 585}, "project": {"id": 332, "owner": {"id": 798}, "assignee": {"id": 894}}, "task": {"id": 392, "owner": {"id": 967}, "assignee": {"id": 1029}}, "job": {"id": 310, "assignee": {"id": 40}}, "issue": {"id": 310, "owner": {"id": 1289}, "assignee": {"id": 1391}}, "organization": {"id": 127}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 643}, "assignee": {"id": 510}, "project": {"id": 333, "owner": {"id": 794}, "assignee": {"id": 871}}, "task": {"id": 369, "owner": {"id": 902}, "assignee": {"id": 1065}}, "job": {"id": 315, "assignee": {"id": 35}}, "issue": {"id": 382, "owner": {"id": 1288}, "assignee": {"id": 1322}}, "organization": {"id": 1425}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 692}, "assignee": {"id": 501}, "project": {"id": 373, "owner": {"id": 716}, "assignee": {"id": 840}}, "task": {"id": 317, "owner": {"id": 979}, "assignee": {"id": 1012}}, "job": {"id": 326, "assignee": {"id": 96}}, "issue": {"id": 327, "owner": {"id": 1256}, "assignee": {"id": 1359}}, "organization": {"id": 1475}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "owner": {"id": 621}, "assignee": {"id": 516}, "project": {"id": 312, "owner": {"id": 709}, "assignee": {"id": 817}}, "task": {"id": 336, "owner": {"id": 974}, "assignee": {"id": 1049}}, "job": {"id": 324, "assignee": {"id": 66}}, "issue": {"id": 313, "owner": {"id": 1293}, "assignee": {"id": 1383}}, "organization": {"id": 192}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "owner": {"id": 625}, "assignee": {"id": 565}, "project": {"id": 399, "owner": {"id": 731}, "assignee": {"id": 889}}, "task": {"id": 387, "owner": {"id": 962}, "assignee": {"id": 1042}}, "job": {"id": 371, "assignee": {"id": 98}}, "issue": {"id": 397, "owner": {"id": 1274}, "assignee": {"id": 1341}}, "organization": {"id": 160}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "owner": {"id": 698}, "assignee": {"id": 543}, "project": {"id": 355, "owner": {"id": 704}, "assignee": {"id": 891}}, "task": {"id": 397, "owner": {"id": 904}, "assignee": {"id": 1051}}, "job": {"id": 338, "assignee": {"id": 69}}, "issue": {"id": 388, "owner": {"id": 1269}, "assignee": {"id": 1393}}, "organization": {"id": 1450}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "owner": {"id": 648}, "assignee": {"id": 595}, "project": {"id": 361, "owner": {"id": 740}, "assignee": {"id": 878}}, "task": {"id": 393, "owner": {"id": 940}, "assignee": {"id": 1096}}, "job": {"id": 360, "assignee": {"id": 16}}, "issue": {"id": 314, "owner": {"id": 1249}, "assignee": {"id": 1396}}, "organization": {"id": 1470}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 669}, "assignee": {"id": 552}, "project": {"id": 345, "owner": {"id": 727}, "assignee": {"id": 804}}, "task": {"id": 389, "owner": {"id": 959}, "assignee": {"id": 1062}}, "job": {"id": 351, "assignee": {"id": 57}}, "issue": {"id": 304, "owner": {"id": 1294}, "assignee": {"id": 1317}}, "organization": {"id": 189}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 621}, "assignee": {"id": 533}, "project": {"id": 388, "owner": {"id": 737}, "assignee": {"id": 814}}, "task": {"id": 329, "owner": {"id": 901}, "assignee": {"id": 1028}}, "job": {"id": 397, "assignee": {"id": 52}}, "issue": {"id": 333, "owner": {"id": 1274}, "assignee": {"id": 1358}}, "organization": {"id": 160}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 340, "owner": {"id": 633}, "assignee": {"id": 589}, "project": {"id": 316, "owner": {"id": 786}, "assignee": {"id": 810}}, "task": {"id": 316, "owner": {"id": 972}, "assignee": {"id": 1047}}, "job": {"id": 350, "assignee": {"id": 43}}, "issue": {"id": 368, "owner": {"id": 1248}, "assignee": {"id": 1364}}, "organization": {"id": 1455}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "owner": {"id": 616}, "assignee": {"id": 539}, "project": {"id": 370, "owner": {"id": 775}, "assignee": {"id": 802}}, "task": {"id": 364, "owner": {"id": 916}, "assignee": {"id": 1033}}, "job": {"id": 391, "assignee": {"id": 59}}, "issue": {"id": 338, "owner": {"id": 1272}, "assignee": {"id": 1306}}, "organization": {"id": 1437}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 627}, "assignee": {"id": 565}, "project": {"id": 395, "owner": {"id": 715}, "assignee": {"id": 810}}, "task": {"id": 364, "owner": {"id": 944}, "assignee": {"id": 1027}}, "job": {"id": 337, "assignee": {"id": 49}}, "issue": {"id": 307, "owner": {"id": 1245}, "assignee": {"id": 1360}}, "organization": {"id": 187}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 353, "owner": {"id": 663}, "assignee": {"id": 540}, "project": {"id": 391, "owner": {"id": 746}, "assignee": {"id": 856}}, "task": {"id": 360, "owner": {"id": 903}, "assignee": {"id": 1073}}, "job": {"id": 361, "assignee": {"id": 42}}, "issue": {"id": 334, "owner": {"id": 1259}, "assignee": {"id": 1364}}, "organization": {"id": 194}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 315, "owner": {"id": 676}, "assignee": {"id": 537}, "project": {"id": 373, "owner": {"id": 731}, "assignee": {"id": 830}}, "task": {"id": 303, "owner": {"id": 903}, "assignee": {"id": 1078}}, "job": {"id": 309, "assignee": {"id": 18}}, "issue": {"id": 374, "owner": {"id": 1207}, "assignee": {"id": 1381}}, "organization": {"id": 1430}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 67, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 681}, "assignee": {"id": 523}, "project": {"id": 308, "owner": {"id": 779}, "assignee": {"id": 836}}, "task": {"id": 344, "owner": {"id": 920}, "assignee": {"id": 1063}}, "job": {"id": 322, "assignee": {"id": 67}}, "issue": {"id": 368, "owner": {"id": 1250}, "assignee": {"id": 1343}}, "organization": {"id": 1444}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 342, "owner": {"id": 689}, "assignee": {"id": 523}, "project": {"id": 303, "owner": {"id": 731}, "assignee": {"id": 805}}, "task": {"id": 339, "owner": {"id": 989}, "assignee": {"id": 1031}}, "job": {"id": 376, "assignee": {"id": 61}}, "issue": {"id": 352, "owner": {"id": 1244}, "assignee": {"id": 1389}}, "organization": {"id": 105}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 378, "owner": {"id": 653}, "assignee": {"id": 552}, "project": {"id": 386, "owner": {"id": 773}, "assignee": {"id": 845}}, "task": {"id": 322, "owner": {"id": 916}, "assignee": {"id": 1096}}, "job": {"id": 398, "assignee": {"id": 88}}, "issue": {"id": 317, "owner": {"id": 1257}, "assignee": {"id": 1354}}, "organization": {"id": 139}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 669}, "assignee": {"id": 565}, "project": {"id": 399, "owner": {"id": 728}, "assignee": {"id": 808}}, "task": {"id": 300, "owner": {"id": 914}, "assignee": {"id": 1055}}, "job": {"id": 349, "assignee": {"id": 58}}, "issue": {"id": 304, "owner": {"id": 1258}, "assignee": {"id": 1354}}, "organization": {"id": 1475}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 671}, "assignee": {"id": 561}, "project": {"id": 345, "owner": {"id": 768}, "assignee": {"id": 893}}, "task": {"id": 363, "owner": {"id": 957}, "assignee": {"id": 1010}}, "job": {"id": 340, "assignee": {"id": 69}}, "issue": {"id": 338, "owner": {"id": 1280}, "assignee": {"id": 1386}}, "organization": {"id": 1440}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 302, "owner": {"id": 670}, "assignee": {"id": 525}, "project": {"id": 324, "owner": {"id": 701}, "assignee": {"id": 854}}, "task": {"id": 384, "owner": {"id": 978}, "assignee": {"id": 1015}}, "job": {"id": 380, "assignee": {"id": 59}}, "issue": {"id": 340, "owner": {"id": 1267}, "assignee": {"id": 1394}}, "organization": {"id": 157}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 380, "owner": {"id": 627}, "assignee": {"id": 587}, "project": {"id": 318, "owner": {"id": 708}, "assignee": {"id": 896}}, "task": {"id": 338, "owner": {"id": 941}, "assignee": {"id": 1024}}, "job": {"id": 384, "assignee": {"id": 47}}, "issue": {"id": 375, "owner": {"id": 1284}, "assignee": {"id": 1398}}, "organization": {"id": 149}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 680}, "assignee": {"id": 505}, "project": {"id": 300, "owner": {"id": 767}, "assignee": {"id": 839}}, "task": {"id": 341, "owner": {"id": 912}, "assignee": {"id": 1012}}, "job": {"id": 397, "assignee": {"id": 83}}, "issue": {"id": 335, "owner": {"id": 1244}, "assignee": {"id": 1324}}, "organization": {"id": 1483}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 362, "owner": {"id": 620}, "assignee": {"id": 583}, "project": {"id": 392, "owner": {"id": 748}, "assignee": {"id": 882}}, "task": {"id": 354, "owner": {"id": 904}, "assignee": {"id": 1093}}, "job": {"id": 317, "assignee": {"id": 75}}, "issue": {"id": 323, "owner": {"id": 1255}, "assignee": {"id": 1380}}, "organization": {"id": 1437}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "owner": {"id": 648}, "assignee": {"id": 599}, "project": {"id": 384, "owner": {"id": 778}, "assignee": {"id": 827}}, "task": {"id": 306, "owner": {"id": 917}, "assignee": {"id": 1059}}, "job": {"id": 367, "assignee": {"id": 49}}, "issue": {"id": 371, "owner": {"id": 1209}, "assignee": {"id": 1343}}, "organization": {"id": 113}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 19, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 372, "owner": {"id": 630}, "assignee": {"id": 550}, "project": {"id": 351, "owner": {"id": 715}, "assignee": {"id": 877}}, "task": {"id": 337, "owner": {"id": 991}, "assignee": {"id": 1060}}, "job": {"id": 356, "assignee": {"id": 19}}, "issue": {"id": 365, "owner": {"id": 1213}, "assignee": {"id": 1398}}, "organization": {"id": 147}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "owner": {"id": 645}, "assignee": {"id": 536}, "project": {"id": 388, "owner": {"id": 765}, "assignee": {"id": 842}}, "task": {"id": 395, "owner": {"id": 923}, "assignee": {"id": 1052}}, "job": {"id": 331, "assignee": {"id": 40}}, "issue": {"id": 389, "owner": {"id": 1252}, "assignee": {"id": 1325}}, "organization": {"id": 1408}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "owner": {"id": 602}, "assignee": {"id": 542}, "project": {"id": 353, "owner": {"id": 717}, "assignee": {"id": 820}}, "task": {"id": 326, "owner": {"id": 980}, "assignee": {"id": 1072}}, "job": {"id": 326, "assignee": {"id": 72}}, "issue": {"id": 345, "owner": {"id": 1206}, "assignee": {"id": 1332}}, "organization": {"id": 1406}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "owner": {"id": 619}, "assignee": {"id": 502}, "project": {"id": 316, "owner": {"id": 752}, "assignee": {"id": 889}}, "task": {"id": 313, "owner": {"id": 920}, "assignee": {"id": 1009}}, "job": {"id": 385, "assignee": {"id": 16}}, "issue": {"id": 396, "owner": {"id": 1221}, "assignee": {"id": 1374}}, "organization": {"id": 113}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "owner": {"id": 689}, "assignee": {"id": 571}, "project": {"id": 369, "owner": {"id": 776}, "assignee": {"id": 894}}, "task": {"id": 348, "owner": {"id": 994}, "assignee": {"id": 1035}}, "job": {"id": 392, "assignee": {"id": 90}}, "issue": {"id": 355, "owner": {"id": 1244}, "assignee": {"id": 1359}}, "organization": {"id": 155}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "owner": {"id": 641}, "assignee": {"id": 583}, "project": {"id": 382, "owner": {"id": 742}, "assignee": {"id": 805}}, "task": {"id": 317, "owner": {"id": 914}, "assignee": {"id": 1058}}, "job": {"id": 311, "assignee": {"id": 99}}, "issue": {"id": 376, "owner": {"id": 1210}, "assignee": {"id": 1381}}, "organization": {"id": 1491}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 650}, "assignee": {"id": 591}, "project": {"id": 334, "owner": {"id": 708}, "assignee": {"id": 894}}, "task": {"id": 380, "owner": {"id": 925}, "assignee": {"id": 1015}}, "job": {"id": 372, "assignee": {"id": 2}}, "issue": {"id": 382, "owner": {"id": 1234}, "assignee": {"id": 1383}}, "organization": {"id": 1452}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 304, "owner": {"id": 670}, "assignee": {"id": 518}, "project": {"id": 343, "owner": {"id": 757}, "assignee": {"id": 842}}, "task": {"id": 337, "owner": {"id": 919}, "assignee": {"id": 1008}}, "job": {"id": 363, "assignee": {"id": 80}}, "issue": {"id": 326, "owner": {"id": 1284}, "assignee": {"id": 1351}}, "organization": {"id": 164}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 303, "owner": {"id": 696}, "assignee": {"id": 547}, "project": {"id": 360, "owner": {"id": 788}, "assignee": {"id": 858}}, "task": {"id": 380, "owner": {"id": 942}, "assignee": {"id": 1016}}, "job": {"id": 333, "assignee": {"id": 6}}, "issue": {"id": 367, "owner": {"id": 1216}, "assignee": {"id": 1395}}, "organization": {"id": 133}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 325, "owner": {"id": 641}, "assignee": {"id": 560}, "project": {"id": 392, "owner": {"id": 744}, "assignee": {"id": 814}}, "task": {"id": 395, "owner": {"id": 950}, "assignee": {"id": 1016}}, "job": {"id": 317, "assignee": {"id": 12}}, "issue": {"id": 313, "owner": {"id": 1242}, "assignee": {"id": 1344}}, "organization": {"id": 1409}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 369, "owner": {"id": 605}, "assignee": {"id": 539}, "project": {"id": 335, "owner": {"id": 706}, "assignee": {"id": 800}}, "task": {"id": 301, "owner": {"id": 957}, "assignee": {"id": 1070}}, "job": {"id": 317, "assignee": {"id": 20}}, "issue": {"id": 353, "owner": {"id": 1270}, "assignee": {"id": 1310}}, "organization": {"id": 1493}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 332, "owner": {"id": 658}, "assignee": {"id": 515}, "project": {"id": 380, "owner": {"id": 741}, "assignee": {"id": 878}}, "task": {"id": 389, "owner": {"id": 994}, "assignee": {"id": 1098}}, "job": {"id": 311, "assignee": {"id": 55}}, "issue": {"id": 327, "owner": {"id": 1246}, "assignee": {"id": 1310}}, "organization": {"id": 101}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 698}, "assignee": {"id": 596}, "project": {"id": 312, "owner": {"id": 741}, "assignee": {"id": 838}}, "task": {"id": 381, "owner": {"id": 969}, "assignee": {"id": 1005}}, "job": {"id": 334, "assignee": {"id": 0}}, "issue": {"id": 358, "owner": {"id": 1286}, "assignee": {"id": 1389}}, "organization": {"id": 140}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 366, "owner": {"id": 694}, "assignee": {"id": 534}, "project": {"id": 374, "owner": {"id": 738}, "assignee": {"id": 881}}, "task": {"id": 367, "owner": {"id": 915}, "assignee": {"id": 1052}}, "job": {"id": 368, "assignee": {"id": 65}}, "issue": {"id": 360, "owner": {"id": 1235}, "assignee": {"id": 1349}}, "organization": {"id": 1476}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 315, "owner": {"id": 678}, "assignee": {"id": 524}, "project": {"id": 333, "owner": {"id": 729}, "assignee": {"id": 864}}, "task": {"id": 333, "owner": {"id": 962}, "assignee": {"id": 1084}}, "job": {"id": 324, "assignee": {"id": 13}}, "issue": {"id": 339, "owner": {"id": 1291}, "assignee": {"id": 1360}}, "organization": {"id": 1436}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 300, "owner": {"id": 662}, "assignee": {"id": 506}, "project": {"id": 307, "owner": {"id": 739}, "assignee": {"id": 859}}, "task": {"id": 359, "owner": {"id": 937}, "assignee": {"id": 1046}}, "job": {"id": 372, "assignee": {"id": 1157}}, "issue": {"id": 395, "owner": {"id": 89}, "assignee": {"id": 1303}}, "organization": {"id": 169}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 630}, "assignee": {"id": 584}, "project": {"id": 319, "owner": {"id": 706}, "assignee": {"id": 827}}, "task": {"id": 328, "owner": {"id": 913}, "assignee": {"id": 1097}}, "job": {"id": 373, "assignee": {"id": 1122}}, "issue": {"id": 311, "owner": {"id": 20}, "assignee": {"id": 1335}}, "organization": {"id": 130}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 324, "owner": {"id": 656}, "assignee": {"id": 599}, "project": {"id": 375, "owner": {"id": 754}, "assignee": {"id": 895}}, "task": {"id": 398, "owner": {"id": 930}, "assignee": {"id": 1074}}, "job": {"id": 339, "assignee": {"id": 1135}}, "issue": {"id": 335, "owner": {"id": 12}, "assignee": {"id": 1309}}, "organization": {"id": 1469}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 369, "owner": {"id": 609}, "assignee": {"id": 525}, "project": {"id": 341, "owner": {"id": 772}, "assignee": {"id": 821}}, "task": {"id": 371, "owner": {"id": 943}, "assignee": {"id": 1073}}, "job": {"id": 352, "assignee": {"id": 1120}}, "issue": {"id": 388, "owner": {"id": 65}, "assignee": {"id": 1354}}, "organization": {"id": 1468}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "owner": {"id": 662}, "assignee": {"id": 588}, "project": {"id": 334, "owner": {"id": 723}, "assignee": {"id": 808}}, "task": {"id": 346, "owner": {"id": 964}, "assignee": {"id": 1046}}, "job": {"id": 362, "assignee": {"id": 1182}}, "issue": {"id": 370, "owner": {"id": 73}, "assignee": {"id": 1373}}, "organization": {"id": 151}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "owner": {"id": 606}, "assignee": {"id": 509}, "project": {"id": 320, "owner": {"id": 790}, "assignee": {"id": 865}}, "task": {"id": 385, "owner": {"id": 908}, "assignee": {"id": 1088}}, "job": {"id": 305, "assignee": {"id": 1120}}, "issue": {"id": 318, "owner": {"id": 17}, "assignee": {"id": 1304}}, "organization": {"id": 105}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 677}, "assignee": {"id": 557}, "project": {"id": 343, "owner": {"id": 706}, "assignee": {"id": 841}}, "task": {"id": 313, "owner": {"id": 972}, "assignee": {"id": 1070}}, "job": {"id": 350, "assignee": {"id": 1151}}, "issue": {"id": 373, "owner": {"id": 2}, "assignee": {"id": 1358}}, "organization": {"id": 1444}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 627}, "assignee": {"id": 508}, "project": {"id": 398, "owner": {"id": 735}, "assignee": {"id": 886}}, "task": {"id": 332, "owner": {"id": 987}, "assignee": {"id": 1002}}, "job": {"id": 383, "assignee": {"id": 1129}}, "issue": {"id": 380, "owner": {"id": 14}, "assignee": {"id": 1334}}, "organization": {"id": 1413}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 631}, "assignee": {"id": 573}, "project": {"id": 304, "owner": {"id": 759}, "assignee": {"id": 831}}, "task": {"id": 397, "owner": {"id": 901}, "assignee": {"id": 1013}}, "job": {"id": 334, "assignee": {"id": 1166}}, "issue": {"id": 339, "owner": {"id": 26}, "assignee": {"id": 1386}}, "organization": {"id": 172}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 600}, "assignee": {"id": 505}, "project": {"id": 375, "owner": {"id": 739}, "assignee": {"id": 875}}, "task": {"id": 391, "owner": {"id": 977}, "assignee": {"id": 1003}}, "job": {"id": 348, "assignee": {"id": 1160}}, "issue": {"id": 313, "owner": {"id": 47}, "assignee": {"id": 1309}}, "organization": {"id": 126}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "owner": {"id": 691}, "assignee": {"id": 539}, "project": {"id": 367, "owner": {"id": 746}, "assignee": {"id": 878}}, "task": {"id": 327, "owner": {"id": 909}, "assignee": {"id": 1052}}, "job": {"id": 302, "assignee": {"id": 1106}}, "issue": {"id": 352, "owner": {"id": 57}, "assignee": {"id": 1378}}, "organization": {"id": 1499}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "owner": {"id": 693}, "assignee": {"id": 539}, "project": {"id": 317, "owner": {"id": 720}, "assignee": {"id": 893}}, "task": {"id": 305, "owner": {"id": 971}, "assignee": {"id": 1004}}, "job": {"id": 376, "assignee": {"id": 1135}}, "issue": {"id": 341, "owner": {"id": 22}, "assignee": {"id": 1360}}, "organization": {"id": 1478}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 380, "owner": {"id": 627}, "assignee": {"id": 515}, "project": {"id": 397, "owner": {"id": 772}, "assignee": {"id": 892}}, "task": {"id": 339, "owner": {"id": 916}, "assignee": {"id": 1034}}, "job": {"id": 387, "assignee": {"id": 1109}}, "issue": {"id": 385, "owner": {"id": 51}, "assignee": {"id": 1351}}, "organization": {"id": 165}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 676}, "assignee": {"id": 534}, "project": {"id": 382, "owner": {"id": 745}, "assignee": {"id": 808}}, "task": {"id": 303, "owner": {"id": 968}, "assignee": {"id": 1053}}, "job": {"id": 366, "assignee": {"id": 1170}}, "issue": {"id": 337, "owner": {"id": 54}, "assignee": {"id": 1376}}, "organization": {"id": 174}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 346, "owner": {"id": 660}, "assignee": {"id": 529}, "project": {"id": 389, "owner": {"id": 732}, "assignee": {"id": 873}}, "task": {"id": 312, "owner": {"id": 907}, "assignee": {"id": 1007}}, "job": {"id": 301, "assignee": {"id": 1111}}, "issue": {"id": 306, "owner": {"id": 22}, "assignee": {"id": 1370}}, "organization": {"id": 1488}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 339, "owner": {"id": 625}, "assignee": {"id": 530}, "project": {"id": 332, "owner": {"id": 724}, "assignee": {"id": 891}}, "task": {"id": 376, "owner": {"id": 998}, "assignee": {"id": 1083}}, "job": {"id": 322, "assignee": {"id": 1130}}, "issue": {"id": 380, "owner": {"id": 40}, "assignee": {"id": 1389}}, "organization": {"id": 1428}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 391, "owner": {"id": 653}, "assignee": {"id": 579}, "project": {"id": 379, "owner": {"id": 716}, "assignee": {"id": 819}}, "task": {"id": 365, "owner": {"id": 944}, "assignee": {"id": 1012}}, "job": {"id": 327, "assignee": {"id": 1104}}, "issue": {"id": 393, "owner": {"id": 58}, "assignee": {"id": 1399}}, "organization": {"id": 134}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 352, "owner": {"id": 616}, "assignee": {"id": 548}, "project": {"id": 353, "owner": {"id": 726}, "assignee": {"id": 867}}, "task": {"id": 396, "owner": {"id": 995}, "assignee": {"id": 1036}}, "job": {"id": 354, "assignee": {"id": 1182}}, "issue": {"id": 395, "owner": {"id": 60}, "assignee": {"id": 1336}}, "organization": {"id": 122}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 325, "owner": {"id": 685}, "assignee": {"id": 573}, "project": {"id": 311, "owner": {"id": 778}, "assignee": {"id": 842}}, "task": {"id": 364, "owner": {"id": 997}, "assignee": {"id": 1009}}, "job": {"id": 360, "assignee": {"id": 1170}}, "issue": {"id": 329, "owner": {"id": 54}, "assignee": {"id": 1339}}, "organization": {"id": 1469}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"id": 342, "owner": {"id": 639}, "assignee": {"id": 594}, "project": {"id": 357, "owner": {"id": 750}, "assignee": {"id": 865}}, "task": {"id": 389, "owner": {"id": 934}, "assignee": {"id": 1034}}, "job": {"id": 364, "assignee": {"id": 1102}}, "issue": {"id": 362, "owner": {"id": 98}, "assignee": {"id": 1345}}, "organization": {"id": 1446}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 334, "owner": {"id": 698}, "assignee": {"id": 502}, "project": {"id": 332, "owner": {"id": 755}, "assignee": {"id": 894}}, "task": {"id": 393, "owner": {"id": 954}, "assignee": {"id": 1068}}, "job": {"id": 395, "assignee": {"id": 1165}}, "issue": {"id": 329, "owner": {"id": 91}, "assignee": {"id": 1377}}, "organization": {"id": 176}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 375, "owner": {"id": 645}, "assignee": {"id": 559}, "project": {"id": 398, "owner": {"id": 799}, "assignee": {"id": 870}}, "task": {"id": 383, "owner": {"id": 902}, "assignee": {"id": 1057}}, "job": {"id": 380, "assignee": {"id": 1131}}, "issue": {"id": 360, "owner": {"id": 62}, "assignee": {"id": 1332}}, "organization": {"id": 195}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 628}, "assignee": {"id": 589}, "project": {"id": 365, "owner": {"id": 724}, "assignee": {"id": 881}}, "task": {"id": 348, "owner": {"id": 907}, "assignee": {"id": 1027}}, "job": {"id": 345, "assignee": {"id": 1196}}, "issue": {"id": 335, "owner": {"id": 96}, "assignee": {"id": 1326}}, "organization": {"id": 1429}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 345, "owner": {"id": 651}, "assignee": {"id": 509}, "project": {"id": 312, "owner": {"id": 745}, "assignee": {"id": 856}}, "task": {"id": 367, "owner": {"id": 953}, "assignee": {"id": 1071}}, "job": {"id": 355, "assignee": {"id": 1180}}, "issue": {"id": 376, "owner": {"id": 78}, "assignee": {"id": 1320}}, "organization": {"id": 1443}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "owner": {"id": 609}, "assignee": {"id": 536}, "project": {"id": 395, "owner": {"id": 768}, "assignee": {"id": 858}}, "task": {"id": 346, "owner": {"id": 971}, "assignee": {"id": 1035}}, "job": {"id": 362, "assignee": {"id": 1162}}, "issue": {"id": 387, "owner": {"id": 66}, "assignee": {"id": 1394}}, "organization": {"id": 158}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "owner": {"id": 616}, "assignee": {"id": 512}, "project": {"id": 321, "owner": {"id": 794}, "assignee": {"id": 821}}, "task": {"id": 361, "owner": {"id": 957}, "assignee": {"id": 1023}}, "job": {"id": 367, "assignee": {"id": 1165}}, "issue": {"id": 336, "owner": {"id": 48}, "assignee": {"id": 1329}}, "organization": {"id": 128}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "owner": {"id": 674}, "assignee": {"id": 562}, "project": {"id": 369, "owner": {"id": 788}, "assignee": {"id": 853}}, "task": {"id": 372, "owner": {"id": 951}, "assignee": {"id": 1035}}, "job": {"id": 301, "assignee": {"id": 1149}}, "issue": {"id": 372, "owner": {"id": 79}, "assignee": {"id": 1386}}, "organization": {"id": 1401}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 330, "owner": {"id": 627}, "assignee": {"id": 522}, "project": {"id": 322, "owner": {"id": 764}, "assignee": {"id": 852}}, "task": {"id": 373, "owner": {"id": 912}, "assignee": {"id": 1024}}, "job": {"id": 314, "assignee": {"id": 1181}}, "issue": {"id": 368, "owner": {"id": 6}, "assignee": {"id": 1336}}, "organization": {"id": 1435}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "owner": {"id": 619}, "assignee": {"id": 521}, "project": {"id": 333, "owner": {"id": 788}, "assignee": {"id": 852}}, "task": {"id": 306, "owner": {"id": 955}, "assignee": {"id": 1001}}, "job": {"id": 347, "assignee": {"id": 1132}}, "issue": {"id": 334, "owner": {"id": 83}, "assignee": {"id": 1336}}, "organization": {"id": 123}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 601}, "assignee": {"id": 598}, "project": {"id": 387, "owner": {"id": 789}, "assignee": {"id": 821}}, "task": {"id": 310, "owner": {"id": 975}, "assignee": {"id": 1076}}, "job": {"id": 361, "assignee": {"id": 1141}}, "issue": {"id": 388, "owner": {"id": 84}, "assignee": {"id": 1327}}, "organization": {"id": 148}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 659}, "assignee": {"id": 530}, "project": {"id": 322, "owner": {"id": 751}, "assignee": {"id": 810}}, "task": {"id": 379, "owner": {"id": 967}, "assignee": {"id": 1024}}, "job": {"id": 398, "assignee": {"id": 1118}}, "issue": {"id": 380, "owner": {"id": 2}, "assignee": {"id": 1310}}, "organization": {"id": 1405}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "owner": {"id": 632}, "assignee": {"id": 591}, "project": {"id": 323, "owner": {"id": 751}, "assignee": {"id": 873}}, "task": {"id": 362, "owner": {"id": 901}, "assignee": {"id": 1061}}, "job": {"id": 302, "assignee": {"id": 1162}}, "issue": {"id": 360, "owner": {"id": 69}, "assignee": {"id": 1301}}, "organization": {"id": 1423}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 392, "owner": {"id": 685}, "assignee": {"id": 539}, "project": {"id": 343, "owner": {"id": 715}, "assignee": {"id": 841}}, "task": {"id": 348, "owner": {"id": 934}, "assignee": {"id": 1019}}, "job": {"id": 392, "assignee": {"id": 1195}}, "issue": {"id": 300, "owner": {"id": 82}, "assignee": {"id": 1394}}, "organization": {"id": 156}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 325, "owner": {"id": 651}, "assignee": {"id": 582}, "project": {"id": 342, "owner": {"id": 741}, "assignee": {"id": 878}}, "task": {"id": 316, "owner": {"id": 946}, "assignee": {"id": 1066}}, "job": {"id": 310, "assignee": {"id": 1125}}, "issue": {"id": 372, "owner": {"id": 43}, "assignee": {"id": 1316}}, "organization": {"id": 151}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 31, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 660}, "assignee": {"id": 535}, "project": {"id": 354, "owner": {"id": 754}, "assignee": {"id": 882}}, "task": {"id": 384, "owner": {"id": 997}, "assignee": {"id": 1025}}, "job": {"id": 323, "assignee": {"id": 1144}}, "issue": {"id": 354, "owner": {"id": 31}, "assignee": {"id": 1390}}, "organization": {"id": 1454}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 346, "owner": {"id": 696}, "assignee": {"id": 524}, "project": {"id": 357, "owner": {"id": 756}, "assignee": {"id": 808}}, "task": {"id": 383, "owner": {"id": 926}, "assignee": {"id": 1079}}, "job": {"id": 350, "assignee": {"id": 1168}}, "issue": {"id": 359, "owner": {"id": 22}, "assignee": {"id": 1376}}, "organization": {"id": 1426}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 667}, "assignee": {"id": 554}, "project": {"id": 388, "owner": {"id": 759}, "assignee": {"id": 829}}, "task": {"id": 355, "owner": {"id": 912}, "assignee": {"id": 1012}}, "job": {"id": 375, "assignee": {"id": 1155}}, "issue": {"id": 387, "owner": {"id": 41}, "assignee": {"id": 1346}}, "organization": {"id": 177}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 667}, "assignee": {"id": 599}, "project": {"id": 355, "owner": {"id": 707}, "assignee": {"id": 894}}, "task": {"id": 385, "owner": {"id": 921}, "assignee": {"id": 1011}}, "job": {"id": 377, "assignee": {"id": 1163}}, "issue": {"id": 391, "owner": {"id": 5}, "assignee": {"id": 1357}}, "organization": {"id": 125}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 342, "owner": {"id": 669}, "assignee": {"id": 553}, "project": {"id": 315, "owner": {"id": 716}, "assignee": {"id": 889}}, "task": {"id": 313, "owner": {"id": 969}, "assignee": {"id": 1032}}, "job": {"id": 318, "assignee": {"id": 1159}}, "issue": {"id": 360, "owner": {"id": 0}, "assignee": {"id": 1352}}, "organization": {"id": 1473}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 336, "owner": {"id": 660}, "assignee": {"id": 538}, "project": {"id": 339, "owner": {"id": 702}, "assignee": {"id": 816}}, "task": {"id": 337, "owner": {"id": 903}, "assignee": {"id": 1000}}, "job": {"id": 370, "assignee": {"id": 1197}}, "issue": {"id": 324, "owner": {"id": 1}, "assignee": {"id": 1398}}, "organization": {"id": 1449}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 318, "owner": {"id": 681}, "assignee": {"id": 582}, "project": {"id": 328, "owner": {"id": 702}, "assignee": {"id": 866}}, "task": {"id": 382, "owner": {"id": 903}, "assignee": {"id": 1041}}, "job": {"id": 320, "assignee": {"id": 1108}}, "issue": {"id": 352, "owner": {"id": 73}, "assignee": {"id": 1332}}, "organization": {"id": 156}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 306, "owner": {"id": 699}, "assignee": {"id": 574}, "project": {"id": 319, "owner": {"id": 734}, "assignee": {"id": 885}}, "task": {"id": 321, "owner": {"id": 924}, "assignee": {"id": 1056}}, "job": {"id": 323, "assignee": {"id": 1163}}, "issue": {"id": 331, "owner": {"id": 3}, "assignee": {"id": 1308}}, "organization": {"id": 184}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 692}, "assignee": {"id": 531}, "project": {"id": 327, "owner": {"id": 774}, "assignee": {"id": 807}}, "task": {"id": 364, "owner": {"id": 979}, "assignee": {"id": 1021}}, "job": {"id": 346, "assignee": {"id": 1157}}, "issue": {"id": 310, "owner": {"id": 29}, "assignee": {"id": 1377}}, "organization": {"id": 1430}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 313, "owner": {"id": 674}, "assignee": {"id": 562}, "project": {"id": 303, "owner": {"id": 731}, "assignee": {"id": 813}}, "task": {"id": 331, "owner": {"id": 980}, "assignee": {"id": 1028}}, "job": {"id": 391, "assignee": {"id": 1158}}, "issue": {"id": 309, "owner": {"id": 7}, "assignee": {"id": 1392}}, "organization": {"id": 1464}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 672}, "assignee": {"id": 536}, "project": {"id": 327, "owner": {"id": 730}, "assignee": {"id": 888}}, "task": {"id": 369, "owner": {"id": 998}, "assignee": {"id": 1086}}, "job": {"id": 354, "assignee": {"id": 1103}}, "issue": {"id": 322, "owner": {"id": 34}, "assignee": {"id": 1303}}, "organization": {"id": 143}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "owner": {"id": 619}, "assignee": {"id": 568}, "project": {"id": 351, "owner": {"id": 732}, "assignee": {"id": 811}}, "task": {"id": 320, "owner": {"id": 989}, "assignee": {"id": 1054}}, "job": {"id": 309, "assignee": {"id": 1159}}, "issue": {"id": 318, "owner": {"id": 1}, "assignee": {"id": 1310}}, "organization": {"id": 190}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 605}, "assignee": {"id": 591}, "project": {"id": 329, "owner": {"id": 759}, "assignee": {"id": 866}}, "task": {"id": 350, "owner": {"id": 990}, "assignee": {"id": 1082}}, "job": {"id": 386, "assignee": {"id": 1154}}, "issue": {"id": 360, "owner": {"id": 67}, "assignee": {"id": 1336}}, "organization": {"id": 1492}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "owner": {"id": 655}, "assignee": {"id": 521}, "project": {"id": 326, "owner": {"id": 778}, "assignee": {"id": 865}}, "task": {"id": 319, "owner": {"id": 959}, "assignee": {"id": 1093}}, "job": {"id": 308, "assignee": {"id": 1147}}, "issue": {"id": 321, "owner": {"id": 67}, "assignee": {"id": 1365}}, "organization": {"id": 1475}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 19, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "owner": {"id": 659}, "assignee": {"id": 547}, "project": {"id": 307, "owner": {"id": 723}, "assignee": {"id": 801}}, "task": {"id": 362, "owner": {"id": 928}, "assignee": {"id": 1023}}, "job": {"id": 301, "assignee": {"id": 1102}}, "issue": {"id": 319, "owner": {"id": 19}, "assignee": {"id": 1303}}, "organization": {"id": 135}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 669}, "assignee": {"id": 525}, "project": {"id": 396, "owner": {"id": 718}, "assignee": {"id": 852}}, "task": {"id": 304, "owner": {"id": 957}, "assignee": {"id": 1017}}, "job": {"id": 374, "assignee": {"id": 1184}}, "issue": {"id": 364, "owner": {"id": 21}, "assignee": {"id": 1360}}, "organization": {"id": 135}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 662}, "assignee": {"id": 529}, "project": {"id": 383, "owner": {"id": 761}, "assignee": {"id": 845}}, "task": {"id": 397, "owner": {"id": 949}, "assignee": {"id": 1006}}, "job": {"id": 399, "assignee": {"id": 1159}}, "issue": {"id": 313, "owner": {"id": 64}, "assignee": {"id": 1344}}, "organization": {"id": 1436}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "owner": {"id": 684}, "assignee": {"id": 545}, "project": {"id": 349, "owner": {"id": 712}, "assignee": {"id": 845}}, "task": {"id": 368, "owner": {"id": 941}, "assignee": {"id": 1015}}, "job": {"id": 328, "assignee": {"id": 1167}}, "issue": {"id": 353, "owner": {"id": 98}, "assignee": {"id": 1311}}, "organization": {"id": 1421}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 19, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 683}, "assignee": {"id": 599}, "project": {"id": 343, "owner": {"id": 756}, "assignee": {"id": 815}}, "task": {"id": 340, "owner": {"id": 970}, "assignee": {"id": 1019}}, "job": {"id": 346, "assignee": {"id": 1175}}, "issue": {"id": 320, "owner": {"id": 19}, "assignee": {"id": 1377}}, "organization": {"id": 166}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 396, "owner": {"id": 681}, "assignee": {"id": 572}, "project": {"id": 303, "owner": {"id": 782}, "assignee": {"id": 854}}, "task": {"id": 353, "owner": {"id": 942}, "assignee": {"id": 1087}}, "job": {"id": 311, "assignee": {"id": 1162}}, "issue": {"id": 341, "owner": {"id": 84}, "assignee": {"id": 1355}}, "organization": {"id": 113}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 613}, "assignee": {"id": 580}, "project": {"id": 331, "owner": {"id": 757}, "assignee": {"id": 819}}, "task": {"id": 391, "owner": {"id": 997}, "assignee": {"id": 1061}}, "job": {"id": 307, "assignee": {"id": 1190}}, "issue": {"id": 343, "owner": {"id": 99}, "assignee": {"id": 1392}}, "organization": {"id": 1432}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 307, "owner": {"id": 689}, "assignee": {"id": 501}, "project": {"id": 346, "owner": {"id": 766}, "assignee": {"id": 840}}, "task": {"id": 378, "owner": {"id": 909}, "assignee": {"id": 1083}}, "job": {"id": 315, "assignee": {"id": 1182}}, "issue": {"id": 366, "owner": {"id": 0}, "assignee": {"id": 1372}}, "organization": {"id": 1422}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 686}, "assignee": {"id": 593}, "project": {"id": 379, "owner": {"id": 774}, "assignee": {"id": 890}}, "task": {"id": 368, "owner": {"id": 949}, "assignee": {"id": 1025}}, "job": {"id": 352, "assignee": {"id": 1172}}, "issue": {"id": 348, "owner": {"id": 76}, "assignee": {"id": 1354}}, "organization": {"id": 174}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 379, "owner": {"id": 674}, "assignee": {"id": 521}, "project": {"id": 316, "owner": {"id": 778}, "assignee": {"id": 807}}, "task": {"id": 389, "owner": {"id": 921}, "assignee": {"id": 1064}}, "job": {"id": 311, "assignee": {"id": 1129}}, "issue": {"id": 339, "owner": {"id": 23}, "assignee": {"id": 1346}}, "organization": {"id": 182}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 630}, "assignee": {"id": 545}, "project": {"id": 389, "owner": {"id": 760}, "assignee": {"id": 821}}, "task": {"id": 319, "owner": {"id": 925}, "assignee": {"id": 1006}}, "job": {"id": 386, "assignee": {"id": 1159}}, "issue": {"id": 390, "owner": {"id": 52}, "assignee": {"id": 1357}}, "organization": {"id": 1469}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 606}, "assignee": {"id": 528}, "project": {"id": 317, "owner": {"id": 735}, "assignee": {"id": 896}}, "task": {"id": 356, "owner": {"id": 936}, "assignee": {"id": 1056}}, "job": {"id": 346, "assignee": {"id": 1170}}, "issue": {"id": 382, "owner": {"id": 2}, "assignee": {"id": 1300}}, "organization": {"id": 1489}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 324, "owner": {"id": 682}, "assignee": {"id": 505}, "project": {"id": 327, "owner": {"id": 780}, "assignee": {"id": 841}}, "task": {"id": 350, "owner": {"id": 968}, "assignee": {"id": 1033}}, "job": {"id": 387, "assignee": {"id": 1150}}, "issue": {"id": 300, "owner": {"id": 72}, "assignee": {"id": 1313}}, "organization": {"id": 144}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 321, "owner": {"id": 613}, "assignee": {"id": 574}, "project": {"id": 309, "owner": {"id": 752}, "assignee": {"id": 890}}, "task": {"id": 338, "owner": {"id": 973}, "assignee": {"id": 1014}}, "job": {"id": 348, "assignee": {"id": 1171}}, "issue": {"id": 343, "owner": {"id": 4}, "assignee": {"id": 1342}}, "organization": {"id": 197}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 395, "owner": {"id": 613}, "assignee": {"id": 512}, "project": {"id": 326, "owner": {"id": 757}, "assignee": {"id": 883}}, "task": {"id": 367, "owner": {"id": 906}, "assignee": {"id": 1053}}, "job": {"id": 389, "assignee": {"id": 1103}}, "issue": {"id": 332, "owner": {"id": 18}, "assignee": {"id": 1304}}, "organization": {"id": 1496}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 358, "owner": {"id": 643}, "assignee": {"id": 596}, "project": {"id": 341, "owner": {"id": 719}, "assignee": {"id": 871}}, "task": {"id": 309, "owner": {"id": 953}, "assignee": {"id": 1084}}, "job": {"id": 314, "assignee": {"id": 1157}}, "issue": {"id": 340, "owner": {"id": 37}, "assignee": {"id": 1311}}, "organization": {"id": 1451}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 631}, "assignee": {"id": 568}, "project": {"id": 385, "owner": {"id": 717}, "assignee": {"id": 870}}, "task": {"id": 379, "owner": {"id": 901}, "assignee": {"id": 1046}}, "job": {"id": 366, "assignee": {"id": 1118}}, "issue": {"id": 347, "owner": {"id": 76}, "assignee": {"id": 1310}}, "organization": {"id": 164}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "owner": {"id": 665}, "assignee": {"id": 533}, "project": {"id": 302, "owner": {"id": 706}, "assignee": {"id": 877}}, "task": {"id": 329, "owner": {"id": 942}, "assignee": {"id": 1078}}, "job": {"id": 371, "assignee": {"id": 1158}}, "issue": {"id": 351, "owner": {"id": 11}, "assignee": {"id": 1311}}, "organization": {"id": 152}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "owner": {"id": 657}, "assignee": {"id": 524}, "project": {"id": 326, "owner": {"id": 781}, "assignee": {"id": 895}}, "task": {"id": 380, "owner": {"id": 951}, "assignee": {"id": 1030}}, "job": {"id": 339, "assignee": {"id": 1110}}, "issue": {"id": 382, "owner": {"id": 48}, "assignee": {"id": 1306}}, "organization": {"id": 1404}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "owner": {"id": 668}, "assignee": {"id": 503}, "project": {"id": 324, "owner": {"id": 787}, "assignee": {"id": 847}}, "task": {"id": 352, "owner": {"id": 949}, "assignee": {"id": 1051}}, "job": {"id": 354, "assignee": {"id": 1104}}, "issue": {"id": 330, "owner": {"id": 66}, "assignee": {"id": 1368}}, "organization": {"id": 1442}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "owner": {"id": 623}, "assignee": {"id": 573}, "project": {"id": 308, "owner": {"id": 761}, "assignee": {"id": 853}}, "task": {"id": 362, "owner": {"id": 971}, "assignee": {"id": 1067}}, "job": {"id": 344, "assignee": {"id": 1141}}, "issue": {"id": 341, "owner": {"id": 1}, "assignee": {"id": 1303}}, "organization": {"id": 171}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 679}, "assignee": {"id": 515}, "project": {"id": 354, "owner": {"id": 717}, "assignee": {"id": 877}}, "task": {"id": 311, "owner": {"id": 984}, "assignee": {"id": 1045}}, "job": {"id": 319, "assignee": {"id": 1109}}, "issue": {"id": 381, "owner": {"id": 10}, "assignee": {"id": 1388}}, "organization": {"id": 168}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 669}, "assignee": {"id": 567}, "project": {"id": 334, "owner": {"id": 784}, "assignee": {"id": 801}}, "task": {"id": 337, "owner": {"id": 934}, "assignee": {"id": 1052}}, "job": {"id": 379, "assignee": {"id": 1116}}, "issue": {"id": 358, "owner": {"id": 50}, "assignee": {"id": 1359}}, "organization": {"id": 1401}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "owner": {"id": 643}, "assignee": {"id": 562}, "project": {"id": 360, "owner": {"id": 731}, "assignee": {"id": 833}}, "task": {"id": 332, "owner": {"id": 904}, "assignee": {"id": 1011}}, "job": {"id": 301, "assignee": {"id": 1184}}, "issue": {"id": 372, "owner": {"id": 21}, "assignee": {"id": 1361}}, "organization": {"id": 1468}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 332, "owner": {"id": 655}, "assignee": {"id": 515}, "project": {"id": 376, "owner": {"id": 753}, "assignee": {"id": 853}}, "task": {"id": 377, "owner": {"id": 966}, "assignee": {"id": 1014}}, "job": {"id": 342, "assignee": {"id": 1160}}, "issue": {"id": 348, "owner": {"id": 60}, "assignee": {"id": 1302}}, "organization": {"id": 129}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 395, "owner": {"id": 631}, "assignee": {"id": 520}, "project": {"id": 349, "owner": {"id": 738}, "assignee": {"id": 888}}, "task": {"id": 368, "owner": {"id": 925}, "assignee": {"id": 1003}}, "job": {"id": 359, "assignee": {"id": 1182}}, "issue": {"id": 398, "owner": {"id": 46}, "assignee": {"id": 1396}}, "organization": {"id": 187}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 377, "owner": {"id": 640}, "assignee": {"id": 534}, "project": {"id": 334, "owner": {"id": 782}, "assignee": {"id": 827}}, "task": {"id": 364, "owner": {"id": 938}, "assignee": {"id": 1092}}, "job": {"id": 322, "assignee": {"id": 1168}}, "issue": {"id": 336, "owner": {"id": 32}, "assignee": {"id": 1380}}, "organization": {"id": 1440}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 378, "owner": {"id": 691}, "assignee": {"id": 505}, "project": {"id": 347, "owner": {"id": 750}, "assignee": {"id": 816}}, "task": {"id": 346, "owner": {"id": 933}, "assignee": {"id": 1019}}, "job": {"id": 333, "assignee": {"id": 1187}}, "issue": {"id": 343, "owner": {"id": 10}, "assignee": {"id": 1366}}, "organization": {"id": 1489}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 301, "owner": {"id": 613}, "assignee": {"id": 588}, "project": {"id": 397, "owner": {"id": 764}, "assignee": {"id": 817}}, "task": {"id": 320, "owner": {"id": 906}, "assignee": {"id": 1090}}, "job": {"id": 329, "assignee": {"id": 1110}}, "issue": {"id": 395, "owner": {"id": 94}, "assignee": {"id": 1329}}, "organization": {"id": 135}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 311, "owner": {"id": 647}, "assignee": {"id": 584}, "project": {"id": 336, "owner": {"id": 761}, "assignee": {"id": 865}}, "task": {"id": 301, "owner": {"id": 944}, "assignee": {"id": 1035}}, "job": {"id": 333, "assignee": {"id": 1110}}, "issue": {"id": 328, "owner": {"id": 39}, "assignee": {"id": 1367}}, "organization": {"id": 100}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 344, "owner": {"id": 685}, "assignee": {"id": 562}, "project": {"id": 351, "owner": {"id": 703}, "assignee": {"id": 887}}, "task": {"id": 374, "owner": {"id": 946}, "assignee": {"id": 1052}}, "job": {"id": 389, "assignee": {"id": 1181}}, "issue": {"id": 333, "owner": {"id": 68}, "assignee": {"id": 1396}}, "organization": {"id": 1422}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 698}, "assignee": {"id": 587}, "project": {"id": 327, "owner": {"id": 787}, "assignee": {"id": 867}}, "task": {"id": 336, "owner": {"id": 988}, "assignee": {"id": 1095}}, "job": {"id": 385, "assignee": {"id": 1116}}, "issue": {"id": 388, "owner": {"id": 55}, "assignee": {"id": 1328}}, "organization": {"id": 1401}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 333, "owner": {"id": 603}, "assignee": {"id": 502}, "project": {"id": 358, "owner": {"id": 730}, "assignee": {"id": 891}}, "task": {"id": 338, "owner": {"id": 912}, "assignee": {"id": 1009}}, "job": {"id": 308, "assignee": {"id": 1126}}, "issue": {"id": 325, "owner": {"id": 93}, "assignee": {"id": 1343}}, "organization": {"id": 110}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 317, "owner": {"id": 679}, "assignee": {"id": 571}, "project": {"id": 322, "owner": {"id": 701}, "assignee": {"id": 852}}, "task": {"id": 322, "owner": {"id": 917}, "assignee": {"id": 1077}}, "job": {"id": 323, "assignee": {"id": 1100}}, "issue": {"id": 390, "owner": {"id": 73}, "assignee": {"id": 1356}}, "organization": {"id": 112}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 687}, "assignee": {"id": 576}, "project": {"id": 383, "owner": {"id": 730}, "assignee": {"id": 830}}, "task": {"id": 324, "owner": {"id": 906}, "assignee": {"id": 1029}}, "job": {"id": 306, "assignee": {"id": 1127}}, "issue": {"id": 302, "owner": {"id": 97}, "assignee": {"id": 1341}}, "organization": {"id": 1459}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 641}, "assignee": {"id": 526}, "project": {"id": 366, "owner": {"id": 797}, "assignee": {"id": 876}}, "task": {"id": 330, "owner": {"id": 907}, "assignee": {"id": 1066}}, "job": {"id": 320, "assignee": {"id": 1194}}, "issue": {"id": 347, "owner": {"id": 29}, "assignee": {"id": 1339}}, "organization": {"id": 1456}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 372, "owner": {"id": 609}, "assignee": {"id": 568}, "project": {"id": 350, "owner": {"id": 793}, "assignee": {"id": 821}}, "task": {"id": 344, "owner": {"id": 949}, "assignee": {"id": 1042}}, "job": {"id": 310, "assignee": {"id": 1177}}, "issue": {"id": 369, "owner": {"id": 65}, "assignee": {"id": 1391}}, "organization": {"id": 189}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "owner": {"id": 605}, "assignee": {"id": 564}, "project": {"id": 301, "owner": {"id": 721}, "assignee": {"id": 863}}, "task": {"id": 348, "owner": {"id": 952}, "assignee": {"id": 1099}}, "job": {"id": 323, "assignee": {"id": 1192}}, "issue": {"id": 365, "owner": {"id": 26}, "assignee": {"id": 1317}}, "organization": {"id": 195}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "owner": {"id": 683}, "assignee": {"id": 520}, "project": {"id": 329, "owner": {"id": 770}, "assignee": {"id": 873}}, "task": {"id": 374, "owner": {"id": 959}, "assignee": {"id": 1050}}, "job": {"id": 372, "assignee": {"id": 1180}}, "issue": {"id": 315, "owner": {"id": 21}, "assignee": {"id": 1345}}, "organization": {"id": 1431}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 602}, "assignee": {"id": 548}, "project": {"id": 348, "owner": {"id": 797}, "assignee": {"id": 836}}, "task": {"id": 389, "owner": {"id": 968}, "assignee": {"id": 1071}}, "job": {"id": 332, "assignee": {"id": 1124}}, "issue": {"id": 324, "owner": {"id": 57}, "assignee": {"id": 1372}}, "organization": {"id": 1407}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 687}, "assignee": {"id": 545}, "project": {"id": 341, "owner": {"id": 770}, "assignee": {"id": 829}}, "task": {"id": 337, "owner": {"id": 956}, "assignee": {"id": 1074}}, "job": {"id": 389, "assignee": {"id": 1144}}, "issue": {"id": 300, "owner": {"id": 38}, "assignee": {"id": 1342}}, "organization": {"id": 129}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "owner": {"id": 698}, "assignee": {"id": 561}, "project": {"id": 313, "owner": {"id": 728}, "assignee": {"id": 876}}, "task": {"id": 348, "owner": {"id": 970}, "assignee": {"id": 1031}}, "job": {"id": 315, "assignee": {"id": 1136}}, "issue": {"id": 379, "owner": {"id": 57}, "assignee": {"id": 1312}}, "organization": {"id": 184}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "owner": {"id": 619}, "assignee": {"id": 556}, "project": {"id": 366, "owner": {"id": 714}, "assignee": {"id": 834}}, "task": {"id": 368, "owner": {"id": 966}, "assignee": {"id": 1004}}, "job": {"id": 344, "assignee": {"id": 1162}}, "issue": {"id": 398, "owner": {"id": 8}, "assignee": {"id": 1380}}, "organization": {"id": 1432}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "owner": {"id": 600}, "assignee": {"id": 535}, "project": {"id": 318, "owner": {"id": 731}, "assignee": {"id": 872}}, "task": {"id": 329, "owner": {"id": 948}, "assignee": {"id": 1012}}, "job": {"id": 302, "assignee": {"id": 1117}}, "issue": {"id": 364, "owner": {"id": 80}, "assignee": {"id": 1346}}, "organization": {"id": 1420}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 391, "owner": {"id": 636}, "assignee": {"id": 561}, "project": {"id": 349, "owner": {"id": 782}, "assignee": {"id": 837}}, "task": {"id": 331, "owner": {"id": 937}, "assignee": {"id": 1021}}, "job": {"id": 372, "assignee": {"id": 1150}}, "issue": {"id": 312, "owner": {"id": 70}, "assignee": {"id": 1348}}, "organization": {"id": 122}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 370, "owner": {"id": 643}, "assignee": {"id": 507}, "project": {"id": 309, "owner": {"id": 774}, "assignee": {"id": 868}}, "task": {"id": 378, "owner": {"id": 996}, "assignee": {"id": 1070}}, "job": {"id": 311, "assignee": {"id": 1147}}, "issue": {"id": 314, "owner": {"id": 53}, "assignee": {"id": 1335}}, "organization": {"id": 128}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 615}, "assignee": {"id": 532}, "project": {"id": 308, "owner": {"id": 781}, "assignee": {"id": 806}}, "task": {"id": 305, "owner": {"id": 932}, "assignee": {"id": 1091}}, "job": {"id": 373, "assignee": {"id": 1169}}, "issue": {"id": 346, "owner": {"id": 38}, "assignee": {"id": 1369}}, "organization": {"id": 1423}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 324, "owner": {"id": 626}, "assignee": {"id": 500}, "project": {"id": 326, "owner": {"id": 798}, "assignee": {"id": 812}}, "task": {"id": 311, "owner": {"id": 908}, "assignee": {"id": 1068}}, "job": {"id": 388, "assignee": {"id": 1182}}, "issue": {"id": 366, "owner": {"id": 91}, "assignee": {"id": 1309}}, "organization": {"id": 1424}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 390, "owner": {"id": 669}, "assignee": {"id": 528}, "project": {"id": 309, "owner": {"id": 731}, "assignee": {"id": 801}}, "task": {"id": 375, "owner": {"id": 989}, "assignee": {"id": 1009}}, "job": {"id": 373, "assignee": {"id": 1175}}, "issue": {"id": 357, "owner": {"id": 42}, "assignee": {"id": 1373}}, "organization": {"id": 176}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 606}, "assignee": {"id": 589}, "project": {"id": 385, "owner": {"id": 776}, "assignee": {"id": 886}}, "task": {"id": 371, "owner": {"id": 952}, "assignee": {"id": 1029}}, "job": {"id": 336, "assignee": {"id": 1128}}, "issue": {"id": 335, "owner": {"id": 5}, "assignee": {"id": 1331}}, "organization": {"id": 191}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 371, "owner": {"id": 620}, "assignee": {"id": 593}, "project": {"id": 391, "owner": {"id": 723}, "assignee": {"id": 836}}, "task": {"id": 347, "owner": {"id": 919}, "assignee": {"id": 1030}}, "job": {"id": 319, "assignee": {"id": 1185}}, "issue": {"id": 346, "owner": {"id": 69}, "assignee": {"id": 1310}}, "organization": {"id": 1440}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 346, "owner": {"id": 624}, "assignee": {"id": 582}, "project": {"id": 352, "owner": {"id": 762}, "assignee": {"id": 870}}, "task": {"id": 366, "owner": {"id": 937}, "assignee": {"id": 1047}}, "job": {"id": 357, "assignee": {"id": 1146}}, "issue": {"id": 358, "owner": {"id": 17}, "assignee": {"id": 1334}}, "organization": {"id": 1470}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 628}, "assignee": {"id": 580}, "project": {"id": 360, "owner": {"id": 722}, "assignee": {"id": 893}}, "task": {"id": 302, "owner": {"id": 981}, "assignee": {"id": 1030}}, "job": {"id": 392, "assignee": {"id": 1110}}, "issue": {"id": 318, "owner": {"id": 1299}, "assignee": {"id": 64}}, "organization": {"id": 110}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 309, "owner": {"id": 645}, "assignee": {"id": 541}, "project": {"id": 379, "owner": {"id": 706}, "assignee": {"id": 872}}, "task": {"id": 343, "owner": {"id": 941}, "assignee": {"id": 1028}}, "job": {"id": 336, "assignee": {"id": 1117}}, "issue": {"id": 396, "owner": {"id": 1246}, "assignee": {"id": 43}}, "organization": {"id": 132}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 304, "owner": {"id": 697}, "assignee": {"id": 563}, "project": {"id": 376, "owner": {"id": 734}, "assignee": {"id": 867}}, "task": {"id": 342, "owner": {"id": 996}, "assignee": {"id": 1073}}, "job": {"id": 375, "assignee": {"id": 1117}}, "issue": {"id": 373, "owner": {"id": 1260}, "assignee": {"id": 82}}, "organization": {"id": 1445}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 645}, "assignee": {"id": 502}, "project": {"id": 359, "owner": {"id": 726}, "assignee": {"id": 815}}, "task": {"id": 391, "owner": {"id": 963}, "assignee": {"id": 1064}}, "job": {"id": 366, "assignee": {"id": 1134}}, "issue": {"id": 352, "owner": {"id": 1204}, "assignee": {"id": 91}}, "organization": {"id": 1420}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "owner": {"id": 670}, "assignee": {"id": 599}, "project": {"id": 379, "owner": {"id": 724}, "assignee": {"id": 858}}, "task": {"id": 329, "owner": {"id": 977}, "assignee": {"id": 1074}}, "job": {"id": 377, "assignee": {"id": 1189}}, "issue": {"id": 302, "owner": {"id": 1211}, "assignee": {"id": 13}}, "organization": {"id": 198}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 614}, "assignee": {"id": 531}, "project": {"id": 347, "owner": {"id": 769}, "assignee": {"id": 813}}, "task": {"id": 327, "owner": {"id": 947}, "assignee": {"id": 1091}}, "job": {"id": 346, "assignee": {"id": 1182}}, "issue": {"id": 326, "owner": {"id": 1253}, "assignee": {"id": 56}}, "organization": {"id": 108}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "owner": {"id": 697}, "assignee": {"id": 513}, "project": {"id": 311, "owner": {"id": 720}, "assignee": {"id": 898}}, "task": {"id": 363, "owner": {"id": 926}, "assignee": {"id": 1086}}, "job": {"id": 342, "assignee": {"id": 1146}}, "issue": {"id": 383, "owner": {"id": 1228}, "assignee": {"id": 58}}, "organization": {"id": 1486}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "owner": {"id": 653}, "assignee": {"id": 506}, "project": {"id": 300, "owner": {"id": 779}, "assignee": {"id": 882}}, "task": {"id": 398, "owner": {"id": 904}, "assignee": {"id": 1051}}, "job": {"id": 364, "assignee": {"id": 1192}}, "issue": {"id": 374, "owner": {"id": 1255}, "assignee": {"id": 43}}, "organization": {"id": 1479}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "owner": {"id": 698}, "assignee": {"id": 572}, "project": {"id": 391, "owner": {"id": 713}, "assignee": {"id": 852}}, "task": {"id": 349, "owner": {"id": 937}, "assignee": {"id": 1005}}, "job": {"id": 325, "assignee": {"id": 1125}}, "issue": {"id": 349, "owner": {"id": 1222}, "assignee": {"id": 81}}, "organization": {"id": 193}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "owner": {"id": 643}, "assignee": {"id": 513}, "project": {"id": 304, "owner": {"id": 741}, "assignee": {"id": 830}}, "task": {"id": 345, "owner": {"id": 929}, "assignee": {"id": 1068}}, "job": {"id": 311, "assignee": {"id": 1189}}, "issue": {"id": 356, "owner": {"id": 1201}, "assignee": {"id": 46}}, "organization": {"id": 129}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 695}, "assignee": {"id": 540}, "project": {"id": 324, "owner": {"id": 757}, "assignee": {"id": 814}}, "task": {"id": 374, "owner": {"id": 929}, "assignee": {"id": 1033}}, "job": {"id": 386, "assignee": {"id": 1177}}, "issue": {"id": 318, "owner": {"id": 1238}, "assignee": {"id": 41}}, "organization": {"id": 1456}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "owner": {"id": 686}, "assignee": {"id": 594}, "project": {"id": 321, "owner": {"id": 758}, "assignee": {"id": 865}}, "task": {"id": 372, "owner": {"id": 942}, "assignee": {"id": 1019}}, "job": {"id": 373, "assignee": {"id": 1146}}, "issue": {"id": 315, "owner": {"id": 1205}, "assignee": {"id": 58}}, "organization": {"id": 1446}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 378, "owner": {"id": 664}, "assignee": {"id": 598}, "project": {"id": 309, "owner": {"id": 790}, "assignee": {"id": 899}}, "task": {"id": 395, "owner": {"id": 941}, "assignee": {"id": 1089}}, "job": {"id": 322, "assignee": {"id": 1155}}, "issue": {"id": 323, "owner": {"id": 1203}, "assignee": {"id": 37}}, "organization": {"id": 119}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 334, "owner": {"id": 610}, "assignee": {"id": 596}, "project": {"id": 340, "owner": {"id": 740}, "assignee": {"id": 864}}, "task": {"id": 396, "owner": {"id": 935}, "assignee": {"id": 1088}}, "job": {"id": 388, "assignee": {"id": 1194}}, "issue": {"id": 331, "owner": {"id": 1256}, "assignee": {"id": 35}}, "organization": {"id": 132}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 646}, "assignee": {"id": 521}, "project": {"id": 313, "owner": {"id": 726}, "assignee": {"id": 827}}, "task": {"id": 378, "owner": {"id": 976}, "assignee": {"id": 1035}}, "job": {"id": 325, "assignee": {"id": 1125}}, "issue": {"id": 331, "owner": {"id": 1234}, "assignee": {"id": 79}}, "organization": {"id": 1400}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 365, "owner": {"id": 663}, "assignee": {"id": 533}, "project": {"id": 303, "owner": {"id": 778}, "assignee": {"id": 810}}, "task": {"id": 357, "owner": {"id": 940}, "assignee": {"id": 1074}}, "job": {"id": 378, "assignee": {"id": 1170}}, "issue": {"id": 308, "owner": {"id": 1276}, "assignee": {"id": 23}}, "organization": {"id": 1415}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 622}, "assignee": {"id": 582}, "project": {"id": 358, "owner": {"id": 746}, "assignee": {"id": 855}}, "task": {"id": 312, "owner": {"id": 981}, "assignee": {"id": 1073}}, "job": {"id": 320, "assignee": {"id": 1106}}, "issue": {"id": 361, "owner": {"id": 1254}, "assignee": {"id": 8}}, "organization": {"id": 153}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 344, "owner": {"id": 626}, "assignee": {"id": 521}, "project": {"id": 377, "owner": {"id": 783}, "assignee": {"id": 816}}, "task": {"id": 338, "owner": {"id": 995}, "assignee": {"id": 1039}}, "job": {"id": 309, "assignee": {"id": 1159}}, "issue": {"id": 362, "owner": {"id": 1274}, "assignee": {"id": 77}}, "organization": {"id": 161}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 657}, "assignee": {"id": 503}, "project": {"id": 319, "owner": {"id": 727}, "assignee": {"id": 822}}, "task": {"id": 389, "owner": {"id": 959}, "assignee": {"id": 1050}}, "job": {"id": 384, "assignee": {"id": 1107}}, "issue": {"id": 340, "owner": {"id": 1254}, "assignee": {"id": 73}}, "organization": {"id": 1427}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 391, "owner": {"id": 659}, "assignee": {"id": 549}, "project": {"id": 324, "owner": {"id": 710}, "assignee": {"id": 803}}, "task": {"id": 370, "owner": {"id": 956}, "assignee": {"id": 1071}}, "job": {"id": 349, "assignee": {"id": 1117}}, "issue": {"id": 315, "owner": {"id": 1261}, "assignee": {"id": 55}}, "organization": {"id": 1444}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 341, "owner": {"id": 680}, "assignee": {"id": 512}, "project": {"id": 318, "owner": {"id": 700}, "assignee": {"id": 833}}, "task": {"id": 303, "owner": {"id": 907}, "assignee": {"id": 1024}}, "job": {"id": 340, "assignee": {"id": 1197}}, "issue": {"id": 317, "owner": {"id": 1272}, "assignee": {"id": 74}}, "organization": {"id": 177}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 655}, "assignee": {"id": 591}, "project": {"id": 387, "owner": {"id": 705}, "assignee": {"id": 835}}, "task": {"id": 324, "owner": {"id": 999}, "assignee": {"id": 1045}}, "job": {"id": 374, "assignee": {"id": 1180}}, "issue": {"id": 343, "owner": {"id": 1268}, "assignee": {"id": 17}}, "organization": {"id": 144}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 309, "owner": {"id": 650}, "assignee": {"id": 586}, "project": {"id": 371, "owner": {"id": 793}, "assignee": {"id": 817}}, "task": {"id": 390, "owner": {"id": 961}, "assignee": {"id": 1044}}, "job": {"id": 359, "assignee": {"id": 1159}}, "issue": {"id": 352, "owner": {"id": 1227}, "assignee": {"id": 91}}, "organization": {"id": 1432}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 331, "owner": {"id": 621}, "assignee": {"id": 568}, "project": {"id": 388, "owner": {"id": 787}, "assignee": {"id": 883}}, "task": {"id": 304, "owner": {"id": 906}, "assignee": {"id": 1034}}, "job": {"id": 376, "assignee": {"id": 1139}}, "issue": {"id": 333, "owner": {"id": 1211}, "assignee": {"id": 78}}, "organization": {"id": 1423}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "owner": {"id": 675}, "assignee": {"id": 549}, "project": {"id": 341, "owner": {"id": 759}, "assignee": {"id": 858}}, "task": {"id": 345, "owner": {"id": 911}, "assignee": {"id": 1049}}, "job": {"id": 343, "assignee": {"id": 1162}}, "issue": {"id": 325, "owner": {"id": 1221}, "assignee": {"id": 0}}, "organization": {"id": 143}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "owner": {"id": 688}, "assignee": {"id": 521}, "project": {"id": 300, "owner": {"id": 734}, "assignee": {"id": 821}}, "task": {"id": 304, "owner": {"id": 939}, "assignee": {"id": 1019}}, "job": {"id": 335, "assignee": {"id": 1186}}, "issue": {"id": 346, "owner": {"id": 1252}, "assignee": {"id": 87}}, "organization": {"id": 167}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "owner": {"id": 629}, "assignee": {"id": 555}, "project": {"id": 392, "owner": {"id": 772}, "assignee": {"id": 873}}, "task": {"id": 371, "owner": {"id": 941}, "assignee": {"id": 1019}}, "job": {"id": 313, "assignee": {"id": 1125}}, "issue": {"id": 396, "owner": {"id": 1274}, "assignee": {"id": 89}}, "organization": {"id": 1469}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 330, "owner": {"id": 603}, "assignee": {"id": 592}, "project": {"id": 309, "owner": {"id": 712}, "assignee": {"id": 816}}, "task": {"id": 301, "owner": {"id": 921}, "assignee": {"id": 1026}}, "job": {"id": 365, "assignee": {"id": 1173}}, "issue": {"id": 307, "owner": {"id": 1299}, "assignee": {"id": 97}}, "organization": {"id": 1400}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "owner": {"id": 641}, "assignee": {"id": 527}, "project": {"id": 384, "owner": {"id": 706}, "assignee": {"id": 864}}, "task": {"id": 316, "owner": {"id": 924}, "assignee": {"id": 1082}}, "job": {"id": 330, "assignee": {"id": 1165}}, "issue": {"id": 303, "owner": {"id": 1211}, "assignee": {"id": 35}}, "organization": {"id": 109}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "owner": {"id": 660}, "assignee": {"id": 541}, "project": {"id": 389, "owner": {"id": 792}, "assignee": {"id": 844}}, "task": {"id": 331, "owner": {"id": 994}, "assignee": {"id": 1018}}, "job": {"id": 369, "assignee": {"id": 1130}}, "issue": {"id": 359, "owner": {"id": 1205}, "assignee": {"id": 48}}, "organization": {"id": 192}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "owner": {"id": 662}, "assignee": {"id": 579}, "project": {"id": 379, "owner": {"id": 780}, "assignee": {"id": 876}}, "task": {"id": 378, "owner": {"id": 937}, "assignee": {"id": 1026}}, "job": {"id": 335, "assignee": {"id": 1142}}, "issue": {"id": 347, "owner": {"id": 1216}, "assignee": {"id": 12}}, "organization": {"id": 1428}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "owner": {"id": 652}, "assignee": {"id": 519}, "project": {"id": 339, "owner": {"id": 735}, "assignee": {"id": 830}}, "task": {"id": 387, "owner": {"id": 932}, "assignee": {"id": 1007}}, "job": {"id": 394, "assignee": {"id": 1107}}, "issue": {"id": 322, "owner": {"id": 1223}, "assignee": {"id": 83}}, "organization": {"id": 1402}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 315, "owner": {"id": 694}, "assignee": {"id": 569}, "project": {"id": 387, "owner": {"id": 767}, "assignee": {"id": 893}}, "task": {"id": 314, "owner": {"id": 954}, "assignee": {"id": 1057}}, "job": {"id": 321, "assignee": {"id": 1142}}, "issue": {"id": 397, "owner": {"id": 1295}, "assignee": {"id": 95}}, "organization": {"id": 120}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 346, "owner": {"id": 609}, "assignee": {"id": 538}, "project": {"id": 366, "owner": {"id": 728}, "assignee": {"id": 825}}, "task": {"id": 300, "owner": {"id": 965}, "assignee": {"id": 1047}}, "job": {"id": 377, "assignee": {"id": 1145}}, "issue": {"id": 367, "owner": {"id": 1237}, "assignee": {"id": 67}}, "organization": {"id": 105}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 623}, "assignee": {"id": 508}, "project": {"id": 337, "owner": {"id": 713}, "assignee": {"id": 844}}, "task": {"id": 341, "owner": {"id": 972}, "assignee": {"id": 1006}}, "job": {"id": 398, "assignee": {"id": 1160}}, "issue": {"id": 336, "owner": {"id": 1280}, "assignee": {"id": 2}}, "organization": {"id": 1490}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 659}, "assignee": {"id": 580}, "project": {"id": 354, "owner": {"id": 708}, "assignee": {"id": 808}}, "task": {"id": 330, "owner": {"id": 965}, "assignee": {"id": 1083}}, "job": {"id": 370, "assignee": {"id": 1133}}, "issue": {"id": 352, "owner": {"id": 1253}, "assignee": {"id": 65}}, "organization": {"id": 1493}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 336, "owner": {"id": 600}, "assignee": {"id": 583}, "project": {"id": 314, "owner": {"id": 725}, "assignee": {"id": 891}}, "task": {"id": 322, "owner": {"id": 990}, "assignee": {"id": 1057}}, "job": {"id": 374, "assignee": {"id": 1163}}, "issue": {"id": 370, "owner": {"id": 1258}, "assignee": {"id": 5}}, "organization": {"id": 189}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 682}, "assignee": {"id": 506}, "project": {"id": 328, "owner": {"id": 799}, "assignee": {"id": 892}}, "task": {"id": 364, "owner": {"id": 930}, "assignee": {"id": 1004}}, "job": {"id": 393, "assignee": {"id": 1133}}, "issue": {"id": 321, "owner": {"id": 1257}, "assignee": {"id": 98}}, "organization": {"id": 117}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 652}, "assignee": {"id": 570}, "project": {"id": 379, "owner": {"id": 721}, "assignee": {"id": 874}}, "task": {"id": 396, "owner": {"id": 969}, "assignee": {"id": 1050}}, "job": {"id": 334, "assignee": {"id": 1122}}, "issue": {"id": 349, "owner": {"id": 1261}, "assignee": {"id": 25}}, "organization": {"id": 1432}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 81, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 320, "owner": {"id": 603}, "assignee": {"id": 504}, "project": {"id": 342, "owner": {"id": 726}, "assignee": {"id": 832}}, "task": {"id": 300, "owner": {"id": 920}, "assignee": {"id": 1049}}, "job": {"id": 380, "assignee": {"id": 1114}}, "issue": {"id": 328, "owner": {"id": 1250}, "assignee": {"id": 81}}, "organization": {"id": 1401}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 359, "owner": {"id": 646}, "assignee": {"id": 557}, "project": {"id": 300, "owner": {"id": 761}, "assignee": {"id": 806}}, "task": {"id": 307, "owner": {"id": 932}, "assignee": {"id": 1045}}, "job": {"id": 369, "assignee": {"id": 1150}}, "issue": {"id": 315, "owner": {"id": 1234}, "assignee": {"id": 13}}, "organization": {"id": 123}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 331, "owner": {"id": 616}, "assignee": {"id": 593}, "project": {"id": 369, "owner": {"id": 738}, "assignee": {"id": 835}}, "task": {"id": 375, "owner": {"id": 913}, "assignee": {"id": 1067}}, "job": {"id": 363, "assignee": {"id": 1190}}, "issue": {"id": 383, "owner": {"id": 1230}, "assignee": {"id": 94}}, "organization": {"id": 117}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 306, "owner": {"id": 624}, "assignee": {"id": 556}, "project": {"id": 396, "owner": {"id": 782}, "assignee": {"id": 806}}, "task": {"id": 324, "owner": {"id": 927}, "assignee": {"id": 1042}}, "job": {"id": 383, "assignee": {"id": 1116}}, "issue": {"id": 308, "owner": {"id": 1251}, "assignee": {"id": 32}}, "organization": {"id": 1488}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 374, "owner": {"id": 616}, "assignee": {"id": 556}, "project": {"id": 339, "owner": {"id": 725}, "assignee": {"id": 828}}, "task": {"id": 375, "owner": {"id": 908}, "assignee": {"id": 1012}}, "job": {"id": 342, "assignee": {"id": 1197}}, "issue": {"id": 329, "owner": {"id": 1228}, "assignee": {"id": 97}}, "organization": {"id": 1448}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 600}, "assignee": {"id": 556}, "project": {"id": 380, "owner": {"id": 758}, "assignee": {"id": 863}}, "task": {"id": 347, "owner": {"id": 955}, "assignee": {"id": 1014}}, "job": {"id": 352, "assignee": {"id": 1190}}, "issue": {"id": 339, "owner": {"id": 1298}, "assignee": {"id": 40}}, "organization": {"id": 183}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "owner": {"id": 609}, "assignee": {"id": 538}, "project": {"id": 363, "owner": {"id": 720}, "assignee": {"id": 816}}, "task": {"id": 321, "owner": {"id": 900}, "assignee": {"id": 1043}}, "job": {"id": 379, "assignee": {"id": 1188}}, "issue": {"id": 366, "owner": {"id": 1291}, "assignee": {"id": 53}}, "organization": {"id": 108}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "owner": {"id": 696}, "assignee": {"id": 534}, "project": {"id": 302, "owner": {"id": 752}, "assignee": {"id": 884}}, "task": {"id": 380, "owner": {"id": 946}, "assignee": {"id": 1011}}, "job": {"id": 382, "assignee": {"id": 1120}}, "issue": {"id": 356, "owner": {"id": 1238}, "assignee": {"id": 41}}, "organization": {"id": 1415}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 677}, "assignee": {"id": 509}, "project": {"id": 356, "owner": {"id": 727}, "assignee": {"id": 882}}, "task": {"id": 346, "owner": {"id": 978}, "assignee": {"id": 1061}}, "job": {"id": 365, "assignee": {"id": 1120}}, "issue": {"id": 395, "owner": {"id": 1268}, "assignee": {"id": 66}}, "organization": {"id": 1448}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 653}, "assignee": {"id": 525}, "project": {"id": 336, "owner": {"id": 773}, "assignee": {"id": 857}}, "task": {"id": 367, "owner": {"id": 989}, "assignee": {"id": 1020}}, "job": {"id": 380, "assignee": {"id": 1101}}, "issue": {"id": 356, "owner": {"id": 1267}, "assignee": {"id": 24}}, "organization": {"id": 117}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "owner": {"id": 691}, "assignee": {"id": 522}, "project": {"id": 385, "owner": {"id": 756}, "assignee": {"id": 892}}, "task": {"id": 378, "owner": {"id": 909}, "assignee": {"id": 1078}}, "job": {"id": 312, "assignee": {"id": 1190}}, "issue": {"id": 398, "owner": {"id": 1239}, "assignee": {"id": 95}}, "organization": {"id": 182}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "owner": {"id": 622}, "assignee": {"id": 535}, "project": {"id": 331, "owner": {"id": 764}, "assignee": {"id": 869}}, "task": {"id": 314, "owner": {"id": 998}, "assignee": {"id": 1098}}, "job": {"id": 379, "assignee": {"id": 1165}}, "issue": {"id": 395, "owner": {"id": 1271}, "assignee": {"id": 5}}, "organization": {"id": 1468}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "owner": {"id": 640}, "assignee": {"id": 569}, "project": {"id": 351, "owner": {"id": 778}, "assignee": {"id": 859}}, "task": {"id": 338, "owner": {"id": 961}, "assignee": {"id": 1068}}, "job": {"id": 363, "assignee": {"id": 1156}}, "issue": {"id": 305, "owner": {"id": 1241}, "assignee": {"id": 54}}, "organization": {"id": 1435}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 625}, "assignee": {"id": 538}, "project": {"id": 365, "owner": {"id": 763}, "assignee": {"id": 813}}, "task": {"id": 322, "owner": {"id": 969}, "assignee": {"id": 1006}}, "job": {"id": 367, "assignee": {"id": 1144}}, "issue": {"id": 377, "owner": {"id": 1282}, "assignee": {"id": 53}}, "organization": {"id": 193}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 625}, "assignee": {"id": 523}, "project": {"id": 301, "owner": {"id": 762}, "assignee": {"id": 873}}, "task": {"id": 393, "owner": {"id": 902}, "assignee": {"id": 1095}}, "job": {"id": 392, "assignee": {"id": 1121}}, "issue": {"id": 329, "owner": {"id": 1224}, "assignee": {"id": 86}}, "organization": {"id": 172}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 380, "owner": {"id": 671}, "assignee": {"id": 598}, "project": {"id": 302, "owner": {"id": 780}, "assignee": {"id": 859}}, "task": {"id": 392, "owner": {"id": 904}, "assignee": {"id": 1031}}, "job": {"id": 392, "assignee": {"id": 1113}}, "issue": {"id": 356, "owner": {"id": 1283}, "assignee": {"id": 40}}, "organization": {"id": 1495}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 685}, "assignee": {"id": 549}, "project": {"id": 388, "owner": {"id": 716}, "assignee": {"id": 870}}, "task": {"id": 378, "owner": {"id": 920}, "assignee": {"id": 1036}}, "job": {"id": 390, "assignee": {"id": 1111}}, "issue": {"id": 352, "owner": {"id": 1287}, "assignee": {"id": 91}}, "organization": {"id": 1412}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 383, "owner": {"id": 605}, "assignee": {"id": 545}, "project": {"id": 375, "owner": {"id": 733}, "assignee": {"id": 896}}, "task": {"id": 321, "owner": {"id": 957}, "assignee": {"id": 1040}}, "job": {"id": 314, "assignee": {"id": 1128}}, "issue": {"id": 339, "owner": {"id": 1298}, "assignee": {"id": 50}}, "organization": {"id": 150}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 395, "owner": {"id": 694}, "assignee": {"id": 562}, "project": {"id": 336, "owner": {"id": 768}, "assignee": {"id": 855}}, "task": {"id": 356, "owner": {"id": 964}, "assignee": {"id": 1004}}, "job": {"id": 332, "assignee": {"id": 1187}}, "issue": {"id": 343, "owner": {"id": 1203}, "assignee": {"id": 9}}, "organization": {"id": 175}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 356, "owner": {"id": 673}, "assignee": {"id": 506}, "project": {"id": 343, "owner": {"id": 770}, "assignee": {"id": 849}}, "task": {"id": 375, "owner": {"id": 933}, "assignee": {"id": 1065}}, "job": {"id": 390, "assignee": {"id": 1190}}, "issue": {"id": 328, "owner": {"id": 1287}, "assignee": {"id": 29}}, "organization": {"id": 1478}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 305, "owner": {"id": 659}, "assignee": {"id": 526}, "project": {"id": 345, "owner": {"id": 727}, "assignee": {"id": 847}}, "task": {"id": 358, "owner": {"id": 905}, "assignee": {"id": 1089}}, "job": {"id": 382, "assignee": {"id": 1120}}, "issue": {"id": 359, "owner": {"id": 1209}, "assignee": {"id": 53}}, "organization": {"id": 1450}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 699}, "assignee": {"id": 521}, "project": {"id": 388, "owner": {"id": 776}, "assignee": {"id": 863}}, "task": {"id": 352, "owner": {"id": 905}, "assignee": {"id": 1099}}, "job": {"id": 353, "assignee": {"id": 1159}}, "issue": {"id": 302, "owner": {"id": 1252}, "assignee": {"id": 9}}, "organization": {"id": 158}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 352, "owner": {"id": 671}, "assignee": {"id": 549}, "project": {"id": 337, "owner": {"id": 743}, "assignee": {"id": 804}}, "task": {"id": 315, "owner": {"id": 935}, "assignee": {"id": 1002}}, "job": {"id": 353, "assignee": {"id": 1186}}, "issue": {"id": 376, "owner": {"id": 1267}, "assignee": {"id": 76}}, "organization": {"id": 178}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 349, "owner": {"id": 670}, "assignee": {"id": 549}, "project": {"id": 386, "owner": {"id": 704}, "assignee": {"id": 813}}, "task": {"id": 304, "owner": {"id": 929}, "assignee": {"id": 1053}}, "job": {"id": 372, "assignee": {"id": 1109}}, "issue": {"id": 344, "owner": {"id": 1221}, "assignee": {"id": 35}}, "organization": {"id": 1402}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 673}, "assignee": {"id": 570}, "project": {"id": 339, "owner": {"id": 733}, "assignee": {"id": 878}}, "task": {"id": 399, "owner": {"id": 964}, "assignee": {"id": 1014}}, "job": {"id": 307, "assignee": {"id": 1155}}, "issue": {"id": 306, "owner": {"id": 1260}, "assignee": {"id": 27}}, "organization": {"id": 1455}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "owner": {"id": 668}, "assignee": {"id": 510}, "project": {"id": 304, "owner": {"id": 719}, "assignee": {"id": 883}}, "task": {"id": 333, "owner": {"id": 984}, "assignee": {"id": 1075}}, "job": {"id": 342, "assignee": {"id": 1108}}, "issue": {"id": 367, "owner": {"id": 1259}, "assignee": {"id": 63}}, "organization": {"id": 195}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "owner": {"id": 693}, "assignee": {"id": 564}, "project": {"id": 372, "owner": {"id": 776}, "assignee": {"id": 804}}, "task": {"id": 396, "owner": {"id": 926}, "assignee": {"id": 1038}}, "job": {"id": 308, "assignee": {"id": 1140}}, "issue": {"id": 372, "owner": {"id": 1272}, "assignee": {"id": 93}}, "organization": {"id": 167}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 677}, "assignee": {"id": 586}, "project": {"id": 382, "owner": {"id": 756}, "assignee": {"id": 822}}, "task": {"id": 359, "owner": {"id": 975}, "assignee": {"id": 1062}}, "job": {"id": 396, "assignee": {"id": 1192}}, "issue": {"id": 381, "owner": {"id": 1245}, "assignee": {"id": 74}}, "organization": {"id": 1482}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "owner": {"id": 609}, "assignee": {"id": 562}, "project": {"id": 320, "owner": {"id": 728}, "assignee": {"id": 864}}, "task": {"id": 304, "owner": {"id": 988}, "assignee": {"id": 1015}}, "job": {"id": 382, "assignee": {"id": 1139}}, "issue": {"id": 332, "owner": {"id": 1246}, "assignee": {"id": 52}}, "organization": {"id": 1402}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "owner": {"id": 653}, "assignee": {"id": 519}, "project": {"id": 336, "owner": {"id": 700}, "assignee": {"id": 845}}, "task": {"id": 322, "owner": {"id": 905}, "assignee": {"id": 1062}}, "job": {"id": 340, "assignee": {"id": 1123}}, "issue": {"id": 366, "owner": {"id": 1275}, "assignee": {"id": 4}}, "organization": {"id": 122}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 693}, "assignee": {"id": 538}, "project": {"id": 332, "owner": {"id": 760}, "assignee": {"id": 810}}, "task": {"id": 386, "owner": {"id": 976}, "assignee": {"id": 1087}}, "job": {"id": 387, "assignee": {"id": 1108}}, "issue": {"id": 321, "owner": {"id": 1280}, "assignee": {"id": 97}}, "organization": {"id": 118}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "owner": {"id": 607}, "assignee": {"id": 519}, "project": {"id": 385, "owner": {"id": 784}, "assignee": {"id": 892}}, "task": {"id": 321, "owner": {"id": 985}, "assignee": {"id": 1059}}, "job": {"id": 332, "assignee": {"id": 1127}}, "issue": {"id": 315, "owner": {"id": 1280}, "assignee": {"id": 14}}, "organization": {"id": 1439}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 390, "owner": {"id": 688}, "assignee": {"id": 530}, "project": {"id": 380, "owner": {"id": 701}, "assignee": {"id": 872}}, "task": {"id": 347, "owner": {"id": 925}, "assignee": {"id": 1061}}, "job": {"id": 395, "assignee": {"id": 1154}}, "issue": {"id": 362, "owner": {"id": 1220}, "assignee": {"id": 73}}, "organization": {"id": 1456}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 370, "owner": {"id": 691}, "assignee": {"id": 545}, "project": {"id": 329, "owner": {"id": 794}, "assignee": {"id": 860}}, "task": {"id": 350, "owner": {"id": 998}, "assignee": {"id": 1015}}, "job": {"id": 312, "assignee": {"id": 1152}}, "issue": {"id": 324, "owner": {"id": 1266}, "assignee": {"id": 42}}, "organization": {"id": 131}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 319, "owner": {"id": 635}, "assignee": {"id": 557}, "project": {"id": 378, "owner": {"id": 761}, "assignee": {"id": 827}}, "task": {"id": 371, "owner": {"id": 986}, "assignee": {"id": 1088}}, "job": {"id": 378, "assignee": {"id": 1185}}, "issue": {"id": 396, "owner": {"id": 1230}, "assignee": {"id": 2}}, "organization": {"id": 184}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 321, "owner": {"id": 655}, "assignee": {"id": 592}, "project": {"id": 397, "owner": {"id": 730}, "assignee": {"id": 823}}, "task": {"id": 381, "owner": {"id": 976}, "assignee": {"id": 1076}}, "job": {"id": 374, "assignee": {"id": 1111}}, "issue": {"id": 397, "owner": {"id": 1203}, "assignee": {"id": 65}}, "organization": {"id": 1491}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 332, "owner": {"id": 601}, "assignee": {"id": 576}, "project": {"id": 399, "owner": {"id": 719}, "assignee": {"id": 857}}, "task": {"id": 338, "owner": {"id": 907}, "assignee": {"id": 1080}}, "job": {"id": 345, "assignee": {"id": 1144}}, "issue": {"id": 368, "owner": {"id": 1234}, "assignee": {"id": 53}}, "organization": {"id": 1493}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 683}, "assignee": {"id": 563}, "project": {"id": 351, "owner": {"id": 714}, "assignee": {"id": 832}}, "task": {"id": 341, "owner": {"id": 996}, "assignee": {"id": 1082}}, "job": {"id": 385, "assignee": {"id": 1110}}, "issue": {"id": 379, "owner": {"id": 1201}, "assignee": {"id": 99}}, "organization": {"id": 162}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 638}, "assignee": {"id": 518}, "project": {"id": 331, "owner": {"id": 786}, "assignee": {"id": 820}}, "task": {"id": 368, "owner": {"id": 958}, "assignee": {"id": 1061}}, "job": {"id": 316, "assignee": {"id": 1198}}, "issue": {"id": 343, "owner": {"id": 1202}, "assignee": {"id": 12}}, "organization": {"id": 179}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 609}, "assignee": {"id": 519}, "project": {"id": 342, "owner": {"id": 763}, "assignee": {"id": 876}}, "task": {"id": 350, "owner": {"id": 935}, "assignee": {"id": 1019}}, "job": {"id": 374, "assignee": {"id": 1196}}, "issue": {"id": 314, "owner": {"id": 1270}, "assignee": {"id": 26}}, "organization": {"id": 1494}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 303, "owner": {"id": 676}, "assignee": {"id": 566}, "project": {"id": 387, "owner": {"id": 757}, "assignee": {"id": 842}}, "task": {"id": 370, "owner": {"id": 949}, "assignee": {"id": 1019}}, "job": {"id": 304, "assignee": {"id": 1190}}, "issue": {"id": 378, "owner": {"id": 1287}, "assignee": {"id": 43}}, "organization": {"id": 1486}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 682}, "assignee": {"id": 549}, "project": {"id": 347, "owner": {"id": 798}, "assignee": {"id": 844}}, "task": {"id": 364, "owner": {"id": 975}, "assignee": {"id": 1076}}, "job": {"id": 376, "assignee": {"id": 1127}}, "issue": {"id": 387, "owner": {"id": 1206}, "assignee": {"id": 91}}, "organization": {"id": 181}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 653}, "assignee": {"id": 514}, "project": {"id": 337, "owner": {"id": 777}, "assignee": {"id": 885}}, "task": {"id": 322, "owner": {"id": 977}, "assignee": {"id": 1092}}, "job": {"id": 338, "assignee": {"id": 1159}}, "issue": {"id": 335, "owner": {"id": 1253}, "assignee": {"id": 16}}, "organization": {"id": 196}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 319, "owner": {"id": 640}, "assignee": {"id": 557}, "project": {"id": 357, "owner": {"id": 789}, "assignee": {"id": 822}}, "task": {"id": 312, "owner": {"id": 916}, "assignee": {"id": 1008}}, "job": {"id": 320, "assignee": {"id": 1151}}, "issue": {"id": 334, "owner": {"id": 1218}, "assignee": {"id": 85}}, "organization": {"id": 1441}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 349, "owner": {"id": 656}, "assignee": {"id": 536}, "project": {"id": 354, "owner": {"id": 774}, "assignee": {"id": 895}}, "task": {"id": 357, "owner": {"id": 922}, "assignee": {"id": 1045}}, "job": {"id": 344, "assignee": {"id": 1169}}, "issue": {"id": 393, "owner": {"id": 1215}, "assignee": {"id": 63}}, "organization": {"id": 1497}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "owner": {"id": 625}, "assignee": {"id": 521}, "project": {"id": 309, "owner": {"id": 795}, "assignee": {"id": 872}}, "task": {"id": 383, "owner": {"id": 960}, "assignee": {"id": 1063}}, "job": {"id": 384, "assignee": {"id": 1112}}, "issue": {"id": 315, "owner": {"id": 1272}, "assignee": {"id": 93}}, "organization": {"id": 165}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "owner": {"id": 690}, "assignee": {"id": 544}, "project": {"id": 316, "owner": {"id": 756}, "assignee": {"id": 867}}, "task": {"id": 391, "owner": {"id": 983}, "assignee": {"id": 1079}}, "job": {"id": 383, "assignee": {"id": 1107}}, "issue": {"id": 308, "owner": {"id": 1228}, "assignee": {"id": 17}}, "organization": {"id": 100}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "owner": {"id": 601}, "assignee": {"id": 525}, "project": {"id": 398, "owner": {"id": 717}, "assignee": {"id": 893}}, "task": {"id": 389, "owner": {"id": 986}, "assignee": {"id": 1059}}, "job": {"id": 371, "assignee": {"id": 1145}}, "issue": {"id": 351, "owner": {"id": 1270}, "assignee": {"id": 18}}, "organization": {"id": 1422}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "owner": {"id": 657}, "assignee": {"id": 561}, "project": {"id": 348, "owner": {"id": 723}, "assignee": {"id": 865}}, "task": {"id": 373, "owner": {"id": 947}, "assignee": {"id": 1031}}, "job": {"id": 370, "assignee": {"id": 1170}}, "issue": {"id": 307, "owner": {"id": 1214}, "assignee": {"id": 55}}, "organization": {"id": 1415}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "owner": {"id": 638}, "assignee": {"id": 581}, "project": {"id": 377, "owner": {"id": 743}, "assignee": {"id": 817}}, "task": {"id": 306, "owner": {"id": 962}, "assignee": {"id": 1060}}, "job": {"id": 367, "assignee": {"id": 1101}}, "issue": {"id": 304, "owner": {"id": 1295}, "assignee": {"id": 82}}, "organization": {"id": 151}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "owner": {"id": 640}, "assignee": {"id": 542}, "project": {"id": 315, "owner": {"id": 717}, "assignee": {"id": 868}}, "task": {"id": 319, "owner": {"id": 964}, "assignee": {"id": 1005}}, "job": {"id": 313, "assignee": {"id": 1122}}, "issue": {"id": 358, "owner": {"id": 1254}, "assignee": {"id": 86}}, "organization": {"id": 113}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "owner": {"id": 602}, "assignee": {"id": 528}, "project": {"id": 333, "owner": {"id": 743}, "assignee": {"id": 895}}, "task": {"id": 382, "owner": {"id": 985}, "assignee": {"id": 1047}}, "job": {"id": 385, "assignee": {"id": 1149}}, "issue": {"id": 389, "owner": {"id": 1267}, "assignee": {"id": 13}}, "organization": {"id": 1448}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 380, "owner": {"id": 640}, "assignee": {"id": 519}, "project": {"id": 352, "owner": {"id": 725}, "assignee": {"id": 842}}, "task": {"id": 302, "owner": {"id": 976}, "assignee": {"id": 1084}}, "job": {"id": 304, "assignee": {"id": 1106}}, "issue": {"id": 344, "owner": {"id": 1218}, "assignee": {"id": 17}}, "organization": {"id": 1462}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 617}, "assignee": {"id": 594}, "project": {"id": 379, "owner": {"id": 759}, "assignee": {"id": 891}}, "task": {"id": 373, "owner": {"id": 944}, "assignee": {"id": 1075}}, "job": {"id": 320, "assignee": {"id": 1101}}, "issue": {"id": 383, "owner": {"id": 1283}, "assignee": {"id": 59}}, "organization": {"id": 192}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 675}, "assignee": {"id": 518}, "project": {"id": 371, "owner": {"id": 780}, "assignee": {"id": 835}}, "task": {"id": 363, "owner": {"id": 931}, "assignee": {"id": 1020}}, "job": {"id": 366, "assignee": {"id": 1178}}, "issue": {"id": 328, "owner": {"id": 1241}, "assignee": {"id": 8}}, "organization": {"id": 182}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 369, "owner": {"id": 688}, "assignee": {"id": 570}, "project": {"id": 347, "owner": {"id": 751}, "assignee": {"id": 830}}, "task": {"id": 317, "owner": {"id": 903}, "assignee": {"id": 1043}}, "job": {"id": 316, "assignee": {"id": 1104}}, "issue": {"id": 396, "owner": {"id": 1207}, "assignee": {"id": 91}}, "organization": {"id": 1402}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 382, "owner": {"id": 606}, "assignee": {"id": 579}, "project": {"id": 393, "owner": {"id": 713}, "assignee": {"id": 866}}, "task": {"id": 384, "owner": {"id": 917}, "assignee": {"id": 1015}}, "job": {"id": 313, "assignee": {"id": 1168}}, "issue": {"id": 309, "owner": {"id": 1292}, "assignee": {"id": 89}}, "organization": {"id": 1477}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 626}, "assignee": {"id": 558}, "project": {"id": 380, "owner": {"id": 756}, "assignee": {"id": 875}}, "task": {"id": 303, "owner": {"id": 948}, "assignee": {"id": 1095}}, "job": {"id": 307, "assignee": {"id": 1170}}, "issue": {"id": 381, "owner": {"id": 1227}, "assignee": {"id": 3}}, "organization": {"id": 166}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 319, "owner": {"id": 608}, "assignee": {"id": 557}, "project": {"id": 374, "owner": {"id": 748}, "assignee": {"id": 857}}, "task": {"id": 397, "owner": {"id": 911}, "assignee": {"id": 1096}}, "job": {"id": 357, "assignee": {"id": 1135}}, "issue": {"id": 352, "owner": {"id": 1210}, "assignee": {"id": 20}}, "organization": {"id": 149}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 323, "owner": {"id": 612}, "assignee": {"id": 555}, "project": {"id": 378, "owner": {"id": 726}, "assignee": {"id": 893}}, "task": {"id": 318, "owner": {"id": 947}, "assignee": {"id": 1094}}, "job": {"id": 371, "assignee": {"id": 1116}}, "issue": {"id": 385, "owner": {"id": 1225}, "assignee": {"id": 66}}, "organization": {"id": 1422}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 618}, "assignee": {"id": 568}, "project": {"id": 348, "owner": {"id": 759}, "assignee": {"id": 824}}, "task": {"id": 361, "owner": {"id": 968}, "assignee": {"id": 1005}}, "job": {"id": 390, "assignee": {"id": 1146}}, "issue": {"id": 374, "owner": {"id": 1278}, "assignee": {"id": 55}}, "organization": {"id": 1410}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 314, "owner": {"id": 622}, "assignee": {"id": 578}, "project": {"id": 361, "owner": {"id": 751}, "assignee": {"id": 850}}, "task": {"id": 346, "owner": {"id": 900}, "assignee": {"id": 1076}}, "job": {"id": 306, "assignee": {"id": 1127}}, "issue": {"id": 334, "owner": {"id": 1242}, "assignee": {"id": 1329}}, "organization": {"id": 169}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 376, "owner": {"id": 683}, "assignee": {"id": 552}, "project": {"id": 394, "owner": {"id": 711}, "assignee": {"id": 834}}, "task": {"id": 354, "owner": {"id": 980}, "assignee": {"id": 1031}}, "job": {"id": 352, "assignee": {"id": 1133}}, "issue": {"id": 352, "owner": {"id": 1270}, "assignee": {"id": 1379}}, "organization": {"id": 141}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 317, "owner": {"id": 622}, "assignee": {"id": 596}, "project": {"id": 329, "owner": {"id": 722}, "assignee": {"id": 890}}, "task": {"id": 336, "owner": {"id": 915}, "assignee": {"id": 1016}}, "job": {"id": 345, "assignee": {"id": 1170}}, "issue": {"id": 313, "owner": {"id": 1221}, "assignee": {"id": 1305}}, "organization": {"id": 1409}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 655}, "assignee": {"id": 580}, "project": {"id": 346, "owner": {"id": 709}, "assignee": {"id": 830}}, "task": {"id": 318, "owner": {"id": 969}, "assignee": {"id": 1000}}, "job": {"id": 376, "assignee": {"id": 1114}}, "issue": {"id": 388, "owner": {"id": 1250}, "assignee": {"id": 1326}}, "organization": {"id": 1470}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 643}, "assignee": {"id": 509}, "project": {"id": 342, "owner": {"id": 778}, "assignee": {"id": 835}}, "task": {"id": 334, "owner": {"id": 902}, "assignee": {"id": 1069}}, "job": {"id": 342, "assignee": {"id": 1189}}, "issue": {"id": 319, "owner": {"id": 1206}, "assignee": {"id": 1344}}, "organization": {"id": 194}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "owner": {"id": 694}, "assignee": {"id": 541}, "project": {"id": 332, "owner": {"id": 780}, "assignee": {"id": 847}}, "task": {"id": 387, "owner": {"id": 946}, "assignee": {"id": 1065}}, "job": {"id": 308, "assignee": {"id": 1180}}, "issue": {"id": 319, "owner": {"id": 1225}, "assignee": {"id": 1382}}, "organization": {"id": 175}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "owner": {"id": 605}, "assignee": {"id": 542}, "project": {"id": 347, "owner": {"id": 715}, "assignee": {"id": 858}}, "task": {"id": 305, "owner": {"id": 982}, "assignee": {"id": 1004}}, "job": {"id": 310, "assignee": {"id": 1142}}, "issue": {"id": 353, "owner": {"id": 1273}, "assignee": {"id": 1370}}, "organization": {"id": 1498}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "owner": {"id": 689}, "assignee": {"id": 579}, "project": {"id": 363, "owner": {"id": 753}, "assignee": {"id": 874}}, "task": {"id": 330, "owner": {"id": 978}, "assignee": {"id": 1004}}, "job": {"id": 386, "assignee": {"id": 1185}}, "issue": {"id": 374, "owner": {"id": 1260}, "assignee": {"id": 1333}}, "organization": {"id": 1435}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 646}, "assignee": {"id": 514}, "project": {"id": 316, "owner": {"id": 708}, "assignee": {"id": 837}}, "task": {"id": 345, "owner": {"id": 907}, "assignee": {"id": 1011}}, "job": {"id": 332, "assignee": {"id": 1150}}, "issue": {"id": 382, "owner": {"id": 1258}, "assignee": {"id": 1391}}, "organization": {"id": 128}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "owner": {"id": 643}, "assignee": {"id": 527}, "project": {"id": 341, "owner": {"id": 759}, "assignee": {"id": 810}}, "task": {"id": 306, "owner": {"id": 941}, "assignee": {"id": 1090}}, "job": {"id": 363, "assignee": {"id": 1117}}, "issue": {"id": 308, "owner": {"id": 1218}, "assignee": {"id": 1314}}, "organization": {"id": 139}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 615}, "assignee": {"id": 509}, "project": {"id": 317, "owner": {"id": 786}, "assignee": {"id": 834}}, "task": {"id": 317, "owner": {"id": 939}, "assignee": {"id": 1013}}, "job": {"id": 315, "assignee": {"id": 1190}}, "issue": {"id": 367, "owner": {"id": 1273}, "assignee": {"id": 1382}}, "organization": {"id": 1451}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 601}, "assignee": {"id": 593}, "project": {"id": 359, "owner": {"id": 765}, "assignee": {"id": 862}}, "task": {"id": 339, "owner": {"id": 964}, "assignee": {"id": 1068}}, "job": {"id": 314, "assignee": {"id": 1191}}, "issue": {"id": 355, "owner": {"id": 1259}, "assignee": {"id": 1363}}, "organization": {"id": 1452}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 366, "owner": {"id": 615}, "assignee": {"id": 596}, "project": {"id": 331, "owner": {"id": 724}, "assignee": {"id": 818}}, "task": {"id": 316, "owner": {"id": 912}, "assignee": {"id": 1005}}, "job": {"id": 322, "assignee": {"id": 1157}}, "issue": {"id": 362, "owner": {"id": 1250}, "assignee": {"id": 1309}}, "organization": {"id": 123}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 328, "owner": {"id": 643}, "assignee": {"id": 502}, "project": {"id": 388, "owner": {"id": 735}, "assignee": {"id": 865}}, "task": {"id": 386, "owner": {"id": 929}, "assignee": {"id": 1086}}, "job": {"id": 394, "assignee": {"id": 1136}}, "issue": {"id": 331, "owner": {"id": 1244}, "assignee": {"id": 1387}}, "organization": {"id": 142}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 316, "owner": {"id": 607}, "assignee": {"id": 515}, "project": {"id": 306, "owner": {"id": 710}, "assignee": {"id": 852}}, "task": {"id": 391, "owner": {"id": 962}, "assignee": {"id": 1043}}, "job": {"id": 393, "assignee": {"id": 1189}}, "issue": {"id": 322, "owner": {"id": 1287}, "assignee": {"id": 1370}}, "organization": {"id": 1456}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 347, "owner": {"id": 659}, "assignee": {"id": 510}, "project": {"id": 399, "owner": {"id": 786}, "assignee": {"id": 876}}, "task": {"id": 359, "owner": {"id": 932}, "assignee": {"id": 1027}}, "job": {"id": 301, "assignee": {"id": 1157}}, "issue": {"id": 337, "owner": {"id": 1209}, "assignee": {"id": 1385}}, "organization": {"id": 1403}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 370, "owner": {"id": 606}, "assignee": {"id": 545}, "project": {"id": 349, "owner": {"id": 742}, "assignee": {"id": 855}}, "task": {"id": 385, "owner": {"id": 938}, "assignee": {"id": 1093}}, "job": {"id": 310, "assignee": {"id": 1142}}, "issue": {"id": 301, "owner": {"id": 1294}, "assignee": {"id": 1375}}, "organization": {"id": 128}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 308, "owner": {"id": 602}, "assignee": {"id": 572}, "project": {"id": 302, "owner": {"id": 790}, "assignee": {"id": 879}}, "task": {"id": 301, "owner": {"id": 915}, "assignee": {"id": 1064}}, "job": {"id": 313, "assignee": {"id": 1169}}, "issue": {"id": 361, "owner": {"id": 1281}, "assignee": {"id": 1394}}, "organization": {"id": 135}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 689}, "assignee": {"id": 580}, "project": {"id": 307, "owner": {"id": 765}, "assignee": {"id": 812}}, "task": {"id": 391, "owner": {"id": 908}, "assignee": {"id": 1080}}, "job": {"id": 343, "assignee": {"id": 1175}}, "issue": {"id": 348, "owner": {"id": 1202}, "assignee": {"id": 1318}}, "organization": {"id": 1417}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"id": 354, "owner": {"id": 600}, "assignee": {"id": 591}, "project": {"id": 392, "owner": {"id": 773}, "assignee": {"id": 819}}, "task": {"id": 333, "owner": {"id": 983}, "assignee": {"id": 1028}}, "job": {"id": 345, "assignee": {"id": 1170}}, "issue": {"id": 372, "owner": {"id": 1240}, "assignee": {"id": 1357}}, "organization": {"id": 1452}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 615}, "assignee": {"id": 553}, "project": {"id": 331, "owner": {"id": 715}, "assignee": {"id": 820}}, "task": {"id": 338, "owner": {"id": 960}, "assignee": {"id": 1030}}, "job": {"id": 397, "assignee": {"id": 1183}}, "issue": {"id": 394, "owner": {"id": 1222}, "assignee": {"id": 1309}}, "organization": {"id": 120}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 81, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 328, "owner": {"id": 699}, "assignee": {"id": 561}, "project": {"id": 377, "owner": {"id": 748}, "assignee": {"id": 858}}, "task": {"id": 318, "owner": {"id": 952}, "assignee": {"id": 1002}}, "job": {"id": 328, "assignee": {"id": 1180}}, "issue": {"id": 303, "owner": {"id": 1210}, "assignee": {"id": 1322}}, "organization": {"id": 168}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 324, "owner": {"id": 656}, "assignee": {"id": 521}, "project": {"id": 370, "owner": {"id": 725}, "assignee": {"id": 862}}, "task": {"id": 375, "owner": {"id": 981}, "assignee": {"id": 1053}}, "job": {"id": 383, "assignee": {"id": 1173}}, "issue": {"id": 324, "owner": {"id": 1218}, "assignee": {"id": 1358}}, "organization": {"id": 1412}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 319, "owner": {"id": 660}, "assignee": {"id": 576}, "project": {"id": 380, "owner": {"id": 772}, "assignee": {"id": 864}}, "task": {"id": 375, "owner": {"id": 926}, "assignee": {"id": 1072}}, "job": {"id": 381, "assignee": {"id": 1141}}, "issue": {"id": 356, "owner": {"id": 1269}, "assignee": {"id": 1323}}, "organization": {"id": 1452}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "owner": {"id": 617}, "assignee": {"id": 574}, "project": {"id": 359, "owner": {"id": 787}, "assignee": {"id": 800}}, "task": {"id": 310, "owner": {"id": 965}, "assignee": {"id": 1054}}, "job": {"id": 324, "assignee": {"id": 1163}}, "issue": {"id": 373, "owner": {"id": 1283}, "assignee": {"id": 1340}}, "organization": {"id": 125}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "owner": {"id": 616}, "assignee": {"id": 541}, "project": {"id": 326, "owner": {"id": 770}, "assignee": {"id": 837}}, "task": {"id": 365, "owner": {"id": 985}, "assignee": {"id": 1084}}, "job": {"id": 323, "assignee": {"id": 1148}}, "issue": {"id": 367, "owner": {"id": 1243}, "assignee": {"id": 1309}}, "organization": {"id": 167}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 695}, "assignee": {"id": 579}, "project": {"id": 305, "owner": {"id": 745}, "assignee": {"id": 863}}, "task": {"id": 330, "owner": {"id": 961}, "assignee": {"id": 1099}}, "job": {"id": 347, "assignee": {"id": 1114}}, "issue": {"id": 379, "owner": {"id": 1290}, "assignee": {"id": 1331}}, "organization": {"id": 1454}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "owner": {"id": 610}, "assignee": {"id": 523}, "project": {"id": 329, "owner": {"id": 776}, "assignee": {"id": 838}}, "task": {"id": 325, "owner": {"id": 948}, "assignee": {"id": 1015}}, "job": {"id": 303, "assignee": {"id": 1199}}, "issue": {"id": 359, "owner": {"id": 1233}, "assignee": {"id": 1304}}, "organization": {"id": 1446}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 644}, "assignee": {"id": 535}, "project": {"id": 362, "owner": {"id": 743}, "assignee": {"id": 837}}, "task": {"id": 357, "owner": {"id": 924}, "assignee": {"id": 1024}}, "job": {"id": 302, "assignee": {"id": 1173}}, "issue": {"id": 338, "owner": {"id": 1299}, "assignee": {"id": 1369}}, "organization": {"id": 108}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "owner": {"id": 613}, "assignee": {"id": 504}, "project": {"id": 309, "owner": {"id": 722}, "assignee": {"id": 868}}, "task": {"id": 301, "owner": {"id": 954}, "assignee": {"id": 1046}}, "job": {"id": 345, "assignee": {"id": 1151}}, "issue": {"id": 357, "owner": {"id": 1257}, "assignee": {"id": 1306}}, "organization": {"id": 115}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "owner": {"id": 661}, "assignee": {"id": 535}, "project": {"id": 317, "owner": {"id": 701}, "assignee": {"id": 839}}, "task": {"id": 318, "owner": {"id": 985}, "assignee": {"id": 1062}}, "job": {"id": 387, "assignee": {"id": 1123}}, "issue": {"id": 310, "owner": {"id": 1203}, "assignee": {"id": 1344}}, "organization": {"id": 1409}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "owner": {"id": 695}, "assignee": {"id": 543}, "project": {"id": 324, "owner": {"id": 749}, "assignee": {"id": 840}}, "task": {"id": 348, "owner": {"id": 910}, "assignee": {"id": 1074}}, "job": {"id": 330, "assignee": {"id": 1103}}, "issue": {"id": 311, "owner": {"id": 1212}, "assignee": {"id": 1376}}, "organization": {"id": 1406}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 630}, "assignee": {"id": 520}, "project": {"id": 376, "owner": {"id": 711}, "assignee": {"id": 870}}, "task": {"id": 384, "owner": {"id": 995}, "assignee": {"id": 1022}}, "job": {"id": 336, "assignee": {"id": 1137}}, "issue": {"id": 375, "owner": {"id": 1292}, "assignee": {"id": 1382}}, "organization": {"id": 153}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 612}, "assignee": {"id": 565}, "project": {"id": 301, "owner": {"id": 752}, "assignee": {"id": 841}}, "task": {"id": 359, "owner": {"id": 903}, "assignee": {"id": 1085}}, "job": {"id": 395, "assignee": {"id": 1134}}, "issue": {"id": 380, "owner": {"id": 1202}, "assignee": {"id": 1331}}, "organization": {"id": 119}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 329, "owner": {"id": 681}, "assignee": {"id": 583}, "project": {"id": 330, "owner": {"id": 737}, "assignee": {"id": 888}}, "task": {"id": 300, "owner": {"id": 909}, "assignee": {"id": 1054}}, "job": {"id": 349, "assignee": {"id": 1139}}, "issue": {"id": 394, "owner": {"id": 1268}, "assignee": {"id": 1316}}, "organization": {"id": 1498}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 347, "owner": {"id": 600}, "assignee": {"id": 587}, "project": {"id": 329, "owner": {"id": 707}, "assignee": {"id": 808}}, "task": {"id": 301, "owner": {"id": 918}, "assignee": {"id": 1029}}, "job": {"id": 300, "assignee": {"id": 1147}}, "issue": {"id": 377, "owner": {"id": 1217}, "assignee": {"id": 1326}}, "organization": {"id": 1483}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 653}, "assignee": {"id": 566}, "project": {"id": 394, "owner": {"id": 761}, "assignee": {"id": 827}}, "task": {"id": 307, "owner": {"id": 999}, "assignee": {"id": 1092}}, "job": {"id": 393, "assignee": {"id": 1167}}, "issue": {"id": 340, "owner": {"id": 1293}, "assignee": {"id": 1312}}, "organization": {"id": 157}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 342, "owner": {"id": 676}, "assignee": {"id": 501}, "project": {"id": 362, "owner": {"id": 770}, "assignee": {"id": 888}}, "task": {"id": 375, "owner": {"id": 994}, "assignee": {"id": 1002}}, "job": {"id": 335, "assignee": {"id": 1138}}, "issue": {"id": 350, "owner": {"id": 1280}, "assignee": {"id": 1302}}, "organization": {"id": 137}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"id": 321, "owner": {"id": 648}, "assignee": {"id": 545}, "project": {"id": 348, "owner": {"id": 712}, "assignee": {"id": 820}}, "task": {"id": 318, "owner": {"id": 946}, "assignee": {"id": 1000}}, "job": {"id": 374, "assignee": {"id": 1109}}, "issue": {"id": 373, "owner": {"id": 1285}, "assignee": {"id": 1318}}, "organization": {"id": 1475}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 386, "owner": {"id": 619}, "assignee": {"id": 565}, "project": {"id": 388, "owner": {"id": 784}, "assignee": {"id": 810}}, "task": {"id": 338, "owner": {"id": 973}, "assignee": {"id": 1061}}, "job": {"id": 397, "assignee": {"id": 1110}}, "issue": {"id": 317, "owner": {"id": 1256}, "assignee": {"id": 1358}}, "organization": {"id": 1457}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 341, "owner": {"id": 635}, "assignee": {"id": 573}, "project": {"id": 399, "owner": {"id": 754}, "assignee": {"id": 800}}, "task": {"id": 358, "owner": {"id": 966}, "assignee": {"id": 1069}}, "job": {"id": 361, "assignee": {"id": 1160}}, "issue": {"id": 319, "owner": {"id": 1295}, "assignee": {"id": 1365}}, "organization": {"id": 159}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 311, "owner": {"id": 652}, "assignee": {"id": 595}, "project": {"id": 335, "owner": {"id": 721}, "assignee": {"id": 821}}, "task": {"id": 314, "owner": {"id": 924}, "assignee": {"id": 1073}}, "job": {"id": 300, "assignee": {"id": 1137}}, "issue": {"id": 397, "owner": {"id": 1255}, "assignee": {"id": 1321}}, "organization": {"id": 126}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 329, "owner": {"id": 691}, "assignee": {"id": 598}, "project": {"id": 315, "owner": {"id": 769}, "assignee": {"id": 870}}, "task": {"id": 319, "owner": {"id": 900}, "assignee": {"id": 1082}}, "job": {"id": 312, "assignee": {"id": 1197}}, "issue": {"id": 340, "owner": {"id": 1293}, "assignee": {"id": 1355}}, "organization": {"id": 1402}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 319, "owner": {"id": 657}, "assignee": {"id": 552}, "project": {"id": 383, "owner": {"id": 789}, "assignee": {"id": 832}}, "task": {"id": 356, "owner": {"id": 936}, "assignee": {"id": 1052}}, "job": {"id": 347, "assignee": {"id": 1150}}, "issue": {"id": 363, "owner": {"id": 1218}, "assignee": {"id": 1336}}, "organization": {"id": 1487}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 617}, "assignee": {"id": 576}, "project": {"id": 323, "owner": {"id": 701}, "assignee": {"id": 892}}, "task": {"id": 355, "owner": {"id": 907}, "assignee": {"id": 1015}}, "job": {"id": 390, "assignee": {"id": 1109}}, "issue": {"id": 385, "owner": {"id": 1258}, "assignee": {"id": 1369}}, "organization": {"id": 175}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@issue", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "owner": {"id": 681}, "assignee": {"id": 513}, "project": {"id": 398, "owner": {"id": 793}, "assignee": {"id": 803}}, "task": {"id": 377, "owner": {"id": 968}, "assignee": {"id": 1016}}, "job": {"id": 300, "assignee": {"id": 1162}}, "issue": {"id": 310, "owner": {"id": 1268}, "assignee": {"id": 1355}}, "organization": {"id": 103}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "owner": {"id": 617}, "assignee": {"id": 563}, "project": {"id": 393, "owner": {"id": 744}, "assignee": {"id": 884}}, "task": {"id": 348, "owner": {"id": 984}, "assignee": {"id": 1031}}, "job": {"id": 328, "assignee": {"id": 1190}}, "issue": {"id": 378, "owner": {"id": 1268}, "assignee": {"id": 1355}}, "organization": {"id": 1487}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "owner": {"id": 674}, "assignee": {"id": 500}, "project": {"id": 325, "owner": {"id": 729}, "assignee": {"id": 809}}, "task": {"id": 314, "owner": {"id": 986}, "assignee": {"id": 1091}}, "job": {"id": 368, "assignee": {"id": 1134}}, "issue": {"id": 381, "owner": {"id": 1293}, "assignee": {"id": 1398}}, "organization": {"id": 1455}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "owner": {"id": 642}, "assignee": {"id": 548}, "project": {"id": 370, "owner": {"id": 731}, "assignee": {"id": 841}}, "task": {"id": 343, "owner": {"id": 927}, "assignee": {"id": 1027}}, "job": {"id": 341, "assignee": {"id": 1182}}, "issue": {"id": 317, "owner": {"id": 1296}, "assignee": {"id": 1376}}, "organization": {"id": 171}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "owner": {"id": 617}, "assignee": {"id": 503}, "project": {"id": 323, "owner": {"id": 718}, "assignee": {"id": 813}}, "task": {"id": 323, "owner": {"id": 914}, "assignee": {"id": 1045}}, "job": {"id": 363, "assignee": {"id": 1125}}, "issue": {"id": 319, "owner": {"id": 1268}, "assignee": {"id": 1387}}, "organization": {"id": 115}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "owner": {"id": 642}, "assignee": {"id": 510}, "project": {"id": 394, "owner": {"id": 703}, "assignee": {"id": 803}}, "task": {"id": 391, "owner": {"id": 910}, "assignee": {"id": 1066}}, "job": {"id": 338, "assignee": {"id": 1194}}, "issue": {"id": 388, "owner": {"id": 1228}, "assignee": {"id": 1388}}, "organization": {"id": 1442}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "owner": {"id": 690}, "assignee": {"id": 594}, "project": {"id": 360, "owner": {"id": 781}, "assignee": {"id": 871}}, "task": {"id": 337, "owner": {"id": 995}, "assignee": {"id": 1052}}, "job": {"id": 352, "assignee": {"id": 1100}}, "issue": {"id": 382, "owner": {"id": 1288}, "assignee": {"id": 1383}}, "organization": {"id": 1430}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 384, "owner": {"id": 663}, "assignee": {"id": 543}, "project": {"id": 393, "owner": {"id": 785}, "assignee": {"id": 859}}, "task": {"id": 380, "owner": {"id": 989}, "assignee": {"id": 1068}}, "job": {"id": 380, "assignee": {"id": 1121}}, "issue": {"id": 305, "owner": {"id": 1237}, "assignee": {"id": 1324}}, "organization": {"id": 163}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 647}, "assignee": {"id": 512}, "project": {"id": 371, "owner": {"id": 726}, "assignee": {"id": 837}}, "task": {"id": 334, "owner": {"id": 913}, "assignee": {"id": 1099}}, "job": {"id": 331, "assignee": {"id": 1113}}, "issue": {"id": 390, "owner": {"id": 1247}, "assignee": {"id": 1398}}, "organization": {"id": 108}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 392, "owner": {"id": 601}, "assignee": {"id": 543}, "project": {"id": 348, "owner": {"id": 775}, "assignee": {"id": 881}}, "task": {"id": 371, "owner": {"id": 948}, "assignee": {"id": 1067}}, "job": {"id": 369, "assignee": {"id": 1125}}, "issue": {"id": 357, "owner": {"id": 1291}, "assignee": {"id": 1320}}, "organization": {"id": 1442}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 306, "owner": {"id": 647}, "assignee": {"id": 555}, "project": {"id": 394, "owner": {"id": 782}, "assignee": {"id": 892}}, "task": {"id": 394, "owner": {"id": 995}, "assignee": {"id": 1098}}, "job": {"id": 378, "assignee": {"id": 1185}}, "issue": {"id": 369, "owner": {"id": 1221}, "assignee": {"id": 1332}}, "organization": {"id": 1417}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 366, "owner": {"id": 682}, "assignee": {"id": 552}, "project": {"id": 324, "owner": {"id": 714}, "assignee": {"id": 867}}, "task": {"id": 339, "owner": {"id": 965}, "assignee": {"id": 1054}}, "job": {"id": 332, "assignee": {"id": 1103}}, "issue": {"id": 397, "owner": {"id": 1261}, "assignee": {"id": 1369}}, "organization": {"id": 163}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 329, "owner": {"id": 611}, "assignee": {"id": 545}, "project": {"id": 340, "owner": {"id": 708}, "assignee": {"id": 878}}, "task": {"id": 336, "owner": {"id": 939}, "assignee": {"id": 1043}}, "job": {"id": 334, "assignee": {"id": 1157}}, "issue": {"id": 390, "owner": {"id": 1239}, "assignee": {"id": 1350}}, "organization": {"id": 142}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 656}, "assignee": {"id": 584}, "project": {"id": 374, "owner": {"id": 717}, "assignee": {"id": 854}}, "task": {"id": 367, "owner": {"id": 996}, "assignee": {"id": 1073}}, "job": {"id": 321, "assignee": {"id": 1161}}, "issue": {"id": 352, "owner": {"id": 1263}, "assignee": {"id": 1343}}, "organization": {"id": 1443}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 629}, "assignee": {"id": 572}, "project": {"id": 385, "owner": {"id": 724}, "assignee": {"id": 821}}, "task": {"id": 339, "owner": {"id": 916}, "assignee": {"id": 1026}}, "job": {"id": 373, "assignee": {"id": 1130}}, "issue": {"id": 326, "owner": {"id": 1204}, "assignee": {"id": 1303}}, "organization": {"id": 1433}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 315, "owner": {"id": 651}, "assignee": {"id": 506}, "project": {"id": 348, "owner": {"id": 734}, "assignee": {"id": 831}}, "task": {"id": 335, "owner": {"id": 910}, "assignee": {"id": 1030}}, "job": {"id": 345, "assignee": {"id": 1136}}, "issue": {"id": 310, "owner": {"id": 1267}, "assignee": {"id": 1328}}, "organization": {"id": 164}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 684}, "assignee": {"id": 592}, "project": {"id": 354, "owner": {"id": 712}, "assignee": {"id": 827}}, "task": {"id": 338, "owner": {"id": 926}, "assignee": {"id": 1064}}, "job": {"id": 399, "assignee": {"id": 1112}}, "issue": {"id": 311, "owner": {"id": 1212}, "assignee": {"id": 1314}}, "organization": {"id": 167}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 375, "owner": {"id": 667}, "assignee": {"id": 540}, "project": {"id": 355, "owner": {"id": 781}, "assignee": {"id": 809}}, "task": {"id": 396, "owner": {"id": 975}, "assignee": {"id": 1007}}, "job": {"id": 354, "assignee": {"id": 1193}}, "issue": {"id": 371, "owner": {"id": 1243}, "assignee": {"id": 1328}}, "organization": {"id": 1497}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 311, "owner": {"id": 615}, "assignee": {"id": 558}, "project": {"id": 398, "owner": {"id": 789}, "assignee": {"id": 880}}, "task": {"id": 334, "owner": {"id": 919}, "assignee": {"id": 1007}}, "job": {"id": 395, "assignee": {"id": 1163}}, "issue": {"id": 354, "owner": {"id": 1235}, "assignee": {"id": 1334}}, "organization": {"id": 1468}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "owner": {"id": 677}, "assignee": {"id": 541}, "project": {"id": 324, "owner": {"id": 781}, "assignee": {"id": 892}}, "task": {"id": 388, "owner": {"id": 963}, "assignee": {"id": 1013}}, "job": {"id": 331, "assignee": {"id": 1179}}, "issue": {"id": 305, "owner": {"id": 1258}, "assignee": {"id": 1349}}, "organization": {"id": 158}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "owner": {"id": 679}, "assignee": {"id": 586}, "project": {"id": 391, "owner": {"id": 723}, "assignee": {"id": 860}}, "task": {"id": 303, "owner": {"id": 939}, "assignee": {"id": 1079}}, "job": {"id": 372, "assignee": {"id": 1154}}, "issue": {"id": 365, "owner": {"id": 1236}, "assignee": {"id": 1387}}, "organization": {"id": 176}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "owner": {"id": 631}, "assignee": {"id": 516}, "project": {"id": 382, "owner": {"id": 797}, "assignee": {"id": 809}}, "task": {"id": 398, "owner": {"id": 954}, "assignee": {"id": 1089}}, "job": {"id": 312, "assignee": {"id": 1113}}, "issue": {"id": 337, "owner": {"id": 1260}, "assignee": {"id": 1308}}, "organization": {"id": 1468}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "owner": {"id": 629}, "assignee": {"id": 574}, "project": {"id": 335, "owner": {"id": 761}, "assignee": {"id": 856}}, "task": {"id": 343, "owner": {"id": 940}, "assignee": {"id": 1006}}, "job": {"id": 392, "assignee": {"id": 1126}}, "issue": {"id": 300, "owner": {"id": 1298}, "assignee": {"id": 1331}}, "organization": {"id": 1450}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 627}, "assignee": {"id": 500}, "project": {"id": 376, "owner": {"id": 765}, "assignee": {"id": 858}}, "task": {"id": 375, "owner": {"id": 924}, "assignee": {"id": 1095}}, "job": {"id": 333, "assignee": {"id": 1107}}, "issue": {"id": 394, "owner": {"id": 1273}, "assignee": {"id": 1346}}, "organization": {"id": 177}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "owner": {"id": 636}, "assignee": {"id": 565}, "project": {"id": 300, "owner": {"id": 791}, "assignee": {"id": 803}}, "task": {"id": 356, "owner": {"id": 942}, "assignee": {"id": 1067}}, "job": {"id": 351, "assignee": {"id": 1165}}, "issue": {"id": 333, "owner": {"id": 1239}, "assignee": {"id": 1329}}, "organization": {"id": 107}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "owner": {"id": 691}, "assignee": {"id": 555}, "project": {"id": 364, "owner": {"id": 766}, "assignee": {"id": 800}}, "task": {"id": 318, "owner": {"id": 906}, "assignee": {"id": 1039}}, "job": {"id": 315, "assignee": {"id": 1151}}, "issue": {"id": 307, "owner": {"id": 1219}, "assignee": {"id": 1313}}, "organization": {"id": 1464}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 29, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "owner": {"id": 648}, "assignee": {"id": 552}, "project": {"id": 362, "owner": {"id": 746}, "assignee": {"id": 841}}, "task": {"id": 375, "owner": {"id": 939}, "assignee": {"id": 1036}}, "job": {"id": 386, "assignee": {"id": 1108}}, "issue": {"id": 340, "owner": {"id": 1253}, "assignee": {"id": 1325}}, "organization": {"id": 1490}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 354, "owner": {"id": 643}, "assignee": {"id": 553}, "project": {"id": 392, "owner": {"id": 745}, "assignee": {"id": 811}}, "task": {"id": 341, "owner": {"id": 991}, "assignee": {"id": 1037}}, "job": {"id": 340, "assignee": {"id": 1191}}, "issue": {"id": 305, "owner": {"id": 1279}, "assignee": {"id": 1320}}, "organization": {"id": 199}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 339, "owner": {"id": 656}, "assignee": {"id": 529}, "project": {"id": 333, "owner": {"id": 712}, "assignee": {"id": 809}}, "task": {"id": 383, "owner": {"id": 936}, "assignee": {"id": 1007}}, "job": {"id": 339, "assignee": {"id": 1199}}, "issue": {"id": 362, "owner": {"id": 1280}, "assignee": {"id": 1395}}, "organization": {"id": 165}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 381, "owner": {"id": 603}, "assignee": {"id": 572}, "project": {"id": 375, "owner": {"id": 773}, "assignee": {"id": 891}}, "task": {"id": 326, "owner": {"id": 977}, "assignee": {"id": 1043}}, "job": {"id": 384, "assignee": {"id": 1151}}, "issue": {"id": 381, "owner": {"id": 1284}, "assignee": {"id": 1340}}, "organization": {"id": 1492}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 395, "owner": {"id": 656}, "assignee": {"id": 529}, "project": {"id": 318, "owner": {"id": 761}, "assignee": {"id": 821}}, "task": {"id": 330, "owner": {"id": 999}, "assignee": {"id": 1042}}, "job": {"id": 303, "assignee": {"id": 1147}}, "issue": {"id": 379, "owner": {"id": 1201}, "assignee": {"id": 1312}}, "organization": {"id": 1409}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 681}, "assignee": {"id": 516}, "project": {"id": 310, "owner": {"id": 787}, "assignee": {"id": 898}}, "task": {"id": 303, "owner": {"id": 907}, "assignee": {"id": 1021}}, "job": {"id": 361, "assignee": {"id": 1124}}, "issue": {"id": 339, "owner": {"id": 1257}, "assignee": {"id": 1309}}, "organization": {"id": 187}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 388, "owner": {"id": 676}, "assignee": {"id": 501}, "project": {"id": 308, "owner": {"id": 779}, "assignee": {"id": 819}}, "task": {"id": 377, "owner": {"id": 987}, "assignee": {"id": 1045}}, "job": {"id": 368, "assignee": {"id": 1157}}, "issue": {"id": 316, "owner": {"id": 1214}, "assignee": {"id": 1341}}, "organization": {"id": 100}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 685}, "assignee": {"id": 555}, "project": {"id": 319, "owner": {"id": 797}, "assignee": {"id": 826}}, "task": {"id": 301, "owner": {"id": 998}, "assignee": {"id": 1070}}, "job": {"id": 361, "assignee": {"id": 1145}}, "issue": {"id": 323, "owner": {"id": 1255}, "assignee": {"id": 1358}}, "organization": {"id": 1414}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 380, "owner": {"id": 673}, "assignee": {"id": 558}, "project": {"id": 310, "owner": {"id": 753}, "assignee": {"id": 834}}, "task": {"id": 357, "owner": {"id": 997}, "assignee": {"id": 1066}}, "job": {"id": 345, "assignee": {"id": 1137}}, "issue": {"id": 329, "owner": {"id": 1218}, "assignee": {"id": 1331}}, "organization": {"id": 1484}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 337, "owner": {"id": 656}, "assignee": {"id": 562}, "project": {"id": 388, "owner": {"id": 793}, "assignee": {"id": 881}}, "task": {"id": 372, "owner": {"id": 994}, "assignee": {"id": 1000}}, "job": {"id": 304, "assignee": {"id": 1110}}, "issue": {"id": 383, "owner": {"id": 1265}, "assignee": {"id": 1385}}, "organization": {"id": 149}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 669}, "assignee": {"id": 529}, "project": {"id": 351, "owner": {"id": 788}, "assignee": {"id": 857}}, "task": {"id": 381, "owner": {"id": 997}, "assignee": {"id": 1024}}, "job": {"id": 361, "assignee": {"id": 1170}}, "issue": {"id": 390, "owner": {"id": 1258}, "assignee": {"id": 1352}}, "organization": {"id": 110}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 359, "owner": {"id": 684}, "assignee": {"id": 533}, "project": {"id": 338, "owner": {"id": 782}, "assignee": {"id": 891}}, "task": {"id": 324, "owner": {"id": 905}, "assignee": {"id": 1010}}, "job": {"id": 300, "assignee": {"id": 1111}}, "issue": {"id": 308, "owner": {"id": 1223}, "assignee": {"id": 1327}}, "organization": {"id": 1409}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 61, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 653}, "assignee": {"id": 553}, "project": {"id": 309, "owner": {"id": 753}, "assignee": {"id": 816}}, "task": {"id": 398, "owner": {"id": 965}, "assignee": {"id": 1093}}, "job": {"id": 366, "assignee": {"id": 1181}}, "issue": {"id": 347, "owner": {"id": 1276}, "assignee": {"id": 1380}}, "organization": {"id": 1440}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "owner": {"id": 601}, "assignee": {"id": 594}, "project": {"id": 361, "owner": {"id": 734}, "assignee": {"id": 859}}, "task": {"id": 385, "owner": {"id": 903}, "assignee": {"id": 1032}}, "job": {"id": 354, "assignee": {"id": 1131}}, "issue": {"id": 379, "owner": {"id": 1241}, "assignee": {"id": 1315}}, "organization": {"id": 106}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 301, "owner": {"id": 645}, "assignee": {"id": 575}, "project": {"id": 325, "owner": {"id": 707}, "assignee": {"id": 890}}, "task": {"id": 315, "owner": {"id": 913}, "assignee": {"id": 1088}}, "job": {"id": 351, "assignee": {"id": 1199}}, "issue": {"id": 348, "owner": {"id": 1269}, "assignee": {"id": 1345}}, "organization": {"id": 175}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "owner": {"id": 626}, "assignee": {"id": 506}, "project": {"id": 345, "owner": {"id": 743}, "assignee": {"id": 806}}, "task": {"id": 377, "owner": {"id": 933}, "assignee": {"id": 1009}}, "job": {"id": 334, "assignee": {"id": 1163}}, "issue": {"id": 346, "owner": {"id": 1223}, "assignee": {"id": 1396}}, "organization": {"id": 1426}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "owner": {"id": 662}, "assignee": {"id": 552}, "project": {"id": 356, "owner": {"id": 747}, "assignee": {"id": 839}}, "task": {"id": 392, "owner": {"id": 901}, "assignee": {"id": 1003}}, "job": {"id": 317, "assignee": {"id": 1107}}, "issue": {"id": 329, "owner": {"id": 1206}, "assignee": {"id": 1364}}, "organization": {"id": 1457}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "owner": {"id": 670}, "assignee": {"id": 558}, "project": {"id": 335, "owner": {"id": 729}, "assignee": {"id": 860}}, "task": {"id": 314, "owner": {"id": 941}, "assignee": {"id": 1009}}, "job": {"id": 384, "assignee": {"id": 1104}}, "issue": {"id": 324, "owner": {"id": 1279}, "assignee": {"id": 1373}}, "organization": {"id": 160}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "owner": {"id": 695}, "assignee": {"id": 500}, "project": {"id": 373, "owner": {"id": 727}, "assignee": {"id": 863}}, "task": {"id": 323, "owner": {"id": 910}, "assignee": {"id": 1046}}, "job": {"id": 306, "assignee": {"id": 1148}}, "issue": {"id": 313, "owner": {"id": 1274}, "assignee": {"id": 1315}}, "organization": {"id": 198}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "owner": {"id": 658}, "assignee": {"id": 518}, "project": {"id": 341, "owner": {"id": 767}, "assignee": {"id": 887}}, "task": {"id": 363, "owner": {"id": 928}, "assignee": {"id": 1088}}, "job": {"id": 399, "assignee": {"id": 1130}}, "issue": {"id": 315, "owner": {"id": 1275}, "assignee": {"id": 1330}}, "organization": {"id": 1480}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "owner": {"id": 698}, "assignee": {"id": 516}, "project": {"id": 314, "owner": {"id": 756}, "assignee": {"id": 809}}, "task": {"id": 329, "owner": {"id": 958}, "assignee": {"id": 1031}}, "job": {"id": 310, "assignee": {"id": 1144}}, "issue": {"id": 373, "owner": {"id": 1299}, "assignee": {"id": 1328}}, "organization": {"id": 1479}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 310, "owner": {"id": 670}, "assignee": {"id": 599}, "project": {"id": 392, "owner": {"id": 715}, "assignee": {"id": 803}}, "task": {"id": 308, "owner": {"id": 911}, "assignee": {"id": 1093}}, "job": {"id": 391, "assignee": {"id": 1199}}, "issue": {"id": 383, "owner": {"id": 1244}, "assignee": {"id": 1363}}, "organization": {"id": 165}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 619}, "assignee": {"id": 597}, "project": {"id": 323, "owner": {"id": 754}, "assignee": {"id": 831}}, "task": {"id": 359, "owner": {"id": 975}, "assignee": {"id": 1055}}, "job": {"id": 319, "assignee": {"id": 1195}}, "issue": {"id": 341, "owner": {"id": 1206}, "assignee": {"id": 1348}}, "organization": {"id": 114}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 370, "owner": {"id": 612}, "assignee": {"id": 529}, "project": {"id": 345, "owner": {"id": 728}, "assignee": {"id": 803}}, "task": {"id": 347, "owner": {"id": 985}, "assignee": {"id": 1018}}, "job": {"id": 348, "assignee": {"id": 1192}}, "issue": {"id": 387, "owner": {"id": 1223}, "assignee": {"id": 1371}}, "organization": {"id": 1458}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 642}, "assignee": {"id": 515}, "project": {"id": 392, "owner": {"id": 734}, "assignee": {"id": 835}}, "task": {"id": 334, "owner": {"id": 964}, "assignee": {"id": 1074}}, "job": {"id": 346, "assignee": {"id": 1113}}, "issue": {"id": 396, "owner": {"id": 1296}, "assignee": {"id": 1362}}, "organization": {"id": 1432}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 356, "owner": {"id": 695}, "assignee": {"id": 500}, "project": {"id": 340, "owner": {"id": 742}, "assignee": {"id": 829}}, "task": {"id": 355, "owner": {"id": 950}, "assignee": {"id": 1020}}, "job": {"id": 321, "assignee": {"id": 1199}}, "issue": {"id": 363, "owner": {"id": 1257}, "assignee": {"id": 1370}}, "organization": {"id": 180}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 609}, "assignee": {"id": 520}, "project": {"id": 359, "owner": {"id": 795}, "assignee": {"id": 892}}, "task": {"id": 322, "owner": {"id": 937}, "assignee": {"id": 1057}}, "job": {"id": 377, "assignee": {"id": 1185}}, "issue": {"id": 339, "owner": {"id": 1258}, "assignee": {"id": 1324}}, "organization": {"id": 132}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 678}, "assignee": {"id": 530}, "project": {"id": 380, "owner": {"id": 707}, "assignee": {"id": 814}}, "task": {"id": 306, "owner": {"id": 904}, "assignee": {"id": 1071}}, "job": {"id": 339, "assignee": {"id": 1141}}, "issue": {"id": 384, "owner": {"id": 1230}, "assignee": {"id": 1335}}, "organization": {"id": 1407}}} -} - -test_scope_CREATE_IN_ISSUE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@issue", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 654}, "assignee": {"id": 502}, "project": {"id": 375, "owner": {"id": 717}, "assignee": {"id": 893}}, "task": {"id": 383, "owner": {"id": 914}, "assignee": {"id": 1070}}, "job": {"id": 372, "assignee": {"id": 1154}}, "issue": {"id": 397, "owner": {"id": 1206}, "assignee": {"id": 1395}}, "organization": {"id": 1476}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": null}, "resource": {"id": 332, "owner": {"id": 654}, "assignee": {"id": 500}, "project": {"id": 341, "owner": {"id": 68}, "assignee": {"id": 805}}, "task": {"id": 348, "owner": {"id": 997}, "assignee": {"id": 1097}}, "job": {"id": 333, "assignee": {"id": 1183}}, "issue": {"id": 331, "owner": {"id": 1249}, "assignee": {"id": 1303}}, "organization": {"id": 1434}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": null}, "resource": {"id": 386, "owner": {"id": 618}, "assignee": {"id": 553}, "project": {"id": 345, "owner": {"id": 59}, "assignee": {"id": 889}}, "task": {"id": 359, "owner": {"id": 908}, "assignee": {"id": 1071}}, "job": {"id": 338, "assignee": {"id": 1183}}, "issue": {"id": 388, "owner": {"id": 1220}, "assignee": {"id": 1327}}, "organization": {"id": 1460}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 71, "privilege": "user"}, "organization": null}, "resource": {"id": 393, "owner": {"id": 643}, "assignee": {"id": 585}, "project": {"id": 334, "owner": {"id": 71}, "assignee": {"id": 858}}, "task": {"id": 359, "owner": {"id": 906}, "assignee": {"id": 1000}}, "job": {"id": 362, "assignee": {"id": 1170}}, "issue": {"id": 397, "owner": {"id": 1294}, "assignee": {"id": 1344}}, "organization": {"id": 1495}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": null}, "resource": {"id": 388, "owner": {"id": 683}, "assignee": {"id": 541}, "project": {"id": 375, "owner": {"id": 20}, "assignee": {"id": 814}}, "task": {"id": 346, "owner": {"id": 908}, "assignee": {"id": 1006}}, "job": {"id": 361, "assignee": {"id": 1151}}, "issue": {"id": 309, "owner": {"id": 1228}, "assignee": {"id": 1338}}, "organization": {"id": 1497}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": null}, "resource": {"id": 383, "owner": {"id": 604}, "assignee": {"id": 594}, "project": {"id": 373, "owner": {"id": 62}, "assignee": {"id": 841}}, "task": {"id": 349, "owner": {"id": 960}, "assignee": {"id": 1020}}, "job": {"id": 331, "assignee": {"id": 1189}}, "issue": {"id": 328, "owner": {"id": 1281}, "assignee": {"id": 1350}}, "organization": {"id": 1420}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": null}, "resource": {"id": 346, "owner": {"id": 602}, "assignee": {"id": 545}, "project": {"id": 364, "owner": {"id": 755}, "assignee": {"id": 82}}, "task": {"id": 326, "owner": {"id": 987}, "assignee": {"id": 1037}}, "job": {"id": 365, "assignee": {"id": 1106}}, "issue": {"id": 373, "owner": {"id": 1272}, "assignee": {"id": 1389}}, "organization": {"id": 1445}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": null}, "resource": {"id": 387, "owner": {"id": 616}, "assignee": {"id": 534}, "project": {"id": 318, "owner": {"id": 737}, "assignee": {"id": 51}}, "task": {"id": 335, "owner": {"id": 974}, "assignee": {"id": 1093}}, "job": {"id": 312, "assignee": {"id": 1187}}, "issue": {"id": 387, "owner": {"id": 1281}, "assignee": {"id": 1396}}, "organization": {"id": 1439}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": null}, "resource": {"id": 350, "owner": {"id": 645}, "assignee": {"id": 596}, "project": {"id": 309, "owner": {"id": 733}, "assignee": {"id": 11}}, "task": {"id": 377, "owner": {"id": 967}, "assignee": {"id": 1032}}, "job": {"id": 347, "assignee": {"id": 1109}}, "issue": {"id": 381, "owner": {"id": 1288}, "assignee": {"id": 1303}}, "organization": {"id": 1422}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": null}, "resource": {"id": 349, "owner": {"id": 671}, "assignee": {"id": 546}, "project": {"id": 330, "owner": {"id": 740}, "assignee": {"id": 96}}, "task": {"id": 399, "owner": {"id": 911}, "assignee": {"id": 1019}}, "job": {"id": 338, "assignee": {"id": 1137}}, "issue": {"id": 335, "owner": {"id": 1220}, "assignee": {"id": 1358}}, "organization": {"id": 1479}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": null}, "resource": {"id": 381, "owner": {"id": 609}, "assignee": {"id": 513}, "project": {"id": 377, "owner": {"id": 769}, "assignee": {"id": 15}}, "task": {"id": 345, "owner": {"id": 923}, "assignee": {"id": 1048}}, "job": {"id": 304, "assignee": {"id": 1115}}, "issue": {"id": 378, "owner": {"id": 1299}, "assignee": {"id": 1308}}, "organization": {"id": 1408}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": null}, "resource": {"id": 300, "owner": {"id": 672}, "assignee": {"id": 580}, "project": {"id": 387, "owner": {"id": 719}, "assignee": {"id": 834}}, "task": {"id": 327, "owner": {"id": 14}, "assignee": {"id": 1067}}, "job": {"id": 388, "assignee": {"id": 1110}}, "issue": {"id": 396, "owner": {"id": 1259}, "assignee": {"id": 1354}}, "organization": {"id": 1479}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": null}, "resource": {"id": 390, "owner": {"id": 682}, "assignee": {"id": 515}, "project": {"id": 318, "owner": {"id": 759}, "assignee": {"id": 830}}, "task": {"id": 368, "owner": {"id": 98}, "assignee": {"id": 1010}}, "job": {"id": 348, "assignee": {"id": 1136}}, "issue": {"id": 381, "owner": {"id": 1245}, "assignee": {"id": 1354}}, "organization": {"id": 1431}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": null}, "resource": {"id": 372, "owner": {"id": 621}, "assignee": {"id": 593}, "project": {"id": 335, "owner": {"id": 708}, "assignee": {"id": 823}}, "task": {"id": 332, "owner": {"id": 80}, "assignee": {"id": 1020}}, "job": {"id": 334, "assignee": {"id": 1168}}, "issue": {"id": 341, "owner": {"id": 1270}, "assignee": {"id": 1315}}, "organization": {"id": 1407}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": null}, "resource": {"id": 367, "owner": {"id": 630}, "assignee": {"id": 517}, "project": {"id": 317, "owner": {"id": 718}, "assignee": {"id": 805}}, "task": {"id": 394, "owner": {"id": 90}, "assignee": {"id": 1043}}, "job": {"id": 368, "assignee": {"id": 1188}}, "issue": {"id": 337, "owner": {"id": 1260}, "assignee": {"id": 1302}}, "organization": {"id": 1406}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": null}, "resource": {"id": 347, "owner": {"id": 608}, "assignee": {"id": 523}, "project": {"id": 372, "owner": {"id": 787}, "assignee": {"id": 893}}, "task": {"id": 340, "owner": {"id": 89}, "assignee": {"id": 1021}}, "job": {"id": 312, "assignee": {"id": 1150}}, "issue": {"id": 334, "owner": {"id": 1201}, "assignee": {"id": 1362}}, "organization": {"id": 1437}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": null}, "resource": {"id": 363, "owner": {"id": 653}, "assignee": {"id": 545}, "project": {"id": 301, "owner": {"id": 721}, "assignee": {"id": 887}}, "task": {"id": 385, "owner": {"id": 75}, "assignee": {"id": 1074}}, "job": {"id": 362, "assignee": {"id": 1166}}, "issue": {"id": 369, "owner": {"id": 1268}, "assignee": {"id": 1330}}, "organization": {"id": 1446}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": null}, "resource": {"id": 338, "owner": {"id": 600}, "assignee": {"id": 529}, "project": {"id": 327, "owner": {"id": 771}, "assignee": {"id": 851}}, "task": {"id": 354, "owner": {"id": 19}, "assignee": {"id": 1057}}, "job": {"id": 340, "assignee": {"id": 1136}}, "issue": {"id": 387, "owner": {"id": 1283}, "assignee": {"id": 1307}}, "organization": {"id": 1440}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": null}, "resource": {"id": 311, "owner": {"id": 632}, "assignee": {"id": 510}, "project": {"id": 364, "owner": {"id": 760}, "assignee": {"id": 866}}, "task": {"id": 373, "owner": {"id": 15}, "assignee": {"id": 1002}}, "job": {"id": 382, "assignee": {"id": 1128}}, "issue": {"id": 304, "owner": {"id": 1215}, "assignee": {"id": 1396}}, "organization": {"id": 1474}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": null}, "resource": {"id": 371, "owner": {"id": 686}, "assignee": {"id": 545}, "project": {"id": 353, "owner": {"id": 740}, "assignee": {"id": 850}}, "task": {"id": 397, "owner": {"id": 39}, "assignee": {"id": 1083}}, "job": {"id": 347, "assignee": {"id": 1166}}, "issue": {"id": 304, "owner": {"id": 1294}, "assignee": {"id": 1339}}, "organization": {"id": 1460}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": null}, "resource": {"id": 334, "owner": {"id": 625}, "assignee": {"id": 591}, "project": {"id": 323, "owner": {"id": 740}, "assignee": {"id": 891}}, "task": {"id": 396, "owner": {"id": 52}, "assignee": {"id": 1066}}, "job": {"id": 319, "assignee": {"id": 1186}}, "issue": {"id": 346, "owner": {"id": 1217}, "assignee": {"id": 1353}}, "organization": {"id": 1446}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": null}, "resource": {"id": 323, "owner": {"id": 639}, "assignee": {"id": 575}, "project": {"id": 358, "owner": {"id": 783}, "assignee": {"id": 803}}, "task": {"id": 340, "owner": {"id": 962}, "assignee": {"id": 90}}, "job": {"id": 391, "assignee": {"id": 1109}}, "issue": {"id": 355, "owner": {"id": 1277}, "assignee": {"id": 1362}}, "organization": {"id": 1482}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": null}, "resource": {"id": 303, "owner": {"id": 643}, "assignee": {"id": 592}, "project": {"id": 398, "owner": {"id": 701}, "assignee": {"id": 869}}, "task": {"id": 301, "owner": {"id": 959}, "assignee": {"id": 40}}, "job": {"id": 376, "assignee": {"id": 1198}}, "issue": {"id": 351, "owner": {"id": 1255}, "assignee": {"id": 1359}}, "organization": {"id": 1436}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": null}, "resource": {"id": 356, "owner": {"id": 642}, "assignee": {"id": 507}, "project": {"id": 300, "owner": {"id": 724}, "assignee": {"id": 882}}, "task": {"id": 332, "owner": {"id": 962}, "assignee": {"id": 51}}, "job": {"id": 345, "assignee": {"id": 1160}}, "issue": {"id": 314, "owner": {"id": 1272}, "assignee": {"id": 1302}}, "organization": {"id": 1458}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": null}, "resource": {"id": 396, "owner": {"id": 685}, "assignee": {"id": 517}, "project": {"id": 329, "owner": {"id": 735}, "assignee": {"id": 876}}, "task": {"id": 312, "owner": {"id": 988}, "assignee": {"id": 3}}, "job": {"id": 331, "assignee": {"id": 1149}}, "issue": {"id": 392, "owner": {"id": 1212}, "assignee": {"id": 1350}}, "organization": {"id": 1437}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": null}, "resource": {"id": 372, "owner": {"id": 687}, "assignee": {"id": 556}, "project": {"id": 367, "owner": {"id": 773}, "assignee": {"id": 875}}, "task": {"id": 370, "owner": {"id": 923}, "assignee": {"id": 4}}, "job": {"id": 366, "assignee": {"id": 1132}}, "issue": {"id": 363, "owner": {"id": 1220}, "assignee": {"id": 1308}}, "organization": {"id": 1408}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": null}, "resource": {"id": 337, "owner": {"id": 692}, "assignee": {"id": 563}, "project": {"id": 340, "owner": {"id": 786}, "assignee": {"id": 864}}, "task": {"id": 357, "owner": {"id": 970}, "assignee": {"id": 28}}, "job": {"id": 352, "assignee": {"id": 1160}}, "issue": {"id": 337, "owner": {"id": 1217}, "assignee": {"id": 1388}}, "organization": {"id": 1460}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": null}, "resource": {"id": 376, "owner": {"id": 690}, "assignee": {"id": 599}, "project": {"id": 367, "owner": {"id": 711}, "assignee": {"id": 842}}, "task": {"id": 379, "owner": {"id": 977}, "assignee": {"id": 27}}, "job": {"id": 302, "assignee": {"id": 1101}}, "issue": {"id": 364, "owner": {"id": 1264}, "assignee": {"id": 1302}}, "organization": {"id": 1401}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": null}, "resource": {"id": 366, "owner": {"id": 690}, "assignee": {"id": 566}, "project": {"id": 382, "owner": {"id": 776}, "assignee": {"id": 898}}, "task": {"id": 391, "owner": {"id": 915}, "assignee": {"id": 38}}, "job": {"id": 348, "assignee": {"id": 1143}}, "issue": {"id": 366, "owner": {"id": 1287}, "assignee": {"id": 1388}}, "organization": {"id": 1480}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": null}, "resource": {"id": 374, "owner": {"id": 629}, "assignee": {"id": 591}, "project": {"id": 362, "owner": {"id": 733}, "assignee": {"id": 815}}, "task": {"id": 343, "owner": {"id": 982}, "assignee": {"id": 54}}, "job": {"id": 319, "assignee": {"id": 1135}}, "issue": {"id": 386, "owner": {"id": 1281}, "assignee": {"id": 1395}}, "organization": {"id": 1431}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": null}, "resource": {"id": 368, "owner": {"id": 625}, "assignee": {"id": 529}, "project": {"id": 305, "owner": {"id": 728}, "assignee": {"id": 812}}, "task": {"id": 356, "owner": {"id": 970}, "assignee": {"id": 87}}, "job": {"id": 384, "assignee": {"id": 1133}}, "issue": {"id": 372, "owner": {"id": 1296}, "assignee": {"id": 1353}}, "organization": {"id": 1462}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": null}, "resource": {"id": 316, "owner": {"id": 640}, "assignee": {"id": 520}, "project": {"id": 399, "owner": {"id": 796}, "assignee": {"id": 864}}, "task": {"id": 393, "owner": {"id": 903}, "assignee": {"id": 1086}}, "job": {"id": 382, "assignee": {"id": 55}}, "issue": {"id": 365, "owner": {"id": 1213}, "assignee": {"id": 1348}}, "organization": {"id": 1448}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": null}, "resource": {"id": 384, "owner": {"id": 624}, "assignee": {"id": 575}, "project": {"id": 389, "owner": {"id": 708}, "assignee": {"id": 837}}, "task": {"id": 398, "owner": {"id": 907}, "assignee": {"id": 1067}}, "job": {"id": 341, "assignee": {"id": 41}}, "issue": {"id": 321, "owner": {"id": 1257}, "assignee": {"id": 1399}}, "organization": {"id": 1499}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": null}, "resource": {"id": 372, "owner": {"id": 649}, "assignee": {"id": 536}, "project": {"id": 320, "owner": {"id": 766}, "assignee": {"id": 854}}, "task": {"id": 358, "owner": {"id": 978}, "assignee": {"id": 1054}}, "job": {"id": 352, "assignee": {"id": 23}}, "issue": {"id": 332, "owner": {"id": 1278}, "assignee": {"id": 1346}}, "organization": {"id": 1418}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": null}, "resource": {"id": 397, "owner": {"id": 608}, "assignee": {"id": 523}, "project": {"id": 375, "owner": {"id": 767}, "assignee": {"id": 816}}, "task": {"id": 324, "owner": {"id": 938}, "assignee": {"id": 1064}}, "job": {"id": 389, "assignee": {"id": 51}}, "issue": {"id": 349, "owner": {"id": 1297}, "assignee": {"id": 1349}}, "organization": {"id": 1419}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": null}, "resource": {"id": 392, "owner": {"id": 689}, "assignee": {"id": 503}, "project": {"id": 398, "owner": {"id": 735}, "assignee": {"id": 881}}, "task": {"id": 317, "owner": {"id": 963}, "assignee": {"id": 1017}}, "job": {"id": 321, "assignee": {"id": 52}}, "issue": {"id": 327, "owner": {"id": 1222}, "assignee": {"id": 1302}}, "organization": {"id": 1424}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": null}, "resource": {"id": 344, "owner": {"id": 671}, "assignee": {"id": 573}, "project": {"id": 392, "owner": {"id": 729}, "assignee": {"id": 874}}, "task": {"id": 306, "owner": {"id": 959}, "assignee": {"id": 1065}}, "job": {"id": 348, "assignee": {"id": 45}}, "issue": {"id": 337, "owner": {"id": 1286}, "assignee": {"id": 1374}}, "organization": {"id": 1450}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": null}, "resource": {"id": 351, "owner": {"id": 616}, "assignee": {"id": 558}, "project": {"id": 341, "owner": {"id": 727}, "assignee": {"id": 887}}, "task": {"id": 396, "owner": {"id": 935}, "assignee": {"id": 1030}}, "job": {"id": 364, "assignee": {"id": 87}}, "issue": {"id": 329, "owner": {"id": 1284}, "assignee": {"id": 1344}}, "organization": {"id": 1420}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": null}, "resource": {"id": 394, "owner": {"id": 621}, "assignee": {"id": 599}, "project": {"id": 302, "owner": {"id": 792}, "assignee": {"id": 847}}, "task": {"id": 394, "owner": {"id": 979}, "assignee": {"id": 1068}}, "job": {"id": 355, "assignee": {"id": 80}}, "issue": {"id": 342, "owner": {"id": 1292}, "assignee": {"id": 1333}}, "organization": {"id": 1497}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": null}, "resource": {"id": 384, "owner": {"id": 678}, "assignee": {"id": 597}, "project": {"id": 333, "owner": {"id": 791}, "assignee": {"id": 853}}, "task": {"id": 317, "owner": {"id": 932}, "assignee": {"id": 1090}}, "job": {"id": 353, "assignee": {"id": 59}}, "issue": {"id": 309, "owner": {"id": 1257}, "assignee": {"id": 1348}}, "organization": {"id": 1497}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": null}, "resource": {"id": 303, "owner": {"id": 696}, "assignee": {"id": 545}, "project": {"id": 362, "owner": {"id": 738}, "assignee": {"id": 859}}, "task": {"id": 321, "owner": {"id": 978}, "assignee": {"id": 1097}}, "job": {"id": 343, "assignee": {"id": 59}}, "issue": {"id": 343, "owner": {"id": 1298}, "assignee": {"id": 1382}}, "organization": {"id": 1403}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_ISSUE_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": null}, "resource": {"id": 306, "owner": {"id": 636}, "assignee": {"id": 566}, "project": {"id": 370, "owner": {"id": 700}, "assignee": {"id": 855}}, "task": {"id": 329, "owner": {"id": 932}, "assignee": {"id": 1040}}, "job": {"id": 304, "assignee": {"id": 1153}}, "issue": {"id": 387, "owner": {"id": 39}, "assignee": {"id": 1361}}, "organization": {"id": 1437}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_ISSUE_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": null}, "resource": {"id": 355, "owner": {"id": 601}, "assignee": {"id": 571}, "project": {"id": 388, "owner": {"id": 765}, "assignee": {"id": 868}}, "task": {"id": 308, "owner": {"id": 905}, "assignee": {"id": 1042}}, "job": {"id": 344, "assignee": {"id": 1115}}, "issue": {"id": 383, "owner": {"id": 73}, "assignee": {"id": 1399}}, "organization": {"id": 1497}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": null}, "resource": {"id": 344, "owner": {"id": 628}, "assignee": {"id": 520}, "project": {"id": 380, "owner": {"id": 791}, "assignee": {"id": 873}}, "task": {"id": 342, "owner": {"id": 961}, "assignee": {"id": 1082}}, "job": {"id": 309, "assignee": {"id": 1144}}, "issue": {"id": 372, "owner": {"id": 45}, "assignee": {"id": 1380}}, "organization": {"id": 1409}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": null}, "resource": {"id": 314, "owner": {"id": 659}, "assignee": {"id": 580}, "project": {"id": 397, "owner": {"id": 734}, "assignee": {"id": 866}}, "task": {"id": 335, "owner": {"id": 970}, "assignee": {"id": 1004}}, "job": {"id": 343, "assignee": {"id": 1146}}, "issue": {"id": 336, "owner": {"id": 99}, "assignee": {"id": 1354}}, "organization": {"id": 1461}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_ISSUE_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": null}, "resource": {"id": 374, "owner": {"id": 605}, "assignee": {"id": 599}, "project": {"id": 319, "owner": {"id": 712}, "assignee": {"id": 834}}, "task": {"id": 314, "owner": {"id": 924}, "assignee": {"id": 1059}}, "job": {"id": 323, "assignee": {"id": 1185}}, "issue": {"id": 311, "owner": {"id": 28}, "assignee": {"id": 1378}}, "organization": {"id": 1486}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_ISSUE_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": null}, "resource": {"id": 387, "owner": {"id": 681}, "assignee": {"id": 524}, "project": {"id": 391, "owner": {"id": 731}, "assignee": {"id": 869}}, "task": {"id": 393, "owner": {"id": 916}, "assignee": {"id": 1056}}, "job": {"id": 356, "assignee": {"id": 1108}}, "issue": {"id": 397, "owner": {"id": 29}, "assignee": {"id": 1334}}, "organization": {"id": 1422}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_ISSUE_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": null}, "resource": {"id": 365, "owner": {"id": 626}, "assignee": {"id": 524}, "project": {"id": 368, "owner": {"id": 774}, "assignee": {"id": 889}}, "task": {"id": 317, "owner": {"id": 978}, "assignee": {"id": 1046}}, "job": {"id": 346, "assignee": {"id": 1197}}, "issue": {"id": 358, "owner": {"id": 74}, "assignee": {"id": 1380}}, "organization": {"id": 1411}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_ISSUE_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": null}, "resource": {"id": 313, "owner": {"id": 629}, "assignee": {"id": 545}, "project": {"id": 382, "owner": {"id": 735}, "assignee": {"id": 887}}, "task": {"id": 300, "owner": {"id": 906}, "assignee": {"id": 1056}}, "job": {"id": 337, "assignee": {"id": 1109}}, "issue": {"id": 377, "owner": {"id": 25}, "assignee": {"id": 1377}}, "organization": {"id": 1498}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_ISSUE_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": null}, "resource": {"id": 331, "owner": {"id": 635}, "assignee": {"id": 573}, "project": {"id": 365, "owner": {"id": 729}, "assignee": {"id": 872}}, "task": {"id": 376, "owner": {"id": 949}, "assignee": {"id": 1003}}, "job": {"id": 387, "assignee": {"id": 1178}}, "issue": {"id": 337, "owner": {"id": 37}, "assignee": {"id": 1371}}, "organization": {"id": 1402}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_ISSUE_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": null}, "resource": {"id": 332, "owner": {"id": 629}, "assignee": {"id": 547}, "project": {"id": 311, "owner": {"id": 721}, "assignee": {"id": 840}}, "task": {"id": 328, "owner": {"id": 991}, "assignee": {"id": 1032}}, "job": {"id": 341, "assignee": {"id": 1143}}, "issue": {"id": 362, "owner": {"id": 25}, "assignee": {"id": 1307}}, "organization": {"id": 1469}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": null}, "resource": {"id": 370, "owner": {"id": 619}, "assignee": {"id": 521}, "project": {"id": 342, "owner": {"id": 766}, "assignee": {"id": 846}}, "task": {"id": 308, "owner": {"id": 920}, "assignee": {"id": 1007}}, "job": {"id": 359, "assignee": {"id": 1194}}, "issue": {"id": 306, "owner": {"id": 1224}, "assignee": {"id": 39}}, "organization": {"id": 1428}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": null}, "resource": {"id": 357, "owner": {"id": 608}, "assignee": {"id": 540}, "project": {"id": 310, "owner": {"id": 700}, "assignee": {"id": 807}}, "task": {"id": 350, "owner": {"id": 967}, "assignee": {"id": 1031}}, "job": {"id": 359, "assignee": {"id": 1130}}, "issue": {"id": 317, "owner": {"id": 1293}, "assignee": {"id": 44}}, "organization": {"id": 1427}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": null}, "resource": {"id": 362, "owner": {"id": 684}, "assignee": {"id": 524}, "project": {"id": 319, "owner": {"id": 759}, "assignee": {"id": 859}}, "task": {"id": 370, "owner": {"id": 948}, "assignee": {"id": 1048}}, "job": {"id": 337, "assignee": {"id": 1155}}, "issue": {"id": 359, "owner": {"id": 1213}, "assignee": {"id": 37}}, "organization": {"id": 1434}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": null}, "resource": {"id": 347, "owner": {"id": 617}, "assignee": {"id": 523}, "project": {"id": 387, "owner": {"id": 778}, "assignee": {"id": 811}}, "task": {"id": 384, "owner": {"id": 910}, "assignee": {"id": 1040}}, "job": {"id": 324, "assignee": {"id": 1171}}, "issue": {"id": 326, "owner": {"id": 1284}, "assignee": {"id": 29}}, "organization": {"id": 1456}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": null}, "resource": {"id": 388, "owner": {"id": 607}, "assignee": {"id": 521}, "project": {"id": 353, "owner": {"id": 790}, "assignee": {"id": 887}}, "task": {"id": 317, "owner": {"id": 938}, "assignee": {"id": 1024}}, "job": {"id": 326, "assignee": {"id": 1184}}, "issue": {"id": 358, "owner": {"id": 1269}, "assignee": {"id": 63}}, "organization": {"id": 1481}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": null}, "resource": {"id": 392, "owner": {"id": 649}, "assignee": {"id": 572}, "project": {"id": 358, "owner": {"id": 775}, "assignee": {"id": 873}}, "task": {"id": 307, "owner": {"id": 996}, "assignee": {"id": 1074}}, "job": {"id": 377, "assignee": {"id": 1111}}, "issue": {"id": 310, "owner": {"id": 1260}, "assignee": {"id": 99}}, "organization": {"id": 1450}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": null}, "resource": {"id": 336, "owner": {"id": 663}, "assignee": {"id": 556}, "project": {"id": 312, "owner": {"id": 730}, "assignee": {"id": 847}}, "task": {"id": 381, "owner": {"id": 944}, "assignee": {"id": 1026}}, "job": {"id": 392, "assignee": {"id": 1137}}, "issue": {"id": 380, "owner": {"id": 1210}, "assignee": {"id": 39}}, "organization": {"id": 1455}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": null}, "resource": {"id": 341, "owner": {"id": 671}, "assignee": {"id": 599}, "project": {"id": 380, "owner": {"id": 737}, "assignee": {"id": 823}}, "task": {"id": 367, "owner": {"id": 938}, "assignee": {"id": 1059}}, "job": {"id": 340, "assignee": {"id": 1181}}, "issue": {"id": 338, "owner": {"id": 1238}, "assignee": {"id": 74}}, "organization": {"id": 1456}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": null}, "resource": {"id": 330, "owner": {"id": 621}, "assignee": {"id": 561}, "project": {"id": 326, "owner": {"id": 738}, "assignee": {"id": 887}}, "task": {"id": 350, "owner": {"id": 934}, "assignee": {"id": 1087}}, "job": {"id": 363, "assignee": {"id": 1177}}, "issue": {"id": 379, "owner": {"id": 1294}, "assignee": {"id": 74}}, "organization": {"id": 1477}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": null}, "resource": {"id": 397, "owner": {"id": 630}, "assignee": {"id": 593}, "project": {"id": 356, "owner": {"id": 728}, "assignee": {"id": 852}}, "task": {"id": 337, "owner": {"id": 988}, "assignee": {"id": 1045}}, "job": {"id": 314, "assignee": {"id": 1156}}, "issue": {"id": 388, "owner": {"id": 1236}, "assignee": {"id": 56}}, "organization": {"id": 1417}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 36, "privilege": "admin"}, "organization": null}, "resource": {"id": 341, "owner": {"id": 36}, "assignee": {"id": 586}, "project": {"id": 323, "owner": {"id": 712}, "assignee": {"id": 855}}, "task": {"id": 327, "owner": {"id": 970}, "assignee": {"id": 1075}}, "job": {"id": 363, "assignee": {"id": 1188}}, "issue": {"id": 359, "owner": {"id": 1253}, "assignee": {"id": 1346}}, "organization": {"id": 1467}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": null}, "resource": {"id": 394, "owner": {"id": 59}, "assignee": {"id": 536}, "project": {"id": 377, "owner": {"id": 785}, "assignee": {"id": 878}}, "task": {"id": 322, "owner": {"id": 932}, "assignee": {"id": 1089}}, "job": {"id": 320, "assignee": {"id": 1157}}, "issue": {"id": 339, "owner": {"id": 1282}, "assignee": {"id": 1359}}, "organization": {"id": 1498}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": null}, "resource": {"id": 302, "owner": {"id": 49}, "assignee": {"id": 503}, "project": {"id": 381, "owner": {"id": 747}, "assignee": {"id": 805}}, "task": {"id": 307, "owner": {"id": 987}, "assignee": {"id": 1029}}, "job": {"id": 389, "assignee": {"id": 1158}}, "issue": {"id": 355, "owner": {"id": 1218}, "assignee": {"id": 1364}}, "organization": {"id": 1407}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": null}, "resource": {"id": 367, "owner": {"id": 38}, "assignee": {"id": 585}, "project": {"id": 362, "owner": {"id": 758}, "assignee": {"id": 843}}, "task": {"id": 391, "owner": {"id": 989}, "assignee": {"id": 1081}}, "job": {"id": 350, "assignee": {"id": 1151}}, "issue": {"id": 312, "owner": {"id": 1240}, "assignee": {"id": 1346}}, "organization": {"id": 1474}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": null}, "resource": {"id": 386, "owner": {"id": 84}, "assignee": {"id": 517}, "project": {"id": 337, "owner": {"id": 720}, "assignee": {"id": 802}}, "task": {"id": 355, "owner": {"id": 957}, "assignee": {"id": 1002}}, "job": {"id": 316, "assignee": {"id": 1104}}, "issue": {"id": 385, "owner": {"id": 1210}, "assignee": {"id": 1357}}, "organization": {"id": 1442}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": null}, "resource": {"id": 350, "owner": {"id": 17}, "assignee": {"id": 580}, "project": {"id": 303, "owner": {"id": 716}, "assignee": {"id": 887}}, "task": {"id": 333, "owner": {"id": 945}, "assignee": {"id": 1047}}, "job": {"id": 399, "assignee": {"id": 1116}}, "issue": {"id": 329, "owner": {"id": 1222}, "assignee": {"id": 1348}}, "organization": {"id": 1415}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": null}, "resource": {"id": 312, "owner": {"id": 71}, "assignee": {"id": 511}, "project": {"id": 334, "owner": {"id": 799}, "assignee": {"id": 817}}, "task": {"id": 338, "owner": {"id": 939}, "assignee": {"id": 1004}}, "job": {"id": 399, "assignee": {"id": 1125}}, "issue": {"id": 360, "owner": {"id": 1241}, "assignee": {"id": 1365}}, "organization": {"id": 1494}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": null}, "resource": {"id": 354, "owner": {"id": 23}, "assignee": {"id": 586}, "project": {"id": 380, "owner": {"id": 757}, "assignee": {"id": 823}}, "task": {"id": 325, "owner": {"id": 907}, "assignee": {"id": 1041}}, "job": {"id": 337, "assignee": {"id": 1173}}, "issue": {"id": 334, "owner": {"id": 1281}, "assignee": {"id": 1301}}, "organization": {"id": 1425}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": null}, "resource": {"id": 372, "owner": {"id": 14}, "assignee": {"id": 517}, "project": {"id": 378, "owner": {"id": 707}, "assignee": {"id": 868}}, "task": {"id": 381, "owner": {"id": 952}, "assignee": {"id": 1009}}, "job": {"id": 367, "assignee": {"id": 1125}}, "issue": {"id": 319, "owner": {"id": 1231}, "assignee": {"id": 1313}}, "organization": {"id": 1475}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": null}, "resource": {"id": 369, "owner": {"id": 8}, "assignee": {"id": 584}, "project": {"id": 384, "owner": {"id": 747}, "assignee": {"id": 826}}, "task": {"id": 317, "owner": {"id": 967}, "assignee": {"id": 1067}}, "job": {"id": 391, "assignee": {"id": 1106}}, "issue": {"id": 348, "owner": {"id": 1270}, "assignee": {"id": 1300}}, "organization": {"id": 1406}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": null}, "resource": {"id": 324, "owner": {"id": 637}, "assignee": {"id": 585}, "project": {"id": 356, "owner": {"id": 736}, "assignee": {"id": 847}}, "task": {"id": 373, "owner": {"id": 913}, "assignee": {"id": 1021}}, "job": {"id": 332, "assignee": {"id": 1183}}, "issue": {"id": 327, "owner": {"id": 1232}, "assignee": {"id": 1315}}, "organization": {"id": 1426}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": null}, "resource": {"id": 382, "owner": {"id": 697}, "assignee": {"id": 501}, "project": {"id": 341, "owner": {"id": 730}, "assignee": {"id": 888}}, "task": {"id": 337, "owner": {"id": 917}, "assignee": {"id": 1051}}, "job": {"id": 341, "assignee": {"id": 1194}}, "issue": {"id": 374, "owner": {"id": 1214}, "assignee": {"id": 1330}}, "organization": {"id": 1492}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": null}, "resource": {"id": 344, "owner": {"id": 615}, "assignee": {"id": 573}, "project": {"id": 338, "owner": {"id": 732}, "assignee": {"id": 810}}, "task": {"id": 318, "owner": {"id": 976}, "assignee": {"id": 1015}}, "job": {"id": 367, "assignee": {"id": 1101}}, "issue": {"id": 386, "owner": {"id": 1290}, "assignee": {"id": 1366}}, "organization": {"id": 1410}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": null}, "resource": {"id": 396, "owner": {"id": 626}, "assignee": {"id": 523}, "project": {"id": 350, "owner": {"id": 745}, "assignee": {"id": 891}}, "task": {"id": 305, "owner": {"id": 924}, "assignee": {"id": 1082}}, "job": {"id": 330, "assignee": {"id": 1135}}, "issue": {"id": 372, "owner": {"id": 1236}, "assignee": {"id": 1347}}, "organization": {"id": 1456}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": null}, "resource": {"id": 344, "owner": {"id": 611}, "assignee": {"id": 506}, "project": {"id": 333, "owner": {"id": 795}, "assignee": {"id": 817}}, "task": {"id": 319, "owner": {"id": 991}, "assignee": {"id": 1075}}, "job": {"id": 348, "assignee": {"id": 1184}}, "issue": {"id": 376, "owner": {"id": 1281}, "assignee": {"id": 1338}}, "organization": {"id": 1445}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": null}, "resource": {"id": 352, "owner": {"id": 696}, "assignee": {"id": 568}, "project": {"id": 306, "owner": {"id": 797}, "assignee": {"id": 864}}, "task": {"id": 370, "owner": {"id": 915}, "assignee": {"id": 1074}}, "job": {"id": 333, "assignee": {"id": 1127}}, "issue": {"id": 347, "owner": {"id": 1273}, "assignee": {"id": 1374}}, "organization": {"id": 1425}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": null}, "resource": {"id": 353, "owner": {"id": 675}, "assignee": {"id": 540}, "project": {"id": 332, "owner": {"id": 778}, "assignee": {"id": 874}}, "task": {"id": 322, "owner": {"id": 947}, "assignee": {"id": 1057}}, "job": {"id": 394, "assignee": {"id": 1174}}, "issue": {"id": 396, "owner": {"id": 1236}, "assignee": {"id": 1347}}, "organization": {"id": 1497}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": null}, "resource": {"id": 360, "owner": {"id": 687}, "assignee": {"id": 581}, "project": {"id": 314, "owner": {"id": 786}, "assignee": {"id": 839}}, "task": {"id": 353, "owner": {"id": 957}, "assignee": {"id": 1035}}, "job": {"id": 304, "assignee": {"id": 1106}}, "issue": {"id": 317, "owner": {"id": 1209}, "assignee": {"id": 1356}}, "organization": {"id": 1490}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": null}, "resource": {"id": 313, "owner": {"id": 647}, "assignee": {"id": 582}, "project": {"id": 389, "owner": {"id": 770}, "assignee": {"id": 801}}, "task": {"id": 305, "owner": {"id": 907}, "assignee": {"id": 1061}}, "job": {"id": 333, "assignee": {"id": 1116}}, "issue": {"id": 368, "owner": {"id": 1288}, "assignee": {"id": 1321}}, "organization": {"id": 1402}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": null}, "resource": {"id": 308, "owner": {"id": 677}, "assignee": {"id": 534}, "project": {"id": 354, "owner": {"id": 797}, "assignee": {"id": 880}}, "task": {"id": 306, "owner": {"id": 947}, "assignee": {"id": 1004}}, "job": {"id": 360, "assignee": {"id": 1106}}, "issue": {"id": 318, "owner": {"id": 1231}, "assignee": {"id": 1346}}, "organization": {"id": 1463}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 699}, "assignee": {"id": 550}, "project": {"id": 384, "owner": {"id": 19}, "assignee": {"id": 876}}, "task": {"id": 309, "owner": {"id": 950}, "assignee": {"id": 1011}}, "job": {"id": 344, "assignee": {"id": 1167}}, "issue": {"id": 302, "owner": {"id": 1270}, "assignee": {"id": 1365}}, "organization": {"id": 138}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 322, "owner": {"id": 689}, "assignee": {"id": 534}, "project": {"id": 356, "owner": {"id": 65}, "assignee": {"id": 863}}, "task": {"id": 387, "owner": {"id": 935}, "assignee": {"id": 1043}}, "job": {"id": 367, "assignee": {"id": 1103}}, "issue": {"id": 386, "owner": {"id": 1286}, "assignee": {"id": 1397}}, "organization": {"id": 1429}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "owner": {"id": 661}, "assignee": {"id": 509}, "project": {"id": 389, "owner": {"id": 32}, "assignee": {"id": 878}}, "task": {"id": 371, "owner": {"id": 921}, "assignee": {"id": 1058}}, "job": {"id": 355, "assignee": {"id": 1145}}, "issue": {"id": 368, "owner": {"id": 1284}, "assignee": {"id": 1340}}, "organization": {"id": 114}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 690}, "assignee": {"id": 593}, "project": {"id": 334, "owner": {"id": 60}, "assignee": {"id": 851}}, "task": {"id": 306, "owner": {"id": 961}, "assignee": {"id": 1099}}, "job": {"id": 385, "assignee": {"id": 1124}}, "issue": {"id": 350, "owner": {"id": 1291}, "assignee": {"id": 1308}}, "organization": {"id": 1416}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "owner": {"id": 619}, "assignee": {"id": 519}, "project": {"id": 358, "owner": {"id": 71}, "assignee": {"id": 887}}, "task": {"id": 394, "owner": {"id": 911}, "assignee": {"id": 1083}}, "job": {"id": 313, "assignee": {"id": 1114}}, "issue": {"id": 393, "owner": {"id": 1259}, "assignee": {"id": 1363}}, "organization": {"id": 102}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "owner": {"id": 658}, "assignee": {"id": 587}, "project": {"id": 313, "owner": {"id": 35}, "assignee": {"id": 827}}, "task": {"id": 331, "owner": {"id": 941}, "assignee": {"id": 1090}}, "job": {"id": 387, "assignee": {"id": 1140}}, "issue": {"id": 360, "owner": {"id": 1286}, "assignee": {"id": 1379}}, "organization": {"id": 1489}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 330, "owner": {"id": 642}, "assignee": {"id": 569}, "project": {"id": 348, "owner": {"id": 98}, "assignee": {"id": 882}}, "task": {"id": 385, "owner": {"id": 928}, "assignee": {"id": 1009}}, "job": {"id": 399, "assignee": {"id": 1119}}, "issue": {"id": 327, "owner": {"id": 1218}, "assignee": {"id": 1327}}, "organization": {"id": 126}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 321, "owner": {"id": 642}, "assignee": {"id": 576}, "project": {"id": 364, "owner": {"id": 74}, "assignee": {"id": 854}}, "task": {"id": 348, "owner": {"id": 971}, "assignee": {"id": 1055}}, "job": {"id": 305, "assignee": {"id": 1168}}, "issue": {"id": 330, "owner": {"id": 1236}, "assignee": {"id": 1330}}, "organization": {"id": 1432}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 323, "owner": {"id": 637}, "assignee": {"id": 592}, "project": {"id": 318, "owner": {"id": 82}, "assignee": {"id": 895}}, "task": {"id": 362, "owner": {"id": 941}, "assignee": {"id": 1022}}, "job": {"id": 300, "assignee": {"id": 1183}}, "issue": {"id": 306, "owner": {"id": 1235}, "assignee": {"id": 1359}}, "organization": {"id": 158}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 667}, "assignee": {"id": 554}, "project": {"id": 397, "owner": {"id": 17}, "assignee": {"id": 876}}, "task": {"id": 357, "owner": {"id": 907}, "assignee": {"id": 1045}}, "job": {"id": 321, "assignee": {"id": 1151}}, "issue": {"id": 382, "owner": {"id": 1256}, "assignee": {"id": 1348}}, "organization": {"id": 1411}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 309, "owner": {"id": 677}, "assignee": {"id": 529}, "project": {"id": 314, "owner": {"id": 90}, "assignee": {"id": 817}}, "task": {"id": 327, "owner": {"id": 968}, "assignee": {"id": 1070}}, "job": {"id": 321, "assignee": {"id": 1126}}, "issue": {"id": 304, "owner": {"id": 1299}, "assignee": {"id": 1376}}, "organization": {"id": 162}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 384, "owner": {"id": 631}, "assignee": {"id": 513}, "project": {"id": 363, "owner": {"id": 43}, "assignee": {"id": 877}}, "task": {"id": 376, "owner": {"id": 976}, "assignee": {"id": 1074}}, "job": {"id": 352, "assignee": {"id": 1119}}, "issue": {"id": 300, "owner": {"id": 1278}, "assignee": {"id": 1348}}, "organization": {"id": 1468}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 679}, "assignee": {"id": 525}, "project": {"id": 329, "owner": {"id": 40}, "assignee": {"id": 830}}, "task": {"id": 385, "owner": {"id": 956}, "assignee": {"id": 1041}}, "job": {"id": 368, "assignee": {"id": 1198}}, "issue": {"id": 371, "owner": {"id": 1275}, "assignee": {"id": 1355}}, "organization": {"id": 171}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "owner": {"id": 609}, "assignee": {"id": 510}, "project": {"id": 353, "owner": {"id": 79}, "assignee": {"id": 899}}, "task": {"id": 380, "owner": {"id": 957}, "assignee": {"id": 1048}}, "job": {"id": 334, "assignee": {"id": 1110}}, "issue": {"id": 308, "owner": {"id": 1218}, "assignee": {"id": 1385}}, "organization": {"id": 1454}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 642}, "assignee": {"id": 587}, "project": {"id": 375, "owner": {"id": 3}, "assignee": {"id": 849}}, "task": {"id": 385, "owner": {"id": 997}, "assignee": {"id": 1027}}, "job": {"id": 351, "assignee": {"id": 1179}}, "issue": {"id": 330, "owner": {"id": 1200}, "assignee": {"id": 1317}}, "organization": {"id": 135}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 387, "owner": {"id": 618}, "assignee": {"id": 590}, "project": {"id": 377, "owner": {"id": 24}, "assignee": {"id": 861}}, "task": {"id": 374, "owner": {"id": 952}, "assignee": {"id": 1013}}, "job": {"id": 380, "assignee": {"id": 1197}}, "issue": {"id": 384, "owner": {"id": 1220}, "assignee": {"id": 1397}}, "organization": {"id": 1423}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 346, "owner": {"id": 690}, "assignee": {"id": 513}, "project": {"id": 398, "owner": {"id": 88}, "assignee": {"id": 850}}, "task": {"id": 348, "owner": {"id": 932}, "assignee": {"id": 1083}}, "job": {"id": 328, "assignee": {"id": 1126}}, "issue": {"id": 336, "owner": {"id": 1250}, "assignee": {"id": 1327}}, "organization": {"id": 169}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 333, "owner": {"id": 623}, "assignee": {"id": 592}, "project": {"id": 336, "owner": {"id": 25}, "assignee": {"id": 869}}, "task": {"id": 327, "owner": {"id": 925}, "assignee": {"id": 1011}}, "job": {"id": 371, "assignee": {"id": 1131}}, "issue": {"id": 362, "owner": {"id": 1253}, "assignee": {"id": 1351}}, "organization": {"id": 1471}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 331, "owner": {"id": 645}, "assignee": {"id": 503}, "project": {"id": 387, "owner": {"id": 60}, "assignee": {"id": 845}}, "task": {"id": 305, "owner": {"id": 985}, "assignee": {"id": 1061}}, "job": {"id": 308, "assignee": {"id": 1102}}, "issue": {"id": 351, "owner": {"id": 1258}, "assignee": {"id": 1372}}, "organization": {"id": 155}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 26, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 319, "owner": {"id": 608}, "assignee": {"id": 574}, "project": {"id": 373, "owner": {"id": 26}, "assignee": {"id": 856}}, "task": {"id": 318, "owner": {"id": 941}, "assignee": {"id": 1091}}, "job": {"id": 382, "assignee": {"id": 1156}}, "issue": {"id": 342, "owner": {"id": 1218}, "assignee": {"id": 1382}}, "organization": {"id": 1460}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 353, "owner": {"id": 600}, "assignee": {"id": 534}, "project": {"id": 396, "owner": {"id": 53}, "assignee": {"id": 802}}, "task": {"id": 327, "owner": {"id": 962}, "assignee": {"id": 1012}}, "job": {"id": 332, "assignee": {"id": 1185}}, "issue": {"id": 391, "owner": {"id": 1285}, "assignee": {"id": 1351}}, "organization": {"id": 140}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 350, "owner": {"id": 662}, "assignee": {"id": 570}, "project": {"id": 320, "owner": {"id": 91}, "assignee": {"id": 842}}, "task": {"id": 343, "owner": {"id": 923}, "assignee": {"id": 1092}}, "job": {"id": 301, "assignee": {"id": 1141}}, "issue": {"id": 357, "owner": {"id": 1275}, "assignee": {"id": 1375}}, "organization": {"id": 1483}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 675}, "assignee": {"id": 575}, "project": {"id": 329, "owner": {"id": 2}, "assignee": {"id": 895}}, "task": {"id": 306, "owner": {"id": 965}, "assignee": {"id": 1062}}, "job": {"id": 349, "assignee": {"id": 1169}}, "issue": {"id": 383, "owner": {"id": 1208}, "assignee": {"id": 1332}}, "organization": {"id": 183}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "owner": {"id": 687}, "assignee": {"id": 599}, "project": {"id": 398, "owner": {"id": 91}, "assignee": {"id": 820}}, "task": {"id": 357, "owner": {"id": 988}, "assignee": {"id": 1037}}, "job": {"id": 361, "assignee": {"id": 1128}}, "issue": {"id": 377, "owner": {"id": 1275}, "assignee": {"id": 1337}}, "organization": {"id": 1413}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "owner": {"id": 624}, "assignee": {"id": 566}, "project": {"id": 324, "owner": {"id": 60}, "assignee": {"id": 855}}, "task": {"id": 352, "owner": {"id": 919}, "assignee": {"id": 1061}}, "job": {"id": 384, "assignee": {"id": 1107}}, "issue": {"id": 353, "owner": {"id": 1295}, "assignee": {"id": 1397}}, "organization": {"id": 121}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 662}, "assignee": {"id": 522}, "project": {"id": 346, "owner": {"id": 93}, "assignee": {"id": 887}}, "task": {"id": 352, "owner": {"id": 982}, "assignee": {"id": 1055}}, "job": {"id": 382, "assignee": {"id": 1184}}, "issue": {"id": 392, "owner": {"id": 1202}, "assignee": {"id": 1331}}, "organization": {"id": 1415}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 327, "owner": {"id": 632}, "assignee": {"id": 527}, "project": {"id": 325, "owner": {"id": 99}, "assignee": {"id": 876}}, "task": {"id": 318, "owner": {"id": 929}, "assignee": {"id": 1058}}, "job": {"id": 307, "assignee": {"id": 1195}}, "issue": {"id": 377, "owner": {"id": 1239}, "assignee": {"id": 1335}}, "organization": {"id": 176}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 696}, "assignee": {"id": 506}, "project": {"id": 328, "owner": {"id": 57}, "assignee": {"id": 808}}, "task": {"id": 395, "owner": {"id": 902}, "assignee": {"id": 1060}}, "job": {"id": 311, "assignee": {"id": 1160}}, "issue": {"id": 354, "owner": {"id": 1205}, "assignee": {"id": 1323}}, "organization": {"id": 1494}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 399, "owner": {"id": 648}, "assignee": {"id": 598}, "project": {"id": 358, "owner": {"id": 95}, "assignee": {"id": 889}}, "task": {"id": 335, "owner": {"id": 904}, "assignee": {"id": 1018}}, "job": {"id": 336, "assignee": {"id": 1102}}, "issue": {"id": 348, "owner": {"id": 1296}, "assignee": {"id": 1391}}, "organization": {"id": 137}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 337, "owner": {"id": 633}, "assignee": {"id": 596}, "project": {"id": 324, "owner": {"id": 56}, "assignee": {"id": 853}}, "task": {"id": 368, "owner": {"id": 944}, "assignee": {"id": 1018}}, "job": {"id": 343, "assignee": {"id": 1181}}, "issue": {"id": 363, "owner": {"id": 1216}, "assignee": {"id": 1324}}, "organization": {"id": 1404}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 603}, "assignee": {"id": 594}, "project": {"id": 329, "owner": {"id": 11}, "assignee": {"id": 808}}, "task": {"id": 389, "owner": {"id": 969}, "assignee": {"id": 1077}}, "job": {"id": 317, "assignee": {"id": 1168}}, "issue": {"id": 382, "owner": {"id": 1235}, "assignee": {"id": 1342}}, "organization": {"id": 110}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 386, "owner": {"id": 682}, "assignee": {"id": 533}, "project": {"id": 363, "owner": {"id": 45}, "assignee": {"id": 848}}, "task": {"id": 371, "owner": {"id": 915}, "assignee": {"id": 1087}}, "job": {"id": 373, "assignee": {"id": 1124}}, "issue": {"id": 347, "owner": {"id": 1244}, "assignee": {"id": 1350}}, "organization": {"id": 1442}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "owner": {"id": 679}, "assignee": {"id": 584}, "project": {"id": 391, "owner": {"id": 96}, "assignee": {"id": 867}}, "task": {"id": 384, "owner": {"id": 916}, "assignee": {"id": 1049}}, "job": {"id": 389, "assignee": {"id": 1102}}, "issue": {"id": 398, "owner": {"id": 1236}, "assignee": {"id": 1328}}, "organization": {"id": 157}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 623}, "assignee": {"id": 595}, "project": {"id": 339, "owner": {"id": 93}, "assignee": {"id": 845}}, "task": {"id": 303, "owner": {"id": 952}, "assignee": {"id": 1022}}, "job": {"id": 334, "assignee": {"id": 1110}}, "issue": {"id": 374, "owner": {"id": 1259}, "assignee": {"id": 1342}}, "organization": {"id": 1459}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "owner": {"id": 691}, "assignee": {"id": 549}, "project": {"id": 396, "owner": {"id": 78}, "assignee": {"id": 831}}, "task": {"id": 329, "owner": {"id": 930}, "assignee": {"id": 1002}}, "job": {"id": 349, "assignee": {"id": 1129}}, "issue": {"id": 326, "owner": {"id": 1246}, "assignee": {"id": 1334}}, "organization": {"id": 110}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "owner": {"id": 601}, "assignee": {"id": 529}, "project": {"id": 308, "owner": {"id": 14}, "assignee": {"id": 878}}, "task": {"id": 388, "owner": {"id": 902}, "assignee": {"id": 1033}}, "job": {"id": 318, "assignee": {"id": 1184}}, "issue": {"id": 305, "owner": {"id": 1206}, "assignee": {"id": 1396}}, "organization": {"id": 1468}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 370, "owner": {"id": 662}, "assignee": {"id": 582}, "project": {"id": 321, "owner": {"id": 33}, "assignee": {"id": 868}}, "task": {"id": 395, "owner": {"id": 989}, "assignee": {"id": 1026}}, "job": {"id": 321, "assignee": {"id": 1108}}, "issue": {"id": 322, "owner": {"id": 1272}, "assignee": {"id": 1393}}, "organization": {"id": 186}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 302, "owner": {"id": 659}, "assignee": {"id": 598}, "project": {"id": 345, "owner": {"id": 10}, "assignee": {"id": 876}}, "task": {"id": 325, "owner": {"id": 985}, "assignee": {"id": 1071}}, "job": {"id": 318, "assignee": {"id": 1130}}, "issue": {"id": 363, "owner": {"id": 1217}, "assignee": {"id": 1333}}, "organization": {"id": 1435}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"id": 333, "owner": {"id": 642}, "assignee": {"id": 537}, "project": {"id": 302, "owner": {"id": 75}, "assignee": {"id": 889}}, "task": {"id": 334, "owner": {"id": 976}, "assignee": {"id": 1085}}, "job": {"id": 329, "assignee": {"id": 1191}}, "issue": {"id": 323, "owner": {"id": 1285}, "assignee": {"id": 1307}}, "organization": {"id": 135}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 694}, "assignee": {"id": 576}, "project": {"id": 332, "owner": {"id": 86}, "assignee": {"id": 849}}, "task": {"id": 393, "owner": {"id": 924}, "assignee": {"id": 1050}}, "job": {"id": 309, "assignee": {"id": 1188}}, "issue": {"id": 345, "owner": {"id": 1204}, "assignee": {"id": 1391}}, "organization": {"id": 1459}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 356, "owner": {"id": 637}, "assignee": {"id": 519}, "project": {"id": 386, "owner": {"id": 48}, "assignee": {"id": 804}}, "task": {"id": 302, "owner": {"id": 995}, "assignee": {"id": 1077}}, "job": {"id": 348, "assignee": {"id": 1127}}, "issue": {"id": 338, "owner": {"id": 1254}, "assignee": {"id": 1317}}, "organization": {"id": 104}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 659}, "assignee": {"id": 529}, "project": {"id": 316, "owner": {"id": 99}, "assignee": {"id": 807}}, "task": {"id": 338, "owner": {"id": 977}, "assignee": {"id": 1090}}, "job": {"id": 335, "assignee": {"id": 1150}}, "issue": {"id": 363, "owner": {"id": 1225}, "assignee": {"id": 1361}}, "organization": {"id": 1402}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 668}, "assignee": {"id": 546}, "project": {"id": 302, "owner": {"id": 60}, "assignee": {"id": 890}}, "task": {"id": 326, "owner": {"id": 943}, "assignee": {"id": 1087}}, "job": {"id": 305, "assignee": {"id": 1195}}, "issue": {"id": 383, "owner": {"id": 1296}, "assignee": {"id": 1383}}, "organization": {"id": 151}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 321, "owner": {"id": 603}, "assignee": {"id": 598}, "project": {"id": 396, "owner": {"id": 21}, "assignee": {"id": 814}}, "task": {"id": 365, "owner": {"id": 913}, "assignee": {"id": 1017}}, "job": {"id": 367, "assignee": {"id": 1177}}, "issue": {"id": 301, "owner": {"id": 1272}, "assignee": {"id": 1306}}, "organization": {"id": 1465}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "owner": {"id": 683}, "assignee": {"id": 531}, "project": {"id": 377, "owner": {"id": 32}, "assignee": {"id": 889}}, "task": {"id": 302, "owner": {"id": 994}, "assignee": {"id": 1062}}, "job": {"id": 370, "assignee": {"id": 1184}}, "issue": {"id": 387, "owner": {"id": 1295}, "assignee": {"id": 1333}}, "organization": {"id": 178}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "owner": {"id": 694}, "assignee": {"id": 584}, "project": {"id": 358, "owner": {"id": 39}, "assignee": {"id": 869}}, "task": {"id": 374, "owner": {"id": 947}, "assignee": {"id": 1000}}, "job": {"id": 384, "assignee": {"id": 1149}}, "issue": {"id": 368, "owner": {"id": 1288}, "assignee": {"id": 1382}}, "organization": {"id": 1470}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 370, "owner": {"id": 649}, "assignee": {"id": 507}, "project": {"id": 372, "owner": {"id": 4}, "assignee": {"id": 834}}, "task": {"id": 369, "owner": {"id": 946}, "assignee": {"id": 1091}}, "job": {"id": 399, "assignee": {"id": 1198}}, "issue": {"id": 358, "owner": {"id": 1277}, "assignee": {"id": 1312}}, "organization": {"id": 175}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 311, "owner": {"id": 616}, "assignee": {"id": 585}, "project": {"id": 308, "owner": {"id": 30}, "assignee": {"id": 889}}, "task": {"id": 357, "owner": {"id": 943}, "assignee": {"id": 1016}}, "job": {"id": 327, "assignee": {"id": 1122}}, "issue": {"id": 387, "owner": {"id": 1207}, "assignee": {"id": 1337}}, "organization": {"id": 1489}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 312, "owner": {"id": 699}, "assignee": {"id": 521}, "project": {"id": 328, "owner": {"id": 89}, "assignee": {"id": 829}}, "task": {"id": 358, "owner": {"id": 942}, "assignee": {"id": 1031}}, "job": {"id": 352, "assignee": {"id": 1144}}, "issue": {"id": 337, "owner": {"id": 1261}, "assignee": {"id": 1394}}, "organization": {"id": 166}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 630}, "assignee": {"id": 545}, "project": {"id": 361, "owner": {"id": 56}, "assignee": {"id": 886}}, "task": {"id": 353, "owner": {"id": 922}, "assignee": {"id": 1021}}, "job": {"id": 366, "assignee": {"id": 1191}}, "issue": {"id": 378, "owner": {"id": 1269}, "assignee": {"id": 1354}}, "organization": {"id": 1421}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 653}, "assignee": {"id": 545}, "project": {"id": 347, "owner": {"id": 716}, "assignee": {"id": 97}}, "task": {"id": 300, "owner": {"id": 923}, "assignee": {"id": 1083}}, "job": {"id": 327, "assignee": {"id": 1187}}, "issue": {"id": 393, "owner": {"id": 1289}, "assignee": {"id": 1382}}, "organization": {"id": 166}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 653}, "assignee": {"id": 521}, "project": {"id": 373, "owner": {"id": 773}, "assignee": {"id": 75}}, "task": {"id": 338, "owner": {"id": 902}, "assignee": {"id": 1029}}, "job": {"id": 307, "assignee": {"id": 1110}}, "issue": {"id": 307, "owner": {"id": 1297}, "assignee": {"id": 1386}}, "organization": {"id": 1436}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 649}, "assignee": {"id": 573}, "project": {"id": 387, "owner": {"id": 787}, "assignee": {"id": 61}}, "task": {"id": 364, "owner": {"id": 998}, "assignee": {"id": 1063}}, "job": {"id": 360, "assignee": {"id": 1188}}, "issue": {"id": 356, "owner": {"id": 1274}, "assignee": {"id": 1343}}, "organization": {"id": 175}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 665}, "assignee": {"id": 537}, "project": {"id": 395, "owner": {"id": 777}, "assignee": {"id": 94}}, "task": {"id": 307, "owner": {"id": 992}, "assignee": {"id": 1079}}, "job": {"id": 345, "assignee": {"id": 1185}}, "issue": {"id": 322, "owner": {"id": 1215}, "assignee": {"id": 1315}}, "organization": {"id": 1443}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 380, "owner": {"id": 691}, "assignee": {"id": 517}, "project": {"id": 342, "owner": {"id": 711}, "assignee": {"id": 13}}, "task": {"id": 303, "owner": {"id": 970}, "assignee": {"id": 1087}}, "job": {"id": 304, "assignee": {"id": 1107}}, "issue": {"id": 363, "owner": {"id": 1255}, "assignee": {"id": 1374}}, "organization": {"id": 106}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 618}, "assignee": {"id": 569}, "project": {"id": 371, "owner": {"id": 738}, "assignee": {"id": 75}}, "task": {"id": 360, "owner": {"id": 975}, "assignee": {"id": 1058}}, "job": {"id": 369, "assignee": {"id": 1140}}, "issue": {"id": 330, "owner": {"id": 1263}, "assignee": {"id": 1310}}, "organization": {"id": 1480}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 394, "owner": {"id": 653}, "assignee": {"id": 504}, "project": {"id": 344, "owner": {"id": 709}, "assignee": {"id": 32}}, "task": {"id": 337, "owner": {"id": 982}, "assignee": {"id": 1033}}, "job": {"id": 301, "assignee": {"id": 1111}}, "issue": {"id": 323, "owner": {"id": 1255}, "assignee": {"id": 1387}}, "organization": {"id": 114}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 355, "owner": {"id": 621}, "assignee": {"id": 532}, "project": {"id": 314, "owner": {"id": 781}, "assignee": {"id": 68}}, "task": {"id": 339, "owner": {"id": 987}, "assignee": {"id": 1034}}, "job": {"id": 358, "assignee": {"id": 1109}}, "issue": {"id": 387, "owner": {"id": 1230}, "assignee": {"id": 1315}}, "organization": {"id": 1403}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 670}, "assignee": {"id": 532}, "project": {"id": 318, "owner": {"id": 746}, "assignee": {"id": 33}}, "task": {"id": 398, "owner": {"id": 984}, "assignee": {"id": 1044}}, "job": {"id": 358, "assignee": {"id": 1162}}, "issue": {"id": 316, "owner": {"id": 1203}, "assignee": {"id": 1390}}, "organization": {"id": 144}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 317, "owner": {"id": 636}, "assignee": {"id": 524}, "project": {"id": 389, "owner": {"id": 786}, "assignee": {"id": 51}}, "task": {"id": 393, "owner": {"id": 962}, "assignee": {"id": 1045}}, "job": {"id": 344, "assignee": {"id": 1143}}, "issue": {"id": 322, "owner": {"id": 1298}, "assignee": {"id": 1329}}, "organization": {"id": 1486}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 684}, "assignee": {"id": 504}, "project": {"id": 388, "owner": {"id": 790}, "assignee": {"id": 86}}, "task": {"id": 384, "owner": {"id": 999}, "assignee": {"id": 1068}}, "job": {"id": 302, "assignee": {"id": 1135}}, "issue": {"id": 326, "owner": {"id": 1264}, "assignee": {"id": 1329}}, "organization": {"id": 169}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 664}, "assignee": {"id": 569}, "project": {"id": 322, "owner": {"id": 761}, "assignee": {"id": 10}}, "task": {"id": 350, "owner": {"id": 919}, "assignee": {"id": 1079}}, "job": {"id": 387, "assignee": {"id": 1197}}, "issue": {"id": 314, "owner": {"id": 1200}, "assignee": {"id": 1335}}, "organization": {"id": 1496}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "owner": {"id": 609}, "assignee": {"id": 545}, "project": {"id": 302, "owner": {"id": 733}, "assignee": {"id": 93}}, "task": {"id": 324, "owner": {"id": 916}, "assignee": {"id": 1006}}, "job": {"id": 355, "assignee": {"id": 1124}}, "issue": {"id": 356, "owner": {"id": 1234}, "assignee": {"id": 1375}}, "organization": {"id": 172}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "owner": {"id": 601}, "assignee": {"id": 507}, "project": {"id": 315, "owner": {"id": 744}, "assignee": {"id": 24}}, "task": {"id": 329, "owner": {"id": 919}, "assignee": {"id": 1014}}, "job": {"id": 350, "assignee": {"id": 1187}}, "issue": {"id": 336, "owner": {"id": 1214}, "assignee": {"id": 1344}}, "organization": {"id": 1471}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 606}, "assignee": {"id": 547}, "project": {"id": 310, "owner": {"id": 717}, "assignee": {"id": 20}}, "task": {"id": 399, "owner": {"id": 965}, "assignee": {"id": 1050}}, "job": {"id": 355, "assignee": {"id": 1190}}, "issue": {"id": 320, "owner": {"id": 1274}, "assignee": {"id": 1380}}, "organization": {"id": 122}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "owner": {"id": 674}, "assignee": {"id": 552}, "project": {"id": 306, "owner": {"id": 741}, "assignee": {"id": 43}}, "task": {"id": 344, "owner": {"id": 957}, "assignee": {"id": 1086}}, "job": {"id": 389, "assignee": {"id": 1191}}, "issue": {"id": 312, "owner": {"id": 1287}, "assignee": {"id": 1348}}, "organization": {"id": 1478}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 346, "owner": {"id": 608}, "assignee": {"id": 558}, "project": {"id": 358, "owner": {"id": 717}, "assignee": {"id": 77}}, "task": {"id": 392, "owner": {"id": 990}, "assignee": {"id": 1069}}, "job": {"id": 318, "assignee": {"id": 1140}}, "issue": {"id": 379, "owner": {"id": 1260}, "assignee": {"id": 1322}}, "organization": {"id": 140}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 644}, "assignee": {"id": 505}, "project": {"id": 354, "owner": {"id": 796}, "assignee": {"id": 9}}, "task": {"id": 341, "owner": {"id": 934}, "assignee": {"id": 1080}}, "job": {"id": 330, "assignee": {"id": 1118}}, "issue": {"id": 347, "owner": {"id": 1271}, "assignee": {"id": 1309}}, "organization": {"id": 1478}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 347, "owner": {"id": 681}, "assignee": {"id": 519}, "project": {"id": 353, "owner": {"id": 717}, "assignee": {"id": 57}}, "task": {"id": 349, "owner": {"id": 957}, "assignee": {"id": 1072}}, "job": {"id": 395, "assignee": {"id": 1191}}, "issue": {"id": 332, "owner": {"id": 1281}, "assignee": {"id": 1326}}, "organization": {"id": 140}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 383, "owner": {"id": 657}, "assignee": {"id": 542}, "project": {"id": 318, "owner": {"id": 736}, "assignee": {"id": 20}}, "task": {"id": 315, "owner": {"id": 975}, "assignee": {"id": 1086}}, "job": {"id": 300, "assignee": {"id": 1102}}, "issue": {"id": 300, "owner": {"id": 1244}, "assignee": {"id": 1383}}, "organization": {"id": 1415}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 681}, "assignee": {"id": 546}, "project": {"id": 376, "owner": {"id": 739}, "assignee": {"id": 53}}, "task": {"id": 326, "owner": {"id": 918}, "assignee": {"id": 1048}}, "job": {"id": 335, "assignee": {"id": 1193}}, "issue": {"id": 368, "owner": {"id": 1211}, "assignee": {"id": 1304}}, "organization": {"id": 193}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 329, "owner": {"id": 660}, "assignee": {"id": 507}, "project": {"id": 390, "owner": {"id": 752}, "assignee": {"id": 42}}, "task": {"id": 346, "owner": {"id": 943}, "assignee": {"id": 1074}}, "job": {"id": 356, "assignee": {"id": 1113}}, "issue": {"id": 331, "owner": {"id": 1240}, "assignee": {"id": 1364}}, "organization": {"id": 1426}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 631}, "assignee": {"id": 503}, "project": {"id": 351, "owner": {"id": 750}, "assignee": {"id": 81}}, "task": {"id": 309, "owner": {"id": 927}, "assignee": {"id": 1034}}, "job": {"id": 335, "assignee": {"id": 1111}}, "issue": {"id": 325, "owner": {"id": 1220}, "assignee": {"id": 1360}}, "organization": {"id": 121}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "owner": {"id": 604}, "assignee": {"id": 568}, "project": {"id": 372, "owner": {"id": 724}, "assignee": {"id": 25}}, "task": {"id": 393, "owner": {"id": 948}, "assignee": {"id": 1060}}, "job": {"id": 315, "assignee": {"id": 1173}}, "issue": {"id": 364, "owner": {"id": 1202}, "assignee": {"id": 1320}}, "organization": {"id": 1406}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 387, "owner": {"id": 609}, "assignee": {"id": 560}, "project": {"id": 334, "owner": {"id": 754}, "assignee": {"id": 94}}, "task": {"id": 349, "owner": {"id": 911}, "assignee": {"id": 1067}}, "job": {"id": 374, "assignee": {"id": 1128}}, "issue": {"id": 321, "owner": {"id": 1203}, "assignee": {"id": 1350}}, "organization": {"id": 101}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 692}, "assignee": {"id": 590}, "project": {"id": 383, "owner": {"id": 724}, "assignee": {"id": 7}}, "task": {"id": 383, "owner": {"id": 942}, "assignee": {"id": 1029}}, "job": {"id": 335, "assignee": {"id": 1136}}, "issue": {"id": 357, "owner": {"id": 1266}, "assignee": {"id": 1340}}, "organization": {"id": 1494}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 317, "owner": {"id": 631}, "assignee": {"id": 573}, "project": {"id": 391, "owner": {"id": 751}, "assignee": {"id": 87}}, "task": {"id": 325, "owner": {"id": 946}, "assignee": {"id": 1017}}, "job": {"id": 328, "assignee": {"id": 1113}}, "issue": {"id": 333, "owner": {"id": 1252}, "assignee": {"id": 1355}}, "organization": {"id": 146}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 664}, "assignee": {"id": 547}, "project": {"id": 317, "owner": {"id": 724}, "assignee": {"id": 97}}, "task": {"id": 362, "owner": {"id": 915}, "assignee": {"id": 1086}}, "job": {"id": 377, "assignee": {"id": 1154}}, "issue": {"id": 375, "owner": {"id": 1274}, "assignee": {"id": 1311}}, "organization": {"id": 1431}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 393, "owner": {"id": 684}, "assignee": {"id": 508}, "project": {"id": 303, "owner": {"id": 738}, "assignee": {"id": 93}}, "task": {"id": 347, "owner": {"id": 994}, "assignee": {"id": 1080}}, "job": {"id": 326, "assignee": {"id": 1106}}, "issue": {"id": 305, "owner": {"id": 1230}, "assignee": {"id": 1305}}, "organization": {"id": 189}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 347, "owner": {"id": 641}, "assignee": {"id": 568}, "project": {"id": 343, "owner": {"id": 786}, "assignee": {"id": 27}}, "task": {"id": 353, "owner": {"id": 962}, "assignee": {"id": 1002}}, "job": {"id": 333, "assignee": {"id": 1134}}, "issue": {"id": 326, "owner": {"id": 1233}, "assignee": {"id": 1332}}, "organization": {"id": 1452}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"id": 356, "owner": {"id": 620}, "assignee": {"id": 503}, "project": {"id": 347, "owner": {"id": 791}, "assignee": {"id": 20}}, "task": {"id": 340, "owner": {"id": 935}, "assignee": {"id": 1063}}, "job": {"id": 380, "assignee": {"id": 1174}}, "issue": {"id": 301, "owner": {"id": 1279}, "assignee": {"id": 1392}}, "organization": {"id": 186}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"id": 368, "owner": {"id": 680}, "assignee": {"id": 537}, "project": {"id": 315, "owner": {"id": 731}, "assignee": {"id": 66}}, "task": {"id": 372, "owner": {"id": 922}, "assignee": {"id": 1060}}, "job": {"id": 341, "assignee": {"id": 1130}}, "issue": {"id": 302, "owner": {"id": 1248}, "assignee": {"id": 1398}}, "organization": {"id": 1437}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "owner": {"id": 601}, "assignee": {"id": 528}, "project": {"id": 308, "owner": {"id": 795}, "assignee": {"id": 66}}, "task": {"id": 347, "owner": {"id": 998}, "assignee": {"id": 1086}}, "job": {"id": 344, "assignee": {"id": 1168}}, "issue": {"id": 344, "owner": {"id": 1276}, "assignee": {"id": 1313}}, "organization": {"id": 143}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "owner": {"id": 643}, "assignee": {"id": 587}, "project": {"id": 318, "owner": {"id": 700}, "assignee": {"id": 81}}, "task": {"id": 398, "owner": {"id": 976}, "assignee": {"id": 1045}}, "job": {"id": 358, "assignee": {"id": 1165}}, "issue": {"id": 349, "owner": {"id": 1252}, "assignee": {"id": 1383}}, "organization": {"id": 1488}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "owner": {"id": 684}, "assignee": {"id": 564}, "project": {"id": 353, "owner": {"id": 792}, "assignee": {"id": 82}}, "task": {"id": 352, "owner": {"id": 961}, "assignee": {"id": 1036}}, "job": {"id": 376, "assignee": {"id": 1130}}, "issue": {"id": 317, "owner": {"id": 1291}, "assignee": {"id": 1368}}, "organization": {"id": 164}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 600}, "assignee": {"id": 522}, "project": {"id": 304, "owner": {"id": 792}, "assignee": {"id": 51}}, "task": {"id": 358, "owner": {"id": 930}, "assignee": {"id": 1078}}, "job": {"id": 398, "assignee": {"id": 1109}}, "issue": {"id": 358, "owner": {"id": 1253}, "assignee": {"id": 1395}}, "organization": {"id": 1476}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 367, "owner": {"id": 645}, "assignee": {"id": 534}, "project": {"id": 325, "owner": {"id": 762}, "assignee": {"id": 70}}, "task": {"id": 385, "owner": {"id": 916}, "assignee": {"id": 1026}}, "job": {"id": 353, "assignee": {"id": 1119}}, "issue": {"id": 300, "owner": {"id": 1260}, "assignee": {"id": 1336}}, "organization": {"id": 191}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 695}, "assignee": {"id": 524}, "project": {"id": 338, "owner": {"id": 766}, "assignee": {"id": 85}}, "task": {"id": 343, "owner": {"id": 990}, "assignee": {"id": 1060}}, "job": {"id": 328, "assignee": {"id": 1145}}, "issue": {"id": 374, "owner": {"id": 1247}, "assignee": {"id": 1372}}, "organization": {"id": 1421}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 342, "owner": {"id": 637}, "assignee": {"id": 553}, "project": {"id": 389, "owner": {"id": 796}, "assignee": {"id": 35}}, "task": {"id": 356, "owner": {"id": 918}, "assignee": {"id": 1040}}, "job": {"id": 361, "assignee": {"id": 1101}}, "issue": {"id": 384, "owner": {"id": 1240}, "assignee": {"id": 1398}}, "organization": {"id": 101}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 639}, "assignee": {"id": 560}, "project": {"id": 305, "owner": {"id": 785}, "assignee": {"id": 6}}, "task": {"id": 350, "owner": {"id": 993}, "assignee": {"id": 1043}}, "job": {"id": 380, "assignee": {"id": 1124}}, "issue": {"id": 380, "owner": {"id": 1252}, "assignee": {"id": 1399}}, "organization": {"id": 1419}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 308, "owner": {"id": 697}, "assignee": {"id": 506}, "project": {"id": 334, "owner": {"id": 727}, "assignee": {"id": 90}}, "task": {"id": 398, "owner": {"id": 983}, "assignee": {"id": 1095}}, "job": {"id": 376, "assignee": {"id": 1101}}, "issue": {"id": 352, "owner": {"id": 1260}, "assignee": {"id": 1319}}, "organization": {"id": 136}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 680}, "assignee": {"id": 584}, "project": {"id": 399, "owner": {"id": 718}, "assignee": {"id": 49}}, "task": {"id": 365, "owner": {"id": 998}, "assignee": {"id": 1029}}, "job": {"id": 314, "assignee": {"id": 1136}}, "issue": {"id": 394, "owner": {"id": 1291}, "assignee": {"id": 1349}}, "organization": {"id": 1499}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "owner": {"id": 608}, "assignee": {"id": 546}, "project": {"id": 394, "owner": {"id": 722}, "assignee": {"id": 97}}, "task": {"id": 329, "owner": {"id": 933}, "assignee": {"id": 1083}}, "job": {"id": 300, "assignee": {"id": 1156}}, "issue": {"id": 323, "owner": {"id": 1223}, "assignee": {"id": 1309}}, "organization": {"id": 113}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "owner": {"id": 643}, "assignee": {"id": 500}, "project": {"id": 304, "owner": {"id": 739}, "assignee": {"id": 24}}, "task": {"id": 305, "owner": {"id": 935}, "assignee": {"id": 1007}}, "job": {"id": 367, "assignee": {"id": 1139}}, "issue": {"id": 300, "owner": {"id": 1287}, "assignee": {"id": 1336}}, "organization": {"id": 1487}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 632}, "assignee": {"id": 504}, "project": {"id": 310, "owner": {"id": 765}, "assignee": {"id": 70}}, "task": {"id": 317, "owner": {"id": 957}, "assignee": {"id": 1084}}, "job": {"id": 377, "assignee": {"id": 1117}}, "issue": {"id": 375, "owner": {"id": 1299}, "assignee": {"id": 1373}}, "organization": {"id": 152}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 692}, "assignee": {"id": 584}, "project": {"id": 301, "owner": {"id": 777}, "assignee": {"id": 17}}, "task": {"id": 379, "owner": {"id": 920}, "assignee": {"id": 1068}}, "job": {"id": 325, "assignee": {"id": 1170}}, "issue": {"id": 306, "owner": {"id": 1269}, "assignee": {"id": 1373}}, "organization": {"id": 1495}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 655}, "assignee": {"id": 596}, "project": {"id": 305, "owner": {"id": 787}, "assignee": {"id": 49}}, "task": {"id": 329, "owner": {"id": 927}, "assignee": {"id": 1085}}, "job": {"id": 371, "assignee": {"id": 1174}}, "issue": {"id": 337, "owner": {"id": 1273}, "assignee": {"id": 1386}}, "organization": {"id": 148}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 311, "owner": {"id": 674}, "assignee": {"id": 582}, "project": {"id": 355, "owner": {"id": 769}, "assignee": {"id": 87}}, "task": {"id": 321, "owner": {"id": 928}, "assignee": {"id": 1070}}, "job": {"id": 313, "assignee": {"id": 1193}}, "issue": {"id": 368, "owner": {"id": 1257}, "assignee": {"id": 1338}}, "organization": {"id": 1484}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 366, "owner": {"id": 611}, "assignee": {"id": 522}, "project": {"id": 371, "owner": {"id": 736}, "assignee": {"id": 59}}, "task": {"id": 357, "owner": {"id": 981}, "assignee": {"id": 1053}}, "job": {"id": 342, "assignee": {"id": 1149}}, "issue": {"id": 368, "owner": {"id": 1238}, "assignee": {"id": 1385}}, "organization": {"id": 169}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 381, "owner": {"id": 665}, "assignee": {"id": 520}, "project": {"id": 310, "owner": {"id": 717}, "assignee": {"id": 3}}, "task": {"id": 303, "owner": {"id": 996}, "assignee": {"id": 1060}}, "job": {"id": 310, "assignee": {"id": 1165}}, "issue": {"id": 311, "owner": {"id": 1211}, "assignee": {"id": 1374}}, "organization": {"id": 1441}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 366, "owner": {"id": 660}, "assignee": {"id": 581}, "project": {"id": 300, "owner": {"id": 748}, "assignee": {"id": 821}}, "task": {"id": 307, "owner": {"id": 9}, "assignee": {"id": 1035}}, "job": {"id": 366, "assignee": {"id": 1194}}, "issue": {"id": 354, "owner": {"id": 1281}, "assignee": {"id": 1309}}, "organization": {"id": 194}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 616}, "assignee": {"id": 508}, "project": {"id": 318, "owner": {"id": 736}, "assignee": {"id": 881}}, "task": {"id": 391, "owner": {"id": 6}, "assignee": {"id": 1003}}, "job": {"id": 318, "assignee": {"id": 1190}}, "issue": {"id": 344, "owner": {"id": 1216}, "assignee": {"id": 1315}}, "organization": {"id": 118}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 635}, "assignee": {"id": 590}, "project": {"id": 315, "owner": {"id": 724}, "assignee": {"id": 868}}, "task": {"id": 311, "owner": {"id": 84}, "assignee": {"id": 1042}}, "job": {"id": 392, "assignee": {"id": 1184}}, "issue": {"id": 394, "owner": {"id": 1299}, "assignee": {"id": 1326}}, "organization": {"id": 1498}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 313, "owner": {"id": 628}, "assignee": {"id": 595}, "project": {"id": 396, "owner": {"id": 724}, "assignee": {"id": 865}}, "task": {"id": 387, "owner": {"id": 79}, "assignee": {"id": 1008}}, "job": {"id": 372, "assignee": {"id": 1142}}, "issue": {"id": 313, "owner": {"id": 1297}, "assignee": {"id": 1336}}, "organization": {"id": 1454}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "owner": {"id": 661}, "assignee": {"id": 578}, "project": {"id": 345, "owner": {"id": 769}, "assignee": {"id": 819}}, "task": {"id": 321, "owner": {"id": 60}, "assignee": {"id": 1099}}, "job": {"id": 366, "assignee": {"id": 1135}}, "issue": {"id": 351, "owner": {"id": 1229}, "assignee": {"id": 1303}}, "organization": {"id": 162}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "owner": {"id": 699}, "assignee": {"id": 500}, "project": {"id": 360, "owner": {"id": 733}, "assignee": {"id": 841}}, "task": {"id": 348, "owner": {"id": 53}, "assignee": {"id": 1045}}, "job": {"id": 355, "assignee": {"id": 1140}}, "issue": {"id": 340, "owner": {"id": 1253}, "assignee": {"id": 1324}}, "organization": {"id": 196}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 603}, "assignee": {"id": 580}, "project": {"id": 333, "owner": {"id": 758}, "assignee": {"id": 819}}, "task": {"id": 394, "owner": {"id": 23}, "assignee": {"id": 1018}}, "job": {"id": 337, "assignee": {"id": 1164}}, "issue": {"id": 364, "owner": {"id": 1242}, "assignee": {"id": 1394}}, "organization": {"id": 1459}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "owner": {"id": 667}, "assignee": {"id": 504}, "project": {"id": 378, "owner": {"id": 736}, "assignee": {"id": 860}}, "task": {"id": 374, "owner": {"id": 2}, "assignee": {"id": 1054}}, "job": {"id": 344, "assignee": {"id": 1124}}, "issue": {"id": 397, "owner": {"id": 1201}, "assignee": {"id": 1377}}, "organization": {"id": 1417}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "owner": {"id": 647}, "assignee": {"id": 520}, "project": {"id": 323, "owner": {"id": 773}, "assignee": {"id": 889}}, "task": {"id": 341, "owner": {"id": 57}, "assignee": {"id": 1036}}, "job": {"id": 323, "assignee": {"id": 1164}}, "issue": {"id": 387, "owner": {"id": 1290}, "assignee": {"id": 1360}}, "organization": {"id": 151}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 665}, "assignee": {"id": 543}, "project": {"id": 392, "owner": {"id": 752}, "assignee": {"id": 809}}, "task": {"id": 338, "owner": {"id": 63}, "assignee": {"id": 1049}}, "job": {"id": 358, "assignee": {"id": 1126}}, "issue": {"id": 357, "owner": {"id": 1247}, "assignee": {"id": 1395}}, "organization": {"id": 154}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 662}, "assignee": {"id": 582}, "project": {"id": 365, "owner": {"id": 789}, "assignee": {"id": 826}}, "task": {"id": 374, "owner": {"id": 86}, "assignee": {"id": 1085}}, "job": {"id": 394, "assignee": {"id": 1155}}, "issue": {"id": 378, "owner": {"id": 1273}, "assignee": {"id": 1372}}, "organization": {"id": 1429}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 647}, "assignee": {"id": 540}, "project": {"id": 333, "owner": {"id": 715}, "assignee": {"id": 863}}, "task": {"id": 396, "owner": {"id": 11}, "assignee": {"id": 1011}}, "job": {"id": 336, "assignee": {"id": 1133}}, "issue": {"id": 352, "owner": {"id": 1282}, "assignee": {"id": 1325}}, "organization": {"id": 1480}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 369, "owner": {"id": 669}, "assignee": {"id": 533}, "project": {"id": 356, "owner": {"id": 720}, "assignee": {"id": 867}}, "task": {"id": 321, "owner": {"id": 14}, "assignee": {"id": 1025}}, "job": {"id": 384, "assignee": {"id": 1140}}, "issue": {"id": 344, "owner": {"id": 1241}, "assignee": {"id": 1318}}, "organization": {"id": 198}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 371, "owner": {"id": 685}, "assignee": {"id": 506}, "project": {"id": 384, "owner": {"id": 740}, "assignee": {"id": 870}}, "task": {"id": 336, "owner": {"id": 1}, "assignee": {"id": 1067}}, "job": {"id": 354, "assignee": {"id": 1166}}, "issue": {"id": 394, "owner": {"id": 1208}, "assignee": {"id": 1383}}, "organization": {"id": 111}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 395, "owner": {"id": 678}, "assignee": {"id": 541}, "project": {"id": 328, "owner": {"id": 723}, "assignee": {"id": 852}}, "task": {"id": 330, "owner": {"id": 2}, "assignee": {"id": 1038}}, "job": {"id": 358, "assignee": {"id": 1102}}, "issue": {"id": 325, "owner": {"id": 1266}, "assignee": {"id": 1305}}, "organization": {"id": 1466}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 337, "owner": {"id": 616}, "assignee": {"id": 588}, "project": {"id": 311, "owner": {"id": 719}, "assignee": {"id": 872}}, "task": {"id": 348, "owner": {"id": 6}, "assignee": {"id": 1038}}, "job": {"id": 356, "assignee": {"id": 1100}}, "issue": {"id": 398, "owner": {"id": 1229}, "assignee": {"id": 1304}}, "organization": {"id": 1412}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 687}, "assignee": {"id": 550}, "project": {"id": 347, "owner": {"id": 738}, "assignee": {"id": 871}}, "task": {"id": 360, "owner": {"id": 62}, "assignee": {"id": 1088}}, "job": {"id": 359, "assignee": {"id": 1165}}, "issue": {"id": 313, "owner": {"id": 1299}, "assignee": {"id": 1348}}, "organization": {"id": 100}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 319, "owner": {"id": 675}, "assignee": {"id": 570}, "project": {"id": 344, "owner": {"id": 764}, "assignee": {"id": 870}}, "task": {"id": 397, "owner": {"id": 86}, "assignee": {"id": 1004}}, "job": {"id": 308, "assignee": {"id": 1156}}, "issue": {"id": 362, "owner": {"id": 1238}, "assignee": {"id": 1336}}, "organization": {"id": 176}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 601}, "assignee": {"id": 591}, "project": {"id": 301, "owner": {"id": 780}, "assignee": {"id": 849}}, "task": {"id": 338, "owner": {"id": 28}, "assignee": {"id": 1069}}, "job": {"id": 328, "assignee": {"id": 1140}}, "issue": {"id": 331, "owner": {"id": 1290}, "assignee": {"id": 1349}}, "organization": {"id": 1461}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 382, "owner": {"id": 616}, "assignee": {"id": 537}, "project": {"id": 350, "owner": {"id": 759}, "assignee": {"id": 859}}, "task": {"id": 320, "owner": {"id": 81}, "assignee": {"id": 1045}}, "job": {"id": 346, "assignee": {"id": 1138}}, "issue": {"id": 360, "owner": {"id": 1224}, "assignee": {"id": 1357}}, "organization": {"id": 1453}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 636}, "assignee": {"id": 525}, "project": {"id": 322, "owner": {"id": 773}, "assignee": {"id": 831}}, "task": {"id": 394, "owner": {"id": 54}, "assignee": {"id": 1034}}, "job": {"id": 366, "assignee": {"id": 1120}}, "issue": {"id": 307, "owner": {"id": 1284}, "assignee": {"id": 1310}}, "organization": {"id": 121}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 329, "owner": {"id": 699}, "assignee": {"id": 557}, "project": {"id": 399, "owner": {"id": 757}, "assignee": {"id": 828}}, "task": {"id": 375, "owner": {"id": 36}, "assignee": {"id": 1016}}, "job": {"id": 320, "assignee": {"id": 1145}}, "issue": {"id": 325, "owner": {"id": 1237}, "assignee": {"id": 1350}}, "organization": {"id": 129}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 688}, "assignee": {"id": 579}, "project": {"id": 312, "owner": {"id": 753}, "assignee": {"id": 806}}, "task": {"id": 360, "owner": {"id": 72}, "assignee": {"id": 1038}}, "job": {"id": 362, "assignee": {"id": 1168}}, "issue": {"id": 373, "owner": {"id": 1244}, "assignee": {"id": 1315}}, "organization": {"id": 1469}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 307, "owner": {"id": 642}, "assignee": {"id": 510}, "project": {"id": 316, "owner": {"id": 736}, "assignee": {"id": 810}}, "task": {"id": 398, "owner": {"id": 16}, "assignee": {"id": 1022}}, "job": {"id": 356, "assignee": {"id": 1123}}, "issue": {"id": 399, "owner": {"id": 1223}, "assignee": {"id": 1303}}, "organization": {"id": 1429}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "owner": {"id": 653}, "assignee": {"id": 589}, "project": {"id": 327, "owner": {"id": 799}, "assignee": {"id": 821}}, "task": {"id": 378, "owner": {"id": 62}, "assignee": {"id": 1029}}, "job": {"id": 320, "assignee": {"id": 1115}}, "issue": {"id": 344, "owner": {"id": 1200}, "assignee": {"id": 1369}}, "organization": {"id": 126}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "owner": {"id": 694}, "assignee": {"id": 517}, "project": {"id": 349, "owner": {"id": 735}, "assignee": {"id": 847}}, "task": {"id": 358, "owner": {"id": 93}, "assignee": {"id": 1062}}, "job": {"id": 373, "assignee": {"id": 1196}}, "issue": {"id": 318, "owner": {"id": 1226}, "assignee": {"id": 1312}}, "organization": {"id": 153}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "owner": {"id": 626}, "assignee": {"id": 530}, "project": {"id": 312, "owner": {"id": 774}, "assignee": {"id": 830}}, "task": {"id": 313, "owner": {"id": 84}, "assignee": {"id": 1033}}, "job": {"id": 358, "assignee": {"id": 1100}}, "issue": {"id": 383, "owner": {"id": 1271}, "assignee": {"id": 1384}}, "organization": {"id": 1461}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 683}, "assignee": {"id": 508}, "project": {"id": 315, "owner": {"id": 791}, "assignee": {"id": 884}}, "task": {"id": 384, "owner": {"id": 11}, "assignee": {"id": 1045}}, "job": {"id": 304, "assignee": {"id": 1137}}, "issue": {"id": 334, "owner": {"id": 1237}, "assignee": {"id": 1310}}, "organization": {"id": 1477}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "owner": {"id": 645}, "assignee": {"id": 577}, "project": {"id": 365, "owner": {"id": 760}, "assignee": {"id": 862}}, "task": {"id": 300, "owner": {"id": 74}, "assignee": {"id": 1043}}, "job": {"id": 301, "assignee": {"id": 1181}}, "issue": {"id": 311, "owner": {"id": 1238}, "assignee": {"id": 1385}}, "organization": {"id": 120}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 348, "owner": {"id": 682}, "assignee": {"id": 543}, "project": {"id": 322, "owner": {"id": 798}, "assignee": {"id": 871}}, "task": {"id": 349, "owner": {"id": 50}, "assignee": {"id": 1016}}, "job": {"id": 366, "assignee": {"id": 1128}}, "issue": {"id": 331, "owner": {"id": 1206}, "assignee": {"id": 1349}}, "organization": {"id": 190}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "owner": {"id": 650}, "assignee": {"id": 523}, "project": {"id": 383, "owner": {"id": 730}, "assignee": {"id": 824}}, "task": {"id": 367, "owner": {"id": 54}, "assignee": {"id": 1096}}, "job": {"id": 329, "assignee": {"id": 1172}}, "issue": {"id": 357, "owner": {"id": 1223}, "assignee": {"id": 1370}}, "organization": {"id": 1441}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "owner": {"id": 673}, "assignee": {"id": 502}, "project": {"id": 324, "owner": {"id": 798}, "assignee": {"id": 861}}, "task": {"id": 384, "owner": {"id": 61}, "assignee": {"id": 1037}}, "job": {"id": 368, "assignee": {"id": 1100}}, "issue": {"id": 399, "owner": {"id": 1236}, "assignee": {"id": 1348}}, "organization": {"id": 1464}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 310, "owner": {"id": 684}, "assignee": {"id": 506}, "project": {"id": 324, "owner": {"id": 752}, "assignee": {"id": 831}}, "task": {"id": 359, "owner": {"id": 60}, "assignee": {"id": 1052}}, "job": {"id": 382, "assignee": {"id": 1139}}, "issue": {"id": 361, "owner": {"id": 1205}, "assignee": {"id": 1374}}, "organization": {"id": 173}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 351, "owner": {"id": 646}, "assignee": {"id": 563}, "project": {"id": 339, "owner": {"id": 701}, "assignee": {"id": 849}}, "task": {"id": 346, "owner": {"id": 72}, "assignee": {"id": 1022}}, "job": {"id": 323, "assignee": {"id": 1106}}, "issue": {"id": 353, "owner": {"id": 1259}, "assignee": {"id": 1393}}, "organization": {"id": 166}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 369, "owner": {"id": 603}, "assignee": {"id": 588}, "project": {"id": 320, "owner": {"id": 760}, "assignee": {"id": 823}}, "task": {"id": 300, "owner": {"id": 97}, "assignee": {"id": 1030}}, "job": {"id": 377, "assignee": {"id": 1132}}, "issue": {"id": 328, "owner": {"id": 1290}, "assignee": {"id": 1382}}, "organization": {"id": 1492}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 397, "owner": {"id": 675}, "assignee": {"id": 595}, "project": {"id": 370, "owner": {"id": 776}, "assignee": {"id": 871}}, "task": {"id": 325, "owner": {"id": 56}, "assignee": {"id": 1098}}, "job": {"id": 371, "assignee": {"id": 1129}}, "issue": {"id": 325, "owner": {"id": 1286}, "assignee": {"id": 1312}}, "organization": {"id": 1424}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 397, "owner": {"id": 657}, "assignee": {"id": 582}, "project": {"id": 343, "owner": {"id": 715}, "assignee": {"id": 810}}, "task": {"id": 377, "owner": {"id": 35}, "assignee": {"id": 1042}}, "job": {"id": 399, "assignee": {"id": 1175}}, "issue": {"id": 365, "owner": {"id": 1250}, "assignee": {"id": 1322}}, "organization": {"id": 128}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 369, "owner": {"id": 614}, "assignee": {"id": 574}, "project": {"id": 376, "owner": {"id": 731}, "assignee": {"id": 864}}, "task": {"id": 333, "owner": {"id": 77}, "assignee": {"id": 1071}}, "job": {"id": 385, "assignee": {"id": 1105}}, "issue": {"id": 324, "owner": {"id": 1291}, "assignee": {"id": 1376}}, "organization": {"id": 109}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 602}, "assignee": {"id": 522}, "project": {"id": 354, "owner": {"id": 719}, "assignee": {"id": 876}}, "task": {"id": 393, "owner": {"id": 72}, "assignee": {"id": 1028}}, "job": {"id": 319, "assignee": {"id": 1115}}, "issue": {"id": 356, "owner": {"id": 1297}, "assignee": {"id": 1327}}, "organization": {"id": 1473}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 610}, "assignee": {"id": 587}, "project": {"id": 359, "owner": {"id": 708}, "assignee": {"id": 805}}, "task": {"id": 312, "owner": {"id": 64}, "assignee": {"id": 1056}}, "job": {"id": 363, "assignee": {"id": 1186}}, "issue": {"id": 379, "owner": {"id": 1286}, "assignee": {"id": 1318}}, "organization": {"id": 1493}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 312, "owner": {"id": 655}, "assignee": {"id": 542}, "project": {"id": 331, "owner": {"id": 720}, "assignee": {"id": 840}}, "task": {"id": 376, "owner": {"id": 94}, "assignee": {"id": 1013}}, "job": {"id": 355, "assignee": {"id": 1105}}, "issue": {"id": 386, "owner": {"id": 1245}, "assignee": {"id": 1311}}, "organization": {"id": 148}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 356, "owner": {"id": 677}, "assignee": {"id": 507}, "project": {"id": 397, "owner": {"id": 762}, "assignee": {"id": 809}}, "task": {"id": 366, "owner": {"id": 59}, "assignee": {"id": 1038}}, "job": {"id": 377, "assignee": {"id": 1118}}, "issue": {"id": 389, "owner": {"id": 1256}, "assignee": {"id": 1335}}, "organization": {"id": 136}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 684}, "assignee": {"id": 521}, "project": {"id": 375, "owner": {"id": 704}, "assignee": {"id": 808}}, "task": {"id": 369, "owner": {"id": 96}, "assignee": {"id": 1042}}, "job": {"id": 342, "assignee": {"id": 1147}}, "issue": {"id": 319, "owner": {"id": 1262}, "assignee": {"id": 1374}}, "organization": {"id": 1409}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 362, "owner": {"id": 692}, "assignee": {"id": 575}, "project": {"id": 393, "owner": {"id": 710}, "assignee": {"id": 837}}, "task": {"id": 368, "owner": {"id": 14}, "assignee": {"id": 1072}}, "job": {"id": 309, "assignee": {"id": 1123}}, "issue": {"id": 399, "owner": {"id": 1294}, "assignee": {"id": 1377}}, "organization": {"id": 1414}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 389, "owner": {"id": 619}, "assignee": {"id": 591}, "project": {"id": 315, "owner": {"id": 762}, "assignee": {"id": 886}}, "task": {"id": 308, "owner": {"id": 35}, "assignee": {"id": 1076}}, "job": {"id": 300, "assignee": {"id": 1161}}, "issue": {"id": 370, "owner": {"id": 1278}, "assignee": {"id": 1334}}, "organization": {"id": 107}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "owner": {"id": 691}, "assignee": {"id": 579}, "project": {"id": 315, "owner": {"id": 774}, "assignee": {"id": 827}}, "task": {"id": 389, "owner": {"id": 76}, "assignee": {"id": 1043}}, "job": {"id": 305, "assignee": {"id": 1120}}, "issue": {"id": 393, "owner": {"id": 1234}, "assignee": {"id": 1383}}, "organization": {"id": 174}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "owner": {"id": 632}, "assignee": {"id": 578}, "project": {"id": 344, "owner": {"id": 725}, "assignee": {"id": 893}}, "task": {"id": 380, "owner": {"id": 26}, "assignee": {"id": 1094}}, "job": {"id": 365, "assignee": {"id": 1135}}, "issue": {"id": 312, "owner": {"id": 1207}, "assignee": {"id": 1380}}, "organization": {"id": 1486}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 648}, "assignee": {"id": 575}, "project": {"id": 353, "owner": {"id": 715}, "assignee": {"id": 818}}, "task": {"id": 331, "owner": {"id": 82}, "assignee": {"id": 1057}}, "job": {"id": 358, "assignee": {"id": 1107}}, "issue": {"id": 336, "owner": {"id": 1267}, "assignee": {"id": 1321}}, "organization": {"id": 1497}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 665}, "assignee": {"id": 582}, "project": {"id": 314, "owner": {"id": 786}, "assignee": {"id": 846}}, "task": {"id": 379, "owner": {"id": 31}, "assignee": {"id": 1018}}, "job": {"id": 321, "assignee": {"id": 1138}}, "issue": {"id": 326, "owner": {"id": 1286}, "assignee": {"id": 1364}}, "organization": {"id": 167}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "owner": {"id": 603}, "assignee": {"id": 555}, "project": {"id": 350, "owner": {"id": 706}, "assignee": {"id": 817}}, "task": {"id": 303, "owner": {"id": 86}, "assignee": {"id": 1075}}, "job": {"id": 346, "assignee": {"id": 1110}}, "issue": {"id": 304, "owner": {"id": 1227}, "assignee": {"id": 1347}}, "organization": {"id": 141}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "owner": {"id": 613}, "assignee": {"id": 518}, "project": {"id": 351, "owner": {"id": 751}, "assignee": {"id": 837}}, "task": {"id": 359, "owner": {"id": 5}, "assignee": {"id": 1033}}, "job": {"id": 376, "assignee": {"id": 1165}}, "issue": {"id": 363, "owner": {"id": 1239}, "assignee": {"id": 1304}}, "organization": {"id": 1456}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "owner": {"id": 613}, "assignee": {"id": 595}, "project": {"id": 319, "owner": {"id": 757}, "assignee": {"id": 818}}, "task": {"id": 381, "owner": {"id": 0}, "assignee": {"id": 1027}}, "job": {"id": 308, "assignee": {"id": 1186}}, "issue": {"id": 305, "owner": {"id": 1233}, "assignee": {"id": 1391}}, "organization": {"id": 1478}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 307, "owner": {"id": 667}, "assignee": {"id": 576}, "project": {"id": 311, "owner": {"id": 721}, "assignee": {"id": 807}}, "task": {"id": 366, "owner": {"id": 23}, "assignee": {"id": 1077}}, "job": {"id": 369, "assignee": {"id": 1146}}, "issue": {"id": 350, "owner": {"id": 1287}, "assignee": {"id": 1377}}, "organization": {"id": 131}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 363, "owner": {"id": 608}, "assignee": {"id": 538}, "project": {"id": 366, "owner": {"id": 787}, "assignee": {"id": 899}}, "task": {"id": 369, "owner": {"id": 6}, "assignee": {"id": 1099}}, "job": {"id": 387, "assignee": {"id": 1171}}, "issue": {"id": 335, "owner": {"id": 1247}, "assignee": {"id": 1308}}, "organization": {"id": 167}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 651}, "assignee": {"id": 539}, "project": {"id": 330, "owner": {"id": 767}, "assignee": {"id": 801}}, "task": {"id": 383, "owner": {"id": 1}, "assignee": {"id": 1043}}, "job": {"id": 349, "assignee": {"id": 1198}}, "issue": {"id": 340, "owner": {"id": 1283}, "assignee": {"id": 1319}}, "organization": {"id": 1488}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 320, "owner": {"id": 632}, "assignee": {"id": 512}, "project": {"id": 383, "owner": {"id": 797}, "assignee": {"id": 822}}, "task": {"id": 333, "owner": {"id": 26}, "assignee": {"id": 1087}}, "job": {"id": 364, "assignee": {"id": 1169}}, "issue": {"id": 364, "owner": {"id": 1209}, "assignee": {"id": 1381}}, "organization": {"id": 1475}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 355, "owner": {"id": 682}, "assignee": {"id": 571}, "project": {"id": 399, "owner": {"id": 707}, "assignee": {"id": 841}}, "task": {"id": 347, "owner": {"id": 80}, "assignee": {"id": 1056}}, "job": {"id": 309, "assignee": {"id": 1190}}, "issue": {"id": 371, "owner": {"id": 1250}, "assignee": {"id": 1385}}, "organization": {"id": 168}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 377, "owner": {"id": 619}, "assignee": {"id": 564}, "project": {"id": 354, "owner": {"id": 751}, "assignee": {"id": 896}}, "task": {"id": 318, "owner": {"id": 80}, "assignee": {"id": 1053}}, "job": {"id": 354, "assignee": {"id": 1187}}, "issue": {"id": 386, "owner": {"id": 1230}, "assignee": {"id": 1303}}, "organization": {"id": 166}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 371, "owner": {"id": 699}, "assignee": {"id": 511}, "project": {"id": 359, "owner": {"id": 705}, "assignee": {"id": 864}}, "task": {"id": 347, "owner": {"id": 44}, "assignee": {"id": 1012}}, "job": {"id": 356, "assignee": {"id": 1172}}, "issue": {"id": 341, "owner": {"id": 1243}, "assignee": {"id": 1312}}, "organization": {"id": 1495}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 386, "owner": {"id": 664}, "assignee": {"id": 554}, "project": {"id": 359, "owner": {"id": 771}, "assignee": {"id": 830}}, "task": {"id": 351, "owner": {"id": 25}, "assignee": {"id": 1060}}, "job": {"id": 391, "assignee": {"id": 1193}}, "issue": {"id": 325, "owner": {"id": 1276}, "assignee": {"id": 1378}}, "organization": {"id": 1497}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 339, "owner": {"id": 663}, "assignee": {"id": 545}, "project": {"id": 360, "owner": {"id": 741}, "assignee": {"id": 877}}, "task": {"id": 334, "owner": {"id": 44}, "assignee": {"id": 1038}}, "job": {"id": 340, "assignee": {"id": 1165}}, "issue": {"id": 365, "owner": {"id": 1262}, "assignee": {"id": 1396}}, "organization": {"id": 136}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 667}, "assignee": {"id": 517}, "project": {"id": 392, "owner": {"id": 707}, "assignee": {"id": 816}}, "task": {"id": 323, "owner": {"id": 61}, "assignee": {"id": 1031}}, "job": {"id": 309, "assignee": {"id": 1126}}, "issue": {"id": 316, "owner": {"id": 1255}, "assignee": {"id": 1340}}, "organization": {"id": 184}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 379, "owner": {"id": 682}, "assignee": {"id": 548}, "project": {"id": 319, "owner": {"id": 748}, "assignee": {"id": 857}}, "task": {"id": 371, "owner": {"id": 36}, "assignee": {"id": 1066}}, "job": {"id": 380, "assignee": {"id": 1192}}, "issue": {"id": 385, "owner": {"id": 1255}, "assignee": {"id": 1385}}, "organization": {"id": 1430}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 314, "owner": {"id": 601}, "assignee": {"id": 524}, "project": {"id": 349, "owner": {"id": 711}, "assignee": {"id": 804}}, "task": {"id": 337, "owner": {"id": 93}, "assignee": {"id": 1004}}, "job": {"id": 310, "assignee": {"id": 1193}}, "issue": {"id": 374, "owner": {"id": 1263}, "assignee": {"id": 1343}}, "organization": {"id": 1479}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "owner": {"id": 693}, "assignee": {"id": 568}, "project": {"id": 333, "owner": {"id": 734}, "assignee": {"id": 834}}, "task": {"id": 353, "owner": {"id": 58}, "assignee": {"id": 1018}}, "job": {"id": 360, "assignee": {"id": 1135}}, "issue": {"id": 309, "owner": {"id": 1208}, "assignee": {"id": 1331}}, "organization": {"id": 183}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 605}, "assignee": {"id": 534}, "project": {"id": 312, "owner": {"id": 750}, "assignee": {"id": 823}}, "task": {"id": 397, "owner": {"id": 25}, "assignee": {"id": 1005}}, "job": {"id": 371, "assignee": {"id": 1120}}, "issue": {"id": 354, "owner": {"id": 1220}, "assignee": {"id": 1301}}, "organization": {"id": 187}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "owner": {"id": 665}, "assignee": {"id": 552}, "project": {"id": 395, "owner": {"id": 774}, "assignee": {"id": 826}}, "task": {"id": 394, "owner": {"id": 82}, "assignee": {"id": 1095}}, "job": {"id": 327, "assignee": {"id": 1195}}, "issue": {"id": 310, "owner": {"id": 1269}, "assignee": {"id": 1397}}, "organization": {"id": 1424}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 627}, "assignee": {"id": 546}, "project": {"id": 303, "owner": {"id": 703}, "assignee": {"id": 854}}, "task": {"id": 382, "owner": {"id": 85}, "assignee": {"id": 1096}}, "job": {"id": 322, "assignee": {"id": 1146}}, "issue": {"id": 327, "owner": {"id": 1255}, "assignee": {"id": 1399}}, "organization": {"id": 1425}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 672}, "assignee": {"id": 578}, "project": {"id": 358, "owner": {"id": 718}, "assignee": {"id": 813}}, "task": {"id": 316, "owner": {"id": 70}, "assignee": {"id": 1040}}, "job": {"id": 353, "assignee": {"id": 1112}}, "issue": {"id": 339, "owner": {"id": 1254}, "assignee": {"id": 1389}}, "organization": {"id": 125}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "owner": {"id": 687}, "assignee": {"id": 580}, "project": {"id": 317, "owner": {"id": 735}, "assignee": {"id": 805}}, "task": {"id": 373, "owner": {"id": 91}, "assignee": {"id": 1008}}, "job": {"id": 324, "assignee": {"id": 1142}}, "issue": {"id": 377, "owner": {"id": 1288}, "assignee": {"id": 1301}}, "organization": {"id": 148}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 343, "owner": {"id": 601}, "assignee": {"id": 522}, "project": {"id": 307, "owner": {"id": 784}, "assignee": {"id": 895}}, "task": {"id": 321, "owner": {"id": 73}, "assignee": {"id": 1063}}, "job": {"id": 332, "assignee": {"id": 1142}}, "issue": {"id": 342, "owner": {"id": 1287}, "assignee": {"id": 1347}}, "organization": {"id": 1452}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 627}, "assignee": {"id": 508}, "project": {"id": 382, "owner": {"id": 777}, "assignee": {"id": 801}}, "task": {"id": 316, "owner": {"id": 17}, "assignee": {"id": 1099}}, "job": {"id": 302, "assignee": {"id": 1122}}, "issue": {"id": 326, "owner": {"id": 1227}, "assignee": {"id": 1356}}, "organization": {"id": 1457}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 620}, "assignee": {"id": 579}, "project": {"id": 396, "owner": {"id": 730}, "assignee": {"id": 842}}, "task": {"id": 336, "owner": {"id": 25}, "assignee": {"id": 1011}}, "job": {"id": 381, "assignee": {"id": 1125}}, "issue": {"id": 392, "owner": {"id": 1203}, "assignee": {"id": 1314}}, "organization": {"id": 107}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 321, "owner": {"id": 661}, "assignee": {"id": 522}, "project": {"id": 343, "owner": {"id": 705}, "assignee": {"id": 892}}, "task": {"id": 317, "owner": {"id": 51}, "assignee": {"id": 1060}}, "job": {"id": 374, "assignee": {"id": 1190}}, "issue": {"id": 384, "owner": {"id": 1277}, "assignee": {"id": 1301}}, "organization": {"id": 155}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 653}, "assignee": {"id": 520}, "project": {"id": 363, "owner": {"id": 719}, "assignee": {"id": 884}}, "task": {"id": 320, "owner": {"id": 48}, "assignee": {"id": 1069}}, "job": {"id": 334, "assignee": {"id": 1112}}, "issue": {"id": 340, "owner": {"id": 1220}, "assignee": {"id": 1376}}, "organization": {"id": 1416}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 663}, "assignee": {"id": 577}, "project": {"id": 308, "owner": {"id": 759}, "assignee": {"id": 875}}, "task": {"id": 350, "owner": {"id": 71}, "assignee": {"id": 1069}}, "job": {"id": 334, "assignee": {"id": 1145}}, "issue": {"id": 387, "owner": {"id": 1259}, "assignee": {"id": 1389}}, "organization": {"id": 1439}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 334, "owner": {"id": 682}, "assignee": {"id": 536}, "project": {"id": 330, "owner": {"id": 702}, "assignee": {"id": 819}}, "task": {"id": 356, "owner": {"id": 89}, "assignee": {"id": 1004}}, "job": {"id": 363, "assignee": {"id": 1117}}, "issue": {"id": 393, "owner": {"id": 1247}, "assignee": {"id": 1358}}, "organization": {"id": 182}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 635}, "assignee": {"id": 529}, "project": {"id": 326, "owner": {"id": 751}, "assignee": {"id": 854}}, "task": {"id": 336, "owner": {"id": 74}, "assignee": {"id": 1010}}, "job": {"id": 335, "assignee": {"id": 1152}}, "issue": {"id": 328, "owner": {"id": 1259}, "assignee": {"id": 1371}}, "organization": {"id": 141}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 390, "owner": {"id": 684}, "assignee": {"id": 514}, "project": {"id": 311, "owner": {"id": 770}, "assignee": {"id": 852}}, "task": {"id": 355, "owner": {"id": 16}, "assignee": {"id": 1038}}, "job": {"id": 338, "assignee": {"id": 1155}}, "issue": {"id": 326, "owner": {"id": 1202}, "assignee": {"id": 1320}}, "organization": {"id": 1405}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 304, "owner": {"id": 627}, "assignee": {"id": 509}, "project": {"id": 346, "owner": {"id": 759}, "assignee": {"id": 897}}, "task": {"id": 396, "owner": {"id": 37}, "assignee": {"id": 1064}}, "job": {"id": 364, "assignee": {"id": 1121}}, "issue": {"id": 344, "owner": {"id": 1248}, "assignee": {"id": 1336}}, "organization": {"id": 1450}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 304, "owner": {"id": 671}, "assignee": {"id": 542}, "project": {"id": 320, "owner": {"id": 783}, "assignee": {"id": 833}}, "task": {"id": 364, "owner": {"id": 86}, "assignee": {"id": 1036}}, "job": {"id": 344, "assignee": {"id": 1103}}, "issue": {"id": 375, "owner": {"id": 1274}, "assignee": {"id": 1310}}, "organization": {"id": 195}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 386, "owner": {"id": 654}, "assignee": {"id": 530}, "project": {"id": 398, "owner": {"id": 793}, "assignee": {"id": 823}}, "task": {"id": 395, "owner": {"id": 90}, "assignee": {"id": 1011}}, "job": {"id": 380, "assignee": {"id": 1168}}, "issue": {"id": 326, "owner": {"id": 1298}, "assignee": {"id": 1374}}, "organization": {"id": 199}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 610}, "assignee": {"id": 527}, "project": {"id": 379, "owner": {"id": 702}, "assignee": {"id": 800}}, "task": {"id": 390, "owner": {"id": 27}, "assignee": {"id": 1089}}, "job": {"id": 373, "assignee": {"id": 1181}}, "issue": {"id": 334, "owner": {"id": 1223}, "assignee": {"id": 1333}}, "organization": {"id": 1404}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 648}, "assignee": {"id": 554}, "project": {"id": 310, "owner": {"id": 713}, "assignee": {"id": 885}}, "task": {"id": 319, "owner": {"id": 92}, "assignee": {"id": 1082}}, "job": {"id": 392, "assignee": {"id": 1131}}, "issue": {"id": 323, "owner": {"id": 1270}, "assignee": {"id": 1374}}, "organization": {"id": 1497}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 608}, "assignee": {"id": 532}, "project": {"id": 354, "owner": {"id": 724}, "assignee": {"id": 815}}, "task": {"id": 313, "owner": {"id": 76}, "assignee": {"id": 1051}}, "job": {"id": 340, "assignee": {"id": 1199}}, "issue": {"id": 317, "owner": {"id": 1230}, "assignee": {"id": 1340}}, "organization": {"id": 184}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "owner": {"id": 683}, "assignee": {"id": 596}, "project": {"id": 303, "owner": {"id": 736}, "assignee": {"id": 892}}, "task": {"id": 316, "owner": {"id": 12}, "assignee": {"id": 1065}}, "job": {"id": 353, "assignee": {"id": 1151}}, "issue": {"id": 364, "owner": {"id": 1288}, "assignee": {"id": 1357}}, "organization": {"id": 107}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 657}, "assignee": {"id": 552}, "project": {"id": 307, "owner": {"id": 761}, "assignee": {"id": 828}}, "task": {"id": 346, "owner": {"id": 15}, "assignee": {"id": 1071}}, "job": {"id": 336, "assignee": {"id": 1106}}, "issue": {"id": 357, "owner": {"id": 1252}, "assignee": {"id": 1319}}, "organization": {"id": 1408}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 697}, "assignee": {"id": 593}, "project": {"id": 368, "owner": {"id": 745}, "assignee": {"id": 868}}, "task": {"id": 361, "owner": {"id": 56}, "assignee": {"id": 1073}}, "job": {"id": 385, "assignee": {"id": 1199}}, "issue": {"id": 355, "owner": {"id": 1220}, "assignee": {"id": 1332}}, "organization": {"id": 1488}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 655}, "assignee": {"id": 581}, "project": {"id": 311, "owner": {"id": 734}, "assignee": {"id": 879}}, "task": {"id": 366, "owner": {"id": 20}, "assignee": {"id": 1097}}, "job": {"id": 345, "assignee": {"id": 1188}}, "issue": {"id": 320, "owner": {"id": 1293}, "assignee": {"id": 1383}}, "organization": {"id": 169}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "owner": {"id": 668}, "assignee": {"id": 530}, "project": {"id": 368, "owner": {"id": 716}, "assignee": {"id": 843}}, "task": {"id": 387, "owner": {"id": 75}, "assignee": {"id": 1056}}, "job": {"id": 399, "assignee": {"id": 1124}}, "issue": {"id": 310, "owner": {"id": 1232}, "assignee": {"id": 1336}}, "organization": {"id": 136}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "owner": {"id": 631}, "assignee": {"id": 547}, "project": {"id": 310, "owner": {"id": 720}, "assignee": {"id": 852}}, "task": {"id": 375, "owner": {"id": 3}, "assignee": {"id": 1036}}, "job": {"id": 349, "assignee": {"id": 1173}}, "issue": {"id": 360, "owner": {"id": 1207}, "assignee": {"id": 1324}}, "organization": {"id": 1485}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "owner": {"id": 615}, "assignee": {"id": 565}, "project": {"id": 338, "owner": {"id": 787}, "assignee": {"id": 820}}, "task": {"id": 360, "owner": {"id": 99}, "assignee": {"id": 1087}}, "job": {"id": 332, "assignee": {"id": 1159}}, "issue": {"id": 351, "owner": {"id": 1239}, "assignee": {"id": 1352}}, "organization": {"id": 1461}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 387, "owner": {"id": 653}, "assignee": {"id": 529}, "project": {"id": 307, "owner": {"id": 724}, "assignee": {"id": 882}}, "task": {"id": 382, "owner": {"id": 24}, "assignee": {"id": 1077}}, "job": {"id": 385, "assignee": {"id": 1192}}, "issue": {"id": 390, "owner": {"id": 1246}, "assignee": {"id": 1364}}, "organization": {"id": 166}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 306, "owner": {"id": 654}, "assignee": {"id": 568}, "project": {"id": 347, "owner": {"id": 791}, "assignee": {"id": 888}}, "task": {"id": 334, "owner": {"id": 1}, "assignee": {"id": 1033}}, "job": {"id": 365, "assignee": {"id": 1196}}, "issue": {"id": 362, "owner": {"id": 1244}, "assignee": {"id": 1372}}, "organization": {"id": 140}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 660}, "assignee": {"id": 522}, "project": {"id": 398, "owner": {"id": 782}, "assignee": {"id": 832}}, "task": {"id": 383, "owner": {"id": 18}, "assignee": {"id": 1095}}, "job": {"id": 322, "assignee": {"id": 1127}}, "issue": {"id": 325, "owner": {"id": 1283}, "assignee": {"id": 1382}}, "organization": {"id": 1498}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 19, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 387, "owner": {"id": 641}, "assignee": {"id": 517}, "project": {"id": 340, "owner": {"id": 732}, "assignee": {"id": 839}}, "task": {"id": 327, "owner": {"id": 19}, "assignee": {"id": 1069}}, "job": {"id": 392, "assignee": {"id": 1149}}, "issue": {"id": 335, "owner": {"id": 1230}, "assignee": {"id": 1335}}, "organization": {"id": 1417}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 357, "owner": {"id": 613}, "assignee": {"id": 544}, "project": {"id": 343, "owner": {"id": 726}, "assignee": {"id": 863}}, "task": {"id": 362, "owner": {"id": 29}, "assignee": {"id": 1045}}, "job": {"id": 324, "assignee": {"id": 1188}}, "issue": {"id": 359, "owner": {"id": 1277}, "assignee": {"id": 1348}}, "organization": {"id": 152}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 327, "owner": {"id": 605}, "assignee": {"id": 590}, "project": {"id": 309, "owner": {"id": 791}, "assignee": {"id": 834}}, "task": {"id": 333, "owner": {"id": 88}, "assignee": {"id": 1058}}, "job": {"id": 392, "assignee": {"id": 1112}}, "issue": {"id": 318, "owner": {"id": 1276}, "assignee": {"id": 1366}}, "organization": {"id": 175}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 317, "owner": {"id": 663}, "assignee": {"id": 521}, "project": {"id": 383, "owner": {"id": 771}, "assignee": {"id": 859}}, "task": {"id": 333, "owner": {"id": 81}, "assignee": {"id": 1027}}, "job": {"id": 351, "assignee": {"id": 1178}}, "issue": {"id": 358, "owner": {"id": 1298}, "assignee": {"id": 1310}}, "organization": {"id": 1493}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 325, "owner": {"id": 671}, "assignee": {"id": 540}, "project": {"id": 398, "owner": {"id": 706}, "assignee": {"id": 854}}, "task": {"id": 316, "owner": {"id": 84}, "assignee": {"id": 1022}}, "job": {"id": 331, "assignee": {"id": 1101}}, "issue": {"id": 319, "owner": {"id": 1230}, "assignee": {"id": 1311}}, "organization": {"id": 1406}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 374, "owner": {"id": 602}, "assignee": {"id": 534}, "project": {"id": 352, "owner": {"id": 728}, "assignee": {"id": 891}}, "task": {"id": 353, "owner": {"id": 913}, "assignee": {"id": 30}}, "job": {"id": 366, "assignee": {"id": 1150}}, "issue": {"id": 320, "owner": {"id": 1205}, "assignee": {"id": 1391}}, "organization": {"id": 112}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 374, "owner": {"id": 607}, "assignee": {"id": 507}, "project": {"id": 336, "owner": {"id": 731}, "assignee": {"id": 800}}, "task": {"id": 364, "owner": {"id": 933}, "assignee": {"id": 93}}, "job": {"id": 326, "assignee": {"id": 1182}}, "issue": {"id": 361, "owner": {"id": 1218}, "assignee": {"id": 1342}}, "organization": {"id": 154}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 7, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 683}, "assignee": {"id": 550}, "project": {"id": 330, "owner": {"id": 755}, "assignee": {"id": 838}}, "task": {"id": 332, "owner": {"id": 941}, "assignee": {"id": 7}}, "job": {"id": 330, "assignee": {"id": 1140}}, "issue": {"id": 324, "owner": {"id": 1225}, "assignee": {"id": 1398}}, "organization": {"id": 1404}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 678}, "assignee": {"id": 527}, "project": {"id": 386, "owner": {"id": 747}, "assignee": {"id": 877}}, "task": {"id": 312, "owner": {"id": 921}, "assignee": {"id": 27}}, "job": {"id": 329, "assignee": {"id": 1172}}, "issue": {"id": 312, "owner": {"id": 1267}, "assignee": {"id": 1394}}, "organization": {"id": 1431}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "owner": {"id": 683}, "assignee": {"id": 567}, "project": {"id": 386, "owner": {"id": 711}, "assignee": {"id": 822}}, "task": {"id": 362, "owner": {"id": 978}, "assignee": {"id": 57}}, "job": {"id": 306, "assignee": {"id": 1130}}, "issue": {"id": 368, "owner": {"id": 1239}, "assignee": {"id": 1310}}, "organization": {"id": 141}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "owner": {"id": 684}, "assignee": {"id": 535}, "project": {"id": 365, "owner": {"id": 757}, "assignee": {"id": 878}}, "task": {"id": 345, "owner": {"id": 939}, "assignee": {"id": 47}}, "job": {"id": 371, "assignee": {"id": 1184}}, "issue": {"id": 331, "owner": {"id": 1250}, "assignee": {"id": 1384}}, "organization": {"id": 147}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "owner": {"id": 679}, "assignee": {"id": 549}, "project": {"id": 361, "owner": {"id": 701}, "assignee": {"id": 862}}, "task": {"id": 362, "owner": {"id": 940}, "assignee": {"id": 23}}, "job": {"id": 381, "assignee": {"id": 1151}}, "issue": {"id": 352, "owner": {"id": 1200}, "assignee": {"id": 1318}}, "organization": {"id": 1456}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 7, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "owner": {"id": 660}, "assignee": {"id": 568}, "project": {"id": 309, "owner": {"id": 711}, "assignee": {"id": 843}}, "task": {"id": 341, "owner": {"id": 989}, "assignee": {"id": 7}}, "job": {"id": 390, "assignee": {"id": 1113}}, "issue": {"id": 329, "owner": {"id": 1276}, "assignee": {"id": 1316}}, "organization": {"id": 1408}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 671}, "assignee": {"id": 511}, "project": {"id": 300, "owner": {"id": 742}, "assignee": {"id": 822}}, "task": {"id": 306, "owner": {"id": 984}, "assignee": {"id": 12}}, "job": {"id": 339, "assignee": {"id": 1126}}, "issue": {"id": 350, "owner": {"id": 1222}, "assignee": {"id": 1304}}, "organization": {"id": 162}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "owner": {"id": 669}, "assignee": {"id": 595}, "project": {"id": 369, "owner": {"id": 785}, "assignee": {"id": 855}}, "task": {"id": 333, "owner": {"id": 939}, "assignee": {"id": 31}}, "job": {"id": 371, "assignee": {"id": 1171}}, "issue": {"id": 316, "owner": {"id": 1271}, "assignee": {"id": 1339}}, "organization": {"id": 105}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "owner": {"id": 693}, "assignee": {"id": 538}, "project": {"id": 311, "owner": {"id": 704}, "assignee": {"id": 885}}, "task": {"id": 306, "owner": {"id": 944}, "assignee": {"id": 72}}, "job": {"id": 317, "assignee": {"id": 1150}}, "issue": {"id": 316, "owner": {"id": 1273}, "assignee": {"id": 1376}}, "organization": {"id": 1435}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 600}, "assignee": {"id": 529}, "project": {"id": 321, "owner": {"id": 767}, "assignee": {"id": 815}}, "task": {"id": 324, "owner": {"id": 950}, "assignee": {"id": 32}}, "job": {"id": 311, "assignee": {"id": 1162}}, "issue": {"id": 306, "owner": {"id": 1264}, "assignee": {"id": 1323}}, "organization": {"id": 1466}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 391, "owner": {"id": 651}, "assignee": {"id": 517}, "project": {"id": 350, "owner": {"id": 798}, "assignee": {"id": 895}}, "task": {"id": 379, "owner": {"id": 997}, "assignee": {"id": 71}}, "job": {"id": 343, "assignee": {"id": 1179}}, "issue": {"id": 392, "owner": {"id": 1251}, "assignee": {"id": 1344}}, "organization": {"id": 144}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 364, "owner": {"id": 686}, "assignee": {"id": 539}, "project": {"id": 352, "owner": {"id": 724}, "assignee": {"id": 890}}, "task": {"id": 370, "owner": {"id": 992}, "assignee": {"id": 38}}, "job": {"id": 317, "assignee": {"id": 1193}}, "issue": {"id": 300, "owner": {"id": 1221}, "assignee": {"id": 1323}}, "organization": {"id": 169}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 696}, "assignee": {"id": 518}, "project": {"id": 351, "owner": {"id": 797}, "assignee": {"id": 846}}, "task": {"id": 366, "owner": {"id": 936}, "assignee": {"id": 4}}, "job": {"id": 327, "assignee": {"id": 1100}}, "issue": {"id": 346, "owner": {"id": 1245}, "assignee": {"id": 1361}}, "organization": {"id": 1485}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 381, "owner": {"id": 633}, "assignee": {"id": 566}, "project": {"id": 335, "owner": {"id": 781}, "assignee": {"id": 871}}, "task": {"id": 328, "owner": {"id": 945}, "assignee": {"id": 74}}, "job": {"id": 353, "assignee": {"id": 1149}}, "issue": {"id": 396, "owner": {"id": 1290}, "assignee": {"id": 1379}}, "organization": {"id": 1491}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 36, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 393, "owner": {"id": 648}, "assignee": {"id": 530}, "project": {"id": 398, "owner": {"id": 734}, "assignee": {"id": 821}}, "task": {"id": 328, "owner": {"id": 994}, "assignee": {"id": 36}}, "job": {"id": 369, "assignee": {"id": 1124}}, "issue": {"id": 334, "owner": {"id": 1216}, "assignee": {"id": 1340}}, "organization": {"id": 110}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 352, "owner": {"id": 660}, "assignee": {"id": 513}, "project": {"id": 388, "owner": {"id": 720}, "assignee": {"id": 821}}, "task": {"id": 367, "owner": {"id": 912}, "assignee": {"id": 48}}, "job": {"id": 304, "assignee": {"id": 1165}}, "issue": {"id": 361, "owner": {"id": 1251}, "assignee": {"id": 1339}}, "organization": {"id": 153}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 365, "owner": {"id": 689}, "assignee": {"id": 552}, "project": {"id": 312, "owner": {"id": 720}, "assignee": {"id": 821}}, "task": {"id": 392, "owner": {"id": 967}, "assignee": {"id": 5}}, "job": {"id": 311, "assignee": {"id": 1140}}, "issue": {"id": 392, "owner": {"id": 1229}, "assignee": {"id": 1300}}, "organization": {"id": 1495}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 311, "owner": {"id": 682}, "assignee": {"id": 597}, "project": {"id": 324, "owner": {"id": 779}, "assignee": {"id": 892}}, "task": {"id": 373, "owner": {"id": 965}, "assignee": {"id": 73}}, "job": {"id": 389, "assignee": {"id": 1102}}, "issue": {"id": 398, "owner": {"id": 1215}, "assignee": {"id": 1361}}, "organization": {"id": 1411}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 369, "owner": {"id": 603}, "assignee": {"id": 550}, "project": {"id": 358, "owner": {"id": 748}, "assignee": {"id": 874}}, "task": {"id": 393, "owner": {"id": 983}, "assignee": {"id": 85}}, "job": {"id": 309, "assignee": {"id": 1115}}, "issue": {"id": 347, "owner": {"id": 1228}, "assignee": {"id": 1326}}, "organization": {"id": 196}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 619}, "assignee": {"id": 561}, "project": {"id": 351, "owner": {"id": 771}, "assignee": {"id": 827}}, "task": {"id": 309, "owner": {"id": 963}, "assignee": {"id": 84}}, "job": {"id": 354, "assignee": {"id": 1189}}, "issue": {"id": 304, "owner": {"id": 1221}, "assignee": {"id": 1399}}, "organization": {"id": 186}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 395, "owner": {"id": 649}, "assignee": {"id": 581}, "project": {"id": 341, "owner": {"id": 706}, "assignee": {"id": 834}}, "task": {"id": 326, "owner": {"id": 976}, "assignee": {"id": 49}}, "job": {"id": 385, "assignee": {"id": 1183}}, "issue": {"id": 398, "owner": {"id": 1258}, "assignee": {"id": 1321}}, "organization": {"id": 1438}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 697}, "assignee": {"id": 568}, "project": {"id": 357, "owner": {"id": 740}, "assignee": {"id": 804}}, "task": {"id": 385, "owner": {"id": 927}, "assignee": {"id": 33}}, "job": {"id": 370, "assignee": {"id": 1186}}, "issue": {"id": 344, "owner": {"id": 1295}, "assignee": {"id": 1316}}, "organization": {"id": 1434}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "owner": {"id": 608}, "assignee": {"id": 576}, "project": {"id": 303, "owner": {"id": 789}, "assignee": {"id": 866}}, "task": {"id": 370, "owner": {"id": 996}, "assignee": {"id": 5}}, "job": {"id": 385, "assignee": {"id": 1138}}, "issue": {"id": 349, "owner": {"id": 1219}, "assignee": {"id": 1365}}, "organization": {"id": 110}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "owner": {"id": 667}, "assignee": {"id": 553}, "project": {"id": 332, "owner": {"id": 752}, "assignee": {"id": 835}}, "task": {"id": 357, "owner": {"id": 918}, "assignee": {"id": 56}}, "job": {"id": 357, "assignee": {"id": 1110}}, "issue": {"id": 374, "owner": {"id": 1297}, "assignee": {"id": 1381}}, "organization": {"id": 171}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "owner": {"id": 685}, "assignee": {"id": 528}, "project": {"id": 303, "owner": {"id": 738}, "assignee": {"id": 892}}, "task": {"id": 327, "owner": {"id": 920}, "assignee": {"id": 36}}, "job": {"id": 334, "assignee": {"id": 1117}}, "issue": {"id": 374, "owner": {"id": 1285}, "assignee": {"id": 1367}}, "organization": {"id": 1489}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "owner": {"id": 692}, "assignee": {"id": 544}, "project": {"id": 372, "owner": {"id": 768}, "assignee": {"id": 857}}, "task": {"id": 353, "owner": {"id": 935}, "assignee": {"id": 54}}, "job": {"id": 398, "assignee": {"id": 1101}}, "issue": {"id": 325, "owner": {"id": 1277}, "assignee": {"id": 1375}}, "organization": {"id": 1452}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "owner": {"id": 676}, "assignee": {"id": 591}, "project": {"id": 329, "owner": {"id": 787}, "assignee": {"id": 876}}, "task": {"id": 328, "owner": {"id": 947}, "assignee": {"id": 4}}, "job": {"id": 336, "assignee": {"id": 1160}}, "issue": {"id": 392, "owner": {"id": 1297}, "assignee": {"id": 1319}}, "organization": {"id": 185}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "owner": {"id": 671}, "assignee": {"id": 537}, "project": {"id": 320, "owner": {"id": 778}, "assignee": {"id": 869}}, "task": {"id": 300, "owner": {"id": 938}, "assignee": {"id": 84}}, "job": {"id": 378, "assignee": {"id": 1120}}, "issue": {"id": 383, "owner": {"id": 1219}, "assignee": {"id": 1366}}, "organization": {"id": 118}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "owner": {"id": 625}, "assignee": {"id": 557}, "project": {"id": 352, "owner": {"id": 719}, "assignee": {"id": 833}}, "task": {"id": 308, "owner": {"id": 971}, "assignee": {"id": 53}}, "job": {"id": 326, "assignee": {"id": 1153}}, "issue": {"id": 346, "owner": {"id": 1296}, "assignee": {"id": 1329}}, "organization": {"id": 1406}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "owner": {"id": 659}, "assignee": {"id": 571}, "project": {"id": 378, "owner": {"id": 770}, "assignee": {"id": 866}}, "task": {"id": 395, "owner": {"id": 964}, "assignee": {"id": 91}}, "job": {"id": 357, "assignee": {"id": 1122}}, "issue": {"id": 392, "owner": {"id": 1277}, "assignee": {"id": 1340}}, "organization": {"id": 1412}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 332, "owner": {"id": 616}, "assignee": {"id": 516}, "project": {"id": 308, "owner": {"id": 754}, "assignee": {"id": 854}}, "task": {"id": 372, "owner": {"id": 969}, "assignee": {"id": 29}}, "job": {"id": 384, "assignee": {"id": 1146}}, "issue": {"id": 344, "owner": {"id": 1299}, "assignee": {"id": 1399}}, "organization": {"id": 121}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 661}, "assignee": {"id": 527}, "project": {"id": 345, "owner": {"id": 723}, "assignee": {"id": 807}}, "task": {"id": 375, "owner": {"id": 911}, "assignee": {"id": 76}}, "job": {"id": 377, "assignee": {"id": 1102}}, "issue": {"id": 393, "owner": {"id": 1212}, "assignee": {"id": 1339}}, "organization": {"id": 146}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 318, "owner": {"id": 662}, "assignee": {"id": 530}, "project": {"id": 379, "owner": {"id": 760}, "assignee": {"id": 828}}, "task": {"id": 399, "owner": {"id": 999}, "assignee": {"id": 32}}, "job": {"id": 317, "assignee": {"id": 1146}}, "issue": {"id": 336, "owner": {"id": 1285}, "assignee": {"id": 1329}}, "organization": {"id": 1406}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 321, "owner": {"id": 659}, "assignee": {"id": 505}, "project": {"id": 385, "owner": {"id": 701}, "assignee": {"id": 850}}, "task": {"id": 317, "owner": {"id": 917}, "assignee": {"id": 8}}, "job": {"id": 358, "assignee": {"id": 1148}}, "issue": {"id": 397, "owner": {"id": 1240}, "assignee": {"id": 1375}}, "organization": {"id": 1411}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 320, "owner": {"id": 672}, "assignee": {"id": 564}, "project": {"id": 364, "owner": {"id": 786}, "assignee": {"id": 860}}, "task": {"id": 360, "owner": {"id": 945}, "assignee": {"id": 55}}, "job": {"id": 386, "assignee": {"id": 1199}}, "issue": {"id": 374, "owner": {"id": 1200}, "assignee": {"id": 1358}}, "organization": {"id": 109}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 347, "owner": {"id": 695}, "assignee": {"id": 599}, "project": {"id": 385, "owner": {"id": 729}, "assignee": {"id": 882}}, "task": {"id": 327, "owner": {"id": 980}, "assignee": {"id": 13}}, "job": {"id": 387, "assignee": {"id": 1103}}, "issue": {"id": 395, "owner": {"id": 1269}, "assignee": {"id": 1352}}, "organization": {"id": 102}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 340, "owner": {"id": 600}, "assignee": {"id": 585}, "project": {"id": 326, "owner": {"id": 784}, "assignee": {"id": 841}}, "task": {"id": 386, "owner": {"id": 928}, "assignee": {"id": 63}}, "job": {"id": 307, "assignee": {"id": 1118}}, "issue": {"id": 367, "owner": {"id": 1287}, "assignee": {"id": 1374}}, "organization": {"id": 1472}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 344, "owner": {"id": 683}, "assignee": {"id": 542}, "project": {"id": 388, "owner": {"id": 727}, "assignee": {"id": 854}}, "task": {"id": 301, "owner": {"id": 917}, "assignee": {"id": 21}}, "job": {"id": 383, "assignee": {"id": 1122}}, "issue": {"id": 341, "owner": {"id": 1298}, "assignee": {"id": 1382}}, "organization": {"id": 1488}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 383, "owner": {"id": 695}, "assignee": {"id": 510}, "project": {"id": 369, "owner": {"id": 797}, "assignee": {"id": 815}}, "task": {"id": 356, "owner": {"id": 983}, "assignee": {"id": 87}}, "job": {"id": 320, "assignee": {"id": 1172}}, "issue": {"id": 395, "owner": {"id": 1233}, "assignee": {"id": 1339}}, "organization": {"id": 144}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 330, "owner": {"id": 644}, "assignee": {"id": 547}, "project": {"id": 369, "owner": {"id": 702}, "assignee": {"id": 893}}, "task": {"id": 389, "owner": {"id": 904}, "assignee": {"id": 3}}, "job": {"id": 329, "assignee": {"id": 1199}}, "issue": {"id": 348, "owner": {"id": 1247}, "assignee": {"id": 1388}}, "organization": {"id": 169}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"id": 365, "owner": {"id": 614}, "assignee": {"id": 572}, "project": {"id": 361, "owner": {"id": 771}, "assignee": {"id": 893}}, "task": {"id": 370, "owner": {"id": 951}, "assignee": {"id": 8}}, "job": {"id": 322, "assignee": {"id": 1173}}, "issue": {"id": 310, "owner": {"id": 1209}, "assignee": {"id": 1385}}, "organization": {"id": 1449}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 343, "owner": {"id": 675}, "assignee": {"id": 578}, "project": {"id": 325, "owner": {"id": 742}, "assignee": {"id": 848}}, "task": {"id": 355, "owner": {"id": 906}, "assignee": {"id": 60}}, "job": {"id": 330, "assignee": {"id": 1183}}, "issue": {"id": 306, "owner": {"id": 1226}, "assignee": {"id": 1372}}, "organization": {"id": 1416}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "owner": {"id": 609}, "assignee": {"id": 539}, "project": {"id": 308, "owner": {"id": 707}, "assignee": {"id": 869}}, "task": {"id": 367, "owner": {"id": 961}, "assignee": {"id": 98}}, "job": {"id": 335, "assignee": {"id": 1118}}, "issue": {"id": 304, "owner": {"id": 1233}, "assignee": {"id": 1343}}, "organization": {"id": 117}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "owner": {"id": 614}, "assignee": {"id": 514}, "project": {"id": 337, "owner": {"id": 718}, "assignee": {"id": 867}}, "task": {"id": 341, "owner": {"id": 948}, "assignee": {"id": 42}}, "job": {"id": 300, "assignee": {"id": 1198}}, "issue": {"id": 346, "owner": {"id": 1273}, "assignee": {"id": 1379}}, "organization": {"id": 183}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "owner": {"id": 696}, "assignee": {"id": 549}, "project": {"id": 353, "owner": {"id": 729}, "assignee": {"id": 825}}, "task": {"id": 382, "owner": {"id": 978}, "assignee": {"id": 24}}, "job": {"id": 326, "assignee": {"id": 1171}}, "issue": {"id": 356, "owner": {"id": 1239}, "assignee": {"id": 1381}}, "organization": {"id": 1461}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "owner": {"id": 627}, "assignee": {"id": 519}, "project": {"id": 353, "owner": {"id": 722}, "assignee": {"id": 807}}, "task": {"id": 316, "owner": {"id": 924}, "assignee": {"id": 57}}, "job": {"id": 334, "assignee": {"id": 1189}}, "issue": {"id": 389, "owner": {"id": 1240}, "assignee": {"id": 1327}}, "organization": {"id": 1482}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "owner": {"id": 661}, "assignee": {"id": 598}, "project": {"id": 396, "owner": {"id": 753}, "assignee": {"id": 860}}, "task": {"id": 385, "owner": {"id": 979}, "assignee": {"id": 54}}, "job": {"id": 356, "assignee": {"id": 1180}}, "issue": {"id": 398, "owner": {"id": 1274}, "assignee": {"id": 1380}}, "organization": {"id": 189}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "owner": {"id": 682}, "assignee": {"id": 520}, "project": {"id": 363, "owner": {"id": 701}, "assignee": {"id": 895}}, "task": {"id": 364, "owner": {"id": 964}, "assignee": {"id": 33}}, "job": {"id": 340, "assignee": {"id": 1161}}, "issue": {"id": 349, "owner": {"id": 1220}, "assignee": {"id": 1336}}, "organization": {"id": 153}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 624}, "assignee": {"id": 525}, "project": {"id": 341, "owner": {"id": 797}, "assignee": {"id": 820}}, "task": {"id": 358, "owner": {"id": 984}, "assignee": {"id": 20}}, "job": {"id": 366, "assignee": {"id": 1109}}, "issue": {"id": 308, "owner": {"id": 1265}, "assignee": {"id": 1377}}, "organization": {"id": 1412}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "owner": {"id": 636}, "assignee": {"id": 571}, "project": {"id": 319, "owner": {"id": 711}, "assignee": {"id": 830}}, "task": {"id": 356, "owner": {"id": 911}, "assignee": {"id": 32}}, "job": {"id": 311, "assignee": {"id": 1180}}, "issue": {"id": 364, "owner": {"id": 1282}, "assignee": {"id": 1303}}, "organization": {"id": 1429}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 328, "owner": {"id": 649}, "assignee": {"id": 561}, "project": {"id": 375, "owner": {"id": 774}, "assignee": {"id": 822}}, "task": {"id": 358, "owner": {"id": 928}, "assignee": {"id": 7}}, "job": {"id": 381, "assignee": {"id": 1164}}, "issue": {"id": 377, "owner": {"id": 1215}, "assignee": {"id": 1367}}, "organization": {"id": 175}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 309, "owner": {"id": 620}, "assignee": {"id": 595}, "project": {"id": 363, "owner": {"id": 760}, "assignee": {"id": 837}}, "task": {"id": 314, "owner": {"id": 998}, "assignee": {"id": 7}}, "job": {"id": 333, "assignee": {"id": 1113}}, "issue": {"id": 381, "owner": {"id": 1209}, "assignee": {"id": 1392}}, "organization": {"id": 128}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 368, "owner": {"id": 671}, "assignee": {"id": 511}, "project": {"id": 308, "owner": {"id": 744}, "assignee": {"id": 816}}, "task": {"id": 319, "owner": {"id": 954}, "assignee": {"id": 91}}, "job": {"id": 372, "assignee": {"id": 1168}}, "issue": {"id": 372, "owner": {"id": 1293}, "assignee": {"id": 1353}}, "organization": {"id": 1445}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 320, "owner": {"id": 639}, "assignee": {"id": 564}, "project": {"id": 344, "owner": {"id": 717}, "assignee": {"id": 827}}, "task": {"id": 356, "owner": {"id": 907}, "assignee": {"id": 17}}, "job": {"id": 339, "assignee": {"id": 1111}}, "issue": {"id": 388, "owner": {"id": 1295}, "assignee": {"id": 1311}}, "organization": {"id": 1417}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 647}, "assignee": {"id": 533}, "project": {"id": 360, "owner": {"id": 726}, "assignee": {"id": 897}}, "task": {"id": 316, "owner": {"id": 972}, "assignee": {"id": 8}}, "job": {"id": 327, "assignee": {"id": 1125}}, "issue": {"id": 391, "owner": {"id": 1291}, "assignee": {"id": 1328}}, "organization": {"id": 190}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 372, "owner": {"id": 646}, "assignee": {"id": 534}, "project": {"id": 373, "owner": {"id": 761}, "assignee": {"id": 840}}, "task": {"id": 315, "owner": {"id": 991}, "assignee": {"id": 60}}, "job": {"id": 379, "assignee": {"id": 1111}}, "issue": {"id": 360, "owner": {"id": 1278}, "assignee": {"id": 1361}}, "organization": {"id": 146}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 341, "owner": {"id": 630}, "assignee": {"id": 538}, "project": {"id": 346, "owner": {"id": 750}, "assignee": {"id": 852}}, "task": {"id": 371, "owner": {"id": 970}, "assignee": {"id": 79}}, "job": {"id": 312, "assignee": {"id": 1187}}, "issue": {"id": 377, "owner": {"id": 1293}, "assignee": {"id": 1336}}, "organization": {"id": 1489}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 311, "owner": {"id": 632}, "assignee": {"id": 569}, "project": {"id": 351, "owner": {"id": 766}, "assignee": {"id": 877}}, "task": {"id": 332, "owner": {"id": 918}, "assignee": {"id": 97}}, "job": {"id": 398, "assignee": {"id": 1143}}, "issue": {"id": 344, "owner": {"id": 1203}, "assignee": {"id": 1304}}, "organization": {"id": 1468}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 679}, "assignee": {"id": 524}, "project": {"id": 380, "owner": {"id": 777}, "assignee": {"id": 873}}, "task": {"id": 385, "owner": {"id": 969}, "assignee": {"id": 52}}, "job": {"id": 317, "assignee": {"id": 1185}}, "issue": {"id": 377, "owner": {"id": 1206}, "assignee": {"id": 1380}}, "organization": {"id": 103}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 306, "owner": {"id": 616}, "assignee": {"id": 594}, "project": {"id": 367, "owner": {"id": 716}, "assignee": {"id": 864}}, "task": {"id": 393, "owner": {"id": 969}, "assignee": {"id": 86}}, "job": {"id": 342, "assignee": {"id": 1105}}, "issue": {"id": 378, "owner": {"id": 1215}, "assignee": {"id": 1373}}, "organization": {"id": 160}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 300, "owner": {"id": 618}, "assignee": {"id": 595}, "project": {"id": 315, "owner": {"id": 731}, "assignee": {"id": 806}}, "task": {"id": 387, "owner": {"id": 918}, "assignee": {"id": 96}}, "job": {"id": 358, "assignee": {"id": 1105}}, "issue": {"id": 316, "owner": {"id": 1266}, "assignee": {"id": 1347}}, "organization": {"id": 1465}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 632}, "assignee": {"id": 599}, "project": {"id": 316, "owner": {"id": 705}, "assignee": {"id": 836}}, "task": {"id": 348, "owner": {"id": 996}, "assignee": {"id": 96}}, "job": {"id": 355, "assignee": {"id": 1199}}, "issue": {"id": 315, "owner": {"id": 1297}, "assignee": {"id": 1338}}, "organization": {"id": 1400}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "owner": {"id": 655}, "assignee": {"id": 504}, "project": {"id": 310, "owner": {"id": 703}, "assignee": {"id": 809}}, "task": {"id": 321, "owner": {"id": 941}, "assignee": {"id": 51}}, "job": {"id": 319, "assignee": {"id": 1172}}, "issue": {"id": 314, "owner": {"id": 1252}, "assignee": {"id": 1396}}, "organization": {"id": 101}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "owner": {"id": 669}, "assignee": {"id": 562}, "project": {"id": 347, "owner": {"id": 772}, "assignee": {"id": 824}}, "task": {"id": 324, "owner": {"id": 954}, "assignee": {"id": 34}}, "job": {"id": 314, "assignee": {"id": 1108}}, "issue": {"id": 377, "owner": {"id": 1269}, "assignee": {"id": 1391}}, "organization": {"id": 122}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 301, "owner": {"id": 632}, "assignee": {"id": 589}, "project": {"id": 343, "owner": {"id": 787}, "assignee": {"id": 840}}, "task": {"id": 380, "owner": {"id": 955}, "assignee": {"id": 86}}, "job": {"id": 340, "assignee": {"id": 1115}}, "issue": {"id": 330, "owner": {"id": 1211}, "assignee": {"id": 1306}}, "organization": {"id": 1496}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 24, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "owner": {"id": 642}, "assignee": {"id": 558}, "project": {"id": 351, "owner": {"id": 785}, "assignee": {"id": 865}}, "task": {"id": 396, "owner": {"id": 944}, "assignee": {"id": 24}}, "job": {"id": 391, "assignee": {"id": 1183}}, "issue": {"id": 323, "owner": {"id": 1271}, "assignee": {"id": 1385}}, "organization": {"id": 1487}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "owner": {"id": 660}, "assignee": {"id": 587}, "project": {"id": 398, "owner": {"id": 752}, "assignee": {"id": 866}}, "task": {"id": 366, "owner": {"id": 967}, "assignee": {"id": 23}}, "job": {"id": 357, "assignee": {"id": 1106}}, "issue": {"id": 395, "owner": {"id": 1219}, "assignee": {"id": 1302}}, "organization": {"id": 161}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "owner": {"id": 648}, "assignee": {"id": 563}, "project": {"id": 303, "owner": {"id": 701}, "assignee": {"id": 872}}, "task": {"id": 343, "owner": {"id": 981}, "assignee": {"id": 91}}, "job": {"id": 367, "assignee": {"id": 1165}}, "issue": {"id": 305, "owner": {"id": 1236}, "assignee": {"id": 1372}}, "organization": {"id": 116}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "owner": {"id": 631}, "assignee": {"id": 518}, "project": {"id": 380, "owner": {"id": 797}, "assignee": {"id": 833}}, "task": {"id": 347, "owner": {"id": 980}, "assignee": {"id": 64}}, "job": {"id": 324, "assignee": {"id": 1165}}, "issue": {"id": 343, "owner": {"id": 1219}, "assignee": {"id": 1342}}, "organization": {"id": 1436}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 604}, "assignee": {"id": 522}, "project": {"id": 312, "owner": {"id": 741}, "assignee": {"id": 864}}, "task": {"id": 338, "owner": {"id": 917}, "assignee": {"id": 15}}, "job": {"id": 353, "assignee": {"id": 1195}}, "issue": {"id": 323, "owner": {"id": 1268}, "assignee": {"id": 1320}}, "organization": {"id": 1480}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 315, "owner": {"id": 657}, "assignee": {"id": 576}, "project": {"id": 345, "owner": {"id": 733}, "assignee": {"id": 808}}, "task": {"id": 324, "owner": {"id": 944}, "assignee": {"id": 34}}, "job": {"id": 390, "assignee": {"id": 1154}}, "issue": {"id": 301, "owner": {"id": 1276}, "assignee": {"id": 1357}}, "organization": {"id": 108}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 324, "owner": {"id": 661}, "assignee": {"id": 530}, "project": {"id": 312, "owner": {"id": 788}, "assignee": {"id": 891}}, "task": {"id": 345, "owner": {"id": 913}, "assignee": {"id": 33}}, "job": {"id": 348, "assignee": {"id": 1185}}, "issue": {"id": 356, "owner": {"id": 1211}, "assignee": {"id": 1367}}, "organization": {"id": 141}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 390, "owner": {"id": 638}, "assignee": {"id": 598}, "project": {"id": 332, "owner": {"id": 713}, "assignee": {"id": 875}}, "task": {"id": 368, "owner": {"id": 997}, "assignee": {"id": 43}}, "job": {"id": 340, "assignee": {"id": 1141}}, "issue": {"id": 348, "owner": {"id": 1285}, "assignee": {"id": 1332}}, "organization": {"id": 1404}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 339, "owner": {"id": 669}, "assignee": {"id": 564}, "project": {"id": 385, "owner": {"id": 733}, "assignee": {"id": 826}}, "task": {"id": 354, "owner": {"id": 902}, "assignee": {"id": 4}}, "job": {"id": 377, "assignee": {"id": 1156}}, "issue": {"id": 366, "owner": {"id": 1271}, "assignee": {"id": 1370}}, "organization": {"id": 1428}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 313, "owner": {"id": 616}, "assignee": {"id": 507}, "project": {"id": 372, "owner": {"id": 705}, "assignee": {"id": 893}}, "task": {"id": 340, "owner": {"id": 971}, "assignee": {"id": 16}}, "job": {"id": 368, "assignee": {"id": 1118}}, "issue": {"id": 364, "owner": {"id": 1247}, "assignee": {"id": 1339}}, "organization": {"id": 109}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"id": 328, "owner": {"id": 660}, "assignee": {"id": 593}, "project": {"id": 374, "owner": {"id": 749}, "assignee": {"id": 866}}, "task": {"id": 308, "owner": {"id": 955}, "assignee": {"id": 94}}, "job": {"id": 363, "assignee": {"id": 1184}}, "issue": {"id": 391, "owner": {"id": 1277}, "assignee": {"id": 1396}}, "organization": {"id": 138}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 320, "owner": {"id": 680}, "assignee": {"id": 569}, "project": {"id": 350, "owner": {"id": 704}, "assignee": {"id": 887}}, "task": {"id": 314, "owner": {"id": 925}, "assignee": {"id": 30}}, "job": {"id": 316, "assignee": {"id": 1178}}, "issue": {"id": 365, "owner": {"id": 1221}, "assignee": {"id": 1305}}, "organization": {"id": 1497}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 347, "owner": {"id": 627}, "assignee": {"id": 570}, "project": {"id": 329, "owner": {"id": 757}, "assignee": {"id": 852}}, "task": {"id": 300, "owner": {"id": 933}, "assignee": {"id": 39}}, "job": {"id": 384, "assignee": {"id": 1136}}, "issue": {"id": 375, "owner": {"id": 1251}, "assignee": {"id": 1310}}, "organization": {"id": 1462}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 677}, "assignee": {"id": 559}, "project": {"id": 370, "owner": {"id": 780}, "assignee": {"id": 873}}, "task": {"id": 306, "owner": {"id": 990}, "assignee": {"id": 25}}, "job": {"id": 360, "assignee": {"id": 1126}}, "issue": {"id": 383, "owner": {"id": 1282}, "assignee": {"id": 1373}}, "organization": {"id": 101}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 397, "owner": {"id": 679}, "assignee": {"id": 538}, "project": {"id": 342, "owner": {"id": 745}, "assignee": {"id": 838}}, "task": {"id": 383, "owner": {"id": 949}, "assignee": {"id": 65}}, "job": {"id": 321, "assignee": {"id": 1119}}, "issue": {"id": 300, "owner": {"id": 1291}, "assignee": {"id": 1325}}, "organization": {"id": 167}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 353, "owner": {"id": 621}, "assignee": {"id": 501}, "project": {"id": 309, "owner": {"id": 703}, "assignee": {"id": 843}}, "task": {"id": 378, "owner": {"id": 941}, "assignee": {"id": 53}}, "job": {"id": 357, "assignee": {"id": 1175}}, "issue": {"id": 302, "owner": {"id": 1218}, "assignee": {"id": 1367}}, "organization": {"id": 1418}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 369, "owner": {"id": 682}, "assignee": {"id": 532}, "project": {"id": 393, "owner": {"id": 778}, "assignee": {"id": 834}}, "task": {"id": 365, "owner": {"id": 922}, "assignee": {"id": 84}}, "job": {"id": 317, "assignee": {"id": 1107}}, "issue": {"id": 347, "owner": {"id": 1211}, "assignee": {"id": 1357}}, "organization": {"id": 1477}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "owner": {"id": 644}, "assignee": {"id": 544}, "project": {"id": 333, "owner": {"id": 772}, "assignee": {"id": 889}}, "task": {"id": 326, "owner": {"id": 961}, "assignee": {"id": 22}}, "job": {"id": 396, "assignee": {"id": 1119}}, "issue": {"id": 351, "owner": {"id": 1247}, "assignee": {"id": 1344}}, "organization": {"id": 137}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "owner": {"id": 683}, "assignee": {"id": 533}, "project": {"id": 349, "owner": {"id": 704}, "assignee": {"id": 878}}, "task": {"id": 371, "owner": {"id": 983}, "assignee": {"id": 4}}, "job": {"id": 398, "assignee": {"id": 1134}}, "issue": {"id": 377, "owner": {"id": 1246}, "assignee": {"id": 1339}}, "organization": {"id": 120}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 655}, "assignee": {"id": 535}, "project": {"id": 339, "owner": {"id": 729}, "assignee": {"id": 813}}, "task": {"id": 388, "owner": {"id": 970}, "assignee": {"id": 29}}, "job": {"id": 350, "assignee": {"id": 1144}}, "issue": {"id": 355, "owner": {"id": 1222}, "assignee": {"id": 1378}}, "organization": {"id": 1478}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "owner": {"id": 645}, "assignee": {"id": 541}, "project": {"id": 307, "owner": {"id": 711}, "assignee": {"id": 876}}, "task": {"id": 381, "owner": {"id": 955}, "assignee": {"id": 39}}, "job": {"id": 355, "assignee": {"id": 1166}}, "issue": {"id": 317, "owner": {"id": 1216}, "assignee": {"id": 1334}}, "organization": {"id": 1419}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "owner": {"id": 691}, "assignee": {"id": 537}, "project": {"id": 344, "owner": {"id": 730}, "assignee": {"id": 867}}, "task": {"id": 380, "owner": {"id": 967}, "assignee": {"id": 47}}, "job": {"id": 321, "assignee": {"id": 1113}}, "issue": {"id": 335, "owner": {"id": 1268}, "assignee": {"id": 1365}}, "organization": {"id": 198}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "owner": {"id": 680}, "assignee": {"id": 504}, "project": {"id": 342, "owner": {"id": 730}, "assignee": {"id": 840}}, "task": {"id": 331, "owner": {"id": 999}, "assignee": {"id": 63}}, "job": {"id": 359, "assignee": {"id": 1165}}, "issue": {"id": 327, "owner": {"id": 1225}, "assignee": {"id": 1353}}, "organization": {"id": 157}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "owner": {"id": 628}, "assignee": {"id": 559}, "project": {"id": 345, "owner": {"id": 718}, "assignee": {"id": 821}}, "task": {"id": 319, "owner": {"id": 991}, "assignee": {"id": 51}}, "job": {"id": 340, "assignee": {"id": 1160}}, "issue": {"id": 343, "owner": {"id": 1296}, "assignee": {"id": 1352}}, "organization": {"id": 1494}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 618}, "assignee": {"id": 523}, "project": {"id": 379, "owner": {"id": 731}, "assignee": {"id": 812}}, "task": {"id": 394, "owner": {"id": 936}, "assignee": {"id": 25}}, "job": {"id": 367, "assignee": {"id": 1107}}, "issue": {"id": 365, "owner": {"id": 1241}, "assignee": {"id": 1317}}, "organization": {"id": 1446}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 662}, "assignee": {"id": 567}, "project": {"id": 385, "owner": {"id": 791}, "assignee": {"id": 855}}, "task": {"id": 337, "owner": {"id": 955}, "assignee": {"id": 77}}, "job": {"id": 321, "assignee": {"id": 1154}}, "issue": {"id": 369, "owner": {"id": 1207}, "assignee": {"id": 1352}}, "organization": {"id": 109}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 639}, "assignee": {"id": 563}, "project": {"id": 309, "owner": {"id": 773}, "assignee": {"id": 892}}, "task": {"id": 306, "owner": {"id": 932}, "assignee": {"id": 86}}, "job": {"id": 345, "assignee": {"id": 1135}}, "issue": {"id": 334, "owner": {"id": 1264}, "assignee": {"id": 1361}}, "organization": {"id": 190}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 346, "owner": {"id": 620}, "assignee": {"id": 568}, "project": {"id": 372, "owner": {"id": 799}, "assignee": {"id": 864}}, "task": {"id": 365, "owner": {"id": 984}, "assignee": {"id": 73}}, "job": {"id": 345, "assignee": {"id": 1147}}, "issue": {"id": 391, "owner": {"id": 1262}, "assignee": {"id": 1334}}, "organization": {"id": 1425}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 394, "owner": {"id": 684}, "assignee": {"id": 586}, "project": {"id": 311, "owner": {"id": 740}, "assignee": {"id": 898}}, "task": {"id": 337, "owner": {"id": 927}, "assignee": {"id": 43}}, "job": {"id": 315, "assignee": {"id": 1110}}, "issue": {"id": 362, "owner": {"id": 1286}, "assignee": {"id": 1391}}, "organization": {"id": 1471}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 659}, "assignee": {"id": 554}, "project": {"id": 362, "owner": {"id": 700}, "assignee": {"id": 803}}, "task": {"id": 311, "owner": {"id": 903}, "assignee": {"id": 72}}, "job": {"id": 355, "assignee": {"id": 1165}}, "issue": {"id": 392, "owner": {"id": 1269}, "assignee": {"id": 1314}}, "organization": {"id": 111}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 682}, "assignee": {"id": 505}, "project": {"id": 321, "owner": {"id": 760}, "assignee": {"id": 896}}, "task": {"id": 376, "owner": {"id": 927}, "assignee": {"id": 65}}, "job": {"id": 351, "assignee": {"id": 1187}}, "issue": {"id": 323, "owner": {"id": 1287}, "assignee": {"id": 1348}}, "organization": {"id": 111}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 50, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 320, "owner": {"id": 637}, "assignee": {"id": 517}, "project": {"id": 378, "owner": {"id": 720}, "assignee": {"id": 815}}, "task": {"id": 334, "owner": {"id": 929}, "assignee": {"id": 50}}, "job": {"id": 301, "assignee": {"id": 1176}}, "issue": {"id": 362, "owner": {"id": 1249}, "assignee": {"id": 1318}}, "organization": {"id": 1406}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 371, "owner": {"id": 635}, "assignee": {"id": 549}, "project": {"id": 330, "owner": {"id": 710}, "assignee": {"id": 869}}, "task": {"id": 307, "owner": {"id": 905}, "assignee": {"id": 5}}, "job": {"id": 339, "assignee": {"id": 1145}}, "issue": {"id": 319, "owner": {"id": 1282}, "assignee": {"id": 1305}}, "organization": {"id": 1438}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 374, "owner": {"id": 665}, "assignee": {"id": 501}, "project": {"id": 381, "owner": {"id": 710}, "assignee": {"id": 892}}, "task": {"id": 395, "owner": {"id": 906}, "assignee": {"id": 1039}}, "job": {"id": 340, "assignee": {"id": 89}}, "issue": {"id": 369, "owner": {"id": 1268}, "assignee": {"id": 1337}}, "organization": {"id": 162}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 390, "owner": {"id": 686}, "assignee": {"id": 546}, "project": {"id": 335, "owner": {"id": 743}, "assignee": {"id": 861}}, "task": {"id": 308, "owner": {"id": 981}, "assignee": {"id": 1000}}, "job": {"id": 338, "assignee": {"id": 61}}, "issue": {"id": 397, "owner": {"id": 1263}, "assignee": {"id": 1302}}, "organization": {"id": 112}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 395, "owner": {"id": 614}, "assignee": {"id": 578}, "project": {"id": 302, "owner": {"id": 755}, "assignee": {"id": 819}}, "task": {"id": 364, "owner": {"id": 914}, "assignee": {"id": 1004}}, "job": {"id": 368, "assignee": {"id": 73}}, "issue": {"id": 375, "owner": {"id": 1250}, "assignee": {"id": 1354}}, "organization": {"id": 1447}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 305, "owner": {"id": 679}, "assignee": {"id": 574}, "project": {"id": 308, "owner": {"id": 734}, "assignee": {"id": 841}}, "task": {"id": 381, "owner": {"id": 963}, "assignee": {"id": 1053}}, "job": {"id": 318, "assignee": {"id": 58}}, "issue": {"id": 316, "owner": {"id": 1253}, "assignee": {"id": 1371}}, "organization": {"id": 1423}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 648}, "assignee": {"id": 558}, "project": {"id": 348, "owner": {"id": 701}, "assignee": {"id": 893}}, "task": {"id": 330, "owner": {"id": 993}, "assignee": {"id": 1091}}, "job": {"id": 344, "assignee": {"id": 82}}, "issue": {"id": 310, "owner": {"id": 1259}, "assignee": {"id": 1328}}, "organization": {"id": 152}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "owner": {"id": 689}, "assignee": {"id": 599}, "project": {"id": 318, "owner": {"id": 748}, "assignee": {"id": 856}}, "task": {"id": 398, "owner": {"id": 980}, "assignee": {"id": 1021}}, "job": {"id": 337, "assignee": {"id": 41}}, "issue": {"id": 349, "owner": {"id": 1207}, "assignee": {"id": 1387}}, "organization": {"id": 121}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "owner": {"id": 619}, "assignee": {"id": 562}, "project": {"id": 362, "owner": {"id": 703}, "assignee": {"id": 869}}, "task": {"id": 374, "owner": {"id": 929}, "assignee": {"id": 1023}}, "job": {"id": 362, "assignee": {"id": 51}}, "issue": {"id": 327, "owner": {"id": 1277}, "assignee": {"id": 1374}}, "organization": {"id": 1493}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "owner": {"id": 620}, "assignee": {"id": 535}, "project": {"id": 312, "owner": {"id": 729}, "assignee": {"id": 850}}, "task": {"id": 342, "owner": {"id": 913}, "assignee": {"id": 1099}}, "job": {"id": 320, "assignee": {"id": 21}}, "issue": {"id": 340, "owner": {"id": 1299}, "assignee": {"id": 1399}}, "organization": {"id": 1447}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 649}, "assignee": {"id": 509}, "project": {"id": 350, "owner": {"id": 795}, "assignee": {"id": 891}}, "task": {"id": 348, "owner": {"id": 935}, "assignee": {"id": 1011}}, "job": {"id": 355, "assignee": {"id": 62}}, "issue": {"id": 366, "owner": {"id": 1262}, "assignee": {"id": 1353}}, "organization": {"id": 109}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 676}, "assignee": {"id": 509}, "project": {"id": 377, "owner": {"id": 750}, "assignee": {"id": 877}}, "task": {"id": 364, "owner": {"id": 983}, "assignee": {"id": 1057}}, "job": {"id": 300, "assignee": {"id": 59}}, "issue": {"id": 351, "owner": {"id": 1286}, "assignee": {"id": 1348}}, "organization": {"id": 160}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "owner": {"id": 655}, "assignee": {"id": 547}, "project": {"id": 315, "owner": {"id": 710}, "assignee": {"id": 880}}, "task": {"id": 347, "owner": {"id": 970}, "assignee": {"id": 1074}}, "job": {"id": 323, "assignee": {"id": 94}}, "issue": {"id": 365, "owner": {"id": 1232}, "assignee": {"id": 1337}}, "organization": {"id": 1410}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 601}, "assignee": {"id": 512}, "project": {"id": 348, "owner": {"id": 788}, "assignee": {"id": 834}}, "task": {"id": 348, "owner": {"id": 967}, "assignee": {"id": 1027}}, "job": {"id": 367, "assignee": {"id": 31}}, "issue": {"id": 383, "owner": {"id": 1233}, "assignee": {"id": 1377}}, "organization": {"id": 1402}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 315, "owner": {"id": 654}, "assignee": {"id": 542}, "project": {"id": 393, "owner": {"id": 798}, "assignee": {"id": 809}}, "task": {"id": 355, "owner": {"id": 970}, "assignee": {"id": 1083}}, "job": {"id": 329, "assignee": {"id": 63}}, "issue": {"id": 397, "owner": {"id": 1252}, "assignee": {"id": 1328}}, "organization": {"id": 155}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 303, "owner": {"id": 692}, "assignee": {"id": 595}, "project": {"id": 338, "owner": {"id": 767}, "assignee": {"id": 825}}, "task": {"id": 372, "owner": {"id": 938}, "assignee": {"id": 1067}}, "job": {"id": 344, "assignee": {"id": 99}}, "issue": {"id": 385, "owner": {"id": 1259}, "assignee": {"id": 1370}}, "organization": {"id": 116}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 397, "owner": {"id": 619}, "assignee": {"id": 549}, "project": {"id": 390, "owner": {"id": 741}, "assignee": {"id": 873}}, "task": {"id": 355, "owner": {"id": 999}, "assignee": {"id": 1068}}, "job": {"id": 344, "assignee": {"id": 24}}, "issue": {"id": 391, "owner": {"id": 1242}, "assignee": {"id": 1372}}, "organization": {"id": 1464}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 354, "owner": {"id": 638}, "assignee": {"id": 508}, "project": {"id": 387, "owner": {"id": 702}, "assignee": {"id": 820}}, "task": {"id": 318, "owner": {"id": 946}, "assignee": {"id": 1041}}, "job": {"id": 303, "assignee": {"id": 65}}, "issue": {"id": 393, "owner": {"id": 1222}, "assignee": {"id": 1354}}, "organization": {"id": 1461}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 651}, "assignee": {"id": 513}, "project": {"id": 311, "owner": {"id": 721}, "assignee": {"id": 840}}, "task": {"id": 384, "owner": {"id": 984}, "assignee": {"id": 1075}}, "job": {"id": 356, "assignee": {"id": 68}}, "issue": {"id": 318, "owner": {"id": 1283}, "assignee": {"id": 1305}}, "organization": {"id": 170}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 383, "owner": {"id": 688}, "assignee": {"id": 587}, "project": {"id": 381, "owner": {"id": 731}, "assignee": {"id": 809}}, "task": {"id": 305, "owner": {"id": 949}, "assignee": {"id": 1002}}, "job": {"id": 329, "assignee": {"id": 35}}, "issue": {"id": 345, "owner": {"id": 1259}, "assignee": {"id": 1397}}, "organization": {"id": 132}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 332, "owner": {"id": 683}, "assignee": {"id": 568}, "project": {"id": 307, "owner": {"id": 730}, "assignee": {"id": 895}}, "task": {"id": 345, "owner": {"id": 988}, "assignee": {"id": 1055}}, "job": {"id": 386, "assignee": {"id": 10}}, "issue": {"id": 360, "owner": {"id": 1222}, "assignee": {"id": 1301}}, "organization": {"id": 1484}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 630}, "assignee": {"id": 599}, "project": {"id": 325, "owner": {"id": 785}, "assignee": {"id": 885}}, "task": {"id": 351, "owner": {"id": 908}, "assignee": {"id": 1013}}, "job": {"id": 331, "assignee": {"id": 33}}, "issue": {"id": 306, "owner": {"id": 1273}, "assignee": {"id": 1344}}, "organization": {"id": 1441}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 386, "owner": {"id": 642}, "assignee": {"id": 502}, "project": {"id": 376, "owner": {"id": 766}, "assignee": {"id": 807}}, "task": {"id": 360, "owner": {"id": 905}, "assignee": {"id": 1065}}, "job": {"id": 349, "assignee": {"id": 18}}, "issue": {"id": 303, "owner": {"id": 1241}, "assignee": {"id": 1357}}, "organization": {"id": 175}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 386, "owner": {"id": 695}, "assignee": {"id": 570}, "project": {"id": 390, "owner": {"id": 718}, "assignee": {"id": 875}}, "task": {"id": 387, "owner": {"id": 934}, "assignee": {"id": 1019}}, "job": {"id": 384, "assignee": {"id": 48}}, "issue": {"id": 328, "owner": {"id": 1261}, "assignee": {"id": 1341}}, "organization": {"id": 130}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 631}, "assignee": {"id": 552}, "project": {"id": 351, "owner": {"id": 795}, "assignee": {"id": 844}}, "task": {"id": 302, "owner": {"id": 945}, "assignee": {"id": 1049}}, "job": {"id": 308, "assignee": {"id": 23}}, "issue": {"id": 359, "owner": {"id": 1265}, "assignee": {"id": 1387}}, "organization": {"id": 1400}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 603}, "assignee": {"id": 512}, "project": {"id": 398, "owner": {"id": 772}, "assignee": {"id": 834}}, "task": {"id": 356, "owner": {"id": 974}, "assignee": {"id": 1002}}, "job": {"id": 391, "assignee": {"id": 50}}, "issue": {"id": 353, "owner": {"id": 1228}, "assignee": {"id": 1363}}, "organization": {"id": 1413}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 675}, "assignee": {"id": 513}, "project": {"id": 387, "owner": {"id": 789}, "assignee": {"id": 863}}, "task": {"id": 302, "owner": {"id": 963}, "assignee": {"id": 1034}}, "job": {"id": 399, "assignee": {"id": 79}}, "issue": {"id": 384, "owner": {"id": 1207}, "assignee": {"id": 1362}}, "organization": {"id": 168}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "owner": {"id": 647}, "assignee": {"id": 533}, "project": {"id": 353, "owner": {"id": 796}, "assignee": {"id": 819}}, "task": {"id": 371, "owner": {"id": 981}, "assignee": {"id": 1084}}, "job": {"id": 365, "assignee": {"id": 7}}, "issue": {"id": 334, "owner": {"id": 1229}, "assignee": {"id": 1357}}, "organization": {"id": 190}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 605}, "assignee": {"id": 583}, "project": {"id": 309, "owner": {"id": 718}, "assignee": {"id": 811}}, "task": {"id": 374, "owner": {"id": 945}, "assignee": {"id": 1023}}, "job": {"id": 349, "assignee": {"id": 52}}, "issue": {"id": 341, "owner": {"id": 1295}, "assignee": {"id": 1379}}, "organization": {"id": 1433}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "owner": {"id": 622}, "assignee": {"id": 561}, "project": {"id": 366, "owner": {"id": 713}, "assignee": {"id": 827}}, "task": {"id": 376, "owner": {"id": 929}, "assignee": {"id": 1094}}, "job": {"id": 395, "assignee": {"id": 70}}, "issue": {"id": 385, "owner": {"id": 1211}, "assignee": {"id": 1350}}, "organization": {"id": 1408}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "owner": {"id": 654}, "assignee": {"id": 524}, "project": {"id": 335, "owner": {"id": 737}, "assignee": {"id": 839}}, "task": {"id": 396, "owner": {"id": 961}, "assignee": {"id": 1001}}, "job": {"id": 379, "assignee": {"id": 48}}, "issue": {"id": 339, "owner": {"id": 1279}, "assignee": {"id": 1361}}, "organization": {"id": 177}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 680}, "assignee": {"id": 504}, "project": {"id": 311, "owner": {"id": 798}, "assignee": {"id": 865}}, "task": {"id": 306, "owner": {"id": 987}, "assignee": {"id": 1065}}, "job": {"id": 314, "assignee": {"id": 44}}, "issue": {"id": 371, "owner": {"id": 1232}, "assignee": {"id": 1326}}, "organization": {"id": 103}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "owner": {"id": 663}, "assignee": {"id": 579}, "project": {"id": 383, "owner": {"id": 776}, "assignee": {"id": 884}}, "task": {"id": 358, "owner": {"id": 920}, "assignee": {"id": 1098}}, "job": {"id": 314, "assignee": {"id": 76}}, "issue": {"id": 377, "owner": {"id": 1234}, "assignee": {"id": 1361}}, "organization": {"id": 1461}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "owner": {"id": 612}, "assignee": {"id": 547}, "project": {"id": 387, "owner": {"id": 718}, "assignee": {"id": 881}}, "task": {"id": 396, "owner": {"id": 959}, "assignee": {"id": 1032}}, "job": {"id": 399, "assignee": {"id": 86}}, "issue": {"id": 380, "owner": {"id": 1219}, "assignee": {"id": 1339}}, "organization": {"id": 1416}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 366, "owner": {"id": 661}, "assignee": {"id": 507}, "project": {"id": 323, "owner": {"id": 764}, "assignee": {"id": 877}}, "task": {"id": 333, "owner": {"id": 984}, "assignee": {"id": 1083}}, "job": {"id": 374, "assignee": {"id": 75}}, "issue": {"id": 317, "owner": {"id": 1256}, "assignee": {"id": 1380}}, "organization": {"id": 112}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 319, "owner": {"id": 678}, "assignee": {"id": 571}, "project": {"id": 386, "owner": {"id": 730}, "assignee": {"id": 821}}, "task": {"id": 346, "owner": {"id": 971}, "assignee": {"id": 1079}}, "job": {"id": 349, "assignee": {"id": 35}}, "issue": {"id": 372, "owner": {"id": 1208}, "assignee": {"id": 1387}}, "organization": {"id": 118}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 306, "owner": {"id": 688}, "assignee": {"id": 565}, "project": {"id": 392, "owner": {"id": 710}, "assignee": {"id": 840}}, "task": {"id": 321, "owner": {"id": 929}, "assignee": {"id": 1092}}, "job": {"id": 369, "assignee": {"id": 84}}, "issue": {"id": 381, "owner": {"id": 1226}, "assignee": {"id": 1331}}, "organization": {"id": 1429}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 305, "owner": {"id": 691}, "assignee": {"id": 547}, "project": {"id": 332, "owner": {"id": 783}, "assignee": {"id": 880}}, "task": {"id": 327, "owner": {"id": 934}, "assignee": {"id": 1061}}, "job": {"id": 333, "assignee": {"id": 84}}, "issue": {"id": 368, "owner": {"id": 1286}, "assignee": {"id": 1340}}, "organization": {"id": 1429}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 322, "owner": {"id": 687}, "assignee": {"id": 548}, "project": {"id": 383, "owner": {"id": 768}, "assignee": {"id": 881}}, "task": {"id": 310, "owner": {"id": 992}, "assignee": {"id": 1002}}, "job": {"id": 386, "assignee": {"id": 74}}, "issue": {"id": 336, "owner": {"id": 1291}, "assignee": {"id": 1385}}, "organization": {"id": 179}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 393, "owner": {"id": 626}, "assignee": {"id": 535}, "project": {"id": 349, "owner": {"id": 782}, "assignee": {"id": 841}}, "task": {"id": 396, "owner": {"id": 963}, "assignee": {"id": 1097}}, "job": {"id": 397, "assignee": {"id": 23}}, "issue": {"id": 339, "owner": {"id": 1209}, "assignee": {"id": 1345}}, "organization": {"id": 157}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 370, "owner": {"id": 664}, "assignee": {"id": 564}, "project": {"id": 382, "owner": {"id": 750}, "assignee": {"id": 890}}, "task": {"id": 347, "owner": {"id": 963}, "assignee": {"id": 1003}}, "job": {"id": 326, "assignee": {"id": 98}}, "issue": {"id": 361, "owner": {"id": 1257}, "assignee": {"id": 1309}}, "organization": {"id": 1460}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 346, "owner": {"id": 696}, "assignee": {"id": 592}, "project": {"id": 336, "owner": {"id": 757}, "assignee": {"id": 877}}, "task": {"id": 374, "owner": {"id": 964}, "assignee": {"id": 1045}}, "job": {"id": 366, "assignee": {"id": 66}}, "issue": {"id": 350, "owner": {"id": 1294}, "assignee": {"id": 1367}}, "organization": {"id": 1439}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 382, "owner": {"id": 613}, "assignee": {"id": 547}, "project": {"id": 313, "owner": {"id": 717}, "assignee": {"id": 872}}, "task": {"id": 397, "owner": {"id": 967}, "assignee": {"id": 1069}}, "job": {"id": 371, "assignee": {"id": 64}}, "issue": {"id": 394, "owner": {"id": 1224}, "assignee": {"id": 1361}}, "organization": {"id": 159}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 336, "owner": {"id": 651}, "assignee": {"id": 546}, "project": {"id": 391, "owner": {"id": 739}, "assignee": {"id": 802}}, "task": {"id": 356, "owner": {"id": 970}, "assignee": {"id": 1060}}, "job": {"id": 316, "assignee": {"id": 87}}, "issue": {"id": 386, "owner": {"id": 1261}, "assignee": {"id": 1327}}, "organization": {"id": 192}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 625}, "assignee": {"id": 553}, "project": {"id": 330, "owner": {"id": 787}, "assignee": {"id": 853}}, "task": {"id": 365, "owner": {"id": 948}, "assignee": {"id": 1093}}, "job": {"id": 365, "assignee": {"id": 20}}, "issue": {"id": 309, "owner": {"id": 1259}, "assignee": {"id": 1338}}, "organization": {"id": 1410}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 302, "owner": {"id": 628}, "assignee": {"id": 597}, "project": {"id": 344, "owner": {"id": 700}, "assignee": {"id": 822}}, "task": {"id": 311, "owner": {"id": 993}, "assignee": {"id": 1044}}, "job": {"id": 334, "assignee": {"id": 75}}, "issue": {"id": 321, "owner": {"id": 1295}, "assignee": {"id": 1340}}, "organization": {"id": 1449}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "owner": {"id": 680}, "assignee": {"id": 537}, "project": {"id": 383, "owner": {"id": 700}, "assignee": {"id": 863}}, "task": {"id": 305, "owner": {"id": 970}, "assignee": {"id": 1012}}, "job": {"id": 332, "assignee": {"id": 39}}, "issue": {"id": 310, "owner": {"id": 1223}, "assignee": {"id": 1356}}, "organization": {"id": 130}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "owner": {"id": 683}, "assignee": {"id": 595}, "project": {"id": 334, "owner": {"id": 741}, "assignee": {"id": 894}}, "task": {"id": 310, "owner": {"id": 917}, "assignee": {"id": 1046}}, "job": {"id": 395, "assignee": {"id": 77}}, "issue": {"id": 305, "owner": {"id": 1214}, "assignee": {"id": 1310}}, "organization": {"id": 118}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "owner": {"id": 608}, "assignee": {"id": 515}, "project": {"id": 395, "owner": {"id": 770}, "assignee": {"id": 842}}, "task": {"id": 386, "owner": {"id": 907}, "assignee": {"id": 1030}}, "job": {"id": 360, "assignee": {"id": 58}}, "issue": {"id": 303, "owner": {"id": 1233}, "assignee": {"id": 1365}}, "organization": {"id": 1412}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 644}, "assignee": {"id": 525}, "project": {"id": 342, "owner": {"id": 724}, "assignee": {"id": 821}}, "task": {"id": 304, "owner": {"id": 961}, "assignee": {"id": 1012}}, "job": {"id": 352, "assignee": {"id": 14}}, "issue": {"id": 364, "owner": {"id": 1249}, "assignee": {"id": 1318}}, "organization": {"id": 1480}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "owner": {"id": 673}, "assignee": {"id": 579}, "project": {"id": 327, "owner": {"id": 764}, "assignee": {"id": 850}}, "task": {"id": 341, "owner": {"id": 912}, "assignee": {"id": 1093}}, "job": {"id": 335, "assignee": {"id": 30}}, "issue": {"id": 342, "owner": {"id": 1287}, "assignee": {"id": 1399}}, "organization": {"id": 129}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 609}, "assignee": {"id": 512}, "project": {"id": 312, "owner": {"id": 719}, "assignee": {"id": 806}}, "task": {"id": 312, "owner": {"id": 959}, "assignee": {"id": 1039}}, "job": {"id": 399, "assignee": {"id": 84}}, "issue": {"id": 309, "owner": {"id": 1276}, "assignee": {"id": 1306}}, "organization": {"id": 121}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "owner": {"id": 692}, "assignee": {"id": 593}, "project": {"id": 305, "owner": {"id": 703}, "assignee": {"id": 889}}, "task": {"id": 326, "owner": {"id": 941}, "assignee": {"id": 1016}}, "job": {"id": 356, "assignee": {"id": 26}}, "issue": {"id": 371, "owner": {"id": 1209}, "assignee": {"id": 1310}}, "organization": {"id": 1443}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 692}, "assignee": {"id": 596}, "project": {"id": 334, "owner": {"id": 776}, "assignee": {"id": 874}}, "task": {"id": 380, "owner": {"id": 932}, "assignee": {"id": 1085}}, "job": {"id": 375, "assignee": {"id": 78}}, "issue": {"id": 355, "owner": {"id": 1299}, "assignee": {"id": 1307}}, "organization": {"id": 1459}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 669}, "assignee": {"id": 563}, "project": {"id": 323, "owner": {"id": 715}, "assignee": {"id": 887}}, "task": {"id": 336, "owner": {"id": 924}, "assignee": {"id": 1061}}, "job": {"id": 396, "assignee": {"id": 21}}, "issue": {"id": 354, "owner": {"id": 1278}, "assignee": {"id": 1351}}, "organization": {"id": 151}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"id": 391, "owner": {"id": 637}, "assignee": {"id": 510}, "project": {"id": 344, "owner": {"id": 710}, "assignee": {"id": 890}}, "task": {"id": 383, "owner": {"id": 947}, "assignee": {"id": 1060}}, "job": {"id": 395, "assignee": {"id": 40}}, "issue": {"id": 308, "owner": {"id": 1206}, "assignee": {"id": 1334}}, "organization": {"id": 117}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 348, "owner": {"id": 627}, "assignee": {"id": 523}, "project": {"id": 396, "owner": {"id": 773}, "assignee": {"id": 889}}, "task": {"id": 305, "owner": {"id": 951}, "assignee": {"id": 1088}}, "job": {"id": 385, "assignee": {"id": 99}}, "issue": {"id": 333, "owner": {"id": 1204}, "assignee": {"id": 1393}}, "organization": {"id": 1417}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 305, "owner": {"id": 653}, "assignee": {"id": 526}, "project": {"id": 353, "owner": {"id": 796}, "assignee": {"id": 884}}, "task": {"id": 363, "owner": {"id": 938}, "assignee": {"id": 1084}}, "job": {"id": 388, "assignee": {"id": 6}}, "issue": {"id": 393, "owner": {"id": 1266}, "assignee": {"id": 1338}}, "organization": {"id": 1472}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 664}, "assignee": {"id": 517}, "project": {"id": 334, "owner": {"id": 796}, "assignee": {"id": 842}}, "task": {"id": 361, "owner": {"id": 905}, "assignee": {"id": 1000}}, "job": {"id": 329, "assignee": {"id": 51}}, "issue": {"id": 362, "owner": {"id": 1280}, "assignee": {"id": 1399}}, "organization": {"id": 124}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 355, "owner": {"id": 665}, "assignee": {"id": 594}, "project": {"id": 393, "owner": {"id": 796}, "assignee": {"id": 879}}, "task": {"id": 338, "owner": {"id": 954}, "assignee": {"id": 1028}}, "job": {"id": 387, "assignee": {"id": 4}}, "issue": {"id": 367, "owner": {"id": 1255}, "assignee": {"id": 1371}}, "organization": {"id": 114}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 643}, "assignee": {"id": 549}, "project": {"id": 342, "owner": {"id": 722}, "assignee": {"id": 870}}, "task": {"id": 346, "owner": {"id": 946}, "assignee": {"id": 1098}}, "job": {"id": 363, "assignee": {"id": 52}}, "issue": {"id": 377, "owner": {"id": 1241}, "assignee": {"id": 1332}}, "organization": {"id": 1485}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 691}, "assignee": {"id": 535}, "project": {"id": 395, "owner": {"id": 756}, "assignee": {"id": 899}}, "task": {"id": 307, "owner": {"id": 962}, "assignee": {"id": 1019}}, "job": {"id": 389, "assignee": {"id": 21}}, "issue": {"id": 313, "owner": {"id": 1285}, "assignee": {"id": 1340}}, "organization": {"id": 1442}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 341, "owner": {"id": 648}, "assignee": {"id": 525}, "project": {"id": 316, "owner": {"id": 706}, "assignee": {"id": 806}}, "task": {"id": 328, "owner": {"id": 950}, "assignee": {"id": 1047}}, "job": {"id": 300, "assignee": {"id": 97}}, "issue": {"id": 348, "owner": {"id": 1222}, "assignee": {"id": 1398}}, "organization": {"id": 193}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 629}, "assignee": {"id": 596}, "project": {"id": 383, "owner": {"id": 734}, "assignee": {"id": 812}}, "task": {"id": 363, "owner": {"id": 976}, "assignee": {"id": 1041}}, "job": {"id": 312, "assignee": {"id": 44}}, "issue": {"id": 312, "owner": {"id": 1268}, "assignee": {"id": 1364}}, "organization": {"id": 119}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 312, "owner": {"id": 650}, "assignee": {"id": 572}, "project": {"id": 389, "owner": {"id": 770}, "assignee": {"id": 857}}, "task": {"id": 318, "owner": {"id": 957}, "assignee": {"id": 1012}}, "job": {"id": 372, "assignee": {"id": 14}}, "issue": {"id": 330, "owner": {"id": 1236}, "assignee": {"id": 1389}}, "organization": {"id": 1477}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 314, "owner": {"id": 605}, "assignee": {"id": 508}, "project": {"id": 339, "owner": {"id": 773}, "assignee": {"id": 895}}, "task": {"id": 322, "owner": {"id": 963}, "assignee": {"id": 1016}}, "job": {"id": 331, "assignee": {"id": 39}}, "issue": {"id": 367, "owner": {"id": 1225}, "assignee": {"id": 1348}}, "organization": {"id": 1473}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "owner": {"id": 625}, "assignee": {"id": 513}, "project": {"id": 387, "owner": {"id": 789}, "assignee": {"id": 875}}, "task": {"id": 374, "owner": {"id": 905}, "assignee": {"id": 1013}}, "job": {"id": 393, "assignee": {"id": 32}}, "issue": {"id": 395, "owner": {"id": 1268}, "assignee": {"id": 1373}}, "organization": {"id": 117}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "owner": {"id": 657}, "assignee": {"id": 548}, "project": {"id": 325, "owner": {"id": 782}, "assignee": {"id": 882}}, "task": {"id": 362, "owner": {"id": 973}, "assignee": {"id": 1024}}, "job": {"id": 332, "assignee": {"id": 58}}, "issue": {"id": 348, "owner": {"id": 1277}, "assignee": {"id": 1352}}, "organization": {"id": 167}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "owner": {"id": 641}, "assignee": {"id": 554}, "project": {"id": 341, "owner": {"id": 728}, "assignee": {"id": 867}}, "task": {"id": 329, "owner": {"id": 992}, "assignee": {"id": 1094}}, "job": {"id": 392, "assignee": {"id": 22}}, "issue": {"id": 312, "owner": {"id": 1243}, "assignee": {"id": 1367}}, "organization": {"id": 1480}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 630}, "assignee": {"id": 526}, "project": {"id": 350, "owner": {"id": 724}, "assignee": {"id": 837}}, "task": {"id": 340, "owner": {"id": 935}, "assignee": {"id": 1036}}, "job": {"id": 397, "assignee": {"id": 13}}, "issue": {"id": 309, "owner": {"id": 1241}, "assignee": {"id": 1391}}, "organization": {"id": 1465}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "owner": {"id": 637}, "assignee": {"id": 589}, "project": {"id": 335, "owner": {"id": 734}, "assignee": {"id": 826}}, "task": {"id": 307, "owner": {"id": 910}, "assignee": {"id": 1076}}, "job": {"id": 354, "assignee": {"id": 61}}, "issue": {"id": 300, "owner": {"id": 1289}, "assignee": {"id": 1325}}, "organization": {"id": 190}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "owner": {"id": 624}, "assignee": {"id": 562}, "project": {"id": 318, "owner": {"id": 729}, "assignee": {"id": 868}}, "task": {"id": 372, "owner": {"id": 957}, "assignee": {"id": 1045}}, "job": {"id": 312, "assignee": {"id": 74}}, "issue": {"id": 374, "owner": {"id": 1256}, "assignee": {"id": 1304}}, "organization": {"id": 162}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 692}, "assignee": {"id": 502}, "project": {"id": 364, "owner": {"id": 716}, "assignee": {"id": 846}}, "task": {"id": 348, "owner": {"id": 940}, "assignee": {"id": 1058}}, "job": {"id": 341, "assignee": {"id": 66}}, "issue": {"id": 349, "owner": {"id": 1278}, "assignee": {"id": 1395}}, "organization": {"id": 1434}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "owner": {"id": 691}, "assignee": {"id": 595}, "project": {"id": 335, "owner": {"id": 779}, "assignee": {"id": 860}}, "task": {"id": 337, "owner": {"id": 995}, "assignee": {"id": 1027}}, "job": {"id": 398, "assignee": {"id": 75}}, "issue": {"id": 354, "owner": {"id": 1218}, "assignee": {"id": 1380}}, "organization": {"id": 1450}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 693}, "assignee": {"id": 550}, "project": {"id": 303, "owner": {"id": 726}, "assignee": {"id": 849}}, "task": {"id": 389, "owner": {"id": 992}, "assignee": {"id": 1006}}, "job": {"id": 364, "assignee": {"id": 82}}, "issue": {"id": 318, "owner": {"id": 1289}, "assignee": {"id": 1390}}, "organization": {"id": 163}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 658}, "assignee": {"id": 582}, "project": {"id": 364, "owner": {"id": 715}, "assignee": {"id": 841}}, "task": {"id": 372, "owner": {"id": 988}, "assignee": {"id": 1032}}, "job": {"id": 312, "assignee": {"id": 83}}, "issue": {"id": 375, "owner": {"id": 1270}, "assignee": {"id": 1314}}, "organization": {"id": 127}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 396, "owner": {"id": 697}, "assignee": {"id": 555}, "project": {"id": 364, "owner": {"id": 756}, "assignee": {"id": 877}}, "task": {"id": 371, "owner": {"id": 900}, "assignee": {"id": 1021}}, "job": {"id": 393, "assignee": {"id": 72}}, "issue": {"id": 335, "owner": {"id": 1257}, "assignee": {"id": 1333}}, "organization": {"id": 1429}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 647}, "assignee": {"id": 533}, "project": {"id": 387, "owner": {"id": 797}, "assignee": {"id": 871}}, "task": {"id": 388, "owner": {"id": 915}, "assignee": {"id": 1075}}, "job": {"id": 373, "assignee": {"id": 20}}, "issue": {"id": 314, "owner": {"id": 1290}, "assignee": {"id": 1391}}, "organization": {"id": 1409}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 344, "owner": {"id": 685}, "assignee": {"id": 599}, "project": {"id": 332, "owner": {"id": 765}, "assignee": {"id": 878}}, "task": {"id": 328, "owner": {"id": 929}, "assignee": {"id": 1095}}, "job": {"id": 351, "assignee": {"id": 2}}, "issue": {"id": 307, "owner": {"id": 1207}, "assignee": {"id": 1300}}, "organization": {"id": 173}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 304, "owner": {"id": 677}, "assignee": {"id": 535}, "project": {"id": 380, "owner": {"id": 764}, "assignee": {"id": 831}}, "task": {"id": 374, "owner": {"id": 947}, "assignee": {"id": 1034}}, "job": {"id": 385, "assignee": {"id": 44}}, "issue": {"id": 396, "owner": {"id": 1291}, "assignee": {"id": 1324}}, "organization": {"id": 189}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 380, "owner": {"id": 627}, "assignee": {"id": 555}, "project": {"id": 310, "owner": {"id": 711}, "assignee": {"id": 842}}, "task": {"id": 330, "owner": {"id": 936}, "assignee": {"id": 1089}}, "job": {"id": 397, "assignee": {"id": 81}}, "issue": {"id": 385, "owner": {"id": 1251}, "assignee": {"id": 1344}}, "organization": {"id": 1403}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 684}, "assignee": {"id": 567}, "project": {"id": 367, "owner": {"id": 743}, "assignee": {"id": 852}}, "task": {"id": 372, "owner": {"id": 934}, "assignee": {"id": 1006}}, "job": {"id": 356, "assignee": {"id": 43}}, "issue": {"id": 358, "owner": {"id": 1223}, "assignee": {"id": 1364}}, "organization": {"id": 1465}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 367, "owner": {"id": 672}, "assignee": {"id": 585}, "project": {"id": 331, "owner": {"id": 786}, "assignee": {"id": 895}}, "task": {"id": 367, "owner": {"id": 957}, "assignee": {"id": 1007}}, "job": {"id": 332, "assignee": {"id": 4}}, "issue": {"id": 391, "owner": {"id": 1273}, "assignee": {"id": 1305}}, "organization": {"id": 139}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 313, "owner": {"id": 633}, "assignee": {"id": 526}, "project": {"id": 320, "owner": {"id": 745}, "assignee": {"id": 849}}, "task": {"id": 314, "owner": {"id": 976}, "assignee": {"id": 1012}}, "job": {"id": 376, "assignee": {"id": 56}}, "issue": {"id": 381, "owner": {"id": 1238}, "assignee": {"id": 1309}}, "organization": {"id": 131}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 381, "owner": {"id": 664}, "assignee": {"id": 598}, "project": {"id": 328, "owner": {"id": 751}, "assignee": {"id": 801}}, "task": {"id": 319, "owner": {"id": 901}, "assignee": {"id": 1054}}, "job": {"id": 361, "assignee": {"id": 9}}, "issue": {"id": 327, "owner": {"id": 1223}, "assignee": {"id": 1383}}, "organization": {"id": 1453}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 313, "owner": {"id": 677}, "assignee": {"id": 527}, "project": {"id": 338, "owner": {"id": 784}, "assignee": {"id": 885}}, "task": {"id": 365, "owner": {"id": 984}, "assignee": {"id": 1066}}, "job": {"id": 387, "assignee": {"id": 71}}, "issue": {"id": 357, "owner": {"id": 1258}, "assignee": {"id": 1351}}, "organization": {"id": 1436}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "owner": {"id": 681}, "assignee": {"id": 503}, "project": {"id": 369, "owner": {"id": 711}, "assignee": {"id": 896}}, "task": {"id": 387, "owner": {"id": 915}, "assignee": {"id": 1005}}, "job": {"id": 326, "assignee": {"id": 18}}, "issue": {"id": 356, "owner": {"id": 1243}, "assignee": {"id": 1320}}, "organization": {"id": 190}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "owner": {"id": 667}, "assignee": {"id": 538}, "project": {"id": 353, "owner": {"id": 770}, "assignee": {"id": 808}}, "task": {"id": 368, "owner": {"id": 990}, "assignee": {"id": 1090}}, "job": {"id": 383, "assignee": {"id": 0}}, "issue": {"id": 399, "owner": {"id": 1241}, "assignee": {"id": 1361}}, "organization": {"id": 112}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "owner": {"id": 665}, "assignee": {"id": 592}, "project": {"id": 324, "owner": {"id": 775}, "assignee": {"id": 843}}, "task": {"id": 342, "owner": {"id": 926}, "assignee": {"id": 1060}}, "job": {"id": 331, "assignee": {"id": 70}}, "issue": {"id": 332, "owner": {"id": 1281}, "assignee": {"id": 1347}}, "organization": {"id": 1440}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "owner": {"id": 625}, "assignee": {"id": 501}, "project": {"id": 355, "owner": {"id": 763}, "assignee": {"id": 895}}, "task": {"id": 376, "owner": {"id": 934}, "assignee": {"id": 1039}}, "job": {"id": 336, "assignee": {"id": 85}}, "issue": {"id": 362, "owner": {"id": 1224}, "assignee": {"id": 1368}}, "organization": {"id": 1452}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "owner": {"id": 688}, "assignee": {"id": 507}, "project": {"id": 317, "owner": {"id": 761}, "assignee": {"id": 821}}, "task": {"id": 316, "owner": {"id": 960}, "assignee": {"id": 1073}}, "job": {"id": 358, "assignee": {"id": 49}}, "issue": {"id": 316, "owner": {"id": 1244}, "assignee": {"id": 1380}}, "organization": {"id": 114}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 623}, "assignee": {"id": 588}, "project": {"id": 398, "owner": {"id": 743}, "assignee": {"id": 856}}, "task": {"id": 378, "owner": {"id": 978}, "assignee": {"id": 1015}}, "job": {"id": 383, "assignee": {"id": 16}}, "issue": {"id": 336, "owner": {"id": 1249}, "assignee": {"id": 1317}}, "organization": {"id": 169}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 698}, "assignee": {"id": 534}, "project": {"id": 324, "owner": {"id": 773}, "assignee": {"id": 868}}, "task": {"id": 374, "owner": {"id": 927}, "assignee": {"id": 1085}}, "job": {"id": 325, "assignee": {"id": 29}}, "issue": {"id": 315, "owner": {"id": 1266}, "assignee": {"id": 1328}}, "organization": {"id": 1420}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "owner": {"id": 653}, "assignee": {"id": 568}, "project": {"id": 387, "owner": {"id": 701}, "assignee": {"id": 890}}, "task": {"id": 397, "owner": {"id": 921}, "assignee": {"id": 1001}}, "job": {"id": 319, "assignee": {"id": 63}}, "issue": {"id": 339, "owner": {"id": 1213}, "assignee": {"id": 1308}}, "organization": {"id": 1447}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 619}, "assignee": {"id": 570}, "project": {"id": 345, "owner": {"id": 734}, "assignee": {"id": 804}}, "task": {"id": 377, "owner": {"id": 948}, "assignee": {"id": 1062}}, "job": {"id": 305, "assignee": {"id": 68}}, "issue": {"id": 358, "owner": {"id": 1254}, "assignee": {"id": 1368}}, "organization": {"id": 135}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 311, "owner": {"id": 668}, "assignee": {"id": 504}, "project": {"id": 337, "owner": {"id": 740}, "assignee": {"id": 858}}, "task": {"id": 337, "owner": {"id": 936}, "assignee": {"id": 1075}}, "job": {"id": 371, "assignee": {"id": 72}}, "issue": {"id": 367, "owner": {"id": 1220}, "assignee": {"id": 1393}}, "organization": {"id": 138}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 338, "owner": {"id": 617}, "assignee": {"id": 523}, "project": {"id": 344, "owner": {"id": 788}, "assignee": {"id": 877}}, "task": {"id": 387, "owner": {"id": 984}, "assignee": {"id": 1027}}, "job": {"id": 353, "assignee": {"id": 25}}, "issue": {"id": 367, "owner": {"id": 1211}, "assignee": {"id": 1322}}, "organization": {"id": 1467}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 329, "owner": {"id": 656}, "assignee": {"id": 509}, "project": {"id": 377, "owner": {"id": 739}, "assignee": {"id": 852}}, "task": {"id": 305, "owner": {"id": 970}, "assignee": {"id": 1005}}, "job": {"id": 356, "assignee": {"id": 39}}, "issue": {"id": 308, "owner": {"id": 1284}, "assignee": {"id": 1340}}, "organization": {"id": 1473}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 300, "owner": {"id": 649}, "assignee": {"id": 596}, "project": {"id": 384, "owner": {"id": 713}, "assignee": {"id": 848}}, "task": {"id": 367, "owner": {"id": 916}, "assignee": {"id": 1020}}, "job": {"id": 365, "assignee": {"id": 90}}, "issue": {"id": 317, "owner": {"id": 1293}, "assignee": {"id": 1387}}, "organization": {"id": 194}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 362, "owner": {"id": 699}, "assignee": {"id": 572}, "project": {"id": 320, "owner": {"id": 763}, "assignee": {"id": 889}}, "task": {"id": 324, "owner": {"id": 907}, "assignee": {"id": 1081}}, "job": {"id": 309, "assignee": {"id": 15}}, "issue": {"id": 317, "owner": {"id": 1201}, "assignee": {"id": 1345}}, "organization": {"id": 163}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 317, "owner": {"id": 647}, "assignee": {"id": 507}, "project": {"id": 331, "owner": {"id": 746}, "assignee": {"id": 816}}, "task": {"id": 382, "owner": {"id": 922}, "assignee": {"id": 1038}}, "job": {"id": 316, "assignee": {"id": 63}}, "issue": {"id": 386, "owner": {"id": 1206}, "assignee": {"id": 1393}}, "organization": {"id": 1405}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 355, "owner": {"id": 677}, "assignee": {"id": 516}, "project": {"id": 374, "owner": {"id": 765}, "assignee": {"id": 878}}, "task": {"id": 350, "owner": {"id": 939}, "assignee": {"id": 1004}}, "job": {"id": 390, "assignee": {"id": 71}}, "issue": {"id": 373, "owner": {"id": 1296}, "assignee": {"id": 1315}}, "organization": {"id": 1446}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 351, "owner": {"id": 684}, "assignee": {"id": 569}, "project": {"id": 368, "owner": {"id": 723}, "assignee": {"id": 838}}, "task": {"id": 325, "owner": {"id": 994}, "assignee": {"id": 1062}}, "job": {"id": 337, "assignee": {"id": 1111}}, "issue": {"id": 356, "owner": {"id": 14}, "assignee": {"id": 1310}}, "organization": {"id": 174}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 620}, "assignee": {"id": 511}, "project": {"id": 339, "owner": {"id": 782}, "assignee": {"id": 852}}, "task": {"id": 351, "owner": {"id": 909}, "assignee": {"id": 1036}}, "job": {"id": 314, "assignee": {"id": 1117}}, "issue": {"id": 308, "owner": {"id": 96}, "assignee": {"id": 1376}}, "organization": {"id": 149}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 306, "owner": {"id": 602}, "assignee": {"id": 526}, "project": {"id": 375, "owner": {"id": 713}, "assignee": {"id": 820}}, "task": {"id": 331, "owner": {"id": 951}, "assignee": {"id": 1091}}, "job": {"id": 300, "assignee": {"id": 1140}}, "issue": {"id": 332, "owner": {"id": 22}, "assignee": {"id": 1312}}, "organization": {"id": 1430}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 371, "owner": {"id": 694}, "assignee": {"id": 548}, "project": {"id": 318, "owner": {"id": 767}, "assignee": {"id": 839}}, "task": {"id": 322, "owner": {"id": 982}, "assignee": {"id": 1060}}, "job": {"id": 391, "assignee": {"id": 1190}}, "issue": {"id": 328, "owner": {"id": 34}, "assignee": {"id": 1373}}, "organization": {"id": 1431}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "owner": {"id": 659}, "assignee": {"id": 550}, "project": {"id": 326, "owner": {"id": 782}, "assignee": {"id": 821}}, "task": {"id": 381, "owner": {"id": 925}, "assignee": {"id": 1030}}, "job": {"id": 317, "assignee": {"id": 1153}}, "issue": {"id": 318, "owner": {"id": 70}, "assignee": {"id": 1336}}, "organization": {"id": 106}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 650}, "assignee": {"id": 573}, "project": {"id": 371, "owner": {"id": 767}, "assignee": {"id": 869}}, "task": {"id": 303, "owner": {"id": 947}, "assignee": {"id": 1052}}, "job": {"id": 382, "assignee": {"id": 1155}}, "issue": {"id": 317, "owner": {"id": 96}, "assignee": {"id": 1362}}, "organization": {"id": 102}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 372, "owner": {"id": 647}, "assignee": {"id": 554}, "project": {"id": 310, "owner": {"id": 797}, "assignee": {"id": 863}}, "task": {"id": 356, "owner": {"id": 919}, "assignee": {"id": 1008}}, "job": {"id": 395, "assignee": {"id": 1109}}, "issue": {"id": 378, "owner": {"id": 52}, "assignee": {"id": 1303}}, "organization": {"id": 1433}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "owner": {"id": 666}, "assignee": {"id": 502}, "project": {"id": 371, "owner": {"id": 798}, "assignee": {"id": 873}}, "task": {"id": 334, "owner": {"id": 940}, "assignee": {"id": 1072}}, "job": {"id": 307, "assignee": {"id": 1121}}, "issue": {"id": 307, "owner": {"id": 67}, "assignee": {"id": 1368}}, "organization": {"id": 1469}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "owner": {"id": 618}, "assignee": {"id": 527}, "project": {"id": 373, "owner": {"id": 708}, "assignee": {"id": 833}}, "task": {"id": 391, "owner": {"id": 903}, "assignee": {"id": 1068}}, "job": {"id": 303, "assignee": {"id": 1176}}, "issue": {"id": 338, "owner": {"id": 56}, "assignee": {"id": 1394}}, "organization": {"id": 140}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 699}, "assignee": {"id": 510}, "project": {"id": 344, "owner": {"id": 781}, "assignee": {"id": 852}}, "task": {"id": 373, "owner": {"id": 910}, "assignee": {"id": 1029}}, "job": {"id": 302, "assignee": {"id": 1141}}, "issue": {"id": 376, "owner": {"id": 59}, "assignee": {"id": 1386}}, "organization": {"id": 198}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "owner": {"id": 601}, "assignee": {"id": 521}, "project": {"id": 331, "owner": {"id": 768}, "assignee": {"id": 875}}, "task": {"id": 382, "owner": {"id": 943}, "assignee": {"id": 1033}}, "job": {"id": 317, "assignee": {"id": 1106}}, "issue": {"id": 393, "owner": {"id": 92}, "assignee": {"id": 1381}}, "organization": {"id": 1417}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "owner": {"id": 662}, "assignee": {"id": 577}, "project": {"id": 387, "owner": {"id": 722}, "assignee": {"id": 800}}, "task": {"id": 364, "owner": {"id": 902}, "assignee": {"id": 1079}}, "job": {"id": 386, "assignee": {"id": 1120}}, "issue": {"id": 317, "owner": {"id": 4}, "assignee": {"id": 1321}}, "organization": {"id": 1463}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 363, "owner": {"id": 693}, "assignee": {"id": 573}, "project": {"id": 380, "owner": {"id": 737}, "assignee": {"id": 887}}, "task": {"id": 311, "owner": {"id": 956}, "assignee": {"id": 1077}}, "job": {"id": 391, "assignee": {"id": 1198}}, "issue": {"id": 387, "owner": {"id": 35}, "assignee": {"id": 1396}}, "organization": {"id": 158}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 305, "owner": {"id": 611}, "assignee": {"id": 546}, "project": {"id": 338, "owner": {"id": 775}, "assignee": {"id": 867}}, "task": {"id": 357, "owner": {"id": 969}, "assignee": {"id": 1078}}, "job": {"id": 365, "assignee": {"id": 1133}}, "issue": {"id": 387, "owner": {"id": 14}, "assignee": {"id": 1318}}, "organization": {"id": 119}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 611}, "assignee": {"id": 541}, "project": {"id": 395, "owner": {"id": 718}, "assignee": {"id": 875}}, "task": {"id": 365, "owner": {"id": 930}, "assignee": {"id": 1001}}, "job": {"id": 311, "assignee": {"id": 1111}}, "issue": {"id": 388, "owner": {"id": 27}, "assignee": {"id": 1333}}, "organization": {"id": 1452}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 304, "owner": {"id": 667}, "assignee": {"id": 509}, "project": {"id": 372, "owner": {"id": 745}, "assignee": {"id": 852}}, "task": {"id": 399, "owner": {"id": 903}, "assignee": {"id": 1029}}, "job": {"id": 381, "assignee": {"id": 1165}}, "issue": {"id": 303, "owner": {"id": 82}, "assignee": {"id": 1358}}, "organization": {"id": 1466}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 653}, "assignee": {"id": 596}, "project": {"id": 362, "owner": {"id": 709}, "assignee": {"id": 858}}, "task": {"id": 312, "owner": {"id": 984}, "assignee": {"id": 1077}}, "job": {"id": 310, "assignee": {"id": 1113}}, "issue": {"id": 370, "owner": {"id": 58}, "assignee": {"id": 1375}}, "organization": {"id": 173}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 302, "owner": {"id": 602}, "assignee": {"id": 525}, "project": {"id": 312, "owner": {"id": 737}, "assignee": {"id": 837}}, "task": {"id": 311, "owner": {"id": 913}, "assignee": {"id": 1001}}, "job": {"id": 348, "assignee": {"id": 1168}}, "issue": {"id": 378, "owner": {"id": 90}, "assignee": {"id": 1368}}, "organization": {"id": 182}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 309, "owner": {"id": 662}, "assignee": {"id": 584}, "project": {"id": 376, "owner": {"id": 771}, "assignee": {"id": 898}}, "task": {"id": 373, "owner": {"id": 926}, "assignee": {"id": 1027}}, "job": {"id": 303, "assignee": {"id": 1118}}, "issue": {"id": 350, "owner": {"id": 20}, "assignee": {"id": 1327}}, "organization": {"id": 1474}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 331, "owner": {"id": 687}, "assignee": {"id": 502}, "project": {"id": 311, "owner": {"id": 731}, "assignee": {"id": 809}}, "task": {"id": 354, "owner": {"id": 964}, "assignee": {"id": 1011}}, "job": {"id": 332, "assignee": {"id": 1157}}, "issue": {"id": 306, "owner": {"id": 56}, "assignee": {"id": 1393}}, "organization": {"id": 1426}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 690}, "assignee": {"id": 527}, "project": {"id": 341, "owner": {"id": 701}, "assignee": {"id": 862}}, "task": {"id": 382, "owner": {"id": 970}, "assignee": {"id": 1090}}, "job": {"id": 358, "assignee": {"id": 1113}}, "issue": {"id": 305, "owner": {"id": 6}, "assignee": {"id": 1350}}, "organization": {"id": 135}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 687}, "assignee": {"id": 562}, "project": {"id": 359, "owner": {"id": 765}, "assignee": {"id": 833}}, "task": {"id": 347, "owner": {"id": 968}, "assignee": {"id": 1054}}, "job": {"id": 337, "assignee": {"id": 1174}}, "issue": {"id": 386, "owner": {"id": 96}, "assignee": {"id": 1320}}, "organization": {"id": 191}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 658}, "assignee": {"id": 568}, "project": {"id": 365, "owner": {"id": 779}, "assignee": {"id": 851}}, "task": {"id": 318, "owner": {"id": 938}, "assignee": {"id": 1028}}, "job": {"id": 344, "assignee": {"id": 1164}}, "issue": {"id": 358, "owner": {"id": 25}, "assignee": {"id": 1310}}, "organization": {"id": 1435}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 353, "owner": {"id": 693}, "assignee": {"id": 594}, "project": {"id": 391, "owner": {"id": 735}, "assignee": {"id": 857}}, "task": {"id": 330, "owner": {"id": 968}, "assignee": {"id": 1050}}, "job": {"id": 382, "assignee": {"id": 1161}}, "issue": {"id": 324, "owner": {"id": 92}, "assignee": {"id": 1353}}, "organization": {"id": 1480}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "owner": {"id": 647}, "assignee": {"id": 587}, "project": {"id": 352, "owner": {"id": 715}, "assignee": {"id": 856}}, "task": {"id": 351, "owner": {"id": 964}, "assignee": {"id": 1001}}, "job": {"id": 374, "assignee": {"id": 1174}}, "issue": {"id": 327, "owner": {"id": 6}, "assignee": {"id": 1364}}, "organization": {"id": 118}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "owner": {"id": 611}, "assignee": {"id": 566}, "project": {"id": 385, "owner": {"id": 771}, "assignee": {"id": 862}}, "task": {"id": 315, "owner": {"id": 934}, "assignee": {"id": 1077}}, "job": {"id": 332, "assignee": {"id": 1140}}, "issue": {"id": 395, "owner": {"id": 34}, "assignee": {"id": 1364}}, "organization": {"id": 153}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 630}, "assignee": {"id": 528}, "project": {"id": 320, "owner": {"id": 754}, "assignee": {"id": 824}}, "task": {"id": 320, "owner": {"id": 965}, "assignee": {"id": 1098}}, "job": {"id": 325, "assignee": {"id": 1137}}, "issue": {"id": 313, "owner": {"id": 53}, "assignee": {"id": 1390}}, "organization": {"id": 1433}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 641}, "assignee": {"id": 581}, "project": {"id": 364, "owner": {"id": 779}, "assignee": {"id": 865}}, "task": {"id": 342, "owner": {"id": 951}, "assignee": {"id": 1017}}, "job": {"id": 370, "assignee": {"id": 1123}}, "issue": {"id": 331, "owner": {"id": 73}, "assignee": {"id": 1338}}, "organization": {"id": 1437}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "owner": {"id": 646}, "assignee": {"id": 542}, "project": {"id": 350, "owner": {"id": 733}, "assignee": {"id": 880}}, "task": {"id": 342, "owner": {"id": 972}, "assignee": {"id": 1086}}, "job": {"id": 308, "assignee": {"id": 1130}}, "issue": {"id": 314, "owner": {"id": 10}, "assignee": {"id": 1303}}, "organization": {"id": 124}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 627}, "assignee": {"id": 587}, "project": {"id": 313, "owner": {"id": 709}, "assignee": {"id": 835}}, "task": {"id": 314, "owner": {"id": 962}, "assignee": {"id": 1021}}, "job": {"id": 338, "assignee": {"id": 1183}}, "issue": {"id": 302, "owner": {"id": 40}, "assignee": {"id": 1378}}, "organization": {"id": 159}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 614}, "assignee": {"id": 535}, "project": {"id": 334, "owner": {"id": 749}, "assignee": {"id": 847}}, "task": {"id": 360, "owner": {"id": 949}, "assignee": {"id": 1041}}, "job": {"id": 336, "assignee": {"id": 1181}}, "issue": {"id": 348, "owner": {"id": 38}, "assignee": {"id": 1374}}, "organization": {"id": 1463}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 644}, "assignee": {"id": 569}, "project": {"id": 341, "owner": {"id": 708}, "assignee": {"id": 898}}, "task": {"id": 301, "owner": {"id": 921}, "assignee": {"id": 1051}}, "job": {"id": 356, "assignee": {"id": 1145}}, "issue": {"id": 337, "owner": {"id": 64}, "assignee": {"id": 1357}}, "organization": {"id": 1449}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 336, "owner": {"id": 672}, "assignee": {"id": 516}, "project": {"id": 357, "owner": {"id": 714}, "assignee": {"id": 811}}, "task": {"id": 344, "owner": {"id": 944}, "assignee": {"id": 1037}}, "job": {"id": 372, "assignee": {"id": 1153}}, "issue": {"id": 370, "owner": {"id": 8}, "assignee": {"id": 1360}}, "organization": {"id": 111}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 363, "owner": {"id": 628}, "assignee": {"id": 550}, "project": {"id": 344, "owner": {"id": 713}, "assignee": {"id": 806}}, "task": {"id": 352, "owner": {"id": 980}, "assignee": {"id": 1055}}, "job": {"id": 390, "assignee": {"id": 1116}}, "issue": {"id": 377, "owner": {"id": 5}, "assignee": {"id": 1355}}, "organization": {"id": 133}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 301, "owner": {"id": 696}, "assignee": {"id": 501}, "project": {"id": 312, "owner": {"id": 749}, "assignee": {"id": 804}}, "task": {"id": 306, "owner": {"id": 914}, "assignee": {"id": 1048}}, "job": {"id": 318, "assignee": {"id": 1189}}, "issue": {"id": 331, "owner": {"id": 63}, "assignee": {"id": 1310}}, "organization": {"id": 1480}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 310, "owner": {"id": 648}, "assignee": {"id": 502}, "project": {"id": 332, "owner": {"id": 774}, "assignee": {"id": 858}}, "task": {"id": 323, "owner": {"id": 911}, "assignee": {"id": 1078}}, "job": {"id": 385, "assignee": {"id": 1178}}, "issue": {"id": 379, "owner": {"id": 79}, "assignee": {"id": 1319}}, "organization": {"id": 1470}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 303, "owner": {"id": 654}, "assignee": {"id": 577}, "project": {"id": 356, "owner": {"id": 776}, "assignee": {"id": 801}}, "task": {"id": 319, "owner": {"id": 967}, "assignee": {"id": 1029}}, "job": {"id": 383, "assignee": {"id": 1175}}, "issue": {"id": 323, "owner": {"id": 54}, "assignee": {"id": 1353}}, "organization": {"id": 179}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"id": 346, "owner": {"id": 650}, "assignee": {"id": 580}, "project": {"id": 395, "owner": {"id": 794}, "assignee": {"id": 876}}, "task": {"id": 316, "owner": {"id": 968}, "assignee": {"id": 1019}}, "job": {"id": 365, "assignee": {"id": 1101}}, "issue": {"id": 337, "owner": {"id": 55}, "assignee": {"id": 1325}}, "organization": {"id": 122}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 31, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 305, "owner": {"id": 640}, "assignee": {"id": 586}, "project": {"id": 324, "owner": {"id": 743}, "assignee": {"id": 883}}, "task": {"id": 324, "owner": {"id": 946}, "assignee": {"id": 1037}}, "job": {"id": 359, "assignee": {"id": 1179}}, "issue": {"id": 334, "owner": {"id": 31}, "assignee": {"id": 1310}}, "organization": {"id": 1406}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 621}, "assignee": {"id": 517}, "project": {"id": 388, "owner": {"id": 719}, "assignee": {"id": 843}}, "task": {"id": 328, "owner": {"id": 921}, "assignee": {"id": 1019}}, "job": {"id": 325, "assignee": {"id": 1131}}, "issue": {"id": 399, "owner": {"id": 11}, "assignee": {"id": 1371}}, "organization": {"id": 1435}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 315, "owner": {"id": 681}, "assignee": {"id": 557}, "project": {"id": 398, "owner": {"id": 731}, "assignee": {"id": 818}}, "task": {"id": 393, "owner": {"id": 993}, "assignee": {"id": 1086}}, "job": {"id": 322, "assignee": {"id": 1144}}, "issue": {"id": 315, "owner": {"id": 30}, "assignee": {"id": 1361}}, "organization": {"id": 148}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 358, "owner": {"id": 644}, "assignee": {"id": 569}, "project": {"id": 384, "owner": {"id": 708}, "assignee": {"id": 817}}, "task": {"id": 301, "owner": {"id": 949}, "assignee": {"id": 1087}}, "job": {"id": 326, "assignee": {"id": 1128}}, "issue": {"id": 314, "owner": {"id": 63}, "assignee": {"id": 1399}}, "organization": {"id": 167}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 309, "owner": {"id": 657}, "assignee": {"id": 586}, "project": {"id": 366, "owner": {"id": 729}, "assignee": {"id": 860}}, "task": {"id": 353, "owner": {"id": 906}, "assignee": {"id": 1030}}, "job": {"id": 321, "assignee": {"id": 1185}}, "issue": {"id": 328, "owner": {"id": 40}, "assignee": {"id": 1336}}, "organization": {"id": 1405}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 683}, "assignee": {"id": 500}, "project": {"id": 383, "owner": {"id": 769}, "assignee": {"id": 816}}, "task": {"id": 355, "owner": {"id": 984}, "assignee": {"id": 1023}}, "job": {"id": 362, "assignee": {"id": 1161}}, "issue": {"id": 396, "owner": {"id": 61}, "assignee": {"id": 1374}}, "organization": {"id": 1467}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "owner": {"id": 607}, "assignee": {"id": 579}, "project": {"id": 350, "owner": {"id": 769}, "assignee": {"id": 880}}, "task": {"id": 330, "owner": {"id": 919}, "assignee": {"id": 1094}}, "job": {"id": 360, "assignee": {"id": 1165}}, "issue": {"id": 387, "owner": {"id": 1}, "assignee": {"id": 1318}}, "organization": {"id": 180}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 600}, "assignee": {"id": 549}, "project": {"id": 358, "owner": {"id": 768}, "assignee": {"id": 848}}, "task": {"id": 320, "owner": {"id": 936}, "assignee": {"id": 1078}}, "job": {"id": 314, "assignee": {"id": 1169}}, "issue": {"id": 338, "owner": {"id": 16}, "assignee": {"id": 1315}}, "organization": {"id": 108}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 656}, "assignee": {"id": 561}, "project": {"id": 329, "owner": {"id": 786}, "assignee": {"id": 811}}, "task": {"id": 329, "owner": {"id": 986}, "assignee": {"id": 1077}}, "job": {"id": 337, "assignee": {"id": 1113}}, "issue": {"id": 327, "owner": {"id": 34}, "assignee": {"id": 1306}}, "organization": {"id": 1420}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "owner": {"id": 603}, "assignee": {"id": 584}, "project": {"id": 368, "owner": {"id": 724}, "assignee": {"id": 827}}, "task": {"id": 399, "owner": {"id": 913}, "assignee": {"id": 1061}}, "job": {"id": 307, "assignee": {"id": 1118}}, "issue": {"id": 392, "owner": {"id": 96}, "assignee": {"id": 1329}}, "organization": {"id": 1409}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 90, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 675}, "assignee": {"id": 549}, "project": {"id": 303, "owner": {"id": 726}, "assignee": {"id": 867}}, "task": {"id": 323, "owner": {"id": 932}, "assignee": {"id": 1057}}, "job": {"id": 304, "assignee": {"id": 1161}}, "issue": {"id": 339, "owner": {"id": 90}, "assignee": {"id": 1389}}, "organization": {"id": 168}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "owner": {"id": 622}, "assignee": {"id": 506}, "project": {"id": 333, "owner": {"id": 726}, "assignee": {"id": 858}}, "task": {"id": 315, "owner": {"id": 999}, "assignee": {"id": 1037}}, "job": {"id": 374, "assignee": {"id": 1151}}, "issue": {"id": 373, "owner": {"id": 9}, "assignee": {"id": 1339}}, "organization": {"id": 115}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "owner": {"id": 663}, "assignee": {"id": 566}, "project": {"id": 319, "owner": {"id": 726}, "assignee": {"id": 801}}, "task": {"id": 312, "owner": {"id": 989}, "assignee": {"id": 1099}}, "job": {"id": 311, "assignee": {"id": 1163}}, "issue": {"id": 367, "owner": {"id": 91}, "assignee": {"id": 1304}}, "organization": {"id": 1444}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 387, "owner": {"id": 609}, "assignee": {"id": 583}, "project": {"id": 395, "owner": {"id": 789}, "assignee": {"id": 870}}, "task": {"id": 389, "owner": {"id": 904}, "assignee": {"id": 1059}}, "job": {"id": 363, "assignee": {"id": 1181}}, "issue": {"id": 313, "owner": {"id": 66}, "assignee": {"id": 1358}}, "organization": {"id": 1444}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 300, "owner": {"id": 640}, "assignee": {"id": 514}, "project": {"id": 364, "owner": {"id": 721}, "assignee": {"id": 884}}, "task": {"id": 356, "owner": {"id": 915}, "assignee": {"id": 1088}}, "job": {"id": 323, "assignee": {"id": 1119}}, "issue": {"id": 331, "owner": {"id": 64}, "assignee": {"id": 1399}}, "organization": {"id": 173}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 330, "owner": {"id": 667}, "assignee": {"id": 548}, "project": {"id": 327, "owner": {"id": 782}, "assignee": {"id": 811}}, "task": {"id": 319, "owner": {"id": 952}, "assignee": {"id": 1086}}, "job": {"id": 356, "assignee": {"id": 1118}}, "issue": {"id": 386, "owner": {"id": 29}, "assignee": {"id": 1348}}, "organization": {"id": 164}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 332, "owner": {"id": 666}, "assignee": {"id": 535}, "project": {"id": 366, "owner": {"id": 767}, "assignee": {"id": 835}}, "task": {"id": 353, "owner": {"id": 939}, "assignee": {"id": 1042}}, "job": {"id": 337, "assignee": {"id": 1141}}, "issue": {"id": 349, "owner": {"id": 47}, "assignee": {"id": 1334}}, "organization": {"id": 1481}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 316, "owner": {"id": 638}, "assignee": {"id": 568}, "project": {"id": 388, "owner": {"id": 708}, "assignee": {"id": 859}}, "task": {"id": 389, "owner": {"id": 923}, "assignee": {"id": 1086}}, "job": {"id": 353, "assignee": {"id": 1159}}, "issue": {"id": 354, "owner": {"id": 39}, "assignee": {"id": 1325}}, "organization": {"id": 1436}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 387, "owner": {"id": 698}, "assignee": {"id": 561}, "project": {"id": 308, "owner": {"id": 795}, "assignee": {"id": 851}}, "task": {"id": 363, "owner": {"id": 908}, "assignee": {"id": 1006}}, "job": {"id": 343, "assignee": {"id": 1141}}, "issue": {"id": 306, "owner": {"id": 48}, "assignee": {"id": 1368}}, "organization": {"id": 139}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 303, "owner": {"id": 653}, "assignee": {"id": 508}, "project": {"id": 372, "owner": {"id": 791}, "assignee": {"id": 891}}, "task": {"id": 306, "owner": {"id": 988}, "assignee": {"id": 1055}}, "job": {"id": 388, "assignee": {"id": 1119}}, "issue": {"id": 375, "owner": {"id": 16}, "assignee": {"id": 1330}}, "organization": {"id": 165}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 328, "owner": {"id": 660}, "assignee": {"id": 533}, "project": {"id": 310, "owner": {"id": 757}, "assignee": {"id": 878}}, "task": {"id": 371, "owner": {"id": 923}, "assignee": {"id": 1029}}, "job": {"id": 374, "assignee": {"id": 1169}}, "issue": {"id": 353, "owner": {"id": 55}, "assignee": {"id": 1338}}, "organization": {"id": 1433}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 615}, "assignee": {"id": 550}, "project": {"id": 308, "owner": {"id": 794}, "assignee": {"id": 845}}, "task": {"id": 390, "owner": {"id": 933}, "assignee": {"id": 1040}}, "job": {"id": 342, "assignee": {"id": 1100}}, "issue": {"id": 302, "owner": {"id": 52}, "assignee": {"id": 1352}}, "organization": {"id": 1420}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 381, "owner": {"id": 660}, "assignee": {"id": 504}, "project": {"id": 380, "owner": {"id": 724}, "assignee": {"id": 841}}, "task": {"id": 339, "owner": {"id": 977}, "assignee": {"id": 1047}}, "job": {"id": 381, "assignee": {"id": 1197}}, "issue": {"id": 381, "owner": {"id": 17}, "assignee": {"id": 1338}}, "organization": {"id": 198}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 329, "owner": {"id": 618}, "assignee": {"id": 579}, "project": {"id": 363, "owner": {"id": 717}, "assignee": {"id": 839}}, "task": {"id": 374, "owner": {"id": 908}, "assignee": {"id": 1068}}, "job": {"id": 392, "assignee": {"id": 1111}}, "issue": {"id": 339, "owner": {"id": 44}, "assignee": {"id": 1306}}, "organization": {"id": 166}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 676}, "assignee": {"id": 583}, "project": {"id": 376, "owner": {"id": 744}, "assignee": {"id": 895}}, "task": {"id": 391, "owner": {"id": 985}, "assignee": {"id": 1009}}, "job": {"id": 341, "assignee": {"id": 1102}}, "issue": {"id": 392, "owner": {"id": 22}, "assignee": {"id": 1322}}, "organization": {"id": 1450}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 699}, "assignee": {"id": 535}, "project": {"id": 390, "owner": {"id": 754}, "assignee": {"id": 863}}, "task": {"id": 353, "owner": {"id": 942}, "assignee": {"id": 1084}}, "job": {"id": 326, "assignee": {"id": 1197}}, "issue": {"id": 343, "owner": {"id": 86}, "assignee": {"id": 1381}}, "organization": {"id": 1409}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "owner": {"id": 619}, "assignee": {"id": 578}, "project": {"id": 371, "owner": {"id": 722}, "assignee": {"id": 803}}, "task": {"id": 313, "owner": {"id": 921}, "assignee": {"id": 1057}}, "job": {"id": 345, "assignee": {"id": 1154}}, "issue": {"id": 329, "owner": {"id": 33}, "assignee": {"id": 1315}}, "organization": {"id": 179}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 621}, "assignee": {"id": 525}, "project": {"id": 328, "owner": {"id": 720}, "assignee": {"id": 869}}, "task": {"id": 382, "owner": {"id": 958}, "assignee": {"id": 1051}}, "job": {"id": 383, "assignee": {"id": 1145}}, "issue": {"id": 318, "owner": {"id": 20}, "assignee": {"id": 1369}}, "organization": {"id": 101}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "owner": {"id": 695}, "assignee": {"id": 531}, "project": {"id": 360, "owner": {"id": 791}, "assignee": {"id": 863}}, "task": {"id": 311, "owner": {"id": 940}, "assignee": {"id": 1023}}, "job": {"id": 345, "assignee": {"id": 1114}}, "issue": {"id": 314, "owner": {"id": 38}, "assignee": {"id": 1366}}, "organization": {"id": 1412}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 321, "owner": {"id": 681}, "assignee": {"id": 516}, "project": {"id": 377, "owner": {"id": 778}, "assignee": {"id": 899}}, "task": {"id": 338, "owner": {"id": 927}, "assignee": {"id": 1024}}, "job": {"id": 377, "assignee": {"id": 1145}}, "issue": {"id": 303, "owner": {"id": 12}, "assignee": {"id": 1324}}, "organization": {"id": 1477}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "owner": {"id": 691}, "assignee": {"id": 502}, "project": {"id": 337, "owner": {"id": 733}, "assignee": {"id": 836}}, "task": {"id": 367, "owner": {"id": 946}, "assignee": {"id": 1079}}, "job": {"id": 351, "assignee": {"id": 1181}}, "issue": {"id": 379, "owner": {"id": 88}, "assignee": {"id": 1341}}, "organization": {"id": 196}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 645}, "assignee": {"id": 542}, "project": {"id": 383, "owner": {"id": 769}, "assignee": {"id": 896}}, "task": {"id": 342, "owner": {"id": 912}, "assignee": {"id": 1003}}, "job": {"id": 377, "assignee": {"id": 1153}}, "issue": {"id": 362, "owner": {"id": 42}, "assignee": {"id": 1348}}, "organization": {"id": 199}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "owner": {"id": 677}, "assignee": {"id": 523}, "project": {"id": 366, "owner": {"id": 724}, "assignee": {"id": 803}}, "task": {"id": 330, "owner": {"id": 905}, "assignee": {"id": 1096}}, "job": {"id": 314, "assignee": {"id": 1148}}, "issue": {"id": 315, "owner": {"id": 28}, "assignee": {"id": 1371}}, "organization": {"id": 1432}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "owner": {"id": 698}, "assignee": {"id": 565}, "project": {"id": 378, "owner": {"id": 784}, "assignee": {"id": 892}}, "task": {"id": 310, "owner": {"id": 965}, "assignee": {"id": 1037}}, "job": {"id": 364, "assignee": {"id": 1140}}, "issue": {"id": 328, "owner": {"id": 1}, "assignee": {"id": 1368}}, "organization": {"id": 1471}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 371, "owner": {"id": 666}, "assignee": {"id": 520}, "project": {"id": 324, "owner": {"id": 789}, "assignee": {"id": 832}}, "task": {"id": 394, "owner": {"id": 926}, "assignee": {"id": 1041}}, "job": {"id": 303, "assignee": {"id": 1132}}, "issue": {"id": 305, "owner": {"id": 60}, "assignee": {"id": 1326}}, "organization": {"id": 185}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 630}, "assignee": {"id": 593}, "project": {"id": 353, "owner": {"id": 788}, "assignee": {"id": 879}}, "task": {"id": 352, "owner": {"id": 989}, "assignee": {"id": 1065}}, "job": {"id": 354, "assignee": {"id": 1142}}, "issue": {"id": 365, "owner": {"id": 41}, "assignee": {"id": 1365}}, "organization": {"id": 152}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 631}, "assignee": {"id": 501}, "project": {"id": 390, "owner": {"id": 715}, "assignee": {"id": 880}}, "task": {"id": 356, "owner": {"id": 907}, "assignee": {"id": 1035}}, "job": {"id": 351, "assignee": {"id": 1118}}, "issue": {"id": 359, "owner": {"id": 34}, "assignee": {"id": 1302}}, "organization": {"id": 1485}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 343, "owner": {"id": 622}, "assignee": {"id": 577}, "project": {"id": 394, "owner": {"id": 792}, "assignee": {"id": 823}}, "task": {"id": 396, "owner": {"id": 991}, "assignee": {"id": 1061}}, "job": {"id": 356, "assignee": {"id": 1150}}, "issue": {"id": 392, "owner": {"id": 97}, "assignee": {"id": 1362}}, "organization": {"id": 1410}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 387, "owner": {"id": 688}, "assignee": {"id": 536}, "project": {"id": 395, "owner": {"id": 720}, "assignee": {"id": 843}}, "task": {"id": 333, "owner": {"id": 966}, "assignee": {"id": 1039}}, "job": {"id": 301, "assignee": {"id": 1185}}, "issue": {"id": 331, "owner": {"id": 17}, "assignee": {"id": 1359}}, "organization": {"id": 101}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 352, "owner": {"id": 609}, "assignee": {"id": 580}, "project": {"id": 362, "owner": {"id": 751}, "assignee": {"id": 851}}, "task": {"id": 380, "owner": {"id": 909}, "assignee": {"id": 1046}}, "job": {"id": 324, "assignee": {"id": 1133}}, "issue": {"id": 338, "owner": {"id": 33}, "assignee": {"id": 1303}}, "organization": {"id": 111}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 352, "owner": {"id": 698}, "assignee": {"id": 512}, "project": {"id": 397, "owner": {"id": 789}, "assignee": {"id": 871}}, "task": {"id": 338, "owner": {"id": 931}, "assignee": {"id": 1059}}, "job": {"id": 324, "assignee": {"id": 1155}}, "issue": {"id": 353, "owner": {"id": 14}, "assignee": {"id": 1393}}, "organization": {"id": 1423}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 352, "owner": {"id": 635}, "assignee": {"id": 547}, "project": {"id": 332, "owner": {"id": 756}, "assignee": {"id": 812}}, "task": {"id": 353, "owner": {"id": 931}, "assignee": {"id": 1049}}, "job": {"id": 395, "assignee": {"id": 1175}}, "issue": {"id": 349, "owner": {"id": 52}, "assignee": {"id": 1314}}, "organization": {"id": 1499}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 383, "owner": {"id": 676}, "assignee": {"id": 562}, "project": {"id": 325, "owner": {"id": 798}, "assignee": {"id": 869}}, "task": {"id": 386, "owner": {"id": 975}, "assignee": {"id": 1079}}, "job": {"id": 388, "assignee": {"id": 1160}}, "issue": {"id": 329, "owner": {"id": 83}, "assignee": {"id": 1384}}, "organization": {"id": 194}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 317, "owner": {"id": 695}, "assignee": {"id": 506}, "project": {"id": 356, "owner": {"id": 700}, "assignee": {"id": 884}}, "task": {"id": 388, "owner": {"id": 987}, "assignee": {"id": 1033}}, "job": {"id": 395, "assignee": {"id": 1148}}, "issue": {"id": 341, "owner": {"id": 98}, "assignee": {"id": 1343}}, "organization": {"id": 132}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 312, "owner": {"id": 630}, "assignee": {"id": 537}, "project": {"id": 300, "owner": {"id": 775}, "assignee": {"id": 850}}, "task": {"id": 378, "owner": {"id": 993}, "assignee": {"id": 1004}}, "job": {"id": 308, "assignee": {"id": 1100}}, "issue": {"id": 367, "owner": {"id": 1}, "assignee": {"id": 1311}}, "organization": {"id": 1471}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 300, "owner": {"id": 660}, "assignee": {"id": 505}, "project": {"id": 378, "owner": {"id": 732}, "assignee": {"id": 835}}, "task": {"id": 359, "owner": {"id": 945}, "assignee": {"id": 1046}}, "job": {"id": 397, "assignee": {"id": 1160}}, "issue": {"id": 314, "owner": {"id": 2}, "assignee": {"id": 1373}}, "organization": {"id": 1422}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "owner": {"id": 686}, "assignee": {"id": 512}, "project": {"id": 332, "owner": {"id": 747}, "assignee": {"id": 896}}, "task": {"id": 356, "owner": {"id": 920}, "assignee": {"id": 1074}}, "job": {"id": 362, "assignee": {"id": 1192}}, "issue": {"id": 307, "owner": {"id": 70}, "assignee": {"id": 1340}}, "organization": {"id": 192}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "owner": {"id": 663}, "assignee": {"id": 571}, "project": {"id": 386, "owner": {"id": 711}, "assignee": {"id": 828}}, "task": {"id": 364, "owner": {"id": 900}, "assignee": {"id": 1051}}, "job": {"id": 373, "assignee": {"id": 1118}}, "issue": {"id": 302, "owner": {"id": 79}, "assignee": {"id": 1367}}, "organization": {"id": 172}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 667}, "assignee": {"id": 528}, "project": {"id": 354, "owner": {"id": 718}, "assignee": {"id": 889}}, "task": {"id": 368, "owner": {"id": 998}, "assignee": {"id": 1063}}, "job": {"id": 373, "assignee": {"id": 1188}}, "issue": {"id": 330, "owner": {"id": 85}, "assignee": {"id": 1344}}, "organization": {"id": 1430}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "owner": {"id": 682}, "assignee": {"id": 522}, "project": {"id": 331, "owner": {"id": 735}, "assignee": {"id": 897}}, "task": {"id": 368, "owner": {"id": 999}, "assignee": {"id": 1082}}, "job": {"id": 374, "assignee": {"id": 1106}}, "issue": {"id": 323, "owner": {"id": 14}, "assignee": {"id": 1347}}, "organization": {"id": 1460}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "owner": {"id": 640}, "assignee": {"id": 597}, "project": {"id": 369, "owner": {"id": 757}, "assignee": {"id": 877}}, "task": {"id": 353, "owner": {"id": 937}, "assignee": {"id": 1073}}, "job": {"id": 388, "assignee": {"id": 1103}}, "issue": {"id": 346, "owner": {"id": 94}, "assignee": {"id": 1379}}, "organization": {"id": 173}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 608}, "assignee": {"id": 562}, "project": {"id": 388, "owner": {"id": 703}, "assignee": {"id": 821}}, "task": {"id": 322, "owner": {"id": 953}, "assignee": {"id": 1034}}, "job": {"id": 321, "assignee": {"id": 1145}}, "issue": {"id": 350, "owner": {"id": 54}, "assignee": {"id": 1360}}, "organization": {"id": 126}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "owner": {"id": 600}, "assignee": {"id": 569}, "project": {"id": 327, "owner": {"id": 701}, "assignee": {"id": 842}}, "task": {"id": 316, "owner": {"id": 947}, "assignee": {"id": 1002}}, "job": {"id": 302, "assignee": {"id": 1144}}, "issue": {"id": 389, "owner": {"id": 80}, "assignee": {"id": 1374}}, "organization": {"id": 1471}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 699}, "assignee": {"id": 513}, "project": {"id": 321, "owner": {"id": 740}, "assignee": {"id": 892}}, "task": {"id": 376, "owner": {"id": 940}, "assignee": {"id": 1046}}, "job": {"id": 346, "assignee": {"id": 1177}}, "issue": {"id": 308, "owner": {"id": 79}, "assignee": {"id": 1365}}, "organization": {"id": 1470}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 377, "owner": {"id": 620}, "assignee": {"id": 550}, "project": {"id": 374, "owner": {"id": 728}, "assignee": {"id": 884}}, "task": {"id": 332, "owner": {"id": 957}, "assignee": {"id": 1065}}, "job": {"id": 398, "assignee": {"id": 1103}}, "issue": {"id": 320, "owner": {"id": 20}, "assignee": {"id": 1311}}, "organization": {"id": 117}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 632}, "assignee": {"id": 507}, "project": {"id": 366, "owner": {"id": 739}, "assignee": {"id": 835}}, "task": {"id": 303, "owner": {"id": 974}, "assignee": {"id": 1077}}, "job": {"id": 336, "assignee": {"id": 1175}}, "issue": {"id": 394, "owner": {"id": 36}, "assignee": {"id": 1354}}, "organization": {"id": 134}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 367, "owner": {"id": 620}, "assignee": {"id": 571}, "project": {"id": 377, "owner": {"id": 780}, "assignee": {"id": 852}}, "task": {"id": 316, "owner": {"id": 927}, "assignee": {"id": 1071}}, "job": {"id": 350, "assignee": {"id": 1195}}, "issue": {"id": 398, "owner": {"id": 99}, "assignee": {"id": 1316}}, "organization": {"id": 1428}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 341, "owner": {"id": 665}, "assignee": {"id": 553}, "project": {"id": 320, "owner": {"id": 753}, "assignee": {"id": 812}}, "task": {"id": 361, "owner": {"id": 931}, "assignee": {"id": 1017}}, "job": {"id": 330, "assignee": {"id": 1117}}, "issue": {"id": 393, "owner": {"id": 17}, "assignee": {"id": 1314}}, "organization": {"id": 1434}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 322, "owner": {"id": 639}, "assignee": {"id": 575}, "project": {"id": 378, "owner": {"id": 760}, "assignee": {"id": 820}}, "task": {"id": 330, "owner": {"id": 918}, "assignee": {"id": 1084}}, "job": {"id": 338, "assignee": {"id": 1114}}, "issue": {"id": 312, "owner": {"id": 47}, "assignee": {"id": 1329}}, "organization": {"id": 158}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 320, "owner": {"id": 635}, "assignee": {"id": 555}, "project": {"id": 374, "owner": {"id": 748}, "assignee": {"id": 803}}, "task": {"id": 350, "owner": {"id": 924}, "assignee": {"id": 1098}}, "job": {"id": 312, "assignee": {"id": 1122}}, "issue": {"id": 398, "owner": {"id": 11}, "assignee": {"id": 1392}}, "organization": {"id": 165}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 332, "owner": {"id": 631}, "assignee": {"id": 517}, "project": {"id": 382, "owner": {"id": 722}, "assignee": {"id": 896}}, "task": {"id": 329, "owner": {"id": 923}, "assignee": {"id": 1018}}, "job": {"id": 378, "assignee": {"id": 1181}}, "issue": {"id": 391, "owner": {"id": 48}, "assignee": {"id": 1318}}, "organization": {"id": 1485}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 688}, "assignee": {"id": 503}, "project": {"id": 355, "owner": {"id": 730}, "assignee": {"id": 857}}, "task": {"id": 392, "owner": {"id": 987}, "assignee": {"id": 1074}}, "job": {"id": 378, "assignee": {"id": 1198}}, "issue": {"id": 338, "owner": {"id": 17}, "assignee": {"id": 1312}}, "organization": {"id": 1433}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 396, "owner": {"id": 666}, "assignee": {"id": 511}, "project": {"id": 325, "owner": {"id": 744}, "assignee": {"id": 834}}, "task": {"id": 321, "owner": {"id": 936}, "assignee": {"id": 1040}}, "job": {"id": 357, "assignee": {"id": 1194}}, "issue": {"id": 393, "owner": {"id": 1260}, "assignee": {"id": 62}}, "organization": {"id": 194}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 352, "owner": {"id": 612}, "assignee": {"id": 587}, "project": {"id": 386, "owner": {"id": 753}, "assignee": {"id": 872}}, "task": {"id": 379, "owner": {"id": 978}, "assignee": {"id": 1017}}, "job": {"id": 339, "assignee": {"id": 1190}}, "issue": {"id": 372, "owner": {"id": 1246}, "assignee": {"id": 5}}, "organization": {"id": 161}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 306, "owner": {"id": 617}, "assignee": {"id": 518}, "project": {"id": 321, "owner": {"id": 746}, "assignee": {"id": 871}}, "task": {"id": 385, "owner": {"id": 935}, "assignee": {"id": 1098}}, "job": {"id": 324, "assignee": {"id": 1181}}, "issue": {"id": 386, "owner": {"id": 1255}, "assignee": {"id": 60}}, "organization": {"id": 1493}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 336, "owner": {"id": 688}, "assignee": {"id": 502}, "project": {"id": 386, "owner": {"id": 787}, "assignee": {"id": 862}}, "task": {"id": 382, "owner": {"id": 911}, "assignee": {"id": 1015}}, "job": {"id": 368, "assignee": {"id": 1130}}, "issue": {"id": 307, "owner": {"id": 1203}, "assignee": {"id": 51}}, "organization": {"id": 1412}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "owner": {"id": 618}, "assignee": {"id": 556}, "project": {"id": 314, "owner": {"id": 781}, "assignee": {"id": 866}}, "task": {"id": 393, "owner": {"id": 920}, "assignee": {"id": 1032}}, "job": {"id": 338, "assignee": {"id": 1146}}, "issue": {"id": 349, "owner": {"id": 1289}, "assignee": {"id": 5}}, "organization": {"id": 110}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "owner": {"id": 663}, "assignee": {"id": 509}, "project": {"id": 305, "owner": {"id": 714}, "assignee": {"id": 894}}, "task": {"id": 379, "owner": {"id": 988}, "assignee": {"id": 1091}}, "job": {"id": 398, "assignee": {"id": 1134}}, "issue": {"id": 379, "owner": {"id": 1298}, "assignee": {"id": 48}}, "organization": {"id": 116}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 645}, "assignee": {"id": 508}, "project": {"id": 337, "owner": {"id": 741}, "assignee": {"id": 862}}, "task": {"id": 312, "owner": {"id": 954}, "assignee": {"id": 1055}}, "job": {"id": 346, "assignee": {"id": 1113}}, "issue": {"id": 367, "owner": {"id": 1216}, "assignee": {"id": 87}}, "organization": {"id": 1458}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 663}, "assignee": {"id": 500}, "project": {"id": 337, "owner": {"id": 708}, "assignee": {"id": 823}}, "task": {"id": 353, "owner": {"id": 945}, "assignee": {"id": 1015}}, "job": {"id": 328, "assignee": {"id": 1106}}, "issue": {"id": 353, "owner": {"id": 1281}, "assignee": {"id": 58}}, "organization": {"id": 1448}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 666}, "assignee": {"id": 539}, "project": {"id": 301, "owner": {"id": 703}, "assignee": {"id": 827}}, "task": {"id": 344, "owner": {"id": 948}, "assignee": {"id": 1023}}, "job": {"id": 344, "assignee": {"id": 1121}}, "issue": {"id": 304, "owner": {"id": 1261}, "assignee": {"id": 72}}, "organization": {"id": 169}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "owner": {"id": 654}, "assignee": {"id": 576}, "project": {"id": 367, "owner": {"id": 754}, "assignee": {"id": 803}}, "task": {"id": 324, "owner": {"id": 953}, "assignee": {"id": 1056}}, "job": {"id": 385, "assignee": {"id": 1143}}, "issue": {"id": 361, "owner": {"id": 1287}, "assignee": {"id": 78}}, "organization": {"id": 134}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 673}, "assignee": {"id": 508}, "project": {"id": 309, "owner": {"id": 709}, "assignee": {"id": 807}}, "task": {"id": 334, "owner": {"id": 970}, "assignee": {"id": 1072}}, "job": {"id": 399, "assignee": {"id": 1194}}, "issue": {"id": 395, "owner": {"id": 1299}, "assignee": {"id": 66}}, "organization": {"id": 1450}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 674}, "assignee": {"id": 510}, "project": {"id": 315, "owner": {"id": 740}, "assignee": {"id": 872}}, "task": {"id": 367, "owner": {"id": 950}, "assignee": {"id": 1041}}, "job": {"id": 331, "assignee": {"id": 1110}}, "issue": {"id": 386, "owner": {"id": 1244}, "assignee": {"id": 52}}, "organization": {"id": 1450}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 642}, "assignee": {"id": 570}, "project": {"id": 396, "owner": {"id": 759}, "assignee": {"id": 814}}, "task": {"id": 325, "owner": {"id": 929}, "assignee": {"id": 1085}}, "job": {"id": 355, "assignee": {"id": 1162}}, "issue": {"id": 328, "owner": {"id": 1284}, "assignee": {"id": 76}}, "organization": {"id": 124}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 389, "owner": {"id": 646}, "assignee": {"id": 501}, "project": {"id": 345, "owner": {"id": 786}, "assignee": {"id": 891}}, "task": {"id": 340, "owner": {"id": 925}, "assignee": {"id": 1060}}, "job": {"id": 347, "assignee": {"id": 1177}}, "issue": {"id": 362, "owner": {"id": 1277}, "assignee": {"id": 12}}, "organization": {"id": 183}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 665}, "assignee": {"id": 507}, "project": {"id": 314, "owner": {"id": 732}, "assignee": {"id": 869}}, "task": {"id": 328, "owner": {"id": 944}, "assignee": {"id": 1061}}, "job": {"id": 326, "assignee": {"id": 1173}}, "issue": {"id": 356, "owner": {"id": 1237}, "assignee": {"id": 79}}, "organization": {"id": 1489}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 370, "owner": {"id": 656}, "assignee": {"id": 587}, "project": {"id": 330, "owner": {"id": 742}, "assignee": {"id": 855}}, "task": {"id": 315, "owner": {"id": 908}, "assignee": {"id": 1009}}, "job": {"id": 351, "assignee": {"id": 1121}}, "issue": {"id": 389, "owner": {"id": 1253}, "assignee": {"id": 27}}, "organization": {"id": 1418}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 654}, "assignee": {"id": 565}, "project": {"id": 364, "owner": {"id": 777}, "assignee": {"id": 874}}, "task": {"id": 351, "owner": {"id": 977}, "assignee": {"id": 1076}}, "job": {"id": 343, "assignee": {"id": 1148}}, "issue": {"id": 358, "owner": {"id": 1241}, "assignee": {"id": 41}}, "organization": {"id": 106}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 344, "owner": {"id": 644}, "assignee": {"id": 508}, "project": {"id": 345, "owner": {"id": 794}, "assignee": {"id": 843}}, "task": {"id": 309, "owner": {"id": 949}, "assignee": {"id": 1076}}, "job": {"id": 341, "assignee": {"id": 1152}}, "issue": {"id": 380, "owner": {"id": 1256}, "assignee": {"id": 2}}, "organization": {"id": 156}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 346, "owner": {"id": 685}, "assignee": {"id": 576}, "project": {"id": 331, "owner": {"id": 744}, "assignee": {"id": 887}}, "task": {"id": 352, "owner": {"id": 968}, "assignee": {"id": 1058}}, "job": {"id": 340, "assignee": {"id": 1129}}, "issue": {"id": 387, "owner": {"id": 1200}, "assignee": {"id": 49}}, "organization": {"id": 1498}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 666}, "assignee": {"id": 512}, "project": {"id": 305, "owner": {"id": 708}, "assignee": {"id": 815}}, "task": {"id": 309, "owner": {"id": 985}, "assignee": {"id": 1085}}, "job": {"id": 383, "assignee": {"id": 1178}}, "issue": {"id": 390, "owner": {"id": 1246}, "assignee": {"id": 34}}, "organization": {"id": 1425}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 393, "owner": {"id": 611}, "assignee": {"id": 520}, "project": {"id": 313, "owner": {"id": 717}, "assignee": {"id": 814}}, "task": {"id": 316, "owner": {"id": 951}, "assignee": {"id": 1085}}, "job": {"id": 379, "assignee": {"id": 1171}}, "issue": {"id": 380, "owner": {"id": 1294}, "assignee": {"id": 59}}, "organization": {"id": 161}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 384, "owner": {"id": 677}, "assignee": {"id": 571}, "project": {"id": 388, "owner": {"id": 709}, "assignee": {"id": 869}}, "task": {"id": 377, "owner": {"id": 913}, "assignee": {"id": 1023}}, "job": {"id": 390, "assignee": {"id": 1130}}, "issue": {"id": 335, "owner": {"id": 1298}, "assignee": {"id": 71}}, "organization": {"id": 163}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 337, "owner": {"id": 646}, "assignee": {"id": 563}, "project": {"id": 324, "owner": {"id": 780}, "assignee": {"id": 860}}, "task": {"id": 362, "owner": {"id": 930}, "assignee": {"id": 1037}}, "job": {"id": 391, "assignee": {"id": 1191}}, "issue": {"id": 389, "owner": {"id": 1279}, "assignee": {"id": 17}}, "organization": {"id": 1446}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 367, "owner": {"id": 640}, "assignee": {"id": 539}, "project": {"id": 312, "owner": {"id": 758}, "assignee": {"id": 863}}, "task": {"id": 322, "owner": {"id": 948}, "assignee": {"id": 1042}}, "job": {"id": 356, "assignee": {"id": 1137}}, "issue": {"id": 394, "owner": {"id": 1253}, "assignee": {"id": 23}}, "organization": {"id": 1405}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "owner": {"id": 630}, "assignee": {"id": 594}, "project": {"id": 381, "owner": {"id": 722}, "assignee": {"id": 887}}, "task": {"id": 370, "owner": {"id": 990}, "assignee": {"id": 1035}}, "job": {"id": 395, "assignee": {"id": 1127}}, "issue": {"id": 356, "owner": {"id": 1299}, "assignee": {"id": 32}}, "organization": {"id": 101}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 372, "owner": {"id": 699}, "assignee": {"id": 534}, "project": {"id": 315, "owner": {"id": 795}, "assignee": {"id": 895}}, "task": {"id": 360, "owner": {"id": 912}, "assignee": {"id": 1092}}, "job": {"id": 327, "assignee": {"id": 1138}}, "issue": {"id": 350, "owner": {"id": 1225}, "assignee": {"id": 46}}, "organization": {"id": 153}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 635}, "assignee": {"id": 541}, "project": {"id": 327, "owner": {"id": 725}, "assignee": {"id": 859}}, "task": {"id": 309, "owner": {"id": 969}, "assignee": {"id": 1091}}, "job": {"id": 327, "assignee": {"id": 1182}}, "issue": {"id": 363, "owner": {"id": 1249}, "assignee": {"id": 57}}, "organization": {"id": 1484}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "owner": {"id": 682}, "assignee": {"id": 589}, "project": {"id": 367, "owner": {"id": 705}, "assignee": {"id": 883}}, "task": {"id": 379, "owner": {"id": 997}, "assignee": {"id": 1090}}, "job": {"id": 324, "assignee": {"id": 1154}}, "issue": {"id": 345, "owner": {"id": 1267}, "assignee": {"id": 77}}, "organization": {"id": 1401}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "owner": {"id": 678}, "assignee": {"id": 580}, "project": {"id": 327, "owner": {"id": 756}, "assignee": {"id": 817}}, "task": {"id": 359, "owner": {"id": 932}, "assignee": {"id": 1096}}, "job": {"id": 342, "assignee": {"id": 1104}}, "issue": {"id": 310, "owner": {"id": 1272}, "assignee": {"id": 91}}, "organization": {"id": 196}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "owner": {"id": 669}, "assignee": {"id": 558}, "project": {"id": 346, "owner": {"id": 759}, "assignee": {"id": 844}}, "task": {"id": 308, "owner": {"id": 900}, "assignee": {"id": 1032}}, "job": {"id": 342, "assignee": {"id": 1147}}, "issue": {"id": 304, "owner": {"id": 1239}, "assignee": {"id": 3}}, "organization": {"id": 185}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "owner": {"id": 626}, "assignee": {"id": 543}, "project": {"id": 374, "owner": {"id": 771}, "assignee": {"id": 830}}, "task": {"id": 378, "owner": {"id": 912}, "assignee": {"id": 1096}}, "job": {"id": 304, "assignee": {"id": 1179}}, "issue": {"id": 311, "owner": {"id": 1274}, "assignee": {"id": 10}}, "organization": {"id": 1475}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "owner": {"id": 693}, "assignee": {"id": 502}, "project": {"id": 381, "owner": {"id": 728}, "assignee": {"id": 875}}, "task": {"id": 396, "owner": {"id": 931}, "assignee": {"id": 1032}}, "job": {"id": 393, "assignee": {"id": 1100}}, "issue": {"id": 344, "owner": {"id": 1245}, "assignee": {"id": 93}}, "organization": {"id": 1499}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 361, "owner": {"id": 628}, "assignee": {"id": 596}, "project": {"id": 385, "owner": {"id": 791}, "assignee": {"id": 823}}, "task": {"id": 304, "owner": {"id": 986}, "assignee": {"id": 1035}}, "job": {"id": 309, "assignee": {"id": 1190}}, "issue": {"id": 321, "owner": {"id": 1226}, "assignee": {"id": 29}}, "organization": {"id": 125}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 343, "owner": {"id": 644}, "assignee": {"id": 558}, "project": {"id": 316, "owner": {"id": 706}, "assignee": {"id": 818}}, "task": {"id": 355, "owner": {"id": 914}, "assignee": {"id": 1024}}, "job": {"id": 376, "assignee": {"id": 1126}}, "issue": {"id": 380, "owner": {"id": 1216}, "assignee": {"id": 37}}, "organization": {"id": 138}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 321, "owner": {"id": 654}, "assignee": {"id": 552}, "project": {"id": 343, "owner": {"id": 745}, "assignee": {"id": 835}}, "task": {"id": 355, "owner": {"id": 953}, "assignee": {"id": 1074}}, "job": {"id": 394, "assignee": {"id": 1156}}, "issue": {"id": 368, "owner": {"id": 1233}, "assignee": {"id": 90}}, "organization": {"id": 1475}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 646}, "assignee": {"id": 599}, "project": {"id": 379, "owner": {"id": 794}, "assignee": {"id": 849}}, "task": {"id": 346, "owner": {"id": 920}, "assignee": {"id": 1077}}, "job": {"id": 341, "assignee": {"id": 1156}}, "issue": {"id": 338, "owner": {"id": 1288}, "assignee": {"id": 76}}, "organization": {"id": 1441}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 345, "owner": {"id": 648}, "assignee": {"id": 550}, "project": {"id": 335, "owner": {"id": 746}, "assignee": {"id": 874}}, "task": {"id": 313, "owner": {"id": 950}, "assignee": {"id": 1048}}, "job": {"id": 362, "assignee": {"id": 1102}}, "issue": {"id": 367, "owner": {"id": 1248}, "assignee": {"id": 85}}, "organization": {"id": 118}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 338, "owner": {"id": 614}, "assignee": {"id": 535}, "project": {"id": 359, "owner": {"id": 762}, "assignee": {"id": 894}}, "task": {"id": 393, "owner": {"id": 918}, "assignee": {"id": 1073}}, "job": {"id": 396, "assignee": {"id": 1101}}, "issue": {"id": 380, "owner": {"id": 1203}, "assignee": {"id": 7}}, "organization": {"id": 108}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 341, "owner": {"id": 636}, "assignee": {"id": 501}, "project": {"id": 381, "owner": {"id": 767}, "assignee": {"id": 887}}, "task": {"id": 362, "owner": {"id": 956}, "assignee": {"id": 1044}}, "job": {"id": 342, "assignee": {"id": 1113}}, "issue": {"id": 382, "owner": {"id": 1220}, "assignee": {"id": 73}}, "organization": {"id": 1444}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 679}, "assignee": {"id": 544}, "project": {"id": 315, "owner": {"id": 707}, "assignee": {"id": 819}}, "task": {"id": 322, "owner": {"id": 998}, "assignee": {"id": 1035}}, "job": {"id": 325, "assignee": {"id": 1158}}, "issue": {"id": 355, "owner": {"id": 1253}, "assignee": {"id": 4}}, "organization": {"id": 1498}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 652}, "assignee": {"id": 535}, "project": {"id": 396, "owner": {"id": 732}, "assignee": {"id": 882}}, "task": {"id": 372, "owner": {"id": 970}, "assignee": {"id": 1000}}, "job": {"id": 330, "assignee": {"id": 1107}}, "issue": {"id": 307, "owner": {"id": 1287}, "assignee": {"id": 99}}, "organization": {"id": 139}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 90, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 646}, "assignee": {"id": 525}, "project": {"id": 349, "owner": {"id": 760}, "assignee": {"id": 889}}, "task": {"id": 361, "owner": {"id": 914}, "assignee": {"id": 1013}}, "job": {"id": 302, "assignee": {"id": 1164}}, "issue": {"id": 391, "owner": {"id": 1265}, "assignee": {"id": 90}}, "organization": {"id": 199}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 371, "owner": {"id": 602}, "assignee": {"id": 555}, "project": {"id": 311, "owner": {"id": 778}, "assignee": {"id": 884}}, "task": {"id": 364, "owner": {"id": 949}, "assignee": {"id": 1032}}, "job": {"id": 327, "assignee": {"id": 1100}}, "issue": {"id": 381, "owner": {"id": 1251}, "assignee": {"id": 78}}, "organization": {"id": 1497}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 396, "owner": {"id": 644}, "assignee": {"id": 549}, "project": {"id": 358, "owner": {"id": 797}, "assignee": {"id": 896}}, "task": {"id": 333, "owner": {"id": 981}, "assignee": {"id": 1060}}, "job": {"id": 371, "assignee": {"id": 1108}}, "issue": {"id": 360, "owner": {"id": 1242}, "assignee": {"id": 57}}, "organization": {"id": 1422}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 637}, "assignee": {"id": 575}, "project": {"id": 380, "owner": {"id": 711}, "assignee": {"id": 815}}, "task": {"id": 300, "owner": {"id": 936}, "assignee": {"id": 1024}}, "job": {"id": 340, "assignee": {"id": 1171}}, "issue": {"id": 378, "owner": {"id": 1243}, "assignee": {"id": 56}}, "organization": {"id": 130}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 90, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "owner": {"id": 642}, "assignee": {"id": 569}, "project": {"id": 323, "owner": {"id": 784}, "assignee": {"id": 851}}, "task": {"id": 345, "owner": {"id": 917}, "assignee": {"id": 1072}}, "job": {"id": 338, "assignee": {"id": 1176}}, "issue": {"id": 316, "owner": {"id": 1279}, "assignee": {"id": 90}}, "organization": {"id": 132}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "owner": {"id": 661}, "assignee": {"id": 525}, "project": {"id": 388, "owner": {"id": 710}, "assignee": {"id": 840}}, "task": {"id": 369, "owner": {"id": 946}, "assignee": {"id": 1009}}, "job": {"id": 383, "assignee": {"id": 1181}}, "issue": {"id": 323, "owner": {"id": 1291}, "assignee": {"id": 6}}, "organization": {"id": 1417}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 90, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "owner": {"id": 635}, "assignee": {"id": 547}, "project": {"id": 343, "owner": {"id": 761}, "assignee": {"id": 821}}, "task": {"id": 357, "owner": {"id": 914}, "assignee": {"id": 1009}}, "job": {"id": 315, "assignee": {"id": 1189}}, "issue": {"id": 395, "owner": {"id": 1229}, "assignee": {"id": 90}}, "organization": {"id": 1410}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "owner": {"id": 627}, "assignee": {"id": 598}, "project": {"id": 384, "owner": {"id": 774}, "assignee": {"id": 821}}, "task": {"id": 363, "owner": {"id": 923}, "assignee": {"id": 1050}}, "job": {"id": 365, "assignee": {"id": 1140}}, "issue": {"id": 377, "owner": {"id": 1296}, "assignee": {"id": 47}}, "organization": {"id": 125}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "owner": {"id": 649}, "assignee": {"id": 559}, "project": {"id": 300, "owner": {"id": 746}, "assignee": {"id": 833}}, "task": {"id": 322, "owner": {"id": 992}, "assignee": {"id": 1013}}, "job": {"id": 385, "assignee": {"id": 1152}}, "issue": {"id": 317, "owner": {"id": 1240}, "assignee": {"id": 61}}, "organization": {"id": 198}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 658}, "assignee": {"id": 574}, "project": {"id": 314, "owner": {"id": 711}, "assignee": {"id": 853}}, "task": {"id": 381, "owner": {"id": 942}, "assignee": {"id": 1001}}, "job": {"id": 335, "assignee": {"id": 1189}}, "issue": {"id": 318, "owner": {"id": 1240}, "assignee": {"id": 51}}, "organization": {"id": 1412}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "owner": {"id": 648}, "assignee": {"id": 550}, "project": {"id": 363, "owner": {"id": 778}, "assignee": {"id": 810}}, "task": {"id": 327, "owner": {"id": 963}, "assignee": {"id": 1097}}, "job": {"id": 353, "assignee": {"id": 1169}}, "issue": {"id": 354, "owner": {"id": 1230}, "assignee": {"id": 80}}, "organization": {"id": 1436}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 316, "owner": {"id": 683}, "assignee": {"id": 508}, "project": {"id": 320, "owner": {"id": 784}, "assignee": {"id": 802}}, "task": {"id": 365, "owner": {"id": 968}, "assignee": {"id": 1060}}, "job": {"id": 376, "assignee": {"id": 1118}}, "issue": {"id": 301, "owner": {"id": 1287}, "assignee": {"id": 18}}, "organization": {"id": 137}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 398, "owner": {"id": 685}, "assignee": {"id": 591}, "project": {"id": 359, "owner": {"id": 718}, "assignee": {"id": 806}}, "task": {"id": 353, "owner": {"id": 917}, "assignee": {"id": 1068}}, "job": {"id": 331, "assignee": {"id": 1160}}, "issue": {"id": 392, "owner": {"id": 1267}, "assignee": {"id": 3}}, "organization": {"id": 163}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 663}, "assignee": {"id": 539}, "project": {"id": 314, "owner": {"id": 711}, "assignee": {"id": 847}}, "task": {"id": 389, "owner": {"id": 902}, "assignee": {"id": 1060}}, "job": {"id": 312, "assignee": {"id": 1148}}, "issue": {"id": 384, "owner": {"id": 1220}, "assignee": {"id": 81}}, "organization": {"id": 1429}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 398, "owner": {"id": 627}, "assignee": {"id": 596}, "project": {"id": 376, "owner": {"id": 774}, "assignee": {"id": 874}}, "task": {"id": 304, "owner": {"id": 991}, "assignee": {"id": 1060}}, "job": {"id": 341, "assignee": {"id": 1171}}, "issue": {"id": 358, "owner": {"id": 1228}, "assignee": {"id": 8}}, "organization": {"id": 1485}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 323, "owner": {"id": 670}, "assignee": {"id": 560}, "project": {"id": 314, "owner": {"id": 794}, "assignee": {"id": 897}}, "task": {"id": 308, "owner": {"id": 909}, "assignee": {"id": 1003}}, "job": {"id": 336, "assignee": {"id": 1154}}, "issue": {"id": 328, "owner": {"id": 1214}, "assignee": {"id": 13}}, "organization": {"id": 157}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 616}, "assignee": {"id": 501}, "project": {"id": 376, "owner": {"id": 769}, "assignee": {"id": 807}}, "task": {"id": 364, "owner": {"id": 953}, "assignee": {"id": 1087}}, "job": {"id": 367, "assignee": {"id": 1181}}, "issue": {"id": 396, "owner": {"id": 1284}, "assignee": {"id": 37}}, "organization": {"id": 131}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 379, "owner": {"id": 623}, "assignee": {"id": 502}, "project": {"id": 394, "owner": {"id": 740}, "assignee": {"id": 823}}, "task": {"id": 309, "owner": {"id": 917}, "assignee": {"id": 1003}}, "job": {"id": 395, "assignee": {"id": 1116}}, "issue": {"id": 394, "owner": {"id": 1202}, "assignee": {"id": 54}}, "organization": {"id": 1498}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 630}, "assignee": {"id": 520}, "project": {"id": 344, "owner": {"id": 702}, "assignee": {"id": 856}}, "task": {"id": 342, "owner": {"id": 923}, "assignee": {"id": 1079}}, "job": {"id": 390, "assignee": {"id": 1175}}, "issue": {"id": 333, "owner": {"id": 1230}, "assignee": {"id": 56}}, "organization": {"id": 1491}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 320, "owner": {"id": 672}, "assignee": {"id": 594}, "project": {"id": 390, "owner": {"id": 778}, "assignee": {"id": 806}}, "task": {"id": 395, "owner": {"id": 948}, "assignee": {"id": 1054}}, "job": {"id": 325, "assignee": {"id": 1100}}, "issue": {"id": 362, "owner": {"id": 1227}, "assignee": {"id": 87}}, "organization": {"id": 150}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 367, "owner": {"id": 628}, "assignee": {"id": 572}, "project": {"id": 325, "owner": {"id": 715}, "assignee": {"id": 831}}, "task": {"id": 317, "owner": {"id": 977}, "assignee": {"id": 1029}}, "job": {"id": 352, "assignee": {"id": 1183}}, "issue": {"id": 357, "owner": {"id": 1215}, "assignee": {"id": 83}}, "organization": {"id": 110}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 350, "owner": {"id": 658}, "assignee": {"id": 558}, "project": {"id": 318, "owner": {"id": 710}, "assignee": {"id": 872}}, "task": {"id": 387, "owner": {"id": 953}, "assignee": {"id": 1064}}, "job": {"id": 354, "assignee": {"id": 1158}}, "issue": {"id": 381, "owner": {"id": 1294}, "assignee": {"id": 70}}, "organization": {"id": 1478}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 676}, "assignee": {"id": 588}, "project": {"id": 338, "owner": {"id": 704}, "assignee": {"id": 815}}, "task": {"id": 337, "owner": {"id": 935}, "assignee": {"id": 1015}}, "job": {"id": 399, "assignee": {"id": 1192}}, "issue": {"id": 319, "owner": {"id": 1266}, "assignee": {"id": 53}}, "organization": {"id": 1401}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 634}, "assignee": {"id": 543}, "project": {"id": 370, "owner": {"id": 715}, "assignee": {"id": 862}}, "task": {"id": 319, "owner": {"id": 922}, "assignee": {"id": 1077}}, "job": {"id": 303, "assignee": {"id": 1112}}, "issue": {"id": 327, "owner": {"id": 1228}, "assignee": {"id": 89}}, "organization": {"id": 101}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 638}, "assignee": {"id": 599}, "project": {"id": 356, "owner": {"id": 752}, "assignee": {"id": 837}}, "task": {"id": 348, "owner": {"id": 941}, "assignee": {"id": 1049}}, "job": {"id": 307, "assignee": {"id": 1178}}, "issue": {"id": 354, "owner": {"id": 1263}, "assignee": {"id": 48}}, "organization": {"id": 106}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "owner": {"id": 614}, "assignee": {"id": 570}, "project": {"id": 304, "owner": {"id": 703}, "assignee": {"id": 879}}, "task": {"id": 331, "owner": {"id": 991}, "assignee": {"id": 1083}}, "job": {"id": 373, "assignee": {"id": 1112}}, "issue": {"id": 374, "owner": {"id": 1241}, "assignee": {"id": 88}}, "organization": {"id": 1472}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "owner": {"id": 661}, "assignee": {"id": 511}, "project": {"id": 356, "owner": {"id": 779}, "assignee": {"id": 871}}, "task": {"id": 378, "owner": {"id": 996}, "assignee": {"id": 1016}}, "job": {"id": 302, "assignee": {"id": 1149}}, "issue": {"id": 381, "owner": {"id": 1254}, "assignee": {"id": 22}}, "organization": {"id": 1410}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 613}, "assignee": {"id": 589}, "project": {"id": 359, "owner": {"id": 791}, "assignee": {"id": 853}}, "task": {"id": 305, "owner": {"id": 944}, "assignee": {"id": 1039}}, "job": {"id": 361, "assignee": {"id": 1116}}, "issue": {"id": 372, "owner": {"id": 1201}, "assignee": {"id": 16}}, "organization": {"id": 148}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "owner": {"id": 674}, "assignee": {"id": 572}, "project": {"id": 322, "owner": {"id": 719}, "assignee": {"id": 809}}, "task": {"id": 391, "owner": {"id": 984}, "assignee": {"id": 1059}}, "job": {"id": 347, "assignee": {"id": 1146}}, "issue": {"id": 378, "owner": {"id": 1290}, "assignee": {"id": 38}}, "organization": {"id": 124}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "owner": {"id": 642}, "assignee": {"id": 540}, "project": {"id": 393, "owner": {"id": 760}, "assignee": {"id": 898}}, "task": {"id": 385, "owner": {"id": 950}, "assignee": {"id": 1062}}, "job": {"id": 302, "assignee": {"id": 1132}}, "issue": {"id": 341, "owner": {"id": 1254}, "assignee": {"id": 71}}, "organization": {"id": 1468}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "owner": {"id": 664}, "assignee": {"id": 576}, "project": {"id": 354, "owner": {"id": 797}, "assignee": {"id": 892}}, "task": {"id": 330, "owner": {"id": 986}, "assignee": {"id": 1097}}, "job": {"id": 355, "assignee": {"id": 1141}}, "issue": {"id": 373, "owner": {"id": 1287}, "assignee": {"id": 99}}, "organization": {"id": 1447}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 383, "owner": {"id": 669}, "assignee": {"id": 535}, "project": {"id": 350, "owner": {"id": 713}, "assignee": {"id": 892}}, "task": {"id": 346, "owner": {"id": 932}, "assignee": {"id": 1043}}, "job": {"id": 345, "assignee": {"id": 1171}}, "issue": {"id": 382, "owner": {"id": 1272}, "assignee": {"id": 89}}, "organization": {"id": 172}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 389, "owner": {"id": 629}, "assignee": {"id": 533}, "project": {"id": 382, "owner": {"id": 716}, "assignee": {"id": 864}}, "task": {"id": 378, "owner": {"id": 939}, "assignee": {"id": 1030}}, "job": {"id": 305, "assignee": {"id": 1193}}, "issue": {"id": 386, "owner": {"id": 1204}, "assignee": {"id": 0}}, "organization": {"id": 113}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 363, "owner": {"id": 695}, "assignee": {"id": 525}, "project": {"id": 307, "owner": {"id": 751}, "assignee": {"id": 887}}, "task": {"id": 385, "owner": {"id": 920}, "assignee": {"id": 1034}}, "job": {"id": 316, "assignee": {"id": 1137}}, "issue": {"id": 373, "owner": {"id": 1257}, "assignee": {"id": 89}}, "organization": {"id": 1472}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 324, "owner": {"id": 698}, "assignee": {"id": 518}, "project": {"id": 334, "owner": {"id": 796}, "assignee": {"id": 898}}, "task": {"id": 394, "owner": {"id": 913}, "assignee": {"id": 1088}}, "job": {"id": 377, "assignee": {"id": 1137}}, "issue": {"id": 341, "owner": {"id": 1260}, "assignee": {"id": 30}}, "organization": {"id": 1460}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 347, "owner": {"id": 648}, "assignee": {"id": 567}, "project": {"id": 374, "owner": {"id": 763}, "assignee": {"id": 850}}, "task": {"id": 315, "owner": {"id": 957}, "assignee": {"id": 1001}}, "job": {"id": 318, "assignee": {"id": 1195}}, "issue": {"id": 389, "owner": {"id": 1231}, "assignee": {"id": 97}}, "organization": {"id": 198}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 317, "owner": {"id": 686}, "assignee": {"id": 524}, "project": {"id": 313, "owner": {"id": 711}, "assignee": {"id": 886}}, "task": {"id": 319, "owner": {"id": 972}, "assignee": {"id": 1025}}, "job": {"id": 360, "assignee": {"id": 1142}}, "issue": {"id": 378, "owner": {"id": 1260}, "assignee": {"id": 18}}, "organization": {"id": 187}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 640}, "assignee": {"id": 570}, "project": {"id": 387, "owner": {"id": 744}, "assignee": {"id": 898}}, "task": {"id": 395, "owner": {"id": 995}, "assignee": {"id": 1009}}, "job": {"id": 342, "assignee": {"id": 1123}}, "issue": {"id": 381, "owner": {"id": 1212}, "assignee": {"id": 32}}, "organization": {"id": 1445}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 383, "owner": {"id": 610}, "assignee": {"id": 582}, "project": {"id": 327, "owner": {"id": 718}, "assignee": {"id": 858}}, "task": {"id": 376, "owner": {"id": 979}, "assignee": {"id": 1011}}, "job": {"id": 345, "assignee": {"id": 1115}}, "issue": {"id": 311, "owner": {"id": 1240}, "assignee": {"id": 88}}, "organization": {"id": 1440}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 395, "owner": {"id": 682}, "assignee": {"id": 579}, "project": {"id": 391, "owner": {"id": 766}, "assignee": {"id": 871}}, "task": {"id": 335, "owner": {"id": 987}, "assignee": {"id": 1069}}, "job": {"id": 355, "assignee": {"id": 1158}}, "issue": {"id": 352, "owner": {"id": 1275}, "assignee": {"id": 36}}, "organization": {"id": 187}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 357, "owner": {"id": 626}, "assignee": {"id": 592}, "project": {"id": 342, "owner": {"id": 754}, "assignee": {"id": 810}}, "task": {"id": 384, "owner": {"id": 968}, "assignee": {"id": 1054}}, "job": {"id": 342, "assignee": {"id": 1101}}, "issue": {"id": 399, "owner": {"id": 1273}, "assignee": {"id": 59}}, "organization": {"id": 147}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 345, "owner": {"id": 607}, "assignee": {"id": 546}, "project": {"id": 324, "owner": {"id": 758}, "assignee": {"id": 839}}, "task": {"id": 317, "owner": {"id": 976}, "assignee": {"id": 1009}}, "job": {"id": 347, "assignee": {"id": 1114}}, "issue": {"id": 364, "owner": {"id": 1247}, "assignee": {"id": 87}}, "organization": {"id": 1495}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 376, "owner": {"id": 601}, "assignee": {"id": 519}, "project": {"id": 355, "owner": {"id": 747}, "assignee": {"id": 890}}, "task": {"id": 362, "owner": {"id": 956}, "assignee": {"id": 1041}}, "job": {"id": 377, "assignee": {"id": 1186}}, "issue": {"id": 353, "owner": {"id": 1277}, "assignee": {"id": 37}}, "organization": {"id": 1472}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "owner": {"id": 679}, "assignee": {"id": 509}, "project": {"id": 390, "owner": {"id": 760}, "assignee": {"id": 841}}, "task": {"id": 363, "owner": {"id": 996}, "assignee": {"id": 1093}}, "job": {"id": 385, "assignee": {"id": 1184}}, "issue": {"id": 349, "owner": {"id": 1259}, "assignee": {"id": 53}}, "organization": {"id": 165}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 640}, "assignee": {"id": 599}, "project": {"id": 326, "owner": {"id": 732}, "assignee": {"id": 875}}, "task": {"id": 331, "owner": {"id": 979}, "assignee": {"id": 1073}}, "job": {"id": 328, "assignee": {"id": 1194}}, "issue": {"id": 332, "owner": {"id": 1205}, "assignee": {"id": 39}}, "organization": {"id": 114}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 658}, "assignee": {"id": 548}, "project": {"id": 395, "owner": {"id": 759}, "assignee": {"id": 840}}, "task": {"id": 360, "owner": {"id": 923}, "assignee": {"id": 1066}}, "job": {"id": 359, "assignee": {"id": 1104}}, "issue": {"id": 380, "owner": {"id": 1272}, "assignee": {"id": 98}}, "organization": {"id": 1408}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 609}, "assignee": {"id": 542}, "project": {"id": 322, "owner": {"id": 706}, "assignee": {"id": 817}}, "task": {"id": 306, "owner": {"id": 947}, "assignee": {"id": 1017}}, "job": {"id": 359, "assignee": {"id": 1105}}, "issue": {"id": 366, "owner": {"id": 1261}, "assignee": {"id": 48}}, "organization": {"id": 1440}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "owner": {"id": 688}, "assignee": {"id": 535}, "project": {"id": 344, "owner": {"id": 755}, "assignee": {"id": 855}}, "task": {"id": 314, "owner": {"id": 931}, "assignee": {"id": 1095}}, "job": {"id": 394, "assignee": {"id": 1184}}, "issue": {"id": 321, "owner": {"id": 1266}, "assignee": {"id": 91}}, "organization": {"id": 161}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "owner": {"id": 632}, "assignee": {"id": 563}, "project": {"id": 355, "owner": {"id": 707}, "assignee": {"id": 824}}, "task": {"id": 320, "owner": {"id": 955}, "assignee": {"id": 1022}}, "job": {"id": 382, "assignee": {"id": 1137}}, "issue": {"id": 302, "owner": {"id": 1280}, "assignee": {"id": 55}}, "organization": {"id": 144}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "owner": {"id": 648}, "assignee": {"id": 594}, "project": {"id": 374, "owner": {"id": 721}, "assignee": {"id": 852}}, "task": {"id": 344, "owner": {"id": 911}, "assignee": {"id": 1037}}, "job": {"id": 353, "assignee": {"id": 1107}}, "issue": {"id": 377, "owner": {"id": 1234}, "assignee": {"id": 92}}, "organization": {"id": 1467}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "owner": {"id": 670}, "assignee": {"id": 522}, "project": {"id": 370, "owner": {"id": 754}, "assignee": {"id": 867}}, "task": {"id": 330, "owner": {"id": 939}, "assignee": {"id": 1028}}, "job": {"id": 347, "assignee": {"id": 1111}}, "issue": {"id": 380, "owner": {"id": 1255}, "assignee": {"id": 92}}, "organization": {"id": 1478}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 681}, "assignee": {"id": 594}, "project": {"id": 303, "owner": {"id": 762}, "assignee": {"id": 844}}, "task": {"id": 372, "owner": {"id": 907}, "assignee": {"id": 1087}}, "job": {"id": 397, "assignee": {"id": 1125}}, "issue": {"id": 321, "owner": {"id": 1294}, "assignee": {"id": 32}}, "organization": {"id": 178}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 320, "owner": {"id": 620}, "assignee": {"id": 518}, "project": {"id": 392, "owner": {"id": 776}, "assignee": {"id": 803}}, "task": {"id": 355, "owner": {"id": 935}, "assignee": {"id": 1001}}, "job": {"id": 342, "assignee": {"id": 1134}}, "issue": {"id": 345, "owner": {"id": 1268}, "assignee": {"id": 12}}, "organization": {"id": 126}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 384, "owner": {"id": 608}, "assignee": {"id": 521}, "project": {"id": 328, "owner": {"id": 709}, "assignee": {"id": 872}}, "task": {"id": 319, "owner": {"id": 914}, "assignee": {"id": 1006}}, "job": {"id": 303, "assignee": {"id": 1127}}, "issue": {"id": 308, "owner": {"id": 1254}, "assignee": {"id": 87}}, "organization": {"id": 1434}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 330, "owner": {"id": 678}, "assignee": {"id": 584}, "project": {"id": 338, "owner": {"id": 719}, "assignee": {"id": 896}}, "task": {"id": 346, "owner": {"id": 995}, "assignee": {"id": 1089}}, "job": {"id": 320, "assignee": {"id": 1100}}, "issue": {"id": 359, "owner": {"id": 1252}, "assignee": {"id": 95}}, "organization": {"id": 1443}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"id": 332, "owner": {"id": 685}, "assignee": {"id": 555}, "project": {"id": 384, "owner": {"id": 732}, "assignee": {"id": 812}}, "task": {"id": 390, "owner": {"id": 943}, "assignee": {"id": 1072}}, "job": {"id": 377, "assignee": {"id": 1137}}, "issue": {"id": 347, "owner": {"id": 1292}, "assignee": {"id": 18}}, "organization": {"id": 130}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 674}, "assignee": {"id": 558}, "project": {"id": 343, "owner": {"id": 794}, "assignee": {"id": 872}}, "task": {"id": 364, "owner": {"id": 938}, "assignee": {"id": 1035}}, "job": {"id": 393, "assignee": {"id": 1161}}, "issue": {"id": 380, "owner": {"id": 1263}, "assignee": {"id": 8}}, "organization": {"id": 165}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 616}, "assignee": {"id": 519}, "project": {"id": 324, "owner": {"id": 753}, "assignee": {"id": 891}}, "task": {"id": 335, "owner": {"id": 991}, "assignee": {"id": 1038}}, "job": {"id": 331, "assignee": {"id": 1169}}, "issue": {"id": 349, "owner": {"id": 1274}, "assignee": {"id": 84}}, "organization": {"id": 1481}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"id": 323, "owner": {"id": 646}, "assignee": {"id": 583}, "project": {"id": 353, "owner": {"id": 762}, "assignee": {"id": 881}}, "task": {"id": 370, "owner": {"id": 929}, "assignee": {"id": 1081}}, "job": {"id": 344, "assignee": {"id": 1182}}, "issue": {"id": 307, "owner": {"id": 1217}, "assignee": {"id": 41}}, "organization": {"id": 1475}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 310, "owner": {"id": 53}, "assignee": {"id": 502}, "project": {"id": 349, "owner": {"id": 736}, "assignee": {"id": 841}}, "task": {"id": 322, "owner": {"id": 952}, "assignee": {"id": 1022}}, "job": {"id": 326, "assignee": {"id": 1155}}, "issue": {"id": 338, "owner": {"id": 1203}, "assignee": {"id": 1380}}, "organization": {"id": 128}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 357, "owner": {"id": 86}, "assignee": {"id": 575}, "project": {"id": 314, "owner": {"id": 751}, "assignee": {"id": 858}}, "task": {"id": 397, "owner": {"id": 918}, "assignee": {"id": 1079}}, "job": {"id": 377, "assignee": {"id": 1155}}, "issue": {"id": 354, "owner": {"id": 1229}, "assignee": {"id": 1366}}, "organization": {"id": 180}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 339, "owner": {"id": 51}, "assignee": {"id": 543}, "project": {"id": 303, "owner": {"id": 722}, "assignee": {"id": 821}}, "task": {"id": 324, "owner": {"id": 965}, "assignee": {"id": 1043}}, "job": {"id": 384, "assignee": {"id": 1170}}, "issue": {"id": 307, "owner": {"id": 1242}, "assignee": {"id": 1378}}, "organization": {"id": 1471}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 334, "owner": {"id": 26}, "assignee": {"id": 510}, "project": {"id": 368, "owner": {"id": 720}, "assignee": {"id": 885}}, "task": {"id": 334, "owner": {"id": 947}, "assignee": {"id": 1081}}, "job": {"id": 305, "assignee": {"id": 1107}}, "issue": {"id": 364, "owner": {"id": 1280}, "assignee": {"id": 1343}}, "organization": {"id": 1413}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 65}, "assignee": {"id": 598}, "project": {"id": 336, "owner": {"id": 727}, "assignee": {"id": 889}}, "task": {"id": 307, "owner": {"id": 958}, "assignee": {"id": 1049}}, "job": {"id": 353, "assignee": {"id": 1163}}, "issue": {"id": 308, "owner": {"id": 1265}, "assignee": {"id": 1358}}, "organization": {"id": 146}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "owner": {"id": 19}, "assignee": {"id": 535}, "project": {"id": 311, "owner": {"id": 733}, "assignee": {"id": 854}}, "task": {"id": 305, "owner": {"id": 970}, "assignee": {"id": 1022}}, "job": {"id": 334, "assignee": {"id": 1187}}, "issue": {"id": 345, "owner": {"id": 1255}, "assignee": {"id": 1393}}, "organization": {"id": 176}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "owner": {"id": 58}, "assignee": {"id": 553}, "project": {"id": 375, "owner": {"id": 780}, "assignee": {"id": 831}}, "task": {"id": 335, "owner": {"id": 952}, "assignee": {"id": 1099}}, "job": {"id": 305, "assignee": {"id": 1159}}, "issue": {"id": 302, "owner": {"id": 1272}, "assignee": {"id": 1343}}, "organization": {"id": 1447}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 389, "owner": {"id": 41}, "assignee": {"id": 580}, "project": {"id": 378, "owner": {"id": 776}, "assignee": {"id": 864}}, "task": {"id": 315, "owner": {"id": 932}, "assignee": {"id": 1017}}, "job": {"id": 381, "assignee": {"id": 1145}}, "issue": {"id": 313, "owner": {"id": 1267}, "assignee": {"id": 1301}}, "organization": {"id": 1400}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 99}, "assignee": {"id": 570}, "project": {"id": 324, "owner": {"id": 769}, "assignee": {"id": 897}}, "task": {"id": 386, "owner": {"id": 978}, "assignee": {"id": 1018}}, "job": {"id": 312, "assignee": {"id": 1198}}, "issue": {"id": 325, "owner": {"id": 1285}, "assignee": {"id": 1380}}, "organization": {"id": 192}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 16}, "assignee": {"id": 591}, "project": {"id": 384, "owner": {"id": 767}, "assignee": {"id": 845}}, "task": {"id": 356, "owner": {"id": 924}, "assignee": {"id": 1073}}, "job": {"id": 392, "assignee": {"id": 1154}}, "issue": {"id": 370, "owner": {"id": 1242}, "assignee": {"id": 1350}}, "organization": {"id": 172}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 369, "owner": {"id": 37}, "assignee": {"id": 507}, "project": {"id": 366, "owner": {"id": 718}, "assignee": {"id": 825}}, "task": {"id": 385, "owner": {"id": 936}, "assignee": {"id": 1017}}, "job": {"id": 384, "assignee": {"id": 1113}}, "issue": {"id": 377, "owner": {"id": 1202}, "assignee": {"id": 1320}}, "organization": {"id": 1491}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "owner": {"id": 86}, "assignee": {"id": 575}, "project": {"id": 383, "owner": {"id": 757}, "assignee": {"id": 835}}, "task": {"id": 386, "owner": {"id": 954}, "assignee": {"id": 1016}}, "job": {"id": 353, "assignee": {"id": 1196}}, "issue": {"id": 322, "owner": {"id": 1215}, "assignee": {"id": 1365}}, "organization": {"id": 1403}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 85}, "assignee": {"id": 521}, "project": {"id": 336, "owner": {"id": 728}, "assignee": {"id": 873}}, "task": {"id": 374, "owner": {"id": 950}, "assignee": {"id": 1077}}, "job": {"id": 387, "assignee": {"id": 1143}}, "issue": {"id": 368, "owner": {"id": 1228}, "assignee": {"id": 1394}}, "organization": {"id": 136}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 66}, "assignee": {"id": 552}, "project": {"id": 319, "owner": {"id": 734}, "assignee": {"id": 823}}, "task": {"id": 388, "owner": {"id": 938}, "assignee": {"id": 1066}}, "job": {"id": 352, "assignee": {"id": 1165}}, "issue": {"id": 300, "owner": {"id": 1222}, "assignee": {"id": 1347}}, "organization": {"id": 106}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 322, "owner": {"id": 50}, "assignee": {"id": 557}, "project": {"id": 368, "owner": {"id": 776}, "assignee": {"id": 864}}, "task": {"id": 368, "owner": {"id": 955}, "assignee": {"id": 1070}}, "job": {"id": 361, "assignee": {"id": 1181}}, "issue": {"id": 344, "owner": {"id": 1261}, "assignee": {"id": 1343}}, "organization": {"id": 1444}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 340, "owner": {"id": 6}, "assignee": {"id": 518}, "project": {"id": 356, "owner": {"id": 712}, "assignee": {"id": 873}}, "task": {"id": 360, "owner": {"id": 991}, "assignee": {"id": 1098}}, "job": {"id": 377, "assignee": {"id": 1103}}, "issue": {"id": 386, "owner": {"id": 1252}, "assignee": {"id": 1378}}, "organization": {"id": 1431}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 302, "owner": {"id": 22}, "assignee": {"id": 599}, "project": {"id": 371, "owner": {"id": 784}, "assignee": {"id": 815}}, "task": {"id": 356, "owner": {"id": 971}, "assignee": {"id": 1037}}, "job": {"id": 367, "assignee": {"id": 1161}}, "issue": {"id": 314, "owner": {"id": 1277}, "assignee": {"id": 1338}}, "organization": {"id": 131}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 326, "owner": {"id": 99}, "assignee": {"id": 579}, "project": {"id": 323, "owner": {"id": 797}, "assignee": {"id": 814}}, "task": {"id": 388, "owner": {"id": 900}, "assignee": {"id": 1066}}, "job": {"id": 354, "assignee": {"id": 1180}}, "issue": {"id": 395, "owner": {"id": 1287}, "assignee": {"id": 1306}}, "organization": {"id": 174}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 378, "owner": {"id": 75}, "assignee": {"id": 564}, "project": {"id": 371, "owner": {"id": 733}, "assignee": {"id": 809}}, "task": {"id": 356, "owner": {"id": 986}, "assignee": {"id": 1003}}, "job": {"id": 372, "assignee": {"id": 1153}}, "issue": {"id": 381, "owner": {"id": 1238}, "assignee": {"id": 1389}}, "organization": {"id": 1445}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 342, "owner": {"id": 24}, "assignee": {"id": 586}, "project": {"id": 347, "owner": {"id": 702}, "assignee": {"id": 826}}, "task": {"id": 326, "owner": {"id": 964}, "assignee": {"id": 1077}}, "job": {"id": 330, "assignee": {"id": 1186}}, "issue": {"id": 300, "owner": {"id": 1264}, "assignee": {"id": 1310}}, "organization": {"id": 1440}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 371, "owner": {"id": 1}, "assignee": {"id": 584}, "project": {"id": 379, "owner": {"id": 710}, "assignee": {"id": 857}}, "task": {"id": 346, "owner": {"id": 911}, "assignee": {"id": 1038}}, "job": {"id": 353, "assignee": {"id": 1169}}, "issue": {"id": 383, "owner": {"id": 1257}, "assignee": {"id": 1350}}, "organization": {"id": 189}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 304, "owner": {"id": 61}, "assignee": {"id": 564}, "project": {"id": 304, "owner": {"id": 749}, "assignee": {"id": 849}}, "task": {"id": 326, "owner": {"id": 926}, "assignee": {"id": 1009}}, "job": {"id": 376, "assignee": {"id": 1199}}, "issue": {"id": 310, "owner": {"id": 1265}, "assignee": {"id": 1361}}, "organization": {"id": 172}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 17}, "assignee": {"id": 509}, "project": {"id": 325, "owner": {"id": 715}, "assignee": {"id": 843}}, "task": {"id": 305, "owner": {"id": 977}, "assignee": {"id": 1094}}, "job": {"id": 309, "assignee": {"id": 1177}}, "issue": {"id": 326, "owner": {"id": 1226}, "assignee": {"id": 1325}}, "organization": {"id": 1411}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 14}, "assignee": {"id": 568}, "project": {"id": 355, "owner": {"id": 791}, "assignee": {"id": 818}}, "task": {"id": 305, "owner": {"id": 952}, "assignee": {"id": 1052}}, "job": {"id": 356, "assignee": {"id": 1147}}, "issue": {"id": 325, "owner": {"id": 1273}, "assignee": {"id": 1342}}, "organization": {"id": 1427}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 5}, "assignee": {"id": 516}, "project": {"id": 302, "owner": {"id": 720}, "assignee": {"id": 823}}, "task": {"id": 340, "owner": {"id": 947}, "assignee": {"id": 1001}}, "job": {"id": 328, "assignee": {"id": 1126}}, "issue": {"id": 306, "owner": {"id": 1294}, "assignee": {"id": 1363}}, "organization": {"id": 143}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "owner": {"id": 24}, "assignee": {"id": 542}, "project": {"id": 389, "owner": {"id": 757}, "assignee": {"id": 819}}, "task": {"id": 364, "owner": {"id": 950}, "assignee": {"id": 1095}}, "job": {"id": 349, "assignee": {"id": 1189}}, "issue": {"id": 362, "owner": {"id": 1234}, "assignee": {"id": 1325}}, "organization": {"id": 129}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 64}, "assignee": {"id": 505}, "project": {"id": 381, "owner": {"id": 762}, "assignee": {"id": 896}}, "task": {"id": 381, "owner": {"id": 919}, "assignee": {"id": 1076}}, "job": {"id": 377, "assignee": {"id": 1136}}, "issue": {"id": 314, "owner": {"id": 1248}, "assignee": {"id": 1341}}, "organization": {"id": 1472}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "owner": {"id": 20}, "assignee": {"id": 528}, "project": {"id": 309, "owner": {"id": 731}, "assignee": {"id": 857}}, "task": {"id": 371, "owner": {"id": 923}, "assignee": {"id": 1066}}, "job": {"id": 369, "assignee": {"id": 1169}}, "issue": {"id": 355, "owner": {"id": 1241}, "assignee": {"id": 1396}}, "organization": {"id": 1417}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "owner": {"id": 2}, "assignee": {"id": 525}, "project": {"id": 336, "owner": {"id": 749}, "assignee": {"id": 896}}, "task": {"id": 396, "owner": {"id": 998}, "assignee": {"id": 1050}}, "job": {"id": 350, "assignee": {"id": 1183}}, "issue": {"id": 314, "owner": {"id": 1234}, "assignee": {"id": 1367}}, "organization": {"id": 169}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "owner": {"id": 41}, "assignee": {"id": 550}, "project": {"id": 338, "owner": {"id": 708}, "assignee": {"id": 823}}, "task": {"id": 379, "owner": {"id": 921}, "assignee": {"id": 1026}}, "job": {"id": 377, "assignee": {"id": 1117}}, "issue": {"id": 373, "owner": {"id": 1231}, "assignee": {"id": 1399}}, "organization": {"id": 178}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 92}, "assignee": {"id": 572}, "project": {"id": 395, "owner": {"id": 748}, "assignee": {"id": 870}}, "task": {"id": 349, "owner": {"id": 987}, "assignee": {"id": 1000}}, "job": {"id": 369, "assignee": {"id": 1187}}, "issue": {"id": 329, "owner": {"id": 1200}, "assignee": {"id": 1303}}, "organization": {"id": 1444}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "owner": {"id": 66}, "assignee": {"id": 528}, "project": {"id": 368, "owner": {"id": 756}, "assignee": {"id": 805}}, "task": {"id": 316, "owner": {"id": 921}, "assignee": {"id": 1086}}, "job": {"id": 396, "assignee": {"id": 1160}}, "issue": {"id": 365, "owner": {"id": 1229}, "assignee": {"id": 1369}}, "organization": {"id": 1417}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 384, "owner": {"id": 20}, "assignee": {"id": 599}, "project": {"id": 323, "owner": {"id": 711}, "assignee": {"id": 801}}, "task": {"id": 398, "owner": {"id": 915}, "assignee": {"id": 1038}}, "job": {"id": 331, "assignee": {"id": 1118}}, "issue": {"id": 307, "owner": {"id": 1204}, "assignee": {"id": 1317}}, "organization": {"id": 129}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 355, "owner": {"id": 83}, "assignee": {"id": 570}, "project": {"id": 386, "owner": {"id": 710}, "assignee": {"id": 801}}, "task": {"id": 388, "owner": {"id": 970}, "assignee": {"id": 1031}}, "job": {"id": 360, "assignee": {"id": 1133}}, "issue": {"id": 305, "owner": {"id": 1272}, "assignee": {"id": 1381}}, "organization": {"id": 128}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 58}, "assignee": {"id": 575}, "project": {"id": 376, "owner": {"id": 730}, "assignee": {"id": 874}}, "task": {"id": 313, "owner": {"id": 915}, "assignee": {"id": 1090}}, "job": {"id": 354, "assignee": {"id": 1128}}, "issue": {"id": 393, "owner": {"id": 1288}, "assignee": {"id": 1329}}, "organization": {"id": 1448}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 319, "owner": {"id": 30}, "assignee": {"id": 583}, "project": {"id": 353, "owner": {"id": 736}, "assignee": {"id": 871}}, "task": {"id": 375, "owner": {"id": 972}, "assignee": {"id": 1054}}, "job": {"id": 359, "assignee": {"id": 1135}}, "issue": {"id": 371, "owner": {"id": 1265}, "assignee": {"id": 1306}}, "organization": {"id": 1460}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 344, "owner": {"id": 99}, "assignee": {"id": 587}, "project": {"id": 346, "owner": {"id": 701}, "assignee": {"id": 833}}, "task": {"id": 356, "owner": {"id": 935}, "assignee": {"id": 1021}}, "job": {"id": 347, "assignee": {"id": 1133}}, "issue": {"id": 375, "owner": {"id": 1225}, "assignee": {"id": 1341}}, "organization": {"id": 183}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 52}, "assignee": {"id": 503}, "project": {"id": 384, "owner": {"id": 753}, "assignee": {"id": 839}}, "task": {"id": 358, "owner": {"id": 944}, "assignee": {"id": 1052}}, "job": {"id": 376, "assignee": {"id": 1144}}, "issue": {"id": 308, "owner": {"id": 1234}, "assignee": {"id": 1316}}, "organization": {"id": 109}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 321, "owner": {"id": 64}, "assignee": {"id": 527}, "project": {"id": 394, "owner": {"id": 762}, "assignee": {"id": 832}}, "task": {"id": 378, "owner": {"id": 909}, "assignee": {"id": 1033}}, "job": {"id": 327, "assignee": {"id": 1154}}, "issue": {"id": 313, "owner": {"id": 1238}, "assignee": {"id": 1369}}, "organization": {"id": 1465}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 374, "owner": {"id": 66}, "assignee": {"id": 541}, "project": {"id": 365, "owner": {"id": 765}, "assignee": {"id": 809}}, "task": {"id": 353, "owner": {"id": 923}, "assignee": {"id": 1038}}, "job": {"id": 377, "assignee": {"id": 1143}}, "issue": {"id": 369, "owner": {"id": 1253}, "assignee": {"id": 1313}}, "organization": {"id": 1470}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 89}, "assignee": {"id": 589}, "project": {"id": 393, "owner": {"id": 769}, "assignee": {"id": 898}}, "task": {"id": 364, "owner": {"id": 921}, "assignee": {"id": 1031}}, "job": {"id": 358, "assignee": {"id": 1140}}, "issue": {"id": 398, "owner": {"id": 1246}, "assignee": {"id": 1340}}, "organization": {"id": 104}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 335, "owner": {"id": 50}, "assignee": {"id": 590}, "project": {"id": 309, "owner": {"id": 703}, "assignee": {"id": 899}}, "task": {"id": 368, "owner": {"id": 987}, "assignee": {"id": 1020}}, "job": {"id": 382, "assignee": {"id": 1193}}, "issue": {"id": 344, "owner": {"id": 1209}, "assignee": {"id": 1370}}, "organization": {"id": 157}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 56}, "assignee": {"id": 502}, "project": {"id": 375, "owner": {"id": 710}, "assignee": {"id": 824}}, "task": {"id": 330, "owner": {"id": 955}, "assignee": {"id": 1090}}, "job": {"id": 310, "assignee": {"id": 1181}}, "issue": {"id": 317, "owner": {"id": 1205}, "assignee": {"id": 1368}}, "organization": {"id": 1420}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 381, "owner": {"id": 73}, "assignee": {"id": 562}, "project": {"id": 388, "owner": {"id": 743}, "assignee": {"id": 895}}, "task": {"id": 321, "owner": {"id": 963}, "assignee": {"id": 1020}}, "job": {"id": 328, "assignee": {"id": 1102}}, "issue": {"id": 349, "owner": {"id": 1231}, "assignee": {"id": 1344}}, "organization": {"id": 1454}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "owner": {"id": 82}, "assignee": {"id": 554}, "project": {"id": 338, "owner": {"id": 716}, "assignee": {"id": 808}}, "task": {"id": 322, "owner": {"id": 989}, "assignee": {"id": 1029}}, "job": {"id": 321, "assignee": {"id": 1156}}, "issue": {"id": 330, "owner": {"id": 1200}, "assignee": {"id": 1304}}, "organization": {"id": 181}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 320, "owner": {"id": 70}, "assignee": {"id": 531}, "project": {"id": 318, "owner": {"id": 760}, "assignee": {"id": 898}}, "task": {"id": 353, "owner": {"id": 919}, "assignee": {"id": 1038}}, "job": {"id": 349, "assignee": {"id": 1152}}, "issue": {"id": 307, "owner": {"id": 1259}, "assignee": {"id": 1396}}, "organization": {"id": 149}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 97}, "assignee": {"id": 513}, "project": {"id": 302, "owner": {"id": 781}, "assignee": {"id": 852}}, "task": {"id": 395, "owner": {"id": 922}, "assignee": {"id": 1070}}, "job": {"id": 366, "assignee": {"id": 1179}}, "issue": {"id": 303, "owner": {"id": 1243}, "assignee": {"id": 1341}}, "organization": {"id": 1413}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "owner": {"id": 93}, "assignee": {"id": 544}, "project": {"id": 300, "owner": {"id": 726}, "assignee": {"id": 800}}, "task": {"id": 343, "owner": {"id": 910}, "assignee": {"id": 1048}}, "job": {"id": 396, "assignee": {"id": 1184}}, "issue": {"id": 378, "owner": {"id": 1245}, "assignee": {"id": 1327}}, "organization": {"id": 1407}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "owner": {"id": 41}, "assignee": {"id": 572}, "project": {"id": 368, "owner": {"id": 704}, "assignee": {"id": 875}}, "task": {"id": 336, "owner": {"id": 944}, "assignee": {"id": 1099}}, "job": {"id": 314, "assignee": {"id": 1152}}, "issue": {"id": 329, "owner": {"id": 1293}, "assignee": {"id": 1368}}, "organization": {"id": 198}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "owner": {"id": 65}, "assignee": {"id": 593}, "project": {"id": 337, "owner": {"id": 787}, "assignee": {"id": 838}}, "task": {"id": 346, "owner": {"id": 931}, "assignee": {"id": 1092}}, "job": {"id": 305, "assignee": {"id": 1152}}, "issue": {"id": 331, "owner": {"id": 1270}, "assignee": {"id": 1377}}, "organization": {"id": 181}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "owner": {"id": 81}, "assignee": {"id": 544}, "project": {"id": 363, "owner": {"id": 750}, "assignee": {"id": 848}}, "task": {"id": 327, "owner": {"id": 941}, "assignee": {"id": 1037}}, "job": {"id": 384, "assignee": {"id": 1158}}, "issue": {"id": 374, "owner": {"id": 1230}, "assignee": {"id": 1381}}, "organization": {"id": 1461}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 54}, "assignee": {"id": 587}, "project": {"id": 351, "owner": {"id": 742}, "assignee": {"id": 824}}, "task": {"id": 325, "owner": {"id": 901}, "assignee": {"id": 1018}}, "job": {"id": 341, "assignee": {"id": 1119}}, "issue": {"id": 384, "owner": {"id": 1275}, "assignee": {"id": 1393}}, "organization": {"id": 1428}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"id": 310, "owner": {"id": 72}, "assignee": {"id": 556}, "project": {"id": 352, "owner": {"id": 701}, "assignee": {"id": 829}}, "task": {"id": 365, "owner": {"id": 915}, "assignee": {"id": 1094}}, "job": {"id": 395, "assignee": {"id": 1122}}, "issue": {"id": 321, "owner": {"id": 1259}, "assignee": {"id": 1333}}, "organization": {"id": 198}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 18}, "assignee": {"id": 561}, "project": {"id": 309, "owner": {"id": 714}, "assignee": {"id": 888}}, "task": {"id": 399, "owner": {"id": 959}, "assignee": {"id": 1005}}, "job": {"id": 398, "assignee": {"id": 1123}}, "issue": {"id": 333, "owner": {"id": 1228}, "assignee": {"id": 1349}}, "organization": {"id": 148}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 88}, "assignee": {"id": 503}, "project": {"id": 393, "owner": {"id": 763}, "assignee": {"id": 804}}, "task": {"id": 363, "owner": {"id": 939}, "assignee": {"id": 1016}}, "job": {"id": 326, "assignee": {"id": 1185}}, "issue": {"id": 332, "owner": {"id": 1276}, "assignee": {"id": 1302}}, "organization": {"id": 1438}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 342, "owner": {"id": 73}, "assignee": {"id": 571}, "project": {"id": 311, "owner": {"id": 797}, "assignee": {"id": 879}}, "task": {"id": 363, "owner": {"id": 909}, "assignee": {"id": 1039}}, "job": {"id": 314, "assignee": {"id": 1180}}, "issue": {"id": 333, "owner": {"id": 1211}, "assignee": {"id": 1307}}, "organization": {"id": 1432}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 71, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 71}, "assignee": {"id": 518}, "project": {"id": 398, "owner": {"id": 756}, "assignee": {"id": 863}}, "task": {"id": 316, "owner": {"id": 952}, "assignee": {"id": 1047}}, "job": {"id": 383, "assignee": {"id": 1128}}, "issue": {"id": 347, "owner": {"id": 1261}, "assignee": {"id": 1334}}, "organization": {"id": 143}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 312, "owner": {"id": 51}, "assignee": {"id": 567}, "project": {"id": 306, "owner": {"id": 751}, "assignee": {"id": 888}}, "task": {"id": 338, "owner": {"id": 924}, "assignee": {"id": 1078}}, "job": {"id": 372, "assignee": {"id": 1122}}, "issue": {"id": 380, "owner": {"id": 1257}, "assignee": {"id": 1377}}, "organization": {"id": 114}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 313, "owner": {"id": 6}, "assignee": {"id": 583}, "project": {"id": 379, "owner": {"id": 783}, "assignee": {"id": 898}}, "task": {"id": 320, "owner": {"id": 978}, "assignee": {"id": 1066}}, "job": {"id": 325, "assignee": {"id": 1136}}, "issue": {"id": 384, "owner": {"id": 1278}, "assignee": {"id": 1319}}, "organization": {"id": 1431}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 97}, "assignee": {"id": 578}, "project": {"id": 363, "owner": {"id": 765}, "assignee": {"id": 832}}, "task": {"id": 378, "owner": {"id": 971}, "assignee": {"id": 1026}}, "job": {"id": 324, "assignee": {"id": 1163}}, "issue": {"id": 399, "owner": {"id": 1247}, "assignee": {"id": 1302}}, "organization": {"id": 1462}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 322, "owner": {"id": 62}, "assignee": {"id": 533}, "project": {"id": 305, "owner": {"id": 773}, "assignee": {"id": 845}}, "task": {"id": 305, "owner": {"id": 920}, "assignee": {"id": 1048}}, "job": {"id": 316, "assignee": {"id": 1138}}, "issue": {"id": 330, "owner": {"id": 1263}, "assignee": {"id": 1306}}, "organization": {"id": 195}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 34}, "assignee": {"id": 553}, "project": {"id": 318, "owner": {"id": 762}, "assignee": {"id": 873}}, "task": {"id": 304, "owner": {"id": 924}, "assignee": {"id": 1041}}, "job": {"id": 384, "assignee": {"id": 1181}}, "issue": {"id": 318, "owner": {"id": 1251}, "assignee": {"id": 1316}}, "organization": {"id": 195}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 337, "owner": {"id": 93}, "assignee": {"id": 543}, "project": {"id": 388, "owner": {"id": 740}, "assignee": {"id": 889}}, "task": {"id": 362, "owner": {"id": 957}, "assignee": {"id": 1033}}, "job": {"id": 390, "assignee": {"id": 1194}}, "issue": {"id": 368, "owner": {"id": 1256}, "assignee": {"id": 1360}}, "organization": {"id": 1441}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 353, "owner": {"id": 40}, "assignee": {"id": 583}, "project": {"id": 395, "owner": {"id": 777}, "assignee": {"id": 800}}, "task": {"id": 392, "owner": {"id": 949}, "assignee": {"id": 1070}}, "job": {"id": 398, "assignee": {"id": 1100}}, "issue": {"id": 315, "owner": {"id": 1290}, "assignee": {"id": 1384}}, "organization": {"id": 1435}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "owner": {"id": 25}, "assignee": {"id": 523}, "project": {"id": 379, "owner": {"id": 775}, "assignee": {"id": 875}}, "task": {"id": 385, "owner": {"id": 999}, "assignee": {"id": 1024}}, "job": {"id": 365, "assignee": {"id": 1126}}, "issue": {"id": 332, "owner": {"id": 1222}, "assignee": {"id": 1338}}, "organization": {"id": 187}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 16}, "assignee": {"id": 545}, "project": {"id": 331, "owner": {"id": 739}, "assignee": {"id": 812}}, "task": {"id": 307, "owner": {"id": 930}, "assignee": {"id": 1022}}, "job": {"id": 320, "assignee": {"id": 1168}}, "issue": {"id": 385, "owner": {"id": 1281}, "assignee": {"id": 1304}}, "organization": {"id": 121}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "owner": {"id": 82}, "assignee": {"id": 510}, "project": {"id": 346, "owner": {"id": 789}, "assignee": {"id": 828}}, "task": {"id": 380, "owner": {"id": 961}, "assignee": {"id": 1001}}, "job": {"id": 371, "assignee": {"id": 1190}}, "issue": {"id": 341, "owner": {"id": 1253}, "assignee": {"id": 1358}}, "organization": {"id": 1444}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "owner": {"id": 95}, "assignee": {"id": 558}, "project": {"id": 381, "owner": {"id": 783}, "assignee": {"id": 831}}, "task": {"id": 322, "owner": {"id": 941}, "assignee": {"id": 1052}}, "job": {"id": 393, "assignee": {"id": 1153}}, "issue": {"id": 365, "owner": {"id": 1200}, "assignee": {"id": 1336}}, "organization": {"id": 1486}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "owner": {"id": 3}, "assignee": {"id": 545}, "project": {"id": 370, "owner": {"id": 789}, "assignee": {"id": 889}}, "task": {"id": 380, "owner": {"id": 994}, "assignee": {"id": 1099}}, "job": {"id": 311, "assignee": {"id": 1103}}, "issue": {"id": 318, "owner": {"id": 1269}, "assignee": {"id": 1335}}, "organization": {"id": 159}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "owner": {"id": 75}, "assignee": {"id": 519}, "project": {"id": 367, "owner": {"id": 789}, "assignee": {"id": 843}}, "task": {"id": 369, "owner": {"id": 944}, "assignee": {"id": 1011}}, "job": {"id": 341, "assignee": {"id": 1194}}, "issue": {"id": 330, "owner": {"id": 1264}, "assignee": {"id": 1390}}, "organization": {"id": 167}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "owner": {"id": 59}, "assignee": {"id": 515}, "project": {"id": 388, "owner": {"id": 788}, "assignee": {"id": 840}}, "task": {"id": 359, "owner": {"id": 958}, "assignee": {"id": 1084}}, "job": {"id": 314, "assignee": {"id": 1198}}, "issue": {"id": 357, "owner": {"id": 1270}, "assignee": {"id": 1347}}, "organization": {"id": 1438}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 60}, "assignee": {"id": 519}, "project": {"id": 366, "owner": {"id": 741}, "assignee": {"id": 863}}, "task": {"id": 369, "owner": {"id": 908}, "assignee": {"id": 1040}}, "job": {"id": 301, "assignee": {"id": 1134}}, "issue": {"id": 314, "owner": {"id": 1210}, "assignee": {"id": 1358}}, "organization": {"id": 1462}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 315, "owner": {"id": 40}, "assignee": {"id": 500}, "project": {"id": 377, "owner": {"id": 749}, "assignee": {"id": 845}}, "task": {"id": 373, "owner": {"id": 942}, "assignee": {"id": 1036}}, "job": {"id": 327, "assignee": {"id": 1128}}, "issue": {"id": 344, "owner": {"id": 1203}, "assignee": {"id": 1367}}, "organization": {"id": 128}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 379, "owner": {"id": 27}, "assignee": {"id": 512}, "project": {"id": 357, "owner": {"id": 771}, "assignee": {"id": 868}}, "task": {"id": 383, "owner": {"id": 918}, "assignee": {"id": 1017}}, "job": {"id": 332, "assignee": {"id": 1135}}, "issue": {"id": 353, "owner": {"id": 1209}, "assignee": {"id": 1309}}, "organization": {"id": 124}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 324, "owner": {"id": 45}, "assignee": {"id": 580}, "project": {"id": 397, "owner": {"id": 739}, "assignee": {"id": 872}}, "task": {"id": 341, "owner": {"id": 934}, "assignee": {"id": 1015}}, "job": {"id": 397, "assignee": {"id": 1159}}, "issue": {"id": 352, "owner": {"id": 1245}, "assignee": {"id": 1358}}, "organization": {"id": 1493}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 390, "owner": {"id": 66}, "assignee": {"id": 500}, "project": {"id": 381, "owner": {"id": 736}, "assignee": {"id": 877}}, "task": {"id": 350, "owner": {"id": 977}, "assignee": {"id": 1045}}, "job": {"id": 351, "assignee": {"id": 1104}}, "issue": {"id": 387, "owner": {"id": 1209}, "assignee": {"id": 1310}}, "organization": {"id": 1498}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 309, "owner": {"id": 95}, "assignee": {"id": 580}, "project": {"id": 371, "owner": {"id": 738}, "assignee": {"id": 870}}, "task": {"id": 360, "owner": {"id": 937}, "assignee": {"id": 1044}}, "job": {"id": 337, "assignee": {"id": 1190}}, "issue": {"id": 311, "owner": {"id": 1296}, "assignee": {"id": 1372}}, "organization": {"id": 164}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 70}, "assignee": {"id": 573}, "project": {"id": 332, "owner": {"id": 710}, "assignee": {"id": 871}}, "task": {"id": 372, "owner": {"id": 927}, "assignee": {"id": 1092}}, "job": {"id": 305, "assignee": {"id": 1105}}, "issue": {"id": 395, "owner": {"id": 1254}, "assignee": {"id": 1383}}, "organization": {"id": 175}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 1}, "assignee": {"id": 551}, "project": {"id": 310, "owner": {"id": 701}, "assignee": {"id": 808}}, "task": {"id": 346, "owner": {"id": 962}, "assignee": {"id": 1072}}, "job": {"id": 307, "assignee": {"id": 1124}}, "issue": {"id": 339, "owner": {"id": 1267}, "assignee": {"id": 1397}}, "organization": {"id": 1467}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 35}, "assignee": {"id": 502}, "project": {"id": 397, "owner": {"id": 753}, "assignee": {"id": 855}}, "task": {"id": 392, "owner": {"id": 934}, "assignee": {"id": 1010}}, "job": {"id": 365, "assignee": {"id": 1114}}, "issue": {"id": 378, "owner": {"id": 1253}, "assignee": {"id": 1322}}, "organization": {"id": 1430}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 3}, "assignee": {"id": 522}, "project": {"id": 382, "owner": {"id": 703}, "assignee": {"id": 875}}, "task": {"id": 360, "owner": {"id": 901}, "assignee": {"id": 1058}}, "job": {"id": 330, "assignee": {"id": 1149}}, "issue": {"id": 304, "owner": {"id": 1255}, "assignee": {"id": 1319}}, "organization": {"id": 127}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 44}, "assignee": {"id": 537}, "project": {"id": 346, "owner": {"id": 700}, "assignee": {"id": 888}}, "task": {"id": 379, "owner": {"id": 914}, "assignee": {"id": 1054}}, "job": {"id": 396, "assignee": {"id": 1189}}, "issue": {"id": 391, "owner": {"id": 1299}, "assignee": {"id": 1326}}, "organization": {"id": 171}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 25}, "assignee": {"id": 531}, "project": {"id": 300, "owner": {"id": 772}, "assignee": {"id": 874}}, "task": {"id": 391, "owner": {"id": 945}, "assignee": {"id": 1011}}, "job": {"id": 325, "assignee": {"id": 1124}}, "issue": {"id": 307, "owner": {"id": 1208}, "assignee": {"id": 1355}}, "organization": {"id": 1499}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 351, "owner": {"id": 29}, "assignee": {"id": 599}, "project": {"id": 327, "owner": {"id": 706}, "assignee": {"id": 829}}, "task": {"id": 320, "owner": {"id": 920}, "assignee": {"id": 1012}}, "job": {"id": 395, "assignee": {"id": 1137}}, "issue": {"id": 322, "owner": {"id": 1242}, "assignee": {"id": 1328}}, "organization": {"id": 1436}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 52}, "assignee": {"id": 508}, "project": {"id": 308, "owner": {"id": 766}, "assignee": {"id": 857}}, "task": {"id": 320, "owner": {"id": 929}, "assignee": {"id": 1030}}, "job": {"id": 368, "assignee": {"id": 1183}}, "issue": {"id": 393, "owner": {"id": 1236}, "assignee": {"id": 1382}}, "organization": {"id": 129}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 44}, "assignee": {"id": 559}, "project": {"id": 344, "owner": {"id": 752}, "assignee": {"id": 886}}, "task": {"id": 382, "owner": {"id": 959}, "assignee": {"id": 1069}}, "job": {"id": 392, "assignee": {"id": 1125}}, "issue": {"id": 312, "owner": {"id": 1267}, "assignee": {"id": 1353}}, "organization": {"id": 122}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "owner": {"id": 3}, "assignee": {"id": 513}, "project": {"id": 360, "owner": {"id": 736}, "assignee": {"id": 899}}, "task": {"id": 326, "owner": {"id": 911}, "assignee": {"id": 1005}}, "job": {"id": 376, "assignee": {"id": 1106}}, "issue": {"id": 342, "owner": {"id": 1222}, "assignee": {"id": 1360}}, "organization": {"id": 1450}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "owner": {"id": 43}, "assignee": {"id": 523}, "project": {"id": 370, "owner": {"id": 712}, "assignee": {"id": 822}}, "task": {"id": 364, "owner": {"id": 957}, "assignee": {"id": 1072}}, "job": {"id": 359, "assignee": {"id": 1135}}, "issue": {"id": 357, "owner": {"id": 1231}, "assignee": {"id": 1308}}, "organization": {"id": 1400}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "owner": {"id": 31}, "assignee": {"id": 592}, "project": {"id": 373, "owner": {"id": 706}, "assignee": {"id": 805}}, "task": {"id": 366, "owner": {"id": 950}, "assignee": {"id": 1016}}, "job": {"id": 364, "assignee": {"id": 1113}}, "issue": {"id": 385, "owner": {"id": 1223}, "assignee": {"id": 1338}}, "organization": {"id": 141}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 16}, "assignee": {"id": 515}, "project": {"id": 331, "owner": {"id": 752}, "assignee": {"id": 886}}, "task": {"id": 367, "owner": {"id": 906}, "assignee": {"id": 1094}}, "job": {"id": 372, "assignee": {"id": 1178}}, "issue": {"id": 364, "owner": {"id": 1275}, "assignee": {"id": 1335}}, "organization": {"id": 169}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 0}, "assignee": {"id": 560}, "project": {"id": 347, "owner": {"id": 728}, "assignee": {"id": 872}}, "task": {"id": 324, "owner": {"id": 987}, "assignee": {"id": 1073}}, "job": {"id": 396, "assignee": {"id": 1122}}, "issue": {"id": 352, "owner": {"id": 1259}, "assignee": {"id": 1393}}, "organization": {"id": 1483}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "owner": {"id": 32}, "assignee": {"id": 556}, "project": {"id": 321, "owner": {"id": 711}, "assignee": {"id": 852}}, "task": {"id": 354, "owner": {"id": 942}, "assignee": {"id": 1021}}, "job": {"id": 302, "assignee": {"id": 1175}}, "issue": {"id": 356, "owner": {"id": 1242}, "assignee": {"id": 1374}}, "organization": {"id": 1493}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 314, "owner": {"id": 18}, "assignee": {"id": 584}, "project": {"id": 360, "owner": {"id": 798}, "assignee": {"id": 856}}, "task": {"id": 317, "owner": {"id": 925}, "assignee": {"id": 1005}}, "job": {"id": 327, "assignee": {"id": 1176}}, "issue": {"id": 398, "owner": {"id": 1279}, "assignee": {"id": 1387}}, "organization": {"id": 185}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 369, "owner": {"id": 98}, "assignee": {"id": 527}, "project": {"id": 315, "owner": {"id": 773}, "assignee": {"id": 841}}, "task": {"id": 354, "owner": {"id": 990}, "assignee": {"id": 1011}}, "job": {"id": 301, "assignee": {"id": 1163}}, "issue": {"id": 334, "owner": {"id": 1279}, "assignee": {"id": 1313}}, "organization": {"id": 133}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 329, "owner": {"id": 76}, "assignee": {"id": 547}, "project": {"id": 363, "owner": {"id": 758}, "assignee": {"id": 887}}, "task": {"id": 326, "owner": {"id": 948}, "assignee": {"id": 1007}}, "job": {"id": 385, "assignee": {"id": 1156}}, "issue": {"id": 304, "owner": {"id": 1217}, "assignee": {"id": 1373}}, "organization": {"id": 1438}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 396, "owner": {"id": 5}, "assignee": {"id": 572}, "project": {"id": 394, "owner": {"id": 748}, "assignee": {"id": 826}}, "task": {"id": 335, "owner": {"id": 948}, "assignee": {"id": 1000}}, "job": {"id": 309, "assignee": {"id": 1138}}, "issue": {"id": 309, "owner": {"id": 1280}, "assignee": {"id": 1341}}, "organization": {"id": 1483}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 344, "owner": {"id": 37}, "assignee": {"id": 578}, "project": {"id": 353, "owner": {"id": 793}, "assignee": {"id": 854}}, "task": {"id": 326, "owner": {"id": 936}, "assignee": {"id": 1083}}, "job": {"id": 364, "assignee": {"id": 1108}}, "issue": {"id": 366, "owner": {"id": 1218}, "assignee": {"id": 1354}}, "organization": {"id": 192}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 338, "owner": {"id": 5}, "assignee": {"id": 501}, "project": {"id": 390, "owner": {"id": 703}, "assignee": {"id": 846}}, "task": {"id": 384, "owner": {"id": 957}, "assignee": {"id": 1063}}, "job": {"id": 371, "assignee": {"id": 1159}}, "issue": {"id": 338, "owner": {"id": 1243}, "assignee": {"id": 1389}}, "organization": {"id": 179}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 378, "owner": {"id": 85}, "assignee": {"id": 548}, "project": {"id": 388, "owner": {"id": 720}, "assignee": {"id": 877}}, "task": {"id": 323, "owner": {"id": 934}, "assignee": {"id": 1008}}, "job": {"id": 372, "assignee": {"id": 1125}}, "issue": {"id": 332, "owner": {"id": 1252}, "assignee": {"id": 1398}}, "organization": {"id": 1497}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 48}, "assignee": {"id": 559}, "project": {"id": 357, "owner": {"id": 752}, "assignee": {"id": 819}}, "task": {"id": 355, "owner": {"id": 975}, "assignee": {"id": 1056}}, "job": {"id": 306, "assignee": {"id": 1115}}, "issue": {"id": 312, "owner": {"id": 1249}, "assignee": {"id": 1354}}, "organization": {"id": 1461}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 395, "owner": {"id": 678}, "assignee": {"id": 520}, "project": {"id": 386, "owner": {"id": 775}, "assignee": {"id": 808}}, "task": {"id": 331, "owner": {"id": 911}, "assignee": {"id": 1043}}, "job": {"id": 385, "assignee": {"id": 1159}}, "issue": {"id": 320, "owner": {"id": 1285}, "assignee": {"id": 1314}}, "organization": {"id": 122}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 375, "owner": {"id": 698}, "assignee": {"id": 530}, "project": {"id": 329, "owner": {"id": 776}, "assignee": {"id": 836}}, "task": {"id": 326, "owner": {"id": 953}, "assignee": {"id": 1019}}, "job": {"id": 309, "assignee": {"id": 1125}}, "issue": {"id": 369, "owner": {"id": 1242}, "assignee": {"id": 1376}}, "organization": {"id": 135}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 696}, "assignee": {"id": 549}, "project": {"id": 399, "owner": {"id": 789}, "assignee": {"id": 819}}, "task": {"id": 386, "owner": {"id": 983}, "assignee": {"id": 1016}}, "job": {"id": 330, "assignee": {"id": 1163}}, "issue": {"id": 380, "owner": {"id": 1251}, "assignee": {"id": 1308}}, "organization": {"id": 1462}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 653}, "assignee": {"id": 556}, "project": {"id": 303, "owner": {"id": 722}, "assignee": {"id": 868}}, "task": {"id": 339, "owner": {"id": 995}, "assignee": {"id": 1034}}, "job": {"id": 318, "assignee": {"id": 1133}}, "issue": {"id": 344, "owner": {"id": 1215}, "assignee": {"id": 1319}}, "organization": {"id": 1470}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "owner": {"id": 639}, "assignee": {"id": 571}, "project": {"id": 387, "owner": {"id": 766}, "assignee": {"id": 841}}, "task": {"id": 334, "owner": {"id": 942}, "assignee": {"id": 1014}}, "job": {"id": 399, "assignee": {"id": 1116}}, "issue": {"id": 326, "owner": {"id": 1212}, "assignee": {"id": 1364}}, "organization": {"id": 127}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "owner": {"id": 698}, "assignee": {"id": 536}, "project": {"id": 348, "owner": {"id": 719}, "assignee": {"id": 826}}, "task": {"id": 313, "owner": {"id": 942}, "assignee": {"id": 1027}}, "job": {"id": 375, "assignee": {"id": 1134}}, "issue": {"id": 370, "owner": {"id": 1281}, "assignee": {"id": 1351}}, "organization": {"id": 120}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "owner": {"id": 685}, "assignee": {"id": 578}, "project": {"id": 377, "owner": {"id": 730}, "assignee": {"id": 851}}, "task": {"id": 380, "owner": {"id": 956}, "assignee": {"id": 1045}}, "job": {"id": 343, "assignee": {"id": 1134}}, "issue": {"id": 328, "owner": {"id": 1256}, "assignee": {"id": 1398}}, "organization": {"id": 1441}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 330, "owner": {"id": 675}, "assignee": {"id": 500}, "project": {"id": 346, "owner": {"id": 764}, "assignee": {"id": 870}}, "task": {"id": 334, "owner": {"id": 924}, "assignee": {"id": 1080}}, "job": {"id": 380, "assignee": {"id": 1122}}, "issue": {"id": 347, "owner": {"id": 1277}, "assignee": {"id": 1300}}, "organization": {"id": 1489}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "owner": {"id": 697}, "assignee": {"id": 506}, "project": {"id": 348, "owner": {"id": 732}, "assignee": {"id": 830}}, "task": {"id": 330, "owner": {"id": 945}, "assignee": {"id": 1086}}, "job": {"id": 374, "assignee": {"id": 1120}}, "issue": {"id": 342, "owner": {"id": 1224}, "assignee": {"id": 1352}}, "organization": {"id": 117}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "owner": {"id": 693}, "assignee": {"id": 591}, "project": {"id": 305, "owner": {"id": 757}, "assignee": {"id": 807}}, "task": {"id": 330, "owner": {"id": 955}, "assignee": {"id": 1099}}, "job": {"id": 326, "assignee": {"id": 1167}}, "issue": {"id": 310, "owner": {"id": 1288}, "assignee": {"id": 1387}}, "organization": {"id": 102}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "owner": {"id": 653}, "assignee": {"id": 572}, "project": {"id": 387, "owner": {"id": 725}, "assignee": {"id": 886}}, "task": {"id": 312, "owner": {"id": 955}, "assignee": {"id": 1058}}, "job": {"id": 349, "assignee": {"id": 1104}}, "issue": {"id": 367, "owner": {"id": 1251}, "assignee": {"id": 1349}}, "organization": {"id": 1457}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 390, "owner": {"id": 696}, "assignee": {"id": 595}, "project": {"id": 397, "owner": {"id": 787}, "assignee": {"id": 830}}, "task": {"id": 347, "owner": {"id": 941}, "assignee": {"id": 1085}}, "job": {"id": 386, "assignee": {"id": 1133}}, "issue": {"id": 307, "owner": {"id": 1212}, "assignee": {"id": 1345}}, "organization": {"id": 1417}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 341, "owner": {"id": 690}, "assignee": {"id": 593}, "project": {"id": 382, "owner": {"id": 779}, "assignee": {"id": 837}}, "task": {"id": 313, "owner": {"id": 925}, "assignee": {"id": 1039}}, "job": {"id": 372, "assignee": {"id": 1120}}, "issue": {"id": 361, "owner": {"id": 1263}, "assignee": {"id": 1354}}, "organization": {"id": 167}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 391, "owner": {"id": 685}, "assignee": {"id": 538}, "project": {"id": 384, "owner": {"id": 771}, "assignee": {"id": 863}}, "task": {"id": 355, "owner": {"id": 929}, "assignee": {"id": 1035}}, "job": {"id": 309, "assignee": {"id": 1116}}, "issue": {"id": 344, "owner": {"id": 1241}, "assignee": {"id": 1391}}, "organization": {"id": 197}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 693}, "assignee": {"id": 539}, "project": {"id": 371, "owner": {"id": 776}, "assignee": {"id": 849}}, "task": {"id": 388, "owner": {"id": 977}, "assignee": {"id": 1050}}, "job": {"id": 390, "assignee": {"id": 1161}}, "issue": {"id": 319, "owner": {"id": 1268}, "assignee": {"id": 1369}}, "organization": {"id": 1438}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 337, "owner": {"id": 618}, "assignee": {"id": 525}, "project": {"id": 384, "owner": {"id": 706}, "assignee": {"id": 852}}, "task": {"id": 379, "owner": {"id": 945}, "assignee": {"id": 1013}}, "job": {"id": 308, "assignee": {"id": 1188}}, "issue": {"id": 327, "owner": {"id": 1280}, "assignee": {"id": 1320}}, "organization": {"id": 1481}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 356, "owner": {"id": 695}, "assignee": {"id": 559}, "project": {"id": 325, "owner": {"id": 714}, "assignee": {"id": 843}}, "task": {"id": 349, "owner": {"id": 945}, "assignee": {"id": 1066}}, "job": {"id": 376, "assignee": {"id": 1162}}, "issue": {"id": 301, "owner": {"id": 1254}, "assignee": {"id": 1386}}, "organization": {"id": 140}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 384, "owner": {"id": 632}, "assignee": {"id": 541}, "project": {"id": 358, "owner": {"id": 772}, "assignee": {"id": 880}}, "task": {"id": 339, "owner": {"id": 915}, "assignee": {"id": 1033}}, "job": {"id": 305, "assignee": {"id": 1165}}, "issue": {"id": 370, "owner": {"id": 1203}, "assignee": {"id": 1379}}, "organization": {"id": 103}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 381, "owner": {"id": 638}, "assignee": {"id": 589}, "project": {"id": 357, "owner": {"id": 717}, "assignee": {"id": 869}}, "task": {"id": 326, "owner": {"id": 974}, "assignee": {"id": 1032}}, "job": {"id": 365, "assignee": {"id": 1170}}, "issue": {"id": 387, "owner": {"id": 1273}, "assignee": {"id": 1351}}, "organization": {"id": 1439}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 380, "owner": {"id": 613}, "assignee": {"id": 533}, "project": {"id": 398, "owner": {"id": 709}, "assignee": {"id": 899}}, "task": {"id": 380, "owner": {"id": 944}, "assignee": {"id": 1010}}, "job": {"id": 346, "assignee": {"id": 1136}}, "issue": {"id": 314, "owner": {"id": 1201}, "assignee": {"id": 1361}}, "organization": {"id": 1445}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"id": 386, "owner": {"id": 693}, "assignee": {"id": 569}, "project": {"id": 393, "owner": {"id": 722}, "assignee": {"id": 833}}, "task": {"id": 312, "owner": {"id": 957}, "assignee": {"id": 1047}}, "job": {"id": 361, "assignee": {"id": 1104}}, "issue": {"id": 368, "owner": {"id": 1264}, "assignee": {"id": 1324}}, "organization": {"id": 119}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 334, "owner": {"id": 624}, "assignee": {"id": 578}, "project": {"id": 385, "owner": {"id": 726}, "assignee": {"id": 817}}, "task": {"id": 369, "owner": {"id": 909}, "assignee": {"id": 1035}}, "job": {"id": 320, "assignee": {"id": 1176}}, "issue": {"id": 343, "owner": {"id": 1274}, "assignee": {"id": 1338}}, "organization": {"id": 152}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 657}, "assignee": {"id": 559}, "project": {"id": 332, "owner": {"id": 746}, "assignee": {"id": 815}}, "task": {"id": 310, "owner": {"id": 913}, "assignee": {"id": 1066}}, "job": {"id": 349, "assignee": {"id": 1152}}, "issue": {"id": 373, "owner": {"id": 1225}, "assignee": {"id": 1309}}, "organization": {"id": 1423}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 370, "owner": {"id": 690}, "assignee": {"id": 522}, "project": {"id": 380, "owner": {"id": 703}, "assignee": {"id": 865}}, "task": {"id": 377, "owner": {"id": 947}, "assignee": {"id": 1043}}, "job": {"id": 386, "assignee": {"id": 1125}}, "issue": {"id": 306, "owner": {"id": 1270}, "assignee": {"id": 1315}}, "organization": {"id": 1463}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 625}, "assignee": {"id": 563}, "project": {"id": 324, "owner": {"id": 746}, "assignee": {"id": 871}}, "task": {"id": 306, "owner": {"id": 927}, "assignee": {"id": 1009}}, "job": {"id": 334, "assignee": {"id": 1148}}, "issue": {"id": 323, "owner": {"id": 1268}, "assignee": {"id": 1357}}, "organization": {"id": 158}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "owner": {"id": 637}, "assignee": {"id": 542}, "project": {"id": 388, "owner": {"id": 717}, "assignee": {"id": 884}}, "task": {"id": 308, "owner": {"id": 970}, "assignee": {"id": 1080}}, "job": {"id": 377, "assignee": {"id": 1129}}, "issue": {"id": 336, "owner": {"id": 1230}, "assignee": {"id": 1392}}, "organization": {"id": 140}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 662}, "assignee": {"id": 577}, "project": {"id": 388, "owner": {"id": 701}, "assignee": {"id": 807}}, "task": {"id": 358, "owner": {"id": 921}, "assignee": {"id": 1022}}, "job": {"id": 368, "assignee": {"id": 1124}}, "issue": {"id": 378, "owner": {"id": 1209}, "assignee": {"id": 1370}}, "organization": {"id": 1431}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 605}, "assignee": {"id": 581}, "project": {"id": 394, "owner": {"id": 743}, "assignee": {"id": 892}}, "task": {"id": 306, "owner": {"id": 973}, "assignee": {"id": 1054}}, "job": {"id": 327, "assignee": {"id": 1102}}, "issue": {"id": 303, "owner": {"id": 1206}, "assignee": {"id": 1339}}, "organization": {"id": 1432}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 380, "owner": {"id": 690}, "assignee": {"id": 554}, "project": {"id": 338, "owner": {"id": 737}, "assignee": {"id": 885}}, "task": {"id": 396, "owner": {"id": 922}, "assignee": {"id": 1060}}, "job": {"id": 393, "assignee": {"id": 1176}}, "issue": {"id": 339, "owner": {"id": 1207}, "assignee": {"id": 1353}}, "organization": {"id": 146}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 648}, "assignee": {"id": 576}, "project": {"id": 365, "owner": {"id": 785}, "assignee": {"id": 852}}, "task": {"id": 357, "owner": {"id": 902}, "assignee": {"id": 1085}}, "job": {"id": 348, "assignee": {"id": 1108}}, "issue": {"id": 338, "owner": {"id": 1235}, "assignee": {"id": 1386}}, "organization": {"id": 170}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 617}, "assignee": {"id": 504}, "project": {"id": 392, "owner": {"id": 754}, "assignee": {"id": 891}}, "task": {"id": 378, "owner": {"id": 940}, "assignee": {"id": 1029}}, "job": {"id": 306, "assignee": {"id": 1130}}, "issue": {"id": 358, "owner": {"id": 1288}, "assignee": {"id": 1363}}, "organization": {"id": 1464}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "owner": {"id": 630}, "assignee": {"id": 500}, "project": {"id": 342, "owner": {"id": 736}, "assignee": {"id": 897}}, "task": {"id": 359, "owner": {"id": 903}, "assignee": {"id": 1090}}, "job": {"id": 364, "assignee": {"id": 1195}}, "issue": {"id": 392, "owner": {"id": 1296}, "assignee": {"id": 1364}}, "organization": {"id": 1490}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 309, "owner": {"id": 691}, "assignee": {"id": 565}, "project": {"id": 384, "owner": {"id": 794}, "assignee": {"id": 877}}, "task": {"id": 308, "owner": {"id": 941}, "assignee": {"id": 1028}}, "job": {"id": 369, "assignee": {"id": 1194}}, "issue": {"id": 314, "owner": {"id": 1265}, "assignee": {"id": 1349}}, "organization": {"id": 171}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 382, "owner": {"id": 629}, "assignee": {"id": 516}, "project": {"id": 386, "owner": {"id": 749}, "assignee": {"id": 800}}, "task": {"id": 325, "owner": {"id": 917}, "assignee": {"id": 1025}}, "job": {"id": 349, "assignee": {"id": 1129}}, "issue": {"id": 391, "owner": {"id": 1279}, "assignee": {"id": 1388}}, "organization": {"id": 172}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 608}, "assignee": {"id": 527}, "project": {"id": 383, "owner": {"id": 741}, "assignee": {"id": 841}}, "task": {"id": 380, "owner": {"id": 960}, "assignee": {"id": 1066}}, "job": {"id": 300, "assignee": {"id": 1131}}, "issue": {"id": 334, "owner": {"id": 1206}, "assignee": {"id": 1360}}, "organization": {"id": 1451}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 644}, "assignee": {"id": 567}, "project": {"id": 340, "owner": {"id": 718}, "assignee": {"id": 851}}, "task": {"id": 386, "owner": {"id": 953}, "assignee": {"id": 1086}}, "job": {"id": 324, "assignee": {"id": 1144}}, "issue": {"id": 337, "owner": {"id": 1254}, "assignee": {"id": 1321}}, "organization": {"id": 1447}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 361, "owner": {"id": 684}, "assignee": {"id": 509}, "project": {"id": 327, "owner": {"id": 732}, "assignee": {"id": 878}}, "task": {"id": 380, "owner": {"id": 996}, "assignee": {"id": 1053}}, "job": {"id": 386, "assignee": {"id": 1188}}, "issue": {"id": 312, "owner": {"id": 1201}, "assignee": {"id": 1311}}, "organization": {"id": 178}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 627}, "assignee": {"id": 580}, "project": {"id": 363, "owner": {"id": 707}, "assignee": {"id": 850}}, "task": {"id": 390, "owner": {"id": 979}, "assignee": {"id": 1064}}, "job": {"id": 338, "assignee": {"id": 1148}}, "issue": {"id": 332, "owner": {"id": 1298}, "assignee": {"id": 1329}}, "organization": {"id": 149}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 374, "owner": {"id": 656}, "assignee": {"id": 511}, "project": {"id": 369, "owner": {"id": 777}, "assignee": {"id": 815}}, "task": {"id": 359, "owner": {"id": 990}, "assignee": {"id": 1059}}, "job": {"id": 327, "assignee": {"id": 1178}}, "issue": {"id": 365, "owner": {"id": 1253}, "assignee": {"id": 1359}}, "organization": {"id": 1434}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 369, "owner": {"id": 676}, "assignee": {"id": 532}, "project": {"id": 357, "owner": {"id": 777}, "assignee": {"id": 803}}, "task": {"id": 376, "owner": {"id": 947}, "assignee": {"id": 1024}}, "job": {"id": 389, "assignee": {"id": 1182}}, "issue": {"id": 391, "owner": {"id": 1297}, "assignee": {"id": 1308}}, "organization": {"id": 1434}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 337, "owner": {"id": 661}, "assignee": {"id": 528}, "project": {"id": 396, "owner": {"id": 745}, "assignee": {"id": 880}}, "task": {"id": 341, "owner": {"id": 938}, "assignee": {"id": 1045}}, "job": {"id": 340, "assignee": {"id": 1146}}, "issue": {"id": 308, "owner": {"id": 1270}, "assignee": {"id": 1378}}, "organization": {"id": 173}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 386, "owner": {"id": 659}, "assignee": {"id": 526}, "project": {"id": 363, "owner": {"id": 776}, "assignee": {"id": 875}}, "task": {"id": 316, "owner": {"id": 982}, "assignee": {"id": 1021}}, "job": {"id": 339, "assignee": {"id": 1196}}, "issue": {"id": 395, "owner": {"id": 1237}, "assignee": {"id": 1371}}, "organization": {"id": 119}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 667}, "assignee": {"id": 521}, "project": {"id": 363, "owner": {"id": 736}, "assignee": {"id": 845}}, "task": {"id": 316, "owner": {"id": 934}, "assignee": {"id": 1062}}, "job": {"id": 390, "assignee": {"id": 1136}}, "issue": {"id": 323, "owner": {"id": 1287}, "assignee": {"id": 1330}}, "organization": {"id": 1442}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 356, "owner": {"id": 603}, "assignee": {"id": 514}, "project": {"id": 354, "owner": {"id": 714}, "assignee": {"id": 838}}, "task": {"id": 380, "owner": {"id": 960}, "assignee": {"id": 1055}}, "job": {"id": 339, "assignee": {"id": 1165}}, "issue": {"id": 370, "owner": {"id": 1274}, "assignee": {"id": 1362}}, "organization": {"id": 1422}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "owner": {"id": 642}, "assignee": {"id": 532}, "project": {"id": 314, "owner": {"id": 732}, "assignee": {"id": 878}}, "task": {"id": 394, "owner": {"id": 901}, "assignee": {"id": 1014}}, "job": {"id": 377, "assignee": {"id": 1124}}, "issue": {"id": 312, "owner": {"id": 1282}, "assignee": {"id": 1346}}, "organization": {"id": 130}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "owner": {"id": 612}, "assignee": {"id": 562}, "project": {"id": 314, "owner": {"id": 712}, "assignee": {"id": 867}}, "task": {"id": 325, "owner": {"id": 972}, "assignee": {"id": 1007}}, "job": {"id": 361, "assignee": {"id": 1148}}, "issue": {"id": 339, "owner": {"id": 1217}, "assignee": {"id": 1303}}, "organization": {"id": 166}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "owner": {"id": 683}, "assignee": {"id": 527}, "project": {"id": 323, "owner": {"id": 730}, "assignee": {"id": 899}}, "task": {"id": 341, "owner": {"id": 943}, "assignee": {"id": 1022}}, "job": {"id": 361, "assignee": {"id": 1166}}, "issue": {"id": 390, "owner": {"id": 1245}, "assignee": {"id": 1328}}, "organization": {"id": 1490}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "owner": {"id": 687}, "assignee": {"id": 529}, "project": {"id": 370, "owner": {"id": 711}, "assignee": {"id": 817}}, "task": {"id": 352, "owner": {"id": 955}, "assignee": {"id": 1061}}, "job": {"id": 309, "assignee": {"id": 1116}}, "issue": {"id": 335, "owner": {"id": 1208}, "assignee": {"id": 1319}}, "organization": {"id": 1437}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "owner": {"id": 672}, "assignee": {"id": 514}, "project": {"id": 302, "owner": {"id": 766}, "assignee": {"id": 809}}, "task": {"id": 393, "owner": {"id": 968}, "assignee": {"id": 1074}}, "job": {"id": 370, "assignee": {"id": 1128}}, "issue": {"id": 347, "owner": {"id": 1257}, "assignee": {"id": 1381}}, "organization": {"id": 136}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "owner": {"id": 658}, "assignee": {"id": 574}, "project": {"id": 327, "owner": {"id": 728}, "assignee": {"id": 854}}, "task": {"id": 313, "owner": {"id": 929}, "assignee": {"id": 1080}}, "job": {"id": 342, "assignee": {"id": 1130}}, "issue": {"id": 384, "owner": {"id": 1242}, "assignee": {"id": 1391}}, "organization": {"id": 174}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "owner": {"id": 601}, "assignee": {"id": 520}, "project": {"id": 372, "owner": {"id": 745}, "assignee": {"id": 861}}, "task": {"id": 369, "owner": {"id": 927}, "assignee": {"id": 1047}}, "job": {"id": 328, "assignee": {"id": 1146}}, "issue": {"id": 382, "owner": {"id": 1284}, "assignee": {"id": 1393}}, "organization": {"id": 1466}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 652}, "assignee": {"id": 594}, "project": {"id": 370, "owner": {"id": 774}, "assignee": {"id": 863}}, "task": {"id": 304, "owner": {"id": 919}, "assignee": {"id": 1062}}, "job": {"id": 309, "assignee": {"id": 1110}}, "issue": {"id": 384, "owner": {"id": 1213}, "assignee": {"id": 1305}}, "organization": {"id": 1441}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 369, "owner": {"id": 661}, "assignee": {"id": 514}, "project": {"id": 301, "owner": {"id": 761}, "assignee": {"id": 813}}, "task": {"id": 362, "owner": {"id": 972}, "assignee": {"id": 1048}}, "job": {"id": 317, "assignee": {"id": 1196}}, "issue": {"id": 317, "owner": {"id": 1220}, "assignee": {"id": 1362}}, "organization": {"id": 153}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 304, "owner": {"id": 670}, "assignee": {"id": 542}, "project": {"id": 362, "owner": {"id": 715}, "assignee": {"id": 877}}, "task": {"id": 323, "owner": {"id": 984}, "assignee": {"id": 1017}}, "job": {"id": 334, "assignee": {"id": 1177}}, "issue": {"id": 326, "owner": {"id": 1293}, "assignee": {"id": 1330}}, "organization": {"id": 134}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 327, "owner": {"id": 633}, "assignee": {"id": 505}, "project": {"id": 376, "owner": {"id": 769}, "assignee": {"id": 860}}, "task": {"id": 300, "owner": {"id": 946}, "assignee": {"id": 1045}}, "job": {"id": 351, "assignee": {"id": 1185}}, "issue": {"id": 373, "owner": {"id": 1215}, "assignee": {"id": 1392}}, "organization": {"id": 1453}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 627}, "assignee": {"id": 500}, "project": {"id": 326, "owner": {"id": 726}, "assignee": {"id": 822}}, "task": {"id": 376, "owner": {"id": 968}, "assignee": {"id": 1044}}, "job": {"id": 385, "assignee": {"id": 1154}}, "issue": {"id": 369, "owner": {"id": 1247}, "assignee": {"id": 1326}}, "organization": {"id": 1408}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 381, "owner": {"id": 670}, "assignee": {"id": 555}, "project": {"id": 335, "owner": {"id": 707}, "assignee": {"id": 865}}, "task": {"id": 336, "owner": {"id": 917}, "assignee": {"id": 1012}}, "job": {"id": 397, "assignee": {"id": 1120}}, "issue": {"id": 316, "owner": {"id": 1266}, "assignee": {"id": 1363}}, "organization": {"id": 129}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 363, "owner": {"id": 659}, "assignee": {"id": 562}, "project": {"id": 380, "owner": {"id": 727}, "assignee": {"id": 800}}, "task": {"id": 325, "owner": {"id": 975}, "assignee": {"id": 1049}}, "job": {"id": 352, "assignee": {"id": 1155}}, "issue": {"id": 343, "owner": {"id": 1253}, "assignee": {"id": 1380}}, "organization": {"id": 175}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 646}, "assignee": {"id": 541}, "project": {"id": 372, "owner": {"id": 712}, "assignee": {"id": 817}}, "task": {"id": 334, "owner": {"id": 901}, "assignee": {"id": 1023}}, "job": {"id": 341, "assignee": {"id": 1196}}, "issue": {"id": 395, "owner": {"id": 1291}, "assignee": {"id": 1318}}, "organization": {"id": 1452}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 379, "owner": {"id": 618}, "assignee": {"id": 575}, "project": {"id": 313, "owner": {"id": 723}, "assignee": {"id": 825}}, "task": {"id": 370, "owner": {"id": 971}, "assignee": {"id": 1062}}, "job": {"id": 398, "assignee": {"id": 1108}}, "issue": {"id": 393, "owner": {"id": 1240}, "assignee": {"id": 1341}}, "organization": {"id": 1451}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 392, "owner": {"id": 611}, "assignee": {"id": 597}, "project": {"id": 350, "owner": {"id": 795}, "assignee": {"id": 840}}, "task": {"id": 390, "owner": {"id": 938}, "assignee": {"id": 1071}}, "job": {"id": 361, "assignee": {"id": 1125}}, "issue": {"id": 306, "owner": {"id": 1297}, "assignee": {"id": 1382}}, "organization": {"id": 194}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 694}, "assignee": {"id": 539}, "project": {"id": 309, "owner": {"id": 732}, "assignee": {"id": 840}}, "task": {"id": 314, "owner": {"id": 913}, "assignee": {"id": 1021}}, "job": {"id": 336, "assignee": {"id": 1105}}, "issue": {"id": 313, "owner": {"id": 1289}, "assignee": {"id": 1348}}, "organization": {"id": 136}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 305, "owner": {"id": 640}, "assignee": {"id": 554}, "project": {"id": 391, "owner": {"id": 748}, "assignee": {"id": 818}}, "task": {"id": 396, "owner": {"id": 940}, "assignee": {"id": 1053}}, "job": {"id": 353, "assignee": {"id": 1171}}, "issue": {"id": 310, "owner": {"id": 1288}, "assignee": {"id": 1379}}, "organization": {"id": 1483}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 352, "owner": {"id": 609}, "assignee": {"id": 545}, "project": {"id": 391, "owner": {"id": 756}, "assignee": {"id": 868}}, "task": {"id": 304, "owner": {"id": 990}, "assignee": {"id": 1067}}, "job": {"id": 323, "assignee": {"id": 1139}}, "issue": {"id": 391, "owner": {"id": 1274}, "assignee": {"id": 1301}}, "organization": {"id": 1477}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 649}, "assignee": {"id": 519}, "project": {"id": 357, "owner": {"id": 741}, "assignee": {"id": 885}}, "task": {"id": 343, "owner": {"id": 954}, "assignee": {"id": 1009}}, "job": {"id": 326, "assignee": {"id": 1180}}, "issue": {"id": 368, "owner": {"id": 1299}, "assignee": {"id": 1366}}, "organization": {"id": 139}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 640}, "assignee": {"id": 581}, "project": {"id": 380, "owner": {"id": 799}, "assignee": {"id": 840}}, "task": {"id": 322, "owner": {"id": 914}, "assignee": {"id": 1077}}, "job": {"id": 344, "assignee": {"id": 1128}}, "issue": {"id": 308, "owner": {"id": 1213}, "assignee": {"id": 1394}}, "organization": {"id": 155}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "owner": {"id": 611}, "assignee": {"id": 579}, "project": {"id": 345, "owner": {"id": 791}, "assignee": {"id": 849}}, "task": {"id": 300, "owner": {"id": 916}, "assignee": {"id": 1001}}, "job": {"id": 327, "assignee": {"id": 1136}}, "issue": {"id": 367, "owner": {"id": 1265}, "assignee": {"id": 1355}}, "organization": {"id": 1430}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 690}, "assignee": {"id": 550}, "project": {"id": 357, "owner": {"id": 725}, "assignee": {"id": 821}}, "task": {"id": 311, "owner": {"id": 946}, "assignee": {"id": 1098}}, "job": {"id": 399, "assignee": {"id": 1136}}, "issue": {"id": 387, "owner": {"id": 1222}, "assignee": {"id": 1387}}, "organization": {"id": 1456}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 636}, "assignee": {"id": 524}, "project": {"id": 331, "owner": {"id": 759}, "assignee": {"id": 858}}, "task": {"id": 343, "owner": {"id": 902}, "assignee": {"id": 1047}}, "job": {"id": 358, "assignee": {"id": 1182}}, "issue": {"id": 356, "owner": {"id": 1255}, "assignee": {"id": 1369}}, "organization": {"id": 164}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "owner": {"id": 621}, "assignee": {"id": 543}, "project": {"id": 308, "owner": {"id": 703}, "assignee": {"id": 839}}, "task": {"id": 346, "owner": {"id": 938}, "assignee": {"id": 1045}}, "job": {"id": 350, "assignee": {"id": 1143}}, "issue": {"id": 374, "owner": {"id": 1253}, "assignee": {"id": 1367}}, "organization": {"id": 185}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "owner": {"id": 681}, "assignee": {"id": 567}, "project": {"id": 371, "owner": {"id": 733}, "assignee": {"id": 858}}, "task": {"id": 321, "owner": {"id": 939}, "assignee": {"id": 1085}}, "job": {"id": 387, "assignee": {"id": 1189}}, "issue": {"id": 390, "owner": {"id": 1270}, "assignee": {"id": 1351}}, "organization": {"id": 1449}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "owner": {"id": 602}, "assignee": {"id": 516}, "project": {"id": 334, "owner": {"id": 758}, "assignee": {"id": 805}}, "task": {"id": 341, "owner": {"id": 986}, "assignee": {"id": 1093}}, "job": {"id": 331, "assignee": {"id": 1188}}, "issue": {"id": 326, "owner": {"id": 1249}, "assignee": {"id": 1352}}, "organization": {"id": 1462}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 316, "owner": {"id": 621}, "assignee": {"id": 501}, "project": {"id": 379, "owner": {"id": 749}, "assignee": {"id": 899}}, "task": {"id": 348, "owner": {"id": 982}, "assignee": {"id": 1030}}, "job": {"id": 386, "assignee": {"id": 1189}}, "issue": {"id": 351, "owner": {"id": 1207}, "assignee": {"id": 1320}}, "organization": {"id": 193}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 384, "owner": {"id": 653}, "assignee": {"id": 583}, "project": {"id": 343, "owner": {"id": 758}, "assignee": {"id": 853}}, "task": {"id": 395, "owner": {"id": 930}, "assignee": {"id": 1020}}, "job": {"id": 355, "assignee": {"id": 1178}}, "issue": {"id": 354, "owner": {"id": 1261}, "assignee": {"id": 1329}}, "organization": {"id": 147}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 348, "owner": {"id": 605}, "assignee": {"id": 524}, "project": {"id": 360, "owner": {"id": 778}, "assignee": {"id": 833}}, "task": {"id": 330, "owner": {"id": 929}, "assignee": {"id": 1003}}, "job": {"id": 319, "assignee": {"id": 1151}}, "issue": {"id": 342, "owner": {"id": 1234}, "assignee": {"id": 1310}}, "organization": {"id": 1409}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 394, "owner": {"id": 618}, "assignee": {"id": 562}, "project": {"id": 363, "owner": {"id": 729}, "assignee": {"id": 849}}, "task": {"id": 301, "owner": {"id": 998}, "assignee": {"id": 1079}}, "job": {"id": 354, "assignee": {"id": 1121}}, "issue": {"id": 338, "owner": {"id": 1200}, "assignee": {"id": 1351}}, "organization": {"id": 1471}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 309, "owner": {"id": 680}, "assignee": {"id": 508}, "project": {"id": 384, "owner": {"id": 717}, "assignee": {"id": 819}}, "task": {"id": 364, "owner": {"id": 969}, "assignee": {"id": 1041}}, "job": {"id": 389, "assignee": {"id": 1166}}, "issue": {"id": 384, "owner": {"id": 1231}, "assignee": {"id": 1352}}, "organization": {"id": 168}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 366, "owner": {"id": 622}, "assignee": {"id": 538}, "project": {"id": 384, "owner": {"id": 728}, "assignee": {"id": 834}}, "task": {"id": 359, "owner": {"id": 923}, "assignee": {"id": 1035}}, "job": {"id": 363, "assignee": {"id": 1120}}, "issue": {"id": 378, "owner": {"id": 1291}, "assignee": {"id": 1376}}, "organization": {"id": 124}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 661}, "assignee": {"id": 593}, "project": {"id": 325, "owner": {"id": 716}, "assignee": {"id": 848}}, "task": {"id": 382, "owner": {"id": 989}, "assignee": {"id": 1041}}, "job": {"id": 342, "assignee": {"id": 1131}}, "issue": {"id": 381, "owner": {"id": 1291}, "assignee": {"id": 1346}}, "organization": {"id": 1408}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 332, "owner": {"id": 648}, "assignee": {"id": 560}, "project": {"id": 345, "owner": {"id": 780}, "assignee": {"id": 894}}, "task": {"id": 397, "owner": {"id": 910}, "assignee": {"id": 1097}}, "job": {"id": 395, "assignee": {"id": 1148}}, "issue": {"id": 368, "owner": {"id": 1214}, "assignee": {"id": 1315}}, "organization": {"id": 1492}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 328, "owner": {"id": 603}, "assignee": {"id": 500}, "project": {"id": 303, "owner": {"id": 708}, "assignee": {"id": 893}}, "task": {"id": 386, "owner": {"id": 908}, "assignee": {"id": 1056}}, "job": {"id": 380, "assignee": {"id": 1193}}, "issue": {"id": 332, "owner": {"id": 1238}, "assignee": {"id": 1303}}, "organization": {"id": 191}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 331, "owner": {"id": 609}, "assignee": {"id": 520}, "project": {"id": 314, "owner": {"id": 782}, "assignee": {"id": 855}}, "task": {"id": 379, "owner": {"id": 934}, "assignee": {"id": 1038}}, "job": {"id": 354, "assignee": {"id": 1129}}, "issue": {"id": 354, "owner": {"id": 1257}, "assignee": {"id": 1310}}, "organization": {"id": 187}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 367, "owner": {"id": 697}, "assignee": {"id": 553}, "project": {"id": 338, "owner": {"id": 751}, "assignee": {"id": 819}}, "task": {"id": 351, "owner": {"id": 966}, "assignee": {"id": 1084}}, "job": {"id": 385, "assignee": {"id": 1122}}, "issue": {"id": 303, "owner": {"id": 1290}, "assignee": {"id": 1398}}, "organization": {"id": 1493}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 695}, "assignee": {"id": 586}, "project": {"id": 395, "owner": {"id": 710}, "assignee": {"id": 898}}, "task": {"id": 356, "owner": {"id": 916}, "assignee": {"id": 1034}}, "job": {"id": 350, "assignee": {"id": 1119}}, "issue": {"id": 386, "owner": {"id": 1236}, "assignee": {"id": 1341}}, "organization": {"id": 1409}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "owner": {"id": 650}, "assignee": {"id": 591}, "project": {"id": 344, "owner": {"id": 792}, "assignee": {"id": 823}}, "task": {"id": 376, "owner": {"id": 929}, "assignee": {"id": 1044}}, "job": {"id": 382, "assignee": {"id": 1146}}, "issue": {"id": 326, "owner": {"id": 1296}, "assignee": {"id": 1343}}, "organization": {"id": 114}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "owner": {"id": 622}, "assignee": {"id": 597}, "project": {"id": 347, "owner": {"id": 700}, "assignee": {"id": 879}}, "task": {"id": 353, "owner": {"id": 961}, "assignee": {"id": 1079}}, "job": {"id": 307, "assignee": {"id": 1142}}, "issue": {"id": 398, "owner": {"id": 1200}, "assignee": {"id": 1315}}, "organization": {"id": 147}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 606}, "assignee": {"id": 531}, "project": {"id": 351, "owner": {"id": 799}, "assignee": {"id": 851}}, "task": {"id": 393, "owner": {"id": 919}, "assignee": {"id": 1053}}, "job": {"id": 386, "assignee": {"id": 1155}}, "issue": {"id": 314, "owner": {"id": 1273}, "assignee": {"id": 1301}}, "organization": {"id": 1479}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 677}, "assignee": {"id": 570}, "project": {"id": 353, "owner": {"id": 715}, "assignee": {"id": 898}}, "task": {"id": 328, "owner": {"id": 988}, "assignee": {"id": 1049}}, "job": {"id": 328, "assignee": {"id": 1160}}, "issue": {"id": 347, "owner": {"id": 1248}, "assignee": {"id": 1368}}, "organization": {"id": 1436}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 340, "owner": {"id": 688}, "assignee": {"id": 540}, "project": {"id": 362, "owner": {"id": 712}, "assignee": {"id": 892}}, "task": {"id": 306, "owner": {"id": 968}, "assignee": {"id": 1039}}, "job": {"id": 364, "assignee": {"id": 1146}}, "issue": {"id": 394, "owner": {"id": 1231}, "assignee": {"id": 1323}}, "organization": {"id": 160}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "owner": {"id": 600}, "assignee": {"id": 522}, "project": {"id": 374, "owner": {"id": 793}, "assignee": {"id": 847}}, "task": {"id": 321, "owner": {"id": 940}, "assignee": {"id": 1017}}, "job": {"id": 386, "assignee": {"id": 1118}}, "issue": {"id": 363, "owner": {"id": 1273}, "assignee": {"id": 1356}}, "organization": {"id": 185}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "owner": {"id": 614}, "assignee": {"id": 518}, "project": {"id": 319, "owner": {"id": 727}, "assignee": {"id": 842}}, "task": {"id": 354, "owner": {"id": 993}, "assignee": {"id": 1056}}, "job": {"id": 379, "assignee": {"id": 1181}}, "issue": {"id": 315, "owner": {"id": 1204}, "assignee": {"id": 1385}}, "organization": {"id": 1467}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 652}, "assignee": {"id": 529}, "project": {"id": 366, "owner": {"id": 794}, "assignee": {"id": 855}}, "task": {"id": 323, "owner": {"id": 927}, "assignee": {"id": 1054}}, "job": {"id": 367, "assignee": {"id": 1172}}, "issue": {"id": 312, "owner": {"id": 1207}, "assignee": {"id": 1383}}, "organization": {"id": 1410}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 318, "owner": {"id": 629}, "assignee": {"id": 590}, "project": {"id": 345, "owner": {"id": 783}, "assignee": {"id": 865}}, "task": {"id": 336, "owner": {"id": 929}, "assignee": {"id": 1096}}, "job": {"id": 381, "assignee": {"id": 1149}}, "issue": {"id": 357, "owner": {"id": 1215}, "assignee": {"id": 1388}}, "organization": {"id": 136}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 372, "owner": {"id": 603}, "assignee": {"id": 599}, "project": {"id": 388, "owner": {"id": 753}, "assignee": {"id": 813}}, "task": {"id": 357, "owner": {"id": 904}, "assignee": {"id": 1049}}, "job": {"id": 374, "assignee": {"id": 1127}}, "issue": {"id": 360, "owner": {"id": 1286}, "assignee": {"id": 1345}}, "organization": {"id": 157}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 301, "owner": {"id": 642}, "assignee": {"id": 556}, "project": {"id": 374, "owner": {"id": 714}, "assignee": {"id": 820}}, "task": {"id": 326, "owner": {"id": 944}, "assignee": {"id": 1025}}, "job": {"id": 323, "assignee": {"id": 1196}}, "issue": {"id": 385, "owner": {"id": 1208}, "assignee": {"id": 1322}}, "organization": {"id": 1492}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 300, "owner": {"id": 680}, "assignee": {"id": 563}, "project": {"id": 354, "owner": {"id": 781}, "assignee": {"id": 893}}, "task": {"id": 392, "owner": {"id": 966}, "assignee": {"id": 1032}}, "job": {"id": 335, "assignee": {"id": 1187}}, "issue": {"id": 384, "owner": {"id": 1246}, "assignee": {"id": 1341}}, "organization": {"id": 1451}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 342, "owner": {"id": 600}, "assignee": {"id": 568}, "project": {"id": 329, "owner": {"id": 788}, "assignee": {"id": 832}}, "task": {"id": 313, "owner": {"id": 992}, "assignee": {"id": 1012}}, "job": {"id": 345, "assignee": {"id": 1119}}, "issue": {"id": 382, "owner": {"id": 1240}, "assignee": {"id": 1306}}, "organization": {"id": 167}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 363, "owner": {"id": 690}, "assignee": {"id": 534}, "project": {"id": 393, "owner": {"id": 796}, "assignee": {"id": 806}}, "task": {"id": 326, "owner": {"id": 998}, "assignee": {"id": 1080}}, "job": {"id": 313, "assignee": {"id": 1143}}, "issue": {"id": 376, "owner": {"id": 1205}, "assignee": {"id": 1319}}, "organization": {"id": 195}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 61, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 328, "owner": {"id": 609}, "assignee": {"id": 557}, "project": {"id": 361, "owner": {"id": 760}, "assignee": {"id": 834}}, "task": {"id": 352, "owner": {"id": 973}, "assignee": {"id": 1019}}, "job": {"id": 343, "assignee": {"id": 1141}}, "issue": {"id": 384, "owner": {"id": 1247}, "assignee": {"id": 1389}}, "organization": {"id": 1450}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 321, "owner": {"id": 664}, "assignee": {"id": 597}, "project": {"id": 306, "owner": {"id": 776}, "assignee": {"id": 812}}, "task": {"id": 391, "owner": {"id": 947}, "assignee": {"id": 1098}}, "job": {"id": 348, "assignee": {"id": 1186}}, "issue": {"id": 396, "owner": {"id": 1211}, "assignee": {"id": 1320}}, "organization": {"id": 1423}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": null}, "resource": {"id": 381, "owner": {"id": 613}, "assignee": {"id": 516}, "project": {"id": 371, "owner": {"id": 91}, "assignee": {"id": 809}}, "task": {"id": 317, "owner": {"id": 933}, "assignee": {"id": 1081}}, "job": {"id": 324, "assignee": {"id": 1117}}, "issue": {"id": 369, "owner": {"id": 1209}, "assignee": {"id": 1313}}, "organization": {"id": 1401}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": null}, "resource": {"id": 378, "owner": {"id": 643}, "assignee": {"id": 589}, "project": {"id": 356, "owner": {"id": 54}, "assignee": {"id": 800}}, "task": {"id": 361, "owner": {"id": 931}, "assignee": {"id": 1020}}, "job": {"id": 359, "assignee": {"id": 1189}}, "issue": {"id": 390, "owner": {"id": 1283}, "assignee": {"id": 1329}}, "organization": {"id": 1472}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": null}, "resource": {"id": 378, "owner": {"id": 636}, "assignee": {"id": 516}, "project": {"id": 380, "owner": {"id": 40}, "assignee": {"id": 848}}, "task": {"id": 367, "owner": {"id": 912}, "assignee": {"id": 1024}}, "job": {"id": 384, "assignee": {"id": 1100}}, "issue": {"id": 365, "owner": {"id": 1293}, "assignee": {"id": 1396}}, "organization": {"id": 1477}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": null}, "resource": {"id": 324, "owner": {"id": 637}, "assignee": {"id": 556}, "project": {"id": 332, "owner": {"id": 51}, "assignee": {"id": 861}}, "task": {"id": 303, "owner": {"id": 926}, "assignee": {"id": 1051}}, "job": {"id": 320, "assignee": {"id": 1167}}, "issue": {"id": 395, "owner": {"id": 1272}, "assignee": {"id": 1352}}, "organization": {"id": 1439}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 61, "privilege": "none"}, "organization": null}, "resource": {"id": 347, "owner": {"id": 660}, "assignee": {"id": 531}, "project": {"id": 381, "owner": {"id": 61}, "assignee": {"id": 875}}, "task": {"id": 394, "owner": {"id": 997}, "assignee": {"id": 1025}}, "job": {"id": 353, "assignee": {"id": 1137}}, "issue": {"id": 358, "owner": {"id": 1283}, "assignee": {"id": 1366}}, "organization": {"id": 1488}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": null}, "resource": {"id": 363, "owner": {"id": 644}, "assignee": {"id": 559}, "project": {"id": 300, "owner": {"id": 771}, "assignee": {"id": 99}}, "task": {"id": 389, "owner": {"id": 982}, "assignee": {"id": 1071}}, "job": {"id": 307, "assignee": {"id": 1160}}, "issue": {"id": 344, "owner": {"id": 1209}, "assignee": {"id": 1304}}, "organization": {"id": 1469}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": null}, "resource": {"id": 308, "owner": {"id": 688}, "assignee": {"id": 559}, "project": {"id": 313, "owner": {"id": 737}, "assignee": {"id": 36}}, "task": {"id": 316, "owner": {"id": 930}, "assignee": {"id": 1009}}, "job": {"id": 385, "assignee": {"id": 1129}}, "issue": {"id": 328, "owner": {"id": 1216}, "assignee": {"id": 1397}}, "organization": {"id": 1480}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": null}, "resource": {"id": 312, "owner": {"id": 630}, "assignee": {"id": 536}, "project": {"id": 318, "owner": {"id": 753}, "assignee": {"id": 53}}, "task": {"id": 346, "owner": {"id": 988}, "assignee": {"id": 1078}}, "job": {"id": 328, "assignee": {"id": 1195}}, "issue": {"id": 333, "owner": {"id": 1288}, "assignee": {"id": 1307}}, "organization": {"id": 1455}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": null}, "resource": {"id": 357, "owner": {"id": 668}, "assignee": {"id": 577}, "project": {"id": 317, "owner": {"id": 713}, "assignee": {"id": 5}}, "task": {"id": 342, "owner": {"id": 954}, "assignee": {"id": 1086}}, "job": {"id": 344, "assignee": {"id": 1188}}, "issue": {"id": 351, "owner": {"id": 1299}, "assignee": {"id": 1326}}, "organization": {"id": 1477}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": null}, "resource": {"id": 381, "owner": {"id": 602}, "assignee": {"id": 521}, "project": {"id": 346, "owner": {"id": 769}, "assignee": {"id": 16}}, "task": {"id": 377, "owner": {"id": 943}, "assignee": {"id": 1007}}, "job": {"id": 334, "assignee": {"id": 1170}}, "issue": {"id": 338, "owner": {"id": 1224}, "assignee": {"id": 1371}}, "organization": {"id": 1478}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": null}, "resource": {"id": 384, "owner": {"id": 678}, "assignee": {"id": 504}, "project": {"id": 365, "owner": {"id": 747}, "assignee": {"id": 891}}, "task": {"id": 315, "owner": {"id": 59}, "assignee": {"id": 1033}}, "job": {"id": 318, "assignee": {"id": 1114}}, "issue": {"id": 370, "owner": {"id": 1266}, "assignee": {"id": 1300}}, "organization": {"id": 1448}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": null}, "resource": {"id": 325, "owner": {"id": 646}, "assignee": {"id": 556}, "project": {"id": 321, "owner": {"id": 792}, "assignee": {"id": 870}}, "task": {"id": 321, "owner": {"id": 13}, "assignee": {"id": 1068}}, "job": {"id": 308, "assignee": {"id": 1156}}, "issue": {"id": 389, "owner": {"id": 1257}, "assignee": {"id": 1367}}, "organization": {"id": 1445}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": null}, "resource": {"id": 334, "owner": {"id": 695}, "assignee": {"id": 594}, "project": {"id": 300, "owner": {"id": 766}, "assignee": {"id": 885}}, "task": {"id": 359, "owner": {"id": 56}, "assignee": {"id": 1040}}, "job": {"id": 327, "assignee": {"id": 1173}}, "issue": {"id": 327, "owner": {"id": 1298}, "assignee": {"id": 1395}}, "organization": {"id": 1405}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": null}, "resource": {"id": 387, "owner": {"id": 633}, "assignee": {"id": 522}, "project": {"id": 305, "owner": {"id": 726}, "assignee": {"id": 802}}, "task": {"id": 370, "owner": {"id": 47}, "assignee": {"id": 1081}}, "job": {"id": 333, "assignee": {"id": 1151}}, "issue": {"id": 304, "owner": {"id": 1230}, "assignee": {"id": 1370}}, "organization": {"id": 1459}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": null}, "resource": {"id": 363, "owner": {"id": 684}, "assignee": {"id": 573}, "project": {"id": 392, "owner": {"id": 753}, "assignee": {"id": 858}}, "task": {"id": 355, "owner": {"id": 48}, "assignee": {"id": 1074}}, "job": {"id": 382, "assignee": {"id": 1113}}, "issue": {"id": 325, "owner": {"id": 1212}, "assignee": {"id": 1314}}, "organization": {"id": 1424}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": null}, "resource": {"id": 390, "owner": {"id": 659}, "assignee": {"id": 502}, "project": {"id": 363, "owner": {"id": 786}, "assignee": {"id": 891}}, "task": {"id": 383, "owner": {"id": 70}, "assignee": {"id": 1016}}, "job": {"id": 323, "assignee": {"id": 1167}}, "issue": {"id": 322, "owner": {"id": 1224}, "assignee": {"id": 1399}}, "organization": {"id": 1430}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": null}, "resource": {"id": 379, "owner": {"id": 625}, "assignee": {"id": 517}, "project": {"id": 380, "owner": {"id": 789}, "assignee": {"id": 885}}, "task": {"id": 387, "owner": {"id": 92}, "assignee": {"id": 1065}}, "job": {"id": 399, "assignee": {"id": 1169}}, "issue": {"id": 351, "owner": {"id": 1295}, "assignee": {"id": 1372}}, "organization": {"id": 1439}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": null}, "resource": {"id": 389, "owner": {"id": 671}, "assignee": {"id": 513}, "project": {"id": 354, "owner": {"id": 782}, "assignee": {"id": 855}}, "task": {"id": 314, "owner": {"id": 46}, "assignee": {"id": 1032}}, "job": {"id": 345, "assignee": {"id": 1134}}, "issue": {"id": 387, "owner": {"id": 1207}, "assignee": {"id": 1302}}, "organization": {"id": 1470}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": null}, "resource": {"id": 310, "owner": {"id": 686}, "assignee": {"id": 511}, "project": {"id": 321, "owner": {"id": 768}, "assignee": {"id": 850}}, "task": {"id": 342, "owner": {"id": 49}, "assignee": {"id": 1076}}, "job": {"id": 327, "assignee": {"id": 1199}}, "issue": {"id": 353, "owner": {"id": 1237}, "assignee": {"id": 1382}}, "organization": {"id": 1471}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": null}, "resource": {"id": 381, "owner": {"id": 672}, "assignee": {"id": 577}, "project": {"id": 397, "owner": {"id": 701}, "assignee": {"id": 870}}, "task": {"id": 322, "owner": {"id": 15}, "assignee": {"id": 1002}}, "job": {"id": 336, "assignee": {"id": 1171}}, "issue": {"id": 368, "owner": {"id": 1226}, "assignee": {"id": 1337}}, "organization": {"id": 1429}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": null}, "resource": {"id": 311, "owner": {"id": 697}, "assignee": {"id": 599}, "project": {"id": 309, "owner": {"id": 748}, "assignee": {"id": 825}}, "task": {"id": 391, "owner": {"id": 944}, "assignee": {"id": 18}}, "job": {"id": 370, "assignee": {"id": 1125}}, "issue": {"id": 351, "owner": {"id": 1216}, "assignee": {"id": 1394}}, "organization": {"id": 1431}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": null}, "resource": {"id": 357, "owner": {"id": 619}, "assignee": {"id": 599}, "project": {"id": 390, "owner": {"id": 736}, "assignee": {"id": 817}}, "task": {"id": 305, "owner": {"id": 915}, "assignee": {"id": 23}}, "job": {"id": 331, "assignee": {"id": 1199}}, "issue": {"id": 348, "owner": {"id": 1218}, "assignee": {"id": 1371}}, "organization": {"id": 1476}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": null}, "resource": {"id": 322, "owner": {"id": 691}, "assignee": {"id": 599}, "project": {"id": 377, "owner": {"id": 719}, "assignee": {"id": 876}}, "task": {"id": 368, "owner": {"id": 999}, "assignee": {"id": 76}}, "job": {"id": 374, "assignee": {"id": 1103}}, "issue": {"id": 395, "owner": {"id": 1296}, "assignee": {"id": 1359}}, "organization": {"id": 1437}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": null}, "resource": {"id": 355, "owner": {"id": 610}, "assignee": {"id": 549}, "project": {"id": 301, "owner": {"id": 719}, "assignee": {"id": 866}}, "task": {"id": 379, "owner": {"id": 926}, "assignee": {"id": 95}}, "job": {"id": 372, "assignee": {"id": 1178}}, "issue": {"id": 331, "owner": {"id": 1238}, "assignee": {"id": 1387}}, "organization": {"id": 1409}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": null}, "resource": {"id": 328, "owner": {"id": 639}, "assignee": {"id": 581}, "project": {"id": 350, "owner": {"id": 720}, "assignee": {"id": 892}}, "task": {"id": 348, "owner": {"id": 999}, "assignee": {"id": 58}}, "job": {"id": 337, "assignee": {"id": 1107}}, "issue": {"id": 303, "owner": {"id": 1289}, "assignee": {"id": 1346}}, "organization": {"id": 1401}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": null}, "resource": {"id": 340, "owner": {"id": 610}, "assignee": {"id": 592}, "project": {"id": 367, "owner": {"id": 708}, "assignee": {"id": 857}}, "task": {"id": 346, "owner": {"id": 991}, "assignee": {"id": 47}}, "job": {"id": 328, "assignee": {"id": 1106}}, "issue": {"id": 336, "owner": {"id": 1229}, "assignee": {"id": 1359}}, "organization": {"id": 1427}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": null}, "resource": {"id": 342, "owner": {"id": 664}, "assignee": {"id": 524}, "project": {"id": 310, "owner": {"id": 778}, "assignee": {"id": 807}}, "task": {"id": 362, "owner": {"id": 957}, "assignee": {"id": 63}}, "job": {"id": 378, "assignee": {"id": 1117}}, "issue": {"id": 325, "owner": {"id": 1299}, "assignee": {"id": 1388}}, "organization": {"id": 1436}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": null}, "resource": {"id": 387, "owner": {"id": 690}, "assignee": {"id": 557}, "project": {"id": 367, "owner": {"id": 724}, "assignee": {"id": 885}}, "task": {"id": 306, "owner": {"id": 911}, "assignee": {"id": 43}}, "job": {"id": 364, "assignee": {"id": 1185}}, "issue": {"id": 398, "owner": {"id": 1244}, "assignee": {"id": 1350}}, "organization": {"id": 1480}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": null}, "resource": {"id": 355, "owner": {"id": 651}, "assignee": {"id": 547}, "project": {"id": 374, "owner": {"id": 780}, "assignee": {"id": 862}}, "task": {"id": 364, "owner": {"id": 992}, "assignee": {"id": 25}}, "job": {"id": 363, "assignee": {"id": 1132}}, "issue": {"id": 303, "owner": {"id": 1274}, "assignee": {"id": 1394}}, "organization": {"id": 1423}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": null}, "resource": {"id": 330, "owner": {"id": 671}, "assignee": {"id": 514}, "project": {"id": 307, "owner": {"id": 779}, "assignee": {"id": 877}}, "task": {"id": 330, "owner": {"id": 956}, "assignee": {"id": 22}}, "job": {"id": 369, "assignee": {"id": 1180}}, "issue": {"id": 389, "owner": {"id": 1268}, "assignee": {"id": 1309}}, "organization": {"id": 1470}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": null}, "resource": {"id": 301, "owner": {"id": 680}, "assignee": {"id": 568}, "project": {"id": 393, "owner": {"id": 717}, "assignee": {"id": 845}}, "task": {"id": 370, "owner": {"id": 997}, "assignee": {"id": 1068}}, "job": {"id": 323, "assignee": {"id": 44}}, "issue": {"id": 375, "owner": {"id": 1223}, "assignee": {"id": 1362}}, "organization": {"id": 1483}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": null}, "resource": {"id": 360, "owner": {"id": 601}, "assignee": {"id": 598}, "project": {"id": 312, "owner": {"id": 723}, "assignee": {"id": 807}}, "task": {"id": 346, "owner": {"id": 923}, "assignee": {"id": 1001}}, "job": {"id": 334, "assignee": {"id": 51}}, "issue": {"id": 366, "owner": {"id": 1213}, "assignee": {"id": 1384}}, "organization": {"id": 1448}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": null}, "resource": {"id": 362, "owner": {"id": 680}, "assignee": {"id": 583}, "project": {"id": 390, "owner": {"id": 798}, "assignee": {"id": 809}}, "task": {"id": 364, "owner": {"id": 990}, "assignee": {"id": 1014}}, "job": {"id": 348, "assignee": {"id": 18}}, "issue": {"id": 304, "owner": {"id": 1267}, "assignee": {"id": 1332}}, "organization": {"id": 1481}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": null}, "resource": {"id": 331, "owner": {"id": 637}, "assignee": {"id": 580}, "project": {"id": 347, "owner": {"id": 737}, "assignee": {"id": 857}}, "task": {"id": 313, "owner": {"id": 933}, "assignee": {"id": 1018}}, "job": {"id": 354, "assignee": {"id": 42}}, "issue": {"id": 324, "owner": {"id": 1225}, "assignee": {"id": 1387}}, "organization": {"id": 1427}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": null}, "resource": {"id": 344, "owner": {"id": 672}, "assignee": {"id": 593}, "project": {"id": 356, "owner": {"id": 797}, "assignee": {"id": 856}}, "task": {"id": 383, "owner": {"id": 934}, "assignee": {"id": 1044}}, "job": {"id": 391, "assignee": {"id": 28}}, "issue": {"id": 366, "owner": {"id": 1243}, "assignee": {"id": 1301}}, "organization": {"id": 1456}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": null}, "resource": {"id": 349, "owner": {"id": 605}, "assignee": {"id": 528}, "project": {"id": 358, "owner": {"id": 765}, "assignee": {"id": 837}}, "task": {"id": 348, "owner": {"id": 994}, "assignee": {"id": 1066}}, "job": {"id": 317, "assignee": {"id": 13}}, "issue": {"id": 362, "owner": {"id": 1223}, "assignee": {"id": 1340}}, "organization": {"id": 1459}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": null}, "resource": {"id": 341, "owner": {"id": 655}, "assignee": {"id": 560}, "project": {"id": 383, "owner": {"id": 756}, "assignee": {"id": 872}}, "task": {"id": 318, "owner": {"id": 947}, "assignee": {"id": 1052}}, "job": {"id": 343, "assignee": {"id": 89}}, "issue": {"id": 399, "owner": {"id": 1249}, "assignee": {"id": 1302}}, "organization": {"id": 1477}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": null}, "resource": {"id": 343, "owner": {"id": 626}, "assignee": {"id": 519}, "project": {"id": 361, "owner": {"id": 738}, "assignee": {"id": 896}}, "task": {"id": 361, "owner": {"id": 965}, "assignee": {"id": 1005}}, "job": {"id": 310, "assignee": {"id": 40}}, "issue": {"id": 370, "owner": {"id": 1211}, "assignee": {"id": 1312}}, "organization": {"id": 1470}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": null}, "resource": {"id": 305, "owner": {"id": 608}, "assignee": {"id": 527}, "project": {"id": 352, "owner": {"id": 754}, "assignee": {"id": 872}}, "task": {"id": 321, "owner": {"id": 986}, "assignee": {"id": 1018}}, "job": {"id": 356, "assignee": {"id": 29}}, "issue": {"id": 362, "owner": {"id": 1206}, "assignee": {"id": 1320}}, "organization": {"id": 1405}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": null}, "resource": {"id": 371, "owner": {"id": 609}, "assignee": {"id": 543}, "project": {"id": 337, "owner": {"id": 761}, "assignee": {"id": 827}}, "task": {"id": 349, "owner": {"id": 920}, "assignee": {"id": 1030}}, "job": {"id": 302, "assignee": {"id": 98}}, "issue": {"id": 394, "owner": {"id": 1253}, "assignee": {"id": 1349}}, "organization": {"id": 1440}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_ISSUE_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": null}, "resource": {"id": 376, "owner": {"id": 677}, "assignee": {"id": 597}, "project": {"id": 383, "owner": {"id": 737}, "assignee": {"id": 808}}, "task": {"id": 355, "owner": {"id": 954}, "assignee": {"id": 1000}}, "job": {"id": 325, "assignee": {"id": 1179}}, "issue": {"id": 359, "owner": {"id": 50}, "assignee": {"id": 1344}}, "organization": {"id": 1478}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_ISSUE_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": null}, "resource": {"id": 383, "owner": {"id": 642}, "assignee": {"id": 597}, "project": {"id": 389, "owner": {"id": 780}, "assignee": {"id": 846}}, "task": {"id": 306, "owner": {"id": 963}, "assignee": {"id": 1059}}, "job": {"id": 337, "assignee": {"id": 1109}}, "issue": {"id": 320, "owner": {"id": 16}, "assignee": {"id": 1348}}, "organization": {"id": 1457}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": null}, "resource": {"id": 336, "owner": {"id": 660}, "assignee": {"id": 522}, "project": {"id": 352, "owner": {"id": 733}, "assignee": {"id": 848}}, "task": {"id": 327, "owner": {"id": 983}, "assignee": {"id": 1089}}, "job": {"id": 344, "assignee": {"id": 1121}}, "issue": {"id": 328, "owner": {"id": 95}, "assignee": {"id": 1325}}, "organization": {"id": 1417}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": null}, "resource": {"id": 383, "owner": {"id": 645}, "assignee": {"id": 591}, "project": {"id": 308, "owner": {"id": 737}, "assignee": {"id": 863}}, "task": {"id": 322, "owner": {"id": 949}, "assignee": {"id": 1002}}, "job": {"id": 388, "assignee": {"id": 1120}}, "issue": {"id": 327, "owner": {"id": 11}, "assignee": {"id": 1352}}, "organization": {"id": 1481}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_ISSUE_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": null}, "resource": {"id": 318, "owner": {"id": 672}, "assignee": {"id": 589}, "project": {"id": 367, "owner": {"id": 797}, "assignee": {"id": 861}}, "task": {"id": 332, "owner": {"id": 988}, "assignee": {"id": 1040}}, "job": {"id": 351, "assignee": {"id": 1108}}, "issue": {"id": 346, "owner": {"id": 99}, "assignee": {"id": 1373}}, "organization": {"id": 1499}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_ISSUE_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": null}, "resource": {"id": 387, "owner": {"id": 667}, "assignee": {"id": 590}, "project": {"id": 326, "owner": {"id": 774}, "assignee": {"id": 869}}, "task": {"id": 367, "owner": {"id": 995}, "assignee": {"id": 1067}}, "job": {"id": 377, "assignee": {"id": 1102}}, "issue": {"id": 365, "owner": {"id": 24}, "assignee": {"id": 1361}}, "organization": {"id": 1467}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_ISSUE_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": null}, "resource": {"id": 351, "owner": {"id": 627}, "assignee": {"id": 596}, "project": {"id": 366, "owner": {"id": 773}, "assignee": {"id": 875}}, "task": {"id": 395, "owner": {"id": 967}, "assignee": {"id": 1064}}, "job": {"id": 370, "assignee": {"id": 1176}}, "issue": {"id": 327, "owner": {"id": 68}, "assignee": {"id": 1375}}, "organization": {"id": 1479}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_ISSUE_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": null}, "resource": {"id": 367, "owner": {"id": 639}, "assignee": {"id": 545}, "project": {"id": 395, "owner": {"id": 787}, "assignee": {"id": 817}}, "task": {"id": 323, "owner": {"id": 983}, "assignee": {"id": 1066}}, "job": {"id": 393, "assignee": {"id": 1187}}, "issue": {"id": 378, "owner": {"id": 74}, "assignee": {"id": 1356}}, "organization": {"id": 1401}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_ISSUE_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": null}, "resource": {"id": 300, "owner": {"id": 666}, "assignee": {"id": 591}, "project": {"id": 347, "owner": {"id": 766}, "assignee": {"id": 882}}, "task": {"id": 388, "owner": {"id": 939}, "assignee": {"id": 1010}}, "job": {"id": 369, "assignee": {"id": 1116}}, "issue": {"id": 386, "owner": {"id": 72}, "assignee": {"id": 1343}}, "organization": {"id": 1427}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_ISSUE_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": null}, "resource": {"id": 390, "owner": {"id": 681}, "assignee": {"id": 549}, "project": {"id": 391, "owner": {"id": 759}, "assignee": {"id": 865}}, "task": {"id": 347, "owner": {"id": 982}, "assignee": {"id": 1099}}, "job": {"id": 373, "assignee": {"id": 1145}}, "issue": {"id": 340, "owner": {"id": 85}, "assignee": {"id": 1340}}, "organization": {"id": 1471}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": null}, "resource": {"id": 326, "owner": {"id": 607}, "assignee": {"id": 543}, "project": {"id": 387, "owner": {"id": 719}, "assignee": {"id": 810}}, "task": {"id": 352, "owner": {"id": 967}, "assignee": {"id": 1048}}, "job": {"id": 354, "assignee": {"id": 1165}}, "issue": {"id": 322, "owner": {"id": 1257}, "assignee": {"id": 50}}, "organization": {"id": 1400}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": null}, "resource": {"id": 325, "owner": {"id": 668}, "assignee": {"id": 592}, "project": {"id": 306, "owner": {"id": 720}, "assignee": {"id": 829}}, "task": {"id": 348, "owner": {"id": 923}, "assignee": {"id": 1021}}, "job": {"id": 318, "assignee": {"id": 1120}}, "issue": {"id": 333, "owner": {"id": 1268}, "assignee": {"id": 93}}, "organization": {"id": 1483}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": null}, "resource": {"id": 337, "owner": {"id": 642}, "assignee": {"id": 589}, "project": {"id": 314, "owner": {"id": 779}, "assignee": {"id": 816}}, "task": {"id": 385, "owner": {"id": 903}, "assignee": {"id": 1088}}, "job": {"id": 379, "assignee": {"id": 1156}}, "issue": {"id": 381, "owner": {"id": 1237}, "assignee": {"id": 77}}, "organization": {"id": 1439}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": null}, "resource": {"id": 300, "owner": {"id": 619}, "assignee": {"id": 596}, "project": {"id": 391, "owner": {"id": 790}, "assignee": {"id": 852}}, "task": {"id": 347, "owner": {"id": 980}, "assignee": {"id": 1034}}, "job": {"id": 351, "assignee": {"id": 1104}}, "issue": {"id": 392, "owner": {"id": 1200}, "assignee": {"id": 18}}, "organization": {"id": 1429}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": null}, "resource": {"id": 338, "owner": {"id": 642}, "assignee": {"id": 549}, "project": {"id": 397, "owner": {"id": 726}, "assignee": {"id": 864}}, "task": {"id": 342, "owner": {"id": 973}, "assignee": {"id": 1064}}, "job": {"id": 380, "assignee": {"id": 1104}}, "issue": {"id": 308, "owner": {"id": 1207}, "assignee": {"id": 93}}, "organization": {"id": 1487}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": null}, "resource": {"id": 332, "owner": {"id": 642}, "assignee": {"id": 518}, "project": {"id": 330, "owner": {"id": 710}, "assignee": {"id": 884}}, "task": {"id": 320, "owner": {"id": 971}, "assignee": {"id": 1017}}, "job": {"id": 379, "assignee": {"id": 1116}}, "issue": {"id": 318, "owner": {"id": 1230}, "assignee": {"id": 75}}, "organization": {"id": 1456}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": null}, "resource": {"id": 394, "owner": {"id": 691}, "assignee": {"id": 527}, "project": {"id": 309, "owner": {"id": 748}, "assignee": {"id": 819}}, "task": {"id": 349, "owner": {"id": 966}, "assignee": {"id": 1023}}, "job": {"id": 358, "assignee": {"id": 1175}}, "issue": {"id": 345, "owner": {"id": 1298}, "assignee": {"id": 78}}, "organization": {"id": 1466}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": null}, "resource": {"id": 357, "owner": {"id": 699}, "assignee": {"id": 547}, "project": {"id": 346, "owner": {"id": 723}, "assignee": {"id": 807}}, "task": {"id": 393, "owner": {"id": 921}, "assignee": {"id": 1061}}, "job": {"id": 370, "assignee": {"id": 1199}}, "issue": {"id": 363, "owner": {"id": 1298}, "assignee": {"id": 45}}, "organization": {"id": 1440}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": null}, "resource": {"id": 392, "owner": {"id": 693}, "assignee": {"id": 545}, "project": {"id": 375, "owner": {"id": 742}, "assignee": {"id": 832}}, "task": {"id": 384, "owner": {"id": 957}, "assignee": {"id": 1002}}, "job": {"id": 345, "assignee": {"id": 1145}}, "issue": {"id": 307, "owner": {"id": 1224}, "assignee": {"id": 80}}, "organization": {"id": 1442}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": null}, "resource": {"id": 358, "owner": {"id": 614}, "assignee": {"id": 532}, "project": {"id": 357, "owner": {"id": 775}, "assignee": {"id": 858}}, "task": {"id": 397, "owner": {"id": 907}, "assignee": {"id": 1054}}, "job": {"id": 340, "assignee": {"id": 1108}}, "issue": {"id": 346, "owner": {"id": 1241}, "assignee": {"id": 81}}, "organization": {"id": 1474}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": null}, "resource": {"id": 320, "owner": {"id": 43}, "assignee": {"id": 536}, "project": {"id": 321, "owner": {"id": 723}, "assignee": {"id": 869}}, "task": {"id": 309, "owner": {"id": 964}, "assignee": {"id": 1050}}, "job": {"id": 335, "assignee": {"id": 1198}}, "issue": {"id": 391, "owner": {"id": 1267}, "assignee": {"id": 1388}}, "organization": {"id": 1451}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "admin"}, "organization": null}, "resource": {"id": 337, "owner": {"id": 36}, "assignee": {"id": 501}, "project": {"id": 315, "owner": {"id": 705}, "assignee": {"id": 839}}, "task": {"id": 325, "owner": {"id": 980}, "assignee": {"id": 1075}}, "job": {"id": 368, "assignee": {"id": 1159}}, "issue": {"id": 375, "owner": {"id": 1212}, "assignee": {"id": 1359}}, "organization": {"id": 1484}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": null}, "resource": {"id": 394, "owner": {"id": 7}, "assignee": {"id": 558}, "project": {"id": 368, "owner": {"id": 738}, "assignee": {"id": 825}}, "task": {"id": 338, "owner": {"id": 936}, "assignee": {"id": 1022}}, "job": {"id": 343, "assignee": {"id": 1138}}, "issue": {"id": 389, "owner": {"id": 1220}, "assignee": {"id": 1364}}, "organization": {"id": 1464}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": null}, "resource": {"id": 320, "owner": {"id": 78}, "assignee": {"id": 581}, "project": {"id": 375, "owner": {"id": 761}, "assignee": {"id": 847}}, "task": {"id": 391, "owner": {"id": 953}, "assignee": {"id": 1034}}, "job": {"id": 312, "assignee": {"id": 1131}}, "issue": {"id": 356, "owner": {"id": 1210}, "assignee": {"id": 1366}}, "organization": {"id": 1459}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": null}, "resource": {"id": 382, "owner": {"id": 95}, "assignee": {"id": 567}, "project": {"id": 320, "owner": {"id": 716}, "assignee": {"id": 851}}, "task": {"id": 337, "owner": {"id": 930}, "assignee": {"id": 1071}}, "job": {"id": 388, "assignee": {"id": 1111}}, "issue": {"id": 321, "owner": {"id": 1298}, "assignee": {"id": 1381}}, "organization": {"id": 1487}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": null}, "resource": {"id": 389, "owner": {"id": 57}, "assignee": {"id": 563}, "project": {"id": 336, "owner": {"id": 716}, "assignee": {"id": 801}}, "task": {"id": 342, "owner": {"id": 935}, "assignee": {"id": 1073}}, "job": {"id": 371, "assignee": {"id": 1169}}, "issue": {"id": 312, "owner": {"id": 1264}, "assignee": {"id": 1399}}, "organization": {"id": 1467}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": null}, "resource": {"id": 328, "owner": {"id": 6}, "assignee": {"id": 534}, "project": {"id": 379, "owner": {"id": 768}, "assignee": {"id": 868}}, "task": {"id": 306, "owner": {"id": 913}, "assignee": {"id": 1054}}, "job": {"id": 348, "assignee": {"id": 1121}}, "issue": {"id": 395, "owner": {"id": 1254}, "assignee": {"id": 1376}}, "organization": {"id": 1486}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": null}, "resource": {"id": 379, "owner": {"id": 56}, "assignee": {"id": 566}, "project": {"id": 369, "owner": {"id": 769}, "assignee": {"id": 870}}, "task": {"id": 367, "owner": {"id": 938}, "assignee": {"id": 1099}}, "job": {"id": 378, "assignee": {"id": 1182}}, "issue": {"id": 378, "owner": {"id": 1289}, "assignee": {"id": 1321}}, "organization": {"id": 1404}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": null}, "resource": {"id": 375, "owner": {"id": 54}, "assignee": {"id": 545}, "project": {"id": 315, "owner": {"id": 752}, "assignee": {"id": 852}}, "task": {"id": 394, "owner": {"id": 922}, "assignee": {"id": 1022}}, "job": {"id": 302, "assignee": {"id": 1175}}, "issue": {"id": 386, "owner": {"id": 1291}, "assignee": {"id": 1350}}, "organization": {"id": 1420}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "none"}, "organization": null}, "resource": {"id": 332, "owner": {"id": 50}, "assignee": {"id": 574}, "project": {"id": 389, "owner": {"id": 745}, "assignee": {"id": 895}}, "task": {"id": 358, "owner": {"id": 903}, "assignee": {"id": 1026}}, "job": {"id": 382, "assignee": {"id": 1166}}, "issue": {"id": 349, "owner": {"id": 1266}, "assignee": {"id": 1353}}, "organization": {"id": 1407}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": null}, "resource": {"id": 307, "owner": {"id": 685}, "assignee": {"id": 553}, "project": {"id": 385, "owner": {"id": 728}, "assignee": {"id": 871}}, "task": {"id": 396, "owner": {"id": 913}, "assignee": {"id": 1002}}, "job": {"id": 381, "assignee": {"id": 1178}}, "issue": {"id": 379, "owner": {"id": 1201}, "assignee": {"id": 1351}}, "organization": {"id": 1480}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": null}, "resource": {"id": 341, "owner": {"id": 628}, "assignee": {"id": 545}, "project": {"id": 341, "owner": {"id": 719}, "assignee": {"id": 822}}, "task": {"id": 369, "owner": {"id": 926}, "assignee": {"id": 1005}}, "job": {"id": 397, "assignee": {"id": 1161}}, "issue": {"id": 328, "owner": {"id": 1281}, "assignee": {"id": 1396}}, "organization": {"id": 1411}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": null}, "resource": {"id": 316, "owner": {"id": 624}, "assignee": {"id": 561}, "project": {"id": 396, "owner": {"id": 708}, "assignee": {"id": 859}}, "task": {"id": 369, "owner": {"id": 982}, "assignee": {"id": 1022}}, "job": {"id": 387, "assignee": {"id": 1152}}, "issue": {"id": 353, "owner": {"id": 1213}, "assignee": {"id": 1316}}, "organization": {"id": 1421}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": null}, "resource": {"id": 395, "owner": {"id": 660}, "assignee": {"id": 505}, "project": {"id": 357, "owner": {"id": 794}, "assignee": {"id": 852}}, "task": {"id": 336, "owner": {"id": 912}, "assignee": {"id": 1094}}, "job": {"id": 333, "assignee": {"id": 1168}}, "issue": {"id": 351, "owner": {"id": 1238}, "assignee": {"id": 1358}}, "organization": {"id": 1458}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": null}, "resource": {"id": 392, "owner": {"id": 626}, "assignee": {"id": 522}, "project": {"id": 392, "owner": {"id": 731}, "assignee": {"id": 803}}, "task": {"id": 363, "owner": {"id": 958}, "assignee": {"id": 1049}}, "job": {"id": 388, "assignee": {"id": 1172}}, "issue": {"id": 354, "owner": {"id": 1213}, "assignee": {"id": 1380}}, "organization": {"id": 1491}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": null}, "resource": {"id": 357, "owner": {"id": 601}, "assignee": {"id": 579}, "project": {"id": 315, "owner": {"id": 776}, "assignee": {"id": 860}}, "task": {"id": 333, "owner": {"id": 983}, "assignee": {"id": 1021}}, "job": {"id": 378, "assignee": {"id": 1160}}, "issue": {"id": 303, "owner": {"id": 1208}, "assignee": {"id": 1397}}, "organization": {"id": 1440}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": null}, "resource": {"id": 329, "owner": {"id": 686}, "assignee": {"id": 502}, "project": {"id": 314, "owner": {"id": 748}, "assignee": {"id": 884}}, "task": {"id": 316, "owner": {"id": 990}, "assignee": {"id": 1092}}, "job": {"id": 361, "assignee": {"id": 1190}}, "issue": {"id": 318, "owner": {"id": 1253}, "assignee": {"id": 1340}}, "organization": {"id": 1470}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": null}, "resource": {"id": 344, "owner": {"id": 673}, "assignee": {"id": 536}, "project": {"id": 302, "owner": {"id": 782}, "assignee": {"id": 842}}, "task": {"id": 343, "owner": {"id": 938}, "assignee": {"id": 1087}}, "job": {"id": 381, "assignee": {"id": 1179}}, "issue": {"id": 367, "owner": {"id": 1270}, "assignee": {"id": 1364}}, "organization": {"id": 1489}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": null}, "resource": {"id": 317, "owner": {"id": 637}, "assignee": {"id": 516}, "project": {"id": 364, "owner": {"id": 721}, "assignee": {"id": 808}}, "task": {"id": 345, "owner": {"id": 935}, "assignee": {"id": 1092}}, "job": {"id": 350, "assignee": {"id": 1122}}, "issue": {"id": 377, "owner": {"id": 1286}, "assignee": {"id": 1325}}, "organization": {"id": 1424}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": null}, "resource": {"id": 378, "owner": {"id": 678}, "assignee": {"id": 519}, "project": {"id": 355, "owner": {"id": 777}, "assignee": {"id": 825}}, "task": {"id": 358, "owner": {"id": 965}, "assignee": {"id": 1036}}, "job": {"id": 381, "assignee": {"id": 1130}}, "issue": {"id": 384, "owner": {"id": 1223}, "assignee": {"id": 1349}}, "organization": {"id": 1485}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 305, "owner": {"id": 607}, "assignee": {"id": 524}, "project": {"id": 313, "owner": {"id": 24}, "assignee": {"id": 886}}, "task": {"id": 397, "owner": {"id": 978}, "assignee": {"id": 1084}}, "job": {"id": 307, "assignee": {"id": 1193}}, "issue": {"id": 349, "owner": {"id": 1278}, "assignee": {"id": 1323}}, "organization": {"id": 178}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 362, "owner": {"id": 616}, "assignee": {"id": 545}, "project": {"id": 345, "owner": {"id": 24}, "assignee": {"id": 882}}, "task": {"id": 316, "owner": {"id": 974}, "assignee": {"id": 1004}}, "job": {"id": 344, "assignee": {"id": 1178}}, "issue": {"id": 388, "owner": {"id": 1253}, "assignee": {"id": 1316}}, "organization": {"id": 1490}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "owner": {"id": 690}, "assignee": {"id": 547}, "project": {"id": 339, "owner": {"id": 95}, "assignee": {"id": 865}}, "task": {"id": 345, "owner": {"id": 952}, "assignee": {"id": 1015}}, "job": {"id": 380, "assignee": {"id": 1176}}, "issue": {"id": 346, "owner": {"id": 1229}, "assignee": {"id": 1383}}, "organization": {"id": 158}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 608}, "assignee": {"id": 544}, "project": {"id": 346, "owner": {"id": 26}, "assignee": {"id": 856}}, "task": {"id": 347, "owner": {"id": 912}, "assignee": {"id": 1055}}, "job": {"id": 359, "assignee": {"id": 1171}}, "issue": {"id": 355, "owner": {"id": 1280}, "assignee": {"id": 1326}}, "organization": {"id": 1483}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "owner": {"id": 613}, "assignee": {"id": 585}, "project": {"id": 302, "owner": {"id": 51}, "assignee": {"id": 817}}, "task": {"id": 353, "owner": {"id": 975}, "assignee": {"id": 1035}}, "job": {"id": 317, "assignee": {"id": 1168}}, "issue": {"id": 379, "owner": {"id": 1259}, "assignee": {"id": 1308}}, "organization": {"id": 162}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "owner": {"id": 611}, "assignee": {"id": 561}, "project": {"id": 362, "owner": {"id": 48}, "assignee": {"id": 838}}, "task": {"id": 306, "owner": {"id": 922}, "assignee": {"id": 1016}}, "job": {"id": 398, "assignee": {"id": 1182}}, "issue": {"id": 385, "owner": {"id": 1283}, "assignee": {"id": 1369}}, "organization": {"id": 1448}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 321, "owner": {"id": 676}, "assignee": {"id": 590}, "project": {"id": 399, "owner": {"id": 11}, "assignee": {"id": 852}}, "task": {"id": 311, "owner": {"id": 945}, "assignee": {"id": 1024}}, "job": {"id": 362, "assignee": {"id": 1117}}, "issue": {"id": 308, "owner": {"id": 1250}, "assignee": {"id": 1312}}, "organization": {"id": 110}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 388, "owner": {"id": 697}, "assignee": {"id": 524}, "project": {"id": 344, "owner": {"id": 47}, "assignee": {"id": 858}}, "task": {"id": 315, "owner": {"id": 918}, "assignee": {"id": 1079}}, "job": {"id": 337, "assignee": {"id": 1182}}, "issue": {"id": 316, "owner": {"id": 1253}, "assignee": {"id": 1305}}, "organization": {"id": 1469}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 321, "owner": {"id": 640}, "assignee": {"id": 551}, "project": {"id": 324, "owner": {"id": 81}, "assignee": {"id": 865}}, "task": {"id": 303, "owner": {"id": 929}, "assignee": {"id": 1059}}, "job": {"id": 397, "assignee": {"id": 1136}}, "issue": {"id": 302, "owner": {"id": 1262}, "assignee": {"id": 1397}}, "organization": {"id": 176}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 303, "owner": {"id": 691}, "assignee": {"id": 525}, "project": {"id": 361, "owner": {"id": 55}, "assignee": {"id": 812}}, "task": {"id": 326, "owner": {"id": 995}, "assignee": {"id": 1047}}, "job": {"id": 342, "assignee": {"id": 1105}}, "issue": {"id": 329, "owner": {"id": 1238}, "assignee": {"id": 1387}}, "organization": {"id": 1423}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 310, "owner": {"id": 641}, "assignee": {"id": 596}, "project": {"id": 353, "owner": {"id": 37}, "assignee": {"id": 874}}, "task": {"id": 388, "owner": {"id": 953}, "assignee": {"id": 1093}}, "job": {"id": 338, "assignee": {"id": 1136}}, "issue": {"id": 325, "owner": {"id": 1241}, "assignee": {"id": 1314}}, "organization": {"id": 101}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 368, "owner": {"id": 647}, "assignee": {"id": 585}, "project": {"id": 359, "owner": {"id": 79}, "assignee": {"id": 800}}, "task": {"id": 339, "owner": {"id": 963}, "assignee": {"id": 1079}}, "job": {"id": 348, "assignee": {"id": 1119}}, "issue": {"id": 363, "owner": {"id": 1284}, "assignee": {"id": 1381}}, "organization": {"id": 1419}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 301, "owner": {"id": 694}, "assignee": {"id": 561}, "project": {"id": 302, "owner": {"id": 53}, "assignee": {"id": 887}}, "task": {"id": 393, "owner": {"id": 977}, "assignee": {"id": 1047}}, "job": {"id": 322, "assignee": {"id": 1110}}, "issue": {"id": 326, "owner": {"id": 1275}, "assignee": {"id": 1364}}, "organization": {"id": 133}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "owner": {"id": 673}, "assignee": {"id": 515}, "project": {"id": 346, "owner": {"id": 91}, "assignee": {"id": 825}}, "task": {"id": 358, "owner": {"id": 900}, "assignee": {"id": 1069}}, "job": {"id": 381, "assignee": {"id": 1191}}, "issue": {"id": 302, "owner": {"id": 1267}, "assignee": {"id": 1380}}, "organization": {"id": 1448}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 624}, "assignee": {"id": 596}, "project": {"id": 301, "owner": {"id": 43}, "assignee": {"id": 844}}, "task": {"id": 359, "owner": {"id": 931}, "assignee": {"id": 1060}}, "job": {"id": 383, "assignee": {"id": 1162}}, "issue": {"id": 386, "owner": {"id": 1290}, "assignee": {"id": 1358}}, "organization": {"id": 108}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 689}, "assignee": {"id": 500}, "project": {"id": 378, "owner": {"id": 74}, "assignee": {"id": 869}}, "task": {"id": 335, "owner": {"id": 913}, "assignee": {"id": 1022}}, "job": {"id": 331, "assignee": {"id": 1150}}, "issue": {"id": 308, "owner": {"id": 1264}, "assignee": {"id": 1373}}, "organization": {"id": 1479}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 667}, "assignee": {"id": 517}, "project": {"id": 330, "owner": {"id": 72}, "assignee": {"id": 868}}, "task": {"id": 310, "owner": {"id": 988}, "assignee": {"id": 1047}}, "job": {"id": 302, "assignee": {"id": 1141}}, "issue": {"id": 327, "owner": {"id": 1268}, "assignee": {"id": 1384}}, "organization": {"id": 190}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 380, "owner": {"id": 616}, "assignee": {"id": 587}, "project": {"id": 314, "owner": {"id": 29}, "assignee": {"id": 814}}, "task": {"id": 301, "owner": {"id": 974}, "assignee": {"id": 1085}}, "job": {"id": 321, "assignee": {"id": 1184}}, "issue": {"id": 390, "owner": {"id": 1266}, "assignee": {"id": 1386}}, "organization": {"id": 1473}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 388, "owner": {"id": 667}, "assignee": {"id": 572}, "project": {"id": 374, "owner": {"id": 9}, "assignee": {"id": 830}}, "task": {"id": 373, "owner": {"id": 980}, "assignee": {"id": 1098}}, "job": {"id": 363, "assignee": {"id": 1167}}, "issue": {"id": 364, "owner": {"id": 1231}, "assignee": {"id": 1314}}, "organization": {"id": 140}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 326, "owner": {"id": 660}, "assignee": {"id": 507}, "project": {"id": 314, "owner": {"id": 73}, "assignee": {"id": 823}}, "task": {"id": 329, "owner": {"id": 977}, "assignee": {"id": 1011}}, "job": {"id": 321, "assignee": {"id": 1115}}, "issue": {"id": 365, "owner": {"id": 1290}, "assignee": {"id": 1302}}, "organization": {"id": 1446}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 681}, "assignee": {"id": 580}, "project": {"id": 310, "owner": {"id": 34}, "assignee": {"id": 822}}, "task": {"id": 331, "owner": {"id": 918}, "assignee": {"id": 1055}}, "job": {"id": 365, "assignee": {"id": 1127}}, "issue": {"id": 391, "owner": {"id": 1298}, "assignee": {"id": 1374}}, "organization": {"id": 151}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 622}, "assignee": {"id": 582}, "project": {"id": 356, "owner": {"id": 5}, "assignee": {"id": 808}}, "task": {"id": 337, "owner": {"id": 920}, "assignee": {"id": 1031}}, "job": {"id": 355, "assignee": {"id": 1150}}, "issue": {"id": 391, "owner": {"id": 1242}, "assignee": {"id": 1331}}, "organization": {"id": 1474}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "owner": {"id": 611}, "assignee": {"id": 581}, "project": {"id": 313, "owner": {"id": 46}, "assignee": {"id": 827}}, "task": {"id": 343, "owner": {"id": 944}, "assignee": {"id": 1058}}, "job": {"id": 362, "assignee": {"id": 1125}}, "issue": {"id": 331, "owner": {"id": 1273}, "assignee": {"id": 1358}}, "organization": {"id": 139}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "owner": {"id": 683}, "assignee": {"id": 549}, "project": {"id": 369, "owner": {"id": 50}, "assignee": {"id": 801}}, "task": {"id": 306, "owner": {"id": 933}, "assignee": {"id": 1062}}, "job": {"id": 381, "assignee": {"id": 1197}}, "issue": {"id": 323, "owner": {"id": 1290}, "assignee": {"id": 1338}}, "organization": {"id": 1400}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "owner": {"id": 691}, "assignee": {"id": 529}, "project": {"id": 340, "owner": {"id": 8}, "assignee": {"id": 815}}, "task": {"id": 325, "owner": {"id": 953}, "assignee": {"id": 1087}}, "job": {"id": 396, "assignee": {"id": 1123}}, "issue": {"id": 355, "owner": {"id": 1248}, "assignee": {"id": 1315}}, "organization": {"id": 169}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 622}, "assignee": {"id": 541}, "project": {"id": 345, "owner": {"id": 75}, "assignee": {"id": 819}}, "task": {"id": 312, "owner": {"id": 922}, "assignee": {"id": 1030}}, "job": {"id": 355, "assignee": {"id": 1141}}, "issue": {"id": 329, "owner": {"id": 1294}, "assignee": {"id": 1398}}, "organization": {"id": 1445}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 621}, "assignee": {"id": 547}, "project": {"id": 304, "owner": {"id": 87}, "assignee": {"id": 888}}, "task": {"id": 382, "owner": {"id": 928}, "assignee": {"id": 1007}}, "job": {"id": 309, "assignee": {"id": 1181}}, "issue": {"id": 323, "owner": {"id": 1295}, "assignee": {"id": 1339}}, "organization": {"id": 135}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 300, "owner": {"id": 680}, "assignee": {"id": 576}, "project": {"id": 395, "owner": {"id": 37}, "assignee": {"id": 806}}, "task": {"id": 340, "owner": {"id": 940}, "assignee": {"id": 1041}}, "job": {"id": 361, "assignee": {"id": 1131}}, "issue": {"id": 301, "owner": {"id": 1234}, "assignee": {"id": 1361}}, "organization": {"id": 1490}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 680}, "assignee": {"id": 507}, "project": {"id": 380, "owner": {"id": 59}, "assignee": {"id": 894}}, "task": {"id": 363, "owner": {"id": 917}, "assignee": {"id": 1029}}, "job": {"id": 375, "assignee": {"id": 1159}}, "issue": {"id": 371, "owner": {"id": 1255}, "assignee": {"id": 1387}}, "organization": {"id": 169}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 354, "owner": {"id": 618}, "assignee": {"id": 563}, "project": {"id": 319, "owner": {"id": 93}, "assignee": {"id": 850}}, "task": {"id": 349, "owner": {"id": 908}, "assignee": {"id": 1049}}, "job": {"id": 300, "assignee": {"id": 1189}}, "issue": {"id": 369, "owner": {"id": 1229}, "assignee": {"id": 1365}}, "organization": {"id": 1434}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"id": 330, "owner": {"id": 675}, "assignee": {"id": 589}, "project": {"id": 321, "owner": {"id": 66}, "assignee": {"id": 850}}, "task": {"id": 330, "owner": {"id": 943}, "assignee": {"id": 1032}}, "job": {"id": 369, "assignee": {"id": 1184}}, "issue": {"id": 355, "owner": {"id": 1207}, "assignee": {"id": 1363}}, "organization": {"id": 106}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 309, "owner": {"id": 639}, "assignee": {"id": 527}, "project": {"id": 344, "owner": {"id": 57}, "assignee": {"id": 860}}, "task": {"id": 373, "owner": {"id": 993}, "assignee": {"id": 1059}}, "job": {"id": 362, "assignee": {"id": 1122}}, "issue": {"id": 301, "owner": {"id": 1254}, "assignee": {"id": 1318}}, "organization": {"id": 1453}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 681}, "assignee": {"id": 523}, "project": {"id": 326, "owner": {"id": 96}, "assignee": {"id": 883}}, "task": {"id": 345, "owner": {"id": 931}, "assignee": {"id": 1035}}, "job": {"id": 397, "assignee": {"id": 1165}}, "issue": {"id": 300, "owner": {"id": 1251}, "assignee": {"id": 1371}}, "organization": {"id": 160}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "owner": {"id": 625}, "assignee": {"id": 548}, "project": {"id": 395, "owner": {"id": 88}, "assignee": {"id": 863}}, "task": {"id": 381, "owner": {"id": 993}, "assignee": {"id": 1071}}, "job": {"id": 383, "assignee": {"id": 1148}}, "issue": {"id": 300, "owner": {"id": 1241}, "assignee": {"id": 1398}}, "organization": {"id": 1430}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "owner": {"id": 601}, "assignee": {"id": 594}, "project": {"id": 397, "owner": {"id": 10}, "assignee": {"id": 865}}, "task": {"id": 379, "owner": {"id": 946}, "assignee": {"id": 1020}}, "job": {"id": 384, "assignee": {"id": 1118}}, "issue": {"id": 332, "owner": {"id": 1273}, "assignee": {"id": 1309}}, "organization": {"id": 158}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 653}, "assignee": {"id": 588}, "project": {"id": 356, "owner": {"id": 15}, "assignee": {"id": 854}}, "task": {"id": 319, "owner": {"id": 913}, "assignee": {"id": 1015}}, "job": {"id": 305, "assignee": {"id": 1164}}, "issue": {"id": 320, "owner": {"id": 1264}, "assignee": {"id": 1333}}, "organization": {"id": 1480}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 627}, "assignee": {"id": 582}, "project": {"id": 372, "owner": {"id": 18}, "assignee": {"id": 808}}, "task": {"id": 381, "owner": {"id": 973}, "assignee": {"id": 1061}}, "job": {"id": 389, "assignee": {"id": 1138}}, "issue": {"id": 373, "owner": {"id": 1232}, "assignee": {"id": 1300}}, "organization": {"id": 196}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 659}, "assignee": {"id": 513}, "project": {"id": 362, "owner": {"id": 14}, "assignee": {"id": 818}}, "task": {"id": 330, "owner": {"id": 900}, "assignee": {"id": 1059}}, "job": {"id": 301, "assignee": {"id": 1143}}, "issue": {"id": 374, "owner": {"id": 1250}, "assignee": {"id": 1323}}, "organization": {"id": 1482}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 391, "owner": {"id": 621}, "assignee": {"id": 598}, "project": {"id": 300, "owner": {"id": 18}, "assignee": {"id": 841}}, "task": {"id": 365, "owner": {"id": 976}, "assignee": {"id": 1058}}, "job": {"id": 356, "assignee": {"id": 1156}}, "issue": {"id": 398, "owner": {"id": 1235}, "assignee": {"id": 1350}}, "organization": {"id": 103}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 320, "owner": {"id": 694}, "assignee": {"id": 561}, "project": {"id": 337, "owner": {"id": 48}, "assignee": {"id": 870}}, "task": {"id": 378, "owner": {"id": 913}, "assignee": {"id": 1068}}, "job": {"id": 385, "assignee": {"id": 1143}}, "issue": {"id": 306, "owner": {"id": 1288}, "assignee": {"id": 1328}}, "organization": {"id": 1407}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 359, "owner": {"id": 647}, "assignee": {"id": 507}, "project": {"id": 388, "owner": {"id": 23}, "assignee": {"id": 801}}, "task": {"id": 357, "owner": {"id": 921}, "assignee": {"id": 1098}}, "job": {"id": 363, "assignee": {"id": 1114}}, "issue": {"id": 378, "owner": {"id": 1214}, "assignee": {"id": 1305}}, "organization": {"id": 132}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 692}, "assignee": {"id": 596}, "project": {"id": 315, "owner": {"id": 43}, "assignee": {"id": 889}}, "task": {"id": 345, "owner": {"id": 931}, "assignee": {"id": 1001}}, "job": {"id": 350, "assignee": {"id": 1135}}, "issue": {"id": 306, "owner": {"id": 1220}, "assignee": {"id": 1338}}, "organization": {"id": 1437}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "owner": {"id": 613}, "assignee": {"id": 546}, "project": {"id": 394, "owner": {"id": 89}, "assignee": {"id": 893}}, "task": {"id": 323, "owner": {"id": 920}, "assignee": {"id": 1053}}, "job": {"id": 388, "assignee": {"id": 1187}}, "issue": {"id": 320, "owner": {"id": 1222}, "assignee": {"id": 1361}}, "organization": {"id": 131}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 685}, "assignee": {"id": 598}, "project": {"id": 304, "owner": {"id": 79}, "assignee": {"id": 815}}, "task": {"id": 323, "owner": {"id": 936}, "assignee": {"id": 1026}}, "job": {"id": 383, "assignee": {"id": 1140}}, "issue": {"id": 380, "owner": {"id": 1227}, "assignee": {"id": 1334}}, "organization": {"id": 1414}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "owner": {"id": 627}, "assignee": {"id": 542}, "project": {"id": 304, "owner": {"id": 55}, "assignee": {"id": 887}}, "task": {"id": 398, "owner": {"id": 998}, "assignee": {"id": 1097}}, "job": {"id": 322, "assignee": {"id": 1160}}, "issue": {"id": 360, "owner": {"id": 1264}, "assignee": {"id": 1316}}, "organization": {"id": 158}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "owner": {"id": 684}, "assignee": {"id": 578}, "project": {"id": 362, "owner": {"id": 48}, "assignee": {"id": 864}}, "task": {"id": 343, "owner": {"id": 976}, "assignee": {"id": 1013}}, "job": {"id": 365, "assignee": {"id": 1155}}, "issue": {"id": 373, "owner": {"id": 1287}, "assignee": {"id": 1374}}, "organization": {"id": 1410}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 301, "owner": {"id": 654}, "assignee": {"id": 587}, "project": {"id": 371, "owner": {"id": 49}, "assignee": {"id": 871}}, "task": {"id": 370, "owner": {"id": 987}, "assignee": {"id": 1092}}, "job": {"id": 363, "assignee": {"id": 1155}}, "issue": {"id": 330, "owner": {"id": 1244}, "assignee": {"id": 1377}}, "organization": {"id": 153}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 315, "owner": {"id": 689}, "assignee": {"id": 564}, "project": {"id": 342, "owner": {"id": 7}, "assignee": {"id": 832}}, "task": {"id": 351, "owner": {"id": 930}, "assignee": {"id": 1040}}, "job": {"id": 313, "assignee": {"id": 1167}}, "issue": {"id": 364, "owner": {"id": 1268}, "assignee": {"id": 1331}}, "organization": {"id": 1487}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 331, "owner": {"id": 616}, "assignee": {"id": 522}, "project": {"id": 372, "owner": {"id": 62}, "assignee": {"id": 831}}, "task": {"id": 372, "owner": {"id": 953}, "assignee": {"id": 1071}}, "job": {"id": 391, "assignee": {"id": 1161}}, "issue": {"id": 320, "owner": {"id": 1215}, "assignee": {"id": 1379}}, "organization": {"id": 189}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 382, "owner": {"id": 688}, "assignee": {"id": 591}, "project": {"id": 330, "owner": {"id": 83}, "assignee": {"id": 816}}, "task": {"id": 349, "owner": {"id": 995}, "assignee": {"id": 1017}}, "job": {"id": 319, "assignee": {"id": 1145}}, "issue": {"id": 353, "owner": {"id": 1280}, "assignee": {"id": 1384}}, "organization": {"id": 1491}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 311, "owner": {"id": 609}, "assignee": {"id": 589}, "project": {"id": 370, "owner": {"id": 786}, "assignee": {"id": 16}}, "task": {"id": 364, "owner": {"id": 994}, "assignee": {"id": 1017}}, "job": {"id": 378, "assignee": {"id": 1137}}, "issue": {"id": 351, "owner": {"id": 1258}, "assignee": {"id": 1348}}, "organization": {"id": 102}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 383, "owner": {"id": 697}, "assignee": {"id": 593}, "project": {"id": 382, "owner": {"id": 729}, "assignee": {"id": 64}}, "task": {"id": 313, "owner": {"id": 914}, "assignee": {"id": 1093}}, "job": {"id": 305, "assignee": {"id": 1119}}, "issue": {"id": 399, "owner": {"id": 1250}, "assignee": {"id": 1383}}, "organization": {"id": 1400}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 617}, "assignee": {"id": 583}, "project": {"id": 375, "owner": {"id": 777}, "assignee": {"id": 60}}, "task": {"id": 323, "owner": {"id": 922}, "assignee": {"id": 1099}}, "job": {"id": 327, "assignee": {"id": 1167}}, "issue": {"id": 372, "owner": {"id": 1291}, "assignee": {"id": 1376}}, "organization": {"id": 126}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 623}, "assignee": {"id": 524}, "project": {"id": 311, "owner": {"id": 798}, "assignee": {"id": 84}}, "task": {"id": 381, "owner": {"id": 957}, "assignee": {"id": 1067}}, "job": {"id": 300, "assignee": {"id": 1180}}, "issue": {"id": 354, "owner": {"id": 1243}, "assignee": {"id": 1399}}, "organization": {"id": 1480}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "owner": {"id": 635}, "assignee": {"id": 575}, "project": {"id": 331, "owner": {"id": 758}, "assignee": {"id": 97}}, "task": {"id": 315, "owner": {"id": 986}, "assignee": {"id": 1006}}, "job": {"id": 370, "assignee": {"id": 1172}}, "issue": {"id": 388, "owner": {"id": 1272}, "assignee": {"id": 1382}}, "organization": {"id": 139}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 676}, "assignee": {"id": 534}, "project": {"id": 368, "owner": {"id": 796}, "assignee": {"id": 96}}, "task": {"id": 317, "owner": {"id": 973}, "assignee": {"id": 1002}}, "job": {"id": 343, "assignee": {"id": 1166}}, "issue": {"id": 381, "owner": {"id": 1214}, "assignee": {"id": 1358}}, "organization": {"id": 1461}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 317, "owner": {"id": 634}, "assignee": {"id": 500}, "project": {"id": 381, "owner": {"id": 784}, "assignee": {"id": 5}}, "task": {"id": 330, "owner": {"id": 949}, "assignee": {"id": 1097}}, "job": {"id": 368, "assignee": {"id": 1129}}, "issue": {"id": 305, "owner": {"id": 1229}, "assignee": {"id": 1385}}, "organization": {"id": 124}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 625}, "assignee": {"id": 508}, "project": {"id": 362, "owner": {"id": 756}, "assignee": {"id": 58}}, "task": {"id": 337, "owner": {"id": 964}, "assignee": {"id": 1051}}, "job": {"id": 393, "assignee": {"id": 1156}}, "issue": {"id": 356, "owner": {"id": 1287}, "assignee": {"id": 1395}}, "organization": {"id": 1427}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 638}, "assignee": {"id": 554}, "project": {"id": 340, "owner": {"id": 784}, "assignee": {"id": 29}}, "task": {"id": 355, "owner": {"id": 971}, "assignee": {"id": 1045}}, "job": {"id": 348, "assignee": {"id": 1121}}, "issue": {"id": 392, "owner": {"id": 1204}, "assignee": {"id": 1309}}, "organization": {"id": 107}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 344, "owner": {"id": 604}, "assignee": {"id": 561}, "project": {"id": 345, "owner": {"id": 723}, "assignee": {"id": 15}}, "task": {"id": 316, "owner": {"id": 902}, "assignee": {"id": 1069}}, "job": {"id": 368, "assignee": {"id": 1181}}, "issue": {"id": 300, "owner": {"id": 1215}, "assignee": {"id": 1355}}, "organization": {"id": 1489}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 661}, "assignee": {"id": 564}, "project": {"id": 359, "owner": {"id": 763}, "assignee": {"id": 48}}, "task": {"id": 391, "owner": {"id": 929}, "assignee": {"id": 1088}}, "job": {"id": 394, "assignee": {"id": 1140}}, "issue": {"id": 367, "owner": {"id": 1256}, "assignee": {"id": 1397}}, "organization": {"id": 160}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 317, "owner": {"id": 698}, "assignee": {"id": 533}, "project": {"id": 344, "owner": {"id": 727}, "assignee": {"id": 93}}, "task": {"id": 349, "owner": {"id": 988}, "assignee": {"id": 1000}}, "job": {"id": 301, "assignee": {"id": 1165}}, "issue": {"id": 336, "owner": {"id": 1258}, "assignee": {"id": 1327}}, "organization": {"id": 1444}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "owner": {"id": 606}, "assignee": {"id": 520}, "project": {"id": 300, "owner": {"id": 719}, "assignee": {"id": 80}}, "task": {"id": 351, "owner": {"id": 975}, "assignee": {"id": 1001}}, "job": {"id": 320, "assignee": {"id": 1193}}, "issue": {"id": 326, "owner": {"id": 1224}, "assignee": {"id": 1361}}, "organization": {"id": 137}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "owner": {"id": 601}, "assignee": {"id": 521}, "project": {"id": 383, "owner": {"id": 797}, "assignee": {"id": 89}}, "task": {"id": 330, "owner": {"id": 934}, "assignee": {"id": 1034}}, "job": {"id": 327, "assignee": {"id": 1123}}, "issue": {"id": 348, "owner": {"id": 1208}, "assignee": {"id": 1321}}, "organization": {"id": 1438}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 681}, "assignee": {"id": 541}, "project": {"id": 331, "owner": {"id": 747}, "assignee": {"id": 9}}, "task": {"id": 316, "owner": {"id": 983}, "assignee": {"id": 1012}}, "job": {"id": 376, "assignee": {"id": 1180}}, "issue": {"id": 364, "owner": {"id": 1203}, "assignee": {"id": 1337}}, "organization": {"id": 169}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "owner": {"id": 634}, "assignee": {"id": 505}, "project": {"id": 387, "owner": {"id": 784}, "assignee": {"id": 41}}, "task": {"id": 383, "owner": {"id": 939}, "assignee": {"id": 1033}}, "job": {"id": 339, "assignee": {"id": 1165}}, "issue": {"id": 367, "owner": {"id": 1299}, "assignee": {"id": 1381}}, "organization": {"id": 1444}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 312, "owner": {"id": 699}, "assignee": {"id": 581}, "project": {"id": 394, "owner": {"id": 761}, "assignee": {"id": 34}}, "task": {"id": 335, "owner": {"id": 901}, "assignee": {"id": 1008}}, "job": {"id": 377, "assignee": {"id": 1169}}, "issue": {"id": 347, "owner": {"id": 1245}, "assignee": {"id": 1311}}, "organization": {"id": 167}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 636}, "assignee": {"id": 568}, "project": {"id": 371, "owner": {"id": 790}, "assignee": {"id": 54}}, "task": {"id": 321, "owner": {"id": 995}, "assignee": {"id": 1069}}, "job": {"id": 389, "assignee": {"id": 1128}}, "issue": {"id": 314, "owner": {"id": 1226}, "assignee": {"id": 1374}}, "organization": {"id": 1416}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 660}, "assignee": {"id": 537}, "project": {"id": 343, "owner": {"id": 738}, "assignee": {"id": 35}}, "task": {"id": 325, "owner": {"id": 935}, "assignee": {"id": 1025}}, "job": {"id": 340, "assignee": {"id": 1113}}, "issue": {"id": 331, "owner": {"id": 1215}, "assignee": {"id": 1333}}, "organization": {"id": 195}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 392, "owner": {"id": 626}, "assignee": {"id": 598}, "project": {"id": 310, "owner": {"id": 769}, "assignee": {"id": 44}}, "task": {"id": 392, "owner": {"id": 928}, "assignee": {"id": 1043}}, "job": {"id": 337, "assignee": {"id": 1163}}, "issue": {"id": 324, "owner": {"id": 1217}, "assignee": {"id": 1399}}, "organization": {"id": 1455}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 352, "owner": {"id": 697}, "assignee": {"id": 574}, "project": {"id": 345, "owner": {"id": 772}, "assignee": {"id": 68}}, "task": {"id": 396, "owner": {"id": 946}, "assignee": {"id": 1058}}, "job": {"id": 334, "assignee": {"id": 1171}}, "issue": {"id": 375, "owner": {"id": 1228}, "assignee": {"id": 1362}}, "organization": {"id": 181}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 369, "owner": {"id": 604}, "assignee": {"id": 560}, "project": {"id": 319, "owner": {"id": 701}, "assignee": {"id": 92}}, "task": {"id": 301, "owner": {"id": 926}, "assignee": {"id": 1038}}, "job": {"id": 315, "assignee": {"id": 1157}}, "issue": {"id": 345, "owner": {"id": 1225}, "assignee": {"id": 1338}}, "organization": {"id": 1455}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "owner": {"id": 683}, "assignee": {"id": 555}, "project": {"id": 390, "owner": {"id": 766}, "assignee": {"id": 84}}, "task": {"id": 327, "owner": {"id": 973}, "assignee": {"id": 1029}}, "job": {"id": 383, "assignee": {"id": 1118}}, "issue": {"id": 322, "owner": {"id": 1277}, "assignee": {"id": 1351}}, "organization": {"id": 164}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 696}, "assignee": {"id": 585}, "project": {"id": 378, "owner": {"id": 712}, "assignee": {"id": 76}}, "task": {"id": 317, "owner": {"id": 900}, "assignee": {"id": 1098}}, "job": {"id": 375, "assignee": {"id": 1185}}, "issue": {"id": 395, "owner": {"id": 1215}, "assignee": {"id": 1385}}, "organization": {"id": 1420}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "owner": {"id": 614}, "assignee": {"id": 554}, "project": {"id": 340, "owner": {"id": 785}, "assignee": {"id": 77}}, "task": {"id": 392, "owner": {"id": 905}, "assignee": {"id": 1070}}, "job": {"id": 312, "assignee": {"id": 1189}}, "issue": {"id": 377, "owner": {"id": 1248}, "assignee": {"id": 1334}}, "organization": {"id": 181}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "owner": {"id": 689}, "assignee": {"id": 562}, "project": {"id": 358, "owner": {"id": 758}, "assignee": {"id": 37}}, "task": {"id": 397, "owner": {"id": 978}, "assignee": {"id": 1045}}, "job": {"id": 359, "assignee": {"id": 1190}}, "issue": {"id": 340, "owner": {"id": 1265}, "assignee": {"id": 1399}}, "organization": {"id": 1434}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 342, "owner": {"id": 652}, "assignee": {"id": 528}, "project": {"id": 359, "owner": {"id": 761}, "assignee": {"id": 36}}, "task": {"id": 308, "owner": {"id": 920}, "assignee": {"id": 1033}}, "job": {"id": 339, "assignee": {"id": 1100}}, "issue": {"id": 392, "owner": {"id": 1233}, "assignee": {"id": 1375}}, "organization": {"id": 137}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 328, "owner": {"id": 640}, "assignee": {"id": 564}, "project": {"id": 368, "owner": {"id": 786}, "assignee": {"id": 10}}, "task": {"id": 350, "owner": {"id": 954}, "assignee": {"id": 1051}}, "job": {"id": 386, "assignee": {"id": 1160}}, "issue": {"id": 309, "owner": {"id": 1241}, "assignee": {"id": 1339}}, "organization": {"id": 1460}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 374, "owner": {"id": 615}, "assignee": {"id": 525}, "project": {"id": 393, "owner": {"id": 760}, "assignee": {"id": 59}}, "task": {"id": 313, "owner": {"id": 976}, "assignee": {"id": 1097}}, "job": {"id": 363, "assignee": {"id": 1114}}, "issue": {"id": 346, "owner": {"id": 1233}, "assignee": {"id": 1378}}, "organization": {"id": 195}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 354, "owner": {"id": 656}, "assignee": {"id": 529}, "project": {"id": 369, "owner": {"id": 740}, "assignee": {"id": 17}}, "task": {"id": 392, "owner": {"id": 998}, "assignee": {"id": 1013}}, "job": {"id": 319, "assignee": {"id": 1102}}, "issue": {"id": 329, "owner": {"id": 1205}, "assignee": {"id": 1339}}, "organization": {"id": 1495}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 399, "owner": {"id": 658}, "assignee": {"id": 520}, "project": {"id": 352, "owner": {"id": 731}, "assignee": {"id": 3}}, "task": {"id": 351, "owner": {"id": 938}, "assignee": {"id": 1008}}, "job": {"id": 373, "assignee": {"id": 1153}}, "issue": {"id": 356, "owner": {"id": 1228}, "assignee": {"id": 1306}}, "organization": {"id": 139}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 631}, "assignee": {"id": 542}, "project": {"id": 369, "owner": {"id": 707}, "assignee": {"id": 15}}, "task": {"id": 392, "owner": {"id": 910}, "assignee": {"id": 1014}}, "job": {"id": 389, "assignee": {"id": 1110}}, "issue": {"id": 367, "owner": {"id": 1253}, "assignee": {"id": 1387}}, "organization": {"id": 1438}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "owner": {"id": 689}, "assignee": {"id": 538}, "project": {"id": 363, "owner": {"id": 768}, "assignee": {"id": 20}}, "task": {"id": 359, "owner": {"id": 980}, "assignee": {"id": 1052}}, "job": {"id": 363, "assignee": {"id": 1151}}, "issue": {"id": 377, "owner": {"id": 1216}, "assignee": {"id": 1300}}, "organization": {"id": 127}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "owner": {"id": 669}, "assignee": {"id": 549}, "project": {"id": 335, "owner": {"id": 704}, "assignee": {"id": 90}}, "task": {"id": 321, "owner": {"id": 917}, "assignee": {"id": 1094}}, "job": {"id": 353, "assignee": {"id": 1172}}, "issue": {"id": 334, "owner": {"id": 1216}, "assignee": {"id": 1318}}, "organization": {"id": 1463}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "owner": {"id": 615}, "assignee": {"id": 571}, "project": {"id": 395, "owner": {"id": 790}, "assignee": {"id": 48}}, "task": {"id": 322, "owner": {"id": 904}, "assignee": {"id": 1001}}, "job": {"id": 385, "assignee": {"id": 1152}}, "issue": {"id": 366, "owner": {"id": 1284}, "assignee": {"id": 1379}}, "organization": {"id": 199}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "owner": {"id": 655}, "assignee": {"id": 583}, "project": {"id": 330, "owner": {"id": 755}, "assignee": {"id": 84}}, "task": {"id": 375, "owner": {"id": 951}, "assignee": {"id": 1070}}, "job": {"id": 379, "assignee": {"id": 1125}}, "issue": {"id": 362, "owner": {"id": 1241}, "assignee": {"id": 1338}}, "organization": {"id": 1480}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 371, "owner": {"id": 630}, "assignee": {"id": 552}, "project": {"id": 365, "owner": {"id": 752}, "assignee": {"id": 58}}, "task": {"id": 357, "owner": {"id": 990}, "assignee": {"id": 1041}}, "job": {"id": 325, "assignee": {"id": 1117}}, "issue": {"id": 344, "owner": {"id": 1284}, "assignee": {"id": 1370}}, "organization": {"id": 171}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 375, "owner": {"id": 656}, "assignee": {"id": 523}, "project": {"id": 339, "owner": {"id": 765}, "assignee": {"id": 95}}, "task": {"id": 374, "owner": {"id": 906}, "assignee": {"id": 1036}}, "job": {"id": 342, "assignee": {"id": 1174}}, "issue": {"id": 386, "owner": {"id": 1231}, "assignee": {"id": 1332}}, "organization": {"id": 1464}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 329, "owner": {"id": 620}, "assignee": {"id": 545}, "project": {"id": 326, "owner": {"id": 790}, "assignee": {"id": 92}}, "task": {"id": 313, "owner": {"id": 908}, "assignee": {"id": 1074}}, "job": {"id": 308, "assignee": {"id": 1189}}, "issue": {"id": 398, "owner": {"id": 1253}, "assignee": {"id": 1380}}, "organization": {"id": 146}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 625}, "assignee": {"id": 508}, "project": {"id": 335, "owner": {"id": 782}, "assignee": {"id": 45}}, "task": {"id": 395, "owner": {"id": 906}, "assignee": {"id": 1043}}, "job": {"id": 350, "assignee": {"id": 1135}}, "issue": {"id": 380, "owner": {"id": 1253}, "assignee": {"id": 1305}}, "organization": {"id": 1454}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 334, "owner": {"id": 671}, "assignee": {"id": 548}, "project": {"id": 323, "owner": {"id": 744}, "assignee": {"id": 49}}, "task": {"id": 367, "owner": {"id": 968}, "assignee": {"id": 1054}}, "job": {"id": 353, "assignee": {"id": 1105}}, "issue": {"id": 332, "owner": {"id": 1271}, "assignee": {"id": 1347}}, "organization": {"id": 114}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 310, "owner": {"id": 691}, "assignee": {"id": 569}, "project": {"id": 354, "owner": {"id": 713}, "assignee": {"id": 50}}, "task": {"id": 365, "owner": {"id": 983}, "assignee": {"id": 1078}}, "job": {"id": 363, "assignee": {"id": 1151}}, "issue": {"id": 314, "owner": {"id": 1255}, "assignee": {"id": 1385}}, "organization": {"id": 1476}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "owner": {"id": 687}, "assignee": {"id": 561}, "project": {"id": 392, "owner": {"id": 763}, "assignee": {"id": 92}}, "task": {"id": 386, "owner": {"id": 942}, "assignee": {"id": 1037}}, "job": {"id": 382, "assignee": {"id": 1184}}, "issue": {"id": 365, "owner": {"id": 1293}, "assignee": {"id": 1379}}, "organization": {"id": 176}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 650}, "assignee": {"id": 502}, "project": {"id": 393, "owner": {"id": 732}, "assignee": {"id": 32}}, "task": {"id": 320, "owner": {"id": 933}, "assignee": {"id": 1057}}, "job": {"id": 301, "assignee": {"id": 1124}}, "issue": {"id": 338, "owner": {"id": 1295}, "assignee": {"id": 1355}}, "organization": {"id": 1447}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "owner": {"id": 663}, "assignee": {"id": 576}, "project": {"id": 346, "owner": {"id": 744}, "assignee": {"id": 15}}, "task": {"id": 339, "owner": {"id": 930}, "assignee": {"id": 1011}}, "job": {"id": 377, "assignee": {"id": 1197}}, "issue": {"id": 326, "owner": {"id": 1234}, "assignee": {"id": 1375}}, "organization": {"id": 119}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "owner": {"id": 601}, "assignee": {"id": 557}, "project": {"id": 317, "owner": {"id": 725}, "assignee": {"id": 24}}, "task": {"id": 339, "owner": {"id": 952}, "assignee": {"id": 1006}}, "job": {"id": 315, "assignee": {"id": 1152}}, "issue": {"id": 334, "owner": {"id": 1220}, "assignee": {"id": 1319}}, "organization": {"id": 1440}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 698}, "assignee": {"id": 595}, "project": {"id": 382, "owner": {"id": 718}, "assignee": {"id": 45}}, "task": {"id": 328, "owner": {"id": 911}, "assignee": {"id": 1018}}, "job": {"id": 373, "assignee": {"id": 1136}}, "issue": {"id": 305, "owner": {"id": 1299}, "assignee": {"id": 1347}}, "organization": {"id": 193}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 641}, "assignee": {"id": 581}, "project": {"id": 326, "owner": {"id": 760}, "assignee": {"id": 90}}, "task": {"id": 326, "owner": {"id": 965}, "assignee": {"id": 1086}}, "job": {"id": 315, "assignee": {"id": 1166}}, "issue": {"id": 314, "owner": {"id": 1218}, "assignee": {"id": 1345}}, "organization": {"id": 1495}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 371, "owner": {"id": 617}, "assignee": {"id": 576}, "project": {"id": 312, "owner": {"id": 729}, "assignee": {"id": 58}}, "task": {"id": 329, "owner": {"id": 926}, "assignee": {"id": 1056}}, "job": {"id": 329, "assignee": {"id": 1184}}, "issue": {"id": 351, "owner": {"id": 1288}, "assignee": {"id": 1398}}, "organization": {"id": 143}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 660}, "assignee": {"id": 542}, "project": {"id": 352, "owner": {"id": 731}, "assignee": {"id": 37}}, "task": {"id": 306, "owner": {"id": 928}, "assignee": {"id": 1041}}, "job": {"id": 313, "assignee": {"id": 1159}}, "issue": {"id": 312, "owner": {"id": 1205}, "assignee": {"id": 1310}}, "organization": {"id": 1480}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 326, "owner": {"id": 658}, "assignee": {"id": 573}, "project": {"id": 392, "owner": {"id": 712}, "assignee": {"id": 814}}, "task": {"id": 365, "owner": {"id": 99}, "assignee": {"id": 1084}}, "job": {"id": 348, "assignee": {"id": 1138}}, "issue": {"id": 348, "owner": {"id": 1253}, "assignee": {"id": 1303}}, "organization": {"id": 179}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 357, "owner": {"id": 658}, "assignee": {"id": 572}, "project": {"id": 361, "owner": {"id": 793}, "assignee": {"id": 860}}, "task": {"id": 342, "owner": {"id": 14}, "assignee": {"id": 1062}}, "job": {"id": 360, "assignee": {"id": 1127}}, "issue": {"id": 314, "owner": {"id": 1241}, "assignee": {"id": 1300}}, "organization": {"id": 151}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 308, "owner": {"id": 657}, "assignee": {"id": 526}, "project": {"id": 302, "owner": {"id": 719}, "assignee": {"id": 888}}, "task": {"id": 349, "owner": {"id": 52}, "assignee": {"id": 1084}}, "job": {"id": 306, "assignee": {"id": 1143}}, "issue": {"id": 326, "owner": {"id": 1244}, "assignee": {"id": 1372}}, "organization": {"id": 1479}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 645}, "assignee": {"id": 518}, "project": {"id": 311, "owner": {"id": 761}, "assignee": {"id": 818}}, "task": {"id": 353, "owner": {"id": 66}, "assignee": {"id": 1028}}, "job": {"id": 375, "assignee": {"id": 1195}}, "issue": {"id": 304, "owner": {"id": 1206}, "assignee": {"id": 1355}}, "organization": {"id": 1494}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "owner": {"id": 639}, "assignee": {"id": 501}, "project": {"id": 304, "owner": {"id": 751}, "assignee": {"id": 872}}, "task": {"id": 322, "owner": {"id": 71}, "assignee": {"id": 1038}}, "job": {"id": 319, "assignee": {"id": 1169}}, "issue": {"id": 361, "owner": {"id": 1269}, "assignee": {"id": 1302}}, "organization": {"id": 184}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "owner": {"id": 630}, "assignee": {"id": 573}, "project": {"id": 351, "owner": {"id": 778}, "assignee": {"id": 870}}, "task": {"id": 397, "owner": {"id": 21}, "assignee": {"id": 1010}}, "job": {"id": 358, "assignee": {"id": 1103}}, "issue": {"id": 360, "owner": {"id": 1251}, "assignee": {"id": 1397}}, "organization": {"id": 142}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 603}, "assignee": {"id": 596}, "project": {"id": 330, "owner": {"id": 776}, "assignee": {"id": 819}}, "task": {"id": 394, "owner": {"id": 68}, "assignee": {"id": 1061}}, "job": {"id": 386, "assignee": {"id": 1184}}, "issue": {"id": 396, "owner": {"id": 1260}, "assignee": {"id": 1308}}, "organization": {"id": 1403}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "owner": {"id": 683}, "assignee": {"id": 584}, "project": {"id": 390, "owner": {"id": 734}, "assignee": {"id": 845}}, "task": {"id": 371, "owner": {"id": 48}, "assignee": {"id": 1071}}, "job": {"id": 348, "assignee": {"id": 1194}}, "issue": {"id": 349, "owner": {"id": 1296}, "assignee": {"id": 1331}}, "organization": {"id": 1464}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "owner": {"id": 642}, "assignee": {"id": 504}, "project": {"id": 307, "owner": {"id": 711}, "assignee": {"id": 882}}, "task": {"id": 314, "owner": {"id": 6}, "assignee": {"id": 1061}}, "job": {"id": 307, "assignee": {"id": 1100}}, "issue": {"id": 373, "owner": {"id": 1283}, "assignee": {"id": 1386}}, "organization": {"id": 115}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 615}, "assignee": {"id": 563}, "project": {"id": 356, "owner": {"id": 771}, "assignee": {"id": 870}}, "task": {"id": 322, "owner": {"id": 99}, "assignee": {"id": 1029}}, "job": {"id": 362, "assignee": {"id": 1134}}, "issue": {"id": 304, "owner": {"id": 1240}, "assignee": {"id": 1316}}, "organization": {"id": 151}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "owner": {"id": 610}, "assignee": {"id": 551}, "project": {"id": 330, "owner": {"id": 765}, "assignee": {"id": 858}}, "task": {"id": 376, "owner": {"id": 83}, "assignee": {"id": 1024}}, "job": {"id": 383, "assignee": {"id": 1124}}, "issue": {"id": 362, "owner": {"id": 1288}, "assignee": {"id": 1357}}, "organization": {"id": 1462}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "owner": {"id": 629}, "assignee": {"id": 573}, "project": {"id": 340, "owner": {"id": 782}, "assignee": {"id": 811}}, "task": {"id": 304, "owner": {"id": 35}, "assignee": {"id": 1081}}, "job": {"id": 336, "assignee": {"id": 1110}}, "issue": {"id": 349, "owner": {"id": 1282}, "assignee": {"id": 1393}}, "organization": {"id": 1496}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 355, "owner": {"id": 654}, "assignee": {"id": 524}, "project": {"id": 339, "owner": {"id": 778}, "assignee": {"id": 862}}, "task": {"id": 339, "owner": {"id": 59}, "assignee": {"id": 1007}}, "job": {"id": 336, "assignee": {"id": 1194}}, "issue": {"id": 352, "owner": {"id": 1251}, "assignee": {"id": 1315}}, "organization": {"id": 151}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 390, "owner": {"id": 604}, "assignee": {"id": 546}, "project": {"id": 398, "owner": {"id": 748}, "assignee": {"id": 885}}, "task": {"id": 348, "owner": {"id": 44}, "assignee": {"id": 1060}}, "job": {"id": 312, "assignee": {"id": 1168}}, "issue": {"id": 309, "owner": {"id": 1283}, "assignee": {"id": 1329}}, "organization": {"id": 157}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 310, "owner": {"id": 678}, "assignee": {"id": 599}, "project": {"id": 300, "owner": {"id": 707}, "assignee": {"id": 889}}, "task": {"id": 375, "owner": {"id": 2}, "assignee": {"id": 1094}}, "job": {"id": 366, "assignee": {"id": 1110}}, "issue": {"id": 350, "owner": {"id": 1211}, "assignee": {"id": 1358}}, "organization": {"id": 1417}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 318, "owner": {"id": 688}, "assignee": {"id": 557}, "project": {"id": 372, "owner": {"id": 798}, "assignee": {"id": 828}}, "task": {"id": 362, "owner": {"id": 86}, "assignee": {"id": 1060}}, "job": {"id": 335, "assignee": {"id": 1154}}, "issue": {"id": 344, "owner": {"id": 1252}, "assignee": {"id": 1382}}, "organization": {"id": 1468}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 391, "owner": {"id": 643}, "assignee": {"id": 531}, "project": {"id": 313, "owner": {"id": 729}, "assignee": {"id": 814}}, "task": {"id": 317, "owner": {"id": 91}, "assignee": {"id": 1081}}, "job": {"id": 396, "assignee": {"id": 1185}}, "issue": {"id": 307, "owner": {"id": 1219}, "assignee": {"id": 1345}}, "organization": {"id": 168}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 312, "owner": {"id": 681}, "assignee": {"id": 516}, "project": {"id": 307, "owner": {"id": 708}, "assignee": {"id": 867}}, "task": {"id": 358, "owner": {"id": 39}, "assignee": {"id": 1060}}, "job": {"id": 356, "assignee": {"id": 1147}}, "issue": {"id": 365, "owner": {"id": 1225}, "assignee": {"id": 1322}}, "organization": {"id": 180}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 333, "owner": {"id": 664}, "assignee": {"id": 577}, "project": {"id": 371, "owner": {"id": 738}, "assignee": {"id": 810}}, "task": {"id": 330, "owner": {"id": 74}, "assignee": {"id": 1090}}, "job": {"id": 380, "assignee": {"id": 1175}}, "issue": {"id": 397, "owner": {"id": 1280}, "assignee": {"id": 1301}}, "organization": {"id": 1472}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 326, "owner": {"id": 650}, "assignee": {"id": 562}, "project": {"id": 302, "owner": {"id": 783}, "assignee": {"id": 892}}, "task": {"id": 301, "owner": {"id": 83}, "assignee": {"id": 1056}}, "job": {"id": 322, "assignee": {"id": 1117}}, "issue": {"id": 353, "owner": {"id": 1207}, "assignee": {"id": 1315}}, "organization": {"id": 1418}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 671}, "assignee": {"id": 568}, "project": {"id": 361, "owner": {"id": 728}, "assignee": {"id": 805}}, "task": {"id": 350, "owner": {"id": 19}, "assignee": {"id": 1076}}, "job": {"id": 344, "assignee": {"id": 1114}}, "issue": {"id": 333, "owner": {"id": 1246}, "assignee": {"id": 1329}}, "organization": {"id": 155}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 309, "owner": {"id": 695}, "assignee": {"id": 512}, "project": {"id": 358, "owner": {"id": 736}, "assignee": {"id": 859}}, "task": {"id": 391, "owner": {"id": 69}, "assignee": {"id": 1013}}, "job": {"id": 316, "assignee": {"id": 1155}}, "issue": {"id": 399, "owner": {"id": 1273}, "assignee": {"id": 1312}}, "organization": {"id": 122}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 313, "owner": {"id": 613}, "assignee": {"id": 526}, "project": {"id": 367, "owner": {"id": 766}, "assignee": {"id": 840}}, "task": {"id": 322, "owner": {"id": 89}, "assignee": {"id": 1010}}, "job": {"id": 306, "assignee": {"id": 1150}}, "issue": {"id": 312, "owner": {"id": 1277}, "assignee": {"id": 1319}}, "organization": {"id": 1402}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 615}, "assignee": {"id": 551}, "project": {"id": 387, "owner": {"id": 724}, "assignee": {"id": 818}}, "task": {"id": 347, "owner": {"id": 95}, "assignee": {"id": 1064}}, "job": {"id": 337, "assignee": {"id": 1165}}, "issue": {"id": 351, "owner": {"id": 1281}, "assignee": {"id": 1363}}, "organization": {"id": 1431}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "owner": {"id": 604}, "assignee": {"id": 585}, "project": {"id": 380, "owner": {"id": 778}, "assignee": {"id": 888}}, "task": {"id": 342, "owner": {"id": 76}, "assignee": {"id": 1091}}, "job": {"id": 339, "assignee": {"id": 1149}}, "issue": {"id": 387, "owner": {"id": 1261}, "assignee": {"id": 1327}}, "organization": {"id": 162}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "owner": {"id": 611}, "assignee": {"id": 547}, "project": {"id": 336, "owner": {"id": 786}, "assignee": {"id": 810}}, "task": {"id": 394, "owner": {"id": 99}, "assignee": {"id": 1040}}, "job": {"id": 351, "assignee": {"id": 1149}}, "issue": {"id": 342, "owner": {"id": 1211}, "assignee": {"id": 1368}}, "organization": {"id": 100}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "owner": {"id": 664}, "assignee": {"id": 589}, "project": {"id": 329, "owner": {"id": 713}, "assignee": {"id": 856}}, "task": {"id": 339, "owner": {"id": 37}, "assignee": {"id": 1078}}, "job": {"id": 370, "assignee": {"id": 1147}}, "issue": {"id": 337, "owner": {"id": 1254}, "assignee": {"id": 1337}}, "organization": {"id": 1416}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "owner": {"id": 684}, "assignee": {"id": 574}, "project": {"id": 306, "owner": {"id": 781}, "assignee": {"id": 861}}, "task": {"id": 361, "owner": {"id": 72}, "assignee": {"id": 1083}}, "job": {"id": 369, "assignee": {"id": 1152}}, "issue": {"id": 368, "owner": {"id": 1260}, "assignee": {"id": 1322}}, "organization": {"id": 1420}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 664}, "assignee": {"id": 566}, "project": {"id": 357, "owner": {"id": 799}, "assignee": {"id": 824}}, "task": {"id": 399, "owner": {"id": 59}, "assignee": {"id": 1027}}, "job": {"id": 348, "assignee": {"id": 1165}}, "issue": {"id": 364, "owner": {"id": 1278}, "assignee": {"id": 1374}}, "organization": {"id": 117}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 681}, "assignee": {"id": 563}, "project": {"id": 351, "owner": {"id": 711}, "assignee": {"id": 835}}, "task": {"id": 354, "owner": {"id": 11}, "assignee": {"id": 1005}}, "job": {"id": 313, "assignee": {"id": 1180}}, "issue": {"id": 364, "owner": {"id": 1236}, "assignee": {"id": 1317}}, "organization": {"id": 185}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 674}, "assignee": {"id": 588}, "project": {"id": 379, "owner": {"id": 700}, "assignee": {"id": 801}}, "task": {"id": 302, "owner": {"id": 47}, "assignee": {"id": 1081}}, "job": {"id": 373, "assignee": {"id": 1130}}, "issue": {"id": 365, "owner": {"id": 1215}, "assignee": {"id": 1303}}, "organization": {"id": 1465}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "owner": {"id": 697}, "assignee": {"id": 522}, "project": {"id": 342, "owner": {"id": 737}, "assignee": {"id": 832}}, "task": {"id": 382, "owner": {"id": 66}, "assignee": {"id": 1027}}, "job": {"id": 341, "assignee": {"id": 1100}}, "issue": {"id": 314, "owner": {"id": 1213}, "assignee": {"id": 1324}}, "organization": {"id": 1411}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 382, "owner": {"id": 606}, "assignee": {"id": 543}, "project": {"id": 339, "owner": {"id": 730}, "assignee": {"id": 867}}, "task": {"id": 342, "owner": {"id": 52}, "assignee": {"id": 1085}}, "job": {"id": 315, "assignee": {"id": 1131}}, "issue": {"id": 371, "owner": {"id": 1207}, "assignee": {"id": 1382}}, "organization": {"id": 136}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 339, "owner": {"id": 626}, "assignee": {"id": 552}, "project": {"id": 347, "owner": {"id": 777}, "assignee": {"id": 869}}, "task": {"id": 382, "owner": {"id": 25}, "assignee": {"id": 1034}}, "job": {"id": 367, "assignee": {"id": 1127}}, "issue": {"id": 303, "owner": {"id": 1259}, "assignee": {"id": 1310}}, "organization": {"id": 106}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 676}, "assignee": {"id": 597}, "project": {"id": 339, "owner": {"id": 758}, "assignee": {"id": 824}}, "task": {"id": 383, "owner": {"id": 9}, "assignee": {"id": 1009}}, "job": {"id": 330, "assignee": {"id": 1110}}, "issue": {"id": 312, "owner": {"id": 1298}, "assignee": {"id": 1320}}, "organization": {"id": 1496}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 618}, "assignee": {"id": 545}, "project": {"id": 399, "owner": {"id": 724}, "assignee": {"id": 871}}, "task": {"id": 337, "owner": {"id": 39}, "assignee": {"id": 1059}}, "job": {"id": 317, "assignee": {"id": 1146}}, "issue": {"id": 306, "owner": {"id": 1286}, "assignee": {"id": 1308}}, "organization": {"id": 1473}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 631}, "assignee": {"id": 544}, "project": {"id": 328, "owner": {"id": 711}, "assignee": {"id": 835}}, "task": {"id": 366, "owner": {"id": 59}, "assignee": {"id": 1000}}, "job": {"id": 314, "assignee": {"id": 1101}}, "issue": {"id": 377, "owner": {"id": 1256}, "assignee": {"id": 1306}}, "organization": {"id": 114}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 340, "owner": {"id": 625}, "assignee": {"id": 511}, "project": {"id": 380, "owner": {"id": 780}, "assignee": {"id": 819}}, "task": {"id": 380, "owner": {"id": 44}, "assignee": {"id": 1044}}, "job": {"id": 388, "assignee": {"id": 1192}}, "issue": {"id": 348, "owner": {"id": 1280}, "assignee": {"id": 1336}}, "organization": {"id": 133}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 326, "owner": {"id": 619}, "assignee": {"id": 557}, "project": {"id": 345, "owner": {"id": 764}, "assignee": {"id": 803}}, "task": {"id": 344, "owner": {"id": 99}, "assignee": {"id": 1005}}, "job": {"id": 364, "assignee": {"id": 1133}}, "issue": {"id": 386, "owner": {"id": 1288}, "assignee": {"id": 1323}}, "organization": {"id": 1444}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 81, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 399, "owner": {"id": 612}, "assignee": {"id": 559}, "project": {"id": 350, "owner": {"id": 746}, "assignee": {"id": 887}}, "task": {"id": 377, "owner": {"id": 81}, "assignee": {"id": 1072}}, "job": {"id": 308, "assignee": {"id": 1161}}, "issue": {"id": 324, "owner": {"id": 1218}, "assignee": {"id": 1382}}, "organization": {"id": 1450}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 304, "owner": {"id": 650}, "assignee": {"id": 548}, "project": {"id": 346, "owner": {"id": 755}, "assignee": {"id": 810}}, "task": {"id": 366, "owner": {"id": 91}, "assignee": {"id": 1032}}, "job": {"id": 383, "assignee": {"id": 1162}}, "issue": {"id": 314, "owner": {"id": 1275}, "assignee": {"id": 1300}}, "organization": {"id": 137}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 668}, "assignee": {"id": 594}, "project": {"id": 398, "owner": {"id": 713}, "assignee": {"id": 824}}, "task": {"id": 342, "owner": {"id": 96}, "assignee": {"id": 1069}}, "job": {"id": 311, "assignee": {"id": 1179}}, "issue": {"id": 343, "owner": {"id": 1273}, "assignee": {"id": 1340}}, "organization": {"id": 160}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 315, "owner": {"id": 688}, "assignee": {"id": 552}, "project": {"id": 347, "owner": {"id": 713}, "assignee": {"id": 832}}, "task": {"id": 394, "owner": {"id": 72}, "assignee": {"id": 1038}}, "job": {"id": 305, "assignee": {"id": 1194}}, "issue": {"id": 358, "owner": {"id": 1230}, "assignee": {"id": 1335}}, "organization": {"id": 1476}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 353, "owner": {"id": 699}, "assignee": {"id": 523}, "project": {"id": 386, "owner": {"id": 771}, "assignee": {"id": 806}}, "task": {"id": 378, "owner": {"id": 95}, "assignee": {"id": 1089}}, "job": {"id": 399, "assignee": {"id": 1119}}, "issue": {"id": 335, "owner": {"id": 1213}, "assignee": {"id": 1341}}, "organization": {"id": 1494}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "owner": {"id": 669}, "assignee": {"id": 552}, "project": {"id": 373, "owner": {"id": 778}, "assignee": {"id": 844}}, "task": {"id": 338, "owner": {"id": 46}, "assignee": {"id": 1077}}, "job": {"id": 300, "assignee": {"id": 1135}}, "issue": {"id": 375, "owner": {"id": 1250}, "assignee": {"id": 1324}}, "organization": {"id": 193}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "owner": {"id": 649}, "assignee": {"id": 562}, "project": {"id": 355, "owner": {"id": 738}, "assignee": {"id": 879}}, "task": {"id": 319, "owner": {"id": 13}, "assignee": {"id": 1029}}, "job": {"id": 327, "assignee": {"id": 1156}}, "issue": {"id": 324, "owner": {"id": 1224}, "assignee": {"id": 1389}}, "organization": {"id": 129}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "owner": {"id": 695}, "assignee": {"id": 582}, "project": {"id": 307, "owner": {"id": 771}, "assignee": {"id": 811}}, "task": {"id": 337, "owner": {"id": 80}, "assignee": {"id": 1028}}, "job": {"id": 323, "assignee": {"id": 1198}}, "issue": {"id": 374, "owner": {"id": 1283}, "assignee": {"id": 1320}}, "organization": {"id": 1483}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "owner": {"id": 698}, "assignee": {"id": 527}, "project": {"id": 344, "owner": {"id": 777}, "assignee": {"id": 885}}, "task": {"id": 331, "owner": {"id": 75}, "assignee": {"id": 1050}}, "job": {"id": 329, "assignee": {"id": 1117}}, "issue": {"id": 359, "owner": {"id": 1272}, "assignee": {"id": 1393}}, "organization": {"id": 1434}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 652}, "assignee": {"id": 573}, "project": {"id": 357, "owner": {"id": 720}, "assignee": {"id": 876}}, "task": {"id": 394, "owner": {"id": 5}, "assignee": {"id": 1090}}, "job": {"id": 349, "assignee": {"id": 1154}}, "issue": {"id": 343, "owner": {"id": 1234}, "assignee": {"id": 1303}}, "organization": {"id": 110}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 348, "owner": {"id": 640}, "assignee": {"id": 541}, "project": {"id": 316, "owner": {"id": 717}, "assignee": {"id": 860}}, "task": {"id": 397, "owner": {"id": 17}, "assignee": {"id": 1071}}, "job": {"id": 319, "assignee": {"id": 1178}}, "issue": {"id": 380, "owner": {"id": 1204}, "assignee": {"id": 1334}}, "organization": {"id": 117}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 662}, "assignee": {"id": 532}, "project": {"id": 337, "owner": {"id": 709}, "assignee": {"id": 805}}, "task": {"id": 368, "owner": {"id": 80}, "assignee": {"id": 1045}}, "job": {"id": 302, "assignee": {"id": 1175}}, "issue": {"id": 334, "owner": {"id": 1280}, "assignee": {"id": 1398}}, "organization": {"id": 1432}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "owner": {"id": 627}, "assignee": {"id": 503}, "project": {"id": 313, "owner": {"id": 779}, "assignee": {"id": 866}}, "task": {"id": 376, "owner": {"id": 29}, "assignee": {"id": 1001}}, "job": {"id": 375, "assignee": {"id": 1132}}, "issue": {"id": 314, "owner": {"id": 1259}, "assignee": {"id": 1396}}, "organization": {"id": 1479}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 351, "owner": {"id": 681}, "assignee": {"id": 569}, "project": {"id": 342, "owner": {"id": 704}, "assignee": {"id": 877}}, "task": {"id": 338, "owner": {"id": 12}, "assignee": {"id": 1075}}, "job": {"id": 314, "assignee": {"id": 1177}}, "issue": {"id": 391, "owner": {"id": 1285}, "assignee": {"id": 1369}}, "organization": {"id": 180}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 607}, "assignee": {"id": 546}, "project": {"id": 373, "owner": {"id": 783}, "assignee": {"id": 885}}, "task": {"id": 338, "owner": {"id": 95}, "assignee": {"id": 1056}}, "job": {"id": 395, "assignee": {"id": 1164}}, "issue": {"id": 376, "owner": {"id": 1218}, "assignee": {"id": 1396}}, "organization": {"id": 155}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 311, "owner": {"id": 616}, "assignee": {"id": 595}, "project": {"id": 322, "owner": {"id": 740}, "assignee": {"id": 880}}, "task": {"id": 335, "owner": {"id": 41}, "assignee": {"id": 1005}}, "job": {"id": 352, "assignee": {"id": 1196}}, "issue": {"id": 319, "owner": {"id": 1251}, "assignee": {"id": 1359}}, "organization": {"id": 1442}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 397, "owner": {"id": 667}, "assignee": {"id": 530}, "project": {"id": 396, "owner": {"id": 724}, "assignee": {"id": 880}}, "task": {"id": 397, "owner": {"id": 5}, "assignee": {"id": 1082}}, "job": {"id": 382, "assignee": {"id": 1147}}, "issue": {"id": 399, "owner": {"id": 1232}, "assignee": {"id": 1350}}, "organization": {"id": 1417}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 323, "owner": {"id": 617}, "assignee": {"id": 505}, "project": {"id": 335, "owner": {"id": 713}, "assignee": {"id": 837}}, "task": {"id": 333, "owner": {"id": 44}, "assignee": {"id": 1089}}, "job": {"id": 335, "assignee": {"id": 1163}}, "issue": {"id": 379, "owner": {"id": 1251}, "assignee": {"id": 1359}}, "organization": {"id": 109}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 660}, "assignee": {"id": 547}, "project": {"id": 333, "owner": {"id": 710}, "assignee": {"id": 875}}, "task": {"id": 320, "owner": {"id": 74}, "assignee": {"id": 1019}}, "job": {"id": 353, "assignee": {"id": 1142}}, "issue": {"id": 330, "owner": {"id": 1207}, "assignee": {"id": 1314}}, "organization": {"id": 147}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 657}, "assignee": {"id": 590}, "project": {"id": 384, "owner": {"id": 722}, "assignee": {"id": 882}}, "task": {"id": 349, "owner": {"id": 96}, "assignee": {"id": 1000}}, "job": {"id": 322, "assignee": {"id": 1174}}, "issue": {"id": 302, "owner": {"id": 1271}, "assignee": {"id": 1319}}, "organization": {"id": 1456}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 301, "owner": {"id": 688}, "assignee": {"id": 514}, "project": {"id": 360, "owner": {"id": 758}, "assignee": {"id": 808}}, "task": {"id": 375, "owner": {"id": 33}, "assignee": {"id": 1007}}, "job": {"id": 359, "assignee": {"id": 1110}}, "issue": {"id": 373, "owner": {"id": 1250}, "assignee": {"id": 1337}}, "organization": {"id": 1493}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 392, "owner": {"id": 670}, "assignee": {"id": 552}, "project": {"id": 305, "owner": {"id": 790}, "assignee": {"id": 889}}, "task": {"id": 321, "owner": {"id": 99}, "assignee": {"id": 1001}}, "job": {"id": 379, "assignee": {"id": 1152}}, "issue": {"id": 300, "owner": {"id": 1247}, "assignee": {"id": 1328}}, "organization": {"id": 106}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 339, "owner": {"id": 641}, "assignee": {"id": 517}, "project": {"id": 346, "owner": {"id": 799}, "assignee": {"id": 836}}, "task": {"id": 342, "owner": {"id": 26}, "assignee": {"id": 1046}}, "job": {"id": 309, "assignee": {"id": 1148}}, "issue": {"id": 395, "owner": {"id": 1203}, "assignee": {"id": 1391}}, "organization": {"id": 124}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 326, "owner": {"id": 647}, "assignee": {"id": 586}, "project": {"id": 326, "owner": {"id": 751}, "assignee": {"id": 857}}, "task": {"id": 313, "owner": {"id": 85}, "assignee": {"id": 1093}}, "job": {"id": 386, "assignee": {"id": 1183}}, "issue": {"id": 324, "owner": {"id": 1239}, "assignee": {"id": 1340}}, "organization": {"id": 1410}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 328, "owner": {"id": 683}, "assignee": {"id": 511}, "project": {"id": 379, "owner": {"id": 714}, "assignee": {"id": 816}}, "task": {"id": 300, "owner": {"id": 57}, "assignee": {"id": 1038}}, "job": {"id": 351, "assignee": {"id": 1135}}, "issue": {"id": 309, "owner": {"id": 1206}, "assignee": {"id": 1327}}, "organization": {"id": 1406}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "owner": {"id": 655}, "assignee": {"id": 526}, "project": {"id": 335, "owner": {"id": 793}, "assignee": {"id": 833}}, "task": {"id": 343, "owner": {"id": 60}, "assignee": {"id": 1052}}, "job": {"id": 320, "assignee": {"id": 1132}}, "issue": {"id": 322, "owner": {"id": 1276}, "assignee": {"id": 1304}}, "organization": {"id": 114}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 320, "owner": {"id": 636}, "assignee": {"id": 596}, "project": {"id": 342, "owner": {"id": 785}, "assignee": {"id": 895}}, "task": {"id": 396, "owner": {"id": 91}, "assignee": {"id": 1050}}, "job": {"id": 394, "assignee": {"id": 1150}}, "issue": {"id": 312, "owner": {"id": 1284}, "assignee": {"id": 1381}}, "organization": {"id": 138}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "owner": {"id": 642}, "assignee": {"id": 524}, "project": {"id": 395, "owner": {"id": 723}, "assignee": {"id": 857}}, "task": {"id": 367, "owner": {"id": 22}, "assignee": {"id": 1004}}, "job": {"id": 377, "assignee": {"id": 1197}}, "issue": {"id": 362, "owner": {"id": 1269}, "assignee": {"id": 1314}}, "organization": {"id": 1498}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "owner": {"id": 619}, "assignee": {"id": 540}, "project": {"id": 355, "owner": {"id": 765}, "assignee": {"id": 886}}, "task": {"id": 322, "owner": {"id": 4}, "assignee": {"id": 1079}}, "job": {"id": 337, "assignee": {"id": 1152}}, "issue": {"id": 386, "owner": {"id": 1264}, "assignee": {"id": 1382}}, "organization": {"id": 1453}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 610}, "assignee": {"id": 507}, "project": {"id": 330, "owner": {"id": 711}, "assignee": {"id": 804}}, "task": {"id": 398, "owner": {"id": 82}, "assignee": {"id": 1020}}, "job": {"id": 360, "assignee": {"id": 1160}}, "issue": {"id": 304, "owner": {"id": 1216}, "assignee": {"id": 1327}}, "organization": {"id": 196}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 614}, "assignee": {"id": 597}, "project": {"id": 393, "owner": {"id": 707}, "assignee": {"id": 873}}, "task": {"id": 376, "owner": {"id": 50}, "assignee": {"id": 1066}}, "job": {"id": 317, "assignee": {"id": 1115}}, "issue": {"id": 317, "owner": {"id": 1206}, "assignee": {"id": 1373}}, "organization": {"id": 163}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "owner": {"id": 631}, "assignee": {"id": 520}, "project": {"id": 320, "owner": {"id": 765}, "assignee": {"id": 867}}, "task": {"id": 366, "owner": {"id": 79}, "assignee": {"id": 1033}}, "job": {"id": 326, "assignee": {"id": 1111}}, "issue": {"id": 397, "owner": {"id": 1204}, "assignee": {"id": 1399}}, "organization": {"id": 1407}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "owner": {"id": 633}, "assignee": {"id": 546}, "project": {"id": 317, "owner": {"id": 798}, "assignee": {"id": 853}}, "task": {"id": 322, "owner": {"id": 22}, "assignee": {"id": 1013}}, "job": {"id": 329, "assignee": {"id": 1156}}, "issue": {"id": 375, "owner": {"id": 1283}, "assignee": {"id": 1385}}, "organization": {"id": 1476}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 342, "owner": {"id": 640}, "assignee": {"id": 510}, "project": {"id": 317, "owner": {"id": 752}, "assignee": {"id": 839}}, "task": {"id": 390, "owner": {"id": 6}, "assignee": {"id": 1078}}, "job": {"id": 358, "assignee": {"id": 1120}}, "issue": {"id": 323, "owner": {"id": 1200}, "assignee": {"id": 1315}}, "organization": {"id": 153}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 369, "owner": {"id": 633}, "assignee": {"id": 593}, "project": {"id": 340, "owner": {"id": 706}, "assignee": {"id": 816}}, "task": {"id": 396, "owner": {"id": 20}, "assignee": {"id": 1084}}, "job": {"id": 390, "assignee": {"id": 1143}}, "issue": {"id": 316, "owner": {"id": 1291}, "assignee": {"id": 1393}}, "organization": {"id": 195}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 369, "owner": {"id": 629}, "assignee": {"id": 593}, "project": {"id": 366, "owner": {"id": 792}, "assignee": {"id": 870}}, "task": {"id": 340, "owner": {"id": 99}, "assignee": {"id": 1016}}, "job": {"id": 370, "assignee": {"id": 1107}}, "issue": {"id": 393, "owner": {"id": 1233}, "assignee": {"id": 1369}}, "organization": {"id": 1490}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 680}, "assignee": {"id": 522}, "project": {"id": 359, "owner": {"id": 737}, "assignee": {"id": 844}}, "task": {"id": 351, "owner": {"id": 45}, "assignee": {"id": 1094}}, "job": {"id": 389, "assignee": {"id": 1188}}, "issue": {"id": 350, "owner": {"id": 1222}, "assignee": {"id": 1396}}, "organization": {"id": 1496}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 378, "owner": {"id": 691}, "assignee": {"id": 577}, "project": {"id": 393, "owner": {"id": 740}, "assignee": {"id": 858}}, "task": {"id": 373, "owner": {"id": 51}, "assignee": {"id": 1077}}, "job": {"id": 360, "assignee": {"id": 1125}}, "issue": {"id": 319, "owner": {"id": 1207}, "assignee": {"id": 1335}}, "organization": {"id": 167}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 658}, "assignee": {"id": 597}, "project": {"id": 338, "owner": {"id": 759}, "assignee": {"id": 857}}, "task": {"id": 343, "owner": {"id": 38}, "assignee": {"id": 1010}}, "job": {"id": 373, "assignee": {"id": 1164}}, "issue": {"id": 304, "owner": {"id": 1269}, "assignee": {"id": 1326}}, "organization": {"id": 136}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 382, "owner": {"id": 614}, "assignee": {"id": 556}, "project": {"id": 307, "owner": {"id": 732}, "assignee": {"id": 802}}, "task": {"id": 378, "owner": {"id": 7}, "assignee": {"id": 1059}}, "job": {"id": 378, "assignee": {"id": 1171}}, "issue": {"id": 337, "owner": {"id": 1281}, "assignee": {"id": 1356}}, "organization": {"id": 1450}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 337, "owner": {"id": 602}, "assignee": {"id": 570}, "project": {"id": 320, "owner": {"id": 708}, "assignee": {"id": 897}}, "task": {"id": 356, "owner": {"id": 5}, "assignee": {"id": 1041}}, "job": {"id": 325, "assignee": {"id": 1151}}, "issue": {"id": 353, "owner": {"id": 1231}, "assignee": {"id": 1341}}, "organization": {"id": 1486}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 315, "owner": {"id": 695}, "assignee": {"id": 515}, "project": {"id": 382, "owner": {"id": 770}, "assignee": {"id": 887}}, "task": {"id": 335, "owner": {"id": 52}, "assignee": {"id": 1073}}, "job": {"id": 307, "assignee": {"id": 1192}}, "issue": {"id": 350, "owner": {"id": 1241}, "assignee": {"id": 1302}}, "organization": {"id": 110}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 652}, "assignee": {"id": 520}, "project": {"id": 333, "owner": {"id": 740}, "assignee": {"id": 829}}, "task": {"id": 340, "owner": {"id": 80}, "assignee": {"id": 1031}}, "job": {"id": 399, "assignee": {"id": 1150}}, "issue": {"id": 311, "owner": {"id": 1223}, "assignee": {"id": 1334}}, "organization": {"id": 181}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 309, "owner": {"id": 639}, "assignee": {"id": 591}, "project": {"id": 375, "owner": {"id": 742}, "assignee": {"id": 859}}, "task": {"id": 379, "owner": {"id": 50}, "assignee": {"id": 1071}}, "job": {"id": 348, "assignee": {"id": 1191}}, "issue": {"id": 340, "owner": {"id": 1278}, "assignee": {"id": 1391}}, "organization": {"id": 1483}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 674}, "assignee": {"id": 548}, "project": {"id": 374, "owner": {"id": 714}, "assignee": {"id": 886}}, "task": {"id": 323, "owner": {"id": 58}, "assignee": {"id": 1025}}, "job": {"id": 303, "assignee": {"id": 1122}}, "issue": {"id": 390, "owner": {"id": 1230}, "assignee": {"id": 1391}}, "organization": {"id": 1440}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "owner": {"id": 620}, "assignee": {"id": 506}, "project": {"id": 348, "owner": {"id": 746}, "assignee": {"id": 826}}, "task": {"id": 312, "owner": {"id": 64}, "assignee": {"id": 1058}}, "job": {"id": 335, "assignee": {"id": 1149}}, "issue": {"id": 321, "owner": {"id": 1270}, "assignee": {"id": 1339}}, "organization": {"id": 154}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "owner": {"id": 696}, "assignee": {"id": 560}, "project": {"id": 373, "owner": {"id": 725}, "assignee": {"id": 887}}, "task": {"id": 346, "owner": {"id": 52}, "assignee": {"id": 1082}}, "job": {"id": 380, "assignee": {"id": 1116}}, "issue": {"id": 364, "owner": {"id": 1245}, "assignee": {"id": 1353}}, "organization": {"id": 142}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "owner": {"id": 645}, "assignee": {"id": 593}, "project": {"id": 362, "owner": {"id": 701}, "assignee": {"id": 845}}, "task": {"id": 306, "owner": {"id": 43}, "assignee": {"id": 1070}}, "job": {"id": 356, "assignee": {"id": 1150}}, "issue": {"id": 355, "owner": {"id": 1287}, "assignee": {"id": 1345}}, "organization": {"id": 1417}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 658}, "assignee": {"id": 582}, "project": {"id": 328, "owner": {"id": 765}, "assignee": {"id": 896}}, "task": {"id": 312, "owner": {"id": 67}, "assignee": {"id": 1045}}, "job": {"id": 357, "assignee": {"id": 1123}}, "issue": {"id": 334, "owner": {"id": 1262}, "assignee": {"id": 1343}}, "organization": {"id": 1405}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "owner": {"id": 644}, "assignee": {"id": 560}, "project": {"id": 390, "owner": {"id": 751}, "assignee": {"id": 880}}, "task": {"id": 352, "owner": {"id": 20}, "assignee": {"id": 1014}}, "job": {"id": 360, "assignee": {"id": 1107}}, "issue": {"id": 337, "owner": {"id": 1291}, "assignee": {"id": 1313}}, "organization": {"id": 118}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 343, "owner": {"id": 645}, "assignee": {"id": 585}, "project": {"id": 303, "owner": {"id": 712}, "assignee": {"id": 832}}, "task": {"id": 314, "owner": {"id": 1}, "assignee": {"id": 1091}}, "job": {"id": 315, "assignee": {"id": 1108}}, "issue": {"id": 319, "owner": {"id": 1232}, "assignee": {"id": 1353}}, "organization": {"id": 114}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "owner": {"id": 641}, "assignee": {"id": 543}, "project": {"id": 345, "owner": {"id": 730}, "assignee": {"id": 888}}, "task": {"id": 399, "owner": {"id": 40}, "assignee": {"id": 1055}}, "job": {"id": 361, "assignee": {"id": 1182}}, "issue": {"id": 323, "owner": {"id": 1272}, "assignee": {"id": 1389}}, "organization": {"id": 1483}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 662}, "assignee": {"id": 538}, "project": {"id": 348, "owner": {"id": 783}, "assignee": {"id": 842}}, "task": {"id": 332, "owner": {"id": 89}, "assignee": {"id": 1010}}, "job": {"id": 352, "assignee": {"id": 1142}}, "issue": {"id": 365, "owner": {"id": 1236}, "assignee": {"id": 1343}}, "organization": {"id": 1412}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 690}, "assignee": {"id": 593}, "project": {"id": 371, "owner": {"id": 763}, "assignee": {"id": 848}}, "task": {"id": 377, "owner": {"id": 1}, "assignee": {"id": 1079}}, "job": {"id": 389, "assignee": {"id": 1120}}, "issue": {"id": 326, "owner": {"id": 1271}, "assignee": {"id": 1310}}, "organization": {"id": 136}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 380, "owner": {"id": 664}, "assignee": {"id": 595}, "project": {"id": 374, "owner": {"id": 736}, "assignee": {"id": 829}}, "task": {"id": 317, "owner": {"id": 67}, "assignee": {"id": 1077}}, "job": {"id": 312, "assignee": {"id": 1160}}, "issue": {"id": 327, "owner": {"id": 1267}, "assignee": {"id": 1395}}, "organization": {"id": 114}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 369, "owner": {"id": 678}, "assignee": {"id": 518}, "project": {"id": 373, "owner": {"id": 780}, "assignee": {"id": 829}}, "task": {"id": 371, "owner": {"id": 5}, "assignee": {"id": 1062}}, "job": {"id": 314, "assignee": {"id": 1118}}, "issue": {"id": 323, "owner": {"id": 1203}, "assignee": {"id": 1326}}, "organization": {"id": 1478}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 364, "owner": {"id": 671}, "assignee": {"id": 537}, "project": {"id": 343, "owner": {"id": 781}, "assignee": {"id": 875}}, "task": {"id": 304, "owner": {"id": 91}, "assignee": {"id": 1090}}, "job": {"id": 385, "assignee": {"id": 1180}}, "issue": {"id": 342, "owner": {"id": 1269}, "assignee": {"id": 1336}}, "organization": {"id": 1410}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 369, "owner": {"id": 678}, "assignee": {"id": 598}, "project": {"id": 386, "owner": {"id": 794}, "assignee": {"id": 838}}, "task": {"id": 337, "owner": {"id": 32}, "assignee": {"id": 1054}}, "job": {"id": 307, "assignee": {"id": 1122}}, "issue": {"id": 384, "owner": {"id": 1221}, "assignee": {"id": 1362}}, "organization": {"id": 122}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 643}, "assignee": {"id": 559}, "project": {"id": 361, "owner": {"id": 798}, "assignee": {"id": 856}}, "task": {"id": 314, "owner": {"id": 43}, "assignee": {"id": 1018}}, "job": {"id": 345, "assignee": {"id": 1137}}, "issue": {"id": 317, "owner": {"id": 1260}, "assignee": {"id": 1366}}, "organization": {"id": 153}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"id": 303, "owner": {"id": 698}, "assignee": {"id": 526}, "project": {"id": 361, "owner": {"id": 774}, "assignee": {"id": 855}}, "task": {"id": 324, "owner": {"id": 30}, "assignee": {"id": 1077}}, "job": {"id": 396, "assignee": {"id": 1145}}, "issue": {"id": 334, "owner": {"id": 1207}, "assignee": {"id": 1308}}, "organization": {"id": 1471}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 677}, "assignee": {"id": 557}, "project": {"id": 314, "owner": {"id": 785}, "assignee": {"id": 825}}, "task": {"id": 323, "owner": {"id": 66}, "assignee": {"id": 1052}}, "job": {"id": 332, "assignee": {"id": 1138}}, "issue": {"id": 341, "owner": {"id": 1288}, "assignee": {"id": 1376}}, "organization": {"id": 1494}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 357, "owner": {"id": 633}, "assignee": {"id": 573}, "project": {"id": 399, "owner": {"id": 776}, "assignee": {"id": 863}}, "task": {"id": 321, "owner": {"id": 966}, "assignee": {"id": 3}}, "job": {"id": 367, "assignee": {"id": 1120}}, "issue": {"id": 375, "owner": {"id": 1295}, "assignee": {"id": 1398}}, "organization": {"id": 112}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 383, "owner": {"id": 665}, "assignee": {"id": 541}, "project": {"id": 322, "owner": {"id": 746}, "assignee": {"id": 819}}, "task": {"id": 346, "owner": {"id": 935}, "assignee": {"id": 39}}, "job": {"id": 346, "assignee": {"id": 1139}}, "issue": {"id": 336, "owner": {"id": 1247}, "assignee": {"id": 1310}}, "organization": {"id": 153}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 349, "owner": {"id": 694}, "assignee": {"id": 583}, "project": {"id": 339, "owner": {"id": 789}, "assignee": {"id": 863}}, "task": {"id": 341, "owner": {"id": 979}, "assignee": {"id": 36}}, "job": {"id": 371, "assignee": {"id": 1163}}, "issue": {"id": 333, "owner": {"id": 1216}, "assignee": {"id": 1382}}, "organization": {"id": 1423}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 368, "owner": {"id": 692}, "assignee": {"id": 543}, "project": {"id": 357, "owner": {"id": 747}, "assignee": {"id": 871}}, "task": {"id": 325, "owner": {"id": 951}, "assignee": {"id": 27}}, "job": {"id": 335, "assignee": {"id": 1152}}, "issue": {"id": 353, "owner": {"id": 1255}, "assignee": {"id": 1327}}, "organization": {"id": 1466}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 644}, "assignee": {"id": 566}, "project": {"id": 341, "owner": {"id": 746}, "assignee": {"id": 873}}, "task": {"id": 390, "owner": {"id": 943}, "assignee": {"id": 61}}, "job": {"id": 366, "assignee": {"id": 1160}}, "issue": {"id": 332, "owner": {"id": 1208}, "assignee": {"id": 1368}}, "organization": {"id": 128}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "owner": {"id": 657}, "assignee": {"id": 522}, "project": {"id": 304, "owner": {"id": 785}, "assignee": {"id": 886}}, "task": {"id": 379, "owner": {"id": 938}, "assignee": {"id": 36}}, "job": {"id": 376, "assignee": {"id": 1152}}, "issue": {"id": 395, "owner": {"id": 1268}, "assignee": {"id": 1369}}, "organization": {"id": 171}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 686}, "assignee": {"id": 531}, "project": {"id": 369, "owner": {"id": 780}, "assignee": {"id": 805}}, "task": {"id": 330, "owner": {"id": 968}, "assignee": {"id": 88}}, "job": {"id": 343, "assignee": {"id": 1119}}, "issue": {"id": 360, "owner": {"id": 1212}, "assignee": {"id": 1369}}, "organization": {"id": 1403}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 627}, "assignee": {"id": 518}, "project": {"id": 365, "owner": {"id": 771}, "assignee": {"id": 863}}, "task": {"id": 321, "owner": {"id": 919}, "assignee": {"id": 69}}, "job": {"id": 326, "assignee": {"id": 1110}}, "issue": {"id": 391, "owner": {"id": 1271}, "assignee": {"id": 1388}}, "organization": {"id": 1497}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 343, "owner": {"id": 698}, "assignee": {"id": 508}, "project": {"id": 383, "owner": {"id": 773}, "assignee": {"id": 875}}, "task": {"id": 396, "owner": {"id": 993}, "assignee": {"id": 62}}, "job": {"id": 353, "assignee": {"id": 1122}}, "issue": {"id": 394, "owner": {"id": 1253}, "assignee": {"id": 1374}}, "organization": {"id": 106}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "owner": {"id": 616}, "assignee": {"id": 589}, "project": {"id": 315, "owner": {"id": 731}, "assignee": {"id": 899}}, "task": {"id": 336, "owner": {"id": 949}, "assignee": {"id": 44}}, "job": {"id": 315, "assignee": {"id": 1175}}, "issue": {"id": 379, "owner": {"id": 1226}, "assignee": {"id": 1321}}, "organization": {"id": 115}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 623}, "assignee": {"id": 549}, "project": {"id": 348, "owner": {"id": 732}, "assignee": {"id": 886}}, "task": {"id": 358, "owner": {"id": 941}, "assignee": {"id": 95}}, "job": {"id": 303, "assignee": {"id": 1116}}, "issue": {"id": 345, "owner": {"id": 1241}, "assignee": {"id": 1367}}, "organization": {"id": 1491}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "owner": {"id": 666}, "assignee": {"id": 537}, "project": {"id": 398, "owner": {"id": 774}, "assignee": {"id": 840}}, "task": {"id": 300, "owner": {"id": 907}, "assignee": {"id": 0}}, "job": {"id": 330, "assignee": {"id": 1135}}, "issue": {"id": 312, "owner": {"id": 1229}, "assignee": {"id": 1350}}, "organization": {"id": 1409}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 622}, "assignee": {"id": 576}, "project": {"id": 322, "owner": {"id": 731}, "assignee": {"id": 822}}, "task": {"id": 304, "owner": {"id": 984}, "assignee": {"id": 3}}, "job": {"id": 307, "assignee": {"id": 1131}}, "issue": {"id": 338, "owner": {"id": 1203}, "assignee": {"id": 1386}}, "organization": {"id": 194}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 379, "owner": {"id": 663}, "assignee": {"id": 592}, "project": {"id": 302, "owner": {"id": 716}, "assignee": {"id": 863}}, "task": {"id": 327, "owner": {"id": 981}, "assignee": {"id": 99}}, "job": {"id": 349, "assignee": {"id": 1188}}, "issue": {"id": 349, "owner": {"id": 1206}, "assignee": {"id": 1327}}, "organization": {"id": 139}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 343, "owner": {"id": 680}, "assignee": {"id": 518}, "project": {"id": 360, "owner": {"id": 773}, "assignee": {"id": 844}}, "task": {"id": 320, "owner": {"id": 985}, "assignee": {"id": 79}}, "job": {"id": 317, "assignee": {"id": 1181}}, "issue": {"id": 357, "owner": {"id": 1227}, "assignee": {"id": 1337}}, "organization": {"id": 1434}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 311, "owner": {"id": 653}, "assignee": {"id": 562}, "project": {"id": 398, "owner": {"id": 746}, "assignee": {"id": 863}}, "task": {"id": 362, "owner": {"id": 949}, "assignee": {"id": 66}}, "job": {"id": 331, "assignee": {"id": 1125}}, "issue": {"id": 383, "owner": {"id": 1254}, "assignee": {"id": 1363}}, "organization": {"id": 1422}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 371, "owner": {"id": 694}, "assignee": {"id": 554}, "project": {"id": 305, "owner": {"id": 749}, "assignee": {"id": 809}}, "task": {"id": 360, "owner": {"id": 910}, "assignee": {"id": 69}}, "job": {"id": 385, "assignee": {"id": 1122}}, "issue": {"id": 360, "owner": {"id": 1217}, "assignee": {"id": 1310}}, "organization": {"id": 110}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 381, "owner": {"id": 627}, "assignee": {"id": 586}, "project": {"id": 338, "owner": {"id": 761}, "assignee": {"id": 895}}, "task": {"id": 391, "owner": {"id": 964}, "assignee": {"id": 23}}, "job": {"id": 391, "assignee": {"id": 1159}}, "issue": {"id": 395, "owner": {"id": 1201}, "assignee": {"id": 1395}}, "organization": {"id": 105}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 693}, "assignee": {"id": 578}, "project": {"id": 360, "owner": {"id": 760}, "assignee": {"id": 848}}, "task": {"id": 320, "owner": {"id": 957}, "assignee": {"id": 94}}, "job": {"id": 328, "assignee": {"id": 1175}}, "issue": {"id": 357, "owner": {"id": 1295}, "assignee": {"id": 1394}}, "organization": {"id": 1425}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 387, "owner": {"id": 610}, "assignee": {"id": 596}, "project": {"id": 305, "owner": {"id": 740}, "assignee": {"id": 892}}, "task": {"id": 347, "owner": {"id": 921}, "assignee": {"id": 35}}, "job": {"id": 312, "assignee": {"id": 1114}}, "issue": {"id": 383, "owner": {"id": 1213}, "assignee": {"id": 1303}}, "organization": {"id": 1456}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 319, "owner": {"id": 662}, "assignee": {"id": 513}, "project": {"id": 328, "owner": {"id": 706}, "assignee": {"id": 893}}, "task": {"id": 300, "owner": {"id": 944}, "assignee": {"id": 63}}, "job": {"id": 363, "assignee": {"id": 1194}}, "issue": {"id": 394, "owner": {"id": 1289}, "assignee": {"id": 1384}}, "organization": {"id": 118}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 349, "owner": {"id": 642}, "assignee": {"id": 555}, "project": {"id": 309, "owner": {"id": 710}, "assignee": {"id": 889}}, "task": {"id": 390, "owner": {"id": 966}, "assignee": {"id": 15}}, "job": {"id": 308, "assignee": {"id": 1114}}, "issue": {"id": 316, "owner": {"id": 1223}, "assignee": {"id": 1339}}, "organization": {"id": 187}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 606}, "assignee": {"id": 572}, "project": {"id": 319, "owner": {"id": 773}, "assignee": {"id": 827}}, "task": {"id": 335, "owner": {"id": 949}, "assignee": {"id": 51}}, "job": {"id": 375, "assignee": {"id": 1196}}, "issue": {"id": 398, "owner": {"id": 1286}, "assignee": {"id": 1339}}, "organization": {"id": 1465}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 336, "owner": {"id": 637}, "assignee": {"id": 569}, "project": {"id": 334, "owner": {"id": 733}, "assignee": {"id": 800}}, "task": {"id": 382, "owner": {"id": 996}, "assignee": {"id": 90}}, "job": {"id": 395, "assignee": {"id": 1115}}, "issue": {"id": 329, "owner": {"id": 1263}, "assignee": {"id": 1357}}, "organization": {"id": 1467}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "owner": {"id": 673}, "assignee": {"id": 580}, "project": {"id": 330, "owner": {"id": 762}, "assignee": {"id": 822}}, "task": {"id": 326, "owner": {"id": 954}, "assignee": {"id": 99}}, "job": {"id": 322, "assignee": {"id": 1140}}, "issue": {"id": 317, "owner": {"id": 1203}, "assignee": {"id": 1336}}, "organization": {"id": 175}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "owner": {"id": 685}, "assignee": {"id": 550}, "project": {"id": 307, "owner": {"id": 720}, "assignee": {"id": 869}}, "task": {"id": 340, "owner": {"id": 917}, "assignee": {"id": 65}}, "job": {"id": 377, "assignee": {"id": 1149}}, "issue": {"id": 337, "owner": {"id": 1278}, "assignee": {"id": 1383}}, "organization": {"id": 129}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "owner": {"id": 603}, "assignee": {"id": 596}, "project": {"id": 336, "owner": {"id": 767}, "assignee": {"id": 839}}, "task": {"id": 305, "owner": {"id": 986}, "assignee": {"id": 92}}, "job": {"id": 338, "assignee": {"id": 1142}}, "issue": {"id": 339, "owner": {"id": 1267}, "assignee": {"id": 1343}}, "organization": {"id": 1454}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 671}, "assignee": {"id": 542}, "project": {"id": 368, "owner": {"id": 746}, "assignee": {"id": 841}}, "task": {"id": 353, "owner": {"id": 961}, "assignee": {"id": 56}}, "job": {"id": 346, "assignee": {"id": 1156}}, "issue": {"id": 382, "owner": {"id": 1250}, "assignee": {"id": 1366}}, "organization": {"id": 1438}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 639}, "assignee": {"id": 585}, "project": {"id": 379, "owner": {"id": 737}, "assignee": {"id": 809}}, "task": {"id": 397, "owner": {"id": 957}, "assignee": {"id": 22}}, "job": {"id": 370, "assignee": {"id": 1141}}, "issue": {"id": 384, "owner": {"id": 1225}, "assignee": {"id": 1312}}, "organization": {"id": 168}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 699}, "assignee": {"id": 511}, "project": {"id": 371, "owner": {"id": 736}, "assignee": {"id": 854}}, "task": {"id": 346, "owner": {"id": 937}, "assignee": {"id": 1}}, "job": {"id": 378, "assignee": {"id": 1178}}, "issue": {"id": 374, "owner": {"id": 1273}, "assignee": {"id": 1322}}, "organization": {"id": 169}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 688}, "assignee": {"id": 557}, "project": {"id": 375, "owner": {"id": 761}, "assignee": {"id": 831}}, "task": {"id": 317, "owner": {"id": 975}, "assignee": {"id": 47}}, "job": {"id": 303, "assignee": {"id": 1194}}, "issue": {"id": 330, "owner": {"id": 1281}, "assignee": {"id": 1327}}, "organization": {"id": 1477}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "owner": {"id": 644}, "assignee": {"id": 566}, "project": {"id": 397, "owner": {"id": 785}, "assignee": {"id": 851}}, "task": {"id": 353, "owner": {"id": 907}, "assignee": {"id": 88}}, "job": {"id": 365, "assignee": {"id": 1152}}, "issue": {"id": 397, "owner": {"id": 1291}, "assignee": {"id": 1340}}, "organization": {"id": 1411}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 338, "owner": {"id": 610}, "assignee": {"id": 542}, "project": {"id": 339, "owner": {"id": 771}, "assignee": {"id": 830}}, "task": {"id": 393, "owner": {"id": 904}, "assignee": {"id": 60}}, "job": {"id": 323, "assignee": {"id": 1167}}, "issue": {"id": 309, "owner": {"id": 1206}, "assignee": {"id": 1380}}, "organization": {"id": 144}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 373, "owner": {"id": 644}, "assignee": {"id": 532}, "project": {"id": 303, "owner": {"id": 730}, "assignee": {"id": 849}}, "task": {"id": 377, "owner": {"id": 915}, "assignee": {"id": 27}}, "job": {"id": 392, "assignee": {"id": 1143}}, "issue": {"id": 387, "owner": {"id": 1274}, "assignee": {"id": 1319}}, "organization": {"id": 155}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 324, "owner": {"id": 653}, "assignee": {"id": 597}, "project": {"id": 378, "owner": {"id": 748}, "assignee": {"id": 834}}, "task": {"id": 377, "owner": {"id": 945}, "assignee": {"id": 1}}, "job": {"id": 369, "assignee": {"id": 1101}}, "issue": {"id": 380, "owner": {"id": 1208}, "assignee": {"id": 1350}}, "organization": {"id": 1493}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 348, "owner": {"id": 685}, "assignee": {"id": 543}, "project": {"id": 353, "owner": {"id": 761}, "assignee": {"id": 867}}, "task": {"id": 334, "owner": {"id": 902}, "assignee": {"id": 87}}, "job": {"id": 327, "assignee": {"id": 1191}}, "issue": {"id": 361, "owner": {"id": 1267}, "assignee": {"id": 1338}}, "organization": {"id": 1478}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 687}, "assignee": {"id": 599}, "project": {"id": 385, "owner": {"id": 789}, "assignee": {"id": 865}}, "task": {"id": 319, "owner": {"id": 917}, "assignee": {"id": 88}}, "job": {"id": 397, "assignee": {"id": 1151}}, "issue": {"id": 340, "owner": {"id": 1294}, "assignee": {"id": 1367}}, "organization": {"id": 153}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 670}, "assignee": {"id": 516}, "project": {"id": 329, "owner": {"id": 744}, "assignee": {"id": 863}}, "task": {"id": 325, "owner": {"id": 974}, "assignee": {"id": 34}}, "job": {"id": 317, "assignee": {"id": 1147}}, "issue": {"id": 312, "owner": {"id": 1251}, "assignee": {"id": 1388}}, "organization": {"id": 159}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 636}, "assignee": {"id": 550}, "project": {"id": 300, "owner": {"id": 766}, "assignee": {"id": 863}}, "task": {"id": 344, "owner": {"id": 997}, "assignee": {"id": 34}}, "job": {"id": 375, "assignee": {"id": 1195}}, "issue": {"id": 375, "owner": {"id": 1259}, "assignee": {"id": 1312}}, "organization": {"id": 1409}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 683}, "assignee": {"id": 559}, "project": {"id": 368, "owner": {"id": 756}, "assignee": {"id": 832}}, "task": {"id": 338, "owner": {"id": 957}, "assignee": {"id": 53}}, "job": {"id": 321, "assignee": {"id": 1176}}, "issue": {"id": 389, "owner": {"id": 1270}, "assignee": {"id": 1327}}, "organization": {"id": 1410}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 395, "owner": {"id": 643}, "assignee": {"id": 501}, "project": {"id": 303, "owner": {"id": 767}, "assignee": {"id": 823}}, "task": {"id": 320, "owner": {"id": 999}, "assignee": {"id": 80}}, "job": {"id": 310, "assignee": {"id": 1189}}, "issue": {"id": 304, "owner": {"id": 1284}, "assignee": {"id": 1309}}, "organization": {"id": 114}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 365, "owner": {"id": 672}, "assignee": {"id": 527}, "project": {"id": 329, "owner": {"id": 746}, "assignee": {"id": 800}}, "task": {"id": 396, "owner": {"id": 983}, "assignee": {"id": 56}}, "job": {"id": 318, "assignee": {"id": 1116}}, "issue": {"id": 388, "owner": {"id": 1233}, "assignee": {"id": 1365}}, "organization": {"id": 129}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 333, "owner": {"id": 656}, "assignee": {"id": 548}, "project": {"id": 329, "owner": {"id": 737}, "assignee": {"id": 897}}, "task": {"id": 304, "owner": {"id": 944}, "assignee": {"id": 54}}, "job": {"id": 382, "assignee": {"id": 1125}}, "issue": {"id": 346, "owner": {"id": 1260}, "assignee": {"id": 1355}}, "organization": {"id": 1490}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 628}, "assignee": {"id": 568}, "project": {"id": 371, "owner": {"id": 717}, "assignee": {"id": 887}}, "task": {"id": 374, "owner": {"id": 965}, "assignee": {"id": 36}}, "job": {"id": 308, "assignee": {"id": 1140}}, "issue": {"id": 337, "owner": {"id": 1264}, "assignee": {"id": 1354}}, "organization": {"id": 1420}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 389, "owner": {"id": 603}, "assignee": {"id": 560}, "project": {"id": 326, "owner": {"id": 776}, "assignee": {"id": 852}}, "task": {"id": 353, "owner": {"id": 981}, "assignee": {"id": 94}}, "job": {"id": 392, "assignee": {"id": 1142}}, "issue": {"id": 337, "owner": {"id": 1229}, "assignee": {"id": 1389}}, "organization": {"id": 182}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "owner": {"id": 668}, "assignee": {"id": 506}, "project": {"id": 304, "owner": {"id": 705}, "assignee": {"id": 889}}, "task": {"id": 345, "owner": {"id": 963}, "assignee": {"id": 95}}, "job": {"id": 352, "assignee": {"id": 1194}}, "issue": {"id": 317, "owner": {"id": 1205}, "assignee": {"id": 1362}}, "organization": {"id": 157}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "owner": {"id": 604}, "assignee": {"id": 534}, "project": {"id": 385, "owner": {"id": 741}, "assignee": {"id": 854}}, "task": {"id": 344, "owner": {"id": 966}, "assignee": {"id": 38}}, "job": {"id": 386, "assignee": {"id": 1199}}, "issue": {"id": 380, "owner": {"id": 1286}, "assignee": {"id": 1334}}, "organization": {"id": 1408}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"id": 358, "owner": {"id": 639}, "assignee": {"id": 560}, "project": {"id": 335, "owner": {"id": 749}, "assignee": {"id": 893}}, "task": {"id": 358, "owner": {"id": 952}, "assignee": {"id": 94}}, "job": {"id": 375, "assignee": {"id": 1182}}, "issue": {"id": 361, "owner": {"id": 1232}, "assignee": {"id": 1318}}, "organization": {"id": 1412}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "owner": {"id": 692}, "assignee": {"id": 555}, "project": {"id": 304, "owner": {"id": 765}, "assignee": {"id": 871}}, "task": {"id": 372, "owner": {"id": 910}, "assignee": {"id": 55}}, "job": {"id": 356, "assignee": {"id": 1146}}, "issue": {"id": 344, "owner": {"id": 1240}, "assignee": {"id": 1337}}, "organization": {"id": 144}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "owner": {"id": 676}, "assignee": {"id": 538}, "project": {"id": 327, "owner": {"id": 746}, "assignee": {"id": 898}}, "task": {"id": 374, "owner": {"id": 901}, "assignee": {"id": 73}}, "job": {"id": 384, "assignee": {"id": 1108}}, "issue": {"id": 368, "owner": {"id": 1282}, "assignee": {"id": 1309}}, "organization": {"id": 160}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 686}, "assignee": {"id": 545}, "project": {"id": 382, "owner": {"id": 789}, "assignee": {"id": 850}}, "task": {"id": 349, "owner": {"id": 926}, "assignee": {"id": 8}}, "job": {"id": 303, "assignee": {"id": 1186}}, "issue": {"id": 389, "owner": {"id": 1265}, "assignee": {"id": 1314}}, "organization": {"id": 1484}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 643}, "assignee": {"id": 512}, "project": {"id": 391, "owner": {"id": 731}, "assignee": {"id": 883}}, "task": {"id": 350, "owner": {"id": 913}, "assignee": {"id": 27}}, "job": {"id": 340, "assignee": {"id": 1133}}, "issue": {"id": 346, "owner": {"id": 1205}, "assignee": {"id": 1320}}, "organization": {"id": 1486}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 354, "owner": {"id": 672}, "assignee": {"id": 580}, "project": {"id": 348, "owner": {"id": 756}, "assignee": {"id": 827}}, "task": {"id": 311, "owner": {"id": 948}, "assignee": {"id": 0}}, "job": {"id": 342, "assignee": {"id": 1108}}, "issue": {"id": 301, "owner": {"id": 1282}, "assignee": {"id": 1300}}, "organization": {"id": 100}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 354, "owner": {"id": 670}, "assignee": {"id": 588}, "project": {"id": 351, "owner": {"id": 719}, "assignee": {"id": 895}}, "task": {"id": 331, "owner": {"id": 916}, "assignee": {"id": 72}}, "job": {"id": 374, "assignee": {"id": 1153}}, "issue": {"id": 388, "owner": {"id": 1227}, "assignee": {"id": 1328}}, "organization": {"id": 146}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 693}, "assignee": {"id": 541}, "project": {"id": 336, "owner": {"id": 725}, "assignee": {"id": 810}}, "task": {"id": 340, "owner": {"id": 941}, "assignee": {"id": 36}}, "job": {"id": 329, "assignee": {"id": 1178}}, "issue": {"id": 317, "owner": {"id": 1276}, "assignee": {"id": 1396}}, "organization": {"id": 1494}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 316, "owner": {"id": 612}, "assignee": {"id": 500}, "project": {"id": 357, "owner": {"id": 765}, "assignee": {"id": 865}}, "task": {"id": 389, "owner": {"id": 911}, "assignee": {"id": 78}}, "job": {"id": 309, "assignee": {"id": 1111}}, "issue": {"id": 359, "owner": {"id": 1206}, "assignee": {"id": 1333}}, "organization": {"id": 1435}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 668}, "assignee": {"id": 529}, "project": {"id": 303, "owner": {"id": 722}, "assignee": {"id": 839}}, "task": {"id": 359, "owner": {"id": 970}, "assignee": {"id": 6}}, "job": {"id": 321, "assignee": {"id": 1136}}, "issue": {"id": 306, "owner": {"id": 1279}, "assignee": {"id": 1346}}, "organization": {"id": 164}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 607}, "assignee": {"id": 540}, "project": {"id": 386, "owner": {"id": 714}, "assignee": {"id": 815}}, "task": {"id": 311, "owner": {"id": 941}, "assignee": {"id": 11}}, "job": {"id": 312, "assignee": {"id": 1109}}, "issue": {"id": 358, "owner": {"id": 1235}, "assignee": {"id": 1306}}, "organization": {"id": 166}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 624}, "assignee": {"id": 532}, "project": {"id": 317, "owner": {"id": 769}, "assignee": {"id": 809}}, "task": {"id": 321, "owner": {"id": 916}, "assignee": {"id": 70}}, "job": {"id": 337, "assignee": {"id": 1163}}, "issue": {"id": 391, "owner": {"id": 1298}, "assignee": {"id": 1318}}, "organization": {"id": 1499}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 626}, "assignee": {"id": 567}, "project": {"id": 310, "owner": {"id": 756}, "assignee": {"id": 826}}, "task": {"id": 311, "owner": {"id": 990}, "assignee": {"id": 55}}, "job": {"id": 337, "assignee": {"id": 1158}}, "issue": {"id": 353, "owner": {"id": 1238}, "assignee": {"id": 1312}}, "organization": {"id": 1425}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 348, "owner": {"id": 643}, "assignee": {"id": 564}, "project": {"id": 304, "owner": {"id": 700}, "assignee": {"id": 822}}, "task": {"id": 372, "owner": {"id": 972}, "assignee": {"id": 95}}, "job": {"id": 308, "assignee": {"id": 1111}}, "issue": {"id": 390, "owner": {"id": 1238}, "assignee": {"id": 1347}}, "organization": {"id": 179}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 395, "owner": {"id": 630}, "assignee": {"id": 532}, "project": {"id": 308, "owner": {"id": 715}, "assignee": {"id": 836}}, "task": {"id": 377, "owner": {"id": 954}, "assignee": {"id": 40}}, "job": {"id": 364, "assignee": {"id": 1187}}, "issue": {"id": 374, "owner": {"id": 1217}, "assignee": {"id": 1369}}, "organization": {"id": 165}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 693}, "assignee": {"id": 539}, "project": {"id": 380, "owner": {"id": 777}, "assignee": {"id": 819}}, "task": {"id": 351, "owner": {"id": 954}, "assignee": {"id": 54}}, "job": {"id": 385, "assignee": {"id": 1183}}, "issue": {"id": 350, "owner": {"id": 1216}, "assignee": {"id": 1367}}, "organization": {"id": 1473}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 311, "owner": {"id": 612}, "assignee": {"id": 539}, "project": {"id": 378, "owner": {"id": 725}, "assignee": {"id": 811}}, "task": {"id": 377, "owner": {"id": 974}, "assignee": {"id": 84}}, "job": {"id": 350, "assignee": {"id": 1154}}, "issue": {"id": 317, "owner": {"id": 1252}, "assignee": {"id": 1377}}, "organization": {"id": 1423}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "owner": {"id": 612}, "assignee": {"id": 564}, "project": {"id": 313, "owner": {"id": 774}, "assignee": {"id": 808}}, "task": {"id": 317, "owner": {"id": 926}, "assignee": {"id": 3}}, "job": {"id": 369, "assignee": {"id": 1168}}, "issue": {"id": 349, "owner": {"id": 1244}, "assignee": {"id": 1382}}, "organization": {"id": 196}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 656}, "assignee": {"id": 566}, "project": {"id": 343, "owner": {"id": 751}, "assignee": {"id": 818}}, "task": {"id": 314, "owner": {"id": 957}, "assignee": {"id": 21}}, "job": {"id": 336, "assignee": {"id": 1168}}, "issue": {"id": 386, "owner": {"id": 1269}, "assignee": {"id": 1360}}, "organization": {"id": 128}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "owner": {"id": 698}, "assignee": {"id": 563}, "project": {"id": 355, "owner": {"id": 766}, "assignee": {"id": 800}}, "task": {"id": 367, "owner": {"id": 975}, "assignee": {"id": 67}}, "job": {"id": 345, "assignee": {"id": 1128}}, "issue": {"id": 320, "owner": {"id": 1213}, "assignee": {"id": 1364}}, "organization": {"id": 1444}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 320, "owner": {"id": 684}, "assignee": {"id": 521}, "project": {"id": 308, "owner": {"id": 783}, "assignee": {"id": 804}}, "task": {"id": 361, "owner": {"id": 991}, "assignee": {"id": 52}}, "job": {"id": 300, "assignee": {"id": 1168}}, "issue": {"id": 370, "owner": {"id": 1277}, "assignee": {"id": 1327}}, "organization": {"id": 1435}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 634}, "assignee": {"id": 577}, "project": {"id": 341, "owner": {"id": 704}, "assignee": {"id": 817}}, "task": {"id": 311, "owner": {"id": 974}, "assignee": {"id": 77}}, "job": {"id": 301, "assignee": {"id": 1128}}, "issue": {"id": 323, "owner": {"id": 1296}, "assignee": {"id": 1329}}, "organization": {"id": 193}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "owner": {"id": 655}, "assignee": {"id": 538}, "project": {"id": 361, "owner": {"id": 774}, "assignee": {"id": 814}}, "task": {"id": 352, "owner": {"id": 984}, "assignee": {"id": 52}}, "job": {"id": 338, "assignee": {"id": 1144}}, "issue": {"id": 388, "owner": {"id": 1242}, "assignee": {"id": 1346}}, "organization": {"id": 186}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 608}, "assignee": {"id": 579}, "project": {"id": 358, "owner": {"id": 768}, "assignee": {"id": 820}}, "task": {"id": 307, "owner": {"id": 988}, "assignee": {"id": 26}}, "job": {"id": 333, "assignee": {"id": 1160}}, "issue": {"id": 363, "owner": {"id": 1238}, "assignee": {"id": 1357}}, "organization": {"id": 1491}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 688}, "assignee": {"id": 534}, "project": {"id": 352, "owner": {"id": 743}, "assignee": {"id": 883}}, "task": {"id": 384, "owner": {"id": 925}, "assignee": {"id": 82}}, "job": {"id": 388, "assignee": {"id": 1175}}, "issue": {"id": 304, "owner": {"id": 1221}, "assignee": {"id": 1380}}, "organization": {"id": 1450}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 378, "owner": {"id": 628}, "assignee": {"id": 591}, "project": {"id": 362, "owner": {"id": 742}, "assignee": {"id": 816}}, "task": {"id": 317, "owner": {"id": 935}, "assignee": {"id": 79}}, "job": {"id": 393, "assignee": {"id": 1186}}, "issue": {"id": 339, "owner": {"id": 1264}, "assignee": {"id": 1362}}, "organization": {"id": 175}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 342, "owner": {"id": 623}, "assignee": {"id": 589}, "project": {"id": 396, "owner": {"id": 727}, "assignee": {"id": 847}}, "task": {"id": 393, "owner": {"id": 980}, "assignee": {"id": 12}}, "job": {"id": 390, "assignee": {"id": 1163}}, "issue": {"id": 365, "owner": {"id": 1238}, "assignee": {"id": 1352}}, "organization": {"id": 169}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 378, "owner": {"id": 618}, "assignee": {"id": 520}, "project": {"id": 335, "owner": {"id": 787}, "assignee": {"id": 879}}, "task": {"id": 328, "owner": {"id": 905}, "assignee": {"id": 98}}, "job": {"id": 385, "assignee": {"id": 1185}}, "issue": {"id": 313, "owner": {"id": 1234}, "assignee": {"id": 1348}}, "organization": {"id": 1477}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 315, "owner": {"id": 636}, "assignee": {"id": 517}, "project": {"id": 387, "owner": {"id": 749}, "assignee": {"id": 870}}, "task": {"id": 355, "owner": {"id": 901}, "assignee": {"id": 57}}, "job": {"id": 341, "assignee": {"id": 1151}}, "issue": {"id": 393, "owner": {"id": 1244}, "assignee": {"id": 1348}}, "organization": {"id": 1441}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 300, "owner": {"id": 621}, "assignee": {"id": 512}, "project": {"id": 336, "owner": {"id": 722}, "assignee": {"id": 810}}, "task": {"id": 300, "owner": {"id": 960}, "assignee": {"id": 22}}, "job": {"id": 393, "assignee": {"id": 1142}}, "issue": {"id": 340, "owner": {"id": 1204}, "assignee": {"id": 1381}}, "organization": {"id": 178}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 684}, "assignee": {"id": 571}, "project": {"id": 386, "owner": {"id": 771}, "assignee": {"id": 822}}, "task": {"id": 369, "owner": {"id": 933}, "assignee": {"id": 31}}, "job": {"id": 375, "assignee": {"id": 1161}}, "issue": {"id": 311, "owner": {"id": 1238}, "assignee": {"id": 1329}}, "organization": {"id": 117}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 685}, "assignee": {"id": 575}, "project": {"id": 310, "owner": {"id": 794}, "assignee": {"id": 880}}, "task": {"id": 349, "owner": {"id": 981}, "assignee": {"id": 58}}, "job": {"id": 388, "assignee": {"id": 1157}}, "issue": {"id": 360, "owner": {"id": 1281}, "assignee": {"id": 1341}}, "organization": {"id": 1417}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 604}, "assignee": {"id": 535}, "project": {"id": 318, "owner": {"id": 793}, "assignee": {"id": 808}}, "task": {"id": 398, "owner": {"id": 936}, "assignee": {"id": 12}}, "job": {"id": 306, "assignee": {"id": 1171}}, "issue": {"id": 387, "owner": {"id": 1201}, "assignee": {"id": 1385}}, "organization": {"id": 1490}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 306, "owner": {"id": 648}, "assignee": {"id": 528}, "project": {"id": 323, "owner": {"id": 758}, "assignee": {"id": 885}}, "task": {"id": 388, "owner": {"id": 939}, "assignee": {"id": 1}}, "job": {"id": 386, "assignee": {"id": 1101}}, "issue": {"id": 372, "owner": {"id": 1232}, "assignee": {"id": 1358}}, "organization": {"id": 142}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 392, "owner": {"id": 662}, "assignee": {"id": 575}, "project": {"id": 359, "owner": {"id": 721}, "assignee": {"id": 855}}, "task": {"id": 308, "owner": {"id": 990}, "assignee": {"id": 71}}, "job": {"id": 334, "assignee": {"id": 1197}}, "issue": {"id": 362, "owner": {"id": 1243}, "assignee": {"id": 1369}}, "organization": {"id": 100}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 642}, "assignee": {"id": 516}, "project": {"id": 319, "owner": {"id": 738}, "assignee": {"id": 877}}, "task": {"id": 362, "owner": {"id": 997}, "assignee": {"id": 75}}, "job": {"id": 386, "assignee": {"id": 1190}}, "issue": {"id": 354, "owner": {"id": 1296}, "assignee": {"id": 1342}}, "organization": {"id": 1408}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 335, "owner": {"id": 622}, "assignee": {"id": 570}, "project": {"id": 345, "owner": {"id": 704}, "assignee": {"id": 828}}, "task": {"id": 373, "owner": {"id": 975}, "assignee": {"id": 70}}, "job": {"id": 373, "assignee": {"id": 1144}}, "issue": {"id": 334, "owner": {"id": 1264}, "assignee": {"id": 1337}}, "organization": {"id": 1454}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "owner": {"id": 613}, "assignee": {"id": 543}, "project": {"id": 307, "owner": {"id": 750}, "assignee": {"id": 871}}, "task": {"id": 344, "owner": {"id": 958}, "assignee": {"id": 44}}, "job": {"id": 342, "assignee": {"id": 1108}}, "issue": {"id": 381, "owner": {"id": 1279}, "assignee": {"id": 1366}}, "organization": {"id": 129}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 609}, "assignee": {"id": 596}, "project": {"id": 322, "owner": {"id": 777}, "assignee": {"id": 843}}, "task": {"id": 385, "owner": {"id": 904}, "assignee": {"id": 16}}, "job": {"id": 395, "assignee": {"id": 1141}}, "issue": {"id": 375, "owner": {"id": 1226}, "assignee": {"id": 1396}}, "organization": {"id": 181}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "owner": {"id": 672}, "assignee": {"id": 509}, "project": {"id": 336, "owner": {"id": 798}, "assignee": {"id": 812}}, "task": {"id": 305, "owner": {"id": 923}, "assignee": {"id": 90}}, "job": {"id": 376, "assignee": {"id": 1105}}, "issue": {"id": 395, "owner": {"id": 1239}, "assignee": {"id": 1323}}, "organization": {"id": 1440}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 679}, "assignee": {"id": 579}, "project": {"id": 319, "owner": {"id": 759}, "assignee": {"id": 823}}, "task": {"id": 360, "owner": {"id": 919}, "assignee": {"id": 63}}, "job": {"id": 391, "assignee": {"id": 1109}}, "issue": {"id": 372, "owner": {"id": 1261}, "assignee": {"id": 1397}}, "organization": {"id": 1482}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 340, "owner": {"id": 654}, "assignee": {"id": 564}, "project": {"id": 359, "owner": {"id": 717}, "assignee": {"id": 876}}, "task": {"id": 337, "owner": {"id": 914}, "assignee": {"id": 66}}, "job": {"id": 302, "assignee": {"id": 1163}}, "issue": {"id": 397, "owner": {"id": 1260}, "assignee": {"id": 1317}}, "organization": {"id": 118}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "owner": {"id": 609}, "assignee": {"id": 513}, "project": {"id": 317, "owner": {"id": 780}, "assignee": {"id": 849}}, "task": {"id": 301, "owner": {"id": 983}, "assignee": {"id": 28}}, "job": {"id": 368, "assignee": {"id": 1199}}, "issue": {"id": 333, "owner": {"id": 1269}, "assignee": {"id": 1388}}, "organization": {"id": 115}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 613}, "assignee": {"id": 542}, "project": {"id": 394, "owner": {"id": 746}, "assignee": {"id": 806}}, "task": {"id": 376, "owner": {"id": 971}, "assignee": {"id": 40}}, "job": {"id": 376, "assignee": {"id": 1111}}, "issue": {"id": 393, "owner": {"id": 1263}, "assignee": {"id": 1391}}, "organization": {"id": 1428}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "owner": {"id": 665}, "assignee": {"id": 505}, "project": {"id": 365, "owner": {"id": 791}, "assignee": {"id": 806}}, "task": {"id": 393, "owner": {"id": 926}, "assignee": {"id": 63}}, "job": {"id": 332, "assignee": {"id": 1159}}, "issue": {"id": 378, "owner": {"id": 1269}, "assignee": {"id": 1380}}, "organization": {"id": 1425}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 377, "owner": {"id": 654}, "assignee": {"id": 505}, "project": {"id": 340, "owner": {"id": 799}, "assignee": {"id": 890}}, "task": {"id": 374, "owner": {"id": 955}, "assignee": {"id": 62}}, "job": {"id": 367, "assignee": {"id": 1105}}, "issue": {"id": 368, "owner": {"id": 1262}, "assignee": {"id": 1384}}, "organization": {"id": 193}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 606}, "assignee": {"id": 591}, "project": {"id": 315, "owner": {"id": 758}, "assignee": {"id": 851}}, "task": {"id": 306, "owner": {"id": 957}, "assignee": {"id": 58}}, "job": {"id": 379, "assignee": {"id": 1141}}, "issue": {"id": 350, "owner": {"id": 1221}, "assignee": {"id": 1357}}, "organization": {"id": 137}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 695}, "assignee": {"id": 519}, "project": {"id": 340, "owner": {"id": 784}, "assignee": {"id": 861}}, "task": {"id": 377, "owner": {"id": 940}, "assignee": {"id": 5}}, "job": {"id": 344, "assignee": {"id": 1180}}, "issue": {"id": 364, "owner": {"id": 1237}, "assignee": {"id": 1332}}, "organization": {"id": 1416}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 318, "owner": {"id": 616}, "assignee": {"id": 579}, "project": {"id": 332, "owner": {"id": 784}, "assignee": {"id": 841}}, "task": {"id": 377, "owner": {"id": 961}, "assignee": {"id": 36}}, "job": {"id": 385, "assignee": {"id": 1101}}, "issue": {"id": 382, "owner": {"id": 1218}, "assignee": {"id": 1325}}, "organization": {"id": 1449}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 376, "owner": {"id": 620}, "assignee": {"id": 565}, "project": {"id": 306, "owner": {"id": 737}, "assignee": {"id": 895}}, "task": {"id": 391, "owner": {"id": 977}, "assignee": {"id": 93}}, "job": {"id": 359, "assignee": {"id": 1195}}, "issue": {"id": 337, "owner": {"id": 1290}, "assignee": {"id": 1348}}, "organization": {"id": 186}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 387, "owner": {"id": 630}, "assignee": {"id": 534}, "project": {"id": 314, "owner": {"id": 782}, "assignee": {"id": 810}}, "task": {"id": 350, "owner": {"id": 979}, "assignee": {"id": 69}}, "job": {"id": 348, "assignee": {"id": 1149}}, "issue": {"id": 317, "owner": {"id": 1236}, "assignee": {"id": 1396}}, "organization": {"id": 188}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 384, "owner": {"id": 677}, "assignee": {"id": 544}, "project": {"id": 305, "owner": {"id": 783}, "assignee": {"id": 890}}, "task": {"id": 329, "owner": {"id": 996}, "assignee": {"id": 94}}, "job": {"id": 367, "assignee": {"id": 1175}}, "issue": {"id": 312, "owner": {"id": 1276}, "assignee": {"id": 1398}}, "organization": {"id": 1485}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 345, "owner": {"id": 687}, "assignee": {"id": 569}, "project": {"id": 315, "owner": {"id": 797}, "assignee": {"id": 868}}, "task": {"id": 331, "owner": {"id": 922}, "assignee": {"id": 51}}, "job": {"id": 353, "assignee": {"id": 1144}}, "issue": {"id": 341, "owner": {"id": 1246}, "assignee": {"id": 1304}}, "organization": {"id": 1409}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 682}, "assignee": {"id": 518}, "project": {"id": 394, "owner": {"id": 777}, "assignee": {"id": 801}}, "task": {"id": 310, "owner": {"id": 941}, "assignee": {"id": 1074}}, "job": {"id": 387, "assignee": {"id": 93}}, "issue": {"id": 390, "owner": {"id": 1262}, "assignee": {"id": 1365}}, "organization": {"id": 182}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 638}, "assignee": {"id": 532}, "project": {"id": 323, "owner": {"id": 773}, "assignee": {"id": 848}}, "task": {"id": 324, "owner": {"id": 911}, "assignee": {"id": 1068}}, "job": {"id": 364, "assignee": {"id": 29}}, "issue": {"id": 338, "owner": {"id": 1291}, "assignee": {"id": 1372}}, "organization": {"id": 158}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 696}, "assignee": {"id": 582}, "project": {"id": 392, "owner": {"id": 763}, "assignee": {"id": 857}}, "task": {"id": 363, "owner": {"id": 947}, "assignee": {"id": 1001}}, "job": {"id": 311, "assignee": {"id": 39}}, "issue": {"id": 310, "owner": {"id": 1299}, "assignee": {"id": 1379}}, "organization": {"id": 1453}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 675}, "assignee": {"id": 591}, "project": {"id": 398, "owner": {"id": 734}, "assignee": {"id": 811}}, "task": {"id": 390, "owner": {"id": 970}, "assignee": {"id": 1033}}, "job": {"id": 352, "assignee": {"id": 92}}, "issue": {"id": 385, "owner": {"id": 1297}, "assignee": {"id": 1399}}, "organization": {"id": 1401}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "owner": {"id": 610}, "assignee": {"id": 527}, "project": {"id": 392, "owner": {"id": 798}, "assignee": {"id": 855}}, "task": {"id": 319, "owner": {"id": 948}, "assignee": {"id": 1006}}, "job": {"id": 306, "assignee": {"id": 45}}, "issue": {"id": 309, "owner": {"id": 1218}, "assignee": {"id": 1300}}, "organization": {"id": 101}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 634}, "assignee": {"id": 507}, "project": {"id": 348, "owner": {"id": 726}, "assignee": {"id": 863}}, "task": {"id": 375, "owner": {"id": 908}, "assignee": {"id": 1033}}, "job": {"id": 373, "assignee": {"id": 10}}, "issue": {"id": 385, "owner": {"id": 1278}, "assignee": {"id": 1398}}, "organization": {"id": 127}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "owner": {"id": 682}, "assignee": {"id": 546}, "project": {"id": 333, "owner": {"id": 796}, "assignee": {"id": 877}}, "task": {"id": 364, "owner": {"id": 900}, "assignee": {"id": 1024}}, "job": {"id": 361, "assignee": {"id": 31}}, "issue": {"id": 348, "owner": {"id": 1289}, "assignee": {"id": 1395}}, "organization": {"id": 1417}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 688}, "assignee": {"id": 517}, "project": {"id": 373, "owner": {"id": 713}, "assignee": {"id": 853}}, "task": {"id": 342, "owner": {"id": 901}, "assignee": {"id": 1080}}, "job": {"id": 377, "assignee": {"id": 91}}, "issue": {"id": 347, "owner": {"id": 1206}, "assignee": {"id": 1333}}, "organization": {"id": 1487}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 695}, "assignee": {"id": 551}, "project": {"id": 301, "owner": {"id": 738}, "assignee": {"id": 816}}, "task": {"id": 378, "owner": {"id": 944}, "assignee": {"id": 1077}}, "job": {"id": 353, "assignee": {"id": 63}}, "issue": {"id": 305, "owner": {"id": 1211}, "assignee": {"id": 1361}}, "organization": {"id": 188}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 627}, "assignee": {"id": 564}, "project": {"id": 384, "owner": {"id": 720}, "assignee": {"id": 804}}, "task": {"id": 313, "owner": {"id": 922}, "assignee": {"id": 1091}}, "job": {"id": 302, "assignee": {"id": 59}}, "issue": {"id": 331, "owner": {"id": 1277}, "assignee": {"id": 1302}}, "organization": {"id": 126}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 641}, "assignee": {"id": 566}, "project": {"id": 386, "owner": {"id": 772}, "assignee": {"id": 813}}, "task": {"id": 373, "owner": {"id": 905}, "assignee": {"id": 1034}}, "job": {"id": 357, "assignee": {"id": 91}}, "issue": {"id": 335, "owner": {"id": 1209}, "assignee": {"id": 1300}}, "organization": {"id": 1480}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "owner": {"id": 613}, "assignee": {"id": 516}, "project": {"id": 353, "owner": {"id": 708}, "assignee": {"id": 800}}, "task": {"id": 310, "owner": {"id": 998}, "assignee": {"id": 1096}}, "job": {"id": 378, "assignee": {"id": 67}}, "issue": {"id": 396, "owner": {"id": 1239}, "assignee": {"id": 1307}}, "organization": {"id": 1467}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 343, "owner": {"id": 662}, "assignee": {"id": 563}, "project": {"id": 347, "owner": {"id": 797}, "assignee": {"id": 813}}, "task": {"id": 312, "owner": {"id": 955}, "assignee": {"id": 1068}}, "job": {"id": 357, "assignee": {"id": 96}}, "issue": {"id": 392, "owner": {"id": 1254}, "assignee": {"id": 1394}}, "organization": {"id": 154}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 339, "owner": {"id": 636}, "assignee": {"id": 543}, "project": {"id": 302, "owner": {"id": 771}, "assignee": {"id": 836}}, "task": {"id": 396, "owner": {"id": 932}, "assignee": {"id": 1093}}, "job": {"id": 398, "assignee": {"id": 87}}, "issue": {"id": 340, "owner": {"id": 1289}, "assignee": {"id": 1374}}, "organization": {"id": 153}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 676}, "assignee": {"id": 595}, "project": {"id": 309, "owner": {"id": 760}, "assignee": {"id": 851}}, "task": {"id": 399, "owner": {"id": 947}, "assignee": {"id": 1017}}, "job": {"id": 301, "assignee": {"id": 21}}, "issue": {"id": 337, "owner": {"id": 1284}, "assignee": {"id": 1307}}, "organization": {"id": 1419}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 329, "owner": {"id": 625}, "assignee": {"id": 559}, "project": {"id": 367, "owner": {"id": 737}, "assignee": {"id": 801}}, "task": {"id": 376, "owner": {"id": 940}, "assignee": {"id": 1069}}, "job": {"id": 362, "assignee": {"id": 59}}, "issue": {"id": 331, "owner": {"id": 1228}, "assignee": {"id": 1397}}, "organization": {"id": 1413}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 323, "owner": {"id": 617}, "assignee": {"id": 533}, "project": {"id": 368, "owner": {"id": 703}, "assignee": {"id": 832}}, "task": {"id": 308, "owner": {"id": 969}, "assignee": {"id": 1096}}, "job": {"id": 303, "assignee": {"id": 72}}, "issue": {"id": 343, "owner": {"id": 1213}, "assignee": {"id": 1368}}, "organization": {"id": 108}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 382, "owner": {"id": 687}, "assignee": {"id": 556}, "project": {"id": 317, "owner": {"id": 723}, "assignee": {"id": 879}}, "task": {"id": 337, "owner": {"id": 934}, "assignee": {"id": 1041}}, "job": {"id": 351, "assignee": {"id": 29}}, "issue": {"id": 337, "owner": {"id": 1222}, "assignee": {"id": 1317}}, "organization": {"id": 152}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 332, "owner": {"id": 678}, "assignee": {"id": 565}, "project": {"id": 347, "owner": {"id": 735}, "assignee": {"id": 851}}, "task": {"id": 318, "owner": {"id": 949}, "assignee": {"id": 1035}}, "job": {"id": 330, "assignee": {"id": 26}}, "issue": {"id": 304, "owner": {"id": 1268}, "assignee": {"id": 1345}}, "organization": {"id": 1478}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 345, "owner": {"id": 636}, "assignee": {"id": 514}, "project": {"id": 312, "owner": {"id": 744}, "assignee": {"id": 862}}, "task": {"id": 399, "owner": {"id": 992}, "assignee": {"id": 1001}}, "job": {"id": 303, "assignee": {"id": 96}}, "issue": {"id": 339, "owner": {"id": 1271}, "assignee": {"id": 1338}}, "organization": {"id": 1408}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 370, "owner": {"id": 615}, "assignee": {"id": 507}, "project": {"id": 332, "owner": {"id": 710}, "assignee": {"id": 887}}, "task": {"id": 332, "owner": {"id": 939}, "assignee": {"id": 1021}}, "job": {"id": 332, "assignee": {"id": 45}}, "issue": {"id": 325, "owner": {"id": 1211}, "assignee": {"id": 1330}}, "organization": {"id": 144}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 689}, "assignee": {"id": 513}, "project": {"id": 343, "owner": {"id": 789}, "assignee": {"id": 890}}, "task": {"id": 386, "owner": {"id": 972}, "assignee": {"id": 1092}}, "job": {"id": 344, "assignee": {"id": 42}}, "issue": {"id": 303, "owner": {"id": 1278}, "assignee": {"id": 1368}}, "organization": {"id": 159}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 331, "owner": {"id": 622}, "assignee": {"id": 512}, "project": {"id": 359, "owner": {"id": 748}, "assignee": {"id": 842}}, "task": {"id": 383, "owner": {"id": 941}, "assignee": {"id": 1053}}, "job": {"id": 345, "assignee": {"id": 9}}, "issue": {"id": 361, "owner": {"id": 1230}, "assignee": {"id": 1336}}, "organization": {"id": 1458}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 605}, "assignee": {"id": 550}, "project": {"id": 327, "owner": {"id": 765}, "assignee": {"id": 812}}, "task": {"id": 329, "owner": {"id": 908}, "assignee": {"id": 1095}}, "job": {"id": 390, "assignee": {"id": 2}}, "issue": {"id": 331, "owner": {"id": 1249}, "assignee": {"id": 1307}}, "organization": {"id": 1485}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 608}, "assignee": {"id": 545}, "project": {"id": 330, "owner": {"id": 778}, "assignee": {"id": 878}}, "task": {"id": 313, "owner": {"id": 933}, "assignee": {"id": 1078}}, "job": {"id": 324, "assignee": {"id": 87}}, "issue": {"id": 325, "owner": {"id": 1222}, "assignee": {"id": 1303}}, "organization": {"id": 170}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "owner": {"id": 627}, "assignee": {"id": 546}, "project": {"id": 327, "owner": {"id": 770}, "assignee": {"id": 822}}, "task": {"id": 319, "owner": {"id": 949}, "assignee": {"id": 1016}}, "job": {"id": 319, "assignee": {"id": 51}}, "issue": {"id": 384, "owner": {"id": 1210}, "assignee": {"id": 1357}}, "organization": {"id": 180}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "owner": {"id": 601}, "assignee": {"id": 575}, "project": {"id": 387, "owner": {"id": 758}, "assignee": {"id": 888}}, "task": {"id": 320, "owner": {"id": 931}, "assignee": {"id": 1059}}, "job": {"id": 360, "assignee": {"id": 69}}, "issue": {"id": 386, "owner": {"id": 1265}, "assignee": {"id": 1352}}, "organization": {"id": 1457}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "owner": {"id": 676}, "assignee": {"id": 526}, "project": {"id": 378, "owner": {"id": 784}, "assignee": {"id": 831}}, "task": {"id": 365, "owner": {"id": 915}, "assignee": {"id": 1018}}, "job": {"id": 387, "assignee": {"id": 43}}, "issue": {"id": 346, "owner": {"id": 1200}, "assignee": {"id": 1360}}, "organization": {"id": 1495}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "owner": {"id": 679}, "assignee": {"id": 532}, "project": {"id": 372, "owner": {"id": 742}, "assignee": {"id": 805}}, "task": {"id": 340, "owner": {"id": 910}, "assignee": {"id": 1024}}, "job": {"id": 352, "assignee": {"id": 33}}, "issue": {"id": 389, "owner": {"id": 1263}, "assignee": {"id": 1376}}, "organization": {"id": 102}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "owner": {"id": 664}, "assignee": {"id": 597}, "project": {"id": 392, "owner": {"id": 721}, "assignee": {"id": 885}}, "task": {"id": 310, "owner": {"id": 921}, "assignee": {"id": 1004}}, "job": {"id": 300, "assignee": {"id": 32}}, "issue": {"id": 360, "owner": {"id": 1231}, "assignee": {"id": 1360}}, "organization": {"id": 116}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "owner": {"id": 692}, "assignee": {"id": 554}, "project": {"id": 358, "owner": {"id": 733}, "assignee": {"id": 894}}, "task": {"id": 318, "owner": {"id": 974}, "assignee": {"id": 1047}}, "job": {"id": 390, "assignee": {"id": 2}}, "issue": {"id": 303, "owner": {"id": 1246}, "assignee": {"id": 1367}}, "organization": {"id": 1443}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "owner": {"id": 644}, "assignee": {"id": 532}, "project": {"id": 369, "owner": {"id": 773}, "assignee": {"id": 805}}, "task": {"id": 301, "owner": {"id": 977}, "assignee": {"id": 1055}}, "job": {"id": 388, "assignee": {"id": 83}}, "issue": {"id": 325, "owner": {"id": 1261}, "assignee": {"id": 1361}}, "organization": {"id": 1489}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 377, "owner": {"id": 633}, "assignee": {"id": 500}, "project": {"id": 358, "owner": {"id": 775}, "assignee": {"id": 867}}, "task": {"id": 370, "owner": {"id": 997}, "assignee": {"id": 1035}}, "job": {"id": 362, "assignee": {"id": 36}}, "issue": {"id": 392, "owner": {"id": 1262}, "assignee": {"id": 1330}}, "organization": {"id": 137}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 326, "owner": {"id": 628}, "assignee": {"id": 560}, "project": {"id": 367, "owner": {"id": 787}, "assignee": {"id": 839}}, "task": {"id": 345, "owner": {"id": 993}, "assignee": {"id": 1088}}, "job": {"id": 348, "assignee": {"id": 80}}, "issue": {"id": 312, "owner": {"id": 1210}, "assignee": {"id": 1309}}, "organization": {"id": 198}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 322, "owner": {"id": 626}, "assignee": {"id": 591}, "project": {"id": 399, "owner": {"id": 765}, "assignee": {"id": 851}}, "task": {"id": 368, "owner": {"id": 978}, "assignee": {"id": 1058}}, "job": {"id": 345, "assignee": {"id": 42}}, "issue": {"id": 339, "owner": {"id": 1267}, "assignee": {"id": 1395}}, "organization": {"id": 1404}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 323, "owner": {"id": 685}, "assignee": {"id": 594}, "project": {"id": 358, "owner": {"id": 746}, "assignee": {"id": 873}}, "task": {"id": 308, "owner": {"id": 999}, "assignee": {"id": 1088}}, "job": {"id": 316, "assignee": {"id": 25}}, "issue": {"id": 337, "owner": {"id": 1226}, "assignee": {"id": 1367}}, "organization": {"id": 1439}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 333, "owner": {"id": 602}, "assignee": {"id": 574}, "project": {"id": 310, "owner": {"id": 765}, "assignee": {"id": 886}}, "task": {"id": 347, "owner": {"id": 940}, "assignee": {"id": 1095}}, "job": {"id": 307, "assignee": {"id": 58}}, "issue": {"id": 314, "owner": {"id": 1275}, "assignee": {"id": 1328}}, "organization": {"id": 152}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 345, "owner": {"id": 677}, "assignee": {"id": 519}, "project": {"id": 308, "owner": {"id": 725}, "assignee": {"id": 815}}, "task": {"id": 302, "owner": {"id": 983}, "assignee": {"id": 1074}}, "job": {"id": 393, "assignee": {"id": 99}}, "issue": {"id": 313, "owner": {"id": 1297}, "assignee": {"id": 1322}}, "organization": {"id": 173}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 323, "owner": {"id": 624}, "assignee": {"id": 571}, "project": {"id": 334, "owner": {"id": 771}, "assignee": {"id": 840}}, "task": {"id": 399, "owner": {"id": 941}, "assignee": {"id": 1015}}, "job": {"id": 306, "assignee": {"id": 88}}, "issue": {"id": 397, "owner": {"id": 1229}, "assignee": {"id": 1362}}, "organization": {"id": 1494}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 300, "owner": {"id": 638}, "assignee": {"id": 563}, "project": {"id": 345, "owner": {"id": 709}, "assignee": {"id": 835}}, "task": {"id": 301, "owner": {"id": 974}, "assignee": {"id": 1041}}, "job": {"id": 312, "assignee": {"id": 91}}, "issue": {"id": 316, "owner": {"id": 1229}, "assignee": {"id": 1358}}, "organization": {"id": 1454}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 695}, "assignee": {"id": 537}, "project": {"id": 320, "owner": {"id": 736}, "assignee": {"id": 811}}, "task": {"id": 370, "owner": {"id": 967}, "assignee": {"id": 1061}}, "job": {"id": 314, "assignee": {"id": 49}}, "issue": {"id": 359, "owner": {"id": 1299}, "assignee": {"id": 1388}}, "organization": {"id": 142}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 383, "owner": {"id": 697}, "assignee": {"id": 578}, "project": {"id": 333, "owner": {"id": 709}, "assignee": {"id": 854}}, "task": {"id": 360, "owner": {"id": 948}, "assignee": {"id": 1089}}, "job": {"id": 331, "assignee": {"id": 12}}, "issue": {"id": 393, "owner": {"id": 1283}, "assignee": {"id": 1375}}, "organization": {"id": 179}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 684}, "assignee": {"id": 566}, "project": {"id": 349, "owner": {"id": 707}, "assignee": {"id": 813}}, "task": {"id": 318, "owner": {"id": 973}, "assignee": {"id": 1008}}, "job": {"id": 396, "assignee": {"id": 68}}, "issue": {"id": 329, "owner": {"id": 1269}, "assignee": {"id": 1366}}, "organization": {"id": 1412}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 366, "owner": {"id": 607}, "assignee": {"id": 598}, "project": {"id": 372, "owner": {"id": 744}, "assignee": {"id": 897}}, "task": {"id": 311, "owner": {"id": 998}, "assignee": {"id": 1001}}, "job": {"id": 365, "assignee": {"id": 4}}, "issue": {"id": 366, "owner": {"id": 1274}, "assignee": {"id": 1360}}, "organization": {"id": 1401}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "owner": {"id": 656}, "assignee": {"id": 569}, "project": {"id": 342, "owner": {"id": 720}, "assignee": {"id": 864}}, "task": {"id": 338, "owner": {"id": 961}, "assignee": {"id": 1028}}, "job": {"id": 348, "assignee": {"id": 25}}, "issue": {"id": 336, "owner": {"id": 1298}, "assignee": {"id": 1306}}, "organization": {"id": 127}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "owner": {"id": 611}, "assignee": {"id": 508}, "project": {"id": 301, "owner": {"id": 799}, "assignee": {"id": 874}}, "task": {"id": 383, "owner": {"id": 966}, "assignee": {"id": 1079}}, "job": {"id": 368, "assignee": {"id": 78}}, "issue": {"id": 300, "owner": {"id": 1232}, "assignee": {"id": 1349}}, "organization": {"id": 171}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "owner": {"id": 680}, "assignee": {"id": 535}, "project": {"id": 321, "owner": {"id": 771}, "assignee": {"id": 834}}, "task": {"id": 302, "owner": {"id": 964}, "assignee": {"id": 1019}}, "job": {"id": 343, "assignee": {"id": 74}}, "issue": {"id": 345, "owner": {"id": 1239}, "assignee": {"id": 1301}}, "organization": {"id": 1453}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 635}, "assignee": {"id": 520}, "project": {"id": 361, "owner": {"id": 776}, "assignee": {"id": 840}}, "task": {"id": 318, "owner": {"id": 991}, "assignee": {"id": 1043}}, "job": {"id": 323, "assignee": {"id": 92}}, "issue": {"id": 364, "owner": {"id": 1238}, "assignee": {"id": 1337}}, "organization": {"id": 1483}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 688}, "assignee": {"id": 561}, "project": {"id": 378, "owner": {"id": 797}, "assignee": {"id": 834}}, "task": {"id": 300, "owner": {"id": 923}, "assignee": {"id": 1088}}, "job": {"id": 389, "assignee": {"id": 76}}, "issue": {"id": 339, "owner": {"id": 1262}, "assignee": {"id": 1316}}, "organization": {"id": 135}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "owner": {"id": 651}, "assignee": {"id": 591}, "project": {"id": 379, "owner": {"id": 734}, "assignee": {"id": 857}}, "task": {"id": 349, "owner": {"id": 917}, "assignee": {"id": 1089}}, "job": {"id": 321, "assignee": {"id": 72}}, "issue": {"id": 325, "owner": {"id": 1286}, "assignee": {"id": 1386}}, "organization": {"id": 117}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 646}, "assignee": {"id": 561}, "project": {"id": 313, "owner": {"id": 772}, "assignee": {"id": 874}}, "task": {"id": 390, "owner": {"id": 908}, "assignee": {"id": 1068}}, "job": {"id": 340, "assignee": {"id": 70}}, "issue": {"id": 391, "owner": {"id": 1256}, "assignee": {"id": 1318}}, "organization": {"id": 1422}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "owner": {"id": 644}, "assignee": {"id": 515}, "project": {"id": 392, "owner": {"id": 777}, "assignee": {"id": 827}}, "task": {"id": 392, "owner": {"id": 992}, "assignee": {"id": 1052}}, "job": {"id": 313, "assignee": {"id": 65}}, "issue": {"id": 336, "owner": {"id": 1271}, "assignee": {"id": 1340}}, "organization": {"id": 1459}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 390, "owner": {"id": 626}, "assignee": {"id": 502}, "project": {"id": 358, "owner": {"id": 753}, "assignee": {"id": 879}}, "task": {"id": 316, "owner": {"id": 969}, "assignee": {"id": 1008}}, "job": {"id": 362, "assignee": {"id": 8}}, "issue": {"id": 315, "owner": {"id": 1257}, "assignee": {"id": 1381}}, "organization": {"id": 160}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 351, "owner": {"id": 648}, "assignee": {"id": 528}, "project": {"id": 375, "owner": {"id": 731}, "assignee": {"id": 880}}, "task": {"id": 331, "owner": {"id": 969}, "assignee": {"id": 1053}}, "job": {"id": 300, "assignee": {"id": 78}}, "issue": {"id": 325, "owner": {"id": 1285}, "assignee": {"id": 1323}}, "organization": {"id": 112}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 664}, "assignee": {"id": 583}, "project": {"id": 338, "owner": {"id": 739}, "assignee": {"id": 847}}, "task": {"id": 312, "owner": {"id": 959}, "assignee": {"id": 1075}}, "job": {"id": 311, "assignee": {"id": 68}}, "issue": {"id": 357, "owner": {"id": 1253}, "assignee": {"id": 1343}}, "organization": {"id": 1459}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 342, "owner": {"id": 630}, "assignee": {"id": 503}, "project": {"id": 300, "owner": {"id": 787}, "assignee": {"id": 801}}, "task": {"id": 313, "owner": {"id": 980}, "assignee": {"id": 1028}}, "job": {"id": 383, "assignee": {"id": 51}}, "issue": {"id": 330, "owner": {"id": 1209}, "assignee": {"id": 1389}}, "organization": {"id": 1415}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 380, "owner": {"id": 675}, "assignee": {"id": 570}, "project": {"id": 395, "owner": {"id": 757}, "assignee": {"id": 879}}, "task": {"id": 300, "owner": {"id": 990}, "assignee": {"id": 1092}}, "job": {"id": 323, "assignee": {"id": 96}}, "issue": {"id": 345, "owner": {"id": 1203}, "assignee": {"id": 1338}}, "organization": {"id": 146}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 640}, "assignee": {"id": 542}, "project": {"id": 333, "owner": {"id": 748}, "assignee": {"id": 864}}, "task": {"id": 363, "owner": {"id": 961}, "assignee": {"id": 1016}}, "job": {"id": 388, "assignee": {"id": 14}}, "issue": {"id": 345, "owner": {"id": 1240}, "assignee": {"id": 1388}}, "organization": {"id": 155}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 303, "owner": {"id": 650}, "assignee": {"id": 509}, "project": {"id": 379, "owner": {"id": 798}, "assignee": {"id": 871}}, "task": {"id": 318, "owner": {"id": 921}, "assignee": {"id": 1094}}, "job": {"id": 368, "assignee": {"id": 55}}, "issue": {"id": 396, "owner": {"id": 1284}, "assignee": {"id": 1370}}, "organization": {"id": 1426}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 315, "owner": {"id": 631}, "assignee": {"id": 575}, "project": {"id": 338, "owner": {"id": 703}, "assignee": {"id": 867}}, "task": {"id": 350, "owner": {"id": 940}, "assignee": {"id": 1016}}, "job": {"id": 377, "assignee": {"id": 25}}, "issue": {"id": 382, "owner": {"id": 1248}, "assignee": {"id": 1354}}, "organization": {"id": 1410}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 392, "owner": {"id": 609}, "assignee": {"id": 531}, "project": {"id": 382, "owner": {"id": 792}, "assignee": {"id": 801}}, "task": {"id": 328, "owner": {"id": 908}, "assignee": {"id": 1042}}, "job": {"id": 301, "assignee": {"id": 48}}, "issue": {"id": 367, "owner": {"id": 1290}, "assignee": {"id": 1333}}, "organization": {"id": 118}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 646}, "assignee": {"id": 567}, "project": {"id": 315, "owner": {"id": 758}, "assignee": {"id": 815}}, "task": {"id": 306, "owner": {"id": 908}, "assignee": {"id": 1077}}, "job": {"id": 323, "assignee": {"id": 62}}, "issue": {"id": 384, "owner": {"id": 1272}, "assignee": {"id": 1361}}, "organization": {"id": 169}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 317, "owner": {"id": 698}, "assignee": {"id": 501}, "project": {"id": 356, "owner": {"id": 711}, "assignee": {"id": 863}}, "task": {"id": 302, "owner": {"id": 990}, "assignee": {"id": 1074}}, "job": {"id": 378, "assignee": {"id": 63}}, "issue": {"id": 334, "owner": {"id": 1283}, "assignee": {"id": 1330}}, "organization": {"id": 1408}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 318, "owner": {"id": 651}, "assignee": {"id": 587}, "project": {"id": 382, "owner": {"id": 721}, "assignee": {"id": 850}}, "task": {"id": 367, "owner": {"id": 969}, "assignee": {"id": 1093}}, "job": {"id": 314, "assignee": {"id": 99}}, "issue": {"id": 323, "owner": {"id": 1201}, "assignee": {"id": 1330}}, "organization": {"id": 1409}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "owner": {"id": 649}, "assignee": {"id": 515}, "project": {"id": 300, "owner": {"id": 761}, "assignee": {"id": 854}}, "task": {"id": 370, "owner": {"id": 969}, "assignee": {"id": 1091}}, "job": {"id": 314, "assignee": {"id": 28}}, "issue": {"id": 373, "owner": {"id": 1284}, "assignee": {"id": 1320}}, "organization": {"id": 114}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "owner": {"id": 686}, "assignee": {"id": 509}, "project": {"id": 312, "owner": {"id": 798}, "assignee": {"id": 853}}, "task": {"id": 334, "owner": {"id": 975}, "assignee": {"id": 1019}}, "job": {"id": 376, "assignee": {"id": 2}}, "issue": {"id": 302, "owner": {"id": 1267}, "assignee": {"id": 1334}}, "organization": {"id": 116}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "owner": {"id": 653}, "assignee": {"id": 549}, "project": {"id": 354, "owner": {"id": 736}, "assignee": {"id": 829}}, "task": {"id": 347, "owner": {"id": 904}, "assignee": {"id": 1074}}, "job": {"id": 322, "assignee": {"id": 57}}, "issue": {"id": 375, "owner": {"id": 1261}, "assignee": {"id": 1364}}, "organization": {"id": 1459}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "owner": {"id": 668}, "assignee": {"id": 500}, "project": {"id": 377, "owner": {"id": 734}, "assignee": {"id": 860}}, "task": {"id": 322, "owner": {"id": 925}, "assignee": {"id": 1055}}, "job": {"id": 305, "assignee": {"id": 6}}, "issue": {"id": 391, "owner": {"id": 1264}, "assignee": {"id": 1342}}, "organization": {"id": 1493}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "owner": {"id": 660}, "assignee": {"id": 577}, "project": {"id": 362, "owner": {"id": 719}, "assignee": {"id": 897}}, "task": {"id": 384, "owner": {"id": 981}, "assignee": {"id": 1006}}, "job": {"id": 307, "assignee": {"id": 6}}, "issue": {"id": 399, "owner": {"id": 1266}, "assignee": {"id": 1398}}, "organization": {"id": 150}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "owner": {"id": 673}, "assignee": {"id": 565}, "project": {"id": 306, "owner": {"id": 702}, "assignee": {"id": 890}}, "task": {"id": 353, "owner": {"id": 952}, "assignee": {"id": 1014}}, "job": {"id": 388, "assignee": {"id": 21}}, "issue": {"id": 389, "owner": {"id": 1205}, "assignee": {"id": 1395}}, "organization": {"id": 101}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 646}, "assignee": {"id": 554}, "project": {"id": 313, "owner": {"id": 710}, "assignee": {"id": 832}}, "task": {"id": 395, "owner": {"id": 971}, "assignee": {"id": 1013}}, "job": {"id": 323, "assignee": {"id": 14}}, "issue": {"id": 390, "owner": {"id": 1268}, "assignee": {"id": 1346}}, "organization": {"id": 1491}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "owner": {"id": 666}, "assignee": {"id": 529}, "project": {"id": 319, "owner": {"id": 702}, "assignee": {"id": 824}}, "task": {"id": 352, "owner": {"id": 949}, "assignee": {"id": 1017}}, "job": {"id": 334, "assignee": {"id": 90}}, "issue": {"id": 363, "owner": {"id": 1208}, "assignee": {"id": 1315}}, "organization": {"id": 1415}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 365, "owner": {"id": 672}, "assignee": {"id": 567}, "project": {"id": 313, "owner": {"id": 763}, "assignee": {"id": 839}}, "task": {"id": 324, "owner": {"id": 996}, "assignee": {"id": 1025}}, "job": {"id": 372, "assignee": {"id": 36}}, "issue": {"id": 397, "owner": {"id": 1217}, "assignee": {"id": 1305}}, "organization": {"id": 136}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 312, "owner": {"id": 666}, "assignee": {"id": 561}, "project": {"id": 318, "owner": {"id": 720}, "assignee": {"id": 881}}, "task": {"id": 335, "owner": {"id": 959}, "assignee": {"id": 1095}}, "job": {"id": 377, "assignee": {"id": 92}}, "issue": {"id": 397, "owner": {"id": 1208}, "assignee": {"id": 1384}}, "organization": {"id": 120}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 601}, "assignee": {"id": 589}, "project": {"id": 336, "owner": {"id": 796}, "assignee": {"id": 899}}, "task": {"id": 369, "owner": {"id": 911}, "assignee": {"id": 1056}}, "job": {"id": 354, "assignee": {"id": 33}}, "issue": {"id": 396, "owner": {"id": 1217}, "assignee": {"id": 1363}}, "organization": {"id": 1486}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 341, "owner": {"id": 648}, "assignee": {"id": 510}, "project": {"id": 351, "owner": {"id": 755}, "assignee": {"id": 899}}, "task": {"id": 373, "owner": {"id": 938}, "assignee": {"id": 1011}}, "job": {"id": 329, "assignee": {"id": 68}}, "issue": {"id": 300, "owner": {"id": 1251}, "assignee": {"id": 1317}}, "organization": {"id": 1462}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 672}, "assignee": {"id": 579}, "project": {"id": 378, "owner": {"id": 728}, "assignee": {"id": 838}}, "task": {"id": 316, "owner": {"id": 910}, "assignee": {"id": 1055}}, "job": {"id": 317, "assignee": {"id": 66}}, "issue": {"id": 371, "owner": {"id": 1235}, "assignee": {"id": 1303}}, "organization": {"id": 158}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 355, "owner": {"id": 683}, "assignee": {"id": 577}, "project": {"id": 305, "owner": {"id": 774}, "assignee": {"id": 891}}, "task": {"id": 355, "owner": {"id": 964}, "assignee": {"id": 1062}}, "job": {"id": 310, "assignee": {"id": 8}}, "issue": {"id": 353, "owner": {"id": 1234}, "assignee": {"id": 1385}}, "organization": {"id": 148}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 614}, "assignee": {"id": 501}, "project": {"id": 329, "owner": {"id": 739}, "assignee": {"id": 879}}, "task": {"id": 386, "owner": {"id": 938}, "assignee": {"id": 1072}}, "job": {"id": 365, "assignee": {"id": 79}}, "issue": {"id": 364, "owner": {"id": 1200}, "assignee": {"id": 1309}}, "organization": {"id": 1480}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 316, "owner": {"id": 685}, "assignee": {"id": 509}, "project": {"id": 328, "owner": {"id": 746}, "assignee": {"id": 820}}, "task": {"id": 309, "owner": {"id": 960}, "assignee": {"id": 1002}}, "job": {"id": 391, "assignee": {"id": 10}}, "issue": {"id": 319, "owner": {"id": 1204}, "assignee": {"id": 1396}}, "organization": {"id": 1470}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 648}, "assignee": {"id": 562}, "project": {"id": 349, "owner": {"id": 784}, "assignee": {"id": 872}}, "task": {"id": 356, "owner": {"id": 905}, "assignee": {"id": 1023}}, "job": {"id": 308, "assignee": {"id": 12}}, "issue": {"id": 339, "owner": {"id": 1263}, "assignee": {"id": 1358}}, "organization": {"id": 156}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 310, "owner": {"id": 644}, "assignee": {"id": 592}, "project": {"id": 311, "owner": {"id": 794}, "assignee": {"id": 831}}, "task": {"id": 335, "owner": {"id": 967}, "assignee": {"id": 1014}}, "job": {"id": 332, "assignee": {"id": 38}}, "issue": {"id": 314, "owner": {"id": 1254}, "assignee": {"id": 1353}}, "organization": {"id": 158}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 623}, "assignee": {"id": 565}, "project": {"id": 399, "owner": {"id": 705}, "assignee": {"id": 864}}, "task": {"id": 347, "owner": {"id": 925}, "assignee": {"id": 1037}}, "job": {"id": 324, "assignee": {"id": 50}}, "issue": {"id": 356, "owner": {"id": 1298}, "assignee": {"id": 1388}}, "organization": {"id": 1456}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 367, "owner": {"id": 635}, "assignee": {"id": 565}, "project": {"id": 318, "owner": {"id": 754}, "assignee": {"id": 861}}, "task": {"id": 309, "owner": {"id": 947}, "assignee": {"id": 1073}}, "job": {"id": 313, "assignee": {"id": 85}}, "issue": {"id": 324, "owner": {"id": 1236}, "assignee": {"id": 1348}}, "organization": {"id": 1446}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "owner": {"id": 669}, "assignee": {"id": 517}, "project": {"id": 345, "owner": {"id": 706}, "assignee": {"id": 865}}, "task": {"id": 390, "owner": {"id": 967}, "assignee": {"id": 1022}}, "job": {"id": 334, "assignee": {"id": 36}}, "issue": {"id": 360, "owner": {"id": 1209}, "assignee": {"id": 1331}}, "organization": {"id": 128}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "owner": {"id": 644}, "assignee": {"id": 552}, "project": {"id": 373, "owner": {"id": 719}, "assignee": {"id": 836}}, "task": {"id": 321, "owner": {"id": 940}, "assignee": {"id": 1088}}, "job": {"id": 339, "assignee": {"id": 83}}, "issue": {"id": 345, "owner": {"id": 1229}, "assignee": {"id": 1332}}, "organization": {"id": 124}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "owner": {"id": 692}, "assignee": {"id": 501}, "project": {"id": 309, "owner": {"id": 716}, "assignee": {"id": 879}}, "task": {"id": 345, "owner": {"id": 927}, "assignee": {"id": 1023}}, "job": {"id": 332, "assignee": {"id": 45}}, "issue": {"id": 383, "owner": {"id": 1222}, "assignee": {"id": 1381}}, "organization": {"id": 1450}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "owner": {"id": 631}, "assignee": {"id": 581}, "project": {"id": 342, "owner": {"id": 745}, "assignee": {"id": 853}}, "task": {"id": 318, "owner": {"id": 986}, "assignee": {"id": 1024}}, "job": {"id": 363, "assignee": {"id": 32}}, "issue": {"id": 365, "owner": {"id": 1296}, "assignee": {"id": 1355}}, "organization": {"id": 1423}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "owner": {"id": 632}, "assignee": {"id": 576}, "project": {"id": 330, "owner": {"id": 705}, "assignee": {"id": 864}}, "task": {"id": 375, "owner": {"id": 976}, "assignee": {"id": 1081}}, "job": {"id": 352, "assignee": {"id": 71}}, "issue": {"id": 318, "owner": {"id": 1202}, "assignee": {"id": 1332}}, "organization": {"id": 190}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "owner": {"id": 653}, "assignee": {"id": 518}, "project": {"id": 388, "owner": {"id": 771}, "assignee": {"id": 874}}, "task": {"id": 334, "owner": {"id": 934}, "assignee": {"id": 1036}}, "job": {"id": 309, "assignee": {"id": 39}}, "issue": {"id": 324, "owner": {"id": 1236}, "assignee": {"id": 1387}}, "organization": {"id": 126}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "owner": {"id": 664}, "assignee": {"id": 591}, "project": {"id": 372, "owner": {"id": 798}, "assignee": {"id": 857}}, "task": {"id": 346, "owner": {"id": 981}, "assignee": {"id": 1075}}, "job": {"id": 361, "assignee": {"id": 78}}, "issue": {"id": 314, "owner": {"id": 1272}, "assignee": {"id": 1379}}, "organization": {"id": 1470}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "owner": {"id": 633}, "assignee": {"id": 513}, "project": {"id": 311, "owner": {"id": 760}, "assignee": {"id": 809}}, "task": {"id": 362, "owner": {"id": 908}, "assignee": {"id": 1004}}, "job": {"id": 390, "assignee": {"id": 75}}, "issue": {"id": 321, "owner": {"id": 1233}, "assignee": {"id": 1366}}, "organization": {"id": 1416}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 328, "owner": {"id": 636}, "assignee": {"id": 587}, "project": {"id": 339, "owner": {"id": 726}, "assignee": {"id": 812}}, "task": {"id": 388, "owner": {"id": 993}, "assignee": {"id": 1063}}, "job": {"id": 333, "assignee": {"id": 14}}, "issue": {"id": 367, "owner": {"id": 1242}, "assignee": {"id": 1312}}, "organization": {"id": 153}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 620}, "assignee": {"id": 550}, "project": {"id": 373, "owner": {"id": 748}, "assignee": {"id": 869}}, "task": {"id": 379, "owner": {"id": 944}, "assignee": {"id": 1096}}, "job": {"id": 369, "assignee": {"id": 49}}, "issue": {"id": 388, "owner": {"id": 1214}, "assignee": {"id": 1361}}, "organization": {"id": 196}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 365, "owner": {"id": 627}, "assignee": {"id": 576}, "project": {"id": 361, "owner": {"id": 732}, "assignee": {"id": 898}}, "task": {"id": 355, "owner": {"id": 973}, "assignee": {"id": 1090}}, "job": {"id": 318, "assignee": {"id": 86}}, "issue": {"id": 332, "owner": {"id": 1255}, "assignee": {"id": 1348}}, "organization": {"id": 1415}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 363, "owner": {"id": 625}, "assignee": {"id": 522}, "project": {"id": 313, "owner": {"id": 741}, "assignee": {"id": 896}}, "task": {"id": 322, "owner": {"id": 970}, "assignee": {"id": 1097}}, "job": {"id": 311, "assignee": {"id": 42}}, "issue": {"id": 384, "owner": {"id": 1222}, "assignee": {"id": 1394}}, "organization": {"id": 1448}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 323, "owner": {"id": 619}, "assignee": {"id": 546}, "project": {"id": 346, "owner": {"id": 751}, "assignee": {"id": 896}}, "task": {"id": 335, "owner": {"id": 942}, "assignee": {"id": 1074}}, "job": {"id": 387, "assignee": {"id": 47}}, "issue": {"id": 301, "owner": {"id": 1295}, "assignee": {"id": 1350}}, "organization": {"id": 182}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 321, "owner": {"id": 602}, "assignee": {"id": 576}, "project": {"id": 372, "owner": {"id": 706}, "assignee": {"id": 890}}, "task": {"id": 391, "owner": {"id": 905}, "assignee": {"id": 1014}}, "job": {"id": 354, "assignee": {"id": 29}}, "issue": {"id": 320, "owner": {"id": 1277}, "assignee": {"id": 1389}}, "organization": {"id": 137}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 635}, "assignee": {"id": 561}, "project": {"id": 347, "owner": {"id": 713}, "assignee": {"id": 891}}, "task": {"id": 377, "owner": {"id": 970}, "assignee": {"id": 1020}}, "job": {"id": 338, "assignee": {"id": 86}}, "issue": {"id": 332, "owner": {"id": 1234}, "assignee": {"id": 1374}}, "organization": {"id": 1472}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 675}, "assignee": {"id": 556}, "project": {"id": 346, "owner": {"id": 739}, "assignee": {"id": 825}}, "task": {"id": 364, "owner": {"id": 914}, "assignee": {"id": 1012}}, "job": {"id": 310, "assignee": {"id": 46}}, "issue": {"id": 342, "owner": {"id": 1290}, "assignee": {"id": 1359}}, "organization": {"id": 1489}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 659}, "assignee": {"id": 532}, "project": {"id": 318, "owner": {"id": 729}, "assignee": {"id": 853}}, "task": {"id": 322, "owner": {"id": 938}, "assignee": {"id": 1015}}, "job": {"id": 388, "assignee": {"id": 1186}}, "issue": {"id": 348, "owner": {"id": 90}, "assignee": {"id": 1323}}, "organization": {"id": 183}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 341, "owner": {"id": 622}, "assignee": {"id": 540}, "project": {"id": 316, "owner": {"id": 789}, "assignee": {"id": 826}}, "task": {"id": 398, "owner": {"id": 960}, "assignee": {"id": 1068}}, "job": {"id": 373, "assignee": {"id": 1106}}, "issue": {"id": 325, "owner": {"id": 24}, "assignee": {"id": 1306}}, "organization": {"id": 179}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 305, "owner": {"id": 692}, "assignee": {"id": 549}, "project": {"id": 396, "owner": {"id": 760}, "assignee": {"id": 896}}, "task": {"id": 362, "owner": {"id": 949}, "assignee": {"id": 1010}}, "job": {"id": 395, "assignee": {"id": 1128}}, "issue": {"id": 316, "owner": {"id": 65}, "assignee": {"id": 1370}}, "organization": {"id": 1495}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 622}, "assignee": {"id": 544}, "project": {"id": 320, "owner": {"id": 711}, "assignee": {"id": 863}}, "task": {"id": 343, "owner": {"id": 924}, "assignee": {"id": 1058}}, "job": {"id": 356, "assignee": {"id": 1175}}, "issue": {"id": 306, "owner": {"id": 68}, "assignee": {"id": 1378}}, "organization": {"id": 1475}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 682}, "assignee": {"id": 594}, "project": {"id": 355, "owner": {"id": 780}, "assignee": {"id": 885}}, "task": {"id": 376, "owner": {"id": 955}, "assignee": {"id": 1097}}, "job": {"id": 313, "assignee": {"id": 1120}}, "issue": {"id": 350, "owner": {"id": 85}, "assignee": {"id": 1345}}, "organization": {"id": 136}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "owner": {"id": 620}, "assignee": {"id": 593}, "project": {"id": 398, "owner": {"id": 779}, "assignee": {"id": 820}}, "task": {"id": 343, "owner": {"id": 906}, "assignee": {"id": 1025}}, "job": {"id": 354, "assignee": {"id": 1136}}, "issue": {"id": 360, "owner": {"id": 6}, "assignee": {"id": 1347}}, "organization": {"id": 125}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 677}, "assignee": {"id": 599}, "project": {"id": 355, "owner": {"id": 788}, "assignee": {"id": 878}}, "task": {"id": 339, "owner": {"id": 936}, "assignee": {"id": 1087}}, "job": {"id": 329, "assignee": {"id": 1172}}, "issue": {"id": 386, "owner": {"id": 35}, "assignee": {"id": 1358}}, "organization": {"id": 1424}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "owner": {"id": 669}, "assignee": {"id": 505}, "project": {"id": 368, "owner": {"id": 768}, "assignee": {"id": 867}}, "task": {"id": 386, "owner": {"id": 912}, "assignee": {"id": 1040}}, "job": {"id": 326, "assignee": {"id": 1141}}, "issue": {"id": 397, "owner": {"id": 80}, "assignee": {"id": 1302}}, "organization": {"id": 1494}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 695}, "assignee": {"id": 599}, "project": {"id": 355, "owner": {"id": 761}, "assignee": {"id": 807}}, "task": {"id": 327, "owner": {"id": 939}, "assignee": {"id": 1076}}, "job": {"id": 366, "assignee": {"id": 1199}}, "issue": {"id": 304, "owner": {"id": 57}, "assignee": {"id": 1399}}, "organization": {"id": 158}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "owner": {"id": 610}, "assignee": {"id": 550}, "project": {"id": 365, "owner": {"id": 779}, "assignee": {"id": 889}}, "task": {"id": 388, "owner": {"id": 930}, "assignee": {"id": 1037}}, "job": {"id": 399, "assignee": {"id": 1126}}, "issue": {"id": 325, "owner": {"id": 36}, "assignee": {"id": 1372}}, "organization": {"id": 145}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 628}, "assignee": {"id": 518}, "project": {"id": 393, "owner": {"id": 703}, "assignee": {"id": 818}}, "task": {"id": 308, "owner": {"id": 915}, "assignee": {"id": 1050}}, "job": {"id": 352, "assignee": {"id": 1135}}, "issue": {"id": 377, "owner": {"id": 52}, "assignee": {"id": 1385}}, "organization": {"id": 1441}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "owner": {"id": 673}, "assignee": {"id": 527}, "project": {"id": 357, "owner": {"id": 769}, "assignee": {"id": 805}}, "task": {"id": 373, "owner": {"id": 992}, "assignee": {"id": 1025}}, "job": {"id": 357, "assignee": {"id": 1185}}, "issue": {"id": 372, "owner": {"id": 71}, "assignee": {"id": 1336}}, "organization": {"id": 1466}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 354, "owner": {"id": 643}, "assignee": {"id": 547}, "project": {"id": 358, "owner": {"id": 746}, "assignee": {"id": 864}}, "task": {"id": 323, "owner": {"id": 956}, "assignee": {"id": 1063}}, "job": {"id": 309, "assignee": {"id": 1142}}, "issue": {"id": 318, "owner": {"id": 15}, "assignee": {"id": 1343}}, "organization": {"id": 136}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 310, "owner": {"id": 648}, "assignee": {"id": 558}, "project": {"id": 317, "owner": {"id": 726}, "assignee": {"id": 871}}, "task": {"id": 386, "owner": {"id": 957}, "assignee": {"id": 1051}}, "job": {"id": 374, "assignee": {"id": 1133}}, "issue": {"id": 369, "owner": {"id": 49}, "assignee": {"id": 1373}}, "organization": {"id": 117}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 681}, "assignee": {"id": 559}, "project": {"id": 314, "owner": {"id": 793}, "assignee": {"id": 878}}, "task": {"id": 396, "owner": {"id": 905}, "assignee": {"id": 1006}}, "job": {"id": 356, "assignee": {"id": 1144}}, "issue": {"id": 331, "owner": {"id": 16}, "assignee": {"id": 1373}}, "organization": {"id": 1409}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 375, "owner": {"id": 655}, "assignee": {"id": 591}, "project": {"id": 373, "owner": {"id": 709}, "assignee": {"id": 832}}, "task": {"id": 396, "owner": {"id": 961}, "assignee": {"id": 1016}}, "job": {"id": 309, "assignee": {"id": 1121}}, "issue": {"id": 366, "owner": {"id": 27}, "assignee": {"id": 1379}}, "organization": {"id": 1431}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 379, "owner": {"id": 659}, "assignee": {"id": 585}, "project": {"id": 367, "owner": {"id": 747}, "assignee": {"id": 844}}, "task": {"id": 333, "owner": {"id": 914}, "assignee": {"id": 1060}}, "job": {"id": 345, "assignee": {"id": 1134}}, "issue": {"id": 354, "owner": {"id": 3}, "assignee": {"id": 1380}}, "organization": {"id": 167}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 398, "owner": {"id": 652}, "assignee": {"id": 541}, "project": {"id": 360, "owner": {"id": 705}, "assignee": {"id": 862}}, "task": {"id": 335, "owner": {"id": 903}, "assignee": {"id": 1028}}, "job": {"id": 381, "assignee": {"id": 1199}}, "issue": {"id": 311, "owner": {"id": 91}, "assignee": {"id": 1345}}, "organization": {"id": 132}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 373, "owner": {"id": 637}, "assignee": {"id": 551}, "project": {"id": 347, "owner": {"id": 751}, "assignee": {"id": 834}}, "task": {"id": 303, "owner": {"id": 908}, "assignee": {"id": 1030}}, "job": {"id": 343, "assignee": {"id": 1190}}, "issue": {"id": 329, "owner": {"id": 2}, "assignee": {"id": 1344}}, "organization": {"id": 1487}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 330, "owner": {"id": 632}, "assignee": {"id": 542}, "project": {"id": 383, "owner": {"id": 715}, "assignee": {"id": 868}}, "task": {"id": 362, "owner": {"id": 915}, "assignee": {"id": 1032}}, "job": {"id": 303, "assignee": {"id": 1177}}, "issue": {"id": 334, "owner": {"id": 2}, "assignee": {"id": 1334}}, "organization": {"id": 1492}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 327, "owner": {"id": 611}, "assignee": {"id": 570}, "project": {"id": 313, "owner": {"id": 739}, "assignee": {"id": 843}}, "task": {"id": 312, "owner": {"id": 904}, "assignee": {"id": 1030}}, "job": {"id": 321, "assignee": {"id": 1151}}, "issue": {"id": 317, "owner": {"id": 39}, "assignee": {"id": 1392}}, "organization": {"id": 127}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 321, "owner": {"id": 659}, "assignee": {"id": 579}, "project": {"id": 390, "owner": {"id": 799}, "assignee": {"id": 809}}, "task": {"id": 326, "owner": {"id": 924}, "assignee": {"id": 1046}}, "job": {"id": 319, "assignee": {"id": 1195}}, "issue": {"id": 352, "owner": {"id": 10}, "assignee": {"id": 1347}}, "organization": {"id": 133}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 325, "owner": {"id": 602}, "assignee": {"id": 567}, "project": {"id": 360, "owner": {"id": 799}, "assignee": {"id": 894}}, "task": {"id": 345, "owner": {"id": 961}, "assignee": {"id": 1070}}, "job": {"id": 323, "assignee": {"id": 1199}}, "issue": {"id": 394, "owner": {"id": 86}, "assignee": {"id": 1351}}, "organization": {"id": 1438}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 336, "owner": {"id": 695}, "assignee": {"id": 543}, "project": {"id": 313, "owner": {"id": 743}, "assignee": {"id": 809}}, "task": {"id": 302, "owner": {"id": 916}, "assignee": {"id": 1081}}, "job": {"id": 311, "assignee": {"id": 1147}}, "issue": {"id": 375, "owner": {"id": 25}, "assignee": {"id": 1340}}, "organization": {"id": 1463}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 675}, "assignee": {"id": 511}, "project": {"id": 359, "owner": {"id": 738}, "assignee": {"id": 850}}, "task": {"id": 366, "owner": {"id": 902}, "assignee": {"id": 1065}}, "job": {"id": 340, "assignee": {"id": 1117}}, "issue": {"id": 330, "owner": {"id": 4}, "assignee": {"id": 1327}}, "organization": {"id": 125}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "owner": {"id": 637}, "assignee": {"id": 533}, "project": {"id": 336, "owner": {"id": 711}, "assignee": {"id": 865}}, "task": {"id": 369, "owner": {"id": 903}, "assignee": {"id": 1051}}, "job": {"id": 321, "assignee": {"id": 1103}}, "issue": {"id": 386, "owner": {"id": 72}, "assignee": {"id": 1307}}, "organization": {"id": 134}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 654}, "assignee": {"id": 586}, "project": {"id": 318, "owner": {"id": 711}, "assignee": {"id": 829}}, "task": {"id": 333, "owner": {"id": 961}, "assignee": {"id": 1015}}, "job": {"id": 359, "assignee": {"id": 1163}}, "issue": {"id": 377, "owner": {"id": 99}, "assignee": {"id": 1334}}, "organization": {"id": 1441}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 81, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "owner": {"id": 691}, "assignee": {"id": 549}, "project": {"id": 321, "owner": {"id": 708}, "assignee": {"id": 884}}, "task": {"id": 393, "owner": {"id": 933}, "assignee": {"id": 1027}}, "job": {"id": 334, "assignee": {"id": 1183}}, "issue": {"id": 337, "owner": {"id": 81}, "assignee": {"id": 1392}}, "organization": {"id": 1491}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "owner": {"id": 678}, "assignee": {"id": 595}, "project": {"id": 313, "owner": {"id": 709}, "assignee": {"id": 848}}, "task": {"id": 321, "owner": {"id": 933}, "assignee": {"id": 1096}}, "job": {"id": 308, "assignee": {"id": 1180}}, "issue": {"id": 374, "owner": {"id": 97}, "assignee": {"id": 1398}}, "organization": {"id": 149}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 647}, "assignee": {"id": 592}, "project": {"id": 380, "owner": {"id": 751}, "assignee": {"id": 865}}, "task": {"id": 356, "owner": {"id": 993}, "assignee": {"id": 1041}}, "job": {"id": 347, "assignee": {"id": 1115}}, "issue": {"id": 314, "owner": {"id": 19}, "assignee": {"id": 1353}}, "organization": {"id": 140}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "owner": {"id": 633}, "assignee": {"id": 519}, "project": {"id": 308, "owner": {"id": 706}, "assignee": {"id": 880}}, "task": {"id": 398, "owner": {"id": 965}, "assignee": {"id": 1037}}, "job": {"id": 342, "assignee": {"id": 1104}}, "issue": {"id": 343, "owner": {"id": 22}, "assignee": {"id": 1358}}, "organization": {"id": 1467}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "owner": {"id": 628}, "assignee": {"id": 581}, "project": {"id": 357, "owner": {"id": 736}, "assignee": {"id": 805}}, "task": {"id": 362, "owner": {"id": 910}, "assignee": {"id": 1000}}, "job": {"id": 327, "assignee": {"id": 1131}}, "issue": {"id": 349, "owner": {"id": 47}, "assignee": {"id": 1381}}, "organization": {"id": 1410}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 354, "owner": {"id": 674}, "assignee": {"id": 550}, "project": {"id": 364, "owner": {"id": 784}, "assignee": {"id": 845}}, "task": {"id": 354, "owner": {"id": 967}, "assignee": {"id": 1086}}, "job": {"id": 399, "assignee": {"id": 1139}}, "issue": {"id": 323, "owner": {"id": 21}, "assignee": {"id": 1383}}, "organization": {"id": 135}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 312, "owner": {"id": 661}, "assignee": {"id": 570}, "project": {"id": 350, "owner": {"id": 734}, "assignee": {"id": 802}}, "task": {"id": 331, "owner": {"id": 943}, "assignee": {"id": 1044}}, "job": {"id": 378, "assignee": {"id": 1118}}, "issue": {"id": 321, "owner": {"id": 67}, "assignee": {"id": 1317}}, "organization": {"id": 126}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 361, "owner": {"id": 677}, "assignee": {"id": 598}, "project": {"id": 335, "owner": {"id": 718}, "assignee": {"id": 861}}, "task": {"id": 396, "owner": {"id": 984}, "assignee": {"id": 1066}}, "job": {"id": 318, "assignee": {"id": 1190}}, "issue": {"id": 373, "owner": {"id": 89}, "assignee": {"id": 1372}}, "organization": {"id": 1411}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 381, "owner": {"id": 642}, "assignee": {"id": 533}, "project": {"id": 306, "owner": {"id": 789}, "assignee": {"id": 829}}, "task": {"id": 397, "owner": {"id": 995}, "assignee": {"id": 1085}}, "job": {"id": 399, "assignee": {"id": 1154}}, "issue": {"id": 320, "owner": {"id": 41}, "assignee": {"id": 1380}}, "organization": {"id": 1487}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 380, "owner": {"id": 608}, "assignee": {"id": 543}, "project": {"id": 360, "owner": {"id": 706}, "assignee": {"id": 818}}, "task": {"id": 369, "owner": {"id": 987}, "assignee": {"id": 1004}}, "job": {"id": 372, "assignee": {"id": 1121}}, "issue": {"id": 377, "owner": {"id": 98}, "assignee": {"id": 1369}}, "organization": {"id": 138}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 370, "owner": {"id": 667}, "assignee": {"id": 579}, "project": {"id": 300, "owner": {"id": 728}, "assignee": {"id": 892}}, "task": {"id": 330, "owner": {"id": 962}, "assignee": {"id": 1057}}, "job": {"id": 362, "assignee": {"id": 1125}}, "issue": {"id": 314, "owner": {"id": 27}, "assignee": {"id": 1386}}, "organization": {"id": 122}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 659}, "assignee": {"id": 570}, "project": {"id": 342, "owner": {"id": 772}, "assignee": {"id": 817}}, "task": {"id": 344, "owner": {"id": 928}, "assignee": {"id": 1014}}, "job": {"id": 345, "assignee": {"id": 1124}}, "issue": {"id": 373, "owner": {"id": 38}, "assignee": {"id": 1373}}, "organization": {"id": 1439}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 378, "owner": {"id": 614}, "assignee": {"id": 524}, "project": {"id": 325, "owner": {"id": 746}, "assignee": {"id": 846}}, "task": {"id": 379, "owner": {"id": 964}, "assignee": {"id": 1082}}, "job": {"id": 300, "assignee": {"id": 1158}}, "issue": {"id": 358, "owner": {"id": 96}, "assignee": {"id": 1346}}, "organization": {"id": 1492}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 381, "owner": {"id": 640}, "assignee": {"id": 537}, "project": {"id": 349, "owner": {"id": 731}, "assignee": {"id": 821}}, "task": {"id": 367, "owner": {"id": 936}, "assignee": {"id": 1058}}, "job": {"id": 346, "assignee": {"id": 1108}}, "issue": {"id": 337, "owner": {"id": 44}, "assignee": {"id": 1306}}, "organization": {"id": 184}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 336, "owner": {"id": 615}, "assignee": {"id": 528}, "project": {"id": 306, "owner": {"id": 728}, "assignee": {"id": 856}}, "task": {"id": 375, "owner": {"id": 982}, "assignee": {"id": 1035}}, "job": {"id": 382, "assignee": {"id": 1197}}, "issue": {"id": 395, "owner": {"id": 51}, "assignee": {"id": 1337}}, "organization": {"id": 162}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 677}, "assignee": {"id": 548}, "project": {"id": 359, "owner": {"id": 716}, "assignee": {"id": 826}}, "task": {"id": 304, "owner": {"id": 940}, "assignee": {"id": 1038}}, "job": {"id": 317, "assignee": {"id": 1172}}, "issue": {"id": 381, "owner": {"id": 76}, "assignee": {"id": 1367}}, "organization": {"id": 1427}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 348, "owner": {"id": 650}, "assignee": {"id": 581}, "project": {"id": 310, "owner": {"id": 724}, "assignee": {"id": 825}}, "task": {"id": 383, "owner": {"id": 952}, "assignee": {"id": 1082}}, "job": {"id": 368, "assignee": {"id": 1191}}, "issue": {"id": 312, "owner": {"id": 68}, "assignee": {"id": 1342}}, "organization": {"id": 1482}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "owner": {"id": 607}, "assignee": {"id": 537}, "project": {"id": 393, "owner": {"id": 710}, "assignee": {"id": 843}}, "task": {"id": 374, "owner": {"id": 955}, "assignee": {"id": 1043}}, "job": {"id": 341, "assignee": {"id": 1149}}, "issue": {"id": 397, "owner": {"id": 12}, "assignee": {"id": 1357}}, "organization": {"id": 195}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 301, "owner": {"id": 604}, "assignee": {"id": 502}, "project": {"id": 309, "owner": {"id": 746}, "assignee": {"id": 851}}, "task": {"id": 375, "owner": {"id": 958}, "assignee": {"id": 1007}}, "job": {"id": 398, "assignee": {"id": 1197}}, "issue": {"id": 390, "owner": {"id": 98}, "assignee": {"id": 1326}}, "organization": {"id": 104}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "owner": {"id": 622}, "assignee": {"id": 511}, "project": {"id": 387, "owner": {"id": 712}, "assignee": {"id": 801}}, "task": {"id": 316, "owner": {"id": 911}, "assignee": {"id": 1040}}, "job": {"id": 305, "assignee": {"id": 1181}}, "issue": {"id": 323, "owner": {"id": 74}, "assignee": {"id": 1351}}, "organization": {"id": 1438}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 689}, "assignee": {"id": 562}, "project": {"id": 310, "owner": {"id": 756}, "assignee": {"id": 822}}, "task": {"id": 300, "owner": {"id": 908}, "assignee": {"id": 1091}}, "job": {"id": 368, "assignee": {"id": 1101}}, "issue": {"id": 380, "owner": {"id": 31}, "assignee": {"id": 1328}}, "organization": {"id": 1408}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "owner": {"id": 608}, "assignee": {"id": 503}, "project": {"id": 321, "owner": {"id": 745}, "assignee": {"id": 848}}, "task": {"id": 307, "owner": {"id": 968}, "assignee": {"id": 1033}}, "job": {"id": 359, "assignee": {"id": 1139}}, "issue": {"id": 328, "owner": {"id": 71}, "assignee": {"id": 1338}}, "organization": {"id": 110}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "owner": {"id": 633}, "assignee": {"id": 541}, "project": {"id": 359, "owner": {"id": 779}, "assignee": {"id": 855}}, "task": {"id": 320, "owner": {"id": 990}, "assignee": {"id": 1013}}, "job": {"id": 305, "assignee": {"id": 1152}}, "issue": {"id": 313, "owner": {"id": 7}, "assignee": {"id": 1359}}, "organization": {"id": 108}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "owner": {"id": 602}, "assignee": {"id": 597}, "project": {"id": 301, "owner": {"id": 748}, "assignee": {"id": 818}}, "task": {"id": 334, "owner": {"id": 957}, "assignee": {"id": 1059}}, "job": {"id": 300, "assignee": {"id": 1151}}, "issue": {"id": 376, "owner": {"id": 43}, "assignee": {"id": 1320}}, "organization": {"id": 1444}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "owner": {"id": 615}, "assignee": {"id": 562}, "project": {"id": 326, "owner": {"id": 710}, "assignee": {"id": 809}}, "task": {"id": 370, "owner": {"id": 955}, "assignee": {"id": 1010}}, "job": {"id": 306, "assignee": {"id": 1188}}, "issue": {"id": 384, "owner": {"id": 53}, "assignee": {"id": 1327}}, "organization": {"id": 1493}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 380, "owner": {"id": 634}, "assignee": {"id": 517}, "project": {"id": 377, "owner": {"id": 704}, "assignee": {"id": 830}}, "task": {"id": 398, "owner": {"id": 981}, "assignee": {"id": 1080}}, "job": {"id": 343, "assignee": {"id": 1160}}, "issue": {"id": 330, "owner": {"id": 78}, "assignee": {"id": 1316}}, "organization": {"id": 192}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 373, "owner": {"id": 615}, "assignee": {"id": 519}, "project": {"id": 316, "owner": {"id": 760}, "assignee": {"id": 864}}, "task": {"id": 329, "owner": {"id": 902}, "assignee": {"id": 1076}}, "job": {"id": 392, "assignee": {"id": 1167}}, "issue": {"id": 387, "owner": {"id": 35}, "assignee": {"id": 1360}}, "organization": {"id": 112}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 382, "owner": {"id": 625}, "assignee": {"id": 521}, "project": {"id": 327, "owner": {"id": 738}, "assignee": {"id": 825}}, "task": {"id": 348, "owner": {"id": 940}, "assignee": {"id": 1073}}, "job": {"id": 378, "assignee": {"id": 1174}}, "issue": {"id": 378, "owner": {"id": 72}, "assignee": {"id": 1310}}, "organization": {"id": 1497}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 635}, "assignee": {"id": 507}, "project": {"id": 379, "owner": {"id": 789}, "assignee": {"id": 868}}, "task": {"id": 310, "owner": {"id": 940}, "assignee": {"id": 1086}}, "job": {"id": 309, "assignee": {"id": 1197}}, "issue": {"id": 363, "owner": {"id": 97}, "assignee": {"id": 1336}}, "organization": {"id": 1455}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 398, "owner": {"id": 697}, "assignee": {"id": 547}, "project": {"id": 370, "owner": {"id": 701}, "assignee": {"id": 888}}, "task": {"id": 314, "owner": {"id": 992}, "assignee": {"id": 1099}}, "job": {"id": 369, "assignee": {"id": 1194}}, "issue": {"id": 388, "owner": {"id": 49}, "assignee": {"id": 1347}}, "organization": {"id": 191}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 682}, "assignee": {"id": 563}, "project": {"id": 382, "owner": {"id": 777}, "assignee": {"id": 828}}, "task": {"id": 349, "owner": {"id": 967}, "assignee": {"id": 1050}}, "job": {"id": 396, "assignee": {"id": 1182}}, "issue": {"id": 372, "owner": {"id": 72}, "assignee": {"id": 1335}}, "organization": {"id": 106}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 313, "owner": {"id": 668}, "assignee": {"id": 549}, "project": {"id": 322, "owner": {"id": 764}, "assignee": {"id": 879}}, "task": {"id": 343, "owner": {"id": 994}, "assignee": {"id": 1097}}, "job": {"id": 390, "assignee": {"id": 1148}}, "issue": {"id": 329, "owner": {"id": 57}, "assignee": {"id": 1338}}, "organization": {"id": 1435}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 632}, "assignee": {"id": 536}, "project": {"id": 378, "owner": {"id": 714}, "assignee": {"id": 869}}, "task": {"id": 362, "owner": {"id": 985}, "assignee": {"id": 1014}}, "job": {"id": 391, "assignee": {"id": 1183}}, "issue": {"id": 393, "owner": {"id": 44}, "assignee": {"id": 1362}}, "organization": {"id": 1408}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 622}, "assignee": {"id": 598}, "project": {"id": 332, "owner": {"id": 701}, "assignee": {"id": 876}}, "task": {"id": 350, "owner": {"id": 990}, "assignee": {"id": 1099}}, "job": {"id": 388, "assignee": {"id": 1115}}, "issue": {"id": 367, "owner": {"id": 24}, "assignee": {"id": 1387}}, "organization": {"id": 149}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 318, "owner": {"id": 620}, "assignee": {"id": 528}, "project": {"id": 379, "owner": {"id": 781}, "assignee": {"id": 824}}, "task": {"id": 314, "owner": {"id": 905}, "assignee": {"id": 1030}}, "job": {"id": 331, "assignee": {"id": 1136}}, "issue": {"id": 363, "owner": {"id": 0}, "assignee": {"id": 1309}}, "organization": {"id": 130}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 379, "owner": {"id": 696}, "assignee": {"id": 536}, "project": {"id": 321, "owner": {"id": 792}, "assignee": {"id": 855}}, "task": {"id": 314, "owner": {"id": 907}, "assignee": {"id": 1054}}, "job": {"id": 352, "assignee": {"id": 1158}}, "issue": {"id": 363, "owner": {"id": 54}, "assignee": {"id": 1351}}, "organization": {"id": 1480}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 387, "owner": {"id": 680}, "assignee": {"id": 580}, "project": {"id": 378, "owner": {"id": 712}, "assignee": {"id": 877}}, "task": {"id": 344, "owner": {"id": 983}, "assignee": {"id": 1084}}, "job": {"id": 386, "assignee": {"id": 1154}}, "issue": {"id": 356, "owner": {"id": 78}, "assignee": {"id": 1330}}, "organization": {"id": 1470}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "owner": {"id": 652}, "assignee": {"id": 540}, "project": {"id": 306, "owner": {"id": 733}, "assignee": {"id": 855}}, "task": {"id": 343, "owner": {"id": 904}, "assignee": {"id": 1052}}, "job": {"id": 371, "assignee": {"id": 1154}}, "issue": {"id": 369, "owner": {"id": 75}, "assignee": {"id": 1309}}, "organization": {"id": 120}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "owner": {"id": 645}, "assignee": {"id": 560}, "project": {"id": 326, "owner": {"id": 772}, "assignee": {"id": 876}}, "task": {"id": 349, "owner": {"id": 963}, "assignee": {"id": 1035}}, "job": {"id": 325, "assignee": {"id": 1142}}, "issue": {"id": 345, "owner": {"id": 17}, "assignee": {"id": 1370}}, "organization": {"id": 122}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "owner": {"id": 671}, "assignee": {"id": 589}, "project": {"id": 307, "owner": {"id": 751}, "assignee": {"id": 842}}, "task": {"id": 391, "owner": {"id": 904}, "assignee": {"id": 1058}}, "job": {"id": 303, "assignee": {"id": 1120}}, "issue": {"id": 339, "owner": {"id": 85}, "assignee": {"id": 1356}}, "organization": {"id": 1454}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "owner": {"id": 681}, "assignee": {"id": 589}, "project": {"id": 343, "owner": {"id": 704}, "assignee": {"id": 899}}, "task": {"id": 350, "owner": {"id": 974}, "assignee": {"id": 1047}}, "job": {"id": 374, "assignee": {"id": 1131}}, "issue": {"id": 391, "owner": {"id": 21}, "assignee": {"id": 1368}}, "organization": {"id": 1493}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "owner": {"id": 647}, "assignee": {"id": 545}, "project": {"id": 334, "owner": {"id": 740}, "assignee": {"id": 824}}, "task": {"id": 355, "owner": {"id": 928}, "assignee": {"id": 1005}}, "job": {"id": 326, "assignee": {"id": 1172}}, "issue": {"id": 356, "owner": {"id": 40}, "assignee": {"id": 1377}}, "organization": {"id": 101}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "owner": {"id": 654}, "assignee": {"id": 561}, "project": {"id": 337, "owner": {"id": 741}, "assignee": {"id": 866}}, "task": {"id": 382, "owner": {"id": 962}, "assignee": {"id": 1094}}, "job": {"id": 359, "assignee": {"id": 1179}}, "issue": {"id": 301, "owner": {"id": 17}, "assignee": {"id": 1353}}, "organization": {"id": 123}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "owner": {"id": 670}, "assignee": {"id": 579}, "project": {"id": 350, "owner": {"id": 760}, "assignee": {"id": 862}}, "task": {"id": 340, "owner": {"id": 928}, "assignee": {"id": 1098}}, "job": {"id": 384, "assignee": {"id": 1109}}, "issue": {"id": 377, "owner": {"id": 36}, "assignee": {"id": 1304}}, "organization": {"id": 1467}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "owner": {"id": 606}, "assignee": {"id": 503}, "project": {"id": 364, "owner": {"id": 716}, "assignee": {"id": 857}}, "task": {"id": 398, "owner": {"id": 976}, "assignee": {"id": 1035}}, "job": {"id": 395, "assignee": {"id": 1113}}, "issue": {"id": 323, "owner": {"id": 66}, "assignee": {"id": 1364}}, "organization": {"id": 1486}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 307, "owner": {"id": 697}, "assignee": {"id": 570}, "project": {"id": 330, "owner": {"id": 753}, "assignee": {"id": 877}}, "task": {"id": 355, "owner": {"id": 995}, "assignee": {"id": 1043}}, "job": {"id": 316, "assignee": {"id": 1120}}, "issue": {"id": 354, "owner": {"id": 41}, "assignee": {"id": 1307}}, "organization": {"id": 199}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 627}, "assignee": {"id": 501}, "project": {"id": 391, "owner": {"id": 765}, "assignee": {"id": 813}}, "task": {"id": 351, "owner": {"id": 990}, "assignee": {"id": 1020}}, "job": {"id": 303, "assignee": {"id": 1159}}, "issue": {"id": 376, "owner": {"id": 5}, "assignee": {"id": 1333}}, "organization": {"id": 192}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"id": 328, "owner": {"id": 658}, "assignee": {"id": 542}, "project": {"id": 351, "owner": {"id": 708}, "assignee": {"id": 817}}, "task": {"id": 367, "owner": {"id": 906}, "assignee": {"id": 1019}}, "job": {"id": 351, "assignee": {"id": 1148}}, "issue": {"id": 353, "owner": {"id": 11}, "assignee": {"id": 1309}}, "organization": {"id": 1498}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 697}, "assignee": {"id": 520}, "project": {"id": 327, "owner": {"id": 715}, "assignee": {"id": 845}}, "task": {"id": 362, "owner": {"id": 964}, "assignee": {"id": 1004}}, "job": {"id": 325, "assignee": {"id": 1166}}, "issue": {"id": 303, "owner": {"id": 69}, "assignee": {"id": 1361}}, "organization": {"id": 1417}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 690}, "assignee": {"id": 584}, "project": {"id": 346, "owner": {"id": 703}, "assignee": {"id": 817}}, "task": {"id": 337, "owner": {"id": 940}, "assignee": {"id": 1097}}, "job": {"id": 336, "assignee": {"id": 1178}}, "issue": {"id": 355, "owner": {"id": 67}, "assignee": {"id": 1344}}, "organization": {"id": 103}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 390, "owner": {"id": 600}, "assignee": {"id": 518}, "project": {"id": 329, "owner": {"id": 756}, "assignee": {"id": 805}}, "task": {"id": 301, "owner": {"id": 991}, "assignee": {"id": 1023}}, "job": {"id": 389, "assignee": {"id": 1195}}, "issue": {"id": 330, "owner": {"id": 53}, "assignee": {"id": 1347}}, "organization": {"id": 124}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 662}, "assignee": {"id": 595}, "project": {"id": 329, "owner": {"id": 721}, "assignee": {"id": 861}}, "task": {"id": 374, "owner": {"id": 915}, "assignee": {"id": 1053}}, "job": {"id": 326, "assignee": {"id": 1195}}, "issue": {"id": 338, "owner": {"id": 36}, "assignee": {"id": 1372}}, "organization": {"id": 1456}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 319, "owner": {"id": 667}, "assignee": {"id": 519}, "project": {"id": 395, "owner": {"id": 771}, "assignee": {"id": 808}}, "task": {"id": 362, "owner": {"id": 984}, "assignee": {"id": 1044}}, "job": {"id": 392, "assignee": {"id": 1123}}, "issue": {"id": 370, "owner": {"id": 91}, "assignee": {"id": 1360}}, "organization": {"id": 1490}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 377, "owner": {"id": 629}, "assignee": {"id": 578}, "project": {"id": 309, "owner": {"id": 710}, "assignee": {"id": 889}}, "task": {"id": 349, "owner": {"id": 997}, "assignee": {"id": 1065}}, "job": {"id": 352, "assignee": {"id": 1177}}, "issue": {"id": 344, "owner": {"id": 82}, "assignee": {"id": 1335}}, "organization": {"id": 147}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 333, "owner": {"id": 654}, "assignee": {"id": 573}, "project": {"id": 332, "owner": {"id": 784}, "assignee": {"id": 806}}, "task": {"id": 366, "owner": {"id": 909}, "assignee": {"id": 1056}}, "job": {"id": 324, "assignee": {"id": 1137}}, "issue": {"id": 374, "owner": {"id": 24}, "assignee": {"id": 1385}}, "organization": {"id": 154}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 669}, "assignee": {"id": 598}, "project": {"id": 398, "owner": {"id": 720}, "assignee": {"id": 868}}, "task": {"id": 363, "owner": {"id": 984}, "assignee": {"id": 1078}}, "job": {"id": 377, "assignee": {"id": 1161}}, "issue": {"id": 314, "owner": {"id": 46}, "assignee": {"id": 1370}}, "organization": {"id": 1463}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 334, "owner": {"id": 652}, "assignee": {"id": 545}, "project": {"id": 304, "owner": {"id": 746}, "assignee": {"id": 806}}, "task": {"id": 357, "owner": {"id": 919}, "assignee": {"id": 1070}}, "job": {"id": 339, "assignee": {"id": 1133}}, "issue": {"id": 398, "owner": {"id": 79}, "assignee": {"id": 1333}}, "organization": {"id": 1467}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 675}, "assignee": {"id": 554}, "project": {"id": 332, "owner": {"id": 728}, "assignee": {"id": 888}}, "task": {"id": 357, "owner": {"id": 924}, "assignee": {"id": 1084}}, "job": {"id": 390, "assignee": {"id": 1142}}, "issue": {"id": 319, "owner": {"id": 86}, "assignee": {"id": 1380}}, "organization": {"id": 177}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "owner": {"id": 634}, "assignee": {"id": 531}, "project": {"id": 338, "owner": {"id": 758}, "assignee": {"id": 813}}, "task": {"id": 300, "owner": {"id": 999}, "assignee": {"id": 1029}}, "job": {"id": 306, "assignee": {"id": 1148}}, "issue": {"id": 384, "owner": {"id": 60}, "assignee": {"id": 1330}}, "organization": {"id": 121}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "owner": {"id": 628}, "assignee": {"id": 534}, "project": {"id": 374, "owner": {"id": 729}, "assignee": {"id": 840}}, "task": {"id": 300, "owner": {"id": 967}, "assignee": {"id": 1071}}, "job": {"id": 399, "assignee": {"id": 1119}}, "issue": {"id": 381, "owner": {"id": 7}, "assignee": {"id": 1302}}, "organization": {"id": 1451}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 61, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "owner": {"id": 669}, "assignee": {"id": 558}, "project": {"id": 332, "owner": {"id": 732}, "assignee": {"id": 820}}, "task": {"id": 306, "owner": {"id": 907}, "assignee": {"id": 1056}}, "job": {"id": 395, "assignee": {"id": 1141}}, "issue": {"id": 370, "owner": {"id": 61}, "assignee": {"id": 1342}}, "organization": {"id": 1430}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "owner": {"id": 655}, "assignee": {"id": 518}, "project": {"id": 348, "owner": {"id": 734}, "assignee": {"id": 827}}, "task": {"id": 316, "owner": {"id": 992}, "assignee": {"id": 1066}}, "job": {"id": 378, "assignee": {"id": 1166}}, "issue": {"id": 305, "owner": {"id": 4}, "assignee": {"id": 1339}}, "organization": {"id": 122}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "owner": {"id": 647}, "assignee": {"id": 572}, "project": {"id": 323, "owner": {"id": 757}, "assignee": {"id": 842}}, "task": {"id": 398, "owner": {"id": 938}, "assignee": {"id": 1010}}, "job": {"id": 397, "assignee": {"id": 1199}}, "issue": {"id": 364, "owner": {"id": 63}, "assignee": {"id": 1334}}, "organization": {"id": 145}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 691}, "assignee": {"id": 578}, "project": {"id": 330, "owner": {"id": 731}, "assignee": {"id": 862}}, "task": {"id": 355, "owner": {"id": 937}, "assignee": {"id": 1031}}, "job": {"id": 382, "assignee": {"id": 1199}}, "issue": {"id": 306, "owner": {"id": 28}, "assignee": {"id": 1345}}, "organization": {"id": 1457}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 371, "owner": {"id": 688}, "assignee": {"id": 552}, "project": {"id": 371, "owner": {"id": 782}, "assignee": {"id": 827}}, "task": {"id": 362, "owner": {"id": 944}, "assignee": {"id": 1029}}, "job": {"id": 301, "assignee": {"id": 1128}}, "issue": {"id": 308, "owner": {"id": 2}, "assignee": {"id": 1375}}, "organization": {"id": 1465}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 317, "owner": {"id": 624}, "assignee": {"id": 552}, "project": {"id": 318, "owner": {"id": 756}, "assignee": {"id": 817}}, "task": {"id": 326, "owner": {"id": 926}, "assignee": {"id": 1060}}, "job": {"id": 324, "assignee": {"id": 1151}}, "issue": {"id": 384, "owner": {"id": 35}, "assignee": {"id": 1375}}, "organization": {"id": 168}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 355, "owner": {"id": 644}, "assignee": {"id": 556}, "project": {"id": 313, "owner": {"id": 798}, "assignee": {"id": 883}}, "task": {"id": 301, "owner": {"id": 988}, "assignee": {"id": 1064}}, "job": {"id": 386, "assignee": {"id": 1117}}, "issue": {"id": 348, "owner": {"id": 76}, "assignee": {"id": 1382}}, "organization": {"id": 105}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 382, "owner": {"id": 679}, "assignee": {"id": 523}, "project": {"id": 355, "owner": {"id": 703}, "assignee": {"id": 823}}, "task": {"id": 303, "owner": {"id": 956}, "assignee": {"id": 1025}}, "job": {"id": 336, "assignee": {"id": 1129}}, "issue": {"id": 392, "owner": {"id": 54}, "assignee": {"id": 1355}}, "organization": {"id": 1422}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 391, "owner": {"id": 619}, "assignee": {"id": 519}, "project": {"id": 364, "owner": {"id": 729}, "assignee": {"id": 891}}, "task": {"id": 327, "owner": {"id": 993}, "assignee": {"id": 1064}}, "job": {"id": 373, "assignee": {"id": 1189}}, "issue": {"id": 344, "owner": {"id": 2}, "assignee": {"id": 1328}}, "organization": {"id": 1427}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"id": 376, "owner": {"id": 652}, "assignee": {"id": 501}, "project": {"id": 376, "owner": {"id": 751}, "assignee": {"id": 886}}, "task": {"id": 300, "owner": {"id": 965}, "assignee": {"id": 1009}}, "job": {"id": 334, "assignee": {"id": 1158}}, "issue": {"id": 385, "owner": {"id": 27}, "assignee": {"id": 1391}}, "organization": {"id": 136}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"id": 394, "owner": {"id": 685}, "assignee": {"id": 592}, "project": {"id": 362, "owner": {"id": 742}, "assignee": {"id": 822}}, "task": {"id": 356, "owner": {"id": 903}, "assignee": {"id": 1072}}, "job": {"id": 321, "assignee": {"id": 1102}}, "issue": {"id": 370, "owner": {"id": 68}, "assignee": {"id": 1339}}, "organization": {"id": 158}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 356, "owner": {"id": 692}, "assignee": {"id": 525}, "project": {"id": 321, "owner": {"id": 725}, "assignee": {"id": 816}}, "task": {"id": 338, "owner": {"id": 983}, "assignee": {"id": 1003}}, "job": {"id": 327, "assignee": {"id": 1112}}, "issue": {"id": 370, "owner": {"id": 78}, "assignee": {"id": 1357}}, "organization": {"id": 1405}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 300, "owner": {"id": 670}, "assignee": {"id": 554}, "project": {"id": 362, "owner": {"id": 789}, "assignee": {"id": 810}}, "task": {"id": 364, "owner": {"id": 995}, "assignee": {"id": 1032}}, "job": {"id": 397, "assignee": {"id": 1149}}, "issue": {"id": 392, "owner": {"id": 75}, "assignee": {"id": 1354}}, "organization": {"id": 1426}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 326, "owner": {"id": 682}, "assignee": {"id": 533}, "project": {"id": 362, "owner": {"id": 722}, "assignee": {"id": 827}}, "task": {"id": 363, "owner": {"id": 955}, "assignee": {"id": 1058}}, "job": {"id": 376, "assignee": {"id": 1140}}, "issue": {"id": 334, "owner": {"id": 1200}, "assignee": {"id": 91}}, "organization": {"id": 104}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 659}, "assignee": {"id": 541}, "project": {"id": 332, "owner": {"id": 798}, "assignee": {"id": 882}}, "task": {"id": 373, "owner": {"id": 996}, "assignee": {"id": 1067}}, "job": {"id": 318, "assignee": {"id": 1193}}, "issue": {"id": 364, "owner": {"id": 1271}, "assignee": {"id": 96}}, "organization": {"id": 134}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 363, "owner": {"id": 652}, "assignee": {"id": 571}, "project": {"id": 301, "owner": {"id": 735}, "assignee": {"id": 835}}, "task": {"id": 364, "owner": {"id": 914}, "assignee": {"id": 1086}}, "job": {"id": 349, "assignee": {"id": 1127}}, "issue": {"id": 327, "owner": {"id": 1221}, "assignee": {"id": 75}}, "organization": {"id": 1436}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 330, "owner": {"id": 605}, "assignee": {"id": 528}, "project": {"id": 377, "owner": {"id": 776}, "assignee": {"id": 880}}, "task": {"id": 382, "owner": {"id": 977}, "assignee": {"id": 1021}}, "job": {"id": 314, "assignee": {"id": 1102}}, "issue": {"id": 394, "owner": {"id": 1274}, "assignee": {"id": 68}}, "organization": {"id": 1493}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "owner": {"id": 669}, "assignee": {"id": 569}, "project": {"id": 368, "owner": {"id": 781}, "assignee": {"id": 889}}, "task": {"id": 385, "owner": {"id": 917}, "assignee": {"id": 1015}}, "job": {"id": 374, "assignee": {"id": 1123}}, "issue": {"id": 366, "owner": {"id": 1216}, "assignee": {"id": 38}}, "organization": {"id": 183}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "owner": {"id": 695}, "assignee": {"id": 584}, "project": {"id": 371, "owner": {"id": 778}, "assignee": {"id": 882}}, "task": {"id": 390, "owner": {"id": 971}, "assignee": {"id": 1078}}, "job": {"id": 376, "assignee": {"id": 1111}}, "issue": {"id": 360, "owner": {"id": 1273}, "assignee": {"id": 49}}, "organization": {"id": 197}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "owner": {"id": 607}, "assignee": {"id": 547}, "project": {"id": 358, "owner": {"id": 766}, "assignee": {"id": 889}}, "task": {"id": 318, "owner": {"id": 969}, "assignee": {"id": 1079}}, "job": {"id": 397, "assignee": {"id": 1134}}, "issue": {"id": 376, "owner": {"id": 1233}, "assignee": {"id": 9}}, "organization": {"id": 1457}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "owner": {"id": 632}, "assignee": {"id": 533}, "project": {"id": 360, "owner": {"id": 795}, "assignee": {"id": 848}}, "task": {"id": 336, "owner": {"id": 932}, "assignee": {"id": 1080}}, "job": {"id": 387, "assignee": {"id": 1173}}, "issue": {"id": 337, "owner": {"id": 1290}, "assignee": {"id": 39}}, "organization": {"id": 1496}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "owner": {"id": 671}, "assignee": {"id": 554}, "project": {"id": 381, "owner": {"id": 728}, "assignee": {"id": 870}}, "task": {"id": 323, "owner": {"id": 975}, "assignee": {"id": 1013}}, "job": {"id": 358, "assignee": {"id": 1167}}, "issue": {"id": 349, "owner": {"id": 1215}, "assignee": {"id": 14}}, "organization": {"id": 128}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "owner": {"id": 654}, "assignee": {"id": 596}, "project": {"id": 347, "owner": {"id": 707}, "assignee": {"id": 896}}, "task": {"id": 302, "owner": {"id": 995}, "assignee": {"id": 1054}}, "job": {"id": 387, "assignee": {"id": 1153}}, "issue": {"id": 377, "owner": {"id": 1210}, "assignee": {"id": 20}}, "organization": {"id": 157}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "owner": {"id": 618}, "assignee": {"id": 579}, "project": {"id": 303, "owner": {"id": 791}, "assignee": {"id": 884}}, "task": {"id": 311, "owner": {"id": 955}, "assignee": {"id": 1001}}, "job": {"id": 314, "assignee": {"id": 1191}}, "issue": {"id": 340, "owner": {"id": 1207}, "assignee": {"id": 91}}, "organization": {"id": 1449}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "owner": {"id": 645}, "assignee": {"id": 564}, "project": {"id": 319, "owner": {"id": 710}, "assignee": {"id": 814}}, "task": {"id": 377, "owner": {"id": 935}, "assignee": {"id": 1067}}, "job": {"id": 377, "assignee": {"id": 1159}}, "issue": {"id": 338, "owner": {"id": 1250}, "assignee": {"id": 25}}, "organization": {"id": 1462}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 397, "owner": {"id": 688}, "assignee": {"id": 573}, "project": {"id": 349, "owner": {"id": 711}, "assignee": {"id": 805}}, "task": {"id": 330, "owner": {"id": 919}, "assignee": {"id": 1011}}, "job": {"id": 363, "assignee": {"id": 1140}}, "issue": {"id": 356, "owner": {"id": 1299}, "assignee": {"id": 13}}, "organization": {"id": 197}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 650}, "assignee": {"id": 543}, "project": {"id": 363, "owner": {"id": 718}, "assignee": {"id": 882}}, "task": {"id": 336, "owner": {"id": 931}, "assignee": {"id": 1053}}, "job": {"id": 338, "assignee": {"id": 1154}}, "issue": {"id": 314, "owner": {"id": 1257}, "assignee": {"id": 24}}, "organization": {"id": 163}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 397, "owner": {"id": 619}, "assignee": {"id": 545}, "project": {"id": 395, "owner": {"id": 742}, "assignee": {"id": 817}}, "task": {"id": 399, "owner": {"id": 973}, "assignee": {"id": 1080}}, "job": {"id": 393, "assignee": {"id": 1131}}, "issue": {"id": 355, "owner": {"id": 1277}, "assignee": {"id": 4}}, "organization": {"id": 1478}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 320, "owner": {"id": 635}, "assignee": {"id": 531}, "project": {"id": 386, "owner": {"id": 739}, "assignee": {"id": 816}}, "task": {"id": 303, "owner": {"id": 945}, "assignee": {"id": 1071}}, "job": {"id": 364, "assignee": {"id": 1179}}, "issue": {"id": 372, "owner": {"id": 1285}, "assignee": {"id": 48}}, "organization": {"id": 1478}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 308, "owner": {"id": 676}, "assignee": {"id": 567}, "project": {"id": 373, "owner": {"id": 789}, "assignee": {"id": 897}}, "task": {"id": 349, "owner": {"id": 927}, "assignee": {"id": 1056}}, "job": {"id": 395, "assignee": {"id": 1183}}, "issue": {"id": 322, "owner": {"id": 1242}, "assignee": {"id": 51}}, "organization": {"id": 171}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 627}, "assignee": {"id": 586}, "project": {"id": 350, "owner": {"id": 749}, "assignee": {"id": 851}}, "task": {"id": 356, "owner": {"id": 949}, "assignee": {"id": 1073}}, "job": {"id": 362, "assignee": {"id": 1142}}, "issue": {"id": 372, "owner": {"id": 1237}, "assignee": {"id": 40}}, "organization": {"id": 194}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 397, "owner": {"id": 632}, "assignee": {"id": 567}, "project": {"id": 338, "owner": {"id": 775}, "assignee": {"id": 817}}, "task": {"id": 338, "owner": {"id": 962}, "assignee": {"id": 1024}}, "job": {"id": 378, "assignee": {"id": 1190}}, "issue": {"id": 388, "owner": {"id": 1244}, "assignee": {"id": 60}}, "organization": {"id": 1408}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 386, "owner": {"id": 618}, "assignee": {"id": 566}, "project": {"id": 338, "owner": {"id": 726}, "assignee": {"id": 806}}, "task": {"id": 330, "owner": {"id": 912}, "assignee": {"id": 1040}}, "job": {"id": 316, "assignee": {"id": 1185}}, "issue": {"id": 359, "owner": {"id": 1225}, "assignee": {"id": 52}}, "organization": {"id": 1437}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 351, "owner": {"id": 659}, "assignee": {"id": 517}, "project": {"id": 358, "owner": {"id": 745}, "assignee": {"id": 832}}, "task": {"id": 358, "owner": {"id": 977}, "assignee": {"id": 1093}}, "job": {"id": 389, "assignee": {"id": 1159}}, "issue": {"id": 394, "owner": {"id": 1204}, "assignee": {"id": 11}}, "organization": {"id": 121}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 377, "owner": {"id": 654}, "assignee": {"id": 531}, "project": {"id": 309, "owner": {"id": 728}, "assignee": {"id": 822}}, "task": {"id": 360, "owner": {"id": 998}, "assignee": {"id": 1044}}, "job": {"id": 305, "assignee": {"id": 1129}}, "issue": {"id": 309, "owner": {"id": 1288}, "assignee": {"id": 80}}, "organization": {"id": 189}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 362, "owner": {"id": 616}, "assignee": {"id": 585}, "project": {"id": 364, "owner": {"id": 733}, "assignee": {"id": 836}}, "task": {"id": 306, "owner": {"id": 905}, "assignee": {"id": 1064}}, "job": {"id": 324, "assignee": {"id": 1133}}, "issue": {"id": 362, "owner": {"id": 1298}, "assignee": {"id": 65}}, "organization": {"id": 1478}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 624}, "assignee": {"id": 562}, "project": {"id": 349, "owner": {"id": 786}, "assignee": {"id": 805}}, "task": {"id": 323, "owner": {"id": 922}, "assignee": {"id": 1039}}, "job": {"id": 355, "assignee": {"id": 1195}}, "issue": {"id": 353, "owner": {"id": 1264}, "assignee": {"id": 27}}, "organization": {"id": 1457}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 616}, "assignee": {"id": 532}, "project": {"id": 338, "owner": {"id": 727}, "assignee": {"id": 843}}, "task": {"id": 373, "owner": {"id": 980}, "assignee": {"id": 1088}}, "job": {"id": 370, "assignee": {"id": 1184}}, "issue": {"id": 391, "owner": {"id": 1258}, "assignee": {"id": 55}}, "organization": {"id": 152}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "owner": {"id": 696}, "assignee": {"id": 520}, "project": {"id": 316, "owner": {"id": 710}, "assignee": {"id": 882}}, "task": {"id": 365, "owner": {"id": 933}, "assignee": {"id": 1091}}, "job": {"id": 351, "assignee": {"id": 1190}}, "issue": {"id": 350, "owner": {"id": 1269}, "assignee": {"id": 16}}, "organization": {"id": 119}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "owner": {"id": 622}, "assignee": {"id": 569}, "project": {"id": 315, "owner": {"id": 795}, "assignee": {"id": 892}}, "task": {"id": 387, "owner": {"id": 932}, "assignee": {"id": 1003}}, "job": {"id": 306, "assignee": {"id": 1160}}, "issue": {"id": 323, "owner": {"id": 1230}, "assignee": {"id": 41}}, "organization": {"id": 1450}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "owner": {"id": 696}, "assignee": {"id": 553}, "project": {"id": 345, "owner": {"id": 709}, "assignee": {"id": 869}}, "task": {"id": 397, "owner": {"id": 914}, "assignee": {"id": 1003}}, "job": {"id": 346, "assignee": {"id": 1171}}, "issue": {"id": 386, "owner": {"id": 1242}, "assignee": {"id": 8}}, "organization": {"id": 1455}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 637}, "assignee": {"id": 516}, "project": {"id": 394, "owner": {"id": 703}, "assignee": {"id": 890}}, "task": {"id": 327, "owner": {"id": 916}, "assignee": {"id": 1014}}, "job": {"id": 357, "assignee": {"id": 1184}}, "issue": {"id": 335, "owner": {"id": 1298}, "assignee": {"id": 13}}, "organization": {"id": 107}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 369, "owner": {"id": 622}, "assignee": {"id": 589}, "project": {"id": 370, "owner": {"id": 795}, "assignee": {"id": 899}}, "task": {"id": 343, "owner": {"id": 901}, "assignee": {"id": 1016}}, "job": {"id": 320, "assignee": {"id": 1102}}, "issue": {"id": 336, "owner": {"id": 1281}, "assignee": {"id": 93}}, "organization": {"id": 128}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "owner": {"id": 686}, "assignee": {"id": 532}, "project": {"id": 362, "owner": {"id": 793}, "assignee": {"id": 804}}, "task": {"id": 384, "owner": {"id": 900}, "assignee": {"id": 1057}}, "job": {"id": 364, "assignee": {"id": 1124}}, "issue": {"id": 351, "owner": {"id": 1240}, "assignee": {"id": 34}}, "organization": {"id": 1447}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 652}, "assignee": {"id": 511}, "project": {"id": 388, "owner": {"id": 742}, "assignee": {"id": 873}}, "task": {"id": 303, "owner": {"id": 927}, "assignee": {"id": 1091}}, "job": {"id": 358, "assignee": {"id": 1127}}, "issue": {"id": 337, "owner": {"id": 1276}, "assignee": {"id": 54}}, "organization": {"id": 1490}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 351, "owner": {"id": 625}, "assignee": {"id": 519}, "project": {"id": 369, "owner": {"id": 794}, "assignee": {"id": 866}}, "task": {"id": 335, "owner": {"id": 982}, "assignee": {"id": 1086}}, "job": {"id": 368, "assignee": {"id": 1114}}, "issue": {"id": 388, "owner": {"id": 1263}, "assignee": {"id": 51}}, "organization": {"id": 128}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 307, "owner": {"id": 633}, "assignee": {"id": 593}, "project": {"id": 391, "owner": {"id": 778}, "assignee": {"id": 867}}, "task": {"id": 321, "owner": {"id": 980}, "assignee": {"id": 1080}}, "job": {"id": 313, "assignee": {"id": 1164}}, "issue": {"id": 373, "owner": {"id": 1213}, "assignee": {"id": 71}}, "organization": {"id": 177}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 627}, "assignee": {"id": 595}, "project": {"id": 338, "owner": {"id": 744}, "assignee": {"id": 808}}, "task": {"id": 341, "owner": {"id": 943}, "assignee": {"id": 1050}}, "job": {"id": 346, "assignee": {"id": 1145}}, "issue": {"id": 303, "owner": {"id": 1211}, "assignee": {"id": 83}}, "organization": {"id": 1451}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 343, "owner": {"id": 652}, "assignee": {"id": 527}, "project": {"id": 339, "owner": {"id": 750}, "assignee": {"id": 858}}, "task": {"id": 333, "owner": {"id": 915}, "assignee": {"id": 1090}}, "job": {"id": 322, "assignee": {"id": 1143}}, "issue": {"id": 340, "owner": {"id": 1253}, "assignee": {"id": 89}}, "organization": {"id": 1400}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 94, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 373, "owner": {"id": 650}, "assignee": {"id": 512}, "project": {"id": 326, "owner": {"id": 729}, "assignee": {"id": 892}}, "task": {"id": 393, "owner": {"id": 974}, "assignee": {"id": 1081}}, "job": {"id": 383, "assignee": {"id": 1162}}, "issue": {"id": 371, "owner": {"id": 1274}, "assignee": {"id": 94}}, "organization": {"id": 142}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 381, "owner": {"id": 631}, "assignee": {"id": 592}, "project": {"id": 373, "owner": {"id": 758}, "assignee": {"id": 862}}, "task": {"id": 382, "owner": {"id": 981}, "assignee": {"id": 1023}}, "job": {"id": 333, "assignee": {"id": 1138}}, "issue": {"id": 303, "owner": {"id": 1248}, "assignee": {"id": 70}}, "organization": {"id": 133}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 361, "owner": {"id": 699}, "assignee": {"id": 550}, "project": {"id": 358, "owner": {"id": 726}, "assignee": {"id": 873}}, "task": {"id": 377, "owner": {"id": 950}, "assignee": {"id": 1085}}, "job": {"id": 331, "assignee": {"id": 1175}}, "issue": {"id": 300, "owner": {"id": 1227}, "assignee": {"id": 45}}, "organization": {"id": 1412}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 317, "owner": {"id": 687}, "assignee": {"id": 548}, "project": {"id": 330, "owner": {"id": 725}, "assignee": {"id": 865}}, "task": {"id": 354, "owner": {"id": 978}, "assignee": {"id": 1061}}, "job": {"id": 395, "assignee": {"id": 1195}}, "issue": {"id": 343, "owner": {"id": 1289}, "assignee": {"id": 25}}, "organization": {"id": 1494}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 669}, "assignee": {"id": 505}, "project": {"id": 396, "owner": {"id": 715}, "assignee": {"id": 835}}, "task": {"id": 369, "owner": {"id": 929}, "assignee": {"id": 1051}}, "job": {"id": 331, "assignee": {"id": 1136}}, "issue": {"id": 396, "owner": {"id": 1235}, "assignee": {"id": 79}}, "organization": {"id": 172}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 356, "owner": {"id": 664}, "assignee": {"id": 586}, "project": {"id": 342, "owner": {"id": 777}, "assignee": {"id": 821}}, "task": {"id": 378, "owner": {"id": 915}, "assignee": {"id": 1053}}, "job": {"id": 359, "assignee": {"id": 1135}}, "issue": {"id": 362, "owner": {"id": 1270}, "assignee": {"id": 7}}, "organization": {"id": 171}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 666}, "assignee": {"id": 505}, "project": {"id": 353, "owner": {"id": 705}, "assignee": {"id": 893}}, "task": {"id": 366, "owner": {"id": 907}, "assignee": {"id": 1096}}, "job": {"id": 338, "assignee": {"id": 1103}}, "issue": {"id": 356, "owner": {"id": 1276}, "assignee": {"id": 20}}, "organization": {"id": 1475}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 631}, "assignee": {"id": 563}, "project": {"id": 398, "owner": {"id": 788}, "assignee": {"id": 833}}, "task": {"id": 399, "owner": {"id": 903}, "assignee": {"id": 1016}}, "job": {"id": 319, "assignee": {"id": 1148}}, "issue": {"id": 357, "owner": {"id": 1200}, "assignee": {"id": 0}}, "organization": {"id": 1432}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "owner": {"id": 611}, "assignee": {"id": 587}, "project": {"id": 375, "owner": {"id": 753}, "assignee": {"id": 814}}, "task": {"id": 348, "owner": {"id": 943}, "assignee": {"id": 1017}}, "job": {"id": 350, "assignee": {"id": 1142}}, "issue": {"id": 358, "owner": {"id": 1267}, "assignee": {"id": 29}}, "organization": {"id": 116}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "owner": {"id": 651}, "assignee": {"id": 502}, "project": {"id": 366, "owner": {"id": 707}, "assignee": {"id": 809}}, "task": {"id": 396, "owner": {"id": 913}, "assignee": {"id": 1072}}, "job": {"id": 317, "assignee": {"id": 1160}}, "issue": {"id": 393, "owner": {"id": 1232}, "assignee": {"id": 93}}, "organization": {"id": 187}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "owner": {"id": 647}, "assignee": {"id": 565}, "project": {"id": 318, "owner": {"id": 754}, "assignee": {"id": 829}}, "task": {"id": 337, "owner": {"id": 929}, "assignee": {"id": 1097}}, "job": {"id": 315, "assignee": {"id": 1174}}, "issue": {"id": 386, "owner": {"id": 1252}, "assignee": {"id": 49}}, "organization": {"id": 1404}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "owner": {"id": 689}, "assignee": {"id": 528}, "project": {"id": 319, "owner": {"id": 746}, "assignee": {"id": 891}}, "task": {"id": 394, "owner": {"id": 915}, "assignee": {"id": 1001}}, "job": {"id": 310, "assignee": {"id": 1123}}, "issue": {"id": 318, "owner": {"id": 1250}, "assignee": {"id": 73}}, "organization": {"id": 1480}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 600}, "assignee": {"id": 592}, "project": {"id": 374, "owner": {"id": 724}, "assignee": {"id": 872}}, "task": {"id": 339, "owner": {"id": 903}, "assignee": {"id": 1064}}, "job": {"id": 349, "assignee": {"id": 1149}}, "issue": {"id": 382, "owner": {"id": 1249}, "assignee": {"id": 1}}, "organization": {"id": 105}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 694}, "assignee": {"id": 573}, "project": {"id": 336, "owner": {"id": 790}, "assignee": {"id": 872}}, "task": {"id": 317, "owner": {"id": 961}, "assignee": {"id": 1094}}, "job": {"id": 359, "assignee": {"id": 1177}}, "issue": {"id": 381, "owner": {"id": 1242}, "assignee": {"id": 88}}, "organization": {"id": 178}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "owner": {"id": 607}, "assignee": {"id": 595}, "project": {"id": 394, "owner": {"id": 749}, "assignee": {"id": 832}}, "task": {"id": 329, "owner": {"id": 978}, "assignee": {"id": 1087}}, "job": {"id": 301, "assignee": {"id": 1138}}, "issue": {"id": 372, "owner": {"id": 1240}, "assignee": {"id": 10}}, "organization": {"id": 1493}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "owner": {"id": 618}, "assignee": {"id": 527}, "project": {"id": 366, "owner": {"id": 759}, "assignee": {"id": 825}}, "task": {"id": 392, "owner": {"id": 962}, "assignee": {"id": 1022}}, "job": {"id": 330, "assignee": {"id": 1135}}, "issue": {"id": 352, "owner": {"id": 1224}, "assignee": {"id": 89}}, "organization": {"id": 1412}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 365, "owner": {"id": 621}, "assignee": {"id": 535}, "project": {"id": 314, "owner": {"id": 755}, "assignee": {"id": 814}}, "task": {"id": 347, "owner": {"id": 987}, "assignee": {"id": 1083}}, "job": {"id": 385, "assignee": {"id": 1106}}, "issue": {"id": 377, "owner": {"id": 1230}, "assignee": {"id": 69}}, "organization": {"id": 165}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 617}, "assignee": {"id": 508}, "project": {"id": 374, "owner": {"id": 717}, "assignee": {"id": 830}}, "task": {"id": 379, "owner": {"id": 914}, "assignee": {"id": 1082}}, "job": {"id": 340, "assignee": {"id": 1192}}, "issue": {"id": 352, "owner": {"id": 1200}, "assignee": {"id": 73}}, "organization": {"id": 195}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 333, "owner": {"id": 656}, "assignee": {"id": 546}, "project": {"id": 356, "owner": {"id": 733}, "assignee": {"id": 848}}, "task": {"id": 305, "owner": {"id": 983}, "assignee": {"id": 1080}}, "job": {"id": 347, "assignee": {"id": 1158}}, "issue": {"id": 390, "owner": {"id": 1272}, "assignee": {"id": 51}}, "organization": {"id": 1401}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 666}, "assignee": {"id": 509}, "project": {"id": 395, "owner": {"id": 779}, "assignee": {"id": 845}}, "task": {"id": 397, "owner": {"id": 944}, "assignee": {"id": 1077}}, "job": {"id": 319, "assignee": {"id": 1108}}, "issue": {"id": 312, "owner": {"id": 1215}, "assignee": {"id": 67}}, "organization": {"id": 1495}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 399, "owner": {"id": 640}, "assignee": {"id": 539}, "project": {"id": 387, "owner": {"id": 795}, "assignee": {"id": 807}}, "task": {"id": 359, "owner": {"id": 974}, "assignee": {"id": 1019}}, "job": {"id": 337, "assignee": {"id": 1175}}, "issue": {"id": 397, "owner": {"id": 1236}, "assignee": {"id": 53}}, "organization": {"id": 152}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 319, "owner": {"id": 630}, "assignee": {"id": 534}, "project": {"id": 312, "owner": {"id": 721}, "assignee": {"id": 899}}, "task": {"id": 301, "owner": {"id": 971}, "assignee": {"id": 1044}}, "job": {"id": 335, "assignee": {"id": 1125}}, "issue": {"id": 308, "owner": {"id": 1222}, "assignee": {"id": 71}}, "organization": {"id": 156}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 320, "owner": {"id": 689}, "assignee": {"id": 531}, "project": {"id": 305, "owner": {"id": 717}, "assignee": {"id": 806}}, "task": {"id": 315, "owner": {"id": 900}, "assignee": {"id": 1085}}, "job": {"id": 358, "assignee": {"id": 1171}}, "issue": {"id": 347, "owner": {"id": 1216}, "assignee": {"id": 21}}, "organization": {"id": 1427}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 373, "owner": {"id": 637}, "assignee": {"id": 519}, "project": {"id": 358, "owner": {"id": 783}, "assignee": {"id": 875}}, "task": {"id": 360, "owner": {"id": 976}, "assignee": {"id": 1063}}, "job": {"id": 384, "assignee": {"id": 1131}}, "issue": {"id": 326, "owner": {"id": 1227}, "assignee": {"id": 35}}, "organization": {"id": 1454}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 371, "owner": {"id": 694}, "assignee": {"id": 533}, "project": {"id": 372, "owner": {"id": 732}, "assignee": {"id": 895}}, "task": {"id": 301, "owner": {"id": 999}, "assignee": {"id": 1082}}, "job": {"id": 334, "assignee": {"id": 1135}}, "issue": {"id": 366, "owner": {"id": 1205}, "assignee": {"id": 6}}, "organization": {"id": 114}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 646}, "assignee": {"id": 539}, "project": {"id": 373, "owner": {"id": 775}, "assignee": {"id": 836}}, "task": {"id": 398, "owner": {"id": 926}, "assignee": {"id": 1091}}, "job": {"id": 355, "assignee": {"id": 1139}}, "issue": {"id": 328, "owner": {"id": 1237}, "assignee": {"id": 31}}, "organization": {"id": 174}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 653}, "assignee": {"id": 508}, "project": {"id": 358, "owner": {"id": 708}, "assignee": {"id": 808}}, "task": {"id": 391, "owner": {"id": 951}, "assignee": {"id": 1008}}, "job": {"id": 391, "assignee": {"id": 1122}}, "issue": {"id": 321, "owner": {"id": 1246}, "assignee": {"id": 46}}, "organization": {"id": 1499}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 675}, "assignee": {"id": 571}, "project": {"id": 378, "owner": {"id": 782}, "assignee": {"id": 889}}, "task": {"id": 361, "owner": {"id": 995}, "assignee": {"id": 1002}}, "job": {"id": 368, "assignee": {"id": 1110}}, "issue": {"id": 395, "owner": {"id": 1215}, "assignee": {"id": 74}}, "organization": {"id": 1448}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "owner": {"id": 669}, "assignee": {"id": 563}, "project": {"id": 321, "owner": {"id": 779}, "assignee": {"id": 888}}, "task": {"id": 317, "owner": {"id": 914}, "assignee": {"id": 1030}}, "job": {"id": 311, "assignee": {"id": 1144}}, "issue": {"id": 364, "owner": {"id": 1284}, "assignee": {"id": 69}}, "organization": {"id": 168}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "owner": {"id": 616}, "assignee": {"id": 529}, "project": {"id": 350, "owner": {"id": 754}, "assignee": {"id": 845}}, "task": {"id": 338, "owner": {"id": 900}, "assignee": {"id": 1060}}, "job": {"id": 381, "assignee": {"id": 1102}}, "issue": {"id": 375, "owner": {"id": 1235}, "assignee": {"id": 63}}, "organization": {"id": 112}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "owner": {"id": 659}, "assignee": {"id": 535}, "project": {"id": 304, "owner": {"id": 704}, "assignee": {"id": 859}}, "task": {"id": 300, "owner": {"id": 980}, "assignee": {"id": 1069}}, "job": {"id": 302, "assignee": {"id": 1142}}, "issue": {"id": 345, "owner": {"id": 1258}, "assignee": {"id": 33}}, "organization": {"id": 1487}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "owner": {"id": 617}, "assignee": {"id": 558}, "project": {"id": 344, "owner": {"id": 700}, "assignee": {"id": 826}}, "task": {"id": 332, "owner": {"id": 912}, "assignee": {"id": 1065}}, "job": {"id": 387, "assignee": {"id": 1171}}, "issue": {"id": 305, "owner": {"id": 1255}, "assignee": {"id": 40}}, "organization": {"id": 1414}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 648}, "assignee": {"id": 580}, "project": {"id": 332, "owner": {"id": 735}, "assignee": {"id": 861}}, "task": {"id": 320, "owner": {"id": 901}, "assignee": {"id": 1021}}, "job": {"id": 327, "assignee": {"id": 1114}}, "issue": {"id": 390, "owner": {"id": 1233}, "assignee": {"id": 71}}, "organization": {"id": 106}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "owner": {"id": 618}, "assignee": {"id": 524}, "project": {"id": 313, "owner": {"id": 715}, "assignee": {"id": 830}}, "task": {"id": 376, "owner": {"id": 941}, "assignee": {"id": 1022}}, "job": {"id": 380, "assignee": {"id": 1150}}, "issue": {"id": 376, "owner": {"id": 1225}, "assignee": {"id": 64}}, "organization": {"id": 168}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 674}, "assignee": {"id": 538}, "project": {"id": 373, "owner": {"id": 737}, "assignee": {"id": 838}}, "task": {"id": 312, "owner": {"id": 989}, "assignee": {"id": 1047}}, "job": {"id": 399, "assignee": {"id": 1108}}, "issue": {"id": 347, "owner": {"id": 1251}, "assignee": {"id": 65}}, "organization": {"id": 1489}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 630}, "assignee": {"id": 542}, "project": {"id": 311, "owner": {"id": 764}, "assignee": {"id": 886}}, "task": {"id": 387, "owner": {"id": 923}, "assignee": {"id": 1065}}, "job": {"id": 353, "assignee": {"id": 1126}}, "issue": {"id": 350, "owner": {"id": 1217}, "assignee": {"id": 86}}, "organization": {"id": 1434}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 364, "owner": {"id": 686}, "assignee": {"id": 564}, "project": {"id": 381, "owner": {"id": 705}, "assignee": {"id": 883}}, "task": {"id": 326, "owner": {"id": 985}, "assignee": {"id": 1038}}, "job": {"id": 348, "assignee": {"id": 1121}}, "issue": {"id": 377, "owner": {"id": 1251}, "assignee": {"id": 3}}, "organization": {"id": 190}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 669}, "assignee": {"id": 525}, "project": {"id": 305, "owner": {"id": 734}, "assignee": {"id": 830}}, "task": {"id": 347, "owner": {"id": 925}, "assignee": {"id": 1077}}, "job": {"id": 347, "assignee": {"id": 1133}}, "issue": {"id": 303, "owner": {"id": 1249}, "assignee": {"id": 63}}, "organization": {"id": 170}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 379, "owner": {"id": 638}, "assignee": {"id": 592}, "project": {"id": 382, "owner": {"id": 776}, "assignee": {"id": 863}}, "task": {"id": 317, "owner": {"id": 963}, "assignee": {"id": 1057}}, "job": {"id": 394, "assignee": {"id": 1103}}, "issue": {"id": 340, "owner": {"id": 1299}, "assignee": {"id": 71}}, "organization": {"id": 1451}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 395, "owner": {"id": 649}, "assignee": {"id": 564}, "project": {"id": 339, "owner": {"id": 777}, "assignee": {"id": 879}}, "task": {"id": 387, "owner": {"id": 903}, "assignee": {"id": 1049}}, "job": {"id": 334, "assignee": {"id": 1198}}, "issue": {"id": 353, "owner": {"id": 1207}, "assignee": {"id": 21}}, "organization": {"id": 1429}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 312, "owner": {"id": 618}, "assignee": {"id": 585}, "project": {"id": 329, "owner": {"id": 789}, "assignee": {"id": 847}}, "task": {"id": 372, "owner": {"id": 919}, "assignee": {"id": 1073}}, "job": {"id": 306, "assignee": {"id": 1166}}, "issue": {"id": 312, "owner": {"id": 1244}, "assignee": {"id": 43}}, "organization": {"id": 150}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 383, "owner": {"id": 604}, "assignee": {"id": 534}, "project": {"id": 329, "owner": {"id": 706}, "assignee": {"id": 890}}, "task": {"id": 310, "owner": {"id": 906}, "assignee": {"id": 1073}}, "job": {"id": 380, "assignee": {"id": 1146}}, "issue": {"id": 301, "owner": {"id": 1281}, "assignee": {"id": 17}}, "organization": {"id": 154}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 665}, "assignee": {"id": 506}, "project": {"id": 348, "owner": {"id": 775}, "assignee": {"id": 873}}, "task": {"id": 343, "owner": {"id": 918}, "assignee": {"id": 1062}}, "job": {"id": 388, "assignee": {"id": 1178}}, "issue": {"id": 373, "owner": {"id": 1276}, "assignee": {"id": 10}}, "organization": {"id": 1450}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 309, "owner": {"id": 600}, "assignee": {"id": 518}, "project": {"id": 335, "owner": {"id": 789}, "assignee": {"id": 839}}, "task": {"id": 317, "owner": {"id": 987}, "assignee": {"id": 1051}}, "job": {"id": 309, "assignee": {"id": 1164}}, "issue": {"id": 370, "owner": {"id": 1291}, "assignee": {"id": 50}}, "organization": {"id": 1452}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 681}, "assignee": {"id": 562}, "project": {"id": 389, "owner": {"id": 757}, "assignee": {"id": 892}}, "task": {"id": 327, "owner": {"id": 976}, "assignee": {"id": 1072}}, "job": {"id": 367, "assignee": {"id": 1163}}, "issue": {"id": 379, "owner": {"id": 1226}, "assignee": {"id": 2}}, "organization": {"id": 174}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 628}, "assignee": {"id": 591}, "project": {"id": 378, "owner": {"id": 763}, "assignee": {"id": 829}}, "task": {"id": 377, "owner": {"id": 951}, "assignee": {"id": 1059}}, "job": {"id": 372, "assignee": {"id": 1167}}, "issue": {"id": 315, "owner": {"id": 1268}, "assignee": {"id": 33}}, "organization": {"id": 152}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 365, "owner": {"id": 682}, "assignee": {"id": 576}, "project": {"id": 363, "owner": {"id": 719}, "assignee": {"id": 847}}, "task": {"id": 341, "owner": {"id": 989}, "assignee": {"id": 1052}}, "job": {"id": 311, "assignee": {"id": 1148}}, "issue": {"id": 362, "owner": {"id": 1253}, "assignee": {"id": 76}}, "organization": {"id": 1406}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 349, "owner": {"id": 644}, "assignee": {"id": 509}, "project": {"id": 321, "owner": {"id": 761}, "assignee": {"id": 884}}, "task": {"id": 396, "owner": {"id": 946}, "assignee": {"id": 1061}}, "job": {"id": 378, "assignee": {"id": 1148}}, "issue": {"id": 378, "owner": {"id": 1256}, "assignee": {"id": 10}}, "organization": {"id": 1476}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "owner": {"id": 690}, "assignee": {"id": 575}, "project": {"id": 383, "owner": {"id": 733}, "assignee": {"id": 898}}, "task": {"id": 347, "owner": {"id": 922}, "assignee": {"id": 1049}}, "job": {"id": 347, "assignee": {"id": 1127}}, "issue": {"id": 382, "owner": {"id": 1228}, "assignee": {"id": 52}}, "organization": {"id": 105}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "owner": {"id": 617}, "assignee": {"id": 525}, "project": {"id": 358, "owner": {"id": 708}, "assignee": {"id": 874}}, "task": {"id": 332, "owner": {"id": 991}, "assignee": {"id": 1056}}, "job": {"id": 330, "assignee": {"id": 1195}}, "issue": {"id": 338, "owner": {"id": 1283}, "assignee": {"id": 72}}, "organization": {"id": 142}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "owner": {"id": 636}, "assignee": {"id": 585}, "project": {"id": 398, "owner": {"id": 731}, "assignee": {"id": 867}}, "task": {"id": 395, "owner": {"id": 947}, "assignee": {"id": 1043}}, "job": {"id": 323, "assignee": {"id": 1169}}, "issue": {"id": 345, "owner": {"id": 1246}, "assignee": {"id": 92}}, "organization": {"id": 1472}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 659}, "assignee": {"id": 520}, "project": {"id": 339, "owner": {"id": 774}, "assignee": {"id": 823}}, "task": {"id": 303, "owner": {"id": 924}, "assignee": {"id": 1039}}, "job": {"id": 343, "assignee": {"id": 1135}}, "issue": {"id": 387, "owner": {"id": 1217}, "assignee": {"id": 57}}, "organization": {"id": 1449}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "owner": {"id": 687}, "assignee": {"id": 593}, "project": {"id": 344, "owner": {"id": 772}, "assignee": {"id": 876}}, "task": {"id": 319, "owner": {"id": 956}, "assignee": {"id": 1019}}, "job": {"id": 301, "assignee": {"id": 1123}}, "issue": {"id": 300, "owner": {"id": 1220}, "assignee": {"id": 77}}, "organization": {"id": 145}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "owner": {"id": 681}, "assignee": {"id": 518}, "project": {"id": 377, "owner": {"id": 726}, "assignee": {"id": 847}}, "task": {"id": 395, "owner": {"id": 934}, "assignee": {"id": 1073}}, "job": {"id": 337, "assignee": {"id": 1147}}, "issue": {"id": 332, "owner": {"id": 1238}, "assignee": {"id": 21}}, "organization": {"id": 104}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 699}, "assignee": {"id": 557}, "project": {"id": 310, "owner": {"id": 727}, "assignee": {"id": 856}}, "task": {"id": 378, "owner": {"id": 923}, "assignee": {"id": 1099}}, "job": {"id": 377, "assignee": {"id": 1101}}, "issue": {"id": 364, "owner": {"id": 1272}, "assignee": {"id": 52}}, "organization": {"id": 1464}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 688}, "assignee": {"id": 561}, "project": {"id": 311, "owner": {"id": 735}, "assignee": {"id": 873}}, "task": {"id": 344, "owner": {"id": 944}, "assignee": {"id": 1005}}, "job": {"id": 318, "assignee": {"id": 1149}}, "issue": {"id": 397, "owner": {"id": 1292}, "assignee": {"id": 12}}, "organization": {"id": 1449}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 320, "owner": {"id": 673}, "assignee": {"id": 518}, "project": {"id": 343, "owner": {"id": 751}, "assignee": {"id": 840}}, "task": {"id": 379, "owner": {"id": 911}, "assignee": {"id": 1089}}, "job": {"id": 356, "assignee": {"id": 1136}}, "issue": {"id": 381, "owner": {"id": 1240}, "assignee": {"id": 10}}, "organization": {"id": 109}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 320, "owner": {"id": 635}, "assignee": {"id": 539}, "project": {"id": 338, "owner": {"id": 741}, "assignee": {"id": 864}}, "task": {"id": 329, "owner": {"id": 954}, "assignee": {"id": 1072}}, "job": {"id": 303, "assignee": {"id": 1122}}, "issue": {"id": 333, "owner": {"id": 1274}, "assignee": {"id": 40}}, "organization": {"id": 114}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 392, "owner": {"id": 648}, "assignee": {"id": 554}, "project": {"id": 348, "owner": {"id": 708}, "assignee": {"id": 811}}, "task": {"id": 356, "owner": {"id": 942}, "assignee": {"id": 1029}}, "job": {"id": 338, "assignee": {"id": 1142}}, "issue": {"id": 384, "owner": {"id": 1271}, "assignee": {"id": 29}}, "organization": {"id": 1496}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 351, "owner": {"id": 661}, "assignee": {"id": 599}, "project": {"id": 346, "owner": {"id": 779}, "assignee": {"id": 879}}, "task": {"id": 378, "owner": {"id": 943}, "assignee": {"id": 1017}}, "job": {"id": 351, "assignee": {"id": 1150}}, "issue": {"id": 377, "owner": {"id": 1202}, "assignee": {"id": 90}}, "organization": {"id": 1425}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 304, "owner": {"id": 645}, "assignee": {"id": 501}, "project": {"id": 377, "owner": {"id": 755}, "assignee": {"id": 886}}, "task": {"id": 379, "owner": {"id": 940}, "assignee": {"id": 1046}}, "job": {"id": 334, "assignee": {"id": 1115}}, "issue": {"id": 340, "owner": {"id": 1266}, "assignee": {"id": 40}}, "organization": {"id": 192}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 366, "owner": {"id": 668}, "assignee": {"id": 529}, "project": {"id": 358, "owner": {"id": 755}, "assignee": {"id": 819}}, "task": {"id": 352, "owner": {"id": 972}, "assignee": {"id": 1049}}, "job": {"id": 325, "assignee": {"id": 1179}}, "issue": {"id": 334, "owner": {"id": 1241}, "assignee": {"id": 38}}, "organization": {"id": 174}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 301, "owner": {"id": 687}, "assignee": {"id": 500}, "project": {"id": 374, "owner": {"id": 771}, "assignee": {"id": 840}}, "task": {"id": 326, "owner": {"id": 968}, "assignee": {"id": 1071}}, "job": {"id": 361, "assignee": {"id": 1168}}, "issue": {"id": 352, "owner": {"id": 1255}, "assignee": {"id": 67}}, "organization": {"id": 1492}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 386, "owner": {"id": 672}, "assignee": {"id": 564}, "project": {"id": 327, "owner": {"id": 729}, "assignee": {"id": 869}}, "task": {"id": 373, "owner": {"id": 926}, "assignee": {"id": 1037}}, "job": {"id": 356, "assignee": {"id": 1186}}, "issue": {"id": 371, "owner": {"id": 1283}, "assignee": {"id": 44}}, "organization": {"id": 1430}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 348, "owner": {"id": 56}, "assignee": {"id": 585}, "project": {"id": 366, "owner": {"id": 798}, "assignee": {"id": 875}}, "task": {"id": 332, "owner": {"id": 924}, "assignee": {"id": 1089}}, "job": {"id": 321, "assignee": {"id": 1116}}, "issue": {"id": 301, "owner": {"id": 1214}, "assignee": {"id": 1305}}, "organization": {"id": 137}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 349, "owner": {"id": 89}, "assignee": {"id": 561}, "project": {"id": 394, "owner": {"id": 795}, "assignee": {"id": 803}}, "task": {"id": 306, "owner": {"id": 995}, "assignee": {"id": 1062}}, "job": {"id": 384, "assignee": {"id": 1160}}, "issue": {"id": 334, "owner": {"id": 1225}, "assignee": {"id": 1392}}, "organization": {"id": 140}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 50}, "assignee": {"id": 530}, "project": {"id": 300, "owner": {"id": 781}, "assignee": {"id": 894}}, "task": {"id": 341, "owner": {"id": 911}, "assignee": {"id": 1056}}, "job": {"id": 380, "assignee": {"id": 1174}}, "issue": {"id": 389, "owner": {"id": 1275}, "assignee": {"id": 1312}}, "organization": {"id": 1469}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 54}, "assignee": {"id": 532}, "project": {"id": 336, "owner": {"id": 770}, "assignee": {"id": 802}}, "task": {"id": 333, "owner": {"id": 948}, "assignee": {"id": 1002}}, "job": {"id": 302, "assignee": {"id": 1160}}, "issue": {"id": 370, "owner": {"id": 1248}, "assignee": {"id": 1340}}, "organization": {"id": 1440}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "owner": {"id": 18}, "assignee": {"id": 516}, "project": {"id": 396, "owner": {"id": 761}, "assignee": {"id": 847}}, "task": {"id": 324, "owner": {"id": 960}, "assignee": {"id": 1093}}, "job": {"id": 355, "assignee": {"id": 1137}}, "issue": {"id": 313, "owner": {"id": 1282}, "assignee": {"id": 1377}}, "organization": {"id": 187}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "owner": {"id": 81}, "assignee": {"id": 545}, "project": {"id": 347, "owner": {"id": 762}, "assignee": {"id": 812}}, "task": {"id": 389, "owner": {"id": 973}, "assignee": {"id": 1043}}, "job": {"id": 334, "assignee": {"id": 1108}}, "issue": {"id": 385, "owner": {"id": 1203}, "assignee": {"id": 1376}}, "organization": {"id": 177}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 92}, "assignee": {"id": 578}, "project": {"id": 329, "owner": {"id": 773}, "assignee": {"id": 829}}, "task": {"id": 323, "owner": {"id": 967}, "assignee": {"id": 1025}}, "job": {"id": 314, "assignee": {"id": 1183}}, "issue": {"id": 321, "owner": {"id": 1284}, "assignee": {"id": 1332}}, "organization": {"id": 1436}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "owner": {"id": 46}, "assignee": {"id": 561}, "project": {"id": 307, "owner": {"id": 707}, "assignee": {"id": 813}}, "task": {"id": 319, "owner": {"id": 947}, "assignee": {"id": 1040}}, "job": {"id": 382, "assignee": {"id": 1159}}, "issue": {"id": 338, "owner": {"id": 1286}, "assignee": {"id": 1384}}, "organization": {"id": 1480}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "owner": {"id": 85}, "assignee": {"id": 597}, "project": {"id": 369, "owner": {"id": 769}, "assignee": {"id": 823}}, "task": {"id": 333, "owner": {"id": 951}, "assignee": {"id": 1090}}, "job": {"id": 310, "assignee": {"id": 1182}}, "issue": {"id": 343, "owner": {"id": 1235}, "assignee": {"id": 1330}}, "organization": {"id": 189}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 29}, "assignee": {"id": 566}, "project": {"id": 338, "owner": {"id": 701}, "assignee": {"id": 860}}, "task": {"id": 343, "owner": {"id": 912}, "assignee": {"id": 1070}}, "job": {"id": 333, "assignee": {"id": 1104}}, "issue": {"id": 395, "owner": {"id": 1263}, "assignee": {"id": 1368}}, "organization": {"id": 126}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "owner": {"id": 76}, "assignee": {"id": 555}, "project": {"id": 301, "owner": {"id": 799}, "assignee": {"id": 890}}, "task": {"id": 367, "owner": {"id": 974}, "assignee": {"id": 1072}}, "job": {"id": 383, "assignee": {"id": 1120}}, "issue": {"id": 344, "owner": {"id": 1227}, "assignee": {"id": 1310}}, "organization": {"id": 1443}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 74}, "assignee": {"id": 599}, "project": {"id": 385, "owner": {"id": 762}, "assignee": {"id": 872}}, "task": {"id": 383, "owner": {"id": 938}, "assignee": {"id": 1000}}, "job": {"id": 340, "assignee": {"id": 1153}}, "issue": {"id": 375, "owner": {"id": 1261}, "assignee": {"id": 1323}}, "organization": {"id": 1432}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 304, "owner": {"id": 56}, "assignee": {"id": 528}, "project": {"id": 343, "owner": {"id": 763}, "assignee": {"id": 871}}, "task": {"id": 372, "owner": {"id": 900}, "assignee": {"id": 1099}}, "job": {"id": 307, "assignee": {"id": 1161}}, "issue": {"id": 318, "owner": {"id": 1288}, "assignee": {"id": 1313}}, "organization": {"id": 115}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 398, "owner": {"id": 86}, "assignee": {"id": 580}, "project": {"id": 356, "owner": {"id": 744}, "assignee": {"id": 887}}, "task": {"id": 306, "owner": {"id": 960}, "assignee": {"id": 1093}}, "job": {"id": 393, "assignee": {"id": 1124}}, "issue": {"id": 334, "owner": {"id": 1267}, "assignee": {"id": 1391}}, "organization": {"id": 192}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 382, "owner": {"id": 52}, "assignee": {"id": 571}, "project": {"id": 340, "owner": {"id": 764}, "assignee": {"id": 865}}, "task": {"id": 335, "owner": {"id": 995}, "assignee": {"id": 1013}}, "job": {"id": 368, "assignee": {"id": 1119}}, "issue": {"id": 353, "owner": {"id": 1296}, "assignee": {"id": 1360}}, "organization": {"id": 1485}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 99}, "assignee": {"id": 530}, "project": {"id": 321, "owner": {"id": 749}, "assignee": {"id": 811}}, "task": {"id": 302, "owner": {"id": 922}, "assignee": {"id": 1073}}, "job": {"id": 388, "assignee": {"id": 1150}}, "issue": {"id": 330, "owner": {"id": 1239}, "assignee": {"id": 1360}}, "organization": {"id": 1472}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 360, "owner": {"id": 13}, "assignee": {"id": 546}, "project": {"id": 381, "owner": {"id": 775}, "assignee": {"id": 836}}, "task": {"id": 314, "owner": {"id": 963}, "assignee": {"id": 1075}}, "job": {"id": 395, "assignee": {"id": 1106}}, "issue": {"id": 388, "owner": {"id": 1240}, "assignee": {"id": 1371}}, "organization": {"id": 188}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 51}, "assignee": {"id": 510}, "project": {"id": 394, "owner": {"id": 752}, "assignee": {"id": 848}}, "task": {"id": 374, "owner": {"id": 942}, "assignee": {"id": 1053}}, "job": {"id": 332, "assignee": {"id": 1185}}, "issue": {"id": 305, "owner": {"id": 1204}, "assignee": {"id": 1338}}, "organization": {"id": 199}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 36}, "assignee": {"id": 546}, "project": {"id": 379, "owner": {"id": 747}, "assignee": {"id": 806}}, "task": {"id": 357, "owner": {"id": 985}, "assignee": {"id": 1077}}, "job": {"id": 384, "assignee": {"id": 1154}}, "issue": {"id": 335, "owner": {"id": 1283}, "assignee": {"id": 1313}}, "organization": {"id": 1478}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 374, "owner": {"id": 35}, "assignee": {"id": 567}, "project": {"id": 343, "owner": {"id": 795}, "assignee": {"id": 889}}, "task": {"id": 329, "owner": {"id": 972}, "assignee": {"id": 1028}}, "job": {"id": 372, "assignee": {"id": 1142}}, "issue": {"id": 306, "owner": {"id": 1256}, "assignee": {"id": 1335}}, "organization": {"id": 1487}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 313, "owner": {"id": 3}, "assignee": {"id": 562}, "project": {"id": 398, "owner": {"id": 718}, "assignee": {"id": 891}}, "task": {"id": 322, "owner": {"id": 958}, "assignee": {"id": 1042}}, "job": {"id": 329, "assignee": {"id": 1148}}, "issue": {"id": 330, "owner": {"id": 1296}, "assignee": {"id": 1377}}, "organization": {"id": 120}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 349, "owner": {"id": 61}, "assignee": {"id": 529}, "project": {"id": 349, "owner": {"id": 726}, "assignee": {"id": 871}}, "task": {"id": 385, "owner": {"id": 930}, "assignee": {"id": 1029}}, "job": {"id": 371, "assignee": {"id": 1148}}, "issue": {"id": 335, "owner": {"id": 1203}, "assignee": {"id": 1381}}, "organization": {"id": 171}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 29}, "assignee": {"id": 542}, "project": {"id": 361, "owner": {"id": 760}, "assignee": {"id": 848}}, "task": {"id": 316, "owner": {"id": 904}, "assignee": {"id": 1063}}, "job": {"id": 315, "assignee": {"id": 1101}}, "issue": {"id": 316, "owner": {"id": 1209}, "assignee": {"id": 1308}}, "organization": {"id": 1450}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 315, "owner": {"id": 39}, "assignee": {"id": 588}, "project": {"id": 333, "owner": {"id": 701}, "assignee": {"id": 861}}, "task": {"id": 330, "owner": {"id": 936}, "assignee": {"id": 1046}}, "job": {"id": 391, "assignee": {"id": 1190}}, "issue": {"id": 355, "owner": {"id": 1273}, "assignee": {"id": 1352}}, "organization": {"id": 1443}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 301, "owner": {"id": 95}, "assignee": {"id": 561}, "project": {"id": 382, "owner": {"id": 702}, "assignee": {"id": 889}}, "task": {"id": 319, "owner": {"id": 994}, "assignee": {"id": 1092}}, "job": {"id": 347, "assignee": {"id": 1108}}, "issue": {"id": 352, "owner": {"id": 1293}, "assignee": {"id": 1324}}, "organization": {"id": 147}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "owner": {"id": 44}, "assignee": {"id": 562}, "project": {"id": 345, "owner": {"id": 761}, "assignee": {"id": 814}}, "task": {"id": 341, "owner": {"id": 958}, "assignee": {"id": 1041}}, "job": {"id": 346, "assignee": {"id": 1162}}, "issue": {"id": 330, "owner": {"id": 1240}, "assignee": {"id": 1361}}, "organization": {"id": 131}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "owner": {"id": 67}, "assignee": {"id": 510}, "project": {"id": 321, "owner": {"id": 755}, "assignee": {"id": 899}}, "task": {"id": 364, "owner": {"id": 917}, "assignee": {"id": 1092}}, "job": {"id": 318, "assignee": {"id": 1143}}, "issue": {"id": 360, "owner": {"id": 1270}, "assignee": {"id": 1390}}, "organization": {"id": 1462}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "owner": {"id": 43}, "assignee": {"id": 568}, "project": {"id": 359, "owner": {"id": 776}, "assignee": {"id": 872}}, "task": {"id": 304, "owner": {"id": 941}, "assignee": {"id": 1087}}, "job": {"id": 307, "assignee": {"id": 1115}}, "issue": {"id": 354, "owner": {"id": 1205}, "assignee": {"id": 1300}}, "organization": {"id": 1496}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "owner": {"id": 32}, "assignee": {"id": 503}, "project": {"id": 337, "owner": {"id": 783}, "assignee": {"id": 867}}, "task": {"id": 317, "owner": {"id": 904}, "assignee": {"id": 1006}}, "job": {"id": 387, "assignee": {"id": 1132}}, "issue": {"id": 347, "owner": {"id": 1210}, "assignee": {"id": 1332}}, "organization": {"id": 190}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "owner": {"id": 30}, "assignee": {"id": 511}, "project": {"id": 345, "owner": {"id": 790}, "assignee": {"id": 816}}, "task": {"id": 304, "owner": {"id": 907}, "assignee": {"id": 1058}}, "job": {"id": 379, "assignee": {"id": 1171}}, "issue": {"id": 308, "owner": {"id": 1219}, "assignee": {"id": 1314}}, "organization": {"id": 159}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "owner": {"id": 96}, "assignee": {"id": 539}, "project": {"id": 375, "owner": {"id": 779}, "assignee": {"id": 823}}, "task": {"id": 353, "owner": {"id": 979}, "assignee": {"id": 1057}}, "job": {"id": 307, "assignee": {"id": 1182}}, "issue": {"id": 341, "owner": {"id": 1297}, "assignee": {"id": 1320}}, "organization": {"id": 1435}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "owner": {"id": 60}, "assignee": {"id": 576}, "project": {"id": 327, "owner": {"id": 775}, "assignee": {"id": 886}}, "task": {"id": 334, "owner": {"id": 951}, "assignee": {"id": 1055}}, "job": {"id": 348, "assignee": {"id": 1160}}, "issue": {"id": 364, "owner": {"id": 1239}, "assignee": {"id": 1307}}, "organization": {"id": 1416}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 339, "owner": {"id": 38}, "assignee": {"id": 520}, "project": {"id": 377, "owner": {"id": 789}, "assignee": {"id": 884}}, "task": {"id": 337, "owner": {"id": 911}, "assignee": {"id": 1048}}, "job": {"id": 341, "assignee": {"id": 1139}}, "issue": {"id": 313, "owner": {"id": 1288}, "assignee": {"id": 1313}}, "organization": {"id": 188}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 304, "owner": {"id": 3}, "assignee": {"id": 599}, "project": {"id": 361, "owner": {"id": 794}, "assignee": {"id": 822}}, "task": {"id": 326, "owner": {"id": 913}, "assignee": {"id": 1022}}, "job": {"id": 303, "assignee": {"id": 1138}}, "issue": {"id": 348, "owner": {"id": 1276}, "assignee": {"id": 1335}}, "organization": {"id": 122}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 324, "owner": {"id": 54}, "assignee": {"id": 503}, "project": {"id": 309, "owner": {"id": 733}, "assignee": {"id": 804}}, "task": {"id": 352, "owner": {"id": 900}, "assignee": {"id": 1010}}, "job": {"id": 372, "assignee": {"id": 1163}}, "issue": {"id": 368, "owner": {"id": 1221}, "assignee": {"id": 1350}}, "organization": {"id": 1483}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 370, "owner": {"id": 29}, "assignee": {"id": 522}, "project": {"id": 362, "owner": {"id": 701}, "assignee": {"id": 819}}, "task": {"id": 370, "owner": {"id": 907}, "assignee": {"id": 1038}}, "job": {"id": 306, "assignee": {"id": 1142}}, "issue": {"id": 366, "owner": {"id": 1251}, "assignee": {"id": 1388}}, "organization": {"id": 1495}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 380, "owner": {"id": 66}, "assignee": {"id": 585}, "project": {"id": 388, "owner": {"id": 779}, "assignee": {"id": 800}}, "task": {"id": 374, "owner": {"id": 975}, "assignee": {"id": 1013}}, "job": {"id": 327, "assignee": {"id": 1141}}, "issue": {"id": 311, "owner": {"id": 1280}, "assignee": {"id": 1345}}, "organization": {"id": 143}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 75}, "assignee": {"id": 568}, "project": {"id": 384, "owner": {"id": 768}, "assignee": {"id": 888}}, "task": {"id": 328, "owner": {"id": 943}, "assignee": {"id": 1040}}, "job": {"id": 379, "assignee": {"id": 1115}}, "issue": {"id": 345, "owner": {"id": 1244}, "assignee": {"id": 1329}}, "organization": {"id": 137}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 35}, "assignee": {"id": 559}, "project": {"id": 336, "owner": {"id": 743}, "assignee": {"id": 883}}, "task": {"id": 358, "owner": {"id": 965}, "assignee": {"id": 1018}}, "job": {"id": 386, "assignee": {"id": 1100}}, "issue": {"id": 349, "owner": {"id": 1218}, "assignee": {"id": 1387}}, "organization": {"id": 1429}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 337, "owner": {"id": 54}, "assignee": {"id": 539}, "project": {"id": 300, "owner": {"id": 738}, "assignee": {"id": 854}}, "task": {"id": 393, "owner": {"id": 985}, "assignee": {"id": 1071}}, "job": {"id": 381, "assignee": {"id": 1100}}, "issue": {"id": 332, "owner": {"id": 1281}, "assignee": {"id": 1363}}, "organization": {"id": 1455}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 345, "owner": {"id": 53}, "assignee": {"id": 541}, "project": {"id": 399, "owner": {"id": 774}, "assignee": {"id": 821}}, "task": {"id": 331, "owner": {"id": 926}, "assignee": {"id": 1069}}, "job": {"id": 339, "assignee": {"id": 1103}}, "issue": {"id": 333, "owner": {"id": 1287}, "assignee": {"id": 1332}}, "organization": {"id": 163}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 343, "owner": {"id": 75}, "assignee": {"id": 521}, "project": {"id": 331, "owner": {"id": 784}, "assignee": {"id": 847}}, "task": {"id": 344, "owner": {"id": 982}, "assignee": {"id": 1045}}, "job": {"id": 320, "assignee": {"id": 1148}}, "issue": {"id": 335, "owner": {"id": 1228}, "assignee": {"id": 1363}}, "organization": {"id": 192}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 308, "owner": {"id": 37}, "assignee": {"id": 524}, "project": {"id": 353, "owner": {"id": 797}, "assignee": {"id": 852}}, "task": {"id": 313, "owner": {"id": 945}, "assignee": {"id": 1042}}, "job": {"id": 397, "assignee": {"id": 1151}}, "issue": {"id": 372, "owner": {"id": 1240}, "assignee": {"id": 1344}}, "organization": {"id": 1419}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 356, "owner": {"id": 93}, "assignee": {"id": 561}, "project": {"id": 338, "owner": {"id": 774}, "assignee": {"id": 827}}, "task": {"id": 321, "owner": {"id": 906}, "assignee": {"id": 1037}}, "job": {"id": 398, "assignee": {"id": 1193}}, "issue": {"id": 363, "owner": {"id": 1211}, "assignee": {"id": 1355}}, "organization": {"id": 1493}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 41}, "assignee": {"id": 590}, "project": {"id": 364, "owner": {"id": 722}, "assignee": {"id": 884}}, "task": {"id": 307, "owner": {"id": 995}, "assignee": {"id": 1056}}, "job": {"id": 381, "assignee": {"id": 1113}}, "issue": {"id": 372, "owner": {"id": 1268}, "assignee": {"id": 1375}}, "organization": {"id": 137}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "owner": {"id": 47}, "assignee": {"id": 581}, "project": {"id": 358, "owner": {"id": 771}, "assignee": {"id": 884}}, "task": {"id": 374, "owner": {"id": 950}, "assignee": {"id": 1032}}, "job": {"id": 354, "assignee": {"id": 1109}}, "issue": {"id": 395, "owner": {"id": 1266}, "assignee": {"id": 1379}}, "organization": {"id": 180}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "owner": {"id": 79}, "assignee": {"id": 504}, "project": {"id": 340, "owner": {"id": 769}, "assignee": {"id": 836}}, "task": {"id": 395, "owner": {"id": 993}, "assignee": {"id": 1061}}, "job": {"id": 351, "assignee": {"id": 1162}}, "issue": {"id": 301, "owner": {"id": 1237}, "assignee": {"id": 1304}}, "organization": {"id": 1450}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 25}, "assignee": {"id": 574}, "project": {"id": 333, "owner": {"id": 773}, "assignee": {"id": 808}}, "task": {"id": 371, "owner": {"id": 954}, "assignee": {"id": 1094}}, "job": {"id": 302, "assignee": {"id": 1129}}, "issue": {"id": 336, "owner": {"id": 1280}, "assignee": {"id": 1341}}, "organization": {"id": 1404}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "owner": {"id": 41}, "assignee": {"id": 565}, "project": {"id": 302, "owner": {"id": 750}, "assignee": {"id": 840}}, "task": {"id": 330, "owner": {"id": 975}, "assignee": {"id": 1058}}, "job": {"id": 399, "assignee": {"id": 1173}}, "issue": {"id": 319, "owner": {"id": 1264}, "assignee": {"id": 1385}}, "organization": {"id": 156}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 21}, "assignee": {"id": 500}, "project": {"id": 372, "owner": {"id": 767}, "assignee": {"id": 833}}, "task": {"id": 398, "owner": {"id": 906}, "assignee": {"id": 1057}}, "job": {"id": 325, "assignee": {"id": 1157}}, "issue": {"id": 337, "owner": {"id": 1267}, "assignee": {"id": 1316}}, "organization": {"id": 129}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 87}, "assignee": {"id": 549}, "project": {"id": 301, "owner": {"id": 700}, "assignee": {"id": 868}}, "task": {"id": 377, "owner": {"id": 956}, "assignee": {"id": 1096}}, "job": {"id": 348, "assignee": {"id": 1171}}, "issue": {"id": 320, "owner": {"id": 1295}, "assignee": {"id": 1343}}, "organization": {"id": 1456}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "owner": {"id": 47}, "assignee": {"id": 500}, "project": {"id": 348, "owner": {"id": 796}, "assignee": {"id": 888}}, "task": {"id": 386, "owner": {"id": 903}, "assignee": {"id": 1097}}, "job": {"id": 388, "assignee": {"id": 1148}}, "issue": {"id": 362, "owner": {"id": 1274}, "assignee": {"id": 1362}}, "organization": {"id": 1408}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 379, "owner": {"id": 14}, "assignee": {"id": 547}, "project": {"id": 351, "owner": {"id": 713}, "assignee": {"id": 855}}, "task": {"id": 384, "owner": {"id": 940}, "assignee": {"id": 1035}}, "job": {"id": 383, "assignee": {"id": 1128}}, "issue": {"id": 342, "owner": {"id": 1295}, "assignee": {"id": 1378}}, "organization": {"id": 103}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 332, "owner": {"id": 9}, "assignee": {"id": 518}, "project": {"id": 308, "owner": {"id": 704}, "assignee": {"id": 887}}, "task": {"id": 361, "owner": {"id": 990}, "assignee": {"id": 1006}}, "job": {"id": 320, "assignee": {"id": 1186}}, "issue": {"id": 384, "owner": {"id": 1256}, "assignee": {"id": 1395}}, "organization": {"id": 112}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 4}, "assignee": {"id": 581}, "project": {"id": 332, "owner": {"id": 740}, "assignee": {"id": 820}}, "task": {"id": 354, "owner": {"id": 926}, "assignee": {"id": 1091}}, "job": {"id": 391, "assignee": {"id": 1146}}, "issue": {"id": 365, "owner": {"id": 1293}, "assignee": {"id": 1324}}, "organization": {"id": 1461}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 25}, "assignee": {"id": 540}, "project": {"id": 360, "owner": {"id": 720}, "assignee": {"id": 822}}, "task": {"id": 363, "owner": {"id": 994}, "assignee": {"id": 1008}}, "job": {"id": 312, "assignee": {"id": 1124}}, "issue": {"id": 322, "owner": {"id": 1210}, "assignee": {"id": 1306}}, "organization": {"id": 1499}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 383, "owner": {"id": 24}, "assignee": {"id": 599}, "project": {"id": 316, "owner": {"id": 711}, "assignee": {"id": 864}}, "task": {"id": 330, "owner": {"id": 925}, "assignee": {"id": 1004}}, "job": {"id": 332, "assignee": {"id": 1164}}, "issue": {"id": 340, "owner": {"id": 1234}, "assignee": {"id": 1372}}, "organization": {"id": 184}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 336, "owner": {"id": 25}, "assignee": {"id": 514}, "project": {"id": 304, "owner": {"id": 756}, "assignee": {"id": 822}}, "task": {"id": 368, "owner": {"id": 997}, "assignee": {"id": 1066}}, "job": {"id": 343, "assignee": {"id": 1148}}, "issue": {"id": 396, "owner": {"id": 1249}, "assignee": {"id": 1342}}, "organization": {"id": 174}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 59}, "assignee": {"id": 584}, "project": {"id": 341, "owner": {"id": 705}, "assignee": {"id": 842}}, "task": {"id": 341, "owner": {"id": 998}, "assignee": {"id": 1063}}, "job": {"id": 354, "assignee": {"id": 1171}}, "issue": {"id": 307, "owner": {"id": 1233}, "assignee": {"id": 1332}}, "organization": {"id": 1429}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 302, "owner": {"id": 9}, "assignee": {"id": 544}, "project": {"id": 351, "owner": {"id": 761}, "assignee": {"id": 840}}, "task": {"id": 393, "owner": {"id": 964}, "assignee": {"id": 1093}}, "job": {"id": 325, "assignee": {"id": 1155}}, "issue": {"id": 398, "owner": {"id": 1252}, "assignee": {"id": 1380}}, "organization": {"id": 1454}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 383, "owner": {"id": 74}, "assignee": {"id": 571}, "project": {"id": 358, "owner": {"id": 717}, "assignee": {"id": 859}}, "task": {"id": 394, "owner": {"id": 965}, "assignee": {"id": 1071}}, "job": {"id": 344, "assignee": {"id": 1185}}, "issue": {"id": 369, "owner": {"id": 1297}, "assignee": {"id": 1300}}, "organization": {"id": 159}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 366, "owner": {"id": 58}, "assignee": {"id": 548}, "project": {"id": 350, "owner": {"id": 725}, "assignee": {"id": 834}}, "task": {"id": 351, "owner": {"id": 993}, "assignee": {"id": 1089}}, "job": {"id": 399, "assignee": {"id": 1138}}, "issue": {"id": 308, "owner": {"id": 1289}, "assignee": {"id": 1354}}, "organization": {"id": 136}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 313, "owner": {"id": 98}, "assignee": {"id": 581}, "project": {"id": 396, "owner": {"id": 705}, "assignee": {"id": 874}}, "task": {"id": 371, "owner": {"id": 966}, "assignee": {"id": 1067}}, "job": {"id": 330, "assignee": {"id": 1108}}, "issue": {"id": 380, "owner": {"id": 1256}, "assignee": {"id": 1324}}, "organization": {"id": 1453}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 390, "owner": {"id": 61}, "assignee": {"id": 541}, "project": {"id": 394, "owner": {"id": 772}, "assignee": {"id": 848}}, "task": {"id": 301, "owner": {"id": 962}, "assignee": {"id": 1004}}, "job": {"id": 307, "assignee": {"id": 1164}}, "issue": {"id": 356, "owner": {"id": 1233}, "assignee": {"id": 1350}}, "organization": {"id": 1481}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "owner": {"id": 87}, "assignee": {"id": 582}, "project": {"id": 391, "owner": {"id": 768}, "assignee": {"id": 829}}, "task": {"id": 324, "owner": {"id": 937}, "assignee": {"id": 1068}}, "job": {"id": 392, "assignee": {"id": 1114}}, "issue": {"id": 373, "owner": {"id": 1216}, "assignee": {"id": 1383}}, "organization": {"id": 193}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 0}, "assignee": {"id": 579}, "project": {"id": 307, "owner": {"id": 744}, "assignee": {"id": 801}}, "task": {"id": 321, "owner": {"id": 907}, "assignee": {"id": 1091}}, "job": {"id": 356, "assignee": {"id": 1144}}, "issue": {"id": 345, "owner": {"id": 1245}, "assignee": {"id": 1386}}, "organization": {"id": 173}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 12}, "assignee": {"id": 563}, "project": {"id": 319, "owner": {"id": 702}, "assignee": {"id": 832}}, "task": {"id": 399, "owner": {"id": 962}, "assignee": {"id": 1030}}, "job": {"id": 332, "assignee": {"id": 1132}}, "issue": {"id": 388, "owner": {"id": 1283}, "assignee": {"id": 1394}}, "organization": {"id": 1420}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 28}, "assignee": {"id": 530}, "project": {"id": 399, "owner": {"id": 725}, "assignee": {"id": 805}}, "task": {"id": 334, "owner": {"id": 929}, "assignee": {"id": 1082}}, "job": {"id": 390, "assignee": {"id": 1186}}, "issue": {"id": 373, "owner": {"id": 1297}, "assignee": {"id": 1390}}, "organization": {"id": 1495}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 6}, "assignee": {"id": 541}, "project": {"id": 301, "owner": {"id": 761}, "assignee": {"id": 801}}, "task": {"id": 325, "owner": {"id": 940}, "assignee": {"id": 1038}}, "job": {"id": 394, "assignee": {"id": 1161}}, "issue": {"id": 347, "owner": {"id": 1264}, "assignee": {"id": 1380}}, "organization": {"id": 175}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "owner": {"id": 22}, "assignee": {"id": 551}, "project": {"id": 392, "owner": {"id": 732}, "assignee": {"id": 811}}, "task": {"id": 384, "owner": {"id": 977}, "assignee": {"id": 1074}}, "job": {"id": 301, "assignee": {"id": 1141}}, "issue": {"id": 342, "owner": {"id": 1234}, "assignee": {"id": 1381}}, "organization": {"id": 112}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "owner": {"id": 3}, "assignee": {"id": 595}, "project": {"id": 367, "owner": {"id": 715}, "assignee": {"id": 896}}, "task": {"id": 325, "owner": {"id": 925}, "assignee": {"id": 1081}}, "job": {"id": 398, "assignee": {"id": 1170}}, "issue": {"id": 339, "owner": {"id": 1282}, "assignee": {"id": 1347}}, "organization": {"id": 1499}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 8}, "assignee": {"id": 512}, "project": {"id": 372, "owner": {"id": 745}, "assignee": {"id": 841}}, "task": {"id": 326, "owner": {"id": 939}, "assignee": {"id": 1099}}, "job": {"id": 325, "assignee": {"id": 1122}}, "issue": {"id": 373, "owner": {"id": 1263}, "assignee": {"id": 1347}}, "organization": {"id": 1408}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 98}, "assignee": {"id": 537}, "project": {"id": 332, "owner": {"id": 710}, "assignee": {"id": 810}}, "task": {"id": 335, "owner": {"id": 967}, "assignee": {"id": 1075}}, "job": {"id": 349, "assignee": {"id": 1110}}, "issue": {"id": 313, "owner": {"id": 1218}, "assignee": {"id": 1369}}, "organization": {"id": 123}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 387, "owner": {"id": 12}, "assignee": {"id": 576}, "project": {"id": 345, "owner": {"id": 742}, "assignee": {"id": 839}}, "task": {"id": 311, "owner": {"id": 900}, "assignee": {"id": 1012}}, "job": {"id": 330, "assignee": {"id": 1102}}, "issue": {"id": 300, "owner": {"id": 1226}, "assignee": {"id": 1376}}, "organization": {"id": 119}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 53}, "assignee": {"id": 503}, "project": {"id": 394, "owner": {"id": 740}, "assignee": {"id": 887}}, "task": {"id": 305, "owner": {"id": 970}, "assignee": {"id": 1002}}, "job": {"id": 373, "assignee": {"id": 1116}}, "issue": {"id": 343, "owner": {"id": 1228}, "assignee": {"id": 1361}}, "organization": {"id": 1405}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 389, "owner": {"id": 41}, "assignee": {"id": 565}, "project": {"id": 357, "owner": {"id": 790}, "assignee": {"id": 890}}, "task": {"id": 361, "owner": {"id": 951}, "assignee": {"id": 1083}}, "job": {"id": 327, "assignee": {"id": 1108}}, "issue": {"id": 396, "owner": {"id": 1284}, "assignee": {"id": 1390}}, "organization": {"id": 1402}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 66}, "assignee": {"id": 562}, "project": {"id": 351, "owner": {"id": 723}, "assignee": {"id": 852}}, "task": {"id": 399, "owner": {"id": 917}, "assignee": {"id": 1058}}, "job": {"id": 378, "assignee": {"id": 1120}}, "issue": {"id": 350, "owner": {"id": 1290}, "assignee": {"id": 1353}}, "organization": {"id": 156}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 83}, "assignee": {"id": 543}, "project": {"id": 300, "owner": {"id": 766}, "assignee": {"id": 893}}, "task": {"id": 375, "owner": {"id": 955}, "assignee": {"id": 1020}}, "job": {"id": 392, "assignee": {"id": 1186}}, "issue": {"id": 389, "owner": {"id": 1203}, "assignee": {"id": 1393}}, "organization": {"id": 167}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 376, "owner": {"id": 70}, "assignee": {"id": 546}, "project": {"id": 375, "owner": {"id": 783}, "assignee": {"id": 889}}, "task": {"id": 397, "owner": {"id": 976}, "assignee": {"id": 1071}}, "job": {"id": 388, "assignee": {"id": 1129}}, "issue": {"id": 314, "owner": {"id": 1206}, "assignee": {"id": 1381}}, "organization": {"id": 1457}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 302, "owner": {"id": 27}, "assignee": {"id": 578}, "project": {"id": 359, "owner": {"id": 730}, "assignee": {"id": 829}}, "task": {"id": 332, "owner": {"id": 971}, "assignee": {"id": 1024}}, "job": {"id": 343, "assignee": {"id": 1177}}, "issue": {"id": 353, "owner": {"id": 1257}, "assignee": {"id": 1367}}, "organization": {"id": 1449}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 23}, "assignee": {"id": 511}, "project": {"id": 386, "owner": {"id": 763}, "assignee": {"id": 812}}, "task": {"id": 311, "owner": {"id": 915}, "assignee": {"id": 1001}}, "job": {"id": 359, "assignee": {"id": 1183}}, "issue": {"id": 316, "owner": {"id": 1284}, "assignee": {"id": 1325}}, "organization": {"id": 180}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 324, "owner": {"id": 53}, "assignee": {"id": 509}, "project": {"id": 333, "owner": {"id": 706}, "assignee": {"id": 819}}, "task": {"id": 373, "owner": {"id": 975}, "assignee": {"id": 1052}}, "job": {"id": 324, "assignee": {"id": 1134}}, "issue": {"id": 377, "owner": {"id": 1277}, "assignee": {"id": 1301}}, "organization": {"id": 123}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 379, "owner": {"id": 60}, "assignee": {"id": 586}, "project": {"id": 368, "owner": {"id": 712}, "assignee": {"id": 814}}, "task": {"id": 310, "owner": {"id": 906}, "assignee": {"id": 1089}}, "job": {"id": 341, "assignee": {"id": 1134}}, "issue": {"id": 365, "owner": {"id": 1228}, "assignee": {"id": 1333}}, "organization": {"id": 1455}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 363, "owner": {"id": 94}, "assignee": {"id": 505}, "project": {"id": 355, "owner": {"id": 757}, "assignee": {"id": 856}}, "task": {"id": 335, "owner": {"id": 919}, "assignee": {"id": 1051}}, "job": {"id": 375, "assignee": {"id": 1169}}, "issue": {"id": 338, "owner": {"id": 1261}, "assignee": {"id": 1381}}, "organization": {"id": 1453}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "owner": {"id": 79}, "assignee": {"id": 564}, "project": {"id": 392, "owner": {"id": 786}, "assignee": {"id": 885}}, "task": {"id": 384, "owner": {"id": 964}, "assignee": {"id": 1076}}, "job": {"id": 338, "assignee": {"id": 1148}}, "issue": {"id": 338, "owner": {"id": 1296}, "assignee": {"id": 1386}}, "organization": {"id": 199}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "owner": {"id": 9}, "assignee": {"id": 502}, "project": {"id": 396, "owner": {"id": 753}, "assignee": {"id": 874}}, "task": {"id": 330, "owner": {"id": 960}, "assignee": {"id": 1000}}, "job": {"id": 358, "assignee": {"id": 1105}}, "issue": {"id": 356, "owner": {"id": 1230}, "assignee": {"id": 1333}}, "organization": {"id": 138}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "owner": {"id": 12}, "assignee": {"id": 500}, "project": {"id": 326, "owner": {"id": 739}, "assignee": {"id": 847}}, "task": {"id": 384, "owner": {"id": 941}, "assignee": {"id": 1036}}, "job": {"id": 314, "assignee": {"id": 1167}}, "issue": {"id": 372, "owner": {"id": 1266}, "assignee": {"id": 1338}}, "organization": {"id": 1461}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "owner": {"id": 64}, "assignee": {"id": 583}, "project": {"id": 372, "owner": {"id": 735}, "assignee": {"id": 827}}, "task": {"id": 316, "owner": {"id": 956}, "assignee": {"id": 1062}}, "job": {"id": 398, "assignee": {"id": 1131}}, "issue": {"id": 309, "owner": {"id": 1290}, "assignee": {"id": 1314}}, "organization": {"id": 1448}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "owner": {"id": 28}, "assignee": {"id": 501}, "project": {"id": 369, "owner": {"id": 740}, "assignee": {"id": 827}}, "task": {"id": 364, "owner": {"id": 942}, "assignee": {"id": 1055}}, "job": {"id": 308, "assignee": {"id": 1104}}, "issue": {"id": 328, "owner": {"id": 1241}, "assignee": {"id": 1396}}, "organization": {"id": 139}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 96}, "assignee": {"id": 577}, "project": {"id": 351, "owner": {"id": 788}, "assignee": {"id": 804}}, "task": {"id": 393, "owner": {"id": 994}, "assignee": {"id": 1077}}, "job": {"id": 326, "assignee": {"id": 1120}}, "issue": {"id": 379, "owner": {"id": 1258}, "assignee": {"id": 1359}}, "organization": {"id": 130}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 8}, "assignee": {"id": 550}, "project": {"id": 310, "owner": {"id": 774}, "assignee": {"id": 891}}, "task": {"id": 349, "owner": {"id": 937}, "assignee": {"id": 1039}}, "job": {"id": 323, "assignee": {"id": 1195}}, "issue": {"id": 381, "owner": {"id": 1256}, "assignee": {"id": 1329}}, "organization": {"id": 1411}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "owner": {"id": 30}, "assignee": {"id": 522}, "project": {"id": 330, "owner": {"id": 749}, "assignee": {"id": 815}}, "task": {"id": 383, "owner": {"id": 977}, "assignee": {"id": 1011}}, "job": {"id": 392, "assignee": {"id": 1142}}, "issue": {"id": 371, "owner": {"id": 1270}, "assignee": {"id": 1377}}, "organization": {"id": 1406}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 395, "owner": {"id": 23}, "assignee": {"id": 585}, "project": {"id": 337, "owner": {"id": 739}, "assignee": {"id": 847}}, "task": {"id": 322, "owner": {"id": 938}, "assignee": {"id": 1016}}, "job": {"id": 395, "assignee": {"id": 1174}}, "issue": {"id": 355, "owner": {"id": 1296}, "assignee": {"id": 1377}}, "organization": {"id": 183}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 317, "owner": {"id": 51}, "assignee": {"id": 546}, "project": {"id": 391, "owner": {"id": 700}, "assignee": {"id": 841}}, "task": {"id": 377, "owner": {"id": 940}, "assignee": {"id": 1017}}, "job": {"id": 373, "assignee": {"id": 1142}}, "issue": {"id": 393, "owner": {"id": 1215}, "assignee": {"id": 1327}}, "organization": {"id": 128}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 304, "owner": {"id": 67}, "assignee": {"id": 579}, "project": {"id": 390, "owner": {"id": 712}, "assignee": {"id": 852}}, "task": {"id": 317, "owner": {"id": 920}, "assignee": {"id": 1090}}, "job": {"id": 306, "assignee": {"id": 1102}}, "issue": {"id": 308, "owner": {"id": 1226}, "assignee": {"id": 1339}}, "organization": {"id": 1483}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 351, "owner": {"id": 72}, "assignee": {"id": 573}, "project": {"id": 343, "owner": {"id": 771}, "assignee": {"id": 888}}, "task": {"id": 344, "owner": {"id": 906}, "assignee": {"id": 1073}}, "job": {"id": 391, "assignee": {"id": 1146}}, "issue": {"id": 318, "owner": {"id": 1221}, "assignee": {"id": 1381}}, "organization": {"id": 1406}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 332, "owner": {"id": 20}, "assignee": {"id": 518}, "project": {"id": 338, "owner": {"id": 775}, "assignee": {"id": 821}}, "task": {"id": 320, "owner": {"id": 938}, "assignee": {"id": 1038}}, "job": {"id": 387, "assignee": {"id": 1105}}, "issue": {"id": 321, "owner": {"id": 1285}, "assignee": {"id": 1334}}, "organization": {"id": 152}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 79}, "assignee": {"id": 553}, "project": {"id": 367, "owner": {"id": 715}, "assignee": {"id": 886}}, "task": {"id": 311, "owner": {"id": 900}, "assignee": {"id": 1053}}, "job": {"id": 392, "assignee": {"id": 1188}}, "issue": {"id": 331, "owner": {"id": 1248}, "assignee": {"id": 1348}}, "organization": {"id": 119}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 48}, "assignee": {"id": 571}, "project": {"id": 379, "owner": {"id": 773}, "assignee": {"id": 852}}, "task": {"id": 302, "owner": {"id": 958}, "assignee": {"id": 1078}}, "job": {"id": 337, "assignee": {"id": 1172}}, "issue": {"id": 339, "owner": {"id": 1268}, "assignee": {"id": 1347}}, "organization": {"id": 1421}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 78}, "assignee": {"id": 523}, "project": {"id": 323, "owner": {"id": 721}, "assignee": {"id": 899}}, "task": {"id": 399, "owner": {"id": 929}, "assignee": {"id": 1078}}, "job": {"id": 304, "assignee": {"id": 1154}}, "issue": {"id": 309, "owner": {"id": 1272}, "assignee": {"id": 1398}}, "organization": {"id": 1436}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 668}, "assignee": {"id": 572}, "project": {"id": 375, "owner": {"id": 701}, "assignee": {"id": 815}}, "task": {"id": 361, "owner": {"id": 925}, "assignee": {"id": 1034}}, "job": {"id": 377, "assignee": {"id": 1193}}, "issue": {"id": 390, "owner": {"id": 1271}, "assignee": {"id": 1382}}, "organization": {"id": 198}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 326, "owner": {"id": 612}, "assignee": {"id": 537}, "project": {"id": 360, "owner": {"id": 703}, "assignee": {"id": 893}}, "task": {"id": 326, "owner": {"id": 957}, "assignee": {"id": 1011}}, "job": {"id": 379, "assignee": {"id": 1193}}, "issue": {"id": 330, "owner": {"id": 1260}, "assignee": {"id": 1348}}, "organization": {"id": 109}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 328, "owner": {"id": 632}, "assignee": {"id": 513}, "project": {"id": 397, "owner": {"id": 717}, "assignee": {"id": 889}}, "task": {"id": 312, "owner": {"id": 969}, "assignee": {"id": 1057}}, "job": {"id": 358, "assignee": {"id": 1197}}, "issue": {"id": 357, "owner": {"id": 1245}, "assignee": {"id": 1353}}, "organization": {"id": 1401}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 608}, "assignee": {"id": 557}, "project": {"id": 374, "owner": {"id": 707}, "assignee": {"id": 853}}, "task": {"id": 358, "owner": {"id": 922}, "assignee": {"id": 1029}}, "job": {"id": 385, "assignee": {"id": 1102}}, "issue": {"id": 341, "owner": {"id": 1274}, "assignee": {"id": 1345}}, "organization": {"id": 1458}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "owner": {"id": 680}, "assignee": {"id": 510}, "project": {"id": 374, "owner": {"id": 709}, "assignee": {"id": 818}}, "task": {"id": 347, "owner": {"id": 955}, "assignee": {"id": 1099}}, "job": {"id": 344, "assignee": {"id": 1164}}, "issue": {"id": 338, "owner": {"id": 1229}, "assignee": {"id": 1384}}, "organization": {"id": 129}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "owner": {"id": 649}, "assignee": {"id": 573}, "project": {"id": 336, "owner": {"id": 728}, "assignee": {"id": 835}}, "task": {"id": 331, "owner": {"id": 956}, "assignee": {"id": 1042}}, "job": {"id": 373, "assignee": {"id": 1152}}, "issue": {"id": 396, "owner": {"id": 1281}, "assignee": {"id": 1303}}, "organization": {"id": 167}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 602}, "assignee": {"id": 530}, "project": {"id": 343, "owner": {"id": 708}, "assignee": {"id": 812}}, "task": {"id": 391, "owner": {"id": 933}, "assignee": {"id": 1051}}, "job": {"id": 328, "assignee": {"id": 1188}}, "issue": {"id": 358, "owner": {"id": 1225}, "assignee": {"id": 1370}}, "organization": {"id": 1496}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "owner": {"id": 689}, "assignee": {"id": 596}, "project": {"id": 328, "owner": {"id": 703}, "assignee": {"id": 832}}, "task": {"id": 360, "owner": {"id": 919}, "assignee": {"id": 1044}}, "job": {"id": 355, "assignee": {"id": 1176}}, "issue": {"id": 328, "owner": {"id": 1243}, "assignee": {"id": 1322}}, "organization": {"id": 1483}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 637}, "assignee": {"id": 520}, "project": {"id": 302, "owner": {"id": 721}, "assignee": {"id": 869}}, "task": {"id": 337, "owner": {"id": 946}, "assignee": {"id": 1090}}, "job": {"id": 357, "assignee": {"id": 1166}}, "issue": {"id": 393, "owner": {"id": 1231}, "assignee": {"id": 1350}}, "organization": {"id": 113}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 659}, "assignee": {"id": 597}, "project": {"id": 397, "owner": {"id": 749}, "assignee": {"id": 806}}, "task": {"id": 355, "owner": {"id": 935}, "assignee": {"id": 1034}}, "job": {"id": 349, "assignee": {"id": 1105}}, "issue": {"id": 328, "owner": {"id": 1250}, "assignee": {"id": 1390}}, "organization": {"id": 107}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "owner": {"id": 659}, "assignee": {"id": 504}, "project": {"id": 387, "owner": {"id": 774}, "assignee": {"id": 810}}, "task": {"id": 375, "owner": {"id": 998}, "assignee": {"id": 1078}}, "job": {"id": 346, "assignee": {"id": 1131}}, "issue": {"id": 325, "owner": {"id": 1265}, "assignee": {"id": 1316}}, "organization": {"id": 1438}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 607}, "assignee": {"id": 506}, "project": {"id": 386, "owner": {"id": 706}, "assignee": {"id": 835}}, "task": {"id": 384, "owner": {"id": 913}, "assignee": {"id": 1055}}, "job": {"id": 360, "assignee": {"id": 1114}}, "issue": {"id": 378, "owner": {"id": 1245}, "assignee": {"id": 1372}}, "organization": {"id": 1451}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 371, "owner": {"id": 606}, "assignee": {"id": 539}, "project": {"id": 339, "owner": {"id": 751}, "assignee": {"id": 853}}, "task": {"id": 360, "owner": {"id": 929}, "assignee": {"id": 1098}}, "job": {"id": 306, "assignee": {"id": 1146}}, "issue": {"id": 396, "owner": {"id": 1212}, "assignee": {"id": 1354}}, "organization": {"id": 152}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 346, "owner": {"id": 641}, "assignee": {"id": 568}, "project": {"id": 323, "owner": {"id": 757}, "assignee": {"id": 844}}, "task": {"id": 390, "owner": {"id": 941}, "assignee": {"id": 1052}}, "job": {"id": 355, "assignee": {"id": 1162}}, "issue": {"id": 388, "owner": {"id": 1286}, "assignee": {"id": 1357}}, "organization": {"id": 106}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 395, "owner": {"id": 611}, "assignee": {"id": 520}, "project": {"id": 330, "owner": {"id": 788}, "assignee": {"id": 882}}, "task": {"id": 300, "owner": {"id": 914}, "assignee": {"id": 1069}}, "job": {"id": 360, "assignee": {"id": 1168}}, "issue": {"id": 349, "owner": {"id": 1203}, "assignee": {"id": 1359}}, "organization": {"id": 1485}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 306, "owner": {"id": 662}, "assignee": {"id": 593}, "project": {"id": 345, "owner": {"id": 716}, "assignee": {"id": 834}}, "task": {"id": 365, "owner": {"id": 901}, "assignee": {"id": 1022}}, "job": {"id": 355, "assignee": {"id": 1111}}, "issue": {"id": 350, "owner": {"id": 1210}, "assignee": {"id": 1309}}, "organization": {"id": 1487}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 352, "owner": {"id": 623}, "assignee": {"id": 565}, "project": {"id": 337, "owner": {"id": 787}, "assignee": {"id": 843}}, "task": {"id": 357, "owner": {"id": 907}, "assignee": {"id": 1089}}, "job": {"id": 384, "assignee": {"id": 1159}}, "issue": {"id": 345, "owner": {"id": 1247}, "assignee": {"id": 1367}}, "organization": {"id": 142}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 336, "owner": {"id": 651}, "assignee": {"id": 565}, "project": {"id": 301, "owner": {"id": 710}, "assignee": {"id": 823}}, "task": {"id": 355, "owner": {"id": 904}, "assignee": {"id": 1041}}, "job": {"id": 377, "assignee": {"id": 1146}}, "issue": {"id": 380, "owner": {"id": 1238}, "assignee": {"id": 1339}}, "organization": {"id": 141}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 629}, "assignee": {"id": 538}, "project": {"id": 397, "owner": {"id": 727}, "assignee": {"id": 881}}, "task": {"id": 312, "owner": {"id": 953}, "assignee": {"id": 1051}}, "job": {"id": 384, "assignee": {"id": 1124}}, "issue": {"id": 306, "owner": {"id": 1292}, "assignee": {"id": 1304}}, "organization": {"id": 1490}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 333, "owner": {"id": 608}, "assignee": {"id": 565}, "project": {"id": 325, "owner": {"id": 775}, "assignee": {"id": 871}}, "task": {"id": 388, "owner": {"id": 998}, "assignee": {"id": 1081}}, "job": {"id": 348, "assignee": {"id": 1127}}, "issue": {"id": 399, "owner": {"id": 1228}, "assignee": {"id": 1376}}, "organization": {"id": 1466}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 336, "owner": {"id": 678}, "assignee": {"id": 560}, "project": {"id": 322, "owner": {"id": 718}, "assignee": {"id": 811}}, "task": {"id": 361, "owner": {"id": 999}, "assignee": {"id": 1004}}, "job": {"id": 360, "assignee": {"id": 1112}}, "issue": {"id": 319, "owner": {"id": 1285}, "assignee": {"id": 1345}}, "organization": {"id": 170}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 644}, "assignee": {"id": 534}, "project": {"id": 362, "owner": {"id": 799}, "assignee": {"id": 818}}, "task": {"id": 370, "owner": {"id": 934}, "assignee": {"id": 1080}}, "job": {"id": 367, "assignee": {"id": 1112}}, "issue": {"id": 318, "owner": {"id": 1232}, "assignee": {"id": 1393}}, "organization": {"id": 193}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 638}, "assignee": {"id": 586}, "project": {"id": 357, "owner": {"id": 717}, "assignee": {"id": 855}}, "task": {"id": 326, "owner": {"id": 973}, "assignee": {"id": 1018}}, "job": {"id": 306, "assignee": {"id": 1134}}, "issue": {"id": 384, "owner": {"id": 1236}, "assignee": {"id": 1303}}, "organization": {"id": 1408}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 393, "owner": {"id": 605}, "assignee": {"id": 538}, "project": {"id": 319, "owner": {"id": 711}, "assignee": {"id": 843}}, "task": {"id": 313, "owner": {"id": 905}, "assignee": {"id": 1087}}, "job": {"id": 384, "assignee": {"id": 1158}}, "issue": {"id": 353, "owner": {"id": 1204}, "assignee": {"id": 1346}}, "organization": {"id": 1435}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 670}, "assignee": {"id": 591}, "project": {"id": 376, "owner": {"id": 779}, "assignee": {"id": 837}}, "task": {"id": 301, "owner": {"id": 900}, "assignee": {"id": 1000}}, "job": {"id": 389, "assignee": {"id": 1131}}, "issue": {"id": 370, "owner": {"id": 1224}, "assignee": {"id": 1311}}, "organization": {"id": 128}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 670}, "assignee": {"id": 587}, "project": {"id": 348, "owner": {"id": 781}, "assignee": {"id": 850}}, "task": {"id": 352, "owner": {"id": 995}, "assignee": {"id": 1069}}, "job": {"id": 357, "assignee": {"id": 1188}}, "issue": {"id": 338, "owner": {"id": 1268}, "assignee": {"id": 1359}}, "organization": {"id": 137}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "owner": {"id": 651}, "assignee": {"id": 587}, "project": {"id": 399, "owner": {"id": 773}, "assignee": {"id": 833}}, "task": {"id": 350, "owner": {"id": 902}, "assignee": {"id": 1015}}, "job": {"id": 369, "assignee": {"id": 1196}}, "issue": {"id": 319, "owner": {"id": 1267}, "assignee": {"id": 1363}}, "organization": {"id": 1428}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "owner": {"id": 661}, "assignee": {"id": 500}, "project": {"id": 348, "owner": {"id": 799}, "assignee": {"id": 891}}, "task": {"id": 388, "owner": {"id": 913}, "assignee": {"id": 1050}}, "job": {"id": 327, "assignee": {"id": 1151}}, "issue": {"id": 345, "owner": {"id": 1225}, "assignee": {"id": 1346}}, "organization": {"id": 1404}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "owner": {"id": 697}, "assignee": {"id": 567}, "project": {"id": 312, "owner": {"id": 719}, "assignee": {"id": 846}}, "task": {"id": 326, "owner": {"id": 987}, "assignee": {"id": 1054}}, "job": {"id": 382, "assignee": {"id": 1158}}, "issue": {"id": 395, "owner": {"id": 1298}, "assignee": {"id": 1374}}, "organization": {"id": 148}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "owner": {"id": 671}, "assignee": {"id": 593}, "project": {"id": 368, "owner": {"id": 770}, "assignee": {"id": 827}}, "task": {"id": 307, "owner": {"id": 974}, "assignee": {"id": 1071}}, "job": {"id": 308, "assignee": {"id": 1162}}, "issue": {"id": 302, "owner": {"id": 1280}, "assignee": {"id": 1388}}, "organization": {"id": 199}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "owner": {"id": 640}, "assignee": {"id": 593}, "project": {"id": 392, "owner": {"id": 786}, "assignee": {"id": 807}}, "task": {"id": 340, "owner": {"id": 950}, "assignee": {"id": 1054}}, "job": {"id": 397, "assignee": {"id": 1145}}, "issue": {"id": 378, "owner": {"id": 1242}, "assignee": {"id": 1303}}, "organization": {"id": 1419}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "owner": {"id": 687}, "assignee": {"id": 556}, "project": {"id": 368, "owner": {"id": 742}, "assignee": {"id": 806}}, "task": {"id": 389, "owner": {"id": 954}, "assignee": {"id": 1055}}, "job": {"id": 362, "assignee": {"id": 1141}}, "issue": {"id": 320, "owner": {"id": 1284}, "assignee": {"id": 1337}}, "organization": {"id": 1439}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 353, "owner": {"id": 680}, "assignee": {"id": 593}, "project": {"id": 301, "owner": {"id": 756}, "assignee": {"id": 843}}, "task": {"id": 331, "owner": {"id": 999}, "assignee": {"id": 1080}}, "job": {"id": 367, "assignee": {"id": 1132}}, "issue": {"id": 303, "owner": {"id": 1291}, "assignee": {"id": 1382}}, "organization": {"id": 199}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 388, "owner": {"id": 618}, "assignee": {"id": 516}, "project": {"id": 346, "owner": {"id": 722}, "assignee": {"id": 823}}, "task": {"id": 363, "owner": {"id": 912}, "assignee": {"id": 1026}}, "job": {"id": 316, "assignee": {"id": 1145}}, "issue": {"id": 333, "owner": {"id": 1242}, "assignee": {"id": 1360}}, "organization": {"id": 104}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 334, "owner": {"id": 667}, "assignee": {"id": 579}, "project": {"id": 377, "owner": {"id": 703}, "assignee": {"id": 882}}, "task": {"id": 318, "owner": {"id": 997}, "assignee": {"id": 1030}}, "job": {"id": 365, "assignee": {"id": 1170}}, "issue": {"id": 327, "owner": {"id": 1286}, "assignee": {"id": 1376}}, "organization": {"id": 1448}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 320, "owner": {"id": 625}, "assignee": {"id": 541}, "project": {"id": 362, "owner": {"id": 742}, "assignee": {"id": 864}}, "task": {"id": 340, "owner": {"id": 920}, "assignee": {"id": 1024}}, "job": {"id": 385, "assignee": {"id": 1195}}, "issue": {"id": 395, "owner": {"id": 1286}, "assignee": {"id": 1353}}, "organization": {"id": 1484}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 637}, "assignee": {"id": 592}, "project": {"id": 342, "owner": {"id": 773}, "assignee": {"id": 873}}, "task": {"id": 352, "owner": {"id": 963}, "assignee": {"id": 1055}}, "job": {"id": 378, "assignee": {"id": 1119}}, "issue": {"id": 312, "owner": {"id": 1291}, "assignee": {"id": 1321}}, "organization": {"id": 150}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 676}, "assignee": {"id": 509}, "project": {"id": 348, "owner": {"id": 720}, "assignee": {"id": 895}}, "task": {"id": 303, "owner": {"id": 990}, "assignee": {"id": 1035}}, "job": {"id": 348, "assignee": {"id": 1149}}, "issue": {"id": 397, "owner": {"id": 1219}, "assignee": {"id": 1330}}, "organization": {"id": 131}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 369, "owner": {"id": 659}, "assignee": {"id": 534}, "project": {"id": 381, "owner": {"id": 735}, "assignee": {"id": 841}}, "task": {"id": 338, "owner": {"id": 987}, "assignee": {"id": 1073}}, "job": {"id": 335, "assignee": {"id": 1162}}, "issue": {"id": 309, "owner": {"id": 1252}, "assignee": {"id": 1350}}, "organization": {"id": 1451}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 612}, "assignee": {"id": 511}, "project": {"id": 319, "owner": {"id": 761}, "assignee": {"id": 852}}, "task": {"id": 395, "owner": {"id": 970}, "assignee": {"id": 1089}}, "job": {"id": 352, "assignee": {"id": 1130}}, "issue": {"id": 306, "owner": {"id": 1201}, "assignee": {"id": 1315}}, "organization": {"id": 1445}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 302, "owner": {"id": 696}, "assignee": {"id": 567}, "project": {"id": 305, "owner": {"id": 745}, "assignee": {"id": 816}}, "task": {"id": 329, "owner": {"id": 983}, "assignee": {"id": 1068}}, "job": {"id": 307, "assignee": {"id": 1181}}, "issue": {"id": 377, "owner": {"id": 1224}, "assignee": {"id": 1373}}, "organization": {"id": 191}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 312, "owner": {"id": 672}, "assignee": {"id": 591}, "project": {"id": 352, "owner": {"id": 711}, "assignee": {"id": 894}}, "task": {"id": 389, "owner": {"id": 936}, "assignee": {"id": 1007}}, "job": {"id": 349, "assignee": {"id": 1123}}, "issue": {"id": 330, "owner": {"id": 1250}, "assignee": {"id": 1310}}, "organization": {"id": 135}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"id": 331, "owner": {"id": 609}, "assignee": {"id": 519}, "project": {"id": 385, "owner": {"id": 760}, "assignee": {"id": 805}}, "task": {"id": 312, "owner": {"id": 912}, "assignee": {"id": 1013}}, "job": {"id": 376, "assignee": {"id": 1115}}, "issue": {"id": 373, "owner": {"id": 1295}, "assignee": {"id": 1396}}, "organization": {"id": 1461}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 664}, "assignee": {"id": 500}, "project": {"id": 393, "owner": {"id": 707}, "assignee": {"id": 820}}, "task": {"id": 305, "owner": {"id": 938}, "assignee": {"id": 1031}}, "job": {"id": 321, "assignee": {"id": 1192}}, "issue": {"id": 396, "owner": {"id": 1277}, "assignee": {"id": 1399}}, "organization": {"id": 1448}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 666}, "assignee": {"id": 564}, "project": {"id": 373, "owner": {"id": 783}, "assignee": {"id": 827}}, "task": {"id": 380, "owner": {"id": 909}, "assignee": {"id": 1009}}, "job": {"id": 337, "assignee": {"id": 1132}}, "issue": {"id": 330, "owner": {"id": 1242}, "assignee": {"id": 1359}}, "organization": {"id": 193}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "owner": {"id": 622}, "assignee": {"id": 586}, "project": {"id": 363, "owner": {"id": 714}, "assignee": {"id": 871}}, "task": {"id": 395, "owner": {"id": 922}, "assignee": {"id": 1046}}, "job": {"id": 374, "assignee": {"id": 1145}}, "issue": {"id": 358, "owner": {"id": 1299}, "assignee": {"id": 1374}}, "organization": {"id": 140}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "owner": {"id": 659}, "assignee": {"id": 529}, "project": {"id": 363, "owner": {"id": 750}, "assignee": {"id": 856}}, "task": {"id": 356, "owner": {"id": 923}, "assignee": {"id": 1023}}, "job": {"id": 306, "assignee": {"id": 1109}}, "issue": {"id": 376, "owner": {"id": 1230}, "assignee": {"id": 1355}}, "organization": {"id": 1471}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 642}, "assignee": {"id": 506}, "project": {"id": 312, "owner": {"id": 729}, "assignee": {"id": 800}}, "task": {"id": 387, "owner": {"id": 932}, "assignee": {"id": 1073}}, "job": {"id": 340, "assignee": {"id": 1177}}, "issue": {"id": 372, "owner": {"id": 1278}, "assignee": {"id": 1321}}, "organization": {"id": 1423}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 655}, "assignee": {"id": 556}, "project": {"id": 389, "owner": {"id": 778}, "assignee": {"id": 841}}, "task": {"id": 350, "owner": {"id": 965}, "assignee": {"id": 1083}}, "job": {"id": 335, "assignee": {"id": 1129}}, "issue": {"id": 393, "owner": {"id": 1242}, "assignee": {"id": 1352}}, "organization": {"id": 156}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "owner": {"id": 620}, "assignee": {"id": 544}, "project": {"id": 362, "owner": {"id": 715}, "assignee": {"id": 849}}, "task": {"id": 329, "owner": {"id": 962}, "assignee": {"id": 1041}}, "job": {"id": 346, "assignee": {"id": 1113}}, "issue": {"id": 307, "owner": {"id": 1274}, "assignee": {"id": 1310}}, "organization": {"id": 178}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 343, "owner": {"id": 659}, "assignee": {"id": 586}, "project": {"id": 305, "owner": {"id": 715}, "assignee": {"id": 839}}, "task": {"id": 397, "owner": {"id": 962}, "assignee": {"id": 1025}}, "job": {"id": 316, "assignee": {"id": 1111}}, "issue": {"id": 360, "owner": {"id": 1255}, "assignee": {"id": 1374}}, "organization": {"id": 1411}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "owner": {"id": 626}, "assignee": {"id": 547}, "project": {"id": 376, "owner": {"id": 723}, "assignee": {"id": 898}}, "task": {"id": 358, "owner": {"id": 906}, "assignee": {"id": 1003}}, "job": {"id": 368, "assignee": {"id": 1176}}, "issue": {"id": 315, "owner": {"id": 1242}, "assignee": {"id": 1397}}, "organization": {"id": 1416}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 330, "owner": {"id": 651}, "assignee": {"id": 570}, "project": {"id": 398, "owner": {"id": 736}, "assignee": {"id": 816}}, "task": {"id": 375, "owner": {"id": 937}, "assignee": {"id": 1098}}, "job": {"id": 310, "assignee": {"id": 1192}}, "issue": {"id": 393, "owner": {"id": 1286}, "assignee": {"id": 1330}}, "organization": {"id": 107}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 394, "owner": {"id": 677}, "assignee": {"id": 540}, "project": {"id": 385, "owner": {"id": 730}, "assignee": {"id": 876}}, "task": {"id": 310, "owner": {"id": 995}, "assignee": {"id": 1085}}, "job": {"id": 349, "assignee": {"id": 1159}}, "issue": {"id": 374, "owner": {"id": 1258}, "assignee": {"id": 1357}}, "organization": {"id": 114}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 390, "owner": {"id": 699}, "assignee": {"id": 526}, "project": {"id": 388, "owner": {"id": 790}, "assignee": {"id": 805}}, "task": {"id": 325, "owner": {"id": 943}, "assignee": {"id": 1075}}, "job": {"id": 361, "assignee": {"id": 1102}}, "issue": {"id": 317, "owner": {"id": 1254}, "assignee": {"id": 1344}}, "organization": {"id": 1486}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 301, "owner": {"id": 683}, "assignee": {"id": 590}, "project": {"id": 354, "owner": {"id": 721}, "assignee": {"id": 865}}, "task": {"id": 366, "owner": {"id": 929}, "assignee": {"id": 1009}}, "job": {"id": 395, "assignee": {"id": 1148}}, "issue": {"id": 320, "owner": {"id": 1264}, "assignee": {"id": 1367}}, "organization": {"id": 1421}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 363, "owner": {"id": 660}, "assignee": {"id": 530}, "project": {"id": 317, "owner": {"id": 799}, "assignee": {"id": 812}}, "task": {"id": 324, "owner": {"id": 911}, "assignee": {"id": 1010}}, "job": {"id": 391, "assignee": {"id": 1102}}, "issue": {"id": 304, "owner": {"id": 1233}, "assignee": {"id": 1345}}, "organization": {"id": 158}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 692}, "assignee": {"id": 546}, "project": {"id": 350, "owner": {"id": 771}, "assignee": {"id": 871}}, "task": {"id": 306, "owner": {"id": 981}, "assignee": {"id": 1027}}, "job": {"id": 306, "assignee": {"id": 1103}}, "issue": {"id": 374, "owner": {"id": 1268}, "assignee": {"id": 1359}}, "organization": {"id": 141}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 395, "owner": {"id": 651}, "assignee": {"id": 550}, "project": {"id": 367, "owner": {"id": 767}, "assignee": {"id": 889}}, "task": {"id": 315, "owner": {"id": 979}, "assignee": {"id": 1037}}, "job": {"id": 372, "assignee": {"id": 1140}}, "issue": {"id": 390, "owner": {"id": 1244}, "assignee": {"id": 1302}}, "organization": {"id": 1407}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 605}, "assignee": {"id": 585}, "project": {"id": 396, "owner": {"id": 761}, "assignee": {"id": 810}}, "task": {"id": 330, "owner": {"id": 952}, "assignee": {"id": 1009}}, "job": {"id": 334, "assignee": {"id": 1144}}, "issue": {"id": 343, "owner": {"id": 1239}, "assignee": {"id": 1366}}, "organization": {"id": 1427}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 680}, "assignee": {"id": 578}, "project": {"id": 356, "owner": {"id": 771}, "assignee": {"id": 858}}, "task": {"id": 372, "owner": {"id": 952}, "assignee": {"id": 1031}}, "job": {"id": 364, "assignee": {"id": 1129}}, "issue": {"id": 330, "owner": {"id": 1227}, "assignee": {"id": 1353}}, "organization": {"id": 154}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 665}, "assignee": {"id": 526}, "project": {"id": 351, "owner": {"id": 747}, "assignee": {"id": 897}}, "task": {"id": 376, "owner": {"id": 920}, "assignee": {"id": 1037}}, "job": {"id": 350, "assignee": {"id": 1154}}, "issue": {"id": 304, "owner": {"id": 1271}, "assignee": {"id": 1391}}, "organization": {"id": 148}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 397, "owner": {"id": 659}, "assignee": {"id": 500}, "project": {"id": 358, "owner": {"id": 797}, "assignee": {"id": 879}}, "task": {"id": 386, "owner": {"id": 939}, "assignee": {"id": 1084}}, "job": {"id": 370, "assignee": {"id": 1196}}, "issue": {"id": 360, "owner": {"id": 1217}, "assignee": {"id": 1376}}, "organization": {"id": 1444}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 395, "owner": {"id": 621}, "assignee": {"id": 542}, "project": {"id": 386, "owner": {"id": 760}, "assignee": {"id": 837}}, "task": {"id": 393, "owner": {"id": 945}, "assignee": {"id": 1017}}, "job": {"id": 324, "assignee": {"id": 1159}}, "issue": {"id": 330, "owner": {"id": 1208}, "assignee": {"id": 1379}}, "organization": {"id": 1425}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "owner": {"id": 617}, "assignee": {"id": 566}, "project": {"id": 327, "owner": {"id": 762}, "assignee": {"id": 893}}, "task": {"id": 355, "owner": {"id": 963}, "assignee": {"id": 1065}}, "job": {"id": 375, "assignee": {"id": 1100}}, "issue": {"id": 390, "owner": {"id": 1254}, "assignee": {"id": 1382}}, "organization": {"id": 174}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "owner": {"id": 686}, "assignee": {"id": 557}, "project": {"id": 358, "owner": {"id": 764}, "assignee": {"id": 803}}, "task": {"id": 311, "owner": {"id": 938}, "assignee": {"id": 1024}}, "job": {"id": 341, "assignee": {"id": 1135}}, "issue": {"id": 314, "owner": {"id": 1201}, "assignee": {"id": 1343}}, "organization": {"id": 162}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 653}, "assignee": {"id": 506}, "project": {"id": 312, "owner": {"id": 735}, "assignee": {"id": 895}}, "task": {"id": 300, "owner": {"id": 959}, "assignee": {"id": 1017}}, "job": {"id": 324, "assignee": {"id": 1142}}, "issue": {"id": 355, "owner": {"id": 1237}, "assignee": {"id": 1366}}, "organization": {"id": 1467}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "owner": {"id": 660}, "assignee": {"id": 504}, "project": {"id": 341, "owner": {"id": 712}, "assignee": {"id": 870}}, "task": {"id": 379, "owner": {"id": 920}, "assignee": {"id": 1013}}, "job": {"id": 361, "assignee": {"id": 1120}}, "issue": {"id": 329, "owner": {"id": 1228}, "assignee": {"id": 1365}}, "organization": {"id": 1413}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 620}, "assignee": {"id": 502}, "project": {"id": 338, "owner": {"id": 796}, "assignee": {"id": 842}}, "task": {"id": 340, "owner": {"id": 926}, "assignee": {"id": 1005}}, "job": {"id": 327, "assignee": {"id": 1197}}, "issue": {"id": 321, "owner": {"id": 1273}, "assignee": {"id": 1342}}, "organization": {"id": 100}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 691}, "assignee": {"id": 505}, "project": {"id": 344, "owner": {"id": 730}, "assignee": {"id": 847}}, "task": {"id": 332, "owner": {"id": 945}, "assignee": {"id": 1069}}, "job": {"id": 385, "assignee": {"id": 1190}}, "issue": {"id": 338, "owner": {"id": 1202}, "assignee": {"id": 1390}}, "organization": {"id": 194}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "owner": {"id": 654}, "assignee": {"id": 506}, "project": {"id": 367, "owner": {"id": 784}, "assignee": {"id": 826}}, "task": {"id": 309, "owner": {"id": 930}, "assignee": {"id": 1044}}, "job": {"id": 341, "assignee": {"id": 1174}}, "issue": {"id": 367, "owner": {"id": 1257}, "assignee": {"id": 1312}}, "organization": {"id": 1418}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "owner": {"id": 630}, "assignee": {"id": 530}, "project": {"id": 353, "owner": {"id": 749}, "assignee": {"id": 889}}, "task": {"id": 327, "owner": {"id": 902}, "assignee": {"id": 1058}}, "job": {"id": 336, "assignee": {"id": 1100}}, "issue": {"id": 302, "owner": {"id": 1223}, "assignee": {"id": 1386}}, "organization": {"id": 1430}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 657}, "assignee": {"id": 520}, "project": {"id": 316, "owner": {"id": 771}, "assignee": {"id": 804}}, "task": {"id": 344, "owner": {"id": 973}, "assignee": {"id": 1046}}, "job": {"id": 344, "assignee": {"id": 1154}}, "issue": {"id": 328, "owner": {"id": 1227}, "assignee": {"id": 1324}}, "organization": {"id": 138}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 661}, "assignee": {"id": 583}, "project": {"id": 379, "owner": {"id": 790}, "assignee": {"id": 812}}, "task": {"id": 328, "owner": {"id": 934}, "assignee": {"id": 1081}}, "job": {"id": 300, "assignee": {"id": 1160}}, "issue": {"id": 335, "owner": {"id": 1290}, "assignee": {"id": 1357}}, "organization": {"id": 101}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 687}, "assignee": {"id": 598}, "project": {"id": 390, "owner": {"id": 782}, "assignee": {"id": 801}}, "task": {"id": 314, "owner": {"id": 965}, "assignee": {"id": 1005}}, "job": {"id": 307, "assignee": {"id": 1141}}, "issue": {"id": 388, "owner": {"id": 1215}, "assignee": {"id": 1375}}, "organization": {"id": 1431}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 387, "owner": {"id": 698}, "assignee": {"id": 501}, "project": {"id": 364, "owner": {"id": 724}, "assignee": {"id": 883}}, "task": {"id": 310, "owner": {"id": 970}, "assignee": {"id": 1010}}, "job": {"id": 355, "assignee": {"id": 1140}}, "issue": {"id": 382, "owner": {"id": 1286}, "assignee": {"id": 1365}}, "organization": {"id": 1453}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"id": 340, "owner": {"id": 605}, "assignee": {"id": 523}, "project": {"id": 390, "owner": {"id": 770}, "assignee": {"id": 805}}, "task": {"id": 327, "owner": {"id": 994}, "assignee": {"id": 1077}}, "job": {"id": 345, "assignee": {"id": 1184}}, "issue": {"id": 368, "owner": {"id": 1211}, "assignee": {"id": 1354}}, "organization": {"id": 100}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 373, "owner": {"id": 674}, "assignee": {"id": 582}, "project": {"id": 388, "owner": {"id": 728}, "assignee": {"id": 867}}, "task": {"id": 321, "owner": {"id": 922}, "assignee": {"id": 1097}}, "job": {"id": 384, "assignee": {"id": 1104}}, "issue": {"id": 375, "owner": {"id": 1216}, "assignee": {"id": 1353}}, "organization": {"id": 161}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 320, "owner": {"id": 698}, "assignee": {"id": 525}, "project": {"id": 374, "owner": {"id": 789}, "assignee": {"id": 897}}, "task": {"id": 338, "owner": {"id": 999}, "assignee": {"id": 1038}}, "job": {"id": 394, "assignee": {"id": 1197}}, "issue": {"id": 365, "owner": {"id": 1207}, "assignee": {"id": 1348}}, "organization": {"id": 1444}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 607}, "assignee": {"id": 568}, "project": {"id": 302, "owner": {"id": 726}, "assignee": {"id": 862}}, "task": {"id": 369, "owner": {"id": 985}, "assignee": {"id": 1097}}, "job": {"id": 379, "assignee": {"id": 1126}}, "issue": {"id": 336, "owner": {"id": 1220}, "assignee": {"id": 1311}}, "organization": {"id": 1446}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 308, "owner": {"id": 653}, "assignee": {"id": 505}, "project": {"id": 387, "owner": {"id": 767}, "assignee": {"id": 835}}, "task": {"id": 338, "owner": {"id": 954}, "assignee": {"id": 1002}}, "job": {"id": 350, "assignee": {"id": 1146}}, "issue": {"id": 366, "owner": {"id": 1255}, "assignee": {"id": 1370}}, "organization": {"id": 102}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 608}, "assignee": {"id": 531}, "project": {"id": 378, "owner": {"id": 794}, "assignee": {"id": 815}}, "task": {"id": 344, "owner": {"id": 962}, "assignee": {"id": 1023}}, "job": {"id": 327, "assignee": {"id": 1171}}, "issue": {"id": 363, "owner": {"id": 1261}, "assignee": {"id": 1331}}, "organization": {"id": 102}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 393, "owner": {"id": 669}, "assignee": {"id": 509}, "project": {"id": 350, "owner": {"id": 713}, "assignee": {"id": 875}}, "task": {"id": 388, "owner": {"id": 910}, "assignee": {"id": 1092}}, "job": {"id": 388, "assignee": {"id": 1143}}, "issue": {"id": 301, "owner": {"id": 1246}, "assignee": {"id": 1301}}, "organization": {"id": 1495}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 353, "owner": {"id": 698}, "assignee": {"id": 577}, "project": {"id": 307, "owner": {"id": 770}, "assignee": {"id": 878}}, "task": {"id": 375, "owner": {"id": 997}, "assignee": {"id": 1015}}, "job": {"id": 361, "assignee": {"id": 1138}}, "issue": {"id": 311, "owner": {"id": 1217}, "assignee": {"id": 1366}}, "organization": {"id": 1440}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "owner": {"id": 692}, "assignee": {"id": 541}, "project": {"id": 338, "owner": {"id": 717}, "assignee": {"id": 866}}, "task": {"id": 315, "owner": {"id": 975}, "assignee": {"id": 1047}}, "job": {"id": 351, "assignee": {"id": 1165}}, "issue": {"id": 374, "owner": {"id": 1202}, "assignee": {"id": 1303}}, "organization": {"id": 117}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "owner": {"id": 634}, "assignee": {"id": 540}, "project": {"id": 338, "owner": {"id": 726}, "assignee": {"id": 840}}, "task": {"id": 381, "owner": {"id": 961}, "assignee": {"id": 1029}}, "job": {"id": 351, "assignee": {"id": 1163}}, "issue": {"id": 369, "owner": {"id": 1216}, "assignee": {"id": 1394}}, "organization": {"id": 122}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "owner": {"id": 626}, "assignee": {"id": 539}, "project": {"id": 393, "owner": {"id": 740}, "assignee": {"id": 820}}, "task": {"id": 366, "owner": {"id": 996}, "assignee": {"id": 1007}}, "job": {"id": 367, "assignee": {"id": 1112}}, "issue": {"id": 396, "owner": {"id": 1296}, "assignee": {"id": 1368}}, "organization": {"id": 1436}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 694}, "assignee": {"id": 523}, "project": {"id": 384, "owner": {"id": 708}, "assignee": {"id": 823}}, "task": {"id": 313, "owner": {"id": 903}, "assignee": {"id": 1051}}, "job": {"id": 397, "assignee": {"id": 1133}}, "issue": {"id": 332, "owner": {"id": 1216}, "assignee": {"id": 1383}}, "organization": {"id": 1448}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 679}, "assignee": {"id": 514}, "project": {"id": 328, "owner": {"id": 775}, "assignee": {"id": 868}}, "task": {"id": 347, "owner": {"id": 918}, "assignee": {"id": 1017}}, "job": {"id": 322, "assignee": {"id": 1106}}, "issue": {"id": 308, "owner": {"id": 1285}, "assignee": {"id": 1398}}, "organization": {"id": 115}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 621}, "assignee": {"id": 509}, "project": {"id": 331, "owner": {"id": 763}, "assignee": {"id": 831}}, "task": {"id": 304, "owner": {"id": 964}, "assignee": {"id": 1024}}, "job": {"id": 301, "assignee": {"id": 1181}}, "issue": {"id": 312, "owner": {"id": 1264}, "assignee": {"id": 1308}}, "organization": {"id": 148}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "owner": {"id": 694}, "assignee": {"id": 583}, "project": {"id": 337, "owner": {"id": 790}, "assignee": {"id": 883}}, "task": {"id": 361, "owner": {"id": 925}, "assignee": {"id": 1096}}, "job": {"id": 335, "assignee": {"id": 1141}}, "issue": {"id": 306, "owner": {"id": 1200}, "assignee": {"id": 1363}}, "organization": {"id": 1414}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "owner": {"id": 620}, "assignee": {"id": 579}, "project": {"id": 367, "owner": {"id": 734}, "assignee": {"id": 870}}, "task": {"id": 305, "owner": {"id": 970}, "assignee": {"id": 1041}}, "job": {"id": 395, "assignee": {"id": 1117}}, "issue": {"id": 343, "owner": {"id": 1279}, "assignee": {"id": 1361}}, "organization": {"id": 1424}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 380, "owner": {"id": 611}, "assignee": {"id": 532}, "project": {"id": 350, "owner": {"id": 712}, "assignee": {"id": 871}}, "task": {"id": 381, "owner": {"id": 991}, "assignee": {"id": 1036}}, "job": {"id": 379, "assignee": {"id": 1197}}, "issue": {"id": 349, "owner": {"id": 1230}, "assignee": {"id": 1305}}, "organization": {"id": 169}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 661}, "assignee": {"id": 513}, "project": {"id": 341, "owner": {"id": 756}, "assignee": {"id": 892}}, "task": {"id": 388, "owner": {"id": 932}, "assignee": {"id": 1038}}, "job": {"id": 347, "assignee": {"id": 1137}}, "issue": {"id": 371, "owner": {"id": 1245}, "assignee": {"id": 1360}}, "organization": {"id": 139}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 377, "owner": {"id": 632}, "assignee": {"id": 530}, "project": {"id": 309, "owner": {"id": 789}, "assignee": {"id": 829}}, "task": {"id": 310, "owner": {"id": 906}, "assignee": {"id": 1078}}, "job": {"id": 353, "assignee": {"id": 1188}}, "issue": {"id": 347, "owner": {"id": 1232}, "assignee": {"id": 1380}}, "organization": {"id": 1419}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 383, "owner": {"id": 609}, "assignee": {"id": 593}, "project": {"id": 304, "owner": {"id": 753}, "assignee": {"id": 806}}, "task": {"id": 384, "owner": {"id": 999}, "assignee": {"id": 1002}}, "job": {"id": 328, "assignee": {"id": 1125}}, "issue": {"id": 306, "owner": {"id": 1249}, "assignee": {"id": 1382}}, "organization": {"id": 1404}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"id": 387, "owner": {"id": 600}, "assignee": {"id": 505}, "project": {"id": 364, "owner": {"id": 736}, "assignee": {"id": 804}}, "task": {"id": 360, "owner": {"id": 976}, "assignee": {"id": 1013}}, "job": {"id": 378, "assignee": {"id": 1167}}, "issue": {"id": 323, "owner": {"id": 1212}, "assignee": {"id": 1399}}, "organization": {"id": 152}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 360, "owner": {"id": 644}, "assignee": {"id": 596}, "project": {"id": 387, "owner": {"id": 763}, "assignee": {"id": 809}}, "task": {"id": 335, "owner": {"id": 960}, "assignee": {"id": 1013}}, "job": {"id": 329, "assignee": {"id": 1120}}, "issue": {"id": 325, "owner": {"id": 1226}, "assignee": {"id": 1396}}, "organization": {"id": 164}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 395, "owner": {"id": 664}, "assignee": {"id": 584}, "project": {"id": 334, "owner": {"id": 730}, "assignee": {"id": 842}}, "task": {"id": 386, "owner": {"id": 942}, "assignee": {"id": 1009}}, "job": {"id": 306, "assignee": {"id": 1140}}, "issue": {"id": 305, "owner": {"id": 1282}, "assignee": {"id": 1347}}, "organization": {"id": 1412}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 627}, "assignee": {"id": 582}, "project": {"id": 364, "owner": {"id": 769}, "assignee": {"id": 838}}, "task": {"id": 386, "owner": {"id": 996}, "assignee": {"id": 1092}}, "job": {"id": 336, "assignee": {"id": 1132}}, "issue": {"id": 320, "owner": {"id": 1204}, "assignee": {"id": 1360}}, "organization": {"id": 1467}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": null}, "resource": {"id": 383, "owner": {"id": 681}, "assignee": {"id": 525}, "project": {"id": 355, "owner": {"id": 86}, "assignee": {"id": 861}}, "task": {"id": 393, "owner": {"id": 942}, "assignee": {"id": 1053}}, "job": {"id": 387, "assignee": {"id": 1192}}, "issue": {"id": 302, "owner": {"id": 1282}, "assignee": {"id": 1304}}, "organization": {"id": 1428}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": null}, "resource": {"id": 315, "owner": {"id": 677}, "assignee": {"id": 584}, "project": {"id": 334, "owner": {"id": 36}, "assignee": {"id": 895}}, "task": {"id": 355, "owner": {"id": 994}, "assignee": {"id": 1037}}, "job": {"id": 388, "assignee": {"id": 1154}}, "issue": {"id": 301, "owner": {"id": 1271}, "assignee": {"id": 1318}}, "organization": {"id": 1409}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": null}, "resource": {"id": 377, "owner": {"id": 691}, "assignee": {"id": 508}, "project": {"id": 316, "owner": {"id": 79}, "assignee": {"id": 854}}, "task": {"id": 305, "owner": {"id": 928}, "assignee": {"id": 1013}}, "job": {"id": 343, "assignee": {"id": 1119}}, "issue": {"id": 301, "owner": {"id": 1236}, "assignee": {"id": 1368}}, "organization": {"id": 1407}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": null}, "resource": {"id": 304, "owner": {"id": 674}, "assignee": {"id": 558}, "project": {"id": 314, "owner": {"id": 57}, "assignee": {"id": 808}}, "task": {"id": 313, "owner": {"id": 908}, "assignee": {"id": 1036}}, "job": {"id": 383, "assignee": {"id": 1137}}, "issue": {"id": 301, "owner": {"id": 1225}, "assignee": {"id": 1337}}, "organization": {"id": 1469}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": null}, "resource": {"id": 399, "owner": {"id": 623}, "assignee": {"id": 555}, "project": {"id": 341, "owner": {"id": 78}, "assignee": {"id": 835}}, "task": {"id": 302, "owner": {"id": 973}, "assignee": {"id": 1012}}, "job": {"id": 332, "assignee": {"id": 1138}}, "issue": {"id": 397, "owner": {"id": 1248}, "assignee": {"id": 1361}}, "organization": {"id": 1481}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": null}, "resource": {"id": 330, "owner": {"id": 684}, "assignee": {"id": 504}, "project": {"id": 380, "owner": {"id": 746}, "assignee": {"id": 30}}, "task": {"id": 389, "owner": {"id": 904}, "assignee": {"id": 1001}}, "job": {"id": 301, "assignee": {"id": 1134}}, "issue": {"id": 355, "owner": {"id": 1216}, "assignee": {"id": 1331}}, "organization": {"id": 1418}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": null}, "resource": {"id": 387, "owner": {"id": 632}, "assignee": {"id": 562}, "project": {"id": 379, "owner": {"id": 787}, "assignee": {"id": 68}}, "task": {"id": 312, "owner": {"id": 989}, "assignee": {"id": 1049}}, "job": {"id": 342, "assignee": {"id": 1172}}, "issue": {"id": 381, "owner": {"id": 1214}, "assignee": {"id": 1331}}, "organization": {"id": 1487}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": null}, "resource": {"id": 382, "owner": {"id": 651}, "assignee": {"id": 537}, "project": {"id": 305, "owner": {"id": 762}, "assignee": {"id": 22}}, "task": {"id": 329, "owner": {"id": 949}, "assignee": {"id": 1047}}, "job": {"id": 339, "assignee": {"id": 1138}}, "issue": {"id": 312, "owner": {"id": 1212}, "assignee": {"id": 1384}}, "organization": {"id": 1407}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": null}, "resource": {"id": 302, "owner": {"id": 603}, "assignee": {"id": 583}, "project": {"id": 364, "owner": {"id": 734}, "assignee": {"id": 37}}, "task": {"id": 392, "owner": {"id": 950}, "assignee": {"id": 1017}}, "job": {"id": 346, "assignee": {"id": 1120}}, "issue": {"id": 314, "owner": {"id": 1271}, "assignee": {"id": 1378}}, "organization": {"id": 1408}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": null}, "resource": {"id": 344, "owner": {"id": 687}, "assignee": {"id": 599}, "project": {"id": 395, "owner": {"id": 797}, "assignee": {"id": 75}}, "task": {"id": 365, "owner": {"id": 908}, "assignee": {"id": 1002}}, "job": {"id": 322, "assignee": {"id": 1137}}, "issue": {"id": 371, "owner": {"id": 1275}, "assignee": {"id": 1311}}, "organization": {"id": 1401}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": null}, "resource": {"id": 328, "owner": {"id": 692}, "assignee": {"id": 565}, "project": {"id": 370, "owner": {"id": 745}, "assignee": {"id": 833}}, "task": {"id": 364, "owner": {"id": 51}, "assignee": {"id": 1096}}, "job": {"id": 398, "assignee": {"id": 1127}}, "issue": {"id": 314, "owner": {"id": 1248}, "assignee": {"id": 1334}}, "organization": {"id": 1467}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": null}, "resource": {"id": 381, "owner": {"id": 602}, "assignee": {"id": 575}, "project": {"id": 390, "owner": {"id": 755}, "assignee": {"id": 841}}, "task": {"id": 372, "owner": {"id": 56}, "assignee": {"id": 1096}}, "job": {"id": 396, "assignee": {"id": 1108}}, "issue": {"id": 357, "owner": {"id": 1221}, "assignee": {"id": 1372}}, "organization": {"id": 1454}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": null}, "resource": {"id": 390, "owner": {"id": 606}, "assignee": {"id": 562}, "project": {"id": 302, "owner": {"id": 752}, "assignee": {"id": 893}}, "task": {"id": 377, "owner": {"id": 73}, "assignee": {"id": 1025}}, "job": {"id": 364, "assignee": {"id": 1147}}, "issue": {"id": 387, "owner": {"id": 1215}, "assignee": {"id": 1322}}, "organization": {"id": 1416}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": null}, "resource": {"id": 324, "owner": {"id": 685}, "assignee": {"id": 521}, "project": {"id": 374, "owner": {"id": 756}, "assignee": {"id": 831}}, "task": {"id": 328, "owner": {"id": 64}, "assignee": {"id": 1007}}, "job": {"id": 308, "assignee": {"id": 1144}}, "issue": {"id": 344, "owner": {"id": 1221}, "assignee": {"id": 1345}}, "organization": {"id": 1492}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": null}, "resource": {"id": 347, "owner": {"id": 640}, "assignee": {"id": 533}, "project": {"id": 377, "owner": {"id": 786}, "assignee": {"id": 847}}, "task": {"id": 354, "owner": {"id": 21}, "assignee": {"id": 1067}}, "job": {"id": 303, "assignee": {"id": 1173}}, "issue": {"id": 374, "owner": {"id": 1244}, "assignee": {"id": 1363}}, "organization": {"id": 1485}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": null}, "resource": {"id": 335, "owner": {"id": 604}, "assignee": {"id": 510}, "project": {"id": 313, "owner": {"id": 724}, "assignee": {"id": 876}}, "task": {"id": 382, "owner": {"id": 93}, "assignee": {"id": 1060}}, "job": {"id": 356, "assignee": {"id": 1105}}, "issue": {"id": 312, "owner": {"id": 1218}, "assignee": {"id": 1319}}, "organization": {"id": 1439}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": null}, "resource": {"id": 390, "owner": {"id": 642}, "assignee": {"id": 563}, "project": {"id": 346, "owner": {"id": 714}, "assignee": {"id": 867}}, "task": {"id": 393, "owner": {"id": 35}, "assignee": {"id": 1030}}, "job": {"id": 362, "assignee": {"id": 1151}}, "issue": {"id": 391, "owner": {"id": 1211}, "assignee": {"id": 1361}}, "organization": {"id": 1403}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": null}, "resource": {"id": 379, "owner": {"id": 698}, "assignee": {"id": 571}, "project": {"id": 301, "owner": {"id": 732}, "assignee": {"id": 887}}, "task": {"id": 300, "owner": {"id": 82}, "assignee": {"id": 1018}}, "job": {"id": 323, "assignee": {"id": 1132}}, "issue": {"id": 346, "owner": {"id": 1246}, "assignee": {"id": 1351}}, "organization": {"id": 1455}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": null}, "resource": {"id": 360, "owner": {"id": 604}, "assignee": {"id": 571}, "project": {"id": 300, "owner": {"id": 762}, "assignee": {"id": 876}}, "task": {"id": 392, "owner": {"id": 3}, "assignee": {"id": 1053}}, "job": {"id": 359, "assignee": {"id": 1178}}, "issue": {"id": 322, "owner": {"id": 1290}, "assignee": {"id": 1337}}, "organization": {"id": 1441}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": null}, "resource": {"id": 348, "owner": {"id": 684}, "assignee": {"id": 532}, "project": {"id": 329, "owner": {"id": 726}, "assignee": {"id": 894}}, "task": {"id": 341, "owner": {"id": 54}, "assignee": {"id": 1013}}, "job": {"id": 355, "assignee": {"id": 1179}}, "issue": {"id": 306, "owner": {"id": 1270}, "assignee": {"id": 1388}}, "organization": {"id": 1430}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": null}, "resource": {"id": 324, "owner": {"id": 603}, "assignee": {"id": 557}, "project": {"id": 368, "owner": {"id": 701}, "assignee": {"id": 885}}, "task": {"id": 320, "owner": {"id": 981}, "assignee": {"id": 61}}, "job": {"id": 342, "assignee": {"id": 1169}}, "issue": {"id": 338, "owner": {"id": 1284}, "assignee": {"id": 1304}}, "organization": {"id": 1478}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": null}, "resource": {"id": 366, "owner": {"id": 692}, "assignee": {"id": 576}, "project": {"id": 335, "owner": {"id": 713}, "assignee": {"id": 817}}, "task": {"id": 385, "owner": {"id": 924}, "assignee": {"id": 76}}, "job": {"id": 381, "assignee": {"id": 1189}}, "issue": {"id": 378, "owner": {"id": 1278}, "assignee": {"id": 1369}}, "organization": {"id": 1406}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": null}, "resource": {"id": 362, "owner": {"id": 645}, "assignee": {"id": 548}, "project": {"id": 383, "owner": {"id": 704}, "assignee": {"id": 833}}, "task": {"id": 397, "owner": {"id": 967}, "assignee": {"id": 45}}, "job": {"id": 377, "assignee": {"id": 1130}}, "issue": {"id": 362, "owner": {"id": 1278}, "assignee": {"id": 1340}}, "organization": {"id": 1435}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": null}, "resource": {"id": 365, "owner": {"id": 674}, "assignee": {"id": 501}, "project": {"id": 325, "owner": {"id": 745}, "assignee": {"id": 855}}, "task": {"id": 330, "owner": {"id": 920}, "assignee": {"id": 64}}, "job": {"id": 371, "assignee": {"id": 1158}}, "issue": {"id": 320, "owner": {"id": 1291}, "assignee": {"id": 1382}}, "organization": {"id": 1472}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": null}, "resource": {"id": 383, "owner": {"id": 635}, "assignee": {"id": 562}, "project": {"id": 335, "owner": {"id": 744}, "assignee": {"id": 809}}, "task": {"id": 384, "owner": {"id": 988}, "assignee": {"id": 83}}, "job": {"id": 356, "assignee": {"id": 1153}}, "issue": {"id": 305, "owner": {"id": 1291}, "assignee": {"id": 1336}}, "organization": {"id": 1492}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": null}, "resource": {"id": 387, "owner": {"id": 693}, "assignee": {"id": 541}, "project": {"id": 367, "owner": {"id": 708}, "assignee": {"id": 899}}, "task": {"id": 340, "owner": {"id": 989}, "assignee": {"id": 7}}, "job": {"id": 366, "assignee": {"id": 1130}}, "issue": {"id": 316, "owner": {"id": 1245}, "assignee": {"id": 1366}}, "organization": {"id": 1438}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": null}, "resource": {"id": 341, "owner": {"id": 653}, "assignee": {"id": 570}, "project": {"id": 399, "owner": {"id": 719}, "assignee": {"id": 872}}, "task": {"id": 337, "owner": {"id": 933}, "assignee": {"id": 25}}, "job": {"id": 342, "assignee": {"id": 1116}}, "issue": {"id": 350, "owner": {"id": 1268}, "assignee": {"id": 1302}}, "organization": {"id": 1478}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": null}, "resource": {"id": 364, "owner": {"id": 609}, "assignee": {"id": 576}, "project": {"id": 337, "owner": {"id": 756}, "assignee": {"id": 850}}, "task": {"id": 341, "owner": {"id": 985}, "assignee": {"id": 38}}, "job": {"id": 314, "assignee": {"id": 1173}}, "issue": {"id": 356, "owner": {"id": 1223}, "assignee": {"id": 1348}}, "organization": {"id": 1408}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": null}, "resource": {"id": 317, "owner": {"id": 628}, "assignee": {"id": 514}, "project": {"id": 332, "owner": {"id": 731}, "assignee": {"id": 816}}, "task": {"id": 386, "owner": {"id": 965}, "assignee": {"id": 64}}, "job": {"id": 328, "assignee": {"id": 1130}}, "issue": {"id": 385, "owner": {"id": 1295}, "assignee": {"id": 1314}}, "organization": {"id": 1496}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": null}, "resource": {"id": 351, "owner": {"id": 609}, "assignee": {"id": 595}, "project": {"id": 386, "owner": {"id": 720}, "assignee": {"id": 898}}, "task": {"id": 312, "owner": {"id": 975}, "assignee": {"id": 14}}, "job": {"id": 379, "assignee": {"id": 1196}}, "issue": {"id": 379, "owner": {"id": 1270}, "assignee": {"id": 1385}}, "organization": {"id": 1452}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": null}, "resource": {"id": 327, "owner": {"id": 614}, "assignee": {"id": 551}, "project": {"id": 385, "owner": {"id": 726}, "assignee": {"id": 834}}, "task": {"id": 329, "owner": {"id": 934}, "assignee": {"id": 1024}}, "job": {"id": 358, "assignee": {"id": 75}}, "issue": {"id": 330, "owner": {"id": 1255}, "assignee": {"id": 1336}}, "organization": {"id": 1469}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": null}, "resource": {"id": 357, "owner": {"id": 695}, "assignee": {"id": 533}, "project": {"id": 374, "owner": {"id": 712}, "assignee": {"id": 882}}, "task": {"id": 372, "owner": {"id": 995}, "assignee": {"id": 1028}}, "job": {"id": 386, "assignee": {"id": 41}}, "issue": {"id": 369, "owner": {"id": 1210}, "assignee": {"id": 1347}}, "organization": {"id": 1464}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": null}, "resource": {"id": 344, "owner": {"id": 635}, "assignee": {"id": 520}, "project": {"id": 331, "owner": {"id": 762}, "assignee": {"id": 828}}, "task": {"id": 358, "owner": {"id": 957}, "assignee": {"id": 1074}}, "job": {"id": 336, "assignee": {"id": 85}}, "issue": {"id": 332, "owner": {"id": 1234}, "assignee": {"id": 1304}}, "organization": {"id": 1427}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": null}, "resource": {"id": 345, "owner": {"id": 641}, "assignee": {"id": 525}, "project": {"id": 303, "owner": {"id": 704}, "assignee": {"id": 852}}, "task": {"id": 300, "owner": {"id": 972}, "assignee": {"id": 1081}}, "job": {"id": 308, "assignee": {"id": 66}}, "issue": {"id": 399, "owner": {"id": 1235}, "assignee": {"id": 1342}}, "organization": {"id": 1465}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": null}, "resource": {"id": 383, "owner": {"id": 629}, "assignee": {"id": 529}, "project": {"id": 368, "owner": {"id": 788}, "assignee": {"id": 863}}, "task": {"id": 360, "owner": {"id": 916}, "assignee": {"id": 1094}}, "job": {"id": 382, "assignee": {"id": 84}}, "issue": {"id": 375, "owner": {"id": 1200}, "assignee": {"id": 1352}}, "organization": {"id": 1429}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": null}, "resource": {"id": 349, "owner": {"id": 663}, "assignee": {"id": 518}, "project": {"id": 376, "owner": {"id": 787}, "assignee": {"id": 832}}, "task": {"id": 318, "owner": {"id": 943}, "assignee": {"id": 1018}}, "job": {"id": 313, "assignee": {"id": 50}}, "issue": {"id": 387, "owner": {"id": 1290}, "assignee": {"id": 1313}}, "organization": {"id": 1474}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": null}, "resource": {"id": 389, "owner": {"id": 600}, "assignee": {"id": 550}, "project": {"id": 306, "owner": {"id": 758}, "assignee": {"id": 837}}, "task": {"id": 314, "owner": {"id": 998}, "assignee": {"id": 1033}}, "job": {"id": 344, "assignee": {"id": 85}}, "issue": {"id": 331, "owner": {"id": 1298}, "assignee": {"id": 1359}}, "organization": {"id": 1428}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": null}, "resource": {"id": 371, "owner": {"id": 643}, "assignee": {"id": 543}, "project": {"id": 365, "owner": {"id": 712}, "assignee": {"id": 869}}, "task": {"id": 386, "owner": {"id": 930}, "assignee": {"id": 1014}}, "job": {"id": 341, "assignee": {"id": 62}}, "issue": {"id": 389, "owner": {"id": 1209}, "assignee": {"id": 1389}}, "organization": {"id": 1417}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": null}, "resource": {"id": 357, "owner": {"id": 625}, "assignee": {"id": 595}, "project": {"id": 396, "owner": {"id": 702}, "assignee": {"id": 875}}, "task": {"id": 362, "owner": {"id": 902}, "assignee": {"id": 1024}}, "job": {"id": 331, "assignee": {"id": 29}}, "issue": {"id": 382, "owner": {"id": 1286}, "assignee": {"id": 1344}}, "organization": {"id": 1494}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": null}, "resource": {"id": 351, "owner": {"id": 639}, "assignee": {"id": 596}, "project": {"id": 345, "owner": {"id": 703}, "assignee": {"id": 849}}, "task": {"id": 390, "owner": {"id": 968}, "assignee": {"id": 1079}}, "job": {"id": 368, "assignee": {"id": 55}}, "issue": {"id": 353, "owner": {"id": 1259}, "assignee": {"id": 1383}}, "organization": {"id": 1480}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ISSUE_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": null}, "resource": {"id": 382, "owner": {"id": 636}, "assignee": {"id": 521}, "project": {"id": 356, "owner": {"id": 700}, "assignee": {"id": 846}}, "task": {"id": 322, "owner": {"id": 994}, "assignee": {"id": 1071}}, "job": {"id": 380, "assignee": {"id": 1104}}, "issue": {"id": 386, "owner": {"id": 27}, "assignee": {"id": 1325}}, "organization": {"id": 1404}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ISSUE_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": null}, "resource": {"id": 308, "owner": {"id": 664}, "assignee": {"id": 594}, "project": {"id": 353, "owner": {"id": 744}, "assignee": {"id": 881}}, "task": {"id": 395, "owner": {"id": 946}, "assignee": {"id": 1017}}, "job": {"id": 355, "assignee": {"id": 1101}}, "issue": {"id": 329, "owner": {"id": 39}, "assignee": {"id": 1329}}, "organization": {"id": 1408}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": null}, "resource": {"id": 347, "owner": {"id": 608}, "assignee": {"id": 587}, "project": {"id": 371, "owner": {"id": 718}, "assignee": {"id": 888}}, "task": {"id": 387, "owner": {"id": 904}, "assignee": {"id": 1023}}, "job": {"id": 333, "assignee": {"id": 1187}}, "issue": {"id": 308, "owner": {"id": 27}, "assignee": {"id": 1362}}, "organization": {"id": 1410}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": null}, "resource": {"id": 365, "owner": {"id": 626}, "assignee": {"id": 512}, "project": {"id": 306, "owner": {"id": 727}, "assignee": {"id": 824}}, "task": {"id": 390, "owner": {"id": 958}, "assignee": {"id": 1025}}, "job": {"id": 379, "assignee": {"id": 1120}}, "issue": {"id": 370, "owner": {"id": 52}, "assignee": {"id": 1348}}, "organization": {"id": 1423}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ISSUE_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": null}, "resource": {"id": 349, "owner": {"id": 669}, "assignee": {"id": 558}, "project": {"id": 378, "owner": {"id": 723}, "assignee": {"id": 875}}, "task": {"id": 360, "owner": {"id": 947}, "assignee": {"id": 1092}}, "job": {"id": 345, "assignee": {"id": 1123}}, "issue": {"id": 305, "owner": {"id": 56}, "assignee": {"id": 1388}}, "organization": {"id": 1484}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ISSUE_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "user"}, "organization": null}, "resource": {"id": 365, "owner": {"id": 696}, "assignee": {"id": 575}, "project": {"id": 313, "owner": {"id": 734}, "assignee": {"id": 857}}, "task": {"id": 347, "owner": {"id": 980}, "assignee": {"id": 1009}}, "job": {"id": 379, "assignee": {"id": 1179}}, "issue": {"id": 373, "owner": {"id": 90}, "assignee": {"id": 1363}}, "organization": {"id": 1495}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ISSUE_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": null}, "resource": {"id": 304, "owner": {"id": 621}, "assignee": {"id": 532}, "project": {"id": 383, "owner": {"id": 721}, "assignee": {"id": 820}}, "task": {"id": 324, "owner": {"id": 952}, "assignee": {"id": 1042}}, "job": {"id": 312, "assignee": {"id": 1108}}, "issue": {"id": 321, "owner": {"id": 85}, "assignee": {"id": 1371}}, "organization": {"id": 1411}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ISSUE_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": null}, "resource": {"id": 320, "owner": {"id": 643}, "assignee": {"id": 538}, "project": {"id": 328, "owner": {"id": 720}, "assignee": {"id": 849}}, "task": {"id": 328, "owner": {"id": 902}, "assignee": {"id": 1015}}, "job": {"id": 301, "assignee": {"id": 1116}}, "issue": {"id": 393, "owner": {"id": 45}, "assignee": {"id": 1379}}, "organization": {"id": 1429}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ISSUE_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": null}, "resource": {"id": 389, "owner": {"id": 675}, "assignee": {"id": 591}, "project": {"id": 306, "owner": {"id": 701}, "assignee": {"id": 817}}, "task": {"id": 380, "owner": {"id": 967}, "assignee": {"id": 1055}}, "job": {"id": 322, "assignee": {"id": 1118}}, "issue": {"id": 303, "owner": {"id": 75}, "assignee": {"id": 1387}}, "organization": {"id": 1497}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ISSUE_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": null}, "resource": {"id": 339, "owner": {"id": 637}, "assignee": {"id": 566}, "project": {"id": 346, "owner": {"id": 755}, "assignee": {"id": 874}}, "task": {"id": 384, "owner": {"id": 950}, "assignee": {"id": 1080}}, "job": {"id": 383, "assignee": {"id": 1169}}, "issue": {"id": 331, "owner": {"id": 8}, "assignee": {"id": 1325}}, "organization": {"id": 1455}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": null}, "resource": {"id": 338, "owner": {"id": 620}, "assignee": {"id": 576}, "project": {"id": 379, "owner": {"id": 742}, "assignee": {"id": 839}}, "task": {"id": 340, "owner": {"id": 910}, "assignee": {"id": 1091}}, "job": {"id": 397, "assignee": {"id": 1105}}, "issue": {"id": 390, "owner": {"id": 1250}, "assignee": {"id": 53}}, "organization": {"id": 1480}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": null}, "resource": {"id": 390, "owner": {"id": 665}, "assignee": {"id": 516}, "project": {"id": 376, "owner": {"id": 775}, "assignee": {"id": 804}}, "task": {"id": 387, "owner": {"id": 950}, "assignee": {"id": 1016}}, "job": {"id": 356, "assignee": {"id": 1151}}, "issue": {"id": 315, "owner": {"id": 1287}, "assignee": {"id": 1}}, "organization": {"id": 1425}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": null}, "resource": {"id": 370, "owner": {"id": 690}, "assignee": {"id": 560}, "project": {"id": 396, "owner": {"id": 726}, "assignee": {"id": 813}}, "task": {"id": 347, "owner": {"id": 951}, "assignee": {"id": 1071}}, "job": {"id": 379, "assignee": {"id": 1197}}, "issue": {"id": 307, "owner": {"id": 1291}, "assignee": {"id": 44}}, "organization": {"id": 1419}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": null}, "resource": {"id": 348, "owner": {"id": 665}, "assignee": {"id": 573}, "project": {"id": 336, "owner": {"id": 794}, "assignee": {"id": 815}}, "task": {"id": 342, "owner": {"id": 930}, "assignee": {"id": 1078}}, "job": {"id": 362, "assignee": {"id": 1100}}, "issue": {"id": 384, "owner": {"id": 1279}, "assignee": {"id": 65}}, "organization": {"id": 1428}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": null}, "resource": {"id": 350, "owner": {"id": 644}, "assignee": {"id": 515}, "project": {"id": 378, "owner": {"id": 753}, "assignee": {"id": 862}}, "task": {"id": 315, "owner": {"id": 991}, "assignee": {"id": 1065}}, "job": {"id": 397, "assignee": {"id": 1181}}, "issue": {"id": 386, "owner": {"id": 1238}, "assignee": {"id": 1}}, "organization": {"id": 1406}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": null}, "resource": {"id": 308, "owner": {"id": 637}, "assignee": {"id": 571}, "project": {"id": 326, "owner": {"id": 742}, "assignee": {"id": 864}}, "task": {"id": 343, "owner": {"id": 916}, "assignee": {"id": 1011}}, "job": {"id": 357, "assignee": {"id": 1142}}, "issue": {"id": 392, "owner": {"id": 1239}, "assignee": {"id": 9}}, "organization": {"id": 1464}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": null}, "resource": {"id": 355, "owner": {"id": 685}, "assignee": {"id": 505}, "project": {"id": 358, "owner": {"id": 706}, "assignee": {"id": 819}}, "task": {"id": 350, "owner": {"id": 935}, "assignee": {"id": 1066}}, "job": {"id": 359, "assignee": {"id": 1156}}, "issue": {"id": 338, "owner": {"id": 1243}, "assignee": {"id": 11}}, "organization": {"id": 1440}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": null}, "resource": {"id": 366, "owner": {"id": 600}, "assignee": {"id": 566}, "project": {"id": 305, "owner": {"id": 705}, "assignee": {"id": 833}}, "task": {"id": 308, "owner": {"id": 959}, "assignee": {"id": 1030}}, "job": {"id": 335, "assignee": {"id": 1183}}, "issue": {"id": 374, "owner": {"id": 1262}, "assignee": {"id": 39}}, "organization": {"id": 1431}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": null}, "resource": {"id": 313, "owner": {"id": 632}, "assignee": {"id": 503}, "project": {"id": 355, "owner": {"id": 717}, "assignee": {"id": 822}}, "task": {"id": 383, "owner": {"id": 949}, "assignee": {"id": 1044}}, "job": {"id": 357, "assignee": {"id": 1186}}, "issue": {"id": 329, "owner": {"id": 1252}, "assignee": {"id": 88}}, "organization": {"id": 1408}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": null}, "resource": {"id": 320, "owner": {"id": 606}, "assignee": {"id": 508}, "project": {"id": 342, "owner": {"id": 702}, "assignee": {"id": 877}}, "task": {"id": 306, "owner": {"id": 958}, "assignee": {"id": 1092}}, "job": {"id": 390, "assignee": {"id": 1137}}, "issue": {"id": 308, "owner": {"id": 1224}, "assignee": {"id": 89}}, "organization": {"id": 1460}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": null}, "resource": {"id": 302, "owner": {"id": 8}, "assignee": {"id": 580}, "project": {"id": 308, "owner": {"id": 790}, "assignee": {"id": 848}}, "task": {"id": 361, "owner": {"id": 995}, "assignee": {"id": 1067}}, "job": {"id": 386, "assignee": {"id": 1107}}, "issue": {"id": 316, "owner": {"id": 1245}, "assignee": {"id": 1365}}, "organization": {"id": 1496}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": null}, "resource": {"id": 318, "owner": {"id": 26}, "assignee": {"id": 569}, "project": {"id": 362, "owner": {"id": 779}, "assignee": {"id": 806}}, "task": {"id": 309, "owner": {"id": 995}, "assignee": {"id": 1046}}, "job": {"id": 318, "assignee": {"id": 1147}}, "issue": {"id": 351, "owner": {"id": 1287}, "assignee": {"id": 1398}}, "organization": {"id": 1401}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": null}, "resource": {"id": 349, "owner": {"id": 17}, "assignee": {"id": 510}, "project": {"id": 335, "owner": {"id": 706}, "assignee": {"id": 893}}, "task": {"id": 329, "owner": {"id": 923}, "assignee": {"id": 1009}}, "job": {"id": 343, "assignee": {"id": 1159}}, "issue": {"id": 326, "owner": {"id": 1292}, "assignee": {"id": 1380}}, "organization": {"id": 1413}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": null}, "resource": {"id": 354, "owner": {"id": 48}, "assignee": {"id": 594}, "project": {"id": 363, "owner": {"id": 783}, "assignee": {"id": 812}}, "task": {"id": 331, "owner": {"id": 957}, "assignee": {"id": 1048}}, "job": {"id": 363, "assignee": {"id": 1175}}, "issue": {"id": 358, "owner": {"id": 1251}, "assignee": {"id": 1323}}, "organization": {"id": 1439}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": null}, "resource": {"id": 393, "owner": {"id": 64}, "assignee": {"id": 520}, "project": {"id": 301, "owner": {"id": 745}, "assignee": {"id": 831}}, "task": {"id": 378, "owner": {"id": 978}, "assignee": {"id": 1047}}, "job": {"id": 378, "assignee": {"id": 1145}}, "issue": {"id": 334, "owner": {"id": 1228}, "assignee": {"id": 1332}}, "organization": {"id": 1487}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": null}, "resource": {"id": 325, "owner": {"id": 47}, "assignee": {"id": 522}, "project": {"id": 383, "owner": {"id": 713}, "assignee": {"id": 894}}, "task": {"id": 326, "owner": {"id": 966}, "assignee": {"id": 1060}}, "job": {"id": 384, "assignee": {"id": 1192}}, "issue": {"id": 378, "owner": {"id": 1240}, "assignee": {"id": 1302}}, "organization": {"id": 1410}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": null}, "resource": {"id": 393, "owner": {"id": 20}, "assignee": {"id": 567}, "project": {"id": 347, "owner": {"id": 705}, "assignee": {"id": 805}}, "task": {"id": 300, "owner": {"id": 946}, "assignee": {"id": 1077}}, "job": {"id": 385, "assignee": {"id": 1187}}, "issue": {"id": 347, "owner": {"id": 1217}, "assignee": {"id": 1398}}, "organization": {"id": 1405}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": null}, "resource": {"id": 370, "owner": {"id": 84}, "assignee": {"id": 502}, "project": {"id": 301, "owner": {"id": 773}, "assignee": {"id": 816}}, "task": {"id": 361, "owner": {"id": 932}, "assignee": {"id": 1006}}, "job": {"id": 393, "assignee": {"id": 1157}}, "issue": {"id": 348, "owner": {"id": 1267}, "assignee": {"id": 1336}}, "organization": {"id": 1484}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "none"}, "organization": null}, "resource": {"id": 391, "owner": {"id": 19}, "assignee": {"id": 557}, "project": {"id": 329, "owner": {"id": 726}, "assignee": {"id": 870}}, "task": {"id": 374, "owner": {"id": 938}, "assignee": {"id": 1051}}, "job": {"id": 368, "assignee": {"id": 1104}}, "issue": {"id": 343, "owner": {"id": 1204}, "assignee": {"id": 1382}}, "organization": {"id": 1400}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": null}, "resource": {"id": 368, "owner": {"id": 31}, "assignee": {"id": 551}, "project": {"id": 314, "owner": {"id": 776}, "assignee": {"id": 858}}, "task": {"id": 363, "owner": {"id": 993}, "assignee": {"id": 1055}}, "job": {"id": 382, "assignee": {"id": 1143}}, "issue": {"id": 397, "owner": {"id": 1229}, "assignee": {"id": 1358}}, "organization": {"id": 1429}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": null}, "resource": {"id": 377, "owner": {"id": 616}, "assignee": {"id": 585}, "project": {"id": 336, "owner": {"id": 769}, "assignee": {"id": 843}}, "task": {"id": 380, "owner": {"id": 994}, "assignee": {"id": 1051}}, "job": {"id": 356, "assignee": {"id": 1188}}, "issue": {"id": 312, "owner": {"id": 1273}, "assignee": {"id": 1342}}, "organization": {"id": 1468}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": null}, "resource": {"id": 301, "owner": {"id": 664}, "assignee": {"id": 526}, "project": {"id": 375, "owner": {"id": 761}, "assignee": {"id": 891}}, "task": {"id": 310, "owner": {"id": 990}, "assignee": {"id": 1002}}, "job": {"id": 335, "assignee": {"id": 1102}}, "issue": {"id": 320, "owner": {"id": 1214}, "assignee": {"id": 1306}}, "organization": {"id": 1403}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": null}, "resource": {"id": 311, "owner": {"id": 641}, "assignee": {"id": 552}, "project": {"id": 348, "owner": {"id": 735}, "assignee": {"id": 800}}, "task": {"id": 320, "owner": {"id": 900}, "assignee": {"id": 1088}}, "job": {"id": 323, "assignee": {"id": 1153}}, "issue": {"id": 366, "owner": {"id": 1223}, "assignee": {"id": 1387}}, "organization": {"id": 1457}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": null}, "resource": {"id": 302, "owner": {"id": 671}, "assignee": {"id": 577}, "project": {"id": 313, "owner": {"id": 722}, "assignee": {"id": 843}}, "task": {"id": 356, "owner": {"id": 942}, "assignee": {"id": 1098}}, "job": {"id": 362, "assignee": {"id": 1187}}, "issue": {"id": 389, "owner": {"id": 1264}, "assignee": {"id": 1379}}, "organization": {"id": 1442}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": null}, "resource": {"id": 384, "owner": {"id": 682}, "assignee": {"id": 548}, "project": {"id": 381, "owner": {"id": 775}, "assignee": {"id": 835}}, "task": {"id": 325, "owner": {"id": 960}, "assignee": {"id": 1064}}, "job": {"id": 378, "assignee": {"id": 1120}}, "issue": {"id": 322, "owner": {"id": 1297}, "assignee": {"id": 1391}}, "organization": {"id": 1478}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": null}, "resource": {"id": 369, "owner": {"id": 667}, "assignee": {"id": 573}, "project": {"id": 357, "owner": {"id": 725}, "assignee": {"id": 885}}, "task": {"id": 356, "owner": {"id": 906}, "assignee": {"id": 1012}}, "job": {"id": 366, "assignee": {"id": 1170}}, "issue": {"id": 323, "owner": {"id": 1244}, "assignee": {"id": 1344}}, "organization": {"id": 1433}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": null}, "resource": {"id": 358, "owner": {"id": 694}, "assignee": {"id": 580}, "project": {"id": 343, "owner": {"id": 748}, "assignee": {"id": 818}}, "task": {"id": 315, "owner": {"id": 937}, "assignee": {"id": 1096}}, "job": {"id": 399, "assignee": {"id": 1165}}, "issue": {"id": 303, "owner": {"id": 1262}, "assignee": {"id": 1334}}, "organization": {"id": 1474}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": null}, "resource": {"id": 376, "owner": {"id": 615}, "assignee": {"id": 569}, "project": {"id": 303, "owner": {"id": 735}, "assignee": {"id": 878}}, "task": {"id": 348, "owner": {"id": 967}, "assignee": {"id": 1007}}, "job": {"id": 361, "assignee": {"id": 1119}}, "issue": {"id": 392, "owner": {"id": 1209}, "assignee": {"id": 1350}}, "organization": {"id": 1431}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": null}, "resource": {"id": 385, "owner": {"id": 602}, "assignee": {"id": 593}, "project": {"id": 353, "owner": {"id": 712}, "assignee": {"id": 860}}, "task": {"id": 373, "owner": {"id": 966}, "assignee": {"id": 1074}}, "job": {"id": 336, "assignee": {"id": 1155}}, "issue": {"id": 324, "owner": {"id": 1298}, "assignee": {"id": 1303}}, "organization": {"id": 1460}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": null}, "resource": {"id": 327, "owner": {"id": 684}, "assignee": {"id": 535}, "project": {"id": 310, "owner": {"id": 736}, "assignee": {"id": 828}}, "task": {"id": 383, "owner": {"id": 983}, "assignee": {"id": 1084}}, "job": {"id": 339, "assignee": {"id": 1156}}, "issue": {"id": 362, "owner": {"id": 1230}, "assignee": {"id": 1309}}, "organization": {"id": 1413}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 320, "owner": {"id": 662}, "assignee": {"id": 558}, "project": {"id": 361, "owner": {"id": 5}, "assignee": {"id": 855}}, "task": {"id": 349, "owner": {"id": 911}, "assignee": {"id": 1079}}, "job": {"id": 302, "assignee": {"id": 1182}}, "issue": {"id": 339, "owner": {"id": 1230}, "assignee": {"id": 1313}}, "organization": {"id": 112}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 604}, "assignee": {"id": 539}, "project": {"id": 390, "owner": {"id": 49}, "assignee": {"id": 861}}, "task": {"id": 331, "owner": {"id": 904}, "assignee": {"id": 1052}}, "job": {"id": 398, "assignee": {"id": 1167}}, "issue": {"id": 337, "owner": {"id": 1237}, "assignee": {"id": 1340}}, "organization": {"id": 1424}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 670}, "assignee": {"id": 597}, "project": {"id": 300, "owner": {"id": 9}, "assignee": {"id": 875}}, "task": {"id": 334, "owner": {"id": 970}, "assignee": {"id": 1054}}, "job": {"id": 375, "assignee": {"id": 1189}}, "issue": {"id": 310, "owner": {"id": 1283}, "assignee": {"id": 1334}}, "organization": {"id": 108}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 372, "owner": {"id": 646}, "assignee": {"id": 589}, "project": {"id": 336, "owner": {"id": 48}, "assignee": {"id": 820}}, "task": {"id": 397, "owner": {"id": 979}, "assignee": {"id": 1085}}, "job": {"id": 381, "assignee": {"id": 1104}}, "issue": {"id": 357, "owner": {"id": 1215}, "assignee": {"id": 1379}}, "organization": {"id": 1496}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "owner": {"id": 627}, "assignee": {"id": 538}, "project": {"id": 340, "owner": {"id": 20}, "assignee": {"id": 856}}, "task": {"id": 388, "owner": {"id": 908}, "assignee": {"id": 1091}}, "job": {"id": 395, "assignee": {"id": 1125}}, "issue": {"id": 335, "owner": {"id": 1261}, "assignee": {"id": 1314}}, "organization": {"id": 131}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "owner": {"id": 654}, "assignee": {"id": 568}, "project": {"id": 309, "owner": {"id": 10}, "assignee": {"id": 831}}, "task": {"id": 304, "owner": {"id": 959}, "assignee": {"id": 1061}}, "job": {"id": 381, "assignee": {"id": 1199}}, "issue": {"id": 345, "owner": {"id": 1250}, "assignee": {"id": 1352}}, "organization": {"id": 1422}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 397, "owner": {"id": 683}, "assignee": {"id": 523}, "project": {"id": 345, "owner": {"id": 64}, "assignee": {"id": 855}}, "task": {"id": 358, "owner": {"id": 913}, "assignee": {"id": 1010}}, "job": {"id": 349, "assignee": {"id": 1184}}, "issue": {"id": 318, "owner": {"id": 1239}, "assignee": {"id": 1385}}, "organization": {"id": 133}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 324, "owner": {"id": 611}, "assignee": {"id": 585}, "project": {"id": 361, "owner": {"id": 62}, "assignee": {"id": 843}}, "task": {"id": 322, "owner": {"id": 922}, "assignee": {"id": 1062}}, "job": {"id": 319, "assignee": {"id": 1110}}, "issue": {"id": 363, "owner": {"id": 1295}, "assignee": {"id": 1367}}, "organization": {"id": 1488}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 347, "owner": {"id": 676}, "assignee": {"id": 565}, "project": {"id": 358, "owner": {"id": 46}, "assignee": {"id": 809}}, "task": {"id": 338, "owner": {"id": 935}, "assignee": {"id": 1009}}, "job": {"id": 351, "assignee": {"id": 1147}}, "issue": {"id": 323, "owner": {"id": 1283}, "assignee": {"id": 1319}}, "organization": {"id": 119}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 332, "owner": {"id": 635}, "assignee": {"id": 551}, "project": {"id": 336, "owner": {"id": 71}, "assignee": {"id": 868}}, "task": {"id": 363, "owner": {"id": 967}, "assignee": {"id": 1042}}, "job": {"id": 368, "assignee": {"id": 1151}}, "issue": {"id": 320, "owner": {"id": 1206}, "assignee": {"id": 1350}}, "organization": {"id": 1487}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 614}, "assignee": {"id": 504}, "project": {"id": 321, "owner": {"id": 25}, "assignee": {"id": 862}}, "task": {"id": 316, "owner": {"id": 960}, "assignee": {"id": 1036}}, "job": {"id": 350, "assignee": {"id": 1125}}, "issue": {"id": 387, "owner": {"id": 1201}, "assignee": {"id": 1387}}, "organization": {"id": 153}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 321, "owner": {"id": 633}, "assignee": {"id": 595}, "project": {"id": 399, "owner": {"id": 12}, "assignee": {"id": 810}}, "task": {"id": 331, "owner": {"id": 903}, "assignee": {"id": 1068}}, "job": {"id": 310, "assignee": {"id": 1112}}, "issue": {"id": 366, "owner": {"id": 1218}, "assignee": {"id": 1382}}, "organization": {"id": 1419}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "owner": {"id": 696}, "assignee": {"id": 539}, "project": {"id": 371, "owner": {"id": 95}, "assignee": {"id": 893}}, "task": {"id": 315, "owner": {"id": 950}, "assignee": {"id": 1050}}, "job": {"id": 341, "assignee": {"id": 1114}}, "issue": {"id": 383, "owner": {"id": 1252}, "assignee": {"id": 1348}}, "organization": {"id": 197}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "owner": {"id": 692}, "assignee": {"id": 587}, "project": {"id": 377, "owner": {"id": 43}, "assignee": {"id": 846}}, "task": {"id": 358, "owner": {"id": 951}, "assignee": {"id": 1052}}, "job": {"id": 315, "assignee": {"id": 1156}}, "issue": {"id": 350, "owner": {"id": 1247}, "assignee": {"id": 1336}}, "organization": {"id": 1460}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "owner": {"id": 604}, "assignee": {"id": 534}, "project": {"id": 347, "owner": {"id": 38}, "assignee": {"id": 845}}, "task": {"id": 344, "owner": {"id": 909}, "assignee": {"id": 1025}}, "job": {"id": 349, "assignee": {"id": 1159}}, "issue": {"id": 310, "owner": {"id": 1227}, "assignee": {"id": 1353}}, "organization": {"id": 133}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 663}, "assignee": {"id": 549}, "project": {"id": 398, "owner": {"id": 58}, "assignee": {"id": 864}}, "task": {"id": 321, "owner": {"id": 956}, "assignee": {"id": 1047}}, "job": {"id": 336, "assignee": {"id": 1188}}, "issue": {"id": 351, "owner": {"id": 1295}, "assignee": {"id": 1355}}, "organization": {"id": 1422}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 354, "owner": {"id": 657}, "assignee": {"id": 557}, "project": {"id": 356, "owner": {"id": 25}, "assignee": {"id": 879}}, "task": {"id": 319, "owner": {"id": 984}, "assignee": {"id": 1015}}, "job": {"id": 342, "assignee": {"id": 1163}}, "issue": {"id": 336, "owner": {"id": 1204}, "assignee": {"id": 1330}}, "organization": {"id": 110}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 657}, "assignee": {"id": 558}, "project": {"id": 310, "owner": {"id": 68}, "assignee": {"id": 898}}, "task": {"id": 349, "owner": {"id": 906}, "assignee": {"id": 1056}}, "job": {"id": 330, "assignee": {"id": 1154}}, "issue": {"id": 350, "owner": {"id": 1237}, "assignee": {"id": 1369}}, "organization": {"id": 1430}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 374, "owner": {"id": 615}, "assignee": {"id": 555}, "project": {"id": 379, "owner": {"id": 30}, "assignee": {"id": 830}}, "task": {"id": 391, "owner": {"id": 948}, "assignee": {"id": 1099}}, "job": {"id": 370, "assignee": {"id": 1162}}, "issue": {"id": 380, "owner": {"id": 1212}, "assignee": {"id": 1301}}, "organization": {"id": 127}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 360, "owner": {"id": 648}, "assignee": {"id": 522}, "project": {"id": 303, "owner": {"id": 1}, "assignee": {"id": 836}}, "task": {"id": 361, "owner": {"id": 972}, "assignee": {"id": 1073}}, "job": {"id": 352, "assignee": {"id": 1116}}, "issue": {"id": 373, "owner": {"id": 1240}, "assignee": {"id": 1393}}, "organization": {"id": 1423}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 348, "owner": {"id": 686}, "assignee": {"id": 537}, "project": {"id": 356, "owner": {"id": 98}, "assignee": {"id": 805}}, "task": {"id": 368, "owner": {"id": 926}, "assignee": {"id": 1082}}, "job": {"id": 370, "assignee": {"id": 1122}}, "issue": {"id": 309, "owner": {"id": 1290}, "assignee": {"id": 1360}}, "organization": {"id": 163}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 304, "owner": {"id": 666}, "assignee": {"id": 574}, "project": {"id": 381, "owner": {"id": 92}, "assignee": {"id": 808}}, "task": {"id": 365, "owner": {"id": 973}, "assignee": {"id": 1092}}, "job": {"id": 372, "assignee": {"id": 1157}}, "issue": {"id": 334, "owner": {"id": 1213}, "assignee": {"id": 1312}}, "organization": {"id": 1467}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 667}, "assignee": {"id": 536}, "project": {"id": 346, "owner": {"id": 87}, "assignee": {"id": 885}}, "task": {"id": 346, "owner": {"id": 983}, "assignee": {"id": 1077}}, "job": {"id": 345, "assignee": {"id": 1163}}, "issue": {"id": 395, "owner": {"id": 1275}, "assignee": {"id": 1368}}, "organization": {"id": 146}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "owner": {"id": 669}, "assignee": {"id": 569}, "project": {"id": 367, "owner": {"id": 30}, "assignee": {"id": 817}}, "task": {"id": 300, "owner": {"id": 945}, "assignee": {"id": 1046}}, "job": {"id": 394, "assignee": {"id": 1110}}, "issue": {"id": 391, "owner": {"id": 1261}, "assignee": {"id": 1359}}, "organization": {"id": 1467}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 642}, "assignee": {"id": 509}, "project": {"id": 393, "owner": {"id": 94}, "assignee": {"id": 808}}, "task": {"id": 304, "owner": {"id": 994}, "assignee": {"id": 1028}}, "job": {"id": 331, "assignee": {"id": 1123}}, "issue": {"id": 383, "owner": {"id": 1216}, "assignee": {"id": 1351}}, "organization": {"id": 166}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 629}, "assignee": {"id": 502}, "project": {"id": 321, "owner": {"id": 99}, "assignee": {"id": 892}}, "task": {"id": 331, "owner": {"id": 979}, "assignee": {"id": 1027}}, "job": {"id": 331, "assignee": {"id": 1103}}, "issue": {"id": 335, "owner": {"id": 1263}, "assignee": {"id": 1314}}, "organization": {"id": 1485}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 326, "owner": {"id": 650}, "assignee": {"id": 586}, "project": {"id": 382, "owner": {"id": 23}, "assignee": {"id": 847}}, "task": {"id": 312, "owner": {"id": 921}, "assignee": {"id": 1062}}, "job": {"id": 326, "assignee": {"id": 1126}}, "issue": {"id": 312, "owner": {"id": 1294}, "assignee": {"id": 1364}}, "organization": {"id": 135}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 366, "owner": {"id": 624}, "assignee": {"id": 561}, "project": {"id": 362, "owner": {"id": 21}, "assignee": {"id": 895}}, "task": {"id": 334, "owner": {"id": 952}, "assignee": {"id": 1038}}, "job": {"id": 388, "assignee": {"id": 1138}}, "issue": {"id": 301, "owner": {"id": 1215}, "assignee": {"id": 1346}}, "organization": {"id": 1414}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 613}, "assignee": {"id": 550}, "project": {"id": 339, "owner": {"id": 73}, "assignee": {"id": 818}}, "task": {"id": 337, "owner": {"id": 964}, "assignee": {"id": 1029}}, "job": {"id": 301, "assignee": {"id": 1192}}, "issue": {"id": 314, "owner": {"id": 1279}, "assignee": {"id": 1372}}, "organization": {"id": 176}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 363, "owner": {"id": 634}, "assignee": {"id": 573}, "project": {"id": 331, "owner": {"id": 9}, "assignee": {"id": 881}}, "task": {"id": 308, "owner": {"id": 942}, "assignee": {"id": 1082}}, "job": {"id": 310, "assignee": {"id": 1191}}, "issue": {"id": 390, "owner": {"id": 1227}, "assignee": {"id": 1324}}, "organization": {"id": 1428}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 390, "owner": {"id": 641}, "assignee": {"id": 585}, "project": {"id": 380, "owner": {"id": 68}, "assignee": {"id": 834}}, "task": {"id": 332, "owner": {"id": 914}, "assignee": {"id": 1064}}, "job": {"id": 332, "assignee": {"id": 1137}}, "issue": {"id": 359, "owner": {"id": 1210}, "assignee": {"id": 1301}}, "organization": {"id": 184}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 667}, "assignee": {"id": 505}, "project": {"id": 365, "owner": {"id": 56}, "assignee": {"id": 854}}, "task": {"id": 327, "owner": {"id": 974}, "assignee": {"id": 1074}}, "job": {"id": 385, "assignee": {"id": 1180}}, "issue": {"id": 331, "owner": {"id": 1295}, "assignee": {"id": 1343}}, "organization": {"id": 1434}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 677}, "assignee": {"id": 538}, "project": {"id": 347, "owner": {"id": 12}, "assignee": {"id": 832}}, "task": {"id": 313, "owner": {"id": 977}, "assignee": {"id": 1070}}, "job": {"id": 303, "assignee": {"id": 1181}}, "issue": {"id": 331, "owner": {"id": 1274}, "assignee": {"id": 1399}}, "organization": {"id": 126}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "owner": {"id": 660}, "assignee": {"id": 520}, "project": {"id": 373, "owner": {"id": 64}, "assignee": {"id": 842}}, "task": {"id": 370, "owner": {"id": 945}, "assignee": {"id": 1000}}, "job": {"id": 300, "assignee": {"id": 1160}}, "issue": {"id": 359, "owner": {"id": 1292}, "assignee": {"id": 1378}}, "organization": {"id": 1489}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "owner": {"id": 673}, "assignee": {"id": 511}, "project": {"id": 342, "owner": {"id": 10}, "assignee": {"id": 851}}, "task": {"id": 396, "owner": {"id": 907}, "assignee": {"id": 1014}}, "job": {"id": 359, "assignee": {"id": 1168}}, "issue": {"id": 302, "owner": {"id": 1278}, "assignee": {"id": 1357}}, "organization": {"id": 150}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "owner": {"id": 658}, "assignee": {"id": 556}, "project": {"id": 354, "owner": {"id": 74}, "assignee": {"id": 837}}, "task": {"id": 316, "owner": {"id": 917}, "assignee": {"id": 1081}}, "job": {"id": 372, "assignee": {"id": 1155}}, "issue": {"id": 386, "owner": {"id": 1287}, "assignee": {"id": 1339}}, "organization": {"id": 1401}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 354, "owner": {"id": 600}, "assignee": {"id": 547}, "project": {"id": 356, "owner": {"id": 61}, "assignee": {"id": 897}}, "task": {"id": 307, "owner": {"id": 967}, "assignee": {"id": 1004}}, "job": {"id": 368, "assignee": {"id": 1163}}, "issue": {"id": 351, "owner": {"id": 1222}, "assignee": {"id": 1301}}, "organization": {"id": 180}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 600}, "assignee": {"id": 549}, "project": {"id": 311, "owner": {"id": 3}, "assignee": {"id": 877}}, "task": {"id": 343, "owner": {"id": 995}, "assignee": {"id": 1098}}, "job": {"id": 322, "assignee": {"id": 1112}}, "issue": {"id": 343, "owner": {"id": 1283}, "assignee": {"id": 1396}}, "organization": {"id": 1479}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 330, "owner": {"id": 618}, "assignee": {"id": 561}, "project": {"id": 361, "owner": {"id": 70}, "assignee": {"id": 849}}, "task": {"id": 381, "owner": {"id": 903}, "assignee": {"id": 1053}}, "job": {"id": 370, "assignee": {"id": 1184}}, "issue": {"id": 303, "owner": {"id": 1272}, "assignee": {"id": 1373}}, "organization": {"id": 101}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 354, "owner": {"id": 698}, "assignee": {"id": 597}, "project": {"id": 380, "owner": {"id": 97}, "assignee": {"id": 868}}, "task": {"id": 362, "owner": {"id": 935}, "assignee": {"id": 1060}}, "job": {"id": 370, "assignee": {"id": 1141}}, "issue": {"id": 328, "owner": {"id": 1225}, "assignee": {"id": 1386}}, "organization": {"id": 1414}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 386, "owner": {"id": 616}, "assignee": {"id": 571}, "project": {"id": 398, "owner": {"id": 57}, "assignee": {"id": 850}}, "task": {"id": 314, "owner": {"id": 909}, "assignee": {"id": 1024}}, "job": {"id": 390, "assignee": {"id": 1198}}, "issue": {"id": 321, "owner": {"id": 1272}, "assignee": {"id": 1355}}, "organization": {"id": 185}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 305, "owner": {"id": 620}, "assignee": {"id": 534}, "project": {"id": 393, "owner": {"id": 29}, "assignee": {"id": 826}}, "task": {"id": 375, "owner": {"id": 968}, "assignee": {"id": 1080}}, "job": {"id": 349, "assignee": {"id": 1184}}, "issue": {"id": 325, "owner": {"id": 1261}, "assignee": {"id": 1372}}, "organization": {"id": 1440}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 630}, "assignee": {"id": 533}, "project": {"id": 326, "owner": {"id": 45}, "assignee": {"id": 831}}, "task": {"id": 349, "owner": {"id": 964}, "assignee": {"id": 1052}}, "job": {"id": 370, "assignee": {"id": 1170}}, "issue": {"id": 397, "owner": {"id": 1208}, "assignee": {"id": 1303}}, "organization": {"id": 135}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 603}, "assignee": {"id": 559}, "project": {"id": 306, "owner": {"id": 90}, "assignee": {"id": 852}}, "task": {"id": 319, "owner": {"id": 922}, "assignee": {"id": 1059}}, "job": {"id": 307, "assignee": {"id": 1156}}, "issue": {"id": 384, "owner": {"id": 1214}, "assignee": {"id": 1351}}, "organization": {"id": 1413}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "owner": {"id": 673}, "assignee": {"id": 581}, "project": {"id": 366, "owner": {"id": 54}, "assignee": {"id": 815}}, "task": {"id": 310, "owner": {"id": 932}, "assignee": {"id": 1033}}, "job": {"id": 305, "assignee": {"id": 1134}}, "issue": {"id": 362, "owner": {"id": 1236}, "assignee": {"id": 1319}}, "organization": {"id": 185}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "owner": {"id": 617}, "assignee": {"id": 502}, "project": {"id": 344, "owner": {"id": 4}, "assignee": {"id": 857}}, "task": {"id": 339, "owner": {"id": 991}, "assignee": {"id": 1087}}, "job": {"id": 316, "assignee": {"id": 1104}}, "issue": {"id": 366, "owner": {"id": 1236}, "assignee": {"id": 1326}}, "organization": {"id": 1475}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 372, "owner": {"id": 614}, "assignee": {"id": 576}, "project": {"id": 322, "owner": {"id": 89}, "assignee": {"id": 826}}, "task": {"id": 302, "owner": {"id": 944}, "assignee": {"id": 1025}}, "job": {"id": 311, "assignee": {"id": 1157}}, "issue": {"id": 303, "owner": {"id": 1283}, "assignee": {"id": 1319}}, "organization": {"id": 107}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 363, "owner": {"id": 688}, "assignee": {"id": 575}, "project": {"id": 369, "owner": {"id": 58}, "assignee": {"id": 864}}, "task": {"id": 332, "owner": {"id": 969}, "assignee": {"id": 1005}}, "job": {"id": 346, "assignee": {"id": 1122}}, "issue": {"id": 308, "owner": {"id": 1204}, "assignee": {"id": 1336}}, "organization": {"id": 1491}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 313, "owner": {"id": 688}, "assignee": {"id": 507}, "project": {"id": 318, "owner": {"id": 62}, "assignee": {"id": 830}}, "task": {"id": 382, "owner": {"id": 984}, "assignee": {"id": 1099}}, "job": {"id": 375, "assignee": {"id": 1129}}, "issue": {"id": 334, "owner": {"id": 1268}, "assignee": {"id": 1392}}, "organization": {"id": 164}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 675}, "assignee": {"id": 505}, "project": {"id": 313, "owner": {"id": 74}, "assignee": {"id": 863}}, "task": {"id": 310, "owner": {"id": 986}, "assignee": {"id": 1036}}, "job": {"id": 377, "assignee": {"id": 1187}}, "issue": {"id": 395, "owner": {"id": 1206}, "assignee": {"id": 1347}}, "organization": {"id": 1479}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 621}, "assignee": {"id": 559}, "project": {"id": 356, "owner": {"id": 746}, "assignee": {"id": 15}}, "task": {"id": 324, "owner": {"id": 923}, "assignee": {"id": 1028}}, "job": {"id": 321, "assignee": {"id": 1134}}, "issue": {"id": 354, "owner": {"id": 1254}, "assignee": {"id": 1306}}, "organization": {"id": 172}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 322, "owner": {"id": 656}, "assignee": {"id": 599}, "project": {"id": 372, "owner": {"id": 724}, "assignee": {"id": 74}}, "task": {"id": 341, "owner": {"id": 974}, "assignee": {"id": 1086}}, "job": {"id": 384, "assignee": {"id": 1154}}, "issue": {"id": 358, "owner": {"id": 1290}, "assignee": {"id": 1399}}, "organization": {"id": 1490}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "owner": {"id": 610}, "assignee": {"id": 502}, "project": {"id": 389, "owner": {"id": 749}, "assignee": {"id": 66}}, "task": {"id": 321, "owner": {"id": 900}, "assignee": {"id": 1078}}, "job": {"id": 366, "assignee": {"id": 1102}}, "issue": {"id": 315, "owner": {"id": 1286}, "assignee": {"id": 1369}}, "organization": {"id": 192}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "owner": {"id": 632}, "assignee": {"id": 540}, "project": {"id": 380, "owner": {"id": 780}, "assignee": {"id": 30}}, "task": {"id": 349, "owner": {"id": 949}, "assignee": {"id": 1064}}, "job": {"id": 300, "assignee": {"id": 1199}}, "issue": {"id": 386, "owner": {"id": 1293}, "assignee": {"id": 1332}}, "organization": {"id": 1429}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "owner": {"id": 638}, "assignee": {"id": 539}, "project": {"id": 384, "owner": {"id": 768}, "assignee": {"id": 59}}, "task": {"id": 359, "owner": {"id": 916}, "assignee": {"id": 1056}}, "job": {"id": 371, "assignee": {"id": 1141}}, "issue": {"id": 388, "owner": {"id": 1242}, "assignee": {"id": 1308}}, "organization": {"id": 192}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "owner": {"id": 685}, "assignee": {"id": 572}, "project": {"id": 349, "owner": {"id": 700}, "assignee": {"id": 29}}, "task": {"id": 320, "owner": {"id": 936}, "assignee": {"id": 1028}}, "job": {"id": 325, "assignee": {"id": 1145}}, "issue": {"id": 387, "owner": {"id": 1283}, "assignee": {"id": 1326}}, "organization": {"id": 1418}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 655}, "assignee": {"id": 576}, "project": {"id": 369, "owner": {"id": 710}, "assignee": {"id": 41}}, "task": {"id": 352, "owner": {"id": 974}, "assignee": {"id": 1029}}, "job": {"id": 335, "assignee": {"id": 1145}}, "issue": {"id": 392, "owner": {"id": 1235}, "assignee": {"id": 1336}}, "organization": {"id": 137}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 381, "owner": {"id": 620}, "assignee": {"id": 588}, "project": {"id": 344, "owner": {"id": 714}, "assignee": {"id": 68}}, "task": {"id": 313, "owner": {"id": 941}, "assignee": {"id": 1064}}, "job": {"id": 330, "assignee": {"id": 1103}}, "issue": {"id": 305, "owner": {"id": 1267}, "assignee": {"id": 1324}}, "organization": {"id": 1452}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 399, "owner": {"id": 654}, "assignee": {"id": 514}, "project": {"id": 370, "owner": {"id": 737}, "assignee": {"id": 78}}, "task": {"id": 346, "owner": {"id": 997}, "assignee": {"id": 1032}}, "job": {"id": 378, "assignee": {"id": 1157}}, "issue": {"id": 344, "owner": {"id": 1283}, "assignee": {"id": 1316}}, "organization": {"id": 125}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 611}, "assignee": {"id": 573}, "project": {"id": 351, "owner": {"id": 762}, "assignee": {"id": 92}}, "task": {"id": 302, "owner": {"id": 921}, "assignee": {"id": 1042}}, "job": {"id": 366, "assignee": {"id": 1123}}, "issue": {"id": 346, "owner": {"id": 1257}, "assignee": {"id": 1312}}, "organization": {"id": 1485}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 368, "owner": {"id": 669}, "assignee": {"id": 550}, "project": {"id": 333, "owner": {"id": 720}, "assignee": {"id": 18}}, "task": {"id": 380, "owner": {"id": 970}, "assignee": {"id": 1009}}, "job": {"id": 389, "assignee": {"id": 1190}}, "issue": {"id": 384, "owner": {"id": 1205}, "assignee": {"id": 1340}}, "organization": {"id": 170}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 619}, "assignee": {"id": 512}, "project": {"id": 362, "owner": {"id": 790}, "assignee": {"id": 6}}, "task": {"id": 366, "owner": {"id": 928}, "assignee": {"id": 1089}}, "job": {"id": 391, "assignee": {"id": 1113}}, "issue": {"id": 354, "owner": {"id": 1210}, "assignee": {"id": 1349}}, "organization": {"id": 1476}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 618}, "assignee": {"id": 529}, "project": {"id": 321, "owner": {"id": 764}, "assignee": {"id": 23}}, "task": {"id": 329, "owner": {"id": 917}, "assignee": {"id": 1068}}, "job": {"id": 316, "assignee": {"id": 1184}}, "issue": {"id": 305, "owner": {"id": 1241}, "assignee": {"id": 1324}}, "organization": {"id": 138}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "owner": {"id": 623}, "assignee": {"id": 554}, "project": {"id": 356, "owner": {"id": 783}, "assignee": {"id": 58}}, "task": {"id": 318, "owner": {"id": 952}, "assignee": {"id": 1095}}, "job": {"id": 367, "assignee": {"id": 1186}}, "issue": {"id": 340, "owner": {"id": 1223}, "assignee": {"id": 1362}}, "organization": {"id": 1486}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 695}, "assignee": {"id": 529}, "project": {"id": 315, "owner": {"id": 774}, "assignee": {"id": 21}}, "task": {"id": 308, "owner": {"id": 928}, "assignee": {"id": 1062}}, "job": {"id": 342, "assignee": {"id": 1125}}, "issue": {"id": 307, "owner": {"id": 1255}, "assignee": {"id": 1394}}, "organization": {"id": 127}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "owner": {"id": 688}, "assignee": {"id": 594}, "project": {"id": 337, "owner": {"id": 767}, "assignee": {"id": 53}}, "task": {"id": 323, "owner": {"id": 902}, "assignee": {"id": 1090}}, "job": {"id": 303, "assignee": {"id": 1167}}, "issue": {"id": 375, "owner": {"id": 1248}, "assignee": {"id": 1343}}, "organization": {"id": 1413}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 307, "owner": {"id": 692}, "assignee": {"id": 551}, "project": {"id": 374, "owner": {"id": 734}, "assignee": {"id": 84}}, "task": {"id": 318, "owner": {"id": 975}, "assignee": {"id": 1072}}, "job": {"id": 324, "assignee": {"id": 1194}}, "issue": {"id": 315, "owner": {"id": 1256}, "assignee": {"id": 1398}}, "organization": {"id": 120}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 317, "owner": {"id": 634}, "assignee": {"id": 548}, "project": {"id": 320, "owner": {"id": 741}, "assignee": {"id": 51}}, "task": {"id": 313, "owner": {"id": 968}, "assignee": {"id": 1010}}, "job": {"id": 338, "assignee": {"id": 1136}}, "issue": {"id": 376, "owner": {"id": 1296}, "assignee": {"id": 1306}}, "organization": {"id": 1493}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"id": 300, "owner": {"id": 660}, "assignee": {"id": 557}, "project": {"id": 379, "owner": {"id": 706}, "assignee": {"id": 48}}, "task": {"id": 312, "owner": {"id": 931}, "assignee": {"id": 1088}}, "job": {"id": 319, "assignee": {"id": 1126}}, "issue": {"id": 308, "owner": {"id": 1206}, "assignee": {"id": 1395}}, "organization": {"id": 185}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 604}, "assignee": {"id": 525}, "project": {"id": 368, "owner": {"id": 703}, "assignee": {"id": 39}}, "task": {"id": 324, "owner": {"id": 936}, "assignee": {"id": 1015}}, "job": {"id": 331, "assignee": {"id": 1102}}, "issue": {"id": 372, "owner": {"id": 1258}, "assignee": {"id": 1392}}, "organization": {"id": 1489}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 602}, "assignee": {"id": 534}, "project": {"id": 358, "owner": {"id": 703}, "assignee": {"id": 23}}, "task": {"id": 325, "owner": {"id": 956}, "assignee": {"id": 1041}}, "job": {"id": 310, "assignee": {"id": 1138}}, "issue": {"id": 378, "owner": {"id": 1229}, "assignee": {"id": 1372}}, "organization": {"id": 182}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 693}, "assignee": {"id": 592}, "project": {"id": 320, "owner": {"id": 715}, "assignee": {"id": 18}}, "task": {"id": 344, "owner": {"id": 976}, "assignee": {"id": 1030}}, "job": {"id": 337, "assignee": {"id": 1132}}, "issue": {"id": 329, "owner": {"id": 1273}, "assignee": {"id": 1334}}, "organization": {"id": 1440}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "owner": {"id": 629}, "assignee": {"id": 532}, "project": {"id": 323, "owner": {"id": 778}, "assignee": {"id": 63}}, "task": {"id": 386, "owner": {"id": 929}, "assignee": {"id": 1007}}, "job": {"id": 375, "assignee": {"id": 1107}}, "issue": {"id": 336, "owner": {"id": 1213}, "assignee": {"id": 1385}}, "organization": {"id": 125}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "owner": {"id": 663}, "assignee": {"id": 540}, "project": {"id": 346, "owner": {"id": 767}, "assignee": {"id": 46}}, "task": {"id": 344, "owner": {"id": 961}, "assignee": {"id": 1093}}, "job": {"id": 346, "assignee": {"id": 1100}}, "issue": {"id": 354, "owner": {"id": 1250}, "assignee": {"id": 1341}}, "organization": {"id": 1469}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 667}, "assignee": {"id": 512}, "project": {"id": 313, "owner": {"id": 700}, "assignee": {"id": 28}}, "task": {"id": 350, "owner": {"id": 928}, "assignee": {"id": 1065}}, "job": {"id": 364, "assignee": {"id": 1169}}, "issue": {"id": 360, "owner": {"id": 1282}, "assignee": {"id": 1346}}, "organization": {"id": 147}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "owner": {"id": 693}, "assignee": {"id": 589}, "project": {"id": 379, "owner": {"id": 712}, "assignee": {"id": 38}}, "task": {"id": 366, "owner": {"id": 921}, "assignee": {"id": 1008}}, "job": {"id": 389, "assignee": {"id": 1130}}, "issue": {"id": 393, "owner": {"id": 1257}, "assignee": {"id": 1390}}, "organization": {"id": 1411}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 340, "owner": {"id": 695}, "assignee": {"id": 596}, "project": {"id": 356, "owner": {"id": 722}, "assignee": {"id": 77}}, "task": {"id": 332, "owner": {"id": 935}, "assignee": {"id": 1059}}, "job": {"id": 355, "assignee": {"id": 1111}}, "issue": {"id": 359, "owner": {"id": 1225}, "assignee": {"id": 1337}}, "organization": {"id": 192}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 645}, "assignee": {"id": 568}, "project": {"id": 303, "owner": {"id": 763}, "assignee": {"id": 1}}, "task": {"id": 348, "owner": {"id": 954}, "assignee": {"id": 1020}}, "job": {"id": 354, "assignee": {"id": 1187}}, "issue": {"id": 369, "owner": {"id": 1203}, "assignee": {"id": 1381}}, "organization": {"id": 1457}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 373, "owner": {"id": 652}, "assignee": {"id": 569}, "project": {"id": 373, "owner": {"id": 789}, "assignee": {"id": 18}}, "task": {"id": 368, "owner": {"id": 907}, "assignee": {"id": 1016}}, "job": {"id": 349, "assignee": {"id": 1161}}, "issue": {"id": 384, "owner": {"id": 1230}, "assignee": {"id": 1379}}, "organization": {"id": 161}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 650}, "assignee": {"id": 512}, "project": {"id": 310, "owner": {"id": 739}, "assignee": {"id": 64}}, "task": {"id": 300, "owner": {"id": 977}, "assignee": {"id": 1099}}, "job": {"id": 389, "assignee": {"id": 1158}}, "issue": {"id": 330, "owner": {"id": 1244}, "assignee": {"id": 1342}}, "organization": {"id": 1488}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 660}, "assignee": {"id": 587}, "project": {"id": 353, "owner": {"id": 783}, "assignee": {"id": 97}}, "task": {"id": 382, "owner": {"id": 914}, "assignee": {"id": 1045}}, "job": {"id": 388, "assignee": {"id": 1147}}, "issue": {"id": 364, "owner": {"id": 1286}, "assignee": {"id": 1300}}, "organization": {"id": 117}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 374, "owner": {"id": 688}, "assignee": {"id": 515}, "project": {"id": 384, "owner": {"id": 778}, "assignee": {"id": 17}}, "task": {"id": 357, "owner": {"id": 936}, "assignee": {"id": 1072}}, "job": {"id": 357, "assignee": {"id": 1153}}, "issue": {"id": 356, "owner": {"id": 1242}, "assignee": {"id": 1305}}, "organization": {"id": 1438}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "owner": {"id": 690}, "assignee": {"id": 519}, "project": {"id": 302, "owner": {"id": 781}, "assignee": {"id": 19}}, "task": {"id": 339, "owner": {"id": 953}, "assignee": {"id": 1061}}, "job": {"id": 329, "assignee": {"id": 1174}}, "issue": {"id": 375, "owner": {"id": 1223}, "assignee": {"id": 1316}}, "organization": {"id": 113}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "owner": {"id": 640}, "assignee": {"id": 558}, "project": {"id": 393, "owner": {"id": 711}, "assignee": {"id": 35}}, "task": {"id": 399, "owner": {"id": 955}, "assignee": {"id": 1095}}, "job": {"id": 317, "assignee": {"id": 1144}}, "issue": {"id": 316, "owner": {"id": 1225}, "assignee": {"id": 1380}}, "organization": {"id": 1407}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 348, "owner": {"id": 673}, "assignee": {"id": 561}, "project": {"id": 378, "owner": {"id": 738}, "assignee": {"id": 37}}, "task": {"id": 361, "owner": {"id": 927}, "assignee": {"id": 1006}}, "job": {"id": 380, "assignee": {"id": 1170}}, "issue": {"id": 386, "owner": {"id": 1291}, "assignee": {"id": 1384}}, "organization": {"id": 111}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 633}, "assignee": {"id": 534}, "project": {"id": 333, "owner": {"id": 715}, "assignee": {"id": 61}}, "task": {"id": 396, "owner": {"id": 995}, "assignee": {"id": 1032}}, "job": {"id": 304, "assignee": {"id": 1112}}, "issue": {"id": 340, "owner": {"id": 1210}, "assignee": {"id": 1348}}, "organization": {"id": 1430}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 378, "owner": {"id": 631}, "assignee": {"id": 581}, "project": {"id": 368, "owner": {"id": 720}, "assignee": {"id": 80}}, "task": {"id": 301, "owner": {"id": 955}, "assignee": {"id": 1090}}, "job": {"id": 319, "assignee": {"id": 1186}}, "issue": {"id": 376, "owner": {"id": 1292}, "assignee": {"id": 1318}}, "organization": {"id": 182}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 372, "owner": {"id": 696}, "assignee": {"id": 514}, "project": {"id": 378, "owner": {"id": 788}, "assignee": {"id": 59}}, "task": {"id": 329, "owner": {"id": 981}, "assignee": {"id": 1066}}, "job": {"id": 327, "assignee": {"id": 1155}}, "issue": {"id": 348, "owner": {"id": 1280}, "assignee": {"id": 1380}}, "organization": {"id": 1429}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"id": 341, "owner": {"id": 638}, "assignee": {"id": 507}, "project": {"id": 372, "owner": {"id": 730}, "assignee": {"id": 52}}, "task": {"id": 328, "owner": {"id": 966}, "assignee": {"id": 1052}}, "job": {"id": 389, "assignee": {"id": 1174}}, "issue": {"id": 315, "owner": {"id": 1275}, "assignee": {"id": 1378}}, "organization": {"id": 164}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 356, "owner": {"id": 689}, "assignee": {"id": 567}, "project": {"id": 324, "owner": {"id": 734}, "assignee": {"id": 12}}, "task": {"id": 363, "owner": {"id": 931}, "assignee": {"id": 1045}}, "job": {"id": 348, "assignee": {"id": 1149}}, "issue": {"id": 301, "owner": {"id": 1232}, "assignee": {"id": 1333}}, "organization": {"id": 1432}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 349, "owner": {"id": 693}, "assignee": {"id": 587}, "project": {"id": 378, "owner": {"id": 715}, "assignee": {"id": 63}}, "task": {"id": 328, "owner": {"id": 993}, "assignee": {"id": 1008}}, "job": {"id": 358, "assignee": {"id": 1198}}, "issue": {"id": 387, "owner": {"id": 1225}, "assignee": {"id": 1340}}, "organization": {"id": 157}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 366, "owner": {"id": 602}, "assignee": {"id": 538}, "project": {"id": 365, "owner": {"id": 701}, "assignee": {"id": 51}}, "task": {"id": 371, "owner": {"id": 956}, "assignee": {"id": 1044}}, "job": {"id": 367, "assignee": {"id": 1147}}, "issue": {"id": 370, "owner": {"id": 1243}, "assignee": {"id": 1325}}, "organization": {"id": 1456}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "owner": {"id": 683}, "assignee": {"id": 503}, "project": {"id": 368, "owner": {"id": 724}, "assignee": {"id": 16}}, "task": {"id": 338, "owner": {"id": 941}, "assignee": {"id": 1056}}, "job": {"id": 380, "assignee": {"id": 1185}}, "issue": {"id": 370, "owner": {"id": 1266}, "assignee": {"id": 1357}}, "organization": {"id": 198}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "owner": {"id": 664}, "assignee": {"id": 569}, "project": {"id": 369, "owner": {"id": 735}, "assignee": {"id": 1}}, "task": {"id": 361, "owner": {"id": 900}, "assignee": {"id": 1050}}, "job": {"id": 377, "assignee": {"id": 1100}}, "issue": {"id": 349, "owner": {"id": 1277}, "assignee": {"id": 1332}}, "organization": {"id": 1411}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "owner": {"id": 679}, "assignee": {"id": 525}, "project": {"id": 311, "owner": {"id": 730}, "assignee": {"id": 9}}, "task": {"id": 396, "owner": {"id": 995}, "assignee": {"id": 1080}}, "job": {"id": 399, "assignee": {"id": 1135}}, "issue": {"id": 396, "owner": {"id": 1285}, "assignee": {"id": 1367}}, "organization": {"id": 117}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "owner": {"id": 649}, "assignee": {"id": 530}, "project": {"id": 345, "owner": {"id": 797}, "assignee": {"id": 73}}, "task": {"id": 332, "owner": {"id": 970}, "assignee": {"id": 1095}}, "job": {"id": 399, "assignee": {"id": 1145}}, "issue": {"id": 342, "owner": {"id": 1226}, "assignee": {"id": 1336}}, "organization": {"id": 1493}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 373, "owner": {"id": 642}, "assignee": {"id": 560}, "project": {"id": 376, "owner": {"id": 769}, "assignee": {"id": 15}}, "task": {"id": 308, "owner": {"id": 981}, "assignee": {"id": 1063}}, "job": {"id": 310, "assignee": {"id": 1194}}, "issue": {"id": 382, "owner": {"id": 1223}, "assignee": {"id": 1302}}, "organization": {"id": 179}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 316, "owner": {"id": 673}, "assignee": {"id": 512}, "project": {"id": 389, "owner": {"id": 730}, "assignee": {"id": 4}}, "task": {"id": 305, "owner": {"id": 958}, "assignee": {"id": 1065}}, "job": {"id": 323, "assignee": {"id": 1167}}, "issue": {"id": 306, "owner": {"id": 1256}, "assignee": {"id": 1364}}, "organization": {"id": 1470}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 373, "owner": {"id": 672}, "assignee": {"id": 510}, "project": {"id": 311, "owner": {"id": 775}, "assignee": {"id": 53}}, "task": {"id": 360, "owner": {"id": 982}, "assignee": {"id": 1075}}, "job": {"id": 317, "assignee": {"id": 1138}}, "issue": {"id": 316, "owner": {"id": 1245}, "assignee": {"id": 1314}}, "organization": {"id": 101}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 342, "owner": {"id": 663}, "assignee": {"id": 503}, "project": {"id": 361, "owner": {"id": 763}, "assignee": {"id": 19}}, "task": {"id": 350, "owner": {"id": 959}, "assignee": {"id": 1085}}, "job": {"id": 330, "assignee": {"id": 1193}}, "issue": {"id": 302, "owner": {"id": 1217}, "assignee": {"id": 1359}}, "organization": {"id": 1448}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"id": 381, "owner": {"id": 618}, "assignee": {"id": 585}, "project": {"id": 326, "owner": {"id": 701}, "assignee": {"id": 856}}, "task": {"id": 390, "owner": {"id": 8}, "assignee": {"id": 1027}}, "job": {"id": 355, "assignee": {"id": 1146}}, "issue": {"id": 313, "owner": {"id": 1254}, "assignee": {"id": 1361}}, "organization": {"id": 190}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 629}, "assignee": {"id": 560}, "project": {"id": 353, "owner": {"id": 723}, "assignee": {"id": 808}}, "task": {"id": 347, "owner": {"id": 47}, "assignee": {"id": 1013}}, "job": {"id": 316, "assignee": {"id": 1117}}, "issue": {"id": 352, "owner": {"id": 1258}, "assignee": {"id": 1357}}, "organization": {"id": 127}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 329, "owner": {"id": 630}, "assignee": {"id": 582}, "project": {"id": 368, "owner": {"id": 785}, "assignee": {"id": 814}}, "task": {"id": 346, "owner": {"id": 82}, "assignee": {"id": 1004}}, "job": {"id": 397, "assignee": {"id": 1112}}, "issue": {"id": 332, "owner": {"id": 1229}, "assignee": {"id": 1370}}, "organization": {"id": 1487}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 370, "owner": {"id": 650}, "assignee": {"id": 552}, "project": {"id": 347, "owner": {"id": 771}, "assignee": {"id": 883}}, "task": {"id": 321, "owner": {"id": 70}, "assignee": {"id": 1074}}, "job": {"id": 369, "assignee": {"id": 1190}}, "issue": {"id": 384, "owner": {"id": 1275}, "assignee": {"id": 1374}}, "organization": {"id": 1473}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 638}, "assignee": {"id": 582}, "project": {"id": 307, "owner": {"id": 752}, "assignee": {"id": 882}}, "task": {"id": 389, "owner": {"id": 89}, "assignee": {"id": 1081}}, "job": {"id": 306, "assignee": {"id": 1137}}, "issue": {"id": 374, "owner": {"id": 1289}, "assignee": {"id": 1310}}, "organization": {"id": 135}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 638}, "assignee": {"id": 500}, "project": {"id": 368, "owner": {"id": 765}, "assignee": {"id": 842}}, "task": {"id": 352, "owner": {"id": 99}, "assignee": {"id": 1017}}, "job": {"id": 327, "assignee": {"id": 1146}}, "issue": {"id": 364, "owner": {"id": 1279}, "assignee": {"id": 1332}}, "organization": {"id": 136}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 627}, "assignee": {"id": 576}, "project": {"id": 324, "owner": {"id": 758}, "assignee": {"id": 858}}, "task": {"id": 358, "owner": {"id": 90}, "assignee": {"id": 1088}}, "job": {"id": 370, "assignee": {"id": 1123}}, "issue": {"id": 311, "owner": {"id": 1275}, "assignee": {"id": 1372}}, "organization": {"id": 1429}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "owner": {"id": 618}, "assignee": {"id": 581}, "project": {"id": 378, "owner": {"id": 739}, "assignee": {"id": 846}}, "task": {"id": 380, "owner": {"id": 79}, "assignee": {"id": 1080}}, "job": {"id": 376, "assignee": {"id": 1191}}, "issue": {"id": 371, "owner": {"id": 1273}, "assignee": {"id": 1347}}, "organization": {"id": 1472}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 639}, "assignee": {"id": 506}, "project": {"id": 381, "owner": {"id": 753}, "assignee": {"id": 800}}, "task": {"id": 383, "owner": {"id": 73}, "assignee": {"id": 1058}}, "job": {"id": 398, "assignee": {"id": 1148}}, "issue": {"id": 304, "owner": {"id": 1259}, "assignee": {"id": 1322}}, "organization": {"id": 130}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "owner": {"id": 675}, "assignee": {"id": 573}, "project": {"id": 313, "owner": {"id": 731}, "assignee": {"id": 871}}, "task": {"id": 388, "owner": {"id": 96}, "assignee": {"id": 1088}}, "job": {"id": 391, "assignee": {"id": 1148}}, "issue": {"id": 375, "owner": {"id": 1216}, "assignee": {"id": 1358}}, "organization": {"id": 183}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "owner": {"id": 615}, "assignee": {"id": 592}, "project": {"id": 325, "owner": {"id": 743}, "assignee": {"id": 864}}, "task": {"id": 358, "owner": {"id": 37}, "assignee": {"id": 1079}}, "job": {"id": 322, "assignee": {"id": 1107}}, "issue": {"id": 346, "owner": {"id": 1202}, "assignee": {"id": 1320}}, "organization": {"id": 1472}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "owner": {"id": 665}, "assignee": {"id": 596}, "project": {"id": 330, "owner": {"id": 717}, "assignee": {"id": 819}}, "task": {"id": 370, "owner": {"id": 52}, "assignee": {"id": 1045}}, "job": {"id": 372, "assignee": {"id": 1105}}, "issue": {"id": 328, "owner": {"id": 1202}, "assignee": {"id": 1302}}, "organization": {"id": 1419}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 332, "owner": {"id": 640}, "assignee": {"id": 505}, "project": {"id": 337, "owner": {"id": 758}, "assignee": {"id": 861}}, "task": {"id": 370, "owner": {"id": 74}, "assignee": {"id": 1011}}, "job": {"id": 344, "assignee": {"id": 1189}}, "issue": {"id": 304, "owner": {"id": 1224}, "assignee": {"id": 1371}}, "organization": {"id": 158}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 656}, "assignee": {"id": 582}, "project": {"id": 354, "owner": {"id": 793}, "assignee": {"id": 849}}, "task": {"id": 356, "owner": {"id": 79}, "assignee": {"id": 1043}}, "job": {"id": 340, "assignee": {"id": 1199}}, "issue": {"id": 313, "owner": {"id": 1263}, "assignee": {"id": 1380}}, "organization": {"id": 174}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 613}, "assignee": {"id": 506}, "project": {"id": 355, "owner": {"id": 769}, "assignee": {"id": 832}}, "task": {"id": 311, "owner": {"id": 30}, "assignee": {"id": 1012}}, "job": {"id": 357, "assignee": {"id": 1106}}, "issue": {"id": 344, "owner": {"id": 1282}, "assignee": {"id": 1315}}, "organization": {"id": 1459}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 355, "owner": {"id": 692}, "assignee": {"id": 594}, "project": {"id": 385, "owner": {"id": 742}, "assignee": {"id": 895}}, "task": {"id": 384, "owner": {"id": 94}, "assignee": {"id": 1026}}, "job": {"id": 359, "assignee": {"id": 1116}}, "issue": {"id": 322, "owner": {"id": 1268}, "assignee": {"id": 1382}}, "organization": {"id": 1475}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 333, "owner": {"id": 689}, "assignee": {"id": 525}, "project": {"id": 389, "owner": {"id": 771}, "assignee": {"id": 877}}, "task": {"id": 344, "owner": {"id": 90}, "assignee": {"id": 1025}}, "job": {"id": 395, "assignee": {"id": 1137}}, "issue": {"id": 317, "owner": {"id": 1256}, "assignee": {"id": 1324}}, "organization": {"id": 162}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 320, "owner": {"id": 610}, "assignee": {"id": 583}, "project": {"id": 310, "owner": {"id": 713}, "assignee": {"id": 877}}, "task": {"id": 321, "owner": {"id": 3}, "assignee": {"id": 1073}}, "job": {"id": 394, "assignee": {"id": 1148}}, "issue": {"id": 353, "owner": {"id": 1261}, "assignee": {"id": 1378}}, "organization": {"id": 137}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 360, "owner": {"id": 651}, "assignee": {"id": 516}, "project": {"id": 396, "owner": {"id": 795}, "assignee": {"id": 867}}, "task": {"id": 394, "owner": {"id": 87}, "assignee": {"id": 1068}}, "job": {"id": 387, "assignee": {"id": 1168}}, "issue": {"id": 329, "owner": {"id": 1272}, "assignee": {"id": 1314}}, "organization": {"id": 1492}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 347, "owner": {"id": 627}, "assignee": {"id": 560}, "project": {"id": 357, "owner": {"id": 789}, "assignee": {"id": 848}}, "task": {"id": 322, "owner": {"id": 24}, "assignee": {"id": 1081}}, "job": {"id": 363, "assignee": {"id": 1137}}, "issue": {"id": 377, "owner": {"id": 1252}, "assignee": {"id": 1342}}, "organization": {"id": 1434}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 349, "owner": {"id": 616}, "assignee": {"id": 576}, "project": {"id": 383, "owner": {"id": 731}, "assignee": {"id": 819}}, "task": {"id": 395, "owner": {"id": 38}, "assignee": {"id": 1041}}, "job": {"id": 391, "assignee": {"id": 1141}}, "issue": {"id": 323, "owner": {"id": 1261}, "assignee": {"id": 1349}}, "organization": {"id": 174}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 314, "owner": {"id": 679}, "assignee": {"id": 504}, "project": {"id": 376, "owner": {"id": 712}, "assignee": {"id": 890}}, "task": {"id": 358, "owner": {"id": 60}, "assignee": {"id": 1040}}, "job": {"id": 300, "assignee": {"id": 1115}}, "issue": {"id": 377, "owner": {"id": 1218}, "assignee": {"id": 1364}}, "organization": {"id": 112}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 635}, "assignee": {"id": 571}, "project": {"id": 369, "owner": {"id": 758}, "assignee": {"id": 881}}, "task": {"id": 397, "owner": {"id": 66}, "assignee": {"id": 1016}}, "job": {"id": 302, "assignee": {"id": 1112}}, "issue": {"id": 322, "owner": {"id": 1295}, "assignee": {"id": 1309}}, "organization": {"id": 1401}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 317, "owner": {"id": 641}, "assignee": {"id": 545}, "project": {"id": 315, "owner": {"id": 762}, "assignee": {"id": 824}}, "task": {"id": 305, "owner": {"id": 19}, "assignee": {"id": 1063}}, "job": {"id": 351, "assignee": {"id": 1173}}, "issue": {"id": 346, "owner": {"id": 1230}, "assignee": {"id": 1395}}, "organization": {"id": 1446}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "owner": {"id": 618}, "assignee": {"id": 532}, "project": {"id": 307, "owner": {"id": 744}, "assignee": {"id": 811}}, "task": {"id": 334, "owner": {"id": 53}, "assignee": {"id": 1037}}, "job": {"id": 398, "assignee": {"id": 1110}}, "issue": {"id": 302, "owner": {"id": 1200}, "assignee": {"id": 1340}}, "organization": {"id": 177}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 660}, "assignee": {"id": 596}, "project": {"id": 331, "owner": {"id": 713}, "assignee": {"id": 841}}, "task": {"id": 358, "owner": {"id": 60}, "assignee": {"id": 1085}}, "job": {"id": 320, "assignee": {"id": 1153}}, "issue": {"id": 340, "owner": {"id": 1289}, "assignee": {"id": 1381}}, "organization": {"id": 179}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "owner": {"id": 696}, "assignee": {"id": 546}, "project": {"id": 337, "owner": {"id": 739}, "assignee": {"id": 813}}, "task": {"id": 369, "owner": {"id": 34}, "assignee": {"id": 1082}}, "job": {"id": 339, "assignee": {"id": 1174}}, "issue": {"id": 352, "owner": {"id": 1240}, "assignee": {"id": 1367}}, "organization": {"id": 1467}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "owner": {"id": 613}, "assignee": {"id": 560}, "project": {"id": 344, "owner": {"id": 748}, "assignee": {"id": 805}}, "task": {"id": 389, "owner": {"id": 83}, "assignee": {"id": 1077}}, "job": {"id": 381, "assignee": {"id": 1171}}, "issue": {"id": 358, "owner": {"id": 1267}, "assignee": {"id": 1324}}, "organization": {"id": 1487}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "owner": {"id": 604}, "assignee": {"id": 502}, "project": {"id": 398, "owner": {"id": 740}, "assignee": {"id": 815}}, "task": {"id": 366, "owner": {"id": 51}, "assignee": {"id": 1035}}, "job": {"id": 307, "assignee": {"id": 1190}}, "issue": {"id": 387, "owner": {"id": 1230}, "assignee": {"id": 1345}}, "organization": {"id": 130}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 610}, "assignee": {"id": 531}, "project": {"id": 305, "owner": {"id": 768}, "assignee": {"id": 869}}, "task": {"id": 365, "owner": {"id": 38}, "assignee": {"id": 1068}}, "job": {"id": 390, "assignee": {"id": 1188}}, "issue": {"id": 365, "owner": {"id": 1221}, "assignee": {"id": 1374}}, "organization": {"id": 156}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 604}, "assignee": {"id": 543}, "project": {"id": 336, "owner": {"id": 748}, "assignee": {"id": 876}}, "task": {"id": 379, "owner": {"id": 68}, "assignee": {"id": 1071}}, "job": {"id": 313, "assignee": {"id": 1151}}, "issue": {"id": 308, "owner": {"id": 1216}, "assignee": {"id": 1313}}, "organization": {"id": 1458}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "owner": {"id": 666}, "assignee": {"id": 532}, "project": {"id": 396, "owner": {"id": 710}, "assignee": {"id": 841}}, "task": {"id": 312, "owner": {"id": 88}, "assignee": {"id": 1089}}, "job": {"id": 308, "assignee": {"id": 1190}}, "issue": {"id": 319, "owner": {"id": 1214}, "assignee": {"id": 1309}}, "organization": {"id": 1473}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 321, "owner": {"id": 649}, "assignee": {"id": 504}, "project": {"id": 315, "owner": {"id": 722}, "assignee": {"id": 886}}, "task": {"id": 314, "owner": {"id": 87}, "assignee": {"id": 1054}}, "job": {"id": 348, "assignee": {"id": 1143}}, "issue": {"id": 350, "owner": {"id": 1291}, "assignee": {"id": 1383}}, "organization": {"id": 126}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 610}, "assignee": {"id": 596}, "project": {"id": 323, "owner": {"id": 738}, "assignee": {"id": 822}}, "task": {"id": 322, "owner": {"id": 20}, "assignee": {"id": 1071}}, "job": {"id": 312, "assignee": {"id": 1129}}, "issue": {"id": 351, "owner": {"id": 1248}, "assignee": {"id": 1353}}, "organization": {"id": 152}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 391, "owner": {"id": 684}, "assignee": {"id": 509}, "project": {"id": 380, "owner": {"id": 797}, "assignee": {"id": 814}}, "task": {"id": 331, "owner": {"id": 54}, "assignee": {"id": 1018}}, "job": {"id": 341, "assignee": {"id": 1161}}, "issue": {"id": 393, "owner": {"id": 1285}, "assignee": {"id": 1381}}, "organization": {"id": 1467}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 334, "owner": {"id": 629}, "assignee": {"id": 512}, "project": {"id": 393, "owner": {"id": 777}, "assignee": {"id": 896}}, "task": {"id": 307, "owner": {"id": 72}, "assignee": {"id": 1082}}, "job": {"id": 340, "assignee": {"id": 1168}}, "issue": {"id": 367, "owner": {"id": 1295}, "assignee": {"id": 1355}}, "organization": {"id": 1443}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 363, "owner": {"id": 699}, "assignee": {"id": 566}, "project": {"id": 351, "owner": {"id": 754}, "assignee": {"id": 846}}, "task": {"id": 333, "owner": {"id": 17}, "assignee": {"id": 1035}}, "job": {"id": 325, "assignee": {"id": 1194}}, "issue": {"id": 395, "owner": {"id": 1266}, "assignee": {"id": 1306}}, "organization": {"id": 166}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 374, "owner": {"id": 669}, "assignee": {"id": 510}, "project": {"id": 392, "owner": {"id": 765}, "assignee": {"id": 857}}, "task": {"id": 302, "owner": {"id": 37}, "assignee": {"id": 1071}}, "job": {"id": 378, "assignee": {"id": 1139}}, "issue": {"id": 320, "owner": {"id": 1213}, "assignee": {"id": 1354}}, "organization": {"id": 169}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 658}, "assignee": {"id": 577}, "project": {"id": 379, "owner": {"id": 704}, "assignee": {"id": 806}}, "task": {"id": 336, "owner": {"id": 48}, "assignee": {"id": 1025}}, "job": {"id": 316, "assignee": {"id": 1160}}, "issue": {"id": 362, "owner": {"id": 1233}, "assignee": {"id": 1311}}, "organization": {"id": 1456}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 304, "owner": {"id": 673}, "assignee": {"id": 595}, "project": {"id": 395, "owner": {"id": 747}, "assignee": {"id": 868}}, "task": {"id": 381, "owner": {"id": 1}, "assignee": {"id": 1047}}, "job": {"id": 338, "assignee": {"id": 1198}}, "issue": {"id": 322, "owner": {"id": 1289}, "assignee": {"id": 1377}}, "organization": {"id": 1444}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 359, "owner": {"id": 632}, "assignee": {"id": 545}, "project": {"id": 326, "owner": {"id": 778}, "assignee": {"id": 824}}, "task": {"id": 333, "owner": {"id": 0}, "assignee": {"id": 1052}}, "job": {"id": 321, "assignee": {"id": 1166}}, "issue": {"id": 385, "owner": {"id": 1218}, "assignee": {"id": 1332}}, "organization": {"id": 113}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 379, "owner": {"id": 654}, "assignee": {"id": 572}, "project": {"id": 300, "owner": {"id": 715}, "assignee": {"id": 829}}, "task": {"id": 341, "owner": {"id": 59}, "assignee": {"id": 1091}}, "job": {"id": 308, "assignee": {"id": 1168}}, "issue": {"id": 301, "owner": {"id": 1221}, "assignee": {"id": 1329}}, "organization": {"id": 117}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 644}, "assignee": {"id": 503}, "project": {"id": 317, "owner": {"id": 718}, "assignee": {"id": 854}}, "task": {"id": 332, "owner": {"id": 48}, "assignee": {"id": 1023}}, "job": {"id": 313, "assignee": {"id": 1103}}, "issue": {"id": 317, "owner": {"id": 1287}, "assignee": {"id": 1398}}, "organization": {"id": 1471}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 366, "owner": {"id": 649}, "assignee": {"id": 516}, "project": {"id": 350, "owner": {"id": 723}, "assignee": {"id": 896}}, "task": {"id": 390, "owner": {"id": 14}, "assignee": {"id": 1083}}, "job": {"id": 372, "assignee": {"id": 1105}}, "issue": {"id": 330, "owner": {"id": 1267}, "assignee": {"id": 1323}}, "organization": {"id": 1426}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 675}, "assignee": {"id": 539}, "project": {"id": 398, "owner": {"id": 762}, "assignee": {"id": 889}}, "task": {"id": 384, "owner": {"id": 29}, "assignee": {"id": 1005}}, "job": {"id": 340, "assignee": {"id": 1109}}, "issue": {"id": 300, "owner": {"id": 1284}, "assignee": {"id": 1301}}, "organization": {"id": 161}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 644}, "assignee": {"id": 596}, "project": {"id": 352, "owner": {"id": 754}, "assignee": {"id": 836}}, "task": {"id": 397, "owner": {"id": 51}, "assignee": {"id": 1008}}, "job": {"id": 377, "assignee": {"id": 1124}}, "issue": {"id": 377, "owner": {"id": 1206}, "assignee": {"id": 1328}}, "organization": {"id": 199}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "owner": {"id": 665}, "assignee": {"id": 553}, "project": {"id": 332, "owner": {"id": 700}, "assignee": {"id": 865}}, "task": {"id": 338, "owner": {"id": 93}, "assignee": {"id": 1025}}, "job": {"id": 333, "assignee": {"id": 1162}}, "issue": {"id": 384, "owner": {"id": 1210}, "assignee": {"id": 1341}}, "organization": {"id": 1444}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 650}, "assignee": {"id": 503}, "project": {"id": 306, "owner": {"id": 775}, "assignee": {"id": 841}}, "task": {"id": 323, "owner": {"id": 28}, "assignee": {"id": 1038}}, "job": {"id": 313, "assignee": {"id": 1166}}, "issue": {"id": 348, "owner": {"id": 1203}, "assignee": {"id": 1399}}, "organization": {"id": 1497}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 602}, "assignee": {"id": 552}, "project": {"id": 382, "owner": {"id": 767}, "assignee": {"id": 870}}, "task": {"id": 312, "owner": {"id": 7}, "assignee": {"id": 1031}}, "job": {"id": 316, "assignee": {"id": 1177}}, "issue": {"id": 333, "owner": {"id": 1271}, "assignee": {"id": 1336}}, "organization": {"id": 132}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "owner": {"id": 621}, "assignee": {"id": 599}, "project": {"id": 313, "owner": {"id": 710}, "assignee": {"id": 862}}, "task": {"id": 347, "owner": {"id": 60}, "assignee": {"id": 1052}}, "job": {"id": 311, "assignee": {"id": 1185}}, "issue": {"id": 363, "owner": {"id": 1230}, "assignee": {"id": 1356}}, "organization": {"id": 195}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "owner": {"id": 678}, "assignee": {"id": 560}, "project": {"id": 329, "owner": {"id": 713}, "assignee": {"id": 871}}, "task": {"id": 393, "owner": {"id": 7}, "assignee": {"id": 1018}}, "job": {"id": 333, "assignee": {"id": 1170}}, "issue": {"id": 393, "owner": {"id": 1274}, "assignee": {"id": 1380}}, "organization": {"id": 1403}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "owner": {"id": 625}, "assignee": {"id": 566}, "project": {"id": 362, "owner": {"id": 714}, "assignee": {"id": 874}}, "task": {"id": 329, "owner": {"id": 84}, "assignee": {"id": 1082}}, "job": {"id": 365, "assignee": {"id": 1169}}, "issue": {"id": 331, "owner": {"id": 1210}, "assignee": {"id": 1316}}, "organization": {"id": 1465}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 338, "owner": {"id": 622}, "assignee": {"id": 559}, "project": {"id": 351, "owner": {"id": 740}, "assignee": {"id": 864}}, "task": {"id": 327, "owner": {"id": 97}, "assignee": {"id": 1017}}, "job": {"id": 363, "assignee": {"id": 1105}}, "issue": {"id": 319, "owner": {"id": 1276}, "assignee": {"id": 1381}}, "organization": {"id": 140}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 315, "owner": {"id": 653}, "assignee": {"id": 509}, "project": {"id": 313, "owner": {"id": 767}, "assignee": {"id": 886}}, "task": {"id": 341, "owner": {"id": 51}, "assignee": {"id": 1020}}, "job": {"id": 381, "assignee": {"id": 1113}}, "issue": {"id": 319, "owner": {"id": 1262}, "assignee": {"id": 1365}}, "organization": {"id": 107}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 366, "owner": {"id": 669}, "assignee": {"id": 534}, "project": {"id": 384, "owner": {"id": 793}, "assignee": {"id": 826}}, "task": {"id": 306, "owner": {"id": 53}, "assignee": {"id": 1024}}, "job": {"id": 301, "assignee": {"id": 1183}}, "issue": {"id": 370, "owner": {"id": 1293}, "assignee": {"id": 1314}}, "organization": {"id": 1470}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 322, "owner": {"id": 659}, "assignee": {"id": 517}, "project": {"id": 327, "owner": {"id": 774}, "assignee": {"id": 893}}, "task": {"id": 354, "owner": {"id": 85}, "assignee": {"id": 1035}}, "job": {"id": 395, "assignee": {"id": 1127}}, "issue": {"id": 348, "owner": {"id": 1265}, "assignee": {"id": 1365}}, "organization": {"id": 1474}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 320, "owner": {"id": 696}, "assignee": {"id": 542}, "project": {"id": 376, "owner": {"id": 729}, "assignee": {"id": 894}}, "task": {"id": 315, "owner": {"id": 88}, "assignee": {"id": 1048}}, "job": {"id": 332, "assignee": {"id": 1194}}, "issue": {"id": 323, "owner": {"id": 1205}, "assignee": {"id": 1321}}, "organization": {"id": 179}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 394, "owner": {"id": 613}, "assignee": {"id": 508}, "project": {"id": 328, "owner": {"id": 718}, "assignee": {"id": 877}}, "task": {"id": 312, "owner": {"id": 93}, "assignee": {"id": 1073}}, "job": {"id": 399, "assignee": {"id": 1194}}, "issue": {"id": 347, "owner": {"id": 1229}, "assignee": {"id": 1374}}, "organization": {"id": 193}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 341, "owner": {"id": 678}, "assignee": {"id": 566}, "project": {"id": 356, "owner": {"id": 700}, "assignee": {"id": 872}}, "task": {"id": 344, "owner": {"id": 24}, "assignee": {"id": 1033}}, "job": {"id": 386, "assignee": {"id": 1184}}, "issue": {"id": 392, "owner": {"id": 1256}, "assignee": {"id": 1323}}, "organization": {"id": 1426}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 383, "owner": {"id": 672}, "assignee": {"id": 554}, "project": {"id": 374, "owner": {"id": 794}, "assignee": {"id": 885}}, "task": {"id": 394, "owner": {"id": 48}, "assignee": {"id": 1002}}, "job": {"id": 321, "assignee": {"id": 1101}}, "issue": {"id": 368, "owner": {"id": 1287}, "assignee": {"id": 1375}}, "organization": {"id": 1465}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 693}, "assignee": {"id": 518}, "project": {"id": 318, "owner": {"id": 777}, "assignee": {"id": 835}}, "task": {"id": 355, "owner": {"id": 68}, "assignee": {"id": 1063}}, "job": {"id": 320, "assignee": {"id": 1138}}, "issue": {"id": 390, "owner": {"id": 1244}, "assignee": {"id": 1324}}, "organization": {"id": 141}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 674}, "assignee": {"id": 588}, "project": {"id": 335, "owner": {"id": 728}, "assignee": {"id": 841}}, "task": {"id": 349, "owner": {"id": 13}, "assignee": {"id": 1053}}, "job": {"id": 372, "assignee": {"id": 1173}}, "issue": {"id": 303, "owner": {"id": 1252}, "assignee": {"id": 1380}}, "organization": {"id": 164}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 334, "owner": {"id": 670}, "assignee": {"id": 567}, "project": {"id": 329, "owner": {"id": 750}, "assignee": {"id": 842}}, "task": {"id": 395, "owner": {"id": 35}, "assignee": {"id": 1021}}, "job": {"id": 399, "assignee": {"id": 1194}}, "issue": {"id": 394, "owner": {"id": 1228}, "assignee": {"id": 1393}}, "organization": {"id": 1448}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 325, "owner": {"id": 622}, "assignee": {"id": 561}, "project": {"id": 332, "owner": {"id": 726}, "assignee": {"id": 858}}, "task": {"id": 367, "owner": {"id": 83}, "assignee": {"id": 1081}}, "job": {"id": 335, "assignee": {"id": 1182}}, "issue": {"id": 364, "owner": {"id": 1222}, "assignee": {"id": 1344}}, "organization": {"id": 1491}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 640}, "assignee": {"id": 565}, "project": {"id": 302, "owner": {"id": 754}, "assignee": {"id": 830}}, "task": {"id": 345, "owner": {"id": 98}, "assignee": {"id": 1050}}, "job": {"id": 396, "assignee": {"id": 1173}}, "issue": {"id": 307, "owner": {"id": 1230}, "assignee": {"id": 1326}}, "organization": {"id": 143}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "owner": {"id": 678}, "assignee": {"id": 543}, "project": {"id": 383, "owner": {"id": 746}, "assignee": {"id": 813}}, "task": {"id": 366, "owner": {"id": 57}, "assignee": {"id": 1086}}, "job": {"id": 307, "assignee": {"id": 1198}}, "issue": {"id": 370, "owner": {"id": 1281}, "assignee": {"id": 1392}}, "organization": {"id": 136}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "owner": {"id": 647}, "assignee": {"id": 593}, "project": {"id": 359, "owner": {"id": 793}, "assignee": {"id": 831}}, "task": {"id": 319, "owner": {"id": 57}, "assignee": {"id": 1056}}, "job": {"id": 397, "assignee": {"id": 1121}}, "issue": {"id": 374, "owner": {"id": 1270}, "assignee": {"id": 1377}}, "organization": {"id": 1438}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 697}, "assignee": {"id": 570}, "project": {"id": 393, "owner": {"id": 764}, "assignee": {"id": 815}}, "task": {"id": 338, "owner": {"id": 70}, "assignee": {"id": 1097}}, "job": {"id": 313, "assignee": {"id": 1175}}, "issue": {"id": 391, "owner": {"id": 1209}, "assignee": {"id": 1346}}, "organization": {"id": 1483}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "owner": {"id": 673}, "assignee": {"id": 546}, "project": {"id": 386, "owner": {"id": 744}, "assignee": {"id": 867}}, "task": {"id": 339, "owner": {"id": 57}, "assignee": {"id": 1073}}, "job": {"id": 336, "assignee": {"id": 1164}}, "issue": {"id": 341, "owner": {"id": 1236}, "assignee": {"id": 1399}}, "organization": {"id": 150}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 674}, "assignee": {"id": 540}, "project": {"id": 365, "owner": {"id": 779}, "assignee": {"id": 896}}, "task": {"id": 362, "owner": {"id": 41}, "assignee": {"id": 1008}}, "job": {"id": 335, "assignee": {"id": 1112}}, "issue": {"id": 398, "owner": {"id": 1213}, "assignee": {"id": 1327}}, "organization": {"id": 165}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "owner": {"id": 683}, "assignee": {"id": 586}, "project": {"id": 306, "owner": {"id": 794}, "assignee": {"id": 816}}, "task": {"id": 374, "owner": {"id": 51}, "assignee": {"id": 1011}}, "job": {"id": 325, "assignee": {"id": 1113}}, "issue": {"id": 356, "owner": {"id": 1268}, "assignee": {"id": 1301}}, "organization": {"id": 1456}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 663}, "assignee": {"id": 550}, "project": {"id": 303, "owner": {"id": 714}, "assignee": {"id": 835}}, "task": {"id": 312, "owner": {"id": 66}, "assignee": {"id": 1069}}, "job": {"id": 384, "assignee": {"id": 1180}}, "issue": {"id": 329, "owner": {"id": 1212}, "assignee": {"id": 1362}}, "organization": {"id": 1418}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 338, "owner": {"id": 645}, "assignee": {"id": 510}, "project": {"id": 307, "owner": {"id": 788}, "assignee": {"id": 878}}, "task": {"id": 343, "owner": {"id": 36}, "assignee": {"id": 1022}}, "job": {"id": 371, "assignee": {"id": 1150}}, "issue": {"id": 365, "owner": {"id": 1281}, "assignee": {"id": 1333}}, "organization": {"id": 101}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 369, "owner": {"id": 666}, "assignee": {"id": 528}, "project": {"id": 392, "owner": {"id": 713}, "assignee": {"id": 823}}, "task": {"id": 311, "owner": {"id": 65}, "assignee": {"id": 1072}}, "job": {"id": 397, "assignee": {"id": 1165}}, "issue": {"id": 312, "owner": {"id": 1226}, "assignee": {"id": 1330}}, "organization": {"id": 199}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 318, "owner": {"id": 674}, "assignee": {"id": 500}, "project": {"id": 322, "owner": {"id": 786}, "assignee": {"id": 827}}, "task": {"id": 311, "owner": {"id": 55}, "assignee": {"id": 1008}}, "job": {"id": 303, "assignee": {"id": 1129}}, "issue": {"id": 350, "owner": {"id": 1272}, "assignee": {"id": 1352}}, "organization": {"id": 1409}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 693}, "assignee": {"id": 504}, "project": {"id": 388, "owner": {"id": 744}, "assignee": {"id": 844}}, "task": {"id": 388, "owner": {"id": 60}, "assignee": {"id": 1022}}, "job": {"id": 305, "assignee": {"id": 1132}}, "issue": {"id": 316, "owner": {"id": 1285}, "assignee": {"id": 1349}}, "organization": {"id": 1490}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 628}, "assignee": {"id": 520}, "project": {"id": 381, "owner": {"id": 790}, "assignee": {"id": 824}}, "task": {"id": 357, "owner": {"id": 29}, "assignee": {"id": 1041}}, "job": {"id": 316, "assignee": {"id": 1184}}, "issue": {"id": 326, "owner": {"id": 1285}, "assignee": {"id": 1396}}, "organization": {"id": 163}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 312, "owner": {"id": 617}, "assignee": {"id": 541}, "project": {"id": 383, "owner": {"id": 705}, "assignee": {"id": 811}}, "task": {"id": 392, "owner": {"id": 10}, "assignee": {"id": 1097}}, "job": {"id": 371, "assignee": {"id": 1181}}, "issue": {"id": 351, "owner": {"id": 1294}, "assignee": {"id": 1324}}, "organization": {"id": 142}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 346, "owner": {"id": 650}, "assignee": {"id": 558}, "project": {"id": 359, "owner": {"id": 731}, "assignee": {"id": 801}}, "task": {"id": 356, "owner": {"id": 33}, "assignee": {"id": 1074}}, "job": {"id": 387, "assignee": {"id": 1191}}, "issue": {"id": 326, "owner": {"id": 1255}, "assignee": {"id": 1315}}, "organization": {"id": 1479}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 386, "owner": {"id": 641}, "assignee": {"id": 585}, "project": {"id": 386, "owner": {"id": 758}, "assignee": {"id": 817}}, "task": {"id": 341, "owner": {"id": 74}, "assignee": {"id": 1071}}, "job": {"id": 374, "assignee": {"id": 1180}}, "issue": {"id": 388, "owner": {"id": 1265}, "assignee": {"id": 1317}}, "organization": {"id": 1459}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 397, "owner": {"id": 613}, "assignee": {"id": 590}, "project": {"id": 370, "owner": {"id": 772}, "assignee": {"id": 851}}, "task": {"id": 317, "owner": {"id": 18}, "assignee": {"id": 1041}}, "job": {"id": 388, "assignee": {"id": 1148}}, "issue": {"id": 352, "owner": {"id": 1291}, "assignee": {"id": 1322}}, "organization": {"id": 171}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 363, "owner": {"id": 649}, "assignee": {"id": 589}, "project": {"id": 361, "owner": {"id": 721}, "assignee": {"id": 892}}, "task": {"id": 369, "owner": {"id": 15}, "assignee": {"id": 1014}}, "job": {"id": 350, "assignee": {"id": 1176}}, "issue": {"id": 394, "owner": {"id": 1203}, "assignee": {"id": 1325}}, "organization": {"id": 161}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 331, "owner": {"id": 692}, "assignee": {"id": 548}, "project": {"id": 321, "owner": {"id": 708}, "assignee": {"id": 802}}, "task": {"id": 386, "owner": {"id": 59}, "assignee": {"id": 1096}}, "job": {"id": 363, "assignee": {"id": 1194}}, "issue": {"id": 391, "owner": {"id": 1208}, "assignee": {"id": 1353}}, "organization": {"id": 1457}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 351, "owner": {"id": 698}, "assignee": {"id": 507}, "project": {"id": 360, "owner": {"id": 717}, "assignee": {"id": 890}}, "task": {"id": 343, "owner": {"id": 15}, "assignee": {"id": 1085}}, "job": {"id": 394, "assignee": {"id": 1170}}, "issue": {"id": 344, "owner": {"id": 1204}, "assignee": {"id": 1312}}, "organization": {"id": 1403}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "owner": {"id": 624}, "assignee": {"id": 553}, "project": {"id": 393, "owner": {"id": 780}, "assignee": {"id": 852}}, "task": {"id": 356, "owner": {"id": 58}, "assignee": {"id": 1011}}, "job": {"id": 384, "assignee": {"id": 1131}}, "issue": {"id": 319, "owner": {"id": 1201}, "assignee": {"id": 1369}}, "organization": {"id": 130}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 646}, "assignee": {"id": 510}, "project": {"id": 335, "owner": {"id": 789}, "assignee": {"id": 855}}, "task": {"id": 342, "owner": {"id": 12}, "assignee": {"id": 1020}}, "job": {"id": 355, "assignee": {"id": 1153}}, "issue": {"id": 350, "owner": {"id": 1248}, "assignee": {"id": 1354}}, "organization": {"id": 103}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "owner": {"id": 605}, "assignee": {"id": 552}, "project": {"id": 323, "owner": {"id": 771}, "assignee": {"id": 883}}, "task": {"id": 347, "owner": {"id": 1}, "assignee": {"id": 1034}}, "job": {"id": 380, "assignee": {"id": 1129}}, "issue": {"id": 359, "owner": {"id": 1200}, "assignee": {"id": 1336}}, "organization": {"id": 1436}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "owner": {"id": 638}, "assignee": {"id": 545}, "project": {"id": 356, "owner": {"id": 760}, "assignee": {"id": 883}}, "task": {"id": 393, "owner": {"id": 69}, "assignee": {"id": 1056}}, "job": {"id": 349, "assignee": {"id": 1155}}, "issue": {"id": 354, "owner": {"id": 1244}, "assignee": {"id": 1399}}, "organization": {"id": 1414}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 659}, "assignee": {"id": 589}, "project": {"id": 314, "owner": {"id": 758}, "assignee": {"id": 878}}, "task": {"id": 328, "owner": {"id": 29}, "assignee": {"id": 1047}}, "job": {"id": 331, "assignee": {"id": 1177}}, "issue": {"id": 311, "owner": {"id": 1241}, "assignee": {"id": 1369}}, "organization": {"id": 108}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "owner": {"id": 656}, "assignee": {"id": 555}, "project": {"id": 332, "owner": {"id": 744}, "assignee": {"id": 871}}, "task": {"id": 378, "owner": {"id": 46}, "assignee": {"id": 1016}}, "job": {"id": 384, "assignee": {"id": 1111}}, "issue": {"id": 310, "owner": {"id": 1248}, "assignee": {"id": 1306}}, "organization": {"id": 164}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "owner": {"id": 663}, "assignee": {"id": 545}, "project": {"id": 362, "owner": {"id": 786}, "assignee": {"id": 856}}, "task": {"id": 311, "owner": {"id": 39}, "assignee": {"id": 1013}}, "job": {"id": 363, "assignee": {"id": 1155}}, "issue": {"id": 333, "owner": {"id": 1253}, "assignee": {"id": 1372}}, "organization": {"id": 1487}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "owner": {"id": 600}, "assignee": {"id": 576}, "project": {"id": 314, "owner": {"id": 718}, "assignee": {"id": 886}}, "task": {"id": 338, "owner": {"id": 73}, "assignee": {"id": 1067}}, "job": {"id": 374, "assignee": {"id": 1105}}, "issue": {"id": 325, "owner": {"id": 1297}, "assignee": {"id": 1340}}, "organization": {"id": 1419}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 371, "owner": {"id": 638}, "assignee": {"id": 509}, "project": {"id": 348, "owner": {"id": 797}, "assignee": {"id": 893}}, "task": {"id": 395, "owner": {"id": 97}, "assignee": {"id": 1032}}, "job": {"id": 324, "assignee": {"id": 1121}}, "issue": {"id": 307, "owner": {"id": 1228}, "assignee": {"id": 1363}}, "organization": {"id": 162}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 328, "owner": {"id": 663}, "assignee": {"id": 571}, "project": {"id": 336, "owner": {"id": 789}, "assignee": {"id": 873}}, "task": {"id": 348, "owner": {"id": 57}, "assignee": {"id": 1081}}, "job": {"id": 380, "assignee": {"id": 1120}}, "issue": {"id": 337, "owner": {"id": 1210}, "assignee": {"id": 1351}}, "organization": {"id": 137}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 609}, "assignee": {"id": 583}, "project": {"id": 331, "owner": {"id": 758}, "assignee": {"id": 806}}, "task": {"id": 313, "owner": {"id": 53}, "assignee": {"id": 1047}}, "job": {"id": 366, "assignee": {"id": 1115}}, "issue": {"id": 387, "owner": {"id": 1237}, "assignee": {"id": 1318}}, "organization": {"id": 1478}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 662}, "assignee": {"id": 571}, "project": {"id": 344, "owner": {"id": 719}, "assignee": {"id": 804}}, "task": {"id": 384, "owner": {"id": 84}, "assignee": {"id": 1006}}, "job": {"id": 372, "assignee": {"id": 1152}}, "issue": {"id": 320, "owner": {"id": 1235}, "assignee": {"id": 1399}}, "organization": {"id": 1488}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 683}, "assignee": {"id": 563}, "project": {"id": 359, "owner": {"id": 741}, "assignee": {"id": 888}}, "task": {"id": 349, "owner": {"id": 6}, "assignee": {"id": 1045}}, "job": {"id": 373, "assignee": {"id": 1113}}, "issue": {"id": 346, "owner": {"id": 1273}, "assignee": {"id": 1355}}, "organization": {"id": 128}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 340, "owner": {"id": 677}, "assignee": {"id": 583}, "project": {"id": 378, "owner": {"id": 763}, "assignee": {"id": 879}}, "task": {"id": 329, "owner": {"id": 9}, "assignee": {"id": 1049}}, "job": {"id": 303, "assignee": {"id": 1132}}, "issue": {"id": 320, "owner": {"id": 1233}, "assignee": {"id": 1378}}, "organization": {"id": 122}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 338, "owner": {"id": 673}, "assignee": {"id": 587}, "project": {"id": 365, "owner": {"id": 771}, "assignee": {"id": 895}}, "task": {"id": 398, "owner": {"id": 24}, "assignee": {"id": 1090}}, "job": {"id": 384, "assignee": {"id": 1100}}, "issue": {"id": 300, "owner": {"id": 1229}, "assignee": {"id": 1366}}, "organization": {"id": 1438}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 372, "owner": {"id": 653}, "assignee": {"id": 563}, "project": {"id": 325, "owner": {"id": 726}, "assignee": {"id": 832}}, "task": {"id": 315, "owner": {"id": 5}, "assignee": {"id": 1049}}, "job": {"id": 396, "assignee": {"id": 1129}}, "issue": {"id": 356, "owner": {"id": 1273}, "assignee": {"id": 1372}}, "organization": {"id": 1438}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 380, "owner": {"id": 682}, "assignee": {"id": 564}, "project": {"id": 361, "owner": {"id": 776}, "assignee": {"id": 854}}, "task": {"id": 312, "owner": {"id": 913}, "assignee": {"id": 78}}, "job": {"id": 336, "assignee": {"id": 1155}}, "issue": {"id": 385, "owner": {"id": 1246}, "assignee": {"id": 1382}}, "organization": {"id": 199}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 337, "owner": {"id": 662}, "assignee": {"id": 500}, "project": {"id": 388, "owner": {"id": 701}, "assignee": {"id": 884}}, "task": {"id": 308, "owner": {"id": 978}, "assignee": {"id": 77}}, "job": {"id": 371, "assignee": {"id": 1157}}, "issue": {"id": 313, "owner": {"id": 1231}, "assignee": {"id": 1311}}, "organization": {"id": 121}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 617}, "assignee": {"id": 555}, "project": {"id": 390, "owner": {"id": 701}, "assignee": {"id": 811}}, "task": {"id": 342, "owner": {"id": 917}, "assignee": {"id": 40}}, "job": {"id": 314, "assignee": {"id": 1108}}, "issue": {"id": 306, "owner": {"id": 1231}, "assignee": {"id": 1327}}, "organization": {"id": 1427}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 383, "owner": {"id": 658}, "assignee": {"id": 596}, "project": {"id": 360, "owner": {"id": 778}, "assignee": {"id": 865}}, "task": {"id": 367, "owner": {"id": 905}, "assignee": {"id": 22}}, "job": {"id": 312, "assignee": {"id": 1178}}, "issue": {"id": 311, "owner": {"id": 1200}, "assignee": {"id": 1367}}, "organization": {"id": 1492}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "owner": {"id": 699}, "assignee": {"id": 521}, "project": {"id": 362, "owner": {"id": 776}, "assignee": {"id": 889}}, "task": {"id": 322, "owner": {"id": 996}, "assignee": {"id": 39}}, "job": {"id": 352, "assignee": {"id": 1183}}, "issue": {"id": 349, "owner": {"id": 1215}, "assignee": {"id": 1339}}, "organization": {"id": 175}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 644}, "assignee": {"id": 521}, "project": {"id": 308, "owner": {"id": 770}, "assignee": {"id": 883}}, "task": {"id": 329, "owner": {"id": 913}, "assignee": {"id": 64}}, "job": {"id": 309, "assignee": {"id": 1124}}, "issue": {"id": 380, "owner": {"id": 1235}, "assignee": {"id": 1337}}, "organization": {"id": 191}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "owner": {"id": 628}, "assignee": {"id": 524}, "project": {"id": 358, "owner": {"id": 758}, "assignee": {"id": 824}}, "task": {"id": 327, "owner": {"id": 994}, "assignee": {"id": 75}}, "job": {"id": 352, "assignee": {"id": 1175}}, "issue": {"id": 323, "owner": {"id": 1288}, "assignee": {"id": 1301}}, "organization": {"id": 1455}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "owner": {"id": 661}, "assignee": {"id": 520}, "project": {"id": 323, "owner": {"id": 704}, "assignee": {"id": 822}}, "task": {"id": 314, "owner": {"id": 981}, "assignee": {"id": 54}}, "job": {"id": 348, "assignee": {"id": 1125}}, "issue": {"id": 390, "owner": {"id": 1252}, "assignee": {"id": 1351}}, "organization": {"id": 1469}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 390, "owner": {"id": 617}, "assignee": {"id": 562}, "project": {"id": 360, "owner": {"id": 773}, "assignee": {"id": 886}}, "task": {"id": 329, "owner": {"id": 985}, "assignee": {"id": 59}}, "job": {"id": 335, "assignee": {"id": 1119}}, "issue": {"id": 383, "owner": {"id": 1276}, "assignee": {"id": 1306}}, "organization": {"id": 145}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "owner": {"id": 627}, "assignee": {"id": 580}, "project": {"id": 333, "owner": {"id": 710}, "assignee": {"id": 852}}, "task": {"id": 345, "owner": {"id": 957}, "assignee": {"id": 24}}, "job": {"id": 310, "assignee": {"id": 1198}}, "issue": {"id": 338, "owner": {"id": 1263}, "assignee": {"id": 1352}}, "organization": {"id": 129}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "owner": {"id": 689}, "assignee": {"id": 586}, "project": {"id": 321, "owner": {"id": 735}, "assignee": {"id": 807}}, "task": {"id": 306, "owner": {"id": 984}, "assignee": {"id": 34}}, "job": {"id": 351, "assignee": {"id": 1153}}, "issue": {"id": 341, "owner": {"id": 1290}, "assignee": {"id": 1309}}, "organization": {"id": 1475}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 690}, "assignee": {"id": 524}, "project": {"id": 328, "owner": {"id": 780}, "assignee": {"id": 873}}, "task": {"id": 392, "owner": {"id": 905}, "assignee": {"id": 63}}, "job": {"id": 385, "assignee": {"id": 1152}}, "issue": {"id": 340, "owner": {"id": 1285}, "assignee": {"id": 1365}}, "organization": {"id": 1435}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 340, "owner": {"id": 612}, "assignee": {"id": 551}, "project": {"id": 389, "owner": {"id": 728}, "assignee": {"id": 863}}, "task": {"id": 384, "owner": {"id": 941}, "assignee": {"id": 34}}, "job": {"id": 302, "assignee": {"id": 1185}}, "issue": {"id": 308, "owner": {"id": 1212}, "assignee": {"id": 1333}}, "organization": {"id": 175}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 693}, "assignee": {"id": 524}, "project": {"id": 324, "owner": {"id": 734}, "assignee": {"id": 819}}, "task": {"id": 361, "owner": {"id": 933}, "assignee": {"id": 97}}, "job": {"id": 317, "assignee": {"id": 1161}}, "issue": {"id": 312, "owner": {"id": 1226}, "assignee": {"id": 1334}}, "organization": {"id": 110}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 365, "owner": {"id": 624}, "assignee": {"id": 596}, "project": {"id": 367, "owner": {"id": 769}, "assignee": {"id": 872}}, "task": {"id": 389, "owner": {"id": 910}, "assignee": {"id": 18}}, "job": {"id": 316, "assignee": {"id": 1123}}, "issue": {"id": 356, "owner": {"id": 1249}, "assignee": {"id": 1345}}, "organization": {"id": 1438}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 323, "owner": {"id": 622}, "assignee": {"id": 504}, "project": {"id": 346, "owner": {"id": 787}, "assignee": {"id": 809}}, "task": {"id": 308, "owner": {"id": 911}, "assignee": {"id": 41}}, "job": {"id": 341, "assignee": {"id": 1158}}, "issue": {"id": 339, "owner": {"id": 1238}, "assignee": {"id": 1396}}, "organization": {"id": 1431}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 365, "owner": {"id": 683}, "assignee": {"id": 562}, "project": {"id": 383, "owner": {"id": 766}, "assignee": {"id": 867}}, "task": {"id": 390, "owner": {"id": 968}, "assignee": {"id": 69}}, "job": {"id": 310, "assignee": {"id": 1122}}, "issue": {"id": 369, "owner": {"id": 1278}, "assignee": {"id": 1364}}, "organization": {"id": 195}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 391, "owner": {"id": 649}, "assignee": {"id": 536}, "project": {"id": 369, "owner": {"id": 711}, "assignee": {"id": 819}}, "task": {"id": 301, "owner": {"id": 964}, "assignee": {"id": 80}}, "job": {"id": 374, "assignee": {"id": 1136}}, "issue": {"id": 369, "owner": {"id": 1266}, "assignee": {"id": 1322}}, "organization": {"id": 156}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 387, "owner": {"id": 634}, "assignee": {"id": 590}, "project": {"id": 339, "owner": {"id": 723}, "assignee": {"id": 800}}, "task": {"id": 347, "owner": {"id": 969}, "assignee": {"id": 32}}, "job": {"id": 376, "assignee": {"id": 1126}}, "issue": {"id": 321, "owner": {"id": 1219}, "assignee": {"id": 1366}}, "organization": {"id": 1473}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 337, "owner": {"id": 674}, "assignee": {"id": 503}, "project": {"id": 349, "owner": {"id": 712}, "assignee": {"id": 845}}, "task": {"id": 348, "owner": {"id": 927}, "assignee": {"id": 15}}, "job": {"id": 349, "assignee": {"id": 1103}}, "issue": {"id": 358, "owner": {"id": 1211}, "assignee": {"id": 1399}}, "organization": {"id": 1469}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 387, "owner": {"id": 678}, "assignee": {"id": 562}, "project": {"id": 395, "owner": {"id": 714}, "assignee": {"id": 878}}, "task": {"id": 364, "owner": {"id": 960}, "assignee": {"id": 78}}, "job": {"id": 337, "assignee": {"id": 1151}}, "issue": {"id": 335, "owner": {"id": 1217}, "assignee": {"id": 1341}}, "organization": {"id": 161}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 336, "owner": {"id": 635}, "assignee": {"id": 575}, "project": {"id": 325, "owner": {"id": 738}, "assignee": {"id": 821}}, "task": {"id": 320, "owner": {"id": 957}, "assignee": {"id": 71}}, "job": {"id": 370, "assignee": {"id": 1119}}, "issue": {"id": 323, "owner": {"id": 1228}, "assignee": {"id": 1351}}, "organization": {"id": 112}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 677}, "assignee": {"id": 506}, "project": {"id": 394, "owner": {"id": 700}, "assignee": {"id": 856}}, "task": {"id": 309, "owner": {"id": 901}, "assignee": {"id": 89}}, "job": {"id": 353, "assignee": {"id": 1160}}, "issue": {"id": 312, "owner": {"id": 1250}, "assignee": {"id": 1366}}, "organization": {"id": 1411}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 395, "owner": {"id": 650}, "assignee": {"id": 583}, "project": {"id": 397, "owner": {"id": 799}, "assignee": {"id": 852}}, "task": {"id": 367, "owner": {"id": 917}, "assignee": {"id": 4}}, "job": {"id": 398, "assignee": {"id": 1182}}, "issue": {"id": 366, "owner": {"id": 1241}, "assignee": {"id": 1384}}, "organization": {"id": 1475}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "owner": {"id": 663}, "assignee": {"id": 523}, "project": {"id": 350, "owner": {"id": 784}, "assignee": {"id": 812}}, "task": {"id": 316, "owner": {"id": 921}, "assignee": {"id": 48}}, "job": {"id": 372, "assignee": {"id": 1195}}, "issue": {"id": 300, "owner": {"id": 1208}, "assignee": {"id": 1308}}, "organization": {"id": 164}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 643}, "assignee": {"id": 556}, "project": {"id": 365, "owner": {"id": 715}, "assignee": {"id": 803}}, "task": {"id": 326, "owner": {"id": 992}, "assignee": {"id": 38}}, "job": {"id": 325, "assignee": {"id": 1138}}, "issue": {"id": 317, "owner": {"id": 1240}, "assignee": {"id": 1385}}, "organization": {"id": 154}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 637}, "assignee": {"id": 502}, "project": {"id": 302, "owner": {"id": 734}, "assignee": {"id": 876}}, "task": {"id": 378, "owner": {"id": 951}, "assignee": {"id": 76}}, "job": {"id": 329, "assignee": {"id": 1138}}, "issue": {"id": 307, "owner": {"id": 1219}, "assignee": {"id": 1392}}, "organization": {"id": 1410}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 600}, "assignee": {"id": 576}, "project": {"id": 334, "owner": {"id": 758}, "assignee": {"id": 819}}, "task": {"id": 312, "owner": {"id": 997}, "assignee": {"id": 46}}, "job": {"id": 301, "assignee": {"id": 1197}}, "issue": {"id": 303, "owner": {"id": 1235}, "assignee": {"id": 1370}}, "organization": {"id": 1485}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "owner": {"id": 687}, "assignee": {"id": 509}, "project": {"id": 379, "owner": {"id": 790}, "assignee": {"id": 808}}, "task": {"id": 369, "owner": {"id": 949}, "assignee": {"id": 90}}, "job": {"id": 389, "assignee": {"id": 1130}}, "issue": {"id": 316, "owner": {"id": 1213}, "assignee": {"id": 1358}}, "organization": {"id": 193}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 621}, "assignee": {"id": 585}, "project": {"id": 343, "owner": {"id": 758}, "assignee": {"id": 863}}, "task": {"id": 321, "owner": {"id": 944}, "assignee": {"id": 98}}, "job": {"id": 329, "assignee": {"id": 1131}}, "issue": {"id": 332, "owner": {"id": 1210}, "assignee": {"id": 1382}}, "organization": {"id": 118}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "owner": {"id": 637}, "assignee": {"id": 543}, "project": {"id": 380, "owner": {"id": 769}, "assignee": {"id": 825}}, "task": {"id": 397, "owner": {"id": 952}, "assignee": {"id": 41}}, "job": {"id": 327, "assignee": {"id": 1164}}, "issue": {"id": 327, "owner": {"id": 1286}, "assignee": {"id": 1323}}, "organization": {"id": 1488}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "owner": {"id": 649}, "assignee": {"id": 595}, "project": {"id": 375, "owner": {"id": 729}, "assignee": {"id": 846}}, "task": {"id": 337, "owner": {"id": 910}, "assignee": {"id": 79}}, "job": {"id": 306, "assignee": {"id": 1172}}, "issue": {"id": 362, "owner": {"id": 1215}, "assignee": {"id": 1363}}, "organization": {"id": 1489}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 320, "owner": {"id": 647}, "assignee": {"id": 522}, "project": {"id": 368, "owner": {"id": 729}, "assignee": {"id": 807}}, "task": {"id": 381, "owner": {"id": 990}, "assignee": {"id": 55}}, "job": {"id": 325, "assignee": {"id": 1167}}, "issue": {"id": 347, "owner": {"id": 1254}, "assignee": {"id": 1381}}, "organization": {"id": 119}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 371, "owner": {"id": 678}, "assignee": {"id": 576}, "project": {"id": 310, "owner": {"id": 756}, "assignee": {"id": 866}}, "task": {"id": 329, "owner": {"id": 918}, "assignee": {"id": 6}}, "job": {"id": 392, "assignee": {"id": 1196}}, "issue": {"id": 371, "owner": {"id": 1289}, "assignee": {"id": 1307}}, "organization": {"id": 167}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 685}, "assignee": {"id": 592}, "project": {"id": 304, "owner": {"id": 762}, "assignee": {"id": 810}}, "task": {"id": 319, "owner": {"id": 938}, "assignee": {"id": 55}}, "job": {"id": 322, "assignee": {"id": 1154}}, "issue": {"id": 323, "owner": {"id": 1257}, "assignee": {"id": 1333}}, "organization": {"id": 1489}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 302, "owner": {"id": 640}, "assignee": {"id": 513}, "project": {"id": 381, "owner": {"id": 795}, "assignee": {"id": 854}}, "task": {"id": 355, "owner": {"id": 919}, "assignee": {"id": 97}}, "job": {"id": 346, "assignee": {"id": 1176}}, "issue": {"id": 342, "owner": {"id": 1237}, "assignee": {"id": 1324}}, "organization": {"id": 1471}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 693}, "assignee": {"id": 504}, "project": {"id": 375, "owner": {"id": 766}, "assignee": {"id": 833}}, "task": {"id": 384, "owner": {"id": 976}, "assignee": {"id": 33}}, "job": {"id": 354, "assignee": {"id": 1144}}, "issue": {"id": 334, "owner": {"id": 1240}, "assignee": {"id": 1379}}, "organization": {"id": 173}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 683}, "assignee": {"id": 528}, "project": {"id": 329, "owner": {"id": 734}, "assignee": {"id": 848}}, "task": {"id": 357, "owner": {"id": 985}, "assignee": {"id": 26}}, "job": {"id": 335, "assignee": {"id": 1164}}, "issue": {"id": 307, "owner": {"id": 1274}, "assignee": {"id": 1350}}, "organization": {"id": 110}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 397, "owner": {"id": 690}, "assignee": {"id": 587}, "project": {"id": 366, "owner": {"id": 764}, "assignee": {"id": 812}}, "task": {"id": 393, "owner": {"id": 992}, "assignee": {"id": 44}}, "job": {"id": 300, "assignee": {"id": 1177}}, "issue": {"id": 379, "owner": {"id": 1231}, "assignee": {"id": 1355}}, "organization": {"id": 1430}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 376, "owner": {"id": 667}, "assignee": {"id": 500}, "project": {"id": 322, "owner": {"id": 783}, "assignee": {"id": 841}}, "task": {"id": 391, "owner": {"id": 955}, "assignee": {"id": 14}}, "job": {"id": 303, "assignee": {"id": 1107}}, "issue": {"id": 378, "owner": {"id": 1281}, "assignee": {"id": 1344}}, "organization": {"id": 1419}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 629}, "assignee": {"id": 539}, "project": {"id": 306, "owner": {"id": 788}, "assignee": {"id": 888}}, "task": {"id": 386, "owner": {"id": 979}, "assignee": {"id": 77}}, "job": {"id": 371, "assignee": {"id": 1171}}, "issue": {"id": 337, "owner": {"id": 1241}, "assignee": {"id": 1369}}, "organization": {"id": 102}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 326, "owner": {"id": 639}, "assignee": {"id": 560}, "project": {"id": 312, "owner": {"id": 750}, "assignee": {"id": 873}}, "task": {"id": 319, "owner": {"id": 979}, "assignee": {"id": 67}}, "job": {"id": 338, "assignee": {"id": 1171}}, "issue": {"id": 382, "owner": {"id": 1206}, "assignee": {"id": 1381}}, "organization": {"id": 180}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 359, "owner": {"id": 645}, "assignee": {"id": 516}, "project": {"id": 334, "owner": {"id": 708}, "assignee": {"id": 874}}, "task": {"id": 352, "owner": {"id": 941}, "assignee": {"id": 57}}, "job": {"id": 307, "assignee": {"id": 1171}}, "issue": {"id": 356, "owner": {"id": 1238}, "assignee": {"id": 1325}}, "organization": {"id": 1410}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 336, "owner": {"id": 666}, "assignee": {"id": 565}, "project": {"id": 394, "owner": {"id": 763}, "assignee": {"id": 891}}, "task": {"id": 374, "owner": {"id": 916}, "assignee": {"id": 92}}, "job": {"id": 356, "assignee": {"id": 1153}}, "issue": {"id": 355, "owner": {"id": 1242}, "assignee": {"id": 1353}}, "organization": {"id": 1499}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 71, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "owner": {"id": 615}, "assignee": {"id": 587}, "project": {"id": 338, "owner": {"id": 792}, "assignee": {"id": 848}}, "task": {"id": 341, "owner": {"id": 948}, "assignee": {"id": 71}}, "job": {"id": 381, "assignee": {"id": 1168}}, "issue": {"id": 351, "owner": {"id": 1268}, "assignee": {"id": 1391}}, "organization": {"id": 101}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "owner": {"id": 667}, "assignee": {"id": 526}, "project": {"id": 386, "owner": {"id": 776}, "assignee": {"id": 867}}, "task": {"id": 390, "owner": {"id": 965}, "assignee": {"id": 98}}, "job": {"id": 362, "assignee": {"id": 1182}}, "issue": {"id": 345, "owner": {"id": 1287}, "assignee": {"id": 1361}}, "organization": {"id": 103}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "owner": {"id": 649}, "assignee": {"id": 566}, "project": {"id": 361, "owner": {"id": 793}, "assignee": {"id": 877}}, "task": {"id": 372, "owner": {"id": 926}, "assignee": {"id": 90}}, "job": {"id": 390, "assignee": {"id": 1136}}, "issue": {"id": 394, "owner": {"id": 1210}, "assignee": {"id": 1396}}, "organization": {"id": 1434}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "owner": {"id": 689}, "assignee": {"id": 518}, "project": {"id": 363, "owner": {"id": 753}, "assignee": {"id": 801}}, "task": {"id": 393, "owner": {"id": 907}, "assignee": {"id": 48}}, "job": {"id": 386, "assignee": {"id": 1167}}, "issue": {"id": 345, "owner": {"id": 1216}, "assignee": {"id": 1306}}, "organization": {"id": 1462}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "owner": {"id": 675}, "assignee": {"id": 551}, "project": {"id": 367, "owner": {"id": 792}, "assignee": {"id": 871}}, "task": {"id": 327, "owner": {"id": 958}, "assignee": {"id": 27}}, "job": {"id": 330, "assignee": {"id": 1122}}, "issue": {"id": 308, "owner": {"id": 1226}, "assignee": {"id": 1300}}, "organization": {"id": 118}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 620}, "assignee": {"id": 561}, "project": {"id": 358, "owner": {"id": 731}, "assignee": {"id": 854}}, "task": {"id": 304, "owner": {"id": 961}, "assignee": {"id": 60}}, "job": {"id": 311, "assignee": {"id": 1102}}, "issue": {"id": 300, "owner": {"id": 1225}, "assignee": {"id": 1355}}, "organization": {"id": 116}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "owner": {"id": 654}, "assignee": {"id": 552}, "project": {"id": 347, "owner": {"id": 732}, "assignee": {"id": 875}}, "task": {"id": 376, "owner": {"id": 945}, "assignee": {"id": 32}}, "job": {"id": 361, "assignee": {"id": 1147}}, "issue": {"id": 399, "owner": {"id": 1227}, "assignee": {"id": 1362}}, "organization": {"id": 1428}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "owner": {"id": 699}, "assignee": {"id": 520}, "project": {"id": 337, "owner": {"id": 745}, "assignee": {"id": 847}}, "task": {"id": 338, "owner": {"id": 979}, "assignee": {"id": 70}}, "job": {"id": 366, "assignee": {"id": 1177}}, "issue": {"id": 362, "owner": {"id": 1212}, "assignee": {"id": 1331}}, "organization": {"id": 1468}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 322, "owner": {"id": 697}, "assignee": {"id": 523}, "project": {"id": 340, "owner": {"id": 773}, "assignee": {"id": 821}}, "task": {"id": 350, "owner": {"id": 971}, "assignee": {"id": 30}}, "job": {"id": 337, "assignee": {"id": 1164}}, "issue": {"id": 374, "owner": {"id": 1267}, "assignee": {"id": 1388}}, "organization": {"id": 174}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 377, "owner": {"id": 651}, "assignee": {"id": 553}, "project": {"id": 374, "owner": {"id": 787}, "assignee": {"id": 861}}, "task": {"id": 363, "owner": {"id": 910}, "assignee": {"id": 87}}, "job": {"id": 383, "assignee": {"id": 1132}}, "issue": {"id": 315, "owner": {"id": 1205}, "assignee": {"id": 1355}}, "organization": {"id": 106}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 318, "owner": {"id": 616}, "assignee": {"id": 531}, "project": {"id": 337, "owner": {"id": 784}, "assignee": {"id": 822}}, "task": {"id": 366, "owner": {"id": 927}, "assignee": {"id": 68}}, "job": {"id": 384, "assignee": {"id": 1140}}, "issue": {"id": 304, "owner": {"id": 1232}, "assignee": {"id": 1359}}, "organization": {"id": 1477}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 391, "owner": {"id": 633}, "assignee": {"id": 523}, "project": {"id": 397, "owner": {"id": 717}, "assignee": {"id": 845}}, "task": {"id": 355, "owner": {"id": 939}, "assignee": {"id": 5}}, "job": {"id": 323, "assignee": {"id": 1119}}, "issue": {"id": 375, "owner": {"id": 1274}, "assignee": {"id": 1393}}, "organization": {"id": 1414}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 363, "owner": {"id": 628}, "assignee": {"id": 537}, "project": {"id": 376, "owner": {"id": 762}, "assignee": {"id": 886}}, "task": {"id": 301, "owner": {"id": 912}, "assignee": {"id": 11}}, "job": {"id": 308, "assignee": {"id": 1174}}, "issue": {"id": 344, "owner": {"id": 1288}, "assignee": {"id": 1379}}, "organization": {"id": 167}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 327, "owner": {"id": 663}, "assignee": {"id": 528}, "project": {"id": 393, "owner": {"id": 739}, "assignee": {"id": 891}}, "task": {"id": 396, "owner": {"id": 975}, "assignee": {"id": 3}}, "job": {"id": 346, "assignee": {"id": 1122}}, "issue": {"id": 389, "owner": {"id": 1218}, "assignee": {"id": 1378}}, "organization": {"id": 180}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 675}, "assignee": {"id": 597}, "project": {"id": 342, "owner": {"id": 736}, "assignee": {"id": 823}}, "task": {"id": 398, "owner": {"id": 919}, "assignee": {"id": 76}}, "job": {"id": 363, "assignee": {"id": 1193}}, "issue": {"id": 347, "owner": {"id": 1296}, "assignee": {"id": 1371}}, "organization": {"id": 1489}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 354, "owner": {"id": 686}, "assignee": {"id": 525}, "project": {"id": 396, "owner": {"id": 777}, "assignee": {"id": 845}}, "task": {"id": 370, "owner": {"id": 941}, "assignee": {"id": 7}}, "job": {"id": 355, "assignee": {"id": 1124}}, "issue": {"id": 315, "owner": {"id": 1208}, "assignee": {"id": 1338}}, "organization": {"id": 1457}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 399, "owner": {"id": 663}, "assignee": {"id": 530}, "project": {"id": 392, "owner": {"id": 702}, "assignee": {"id": 889}}, "task": {"id": 373, "owner": {"id": 960}, "assignee": {"id": 34}}, "job": {"id": 324, "assignee": {"id": 1119}}, "issue": {"id": 355, "owner": {"id": 1291}, "assignee": {"id": 1327}}, "organization": {"id": 164}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 397, "owner": {"id": 645}, "assignee": {"id": 508}, "project": {"id": 389, "owner": {"id": 751}, "assignee": {"id": 825}}, "task": {"id": 306, "owner": {"id": 945}, "assignee": {"id": 44}}, "job": {"id": 371, "assignee": {"id": 1185}}, "issue": {"id": 388, "owner": {"id": 1286}, "assignee": {"id": 1324}}, "organization": {"id": 182}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 306, "owner": {"id": 682}, "assignee": {"id": 541}, "project": {"id": 360, "owner": {"id": 796}, "assignee": {"id": 899}}, "task": {"id": 389, "owner": {"id": 991}, "assignee": {"id": 79}}, "job": {"id": 328, "assignee": {"id": 1100}}, "issue": {"id": 365, "owner": {"id": 1255}, "assignee": {"id": 1356}}, "organization": {"id": 1465}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 326, "owner": {"id": 600}, "assignee": {"id": 556}, "project": {"id": 310, "owner": {"id": 766}, "assignee": {"id": 818}}, "task": {"id": 320, "owner": {"id": 990}, "assignee": {"id": 51}}, "job": {"id": 313, "assignee": {"id": 1197}}, "issue": {"id": 326, "owner": {"id": 1255}, "assignee": {"id": 1386}}, "organization": {"id": 1477}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 653}, "assignee": {"id": 551}, "project": {"id": 375, "owner": {"id": 741}, "assignee": {"id": 825}}, "task": {"id": 341, "owner": {"id": 939}, "assignee": {"id": 3}}, "job": {"id": 374, "assignee": {"id": 1176}}, "issue": {"id": 303, "owner": {"id": 1224}, "assignee": {"id": 1373}}, "organization": {"id": 113}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "owner": {"id": 616}, "assignee": {"id": 538}, "project": {"id": 372, "owner": {"id": 774}, "assignee": {"id": 895}}, "task": {"id": 305, "owner": {"id": 927}, "assignee": {"id": 28}}, "job": {"id": 301, "assignee": {"id": 1175}}, "issue": {"id": 369, "owner": {"id": 1238}, "assignee": {"id": 1348}}, "organization": {"id": 179}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 389, "owner": {"id": 649}, "assignee": {"id": 571}, "project": {"id": 344, "owner": {"id": 747}, "assignee": {"id": 883}}, "task": {"id": 322, "owner": {"id": 940}, "assignee": {"id": 85}}, "job": {"id": 390, "assignee": {"id": 1135}}, "issue": {"id": 388, "owner": {"id": 1277}, "assignee": {"id": 1346}}, "organization": {"id": 1475}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "owner": {"id": 614}, "assignee": {"id": 523}, "project": {"id": 373, "owner": {"id": 763}, "assignee": {"id": 839}}, "task": {"id": 354, "owner": {"id": 954}, "assignee": {"id": 51}}, "job": {"id": 369, "assignee": {"id": 1178}}, "issue": {"id": 387, "owner": {"id": 1245}, "assignee": {"id": 1360}}, "organization": {"id": 1438}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 610}, "assignee": {"id": 550}, "project": {"id": 305, "owner": {"id": 700}, "assignee": {"id": 820}}, "task": {"id": 393, "owner": {"id": 907}, "assignee": {"id": 12}}, "job": {"id": 355, "assignee": {"id": 1136}}, "issue": {"id": 335, "owner": {"id": 1201}, "assignee": {"id": 1303}}, "organization": {"id": 176}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 642}, "assignee": {"id": 506}, "project": {"id": 326, "owner": {"id": 722}, "assignee": {"id": 822}}, "task": {"id": 315, "owner": {"id": 994}, "assignee": {"id": 81}}, "job": {"id": 332, "assignee": {"id": 1173}}, "issue": {"id": 349, "owner": {"id": 1206}, "assignee": {"id": 1389}}, "organization": {"id": 156}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "owner": {"id": 607}, "assignee": {"id": 598}, "project": {"id": 326, "owner": {"id": 783}, "assignee": {"id": 877}}, "task": {"id": 368, "owner": {"id": 923}, "assignee": {"id": 60}}, "job": {"id": 300, "assignee": {"id": 1173}}, "issue": {"id": 394, "owner": {"id": 1241}, "assignee": {"id": 1361}}, "organization": {"id": 1443}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "owner": {"id": 688}, "assignee": {"id": 519}, "project": {"id": 305, "owner": {"id": 730}, "assignee": {"id": 839}}, "task": {"id": 349, "owner": {"id": 966}, "assignee": {"id": 3}}, "job": {"id": 358, "assignee": {"id": 1184}}, "issue": {"id": 361, "owner": {"id": 1200}, "assignee": {"id": 1372}}, "organization": {"id": 1426}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 380, "owner": {"id": 613}, "assignee": {"id": 553}, "project": {"id": 363, "owner": {"id": 714}, "assignee": {"id": 890}}, "task": {"id": 337, "owner": {"id": 915}, "assignee": {"id": 0}}, "job": {"id": 331, "assignee": {"id": 1152}}, "issue": {"id": 326, "owner": {"id": 1243}, "assignee": {"id": 1378}}, "organization": {"id": 149}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 366, "owner": {"id": 654}, "assignee": {"id": 536}, "project": {"id": 395, "owner": {"id": 757}, "assignee": {"id": 852}}, "task": {"id": 394, "owner": {"id": 969}, "assignee": {"id": 43}}, "job": {"id": 376, "assignee": {"id": 1161}}, "issue": {"id": 312, "owner": {"id": 1264}, "assignee": {"id": 1304}}, "organization": {"id": 181}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 300, "owner": {"id": 688}, "assignee": {"id": 554}, "project": {"id": 388, "owner": {"id": 783}, "assignee": {"id": 863}}, "task": {"id": 315, "owner": {"id": 996}, "assignee": {"id": 26}}, "job": {"id": 382, "assignee": {"id": 1153}}, "issue": {"id": 316, "owner": {"id": 1266}, "assignee": {"id": 1339}}, "organization": {"id": 1419}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 368, "owner": {"id": 691}, "assignee": {"id": 513}, "project": {"id": 316, "owner": {"id": 716}, "assignee": {"id": 890}}, "task": {"id": 375, "owner": {"id": 991}, "assignee": {"id": 99}}, "job": {"id": 352, "assignee": {"id": 1155}}, "issue": {"id": 369, "owner": {"id": 1260}, "assignee": {"id": 1339}}, "organization": {"id": 1492}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 303, "owner": {"id": 677}, "assignee": {"id": 571}, "project": {"id": 384, "owner": {"id": 714}, "assignee": {"id": 824}}, "task": {"id": 300, "owner": {"id": 970}, "assignee": {"id": 57}}, "job": {"id": 385, "assignee": {"id": 1140}}, "issue": {"id": 374, "owner": {"id": 1262}, "assignee": {"id": 1317}}, "organization": {"id": 138}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 369, "owner": {"id": 606}, "assignee": {"id": 522}, "project": {"id": 365, "owner": {"id": 733}, "assignee": {"id": 836}}, "task": {"id": 322, "owner": {"id": 920}, "assignee": {"id": 61}}, "job": {"id": 394, "assignee": {"id": 1112}}, "issue": {"id": 323, "owner": {"id": 1239}, "assignee": {"id": 1322}}, "organization": {"id": 195}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 649}, "assignee": {"id": 577}, "project": {"id": 348, "owner": {"id": 796}, "assignee": {"id": 883}}, "task": {"id": 309, "owner": {"id": 902}, "assignee": {"id": 3}}, "job": {"id": 374, "assignee": {"id": 1197}}, "issue": {"id": 305, "owner": {"id": 1228}, "assignee": {"id": 1305}}, "organization": {"id": 1462}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 338, "owner": {"id": 694}, "assignee": {"id": 579}, "project": {"id": 387, "owner": {"id": 789}, "assignee": {"id": 817}}, "task": {"id": 350, "owner": {"id": 937}, "assignee": {"id": 47}}, "job": {"id": 303, "assignee": {"id": 1150}}, "issue": {"id": 331, "owner": {"id": 1275}, "assignee": {"id": 1310}}, "organization": {"id": 1429}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 325, "owner": {"id": 661}, "assignee": {"id": 558}, "project": {"id": 378, "owner": {"id": 750}, "assignee": {"id": 825}}, "task": {"id": 354, "owner": {"id": 922}, "assignee": {"id": 48}}, "job": {"id": 365, "assignee": {"id": 1149}}, "issue": {"id": 335, "owner": {"id": 1239}, "assignee": {"id": 1324}}, "organization": {"id": 132}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 337, "owner": {"id": 653}, "assignee": {"id": 511}, "project": {"id": 386, "owner": {"id": 758}, "assignee": {"id": 820}}, "task": {"id": 302, "owner": {"id": 971}, "assignee": {"id": 4}}, "job": {"id": 372, "assignee": {"id": 1143}}, "issue": {"id": 347, "owner": {"id": 1241}, "assignee": {"id": 1335}}, "organization": {"id": 105}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 384, "owner": {"id": 665}, "assignee": {"id": 591}, "project": {"id": 347, "owner": {"id": 766}, "assignee": {"id": 879}}, "task": {"id": 363, "owner": {"id": 983}, "assignee": {"id": 23}}, "job": {"id": 348, "assignee": {"id": 1111}}, "issue": {"id": 326, "owner": {"id": 1232}, "assignee": {"id": 1380}}, "organization": {"id": 1430}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 607}, "assignee": {"id": 590}, "project": {"id": 354, "owner": {"id": 744}, "assignee": {"id": 854}}, "task": {"id": 380, "owner": {"id": 903}, "assignee": {"id": 77}}, "job": {"id": 380, "assignee": {"id": 1135}}, "issue": {"id": 384, "owner": {"id": 1230}, "assignee": {"id": 1356}}, "organization": {"id": 1430}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "owner": {"id": 691}, "assignee": {"id": 503}, "project": {"id": 339, "owner": {"id": 700}, "assignee": {"id": 871}}, "task": {"id": 340, "owner": {"id": 934}, "assignee": {"id": 42}}, "job": {"id": 375, "assignee": {"id": 1120}}, "issue": {"id": 325, "owner": {"id": 1238}, "assignee": {"id": 1306}}, "organization": {"id": 143}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "owner": {"id": 642}, "assignee": {"id": 587}, "project": {"id": 310, "owner": {"id": 794}, "assignee": {"id": 809}}, "task": {"id": 317, "owner": {"id": 959}, "assignee": {"id": 48}}, "job": {"id": 396, "assignee": {"id": 1118}}, "issue": {"id": 346, "owner": {"id": 1274}, "assignee": {"id": 1386}}, "organization": {"id": 161}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 330, "owner": {"id": 678}, "assignee": {"id": 598}, "project": {"id": 344, "owner": {"id": 747}, "assignee": {"id": 871}}, "task": {"id": 316, "owner": {"id": 953}, "assignee": {"id": 67}}, "job": {"id": 378, "assignee": {"id": 1129}}, "issue": {"id": 341, "owner": {"id": 1242}, "assignee": {"id": 1300}}, "organization": {"id": 1437}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "owner": {"id": 610}, "assignee": {"id": 572}, "project": {"id": 389, "owner": {"id": 708}, "assignee": {"id": 855}}, "task": {"id": 381, "owner": {"id": 970}, "assignee": {"id": 56}}, "job": {"id": 355, "assignee": {"id": 1108}}, "issue": {"id": 336, "owner": {"id": 1252}, "assignee": {"id": 1304}}, "organization": {"id": 1458}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "owner": {"id": 603}, "assignee": {"id": 575}, "project": {"id": 317, "owner": {"id": 762}, "assignee": {"id": 887}}, "task": {"id": 328, "owner": {"id": 969}, "assignee": {"id": 3}}, "job": {"id": 360, "assignee": {"id": 1123}}, "issue": {"id": 305, "owner": {"id": 1237}, "assignee": {"id": 1394}}, "organization": {"id": 166}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "owner": {"id": 692}, "assignee": {"id": 591}, "project": {"id": 340, "owner": {"id": 761}, "assignee": {"id": 849}}, "task": {"id": 371, "owner": {"id": 968}, "assignee": {"id": 37}}, "job": {"id": 340, "assignee": {"id": 1125}}, "issue": {"id": 330, "owner": {"id": 1266}, "assignee": {"id": 1377}}, "organization": {"id": 114}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "owner": {"id": 649}, "assignee": {"id": 586}, "project": {"id": 376, "owner": {"id": 798}, "assignee": {"id": 829}}, "task": {"id": 339, "owner": {"id": 990}, "assignee": {"id": 24}}, "job": {"id": 316, "assignee": {"id": 1162}}, "issue": {"id": 315, "owner": {"id": 1233}, "assignee": {"id": 1300}}, "organization": {"id": 1466}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "owner": {"id": 693}, "assignee": {"id": 597}, "project": {"id": 301, "owner": {"id": 766}, "assignee": {"id": 881}}, "task": {"id": 321, "owner": {"id": 956}, "assignee": {"id": 48}}, "job": {"id": 365, "assignee": {"id": 1174}}, "issue": {"id": 399, "owner": {"id": 1241}, "assignee": {"id": 1313}}, "organization": {"id": 1456}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 363, "owner": {"id": 698}, "assignee": {"id": 573}, "project": {"id": 366, "owner": {"id": 734}, "assignee": {"id": 817}}, "task": {"id": 359, "owner": {"id": 993}, "assignee": {"id": 28}}, "job": {"id": 337, "assignee": {"id": 1121}}, "issue": {"id": 342, "owner": {"id": 1223}, "assignee": {"id": 1336}}, "organization": {"id": 116}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 379, "owner": {"id": 696}, "assignee": {"id": 566}, "project": {"id": 338, "owner": {"id": 709}, "assignee": {"id": 853}}, "task": {"id": 391, "owner": {"id": 989}, "assignee": {"id": 12}}, "job": {"id": 331, "assignee": {"id": 1161}}, "issue": {"id": 380, "owner": {"id": 1222}, "assignee": {"id": 1357}}, "organization": {"id": 103}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 653}, "assignee": {"id": 502}, "project": {"id": 311, "owner": {"id": 757}, "assignee": {"id": 830}}, "task": {"id": 370, "owner": {"id": 910}, "assignee": {"id": 58}}, "job": {"id": 307, "assignee": {"id": 1138}}, "issue": {"id": 301, "owner": {"id": 1258}, "assignee": {"id": 1386}}, "organization": {"id": 1425}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 346, "owner": {"id": 630}, "assignee": {"id": 531}, "project": {"id": 320, "owner": {"id": 712}, "assignee": {"id": 879}}, "task": {"id": 398, "owner": {"id": 911}, "assignee": {"id": 5}}, "job": {"id": 310, "assignee": {"id": 1148}}, "issue": {"id": 374, "owner": {"id": 1250}, "assignee": {"id": 1365}}, "organization": {"id": 1449}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 643}, "assignee": {"id": 542}, "project": {"id": 335, "owner": {"id": 727}, "assignee": {"id": 818}}, "task": {"id": 382, "owner": {"id": 903}, "assignee": {"id": 57}}, "job": {"id": 314, "assignee": {"id": 1157}}, "issue": {"id": 378, "owner": {"id": 1232}, "assignee": {"id": 1336}}, "organization": {"id": 164}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 391, "owner": {"id": 600}, "assignee": {"id": 561}, "project": {"id": 361, "owner": {"id": 713}, "assignee": {"id": 805}}, "task": {"id": 385, "owner": {"id": 971}, "assignee": {"id": 77}}, "job": {"id": 394, "assignee": {"id": 1174}}, "issue": {"id": 309, "owner": {"id": 1274}, "assignee": {"id": 1333}}, "organization": {"id": 189}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 371, "owner": {"id": 682}, "assignee": {"id": 500}, "project": {"id": 388, "owner": {"id": 703}, "assignee": {"id": 880}}, "task": {"id": 358, "owner": {"id": 934}, "assignee": {"id": 46}}, "job": {"id": 340, "assignee": {"id": 1136}}, "issue": {"id": 378, "owner": {"id": 1255}, "assignee": {"id": 1380}}, "organization": {"id": 1430}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 319, "owner": {"id": 621}, "assignee": {"id": 577}, "project": {"id": 321, "owner": {"id": 775}, "assignee": {"id": 886}}, "task": {"id": 384, "owner": {"id": 931}, "assignee": {"id": 80}}, "job": {"id": 379, "assignee": {"id": 1188}}, "issue": {"id": 390, "owner": {"id": 1274}, "assignee": {"id": 1304}}, "organization": {"id": 1475}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 678}, "assignee": {"id": 590}, "project": {"id": 358, "owner": {"id": 752}, "assignee": {"id": 825}}, "task": {"id": 382, "owner": {"id": 966}, "assignee": {"id": 1075}}, "job": {"id": 357, "assignee": {"id": 81}}, "issue": {"id": 303, "owner": {"id": 1289}, "assignee": {"id": 1377}}, "organization": {"id": 164}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 326, "owner": {"id": 630}, "assignee": {"id": 520}, "project": {"id": 324, "owner": {"id": 777}, "assignee": {"id": 833}}, "task": {"id": 374, "owner": {"id": 978}, "assignee": {"id": 1085}}, "job": {"id": 381, "assignee": {"id": 5}}, "issue": {"id": 393, "owner": {"id": 1270}, "assignee": {"id": 1379}}, "organization": {"id": 191}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 382, "owner": {"id": 625}, "assignee": {"id": 594}, "project": {"id": 316, "owner": {"id": 762}, "assignee": {"id": 879}}, "task": {"id": 373, "owner": {"id": 927}, "assignee": {"id": 1003}}, "job": {"id": 372, "assignee": {"id": 99}}, "issue": {"id": 396, "owner": {"id": 1226}, "assignee": {"id": 1374}}, "organization": {"id": 1437}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 335, "owner": {"id": 616}, "assignee": {"id": 533}, "project": {"id": 322, "owner": {"id": 771}, "assignee": {"id": 827}}, "task": {"id": 306, "owner": {"id": 971}, "assignee": {"id": 1098}}, "job": {"id": 353, "assignee": {"id": 88}}, "issue": {"id": 311, "owner": {"id": 1217}, "assignee": {"id": 1349}}, "organization": {"id": 1427}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "owner": {"id": 647}, "assignee": {"id": 575}, "project": {"id": 355, "owner": {"id": 731}, "assignee": {"id": 848}}, "task": {"id": 315, "owner": {"id": 954}, "assignee": {"id": 1047}}, "job": {"id": 340, "assignee": {"id": 2}}, "issue": {"id": 382, "owner": {"id": 1294}, "assignee": {"id": 1384}}, "organization": {"id": 125}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "owner": {"id": 695}, "assignee": {"id": 541}, "project": {"id": 330, "owner": {"id": 781}, "assignee": {"id": 888}}, "task": {"id": 307, "owner": {"id": 963}, "assignee": {"id": 1017}}, "job": {"id": 316, "assignee": {"id": 76}}, "issue": {"id": 378, "owner": {"id": 1292}, "assignee": {"id": 1319}}, "organization": {"id": 189}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "owner": {"id": 634}, "assignee": {"id": 529}, "project": {"id": 373, "owner": {"id": 773}, "assignee": {"id": 838}}, "task": {"id": 322, "owner": {"id": 935}, "assignee": {"id": 1021}}, "job": {"id": 384, "assignee": {"id": 31}}, "issue": {"id": 305, "owner": {"id": 1204}, "assignee": {"id": 1345}}, "organization": {"id": 1434}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 603}, "assignee": {"id": 527}, "project": {"id": 388, "owner": {"id": 733}, "assignee": {"id": 840}}, "task": {"id": 350, "owner": {"id": 971}, "assignee": {"id": 1048}}, "job": {"id": 389, "assignee": {"id": 55}}, "issue": {"id": 344, "owner": {"id": 1202}, "assignee": {"id": 1380}}, "organization": {"id": 1427}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "owner": {"id": 650}, "assignee": {"id": 512}, "project": {"id": 323, "owner": {"id": 732}, "assignee": {"id": 809}}, "task": {"id": 311, "owner": {"id": 948}, "assignee": {"id": 1076}}, "job": {"id": 367, "assignee": {"id": 61}}, "issue": {"id": 374, "owner": {"id": 1222}, "assignee": {"id": 1397}}, "organization": {"id": 158}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "owner": {"id": 647}, "assignee": {"id": 514}, "project": {"id": 340, "owner": {"id": 753}, "assignee": {"id": 891}}, "task": {"id": 326, "owner": {"id": 933}, "assignee": {"id": 1045}}, "job": {"id": 350, "assignee": {"id": 53}}, "issue": {"id": 368, "owner": {"id": 1261}, "assignee": {"id": 1327}}, "organization": {"id": 100}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "owner": {"id": 600}, "assignee": {"id": 556}, "project": {"id": 314, "owner": {"id": 721}, "assignee": {"id": 803}}, "task": {"id": 300, "owner": {"id": 991}, "assignee": {"id": 1032}}, "job": {"id": 311, "assignee": {"id": 54}}, "issue": {"id": 302, "owner": {"id": 1282}, "assignee": {"id": 1308}}, "organization": {"id": 1441}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "owner": {"id": 633}, "assignee": {"id": 597}, "project": {"id": 374, "owner": {"id": 738}, "assignee": {"id": 813}}, "task": {"id": 351, "owner": {"id": 983}, "assignee": {"id": 1071}}, "job": {"id": 342, "assignee": {"id": 40}}, "issue": {"id": 358, "owner": {"id": 1245}, "assignee": {"id": 1389}}, "organization": {"id": 1472}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 326, "owner": {"id": 653}, "assignee": {"id": 582}, "project": {"id": 386, "owner": {"id": 764}, "assignee": {"id": 838}}, "task": {"id": 313, "owner": {"id": 952}, "assignee": {"id": 1008}}, "job": {"id": 317, "assignee": {"id": 20}}, "issue": {"id": 383, "owner": {"id": 1217}, "assignee": {"id": 1391}}, "organization": {"id": 176}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 653}, "assignee": {"id": 542}, "project": {"id": 308, "owner": {"id": 722}, "assignee": {"id": 870}}, "task": {"id": 323, "owner": {"id": 902}, "assignee": {"id": 1054}}, "job": {"id": 370, "assignee": {"id": 99}}, "issue": {"id": 320, "owner": {"id": 1258}, "assignee": {"id": 1320}}, "organization": {"id": 110}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 381, "owner": {"id": 602}, "assignee": {"id": 512}, "project": {"id": 340, "owner": {"id": 737}, "assignee": {"id": 862}}, "task": {"id": 398, "owner": {"id": 913}, "assignee": {"id": 1047}}, "job": {"id": 344, "assignee": {"id": 63}}, "issue": {"id": 334, "owner": {"id": 1247}, "assignee": {"id": 1383}}, "organization": {"id": 1423}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 674}, "assignee": {"id": 579}, "project": {"id": 304, "owner": {"id": 727}, "assignee": {"id": 895}}, "task": {"id": 372, "owner": {"id": 992}, "assignee": {"id": 1097}}, "job": {"id": 305, "assignee": {"id": 32}}, "issue": {"id": 361, "owner": {"id": 1233}, "assignee": {"id": 1382}}, "organization": {"id": 1401}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 629}, "assignee": {"id": 548}, "project": {"id": 310, "owner": {"id": 797}, "assignee": {"id": 805}}, "task": {"id": 374, "owner": {"id": 901}, "assignee": {"id": 1081}}, "job": {"id": 324, "assignee": {"id": 54}}, "issue": {"id": 389, "owner": {"id": 1236}, "assignee": {"id": 1370}}, "organization": {"id": 192}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 388, "owner": {"id": 683}, "assignee": {"id": 545}, "project": {"id": 374, "owner": {"id": 749}, "assignee": {"id": 846}}, "task": {"id": 376, "owner": {"id": 954}, "assignee": {"id": 1000}}, "job": {"id": 347, "assignee": {"id": 13}}, "issue": {"id": 356, "owner": {"id": 1261}, "assignee": {"id": 1388}}, "organization": {"id": 169}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 623}, "assignee": {"id": 557}, "project": {"id": 351, "owner": {"id": 772}, "assignee": {"id": 861}}, "task": {"id": 388, "owner": {"id": 918}, "assignee": {"id": 1087}}, "job": {"id": 333, "assignee": {"id": 12}}, "issue": {"id": 333, "owner": {"id": 1273}, "assignee": {"id": 1356}}, "organization": {"id": 1497}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 316, "owner": {"id": 658}, "assignee": {"id": 537}, "project": {"id": 393, "owner": {"id": 789}, "assignee": {"id": 883}}, "task": {"id": 342, "owner": {"id": 976}, "assignee": {"id": 1088}}, "job": {"id": 313, "assignee": {"id": 58}}, "issue": {"id": 366, "owner": {"id": 1210}, "assignee": {"id": 1326}}, "organization": {"id": 1490}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 349, "owner": {"id": 647}, "assignee": {"id": 541}, "project": {"id": 384, "owner": {"id": 738}, "assignee": {"id": 897}}, "task": {"id": 368, "owner": {"id": 926}, "assignee": {"id": 1076}}, "job": {"id": 330, "assignee": {"id": 3}}, "issue": {"id": 360, "owner": {"id": 1252}, "assignee": {"id": 1395}}, "organization": {"id": 127}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 306, "owner": {"id": 603}, "assignee": {"id": 544}, "project": {"id": 379, "owner": {"id": 737}, "assignee": {"id": 860}}, "task": {"id": 306, "owner": {"id": 990}, "assignee": {"id": 1045}}, "job": {"id": 326, "assignee": {"id": 14}}, "issue": {"id": 350, "owner": {"id": 1266}, "assignee": {"id": 1327}}, "organization": {"id": 167}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 322, "owner": {"id": 603}, "assignee": {"id": 565}, "project": {"id": 318, "owner": {"id": 721}, "assignee": {"id": 836}}, "task": {"id": 333, "owner": {"id": 940}, "assignee": {"id": 1097}}, "job": {"id": 309, "assignee": {"id": 77}}, "issue": {"id": 327, "owner": {"id": 1235}, "assignee": {"id": 1353}}, "organization": {"id": 1478}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 363, "owner": {"id": 615}, "assignee": {"id": 503}, "project": {"id": 334, "owner": {"id": 709}, "assignee": {"id": 897}}, "task": {"id": 325, "owner": {"id": 944}, "assignee": {"id": 1040}}, "job": {"id": 377, "assignee": {"id": 24}}, "issue": {"id": 350, "owner": {"id": 1286}, "assignee": {"id": 1387}}, "organization": {"id": 1439}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 694}, "assignee": {"id": 514}, "project": {"id": 352, "owner": {"id": 736}, "assignee": {"id": 815}}, "task": {"id": 331, "owner": {"id": 983}, "assignee": {"id": 1052}}, "job": {"id": 325, "assignee": {"id": 22}}, "issue": {"id": 338, "owner": {"id": 1237}, "assignee": {"id": 1375}}, "organization": {"id": 185}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "owner": {"id": 697}, "assignee": {"id": 555}, "project": {"id": 376, "owner": {"id": 700}, "assignee": {"id": 862}}, "task": {"id": 356, "owner": {"id": 949}, "assignee": {"id": 1096}}, "job": {"id": 398, "assignee": {"id": 61}}, "issue": {"id": 379, "owner": {"id": 1257}, "assignee": {"id": 1322}}, "organization": {"id": 104}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "owner": {"id": 666}, "assignee": {"id": 580}, "project": {"id": 380, "owner": {"id": 763}, "assignee": {"id": 872}}, "task": {"id": 321, "owner": {"id": 941}, "assignee": {"id": 1001}}, "job": {"id": 321, "assignee": {"id": 68}}, "issue": {"id": 375, "owner": {"id": 1272}, "assignee": {"id": 1331}}, "organization": {"id": 1422}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "owner": {"id": 610}, "assignee": {"id": 519}, "project": {"id": 338, "owner": {"id": 748}, "assignee": {"id": 865}}, "task": {"id": 394, "owner": {"id": 972}, "assignee": {"id": 1030}}, "job": {"id": 379, "assignee": {"id": 87}}, "issue": {"id": 392, "owner": {"id": 1284}, "assignee": {"id": 1350}}, "organization": {"id": 1466}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "owner": {"id": 660}, "assignee": {"id": 552}, "project": {"id": 381, "owner": {"id": 720}, "assignee": {"id": 826}}, "task": {"id": 326, "owner": {"id": 948}, "assignee": {"id": 1003}}, "job": {"id": 317, "assignee": {"id": 30}}, "issue": {"id": 369, "owner": {"id": 1287}, "assignee": {"id": 1375}}, "organization": {"id": 111}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "owner": {"id": 635}, "assignee": {"id": 582}, "project": {"id": 310, "owner": {"id": 749}, "assignee": {"id": 852}}, "task": {"id": 317, "owner": {"id": 905}, "assignee": {"id": 1058}}, "job": {"id": 365, "assignee": {"id": 71}}, "issue": {"id": 355, "owner": {"id": 1272}, "assignee": {"id": 1346}}, "organization": {"id": 141}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 646}, "assignee": {"id": 591}, "project": {"id": 361, "owner": {"id": 759}, "assignee": {"id": 883}}, "task": {"id": 388, "owner": {"id": 992}, "assignee": {"id": 1069}}, "job": {"id": 327, "assignee": {"id": 75}}, "issue": {"id": 311, "owner": {"id": 1286}, "assignee": {"id": 1362}}, "organization": {"id": 1414}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "owner": {"id": 654}, "assignee": {"id": 500}, "project": {"id": 315, "owner": {"id": 732}, "assignee": {"id": 897}}, "task": {"id": 385, "owner": {"id": 990}, "assignee": {"id": 1062}}, "job": {"id": 398, "assignee": {"id": 43}}, "issue": {"id": 380, "owner": {"id": 1216}, "assignee": {"id": 1352}}, "organization": {"id": 1423}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 388, "owner": {"id": 601}, "assignee": {"id": 552}, "project": {"id": 360, "owner": {"id": 708}, "assignee": {"id": 833}}, "task": {"id": 348, "owner": {"id": 993}, "assignee": {"id": 1087}}, "job": {"id": 398, "assignee": {"id": 98}}, "issue": {"id": 307, "owner": {"id": 1235}, "assignee": {"id": 1393}}, "organization": {"id": 118}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 338, "owner": {"id": 634}, "assignee": {"id": 555}, "project": {"id": 320, "owner": {"id": 726}, "assignee": {"id": 812}}, "task": {"id": 383, "owner": {"id": 910}, "assignee": {"id": 1015}}, "job": {"id": 367, "assignee": {"id": 56}}, "issue": {"id": 339, "owner": {"id": 1290}, "assignee": {"id": 1391}}, "organization": {"id": 114}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 650}, "assignee": {"id": 524}, "project": {"id": 358, "owner": {"id": 798}, "assignee": {"id": 875}}, "task": {"id": 348, "owner": {"id": 997}, "assignee": {"id": 1008}}, "job": {"id": 337, "assignee": {"id": 46}}, "issue": {"id": 379, "owner": {"id": 1208}, "assignee": {"id": 1366}}, "organization": {"id": 1491}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 336, "owner": {"id": 657}, "assignee": {"id": 550}, "project": {"id": 338, "owner": {"id": 789}, "assignee": {"id": 865}}, "task": {"id": 313, "owner": {"id": 984}, "assignee": {"id": 1042}}, "job": {"id": 323, "assignee": {"id": 4}}, "issue": {"id": 353, "owner": {"id": 1200}, "assignee": {"id": 1364}}, "organization": {"id": 1428}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 312, "owner": {"id": 676}, "assignee": {"id": 580}, "project": {"id": 321, "owner": {"id": 769}, "assignee": {"id": 836}}, "task": {"id": 396, "owner": {"id": 995}, "assignee": {"id": 1082}}, "job": {"id": 321, "assignee": {"id": 25}}, "issue": {"id": 379, "owner": {"id": 1228}, "assignee": {"id": 1309}}, "organization": {"id": 104}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 380, "owner": {"id": 650}, "assignee": {"id": 567}, "project": {"id": 321, "owner": {"id": 774}, "assignee": {"id": 873}}, "task": {"id": 382, "owner": {"id": 998}, "assignee": {"id": 1002}}, "job": {"id": 394, "assignee": {"id": 8}}, "issue": {"id": 356, "owner": {"id": 1222}, "assignee": {"id": 1392}}, "organization": {"id": 122}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 312, "owner": {"id": 648}, "assignee": {"id": 540}, "project": {"id": 360, "owner": {"id": 790}, "assignee": {"id": 872}}, "task": {"id": 350, "owner": {"id": 949}, "assignee": {"id": 1089}}, "job": {"id": 337, "assignee": {"id": 47}}, "issue": {"id": 362, "owner": {"id": 1228}, "assignee": {"id": 1330}}, "organization": {"id": 1431}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 397, "owner": {"id": 674}, "assignee": {"id": 504}, "project": {"id": 326, "owner": {"id": 744}, "assignee": {"id": 834}}, "task": {"id": 329, "owner": {"id": 990}, "assignee": {"id": 1043}}, "job": {"id": 348, "assignee": {"id": 75}}, "issue": {"id": 302, "owner": {"id": 1294}, "assignee": {"id": 1345}}, "organization": {"id": 1488}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 395, "owner": {"id": 692}, "assignee": {"id": 576}, "project": {"id": 375, "owner": {"id": 752}, "assignee": {"id": 806}}, "task": {"id": 355, "owner": {"id": 916}, "assignee": {"id": 1046}}, "job": {"id": 373, "assignee": {"id": 91}}, "issue": {"id": 353, "owner": {"id": 1231}, "assignee": {"id": 1301}}, "organization": {"id": 106}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 322, "owner": {"id": 654}, "assignee": {"id": 589}, "project": {"id": 346, "owner": {"id": 785}, "assignee": {"id": 859}}, "task": {"id": 352, "owner": {"id": 910}, "assignee": {"id": 1079}}, "job": {"id": 323, "assignee": {"id": 52}}, "issue": {"id": 329, "owner": {"id": 1238}, "assignee": {"id": 1375}}, "organization": {"id": 196}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 316, "owner": {"id": 640}, "assignee": {"id": 527}, "project": {"id": 357, "owner": {"id": 778}, "assignee": {"id": 820}}, "task": {"id": 348, "owner": {"id": 991}, "assignee": {"id": 1032}}, "job": {"id": 382, "assignee": {"id": 86}}, "issue": {"id": 358, "owner": {"id": 1263}, "assignee": {"id": 1308}}, "organization": {"id": 1476}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 628}, "assignee": {"id": 549}, "project": {"id": 386, "owner": {"id": 731}, "assignee": {"id": 897}}, "task": {"id": 377, "owner": {"id": 986}, "assignee": {"id": 1067}}, "job": {"id": 363, "assignee": {"id": 40}}, "issue": {"id": 357, "owner": {"id": 1201}, "assignee": {"id": 1382}}, "organization": {"id": 1477}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "owner": {"id": 674}, "assignee": {"id": 594}, "project": {"id": 312, "owner": {"id": 727}, "assignee": {"id": 823}}, "task": {"id": 393, "owner": {"id": 955}, "assignee": {"id": 1073}}, "job": {"id": 360, "assignee": {"id": 69}}, "issue": {"id": 379, "owner": {"id": 1222}, "assignee": {"id": 1396}}, "organization": {"id": 104}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 679}, "assignee": {"id": 547}, "project": {"id": 349, "owner": {"id": 729}, "assignee": {"id": 883}}, "task": {"id": 388, "owner": {"id": 955}, "assignee": {"id": 1069}}, "job": {"id": 305, "assignee": {"id": 69}}, "issue": {"id": 355, "owner": {"id": 1222}, "assignee": {"id": 1331}}, "organization": {"id": 196}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 656}, "assignee": {"id": 504}, "project": {"id": 373, "owner": {"id": 766}, "assignee": {"id": 842}}, "task": {"id": 314, "owner": {"id": 918}, "assignee": {"id": 1094}}, "job": {"id": 338, "assignee": {"id": 2}}, "issue": {"id": 393, "owner": {"id": 1284}, "assignee": {"id": 1324}}, "organization": {"id": 1448}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "owner": {"id": 650}, "assignee": {"id": 556}, "project": {"id": 373, "owner": {"id": 755}, "assignee": {"id": 815}}, "task": {"id": 306, "owner": {"id": 990}, "assignee": {"id": 1014}}, "job": {"id": 335, "assignee": {"id": 89}}, "issue": {"id": 368, "owner": {"id": 1244}, "assignee": {"id": 1374}}, "organization": {"id": 1450}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 71, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "owner": {"id": 684}, "assignee": {"id": 525}, "project": {"id": 340, "owner": {"id": 774}, "assignee": {"id": 849}}, "task": {"id": 333, "owner": {"id": 922}, "assignee": {"id": 1079}}, "job": {"id": 363, "assignee": {"id": 71}}, "issue": {"id": 398, "owner": {"id": 1293}, "assignee": {"id": 1329}}, "organization": {"id": 152}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "owner": {"id": 692}, "assignee": {"id": 571}, "project": {"id": 328, "owner": {"id": 766}, "assignee": {"id": 800}}, "task": {"id": 380, "owner": {"id": 960}, "assignee": {"id": 1024}}, "job": {"id": 304, "assignee": {"id": 50}}, "issue": {"id": 341, "owner": {"id": 1277}, "assignee": {"id": 1307}}, "organization": {"id": 151}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "owner": {"id": 676}, "assignee": {"id": 570}, "project": {"id": 386, "owner": {"id": 736}, "assignee": {"id": 860}}, "task": {"id": 357, "owner": {"id": 973}, "assignee": {"id": 1085}}, "job": {"id": 300, "assignee": {"id": 68}}, "issue": {"id": 344, "owner": {"id": 1287}, "assignee": {"id": 1322}}, "organization": {"id": 1400}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 683}, "assignee": {"id": 559}, "project": {"id": 361, "owner": {"id": 743}, "assignee": {"id": 868}}, "task": {"id": 358, "owner": {"id": 920}, "assignee": {"id": 1090}}, "job": {"id": 306, "assignee": {"id": 15}}, "issue": {"id": 371, "owner": {"id": 1209}, "assignee": {"id": 1377}}, "organization": {"id": 1423}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 367, "owner": {"id": 686}, "assignee": {"id": 555}, "project": {"id": 332, "owner": {"id": 753}, "assignee": {"id": 819}}, "task": {"id": 349, "owner": {"id": 912}, "assignee": {"id": 1068}}, "job": {"id": 313, "assignee": {"id": 44}}, "issue": {"id": 333, "owner": {"id": 1218}, "assignee": {"id": 1335}}, "organization": {"id": 194}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 339, "owner": {"id": 619}, "assignee": {"id": 573}, "project": {"id": 355, "owner": {"id": 714}, "assignee": {"id": 876}}, "task": {"id": 345, "owner": {"id": 947}, "assignee": {"id": 1042}}, "job": {"id": 333, "assignee": {"id": 3}}, "issue": {"id": 324, "owner": {"id": 1277}, "assignee": {"id": 1335}}, "organization": {"id": 196}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 398, "owner": {"id": 649}, "assignee": {"id": 540}, "project": {"id": 300, "owner": {"id": 787}, "assignee": {"id": 849}}, "task": {"id": 363, "owner": {"id": 979}, "assignee": {"id": 1031}}, "job": {"id": 361, "assignee": {"id": 87}}, "issue": {"id": 368, "owner": {"id": 1209}, "assignee": {"id": 1356}}, "organization": {"id": 1493}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 340, "owner": {"id": 620}, "assignee": {"id": 520}, "project": {"id": 346, "owner": {"id": 771}, "assignee": {"id": 801}}, "task": {"id": 397, "owner": {"id": 937}, "assignee": {"id": 1084}}, "job": {"id": 325, "assignee": {"id": 15}}, "issue": {"id": 348, "owner": {"id": 1276}, "assignee": {"id": 1300}}, "organization": {"id": 1456}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"id": 374, "owner": {"id": 668}, "assignee": {"id": 517}, "project": {"id": 363, "owner": {"id": 708}, "assignee": {"id": 825}}, "task": {"id": 371, "owner": {"id": 959}, "assignee": {"id": 1093}}, "job": {"id": 361, "assignee": {"id": 92}}, "issue": {"id": 322, "owner": {"id": 1256}, "assignee": {"id": 1304}}, "organization": {"id": 195}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 681}, "assignee": {"id": 521}, "project": {"id": 374, "owner": {"id": 784}, "assignee": {"id": 840}}, "task": {"id": 399, "owner": {"id": 920}, "assignee": {"id": 1013}}, "job": {"id": 391, "assignee": {"id": 14}}, "issue": {"id": 323, "owner": {"id": 1209}, "assignee": {"id": 1324}}, "organization": {"id": 118}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 320, "owner": {"id": 681}, "assignee": {"id": 500}, "project": {"id": 318, "owner": {"id": 775}, "assignee": {"id": 874}}, "task": {"id": 311, "owner": {"id": 990}, "assignee": {"id": 1093}}, "job": {"id": 324, "assignee": {"id": 86}}, "issue": {"id": 352, "owner": {"id": 1207}, "assignee": {"id": 1324}}, "organization": {"id": 1411}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 393, "owner": {"id": 656}, "assignee": {"id": 548}, "project": {"id": 337, "owner": {"id": 773}, "assignee": {"id": 866}}, "task": {"id": 329, "owner": {"id": 905}, "assignee": {"id": 1047}}, "job": {"id": 316, "assignee": {"id": 80}}, "issue": {"id": 364, "owner": {"id": 1211}, "assignee": {"id": 1394}}, "organization": {"id": 1435}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 659}, "assignee": {"id": 578}, "project": {"id": 305, "owner": {"id": 743}, "assignee": {"id": 865}}, "task": {"id": 384, "owner": {"id": 913}, "assignee": {"id": 1047}}, "job": {"id": 370, "assignee": {"id": 64}}, "issue": {"id": 345, "owner": {"id": 1224}, "assignee": {"id": 1391}}, "organization": {"id": 114}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 362, "owner": {"id": 669}, "assignee": {"id": 507}, "project": {"id": 351, "owner": {"id": 771}, "assignee": {"id": 884}}, "task": {"id": 366, "owner": {"id": 965}, "assignee": {"id": 1015}}, "job": {"id": 315, "assignee": {"id": 72}}, "issue": {"id": 355, "owner": {"id": 1229}, "assignee": {"id": 1310}}, "organization": {"id": 189}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 309, "owner": {"id": 615}, "assignee": {"id": 570}, "project": {"id": 373, "owner": {"id": 741}, "assignee": {"id": 872}}, "task": {"id": 378, "owner": {"id": 986}, "assignee": {"id": 1037}}, "job": {"id": 387, "assignee": {"id": 34}}, "issue": {"id": 370, "owner": {"id": 1214}, "assignee": {"id": 1321}}, "organization": {"id": 1484}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"id": 331, "owner": {"id": 694}, "assignee": {"id": 548}, "project": {"id": 316, "owner": {"id": 797}, "assignee": {"id": 873}}, "task": {"id": 336, "owner": {"id": 955}, "assignee": {"id": 1051}}, "job": {"id": 315, "assignee": {"id": 8}}, "issue": {"id": 331, "owner": {"id": 1234}, "assignee": {"id": 1395}}, "organization": {"id": 1442}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 628}, "assignee": {"id": 592}, "project": {"id": 378, "owner": {"id": 751}, "assignee": {"id": 853}}, "task": {"id": 370, "owner": {"id": 979}, "assignee": {"id": 1092}}, "job": {"id": 370, "assignee": {"id": 93}}, "issue": {"id": 338, "owner": {"id": 1279}, "assignee": {"id": 1365}}, "organization": {"id": 159}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "owner": {"id": 614}, "assignee": {"id": 561}, "project": {"id": 360, "owner": {"id": 798}, "assignee": {"id": 849}}, "task": {"id": 339, "owner": {"id": 989}, "assignee": {"id": 1085}}, "job": {"id": 367, "assignee": {"id": 81}}, "issue": {"id": 305, "owner": {"id": 1203}, "assignee": {"id": 1342}}, "organization": {"id": 122}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 692}, "assignee": {"id": 573}, "project": {"id": 392, "owner": {"id": 748}, "assignee": {"id": 835}}, "task": {"id": 374, "owner": {"id": 923}, "assignee": {"id": 1072}}, "job": {"id": 346, "assignee": {"id": 33}}, "issue": {"id": 363, "owner": {"id": 1293}, "assignee": {"id": 1320}}, "organization": {"id": 1470}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 637}, "assignee": {"id": 520}, "project": {"id": 342, "owner": {"id": 792}, "assignee": {"id": 828}}, "task": {"id": 337, "owner": {"id": 924}, "assignee": {"id": 1066}}, "job": {"id": 357, "assignee": {"id": 67}}, "issue": {"id": 362, "owner": {"id": 1291}, "assignee": {"id": 1393}}, "organization": {"id": 1439}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 668}, "assignee": {"id": 519}, "project": {"id": 325, "owner": {"id": 799}, "assignee": {"id": 897}}, "task": {"id": 342, "owner": {"id": 943}, "assignee": {"id": 1096}}, "job": {"id": 390, "assignee": {"id": 8}}, "issue": {"id": 337, "owner": {"id": 1251}, "assignee": {"id": 1389}}, "organization": {"id": 165}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "owner": {"id": 613}, "assignee": {"id": 544}, "project": {"id": 312, "owner": {"id": 711}, "assignee": {"id": 873}}, "task": {"id": 346, "owner": {"id": 981}, "assignee": {"id": 1055}}, "job": {"id": 351, "assignee": {"id": 10}}, "issue": {"id": 377, "owner": {"id": 1280}, "assignee": {"id": 1385}}, "organization": {"id": 122}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "owner": {"id": 686}, "assignee": {"id": 517}, "project": {"id": 347, "owner": {"id": 743}, "assignee": {"id": 875}}, "task": {"id": 363, "owner": {"id": 917}, "assignee": {"id": 1004}}, "job": {"id": 341, "assignee": {"id": 66}}, "issue": {"id": 316, "owner": {"id": 1231}, "assignee": {"id": 1360}}, "organization": {"id": 1430}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 611}, "assignee": {"id": 597}, "project": {"id": 387, "owner": {"id": 788}, "assignee": {"id": 850}}, "task": {"id": 349, "owner": {"id": 936}, "assignee": {"id": 1007}}, "job": {"id": 358, "assignee": {"id": 3}}, "issue": {"id": 329, "owner": {"id": 1221}, "assignee": {"id": 1335}}, "organization": {"id": 1481}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 694}, "assignee": {"id": 527}, "project": {"id": 329, "owner": {"id": 776}, "assignee": {"id": 875}}, "task": {"id": 378, "owner": {"id": 930}, "assignee": {"id": 1016}}, "job": {"id": 389, "assignee": {"id": 18}}, "issue": {"id": 326, "owner": {"id": 1221}, "assignee": {"id": 1328}}, "organization": {"id": 182}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 675}, "assignee": {"id": 599}, "project": {"id": 359, "owner": {"id": 790}, "assignee": {"id": 897}}, "task": {"id": 348, "owner": {"id": 905}, "assignee": {"id": 1055}}, "job": {"id": 338, "assignee": {"id": 48}}, "issue": {"id": 301, "owner": {"id": 1215}, "assignee": {"id": 1349}}, "organization": {"id": 166}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 390, "owner": {"id": 653}, "assignee": {"id": 530}, "project": {"id": 386, "owner": {"id": 717}, "assignee": {"id": 883}}, "task": {"id": 366, "owner": {"id": 988}, "assignee": {"id": 1065}}, "job": {"id": 337, "assignee": {"id": 79}}, "issue": {"id": 318, "owner": {"id": 1274}, "assignee": {"id": 1325}}, "organization": {"id": 1482}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 375, "owner": {"id": 647}, "assignee": {"id": 511}, "project": {"id": 359, "owner": {"id": 797}, "assignee": {"id": 855}}, "task": {"id": 361, "owner": {"id": 915}, "assignee": {"id": 1084}}, "job": {"id": 318, "assignee": {"id": 0}}, "issue": {"id": 364, "owner": {"id": 1209}, "assignee": {"id": 1323}}, "organization": {"id": 1424}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 621}, "assignee": {"id": 599}, "project": {"id": 373, "owner": {"id": 772}, "assignee": {"id": 814}}, "task": {"id": 369, "owner": {"id": 958}, "assignee": {"id": 1063}}, "job": {"id": 307, "assignee": {"id": 76}}, "issue": {"id": 359, "owner": {"id": 1244}, "assignee": {"id": 1395}}, "organization": {"id": 152}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 341, "owner": {"id": 623}, "assignee": {"id": 553}, "project": {"id": 379, "owner": {"id": 739}, "assignee": {"id": 861}}, "task": {"id": 361, "owner": {"id": 995}, "assignee": {"id": 1078}}, "job": {"id": 314, "assignee": {"id": 62}}, "issue": {"id": 388, "owner": {"id": 1210}, "assignee": {"id": 1323}}, "organization": {"id": 153}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 369, "owner": {"id": 697}, "assignee": {"id": 523}, "project": {"id": 311, "owner": {"id": 703}, "assignee": {"id": 829}}, "task": {"id": 386, "owner": {"id": 940}, "assignee": {"id": 1041}}, "job": {"id": 374, "assignee": {"id": 14}}, "issue": {"id": 369, "owner": {"id": 1277}, "assignee": {"id": 1325}}, "organization": {"id": 1454}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 661}, "assignee": {"id": 564}, "project": {"id": 329, "owner": {"id": 777}, "assignee": {"id": 838}}, "task": {"id": 317, "owner": {"id": 961}, "assignee": {"id": 1031}}, "job": {"id": 380, "assignee": {"id": 9}}, "issue": {"id": 318, "owner": {"id": 1261}, "assignee": {"id": 1380}}, "organization": {"id": 1426}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 311, "owner": {"id": 653}, "assignee": {"id": 574}, "project": {"id": 300, "owner": {"id": 751}, "assignee": {"id": 859}}, "task": {"id": 335, "owner": {"id": 900}, "assignee": {"id": 1063}}, "job": {"id": 300, "assignee": {"id": 77}}, "issue": {"id": 351, "owner": {"id": 1236}, "assignee": {"id": 1391}}, "organization": {"id": 135}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 381, "owner": {"id": 698}, "assignee": {"id": 589}, "project": {"id": 306, "owner": {"id": 703}, "assignee": {"id": 852}}, "task": {"id": 326, "owner": {"id": 951}, "assignee": {"id": 1017}}, "job": {"id": 369, "assignee": {"id": 92}}, "issue": {"id": 305, "owner": {"id": 1221}, "assignee": {"id": 1364}}, "organization": {"id": 169}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 663}, "assignee": {"id": 574}, "project": {"id": 341, "owner": {"id": 766}, "assignee": {"id": 877}}, "task": {"id": 394, "owner": {"id": 959}, "assignee": {"id": 1080}}, "job": {"id": 391, "assignee": {"id": 53}}, "issue": {"id": 380, "owner": {"id": 1293}, "assignee": {"id": 1379}}, "organization": {"id": 1405}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 333, "owner": {"id": 623}, "assignee": {"id": 589}, "project": {"id": 376, "owner": {"id": 781}, "assignee": {"id": 850}}, "task": {"id": 327, "owner": {"id": 917}, "assignee": {"id": 1064}}, "job": {"id": 362, "assignee": {"id": 55}}, "issue": {"id": 377, "owner": {"id": 1287}, "assignee": {"id": 1333}}, "organization": {"id": 1476}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 622}, "assignee": {"id": 560}, "project": {"id": 325, "owner": {"id": 775}, "assignee": {"id": 874}}, "task": {"id": 396, "owner": {"id": 919}, "assignee": {"id": 1060}}, "job": {"id": 303, "assignee": {"id": 68}}, "issue": {"id": 315, "owner": {"id": 1249}, "assignee": {"id": 1370}}, "organization": {"id": 184}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "owner": {"id": 600}, "assignee": {"id": 547}, "project": {"id": 308, "owner": {"id": 767}, "assignee": {"id": 811}}, "task": {"id": 342, "owner": {"id": 945}, "assignee": {"id": 1042}}, "job": {"id": 359, "assignee": {"id": 35}}, "issue": {"id": 394, "owner": {"id": 1252}, "assignee": {"id": 1307}}, "organization": {"id": 173}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 652}, "assignee": {"id": 558}, "project": {"id": 319, "owner": {"id": 794}, "assignee": {"id": 898}}, "task": {"id": 393, "owner": {"id": 912}, "assignee": {"id": 1083}}, "job": {"id": 317, "assignee": {"id": 24}}, "issue": {"id": 386, "owner": {"id": 1286}, "assignee": {"id": 1325}}, "organization": {"id": 1466}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "owner": {"id": 683}, "assignee": {"id": 524}, "project": {"id": 350, "owner": {"id": 748}, "assignee": {"id": 854}}, "task": {"id": 375, "owner": {"id": 937}, "assignee": {"id": 1050}}, "job": {"id": 345, "assignee": {"id": 51}}, "issue": {"id": 379, "owner": {"id": 1279}, "assignee": {"id": 1325}}, "organization": {"id": 1484}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 686}, "assignee": {"id": 559}, "project": {"id": 387, "owner": {"id": 719}, "assignee": {"id": 819}}, "task": {"id": 360, "owner": {"id": 976}, "assignee": {"id": 1010}}, "job": {"id": 317, "assignee": {"id": 92}}, "issue": {"id": 331, "owner": {"id": 1299}, "assignee": {"id": 1312}}, "organization": {"id": 155}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "owner": {"id": 626}, "assignee": {"id": 515}, "project": {"id": 316, "owner": {"id": 747}, "assignee": {"id": 898}}, "task": {"id": 326, "owner": {"id": 978}, "assignee": {"id": 1097}}, "job": {"id": 381, "assignee": {"id": 18}}, "issue": {"id": 343, "owner": {"id": 1231}, "assignee": {"id": 1371}}, "organization": {"id": 172}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 650}, "assignee": {"id": 587}, "project": {"id": 337, "owner": {"id": 769}, "assignee": {"id": 811}}, "task": {"id": 374, "owner": {"id": 954}, "assignee": {"id": 1025}}, "job": {"id": 363, "assignee": {"id": 19}}, "issue": {"id": 300, "owner": {"id": 1299}, "assignee": {"id": 1358}}, "organization": {"id": 1484}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "owner": {"id": 662}, "assignee": {"id": 552}, "project": {"id": 398, "owner": {"id": 722}, "assignee": {"id": 863}}, "task": {"id": 330, "owner": {"id": 936}, "assignee": {"id": 1068}}, "job": {"id": 338, "assignee": {"id": 74}}, "issue": {"id": 356, "owner": {"id": 1213}, "assignee": {"id": 1350}}, "organization": {"id": 1442}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 342, "owner": {"id": 654}, "assignee": {"id": 547}, "project": {"id": 307, "owner": {"id": 792}, "assignee": {"id": 865}}, "task": {"id": 309, "owner": {"id": 961}, "assignee": {"id": 1089}}, "job": {"id": 383, "assignee": {"id": 85}}, "issue": {"id": 344, "owner": {"id": 1216}, "assignee": {"id": 1342}}, "organization": {"id": 179}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 317, "owner": {"id": 674}, "assignee": {"id": 530}, "project": {"id": 355, "owner": {"id": 792}, "assignee": {"id": 800}}, "task": {"id": 321, "owner": {"id": 972}, "assignee": {"id": 1070}}, "job": {"id": 308, "assignee": {"id": 82}}, "issue": {"id": 377, "owner": {"id": 1241}, "assignee": {"id": 1343}}, "organization": {"id": 147}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 688}, "assignee": {"id": 512}, "project": {"id": 376, "owner": {"id": 758}, "assignee": {"id": 853}}, "task": {"id": 314, "owner": {"id": 965}, "assignee": {"id": 1061}}, "job": {"id": 376, "assignee": {"id": 50}}, "issue": {"id": 370, "owner": {"id": 1219}, "assignee": {"id": 1342}}, "organization": {"id": 1471}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 674}, "assignee": {"id": 533}, "project": {"id": 381, "owner": {"id": 743}, "assignee": {"id": 866}}, "task": {"id": 340, "owner": {"id": 909}, "assignee": {"id": 1018}}, "job": {"id": 324, "assignee": {"id": 40}}, "issue": {"id": 383, "owner": {"id": 1237}, "assignee": {"id": 1357}}, "organization": {"id": 1427}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"id": 330, "owner": {"id": 643}, "assignee": {"id": 583}, "project": {"id": 337, "owner": {"id": 785}, "assignee": {"id": 870}}, "task": {"id": 355, "owner": {"id": 973}, "assignee": {"id": 1074}}, "job": {"id": 381, "assignee": {"id": 62}}, "issue": {"id": 336, "owner": {"id": 1273}, "assignee": {"id": 1326}}, "organization": {"id": 168}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 671}, "assignee": {"id": 572}, "project": {"id": 326, "owner": {"id": 773}, "assignee": {"id": 822}}, "task": {"id": 314, "owner": {"id": 920}, "assignee": {"id": 1096}}, "job": {"id": 312, "assignee": {"id": 73}}, "issue": {"id": 363, "owner": {"id": 1202}, "assignee": {"id": 1324}}, "organization": {"id": 152}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 354, "owner": {"id": 690}, "assignee": {"id": 506}, "project": {"id": 308, "owner": {"id": 765}, "assignee": {"id": 807}}, "task": {"id": 341, "owner": {"id": 923}, "assignee": {"id": 1015}}, "job": {"id": 343, "assignee": {"id": 5}}, "issue": {"id": 347, "owner": {"id": 1286}, "assignee": {"id": 1376}}, "organization": {"id": 1427}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 386, "owner": {"id": 639}, "assignee": {"id": 549}, "project": {"id": 316, "owner": {"id": 745}, "assignee": {"id": 800}}, "task": {"id": 395, "owner": {"id": 919}, "assignee": {"id": 1065}}, "job": {"id": 369, "assignee": {"id": 92}}, "issue": {"id": 334, "owner": {"id": 1256}, "assignee": {"id": 1382}}, "organization": {"id": 1437}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 379, "owner": {"id": 678}, "assignee": {"id": 512}, "project": {"id": 310, "owner": {"id": 719}, "assignee": {"id": 835}}, "task": {"id": 361, "owner": {"id": 922}, "assignee": {"id": 1060}}, "job": {"id": 335, "assignee": {"id": 1197}}, "issue": {"id": 391, "owner": {"id": 40}, "assignee": {"id": 1387}}, "organization": {"id": 122}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 380, "owner": {"id": 663}, "assignee": {"id": 564}, "project": {"id": 342, "owner": {"id": 786}, "assignee": {"id": 827}}, "task": {"id": 363, "owner": {"id": 957}, "assignee": {"id": 1079}}, "job": {"id": 335, "assignee": {"id": 1176}}, "issue": {"id": 308, "owner": {"id": 33}, "assignee": {"id": 1370}}, "organization": {"id": 178}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 653}, "assignee": {"id": 586}, "project": {"id": 364, "owner": {"id": 728}, "assignee": {"id": 815}}, "task": {"id": 353, "owner": {"id": 953}, "assignee": {"id": 1057}}, "job": {"id": 320, "assignee": {"id": 1122}}, "issue": {"id": 329, "owner": {"id": 0}, "assignee": {"id": 1340}}, "organization": {"id": 1462}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 393, "owner": {"id": 615}, "assignee": {"id": 581}, "project": {"id": 326, "owner": {"id": 777}, "assignee": {"id": 821}}, "task": {"id": 378, "owner": {"id": 945}, "assignee": {"id": 1009}}, "job": {"id": 362, "assignee": {"id": 1195}}, "issue": {"id": 347, "owner": {"id": 35}, "assignee": {"id": 1328}}, "organization": {"id": 1490}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "owner": {"id": 623}, "assignee": {"id": 523}, "project": {"id": 385, "owner": {"id": 773}, "assignee": {"id": 842}}, "task": {"id": 377, "owner": {"id": 926}, "assignee": {"id": 1062}}, "job": {"id": 371, "assignee": {"id": 1103}}, "issue": {"id": 361, "owner": {"id": 26}, "assignee": {"id": 1311}}, "organization": {"id": 135}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "owner": {"id": 688}, "assignee": {"id": 506}, "project": {"id": 344, "owner": {"id": 796}, "assignee": {"id": 890}}, "task": {"id": 388, "owner": {"id": 905}, "assignee": {"id": 1042}}, "job": {"id": 323, "assignee": {"id": 1172}}, "issue": {"id": 377, "owner": {"id": 42}, "assignee": {"id": 1317}}, "organization": {"id": 189}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "owner": {"id": 642}, "assignee": {"id": 597}, "project": {"id": 326, "owner": {"id": 795}, "assignee": {"id": 856}}, "task": {"id": 316, "owner": {"id": 986}, "assignee": {"id": 1092}}, "job": {"id": 359, "assignee": {"id": 1120}}, "issue": {"id": 351, "owner": {"id": 74}, "assignee": {"id": 1395}}, "organization": {"id": 1476}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "owner": {"id": 632}, "assignee": {"id": 537}, "project": {"id": 362, "owner": {"id": 705}, "assignee": {"id": 811}}, "task": {"id": 357, "owner": {"id": 922}, "assignee": {"id": 1080}}, "job": {"id": 313, "assignee": {"id": 1113}}, "issue": {"id": 390, "owner": {"id": 85}, "assignee": {"id": 1302}}, "organization": {"id": 1456}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 653}, "assignee": {"id": 596}, "project": {"id": 327, "owner": {"id": 784}, "assignee": {"id": 860}}, "task": {"id": 370, "owner": {"id": 995}, "assignee": {"id": 1073}}, "job": {"id": 310, "assignee": {"id": 1149}}, "issue": {"id": 326, "owner": {"id": 64}, "assignee": {"id": 1358}}, "organization": {"id": 146}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 613}, "assignee": {"id": 582}, "project": {"id": 390, "owner": {"id": 788}, "assignee": {"id": 845}}, "task": {"id": 314, "owner": {"id": 988}, "assignee": {"id": 1040}}, "job": {"id": 340, "assignee": {"id": 1158}}, "issue": {"id": 309, "owner": {"id": 15}, "assignee": {"id": 1310}}, "organization": {"id": 149}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "owner": {"id": 657}, "assignee": {"id": 545}, "project": {"id": 304, "owner": {"id": 772}, "assignee": {"id": 848}}, "task": {"id": 307, "owner": {"id": 967}, "assignee": {"id": 1030}}, "job": {"id": 344, "assignee": {"id": 1144}}, "issue": {"id": 318, "owner": {"id": 76}, "assignee": {"id": 1397}}, "organization": {"id": 1401}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 653}, "assignee": {"id": 534}, "project": {"id": 382, "owner": {"id": 791}, "assignee": {"id": 844}}, "task": {"id": 369, "owner": {"id": 940}, "assignee": {"id": 1006}}, "job": {"id": 307, "assignee": {"id": 1138}}, "issue": {"id": 341, "owner": {"id": 55}, "assignee": {"id": 1328}}, "organization": {"id": 1441}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 397, "owner": {"id": 678}, "assignee": {"id": 563}, "project": {"id": 342, "owner": {"id": 762}, "assignee": {"id": 898}}, "task": {"id": 344, "owner": {"id": 964}, "assignee": {"id": 1032}}, "job": {"id": 344, "assignee": {"id": 1149}}, "issue": {"id": 388, "owner": {"id": 60}, "assignee": {"id": 1321}}, "organization": {"id": 123}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 321, "owner": {"id": 630}, "assignee": {"id": 556}, "project": {"id": 304, "owner": {"id": 735}, "assignee": {"id": 827}}, "task": {"id": 337, "owner": {"id": 980}, "assignee": {"id": 1032}}, "job": {"id": 393, "assignee": {"id": 1119}}, "issue": {"id": 359, "owner": {"id": 92}, "assignee": {"id": 1354}}, "organization": {"id": 129}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 355, "owner": {"id": 671}, "assignee": {"id": 525}, "project": {"id": 384, "owner": {"id": 793}, "assignee": {"id": 855}}, "task": {"id": 320, "owner": {"id": 920}, "assignee": {"id": 1058}}, "job": {"id": 311, "assignee": {"id": 1125}}, "issue": {"id": 326, "owner": {"id": 42}, "assignee": {"id": 1392}}, "organization": {"id": 1424}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 355, "owner": {"id": 622}, "assignee": {"id": 509}, "project": {"id": 387, "owner": {"id": 776}, "assignee": {"id": 873}}, "task": {"id": 395, "owner": {"id": 921}, "assignee": {"id": 1042}}, "job": {"id": 300, "assignee": {"id": 1118}}, "issue": {"id": 303, "owner": {"id": 51}, "assignee": {"id": 1325}}, "organization": {"id": 1467}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 621}, "assignee": {"id": 510}, "project": {"id": 396, "owner": {"id": 771}, "assignee": {"id": 821}}, "task": {"id": 345, "owner": {"id": 919}, "assignee": {"id": 1041}}, "job": {"id": 319, "assignee": {"id": 1162}}, "issue": {"id": 384, "owner": {"id": 5}, "assignee": {"id": 1361}}, "organization": {"id": 100}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 329, "owner": {"id": 617}, "assignee": {"id": 500}, "project": {"id": 338, "owner": {"id": 795}, "assignee": {"id": 808}}, "task": {"id": 359, "owner": {"id": 963}, "assignee": {"id": 1016}}, "job": {"id": 341, "assignee": {"id": 1185}}, "issue": {"id": 396, "owner": {"id": 43}, "assignee": {"id": 1313}}, "organization": {"id": 120}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 347, "owner": {"id": 661}, "assignee": {"id": 586}, "project": {"id": 384, "owner": {"id": 737}, "assignee": {"id": 812}}, "task": {"id": 337, "owner": {"id": 912}, "assignee": {"id": 1076}}, "job": {"id": 359, "assignee": {"id": 1116}}, "issue": {"id": 329, "owner": {"id": 71}, "assignee": {"id": 1395}}, "organization": {"id": 1469}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 387, "owner": {"id": 602}, "assignee": {"id": 588}, "project": {"id": 339, "owner": {"id": 746}, "assignee": {"id": 890}}, "task": {"id": 372, "owner": {"id": 987}, "assignee": {"id": 1047}}, "job": {"id": 397, "assignee": {"id": 1110}}, "issue": {"id": 319, "owner": {"id": 28}, "assignee": {"id": 1304}}, "organization": {"id": 1408}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 384, "owner": {"id": 676}, "assignee": {"id": 576}, "project": {"id": 301, "owner": {"id": 748}, "assignee": {"id": 880}}, "task": {"id": 354, "owner": {"id": 938}, "assignee": {"id": 1066}}, "job": {"id": 384, "assignee": {"id": 1199}}, "issue": {"id": 308, "owner": {"id": 49}, "assignee": {"id": 1386}}, "organization": {"id": 156}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 631}, "assignee": {"id": 589}, "project": {"id": 300, "owner": {"id": 728}, "assignee": {"id": 850}}, "task": {"id": 341, "owner": {"id": 987}, "assignee": {"id": 1092}}, "job": {"id": 338, "assignee": {"id": 1184}}, "issue": {"id": 327, "owner": {"id": 28}, "assignee": {"id": 1359}}, "organization": {"id": 199}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 335, "owner": {"id": 689}, "assignee": {"id": 535}, "project": {"id": 352, "owner": {"id": 793}, "assignee": {"id": 874}}, "task": {"id": 352, "owner": {"id": 989}, "assignee": {"id": 1006}}, "job": {"id": 320, "assignee": {"id": 1126}}, "issue": {"id": 376, "owner": {"id": 7}, "assignee": {"id": 1398}}, "organization": {"id": 1403}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 302, "owner": {"id": 658}, "assignee": {"id": 590}, "project": {"id": 319, "owner": {"id": 727}, "assignee": {"id": 892}}, "task": {"id": 360, "owner": {"id": 964}, "assignee": {"id": 1000}}, "job": {"id": 342, "assignee": {"id": 1149}}, "issue": {"id": 395, "owner": {"id": 28}, "assignee": {"id": 1337}}, "organization": {"id": 1437}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 647}, "assignee": {"id": 519}, "project": {"id": 375, "owner": {"id": 781}, "assignee": {"id": 821}}, "task": {"id": 399, "owner": {"id": 918}, "assignee": {"id": 1058}}, "job": {"id": 331, "assignee": {"id": 1148}}, "issue": {"id": 377, "owner": {"id": 99}, "assignee": {"id": 1375}}, "organization": {"id": 169}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 684}, "assignee": {"id": 590}, "project": {"id": 359, "owner": {"id": 737}, "assignee": {"id": 867}}, "task": {"id": 300, "owner": {"id": 979}, "assignee": {"id": 1040}}, "job": {"id": 319, "assignee": {"id": 1144}}, "issue": {"id": 334, "owner": {"id": 1}, "assignee": {"id": 1302}}, "organization": {"id": 121}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "owner": {"id": 689}, "assignee": {"id": 512}, "project": {"id": 311, "owner": {"id": 770}, "assignee": {"id": 818}}, "task": {"id": 369, "owner": {"id": 913}, "assignee": {"id": 1050}}, "job": {"id": 305, "assignee": {"id": 1153}}, "issue": {"id": 314, "owner": {"id": 66}, "assignee": {"id": 1393}}, "organization": {"id": 1464}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 372, "owner": {"id": 666}, "assignee": {"id": 562}, "project": {"id": 315, "owner": {"id": 719}, "assignee": {"id": 898}}, "task": {"id": 377, "owner": {"id": 944}, "assignee": {"id": 1042}}, "job": {"id": 348, "assignee": {"id": 1136}}, "issue": {"id": 341, "owner": {"id": 57}, "assignee": {"id": 1373}}, "organization": {"id": 1465}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "owner": {"id": 606}, "assignee": {"id": 559}, "project": {"id": 339, "owner": {"id": 715}, "assignee": {"id": 802}}, "task": {"id": 370, "owner": {"id": 912}, "assignee": {"id": 1050}}, "job": {"id": 371, "assignee": {"id": 1133}}, "issue": {"id": 331, "owner": {"id": 66}, "assignee": {"id": 1335}}, "organization": {"id": 156}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 626}, "assignee": {"id": 546}, "project": {"id": 320, "owner": {"id": 748}, "assignee": {"id": 853}}, "task": {"id": 373, "owner": {"id": 956}, "assignee": {"id": 1032}}, "job": {"id": 364, "assignee": {"id": 1135}}, "issue": {"id": 381, "owner": {"id": 23}, "assignee": {"id": 1342}}, "organization": {"id": 118}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "owner": {"id": 699}, "assignee": {"id": 592}, "project": {"id": 344, "owner": {"id": 763}, "assignee": {"id": 808}}, "task": {"id": 346, "owner": {"id": 982}, "assignee": {"id": 1002}}, "job": {"id": 349, "assignee": {"id": 1121}}, "issue": {"id": 337, "owner": {"id": 89}, "assignee": {"id": 1349}}, "organization": {"id": 1486}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "owner": {"id": 656}, "assignee": {"id": 592}, "project": {"id": 360, "owner": {"id": 781}, "assignee": {"id": 849}}, "task": {"id": 347, "owner": {"id": 970}, "assignee": {"id": 1081}}, "job": {"id": 368, "assignee": {"id": 1178}}, "issue": {"id": 341, "owner": {"id": 10}, "assignee": {"id": 1334}}, "organization": {"id": 1450}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 394, "owner": {"id": 666}, "assignee": {"id": 507}, "project": {"id": 325, "owner": {"id": 786}, "assignee": {"id": 881}}, "task": {"id": 378, "owner": {"id": 987}, "assignee": {"id": 1088}}, "job": {"id": 334, "assignee": {"id": 1170}}, "issue": {"id": 355, "owner": {"id": 73}, "assignee": {"id": 1341}}, "organization": {"id": 199}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 326, "owner": {"id": 653}, "assignee": {"id": 510}, "project": {"id": 365, "owner": {"id": 763}, "assignee": {"id": 808}}, "task": {"id": 364, "owner": {"id": 910}, "assignee": {"id": 1037}}, "job": {"id": 386, "assignee": {"id": 1101}}, "issue": {"id": 398, "owner": {"id": 12}, "assignee": {"id": 1351}}, "organization": {"id": 173}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 635}, "assignee": {"id": 595}, "project": {"id": 387, "owner": {"id": 734}, "assignee": {"id": 820}}, "task": {"id": 302, "owner": {"id": 933}, "assignee": {"id": 1041}}, "job": {"id": 349, "assignee": {"id": 1118}}, "issue": {"id": 301, "owner": {"id": 89}, "assignee": {"id": 1362}}, "organization": {"id": 1463}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 334, "owner": {"id": 643}, "assignee": {"id": 570}, "project": {"id": 309, "owner": {"id": 734}, "assignee": {"id": 875}}, "task": {"id": 389, "owner": {"id": 979}, "assignee": {"id": 1084}}, "job": {"id": 359, "assignee": {"id": 1150}}, "issue": {"id": 395, "owner": {"id": 89}, "assignee": {"id": 1317}}, "organization": {"id": 1477}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 677}, "assignee": {"id": 571}, "project": {"id": 318, "owner": {"id": 768}, "assignee": {"id": 821}}, "task": {"id": 325, "owner": {"id": 982}, "assignee": {"id": 1085}}, "job": {"id": 319, "assignee": {"id": 1132}}, "issue": {"id": 395, "owner": {"id": 46}, "assignee": {"id": 1333}}, "organization": {"id": 110}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 381, "owner": {"id": 629}, "assignee": {"id": 550}, "project": {"id": 356, "owner": {"id": 763}, "assignee": {"id": 842}}, "task": {"id": 370, "owner": {"id": 963}, "assignee": {"id": 1070}}, "job": {"id": 315, "assignee": {"id": 1146}}, "issue": {"id": 377, "owner": {"id": 6}, "assignee": {"id": 1334}}, "organization": {"id": 165}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 392, "owner": {"id": 685}, "assignee": {"id": 595}, "project": {"id": 359, "owner": {"id": 728}, "assignee": {"id": 802}}, "task": {"id": 362, "owner": {"id": 978}, "assignee": {"id": 1009}}, "job": {"id": 312, "assignee": {"id": 1160}}, "issue": {"id": 396, "owner": {"id": 1}, "assignee": {"id": 1329}}, "organization": {"id": 1473}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 323, "owner": {"id": 651}, "assignee": {"id": 516}, "project": {"id": 300, "owner": {"id": 786}, "assignee": {"id": 869}}, "task": {"id": 385, "owner": {"id": 966}, "assignee": {"id": 1013}}, "job": {"id": 353, "assignee": {"id": 1100}}, "issue": {"id": 393, "owner": {"id": 46}, "assignee": {"id": 1344}}, "organization": {"id": 1485}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 359, "owner": {"id": 633}, "assignee": {"id": 523}, "project": {"id": 305, "owner": {"id": 770}, "assignee": {"id": 887}}, "task": {"id": 357, "owner": {"id": 989}, "assignee": {"id": 1099}}, "job": {"id": 342, "assignee": {"id": 1133}}, "issue": {"id": 350, "owner": {"id": 65}, "assignee": {"id": 1399}}, "organization": {"id": 138}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 639}, "assignee": {"id": 517}, "project": {"id": 350, "owner": {"id": 768}, "assignee": {"id": 893}}, "task": {"id": 380, "owner": {"id": 901}, "assignee": {"id": 1074}}, "job": {"id": 312, "assignee": {"id": 1190}}, "issue": {"id": 397, "owner": {"id": 45}, "assignee": {"id": 1315}}, "organization": {"id": 115}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 325, "owner": {"id": 650}, "assignee": {"id": 505}, "project": {"id": 395, "owner": {"id": 799}, "assignee": {"id": 884}}, "task": {"id": 373, "owner": {"id": 989}, "assignee": {"id": 1093}}, "job": {"id": 304, "assignee": {"id": 1117}}, "issue": {"id": 331, "owner": {"id": 7}, "assignee": {"id": 1385}}, "organization": {"id": 1445}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 371, "owner": {"id": 668}, "assignee": {"id": 505}, "project": {"id": 300, "owner": {"id": 717}, "assignee": {"id": 834}}, "task": {"id": 397, "owner": {"id": 937}, "assignee": {"id": 1079}}, "job": {"id": 311, "assignee": {"id": 1181}}, "issue": {"id": 320, "owner": {"id": 93}, "assignee": {"id": 1386}}, "organization": {"id": 1423}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 358, "owner": {"id": 613}, "assignee": {"id": 510}, "project": {"id": 382, "owner": {"id": 778}, "assignee": {"id": 849}}, "task": {"id": 399, "owner": {"id": 942}, "assignee": {"id": 1093}}, "job": {"id": 366, "assignee": {"id": 1107}}, "issue": {"id": 372, "owner": {"id": 64}, "assignee": {"id": 1365}}, "organization": {"id": 156}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 320, "owner": {"id": 675}, "assignee": {"id": 569}, "project": {"id": 365, "owner": {"id": 734}, "assignee": {"id": 844}}, "task": {"id": 307, "owner": {"id": 944}, "assignee": {"id": 1056}}, "job": {"id": 334, "assignee": {"id": 1101}}, "issue": {"id": 373, "owner": {"id": 1}, "assignee": {"id": 1381}}, "organization": {"id": 155}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 612}, "assignee": {"id": 505}, "project": {"id": 353, "owner": {"id": 722}, "assignee": {"id": 862}}, "task": {"id": 357, "owner": {"id": 933}, "assignee": {"id": 1060}}, "job": {"id": 332, "assignee": {"id": 1195}}, "issue": {"id": 309, "owner": {"id": 61}, "assignee": {"id": 1314}}, "organization": {"id": 1468}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "owner": {"id": 642}, "assignee": {"id": 531}, "project": {"id": 370, "owner": {"id": 788}, "assignee": {"id": 898}}, "task": {"id": 374, "owner": {"id": 979}, "assignee": {"id": 1006}}, "job": {"id": 312, "assignee": {"id": 1162}}, "issue": {"id": 332, "owner": {"id": 37}, "assignee": {"id": 1379}}, "organization": {"id": 1476}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "owner": {"id": 688}, "assignee": {"id": 561}, "project": {"id": 355, "owner": {"id": 719}, "assignee": {"id": 877}}, "task": {"id": 311, "owner": {"id": 922}, "assignee": {"id": 1034}}, "job": {"id": 322, "assignee": {"id": 1145}}, "issue": {"id": 340, "owner": {"id": 35}, "assignee": {"id": 1342}}, "organization": {"id": 134}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 371, "owner": {"id": 606}, "assignee": {"id": 525}, "project": {"id": 326, "owner": {"id": 761}, "assignee": {"id": 873}}, "task": {"id": 333, "owner": {"id": 958}, "assignee": {"id": 1009}}, "job": {"id": 344, "assignee": {"id": 1113}}, "issue": {"id": 327, "owner": {"id": 89}, "assignee": {"id": 1348}}, "organization": {"id": 186}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 696}, "assignee": {"id": 572}, "project": {"id": 347, "owner": {"id": 777}, "assignee": {"id": 808}}, "task": {"id": 348, "owner": {"id": 968}, "assignee": {"id": 1074}}, "job": {"id": 379, "assignee": {"id": 1106}}, "issue": {"id": 357, "owner": {"id": 48}, "assignee": {"id": 1354}}, "organization": {"id": 1424}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 619}, "assignee": {"id": 570}, "project": {"id": 304, "owner": {"id": 717}, "assignee": {"id": 868}}, "task": {"id": 312, "owner": {"id": 986}, "assignee": {"id": 1084}}, "job": {"id": 390, "assignee": {"id": 1121}}, "issue": {"id": 305, "owner": {"id": 23}, "assignee": {"id": 1334}}, "organization": {"id": 1418}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 326, "owner": {"id": 610}, "assignee": {"id": 508}, "project": {"id": 378, "owner": {"id": 776}, "assignee": {"id": 872}}, "task": {"id": 372, "owner": {"id": 960}, "assignee": {"id": 1039}}, "job": {"id": 371, "assignee": {"id": 1193}}, "issue": {"id": 365, "owner": {"id": 47}, "assignee": {"id": 1378}}, "organization": {"id": 162}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 365, "owner": {"id": 628}, "assignee": {"id": 523}, "project": {"id": 320, "owner": {"id": 717}, "assignee": {"id": 831}}, "task": {"id": 300, "owner": {"id": 971}, "assignee": {"id": 1032}}, "job": {"id": 300, "assignee": {"id": 1104}}, "issue": {"id": 362, "owner": {"id": 77}, "assignee": {"id": 1309}}, "organization": {"id": 101}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 354, "owner": {"id": 607}, "assignee": {"id": 557}, "project": {"id": 328, "owner": {"id": 798}, "assignee": {"id": 877}}, "task": {"id": 361, "owner": {"id": 961}, "assignee": {"id": 1058}}, "job": {"id": 310, "assignee": {"id": 1198}}, "issue": {"id": 380, "owner": {"id": 14}, "assignee": {"id": 1371}}, "organization": {"id": 1475}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 382, "owner": {"id": 605}, "assignee": {"id": 531}, "project": {"id": 325, "owner": {"id": 733}, "assignee": {"id": 814}}, "task": {"id": 304, "owner": {"id": 923}, "assignee": {"id": 1052}}, "job": {"id": 324, "assignee": {"id": 1151}}, "issue": {"id": 301, "owner": {"id": 28}, "assignee": {"id": 1348}}, "organization": {"id": 1497}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 390, "owner": {"id": 619}, "assignee": {"id": 563}, "project": {"id": 375, "owner": {"id": 784}, "assignee": {"id": 817}}, "task": {"id": 345, "owner": {"id": 938}, "assignee": {"id": 1012}}, "job": {"id": 333, "assignee": {"id": 1192}}, "issue": {"id": 384, "owner": {"id": 15}, "assignee": {"id": 1317}}, "organization": {"id": 121}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 393, "owner": {"id": 602}, "assignee": {"id": 565}, "project": {"id": 339, "owner": {"id": 744}, "assignee": {"id": 835}}, "task": {"id": 341, "owner": {"id": 973}, "assignee": {"id": 1085}}, "job": {"id": 372, "assignee": {"id": 1159}}, "issue": {"id": 366, "owner": {"id": 77}, "assignee": {"id": 1323}}, "organization": {"id": 163}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 355, "owner": {"id": 692}, "assignee": {"id": 508}, "project": {"id": 316, "owner": {"id": 754}, "assignee": {"id": 826}}, "task": {"id": 378, "owner": {"id": 967}, "assignee": {"id": 1030}}, "job": {"id": 321, "assignee": {"id": 1119}}, "issue": {"id": 396, "owner": {"id": 40}, "assignee": {"id": 1398}}, "organization": {"id": 1417}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 656}, "assignee": {"id": 591}, "project": {"id": 302, "owner": {"id": 701}, "assignee": {"id": 837}}, "task": {"id": 342, "owner": {"id": 945}, "assignee": {"id": 1044}}, "job": {"id": 337, "assignee": {"id": 1186}}, "issue": {"id": 354, "owner": {"id": 1}, "assignee": {"id": 1330}}, "organization": {"id": 1418}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 640}, "assignee": {"id": 502}, "project": {"id": 350, "owner": {"id": 728}, "assignee": {"id": 828}}, "task": {"id": 339, "owner": {"id": 918}, "assignee": {"id": 1004}}, "job": {"id": 392, "assignee": {"id": 1131}}, "issue": {"id": 379, "owner": {"id": 0}, "assignee": {"id": 1311}}, "organization": {"id": 107}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 307, "owner": {"id": 620}, "assignee": {"id": 506}, "project": {"id": 311, "owner": {"id": 766}, "assignee": {"id": 806}}, "task": {"id": 390, "owner": {"id": 917}, "assignee": {"id": 1020}}, "job": {"id": 326, "assignee": {"id": 1166}}, "issue": {"id": 333, "owner": {"id": 86}, "assignee": {"id": 1349}}, "organization": {"id": 189}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 384, "owner": {"id": 677}, "assignee": {"id": 576}, "project": {"id": 373, "owner": {"id": 718}, "assignee": {"id": 877}}, "task": {"id": 381, "owner": {"id": 910}, "assignee": {"id": 1043}}, "job": {"id": 348, "assignee": {"id": 1152}}, "issue": {"id": 344, "owner": {"id": 30}, "assignee": {"id": 1358}}, "organization": {"id": 1422}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 324, "owner": {"id": 609}, "assignee": {"id": 570}, "project": {"id": 341, "owner": {"id": 780}, "assignee": {"id": 894}}, "task": {"id": 384, "owner": {"id": 988}, "assignee": {"id": 1014}}, "job": {"id": 362, "assignee": {"id": 1109}}, "issue": {"id": 312, "owner": {"id": 65}, "assignee": {"id": 1390}}, "organization": {"id": 1450}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "owner": {"id": 632}, "assignee": {"id": 517}, "project": {"id": 345, "owner": {"id": 754}, "assignee": {"id": 888}}, "task": {"id": 389, "owner": {"id": 992}, "assignee": {"id": 1076}}, "job": {"id": 335, "assignee": {"id": 1159}}, "issue": {"id": 390, "owner": {"id": 31}, "assignee": {"id": 1304}}, "organization": {"id": 118}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "owner": {"id": 685}, "assignee": {"id": 534}, "project": {"id": 357, "owner": {"id": 713}, "assignee": {"id": 890}}, "task": {"id": 313, "owner": {"id": 916}, "assignee": {"id": 1025}}, "job": {"id": 386, "assignee": {"id": 1138}}, "issue": {"id": 329, "owner": {"id": 53}, "assignee": {"id": 1372}}, "organization": {"id": 189}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 633}, "assignee": {"id": 555}, "project": {"id": 381, "owner": {"id": 703}, "assignee": {"id": 840}}, "task": {"id": 337, "owner": {"id": 913}, "assignee": {"id": 1027}}, "job": {"id": 346, "assignee": {"id": 1178}}, "issue": {"id": 384, "owner": {"id": 63}, "assignee": {"id": 1300}}, "organization": {"id": 1445}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "owner": {"id": 625}, "assignee": {"id": 573}, "project": {"id": 385, "owner": {"id": 725}, "assignee": {"id": 821}}, "task": {"id": 393, "owner": {"id": 979}, "assignee": {"id": 1037}}, "job": {"id": 361, "assignee": {"id": 1106}}, "issue": {"id": 331, "owner": {"id": 72}, "assignee": {"id": 1388}}, "organization": {"id": 1450}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "owner": {"id": 615}, "assignee": {"id": 516}, "project": {"id": 398, "owner": {"id": 740}, "assignee": {"id": 890}}, "task": {"id": 378, "owner": {"id": 965}, "assignee": {"id": 1045}}, "job": {"id": 385, "assignee": {"id": 1112}}, "issue": {"id": 378, "owner": {"id": 15}, "assignee": {"id": 1307}}, "organization": {"id": 163}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "owner": {"id": 623}, "assignee": {"id": 528}, "project": {"id": 336, "owner": {"id": 782}, "assignee": {"id": 823}}, "task": {"id": 363, "owner": {"id": 980}, "assignee": {"id": 1025}}, "job": {"id": 335, "assignee": {"id": 1156}}, "issue": {"id": 369, "owner": {"id": 42}, "assignee": {"id": 1333}}, "organization": {"id": 188}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 642}, "assignee": {"id": 592}, "project": {"id": 328, "owner": {"id": 735}, "assignee": {"id": 855}}, "task": {"id": 384, "owner": {"id": 951}, "assignee": {"id": 1025}}, "job": {"id": 392, "assignee": {"id": 1120}}, "issue": {"id": 399, "owner": {"id": 68}, "assignee": {"id": 1372}}, "organization": {"id": 1437}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "owner": {"id": 654}, "assignee": {"id": 531}, "project": {"id": 302, "owner": {"id": 715}, "assignee": {"id": 842}}, "task": {"id": 388, "owner": {"id": 979}, "assignee": {"id": 1015}}, "job": {"id": 311, "assignee": {"id": 1168}}, "issue": {"id": 316, "owner": {"id": 44}, "assignee": {"id": 1315}}, "organization": {"id": 1408}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 659}, "assignee": {"id": 549}, "project": {"id": 361, "owner": {"id": 729}, "assignee": {"id": 862}}, "task": {"id": 358, "owner": {"id": 999}, "assignee": {"id": 1003}}, "job": {"id": 321, "assignee": {"id": 1136}}, "issue": {"id": 350, "owner": {"id": 58}, "assignee": {"id": 1301}}, "organization": {"id": 199}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 396, "owner": {"id": 699}, "assignee": {"id": 596}, "project": {"id": 318, "owner": {"id": 771}, "assignee": {"id": 834}}, "task": {"id": 378, "owner": {"id": 986}, "assignee": {"id": 1006}}, "job": {"id": 364, "assignee": {"id": 1110}}, "issue": {"id": 378, "owner": {"id": 84}, "assignee": {"id": 1311}}, "organization": {"id": 118}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 660}, "assignee": {"id": 594}, "project": {"id": 363, "owner": {"id": 725}, "assignee": {"id": 899}}, "task": {"id": 350, "owner": {"id": 904}, "assignee": {"id": 1035}}, "job": {"id": 347, "assignee": {"id": 1107}}, "issue": {"id": 391, "owner": {"id": 7}, "assignee": {"id": 1310}}, "organization": {"id": 1410}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 650}, "assignee": {"id": 558}, "project": {"id": 371, "owner": {"id": 789}, "assignee": {"id": 823}}, "task": {"id": 374, "owner": {"id": 926}, "assignee": {"id": 1050}}, "job": {"id": 320, "assignee": {"id": 1125}}, "issue": {"id": 362, "owner": {"id": 44}, "assignee": {"id": 1360}}, "organization": {"id": 1465}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"id": 302, "owner": {"id": 623}, "assignee": {"id": 550}, "project": {"id": 364, "owner": {"id": 708}, "assignee": {"id": 887}}, "task": {"id": 399, "owner": {"id": 981}, "assignee": {"id": 1067}}, "job": {"id": 328, "assignee": {"id": 1166}}, "issue": {"id": 352, "owner": {"id": 68}, "assignee": {"id": 1337}}, "organization": {"id": 115}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 689}, "assignee": {"id": 550}, "project": {"id": 334, "owner": {"id": 770}, "assignee": {"id": 830}}, "task": {"id": 348, "owner": {"id": 932}, "assignee": {"id": 1015}}, "job": {"id": 307, "assignee": {"id": 1117}}, "issue": {"id": 324, "owner": {"id": 89}, "assignee": {"id": 1387}}, "organization": {"id": 126}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 657}, "assignee": {"id": 564}, "project": {"id": 379, "owner": {"id": 795}, "assignee": {"id": 840}}, "task": {"id": 379, "owner": {"id": 910}, "assignee": {"id": 1044}}, "job": {"id": 330, "assignee": {"id": 1121}}, "issue": {"id": 322, "owner": {"id": 98}, "assignee": {"id": 1384}}, "organization": {"id": 1450}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 372, "owner": {"id": 653}, "assignee": {"id": 548}, "project": {"id": 314, "owner": {"id": 768}, "assignee": {"id": 819}}, "task": {"id": 392, "owner": {"id": 919}, "assignee": {"id": 1089}}, "job": {"id": 354, "assignee": {"id": 1146}}, "issue": {"id": 322, "owner": {"id": 67}, "assignee": {"id": 1335}}, "organization": {"id": 1407}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 363, "owner": {"id": 663}, "assignee": {"id": 590}, "project": {"id": 325, "owner": {"id": 733}, "assignee": {"id": 856}}, "task": {"id": 376, "owner": {"id": 969}, "assignee": {"id": 1002}}, "job": {"id": 318, "assignee": {"id": 1166}}, "issue": {"id": 338, "owner": {"id": 9}, "assignee": {"id": 1304}}, "organization": {"id": 153}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 307, "owner": {"id": 651}, "assignee": {"id": 520}, "project": {"id": 352, "owner": {"id": 706}, "assignee": {"id": 876}}, "task": {"id": 399, "owner": {"id": 963}, "assignee": {"id": 1030}}, "job": {"id": 394, "assignee": {"id": 1137}}, "issue": {"id": 303, "owner": {"id": 63}, "assignee": {"id": 1358}}, "organization": {"id": 158}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 323, "owner": {"id": 600}, "assignee": {"id": 592}, "project": {"id": 397, "owner": {"id": 703}, "assignee": {"id": 864}}, "task": {"id": 363, "owner": {"id": 978}, "assignee": {"id": 1013}}, "job": {"id": 314, "assignee": {"id": 1102}}, "issue": {"id": 381, "owner": {"id": 25}, "assignee": {"id": 1324}}, "organization": {"id": 1469}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 387, "owner": {"id": 613}, "assignee": {"id": 546}, "project": {"id": 352, "owner": {"id": 789}, "assignee": {"id": 817}}, "task": {"id": 301, "owner": {"id": 961}, "assignee": {"id": 1091}}, "job": {"id": 332, "assignee": {"id": 1173}}, "issue": {"id": 319, "owner": {"id": 17}, "assignee": {"id": 1308}}, "organization": {"id": 1406}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 666}, "assignee": {"id": 584}, "project": {"id": 309, "owner": {"id": 717}, "assignee": {"id": 806}}, "task": {"id": 395, "owner": {"id": 997}, "assignee": {"id": 1086}}, "job": {"id": 324, "assignee": {"id": 1163}}, "issue": {"id": 341, "owner": {"id": 70}, "assignee": {"id": 1325}}, "organization": {"id": 143}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "owner": {"id": 662}, "assignee": {"id": 558}, "project": {"id": 379, "owner": {"id": 746}, "assignee": {"id": 862}}, "task": {"id": 371, "owner": {"id": 999}, "assignee": {"id": 1034}}, "job": {"id": 392, "assignee": {"id": 1177}}, "issue": {"id": 355, "owner": {"id": 9}, "assignee": {"id": 1378}}, "organization": {"id": 114}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "owner": {"id": 624}, "assignee": {"id": 549}, "project": {"id": 307, "owner": {"id": 782}, "assignee": {"id": 855}}, "task": {"id": 322, "owner": {"id": 986}, "assignee": {"id": 1048}}, "job": {"id": 303, "assignee": {"id": 1142}}, "issue": {"id": 303, "owner": {"id": 47}, "assignee": {"id": 1331}}, "organization": {"id": 1491}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "owner": {"id": 693}, "assignee": {"id": 536}, "project": {"id": 335, "owner": {"id": 760}, "assignee": {"id": 855}}, "task": {"id": 310, "owner": {"id": 986}, "assignee": {"id": 1049}}, "job": {"id": 338, "assignee": {"id": 1156}}, "issue": {"id": 373, "owner": {"id": 93}, "assignee": {"id": 1330}}, "organization": {"id": 1460}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "owner": {"id": 664}, "assignee": {"id": 572}, "project": {"id": 348, "owner": {"id": 753}, "assignee": {"id": 897}}, "task": {"id": 320, "owner": {"id": 917}, "assignee": {"id": 1006}}, "job": {"id": 327, "assignee": {"id": 1131}}, "issue": {"id": 371, "owner": {"id": 0}, "assignee": {"id": 1389}}, "organization": {"id": 105}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "owner": {"id": 646}, "assignee": {"id": 504}, "project": {"id": 313, "owner": {"id": 787}, "assignee": {"id": 850}}, "task": {"id": 332, "owner": {"id": 975}, "assignee": {"id": 1047}}, "job": {"id": 331, "assignee": {"id": 1138}}, "issue": {"id": 377, "owner": {"id": 76}, "assignee": {"id": 1367}}, "organization": {"id": 140}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 659}, "assignee": {"id": 519}, "project": {"id": 378, "owner": {"id": 762}, "assignee": {"id": 861}}, "task": {"id": 374, "owner": {"id": 940}, "assignee": {"id": 1034}}, "job": {"id": 375, "assignee": {"id": 1192}}, "issue": {"id": 361, "owner": {"id": 28}, "assignee": {"id": 1367}}, "organization": {"id": 1441}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 623}, "assignee": {"id": 588}, "project": {"id": 354, "owner": {"id": 744}, "assignee": {"id": 895}}, "task": {"id": 357, "owner": {"id": 937}, "assignee": {"id": 1016}}, "job": {"id": 300, "assignee": {"id": 1171}}, "issue": {"id": 309, "owner": {"id": 7}, "assignee": {"id": 1397}}, "organization": {"id": 1479}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 309, "owner": {"id": 640}, "assignee": {"id": 512}, "project": {"id": 353, "owner": {"id": 777}, "assignee": {"id": 886}}, "task": {"id": 339, "owner": {"id": 935}, "assignee": {"id": 1057}}, "job": {"id": 330, "assignee": {"id": 1103}}, "issue": {"id": 300, "owner": {"id": 99}, "assignee": {"id": 1314}}, "organization": {"id": 126}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 696}, "assignee": {"id": 530}, "project": {"id": 366, "owner": {"id": 736}, "assignee": {"id": 809}}, "task": {"id": 383, "owner": {"id": 909}, "assignee": {"id": 1002}}, "job": {"id": 384, "assignee": {"id": 1147}}, "issue": {"id": 358, "owner": {"id": 67}, "assignee": {"id": 1352}}, "organization": {"id": 122}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 658}, "assignee": {"id": 541}, "project": {"id": 305, "owner": {"id": 727}, "assignee": {"id": 873}}, "task": {"id": 321, "owner": {"id": 934}, "assignee": {"id": 1057}}, "job": {"id": 347, "assignee": {"id": 1166}}, "issue": {"id": 346, "owner": {"id": 27}, "assignee": {"id": 1361}}, "organization": {"id": 1496}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 642}, "assignee": {"id": 506}, "project": {"id": 329, "owner": {"id": 711}, "assignee": {"id": 852}}, "task": {"id": 307, "owner": {"id": 991}, "assignee": {"id": 1005}}, "job": {"id": 398, "assignee": {"id": 1132}}, "issue": {"id": 349, "owner": {"id": 2}, "assignee": {"id": 1330}}, "organization": {"id": 1450}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 325, "owner": {"id": 629}, "assignee": {"id": 591}, "project": {"id": 345, "owner": {"id": 774}, "assignee": {"id": 898}}, "task": {"id": 335, "owner": {"id": 959}, "assignee": {"id": 1074}}, "job": {"id": 313, "assignee": {"id": 1139}}, "issue": {"id": 378, "owner": {"id": 26}, "assignee": {"id": 1343}}, "organization": {"id": 130}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 332, "owner": {"id": 667}, "assignee": {"id": 554}, "project": {"id": 393, "owner": {"id": 740}, "assignee": {"id": 819}}, "task": {"id": 357, "owner": {"id": 952}, "assignee": {"id": 1022}}, "job": {"id": 328, "assignee": {"id": 1176}}, "issue": {"id": 387, "owner": {"id": 13}, "assignee": {"id": 1367}}, "organization": {"id": 130}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 305, "owner": {"id": 669}, "assignee": {"id": 533}, "project": {"id": 369, "owner": {"id": 720}, "assignee": {"id": 880}}, "task": {"id": 389, "owner": {"id": 909}, "assignee": {"id": 1076}}, "job": {"id": 312, "assignee": {"id": 1147}}, "issue": {"id": 314, "owner": {"id": 59}, "assignee": {"id": 1373}}, "organization": {"id": 1486}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_OWNER_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 355, "owner": {"id": 622}, "assignee": {"id": 519}, "project": {"id": 303, "owner": {"id": 778}, "assignee": {"id": 880}}, "task": {"id": 334, "owner": {"id": 991}, "assignee": {"id": 1050}}, "job": {"id": 301, "assignee": {"id": 1167}}, "issue": {"id": 315, "owner": {"id": 25}, "assignee": {"id": 1362}}, "organization": {"id": 1471}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 363, "owner": {"id": 699}, "assignee": {"id": 568}, "project": {"id": 351, "owner": {"id": 786}, "assignee": {"id": 823}}, "task": {"id": 393, "owner": {"id": 943}, "assignee": {"id": 1081}}, "job": {"id": 371, "assignee": {"id": 1111}}, "issue": {"id": 371, "owner": {"id": 1279}, "assignee": {"id": 9}}, "organization": {"id": 114}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 676}, "assignee": {"id": 541}, "project": {"id": 395, "owner": {"id": 743}, "assignee": {"id": 824}}, "task": {"id": 303, "owner": {"id": 919}, "assignee": {"id": 1071}}, "job": {"id": 347, "assignee": {"id": 1169}}, "issue": {"id": 337, "owner": {"id": 1238}, "assignee": {"id": 51}}, "organization": {"id": 126}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 399, "owner": {"id": 645}, "assignee": {"id": 547}, "project": {"id": 316, "owner": {"id": 776}, "assignee": {"id": 831}}, "task": {"id": 334, "owner": {"id": 917}, "assignee": {"id": 1075}}, "job": {"id": 351, "assignee": {"id": 1180}}, "issue": {"id": 351, "owner": {"id": 1294}, "assignee": {"id": 86}}, "organization": {"id": 1459}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 369, "owner": {"id": 675}, "assignee": {"id": 510}, "project": {"id": 339, "owner": {"id": 796}, "assignee": {"id": 874}}, "task": {"id": 337, "owner": {"id": 968}, "assignee": {"id": 1021}}, "job": {"id": 317, "assignee": {"id": 1199}}, "issue": {"id": 367, "owner": {"id": 1275}, "assignee": {"id": 80}}, "organization": {"id": 1499}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "owner": {"id": 678}, "assignee": {"id": 553}, "project": {"id": 323, "owner": {"id": 773}, "assignee": {"id": 816}}, "task": {"id": 337, "owner": {"id": 907}, "assignee": {"id": 1077}}, "job": {"id": 313, "assignee": {"id": 1194}}, "issue": {"id": 348, "owner": {"id": 1248}, "assignee": {"id": 87}}, "organization": {"id": 153}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "owner": {"id": 668}, "assignee": {"id": 525}, "project": {"id": 332, "owner": {"id": 746}, "assignee": {"id": 813}}, "task": {"id": 364, "owner": {"id": 911}, "assignee": {"id": 1078}}, "job": {"id": 383, "assignee": {"id": 1167}}, "issue": {"id": 387, "owner": {"id": 1211}, "assignee": {"id": 93}}, "organization": {"id": 147}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "owner": {"id": 634}, "assignee": {"id": 558}, "project": {"id": 382, "owner": {"id": 713}, "assignee": {"id": 861}}, "task": {"id": 301, "owner": {"id": 967}, "assignee": {"id": 1069}}, "job": {"id": 392, "assignee": {"id": 1142}}, "issue": {"id": 343, "owner": {"id": 1235}, "assignee": {"id": 16}}, "organization": {"id": 1460}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "owner": {"id": 634}, "assignee": {"id": 520}, "project": {"id": 345, "owner": {"id": 763}, "assignee": {"id": 843}}, "task": {"id": 313, "owner": {"id": 913}, "assignee": {"id": 1060}}, "job": {"id": 396, "assignee": {"id": 1115}}, "issue": {"id": 318, "owner": {"id": 1253}, "assignee": {"id": 37}}, "organization": {"id": 1436}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 677}, "assignee": {"id": 593}, "project": {"id": 339, "owner": {"id": 774}, "assignee": {"id": 892}}, "task": {"id": 397, "owner": {"id": 935}, "assignee": {"id": 1095}}, "job": {"id": 325, "assignee": {"id": 1182}}, "issue": {"id": 379, "owner": {"id": 1218}, "assignee": {"id": 43}}, "organization": {"id": 151}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "owner": {"id": 608}, "assignee": {"id": 550}, "project": {"id": 389, "owner": {"id": 788}, "assignee": {"id": 856}}, "task": {"id": 390, "owner": {"id": 927}, "assignee": {"id": 1040}}, "job": {"id": 341, "assignee": {"id": 1139}}, "issue": {"id": 357, "owner": {"id": 1235}, "assignee": {"id": 2}}, "organization": {"id": 133}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 603}, "assignee": {"id": 519}, "project": {"id": 304, "owner": {"id": 743}, "assignee": {"id": 892}}, "task": {"id": 365, "owner": {"id": 911}, "assignee": {"id": 1072}}, "job": {"id": 363, "assignee": {"id": 1137}}, "issue": {"id": 349, "owner": {"id": 1294}, "assignee": {"id": 9}}, "organization": {"id": 1438}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 343, "owner": {"id": 691}, "assignee": {"id": 554}, "project": {"id": 368, "owner": {"id": 773}, "assignee": {"id": 804}}, "task": {"id": 312, "owner": {"id": 925}, "assignee": {"id": 1090}}, "job": {"id": 333, "assignee": {"id": 1191}}, "issue": {"id": 322, "owner": {"id": 1256}, "assignee": {"id": 20}}, "organization": {"id": 1496}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 348, "owner": {"id": 665}, "assignee": {"id": 528}, "project": {"id": 330, "owner": {"id": 701}, "assignee": {"id": 885}}, "task": {"id": 395, "owner": {"id": 976}, "assignee": {"id": 1015}}, "job": {"id": 375, "assignee": {"id": 1168}}, "issue": {"id": 328, "owner": {"id": 1201}, "assignee": {"id": 56}}, "organization": {"id": 181}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 369, "owner": {"id": 616}, "assignee": {"id": 512}, "project": {"id": 394, "owner": {"id": 740}, "assignee": {"id": 850}}, "task": {"id": 385, "owner": {"id": 914}, "assignee": {"id": 1049}}, "job": {"id": 364, "assignee": {"id": 1194}}, "issue": {"id": 316, "owner": {"id": 1202}, "assignee": {"id": 34}}, "organization": {"id": 175}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 316, "owner": {"id": 675}, "assignee": {"id": 594}, "project": {"id": 322, "owner": {"id": 779}, "assignee": {"id": 809}}, "task": {"id": 385, "owner": {"id": 934}, "assignee": {"id": 1066}}, "job": {"id": 395, "assignee": {"id": 1124}}, "issue": {"id": 327, "owner": {"id": 1288}, "assignee": {"id": 17}}, "organization": {"id": 1482}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 653}, "assignee": {"id": 522}, "project": {"id": 384, "owner": {"id": 793}, "assignee": {"id": 856}}, "task": {"id": 372, "owner": {"id": 912}, "assignee": {"id": 1078}}, "job": {"id": 341, "assignee": {"id": 1174}}, "issue": {"id": 375, "owner": {"id": 1218}, "assignee": {"id": 29}}, "organization": {"id": 1418}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 369, "owner": {"id": 642}, "assignee": {"id": 561}, "project": {"id": 322, "owner": {"id": 731}, "assignee": {"id": 804}}, "task": {"id": 388, "owner": {"id": 976}, "assignee": {"id": 1087}}, "job": {"id": 306, "assignee": {"id": 1105}}, "issue": {"id": 316, "owner": {"id": 1244}, "assignee": {"id": 44}}, "organization": {"id": 125}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 390, "owner": {"id": 618}, "assignee": {"id": 552}, "project": {"id": 313, "owner": {"id": 728}, "assignee": {"id": 873}}, "task": {"id": 357, "owner": {"id": 950}, "assignee": {"id": 1007}}, "job": {"id": 352, "assignee": {"id": 1125}}, "issue": {"id": 373, "owner": {"id": 1282}, "assignee": {"id": 78}}, "organization": {"id": 185}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 378, "owner": {"id": 691}, "assignee": {"id": 520}, "project": {"id": 304, "owner": {"id": 758}, "assignee": {"id": 878}}, "task": {"id": 304, "owner": {"id": 967}, "assignee": {"id": 1072}}, "job": {"id": 315, "assignee": {"id": 1101}}, "issue": {"id": 369, "owner": {"id": 1235}, "assignee": {"id": 25}}, "organization": {"id": 1446}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 393, "owner": {"id": 645}, "assignee": {"id": 523}, "project": {"id": 342, "owner": {"id": 779}, "assignee": {"id": 891}}, "task": {"id": 363, "owner": {"id": 916}, "assignee": {"id": 1005}}, "job": {"id": 351, "assignee": {"id": 1103}}, "issue": {"id": 391, "owner": {"id": 1200}, "assignee": {"id": 24}}, "organization": {"id": 1493}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 322, "owner": {"id": 680}, "assignee": {"id": 537}, "project": {"id": 380, "owner": {"id": 773}, "assignee": {"id": 825}}, "task": {"id": 378, "owner": {"id": 954}, "assignee": {"id": 1049}}, "job": {"id": 398, "assignee": {"id": 1187}}, "issue": {"id": 369, "owner": {"id": 1246}, "assignee": {"id": 47}}, "organization": {"id": 118}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 359, "owner": {"id": 670}, "assignee": {"id": 570}, "project": {"id": 398, "owner": {"id": 726}, "assignee": {"id": 809}}, "task": {"id": 314, "owner": {"id": 961}, "assignee": {"id": 1096}}, "job": {"id": 365, "assignee": {"id": 1105}}, "issue": {"id": 396, "owner": {"id": 1233}, "assignee": {"id": 0}}, "organization": {"id": 169}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 397, "owner": {"id": 610}, "assignee": {"id": 559}, "project": {"id": 305, "owner": {"id": 792}, "assignee": {"id": 847}}, "task": {"id": 322, "owner": {"id": 934}, "assignee": {"id": 1045}}, "job": {"id": 333, "assignee": {"id": 1151}}, "issue": {"id": 362, "owner": {"id": 1258}, "assignee": {"id": 16}}, "organization": {"id": 1488}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 335, "owner": {"id": 673}, "assignee": {"id": 592}, "project": {"id": 308, "owner": {"id": 758}, "assignee": {"id": 807}}, "task": {"id": 339, "owner": {"id": 969}, "assignee": {"id": 1001}}, "job": {"id": 318, "assignee": {"id": 1166}}, "issue": {"id": 386, "owner": {"id": 1274}, "assignee": {"id": 80}}, "organization": {"id": 1436}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "owner": {"id": 671}, "assignee": {"id": 514}, "project": {"id": 337, "owner": {"id": 752}, "assignee": {"id": 824}}, "task": {"id": 334, "owner": {"id": 970}, "assignee": {"id": 1078}}, "job": {"id": 372, "assignee": {"id": 1116}}, "issue": {"id": 324, "owner": {"id": 1246}, "assignee": {"id": 87}}, "organization": {"id": 129}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "owner": {"id": 603}, "assignee": {"id": 551}, "project": {"id": 368, "owner": {"id": 748}, "assignee": {"id": 839}}, "task": {"id": 384, "owner": {"id": 997}, "assignee": {"id": 1066}}, "job": {"id": 325, "assignee": {"id": 1102}}, "issue": {"id": 314, "owner": {"id": 1208}, "assignee": {"id": 57}}, "organization": {"id": 135}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 665}, "assignee": {"id": 584}, "project": {"id": 322, "owner": {"id": 759}, "assignee": {"id": 849}}, "task": {"id": 363, "owner": {"id": 961}, "assignee": {"id": 1031}}, "job": {"id": 311, "assignee": {"id": 1194}}, "issue": {"id": 342, "owner": {"id": 1282}, "assignee": {"id": 67}}, "organization": {"id": 1460}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "owner": {"id": 613}, "assignee": {"id": 588}, "project": {"id": 334, "owner": {"id": 710}, "assignee": {"id": 846}}, "task": {"id": 364, "owner": {"id": 978}, "assignee": {"id": 1077}}, "job": {"id": 347, "assignee": {"id": 1195}}, "issue": {"id": 304, "owner": {"id": 1215}, "assignee": {"id": 27}}, "organization": {"id": 1451}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 343, "owner": {"id": 682}, "assignee": {"id": 573}, "project": {"id": 387, "owner": {"id": 775}, "assignee": {"id": 861}}, "task": {"id": 379, "owner": {"id": 901}, "assignee": {"id": 1004}}, "job": {"id": 391, "assignee": {"id": 1176}}, "issue": {"id": 362, "owner": {"id": 1268}, "assignee": {"id": 43}}, "organization": {"id": 182}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "owner": {"id": 648}, "assignee": {"id": 539}, "project": {"id": 365, "owner": {"id": 726}, "assignee": {"id": 867}}, "task": {"id": 334, "owner": {"id": 977}, "assignee": {"id": 1009}}, "job": {"id": 307, "assignee": {"id": 1152}}, "issue": {"id": 336, "owner": {"id": 1235}, "assignee": {"id": 65}}, "organization": {"id": 171}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "owner": {"id": 696}, "assignee": {"id": 582}, "project": {"id": 359, "owner": {"id": 744}, "assignee": {"id": 807}}, "task": {"id": 315, "owner": {"id": 975}, "assignee": {"id": 1073}}, "job": {"id": 330, "assignee": {"id": 1120}}, "issue": {"id": 336, "owner": {"id": 1231}, "assignee": {"id": 58}}, "organization": {"id": 1452}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 647}, "assignee": {"id": 516}, "project": {"id": 328, "owner": {"id": 782}, "assignee": {"id": 879}}, "task": {"id": 313, "owner": {"id": 910}, "assignee": {"id": 1040}}, "job": {"id": 328, "assignee": {"id": 1144}}, "issue": {"id": 378, "owner": {"id": 1253}, "assignee": {"id": 37}}, "organization": {"id": 1415}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 320, "owner": {"id": 617}, "assignee": {"id": 503}, "project": {"id": 375, "owner": {"id": 709}, "assignee": {"id": 898}}, "task": {"id": 348, "owner": {"id": 990}, "assignee": {"id": 1010}}, "job": {"id": 385, "assignee": {"id": 1193}}, "issue": {"id": 374, "owner": {"id": 1201}, "assignee": {"id": 40}}, "organization": {"id": 101}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 323, "owner": {"id": 606}, "assignee": {"id": 517}, "project": {"id": 342, "owner": {"id": 799}, "assignee": {"id": 802}}, "task": {"id": 307, "owner": {"id": 951}, "assignee": {"id": 1034}}, "job": {"id": 397, "assignee": {"id": 1170}}, "issue": {"id": 391, "owner": {"id": 1291}, "assignee": {"id": 77}}, "organization": {"id": 127}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 635}, "assignee": {"id": 533}, "project": {"id": 312, "owner": {"id": 701}, "assignee": {"id": 888}}, "task": {"id": 340, "owner": {"id": 955}, "assignee": {"id": 1096}}, "job": {"id": 319, "assignee": {"id": 1137}}, "issue": {"id": 372, "owner": {"id": 1234}, "assignee": {"id": 60}}, "organization": {"id": 1472}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 378, "owner": {"id": 646}, "assignee": {"id": 550}, "project": {"id": 352, "owner": {"id": 709}, "assignee": {"id": 822}}, "task": {"id": 374, "owner": {"id": 956}, "assignee": {"id": 1020}}, "job": {"id": 337, "assignee": {"id": 1168}}, "issue": {"id": 380, "owner": {"id": 1210}, "assignee": {"id": 60}}, "organization": {"id": 1409}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 651}, "assignee": {"id": 509}, "project": {"id": 376, "owner": {"id": 732}, "assignee": {"id": 866}}, "task": {"id": 314, "owner": {"id": 927}, "assignee": {"id": 1067}}, "job": {"id": 318, "assignee": {"id": 1177}}, "issue": {"id": 305, "owner": {"id": 1283}, "assignee": {"id": 86}}, "organization": {"id": 104}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 309, "owner": {"id": 663}, "assignee": {"id": 549}, "project": {"id": 361, "owner": {"id": 721}, "assignee": {"id": 860}}, "task": {"id": 367, "owner": {"id": 910}, "assignee": {"id": 1046}}, "job": {"id": 350, "assignee": {"id": 1194}}, "issue": {"id": 323, "owner": {"id": 1278}, "assignee": {"id": 68}}, "organization": {"id": 128}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 337, "owner": {"id": 600}, "assignee": {"id": 513}, "project": {"id": 308, "owner": {"id": 741}, "assignee": {"id": 851}}, "task": {"id": 384, "owner": {"id": 984}, "assignee": {"id": 1053}}, "job": {"id": 364, "assignee": {"id": 1173}}, "issue": {"id": 364, "owner": {"id": 1246}, "assignee": {"id": 49}}, "organization": {"id": 1469}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 386, "owner": {"id": 614}, "assignee": {"id": 588}, "project": {"id": 349, "owner": {"id": 705}, "assignee": {"id": 827}}, "task": {"id": 308, "owner": {"id": 950}, "assignee": {"id": 1099}}, "job": {"id": 317, "assignee": {"id": 1115}}, "issue": {"id": 302, "owner": {"id": 1217}, "assignee": {"id": 78}}, "organization": {"id": 1418}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 330, "owner": {"id": 627}, "assignee": {"id": 504}, "project": {"id": 313, "owner": {"id": 703}, "assignee": {"id": 829}}, "task": {"id": 379, "owner": {"id": 974}, "assignee": {"id": 1069}}, "job": {"id": 353, "assignee": {"id": 1144}}, "issue": {"id": 372, "owner": {"id": 1260}, "assignee": {"id": 88}}, "organization": {"id": 190}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 334, "owner": {"id": 619}, "assignee": {"id": 587}, "project": {"id": 333, "owner": {"id": 731}, "assignee": {"id": 888}}, "task": {"id": 318, "owner": {"id": 995}, "assignee": {"id": 1027}}, "job": {"id": 347, "assignee": {"id": 1111}}, "issue": {"id": 371, "owner": {"id": 1296}, "assignee": {"id": 67}}, "organization": {"id": 133}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 366, "owner": {"id": 610}, "assignee": {"id": 557}, "project": {"id": 320, "owner": {"id": 714}, "assignee": {"id": 809}}, "task": {"id": 310, "owner": {"id": 961}, "assignee": {"id": 1020}}, "job": {"id": 311, "assignee": {"id": 1106}}, "issue": {"id": 373, "owner": {"id": 1296}, "assignee": {"id": 47}}, "organization": {"id": 1434}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 663}, "assignee": {"id": 512}, "project": {"id": 350, "owner": {"id": 798}, "assignee": {"id": 885}}, "task": {"id": 393, "owner": {"id": 973}, "assignee": {"id": 1098}}, "job": {"id": 305, "assignee": {"id": 1192}}, "issue": {"id": 311, "owner": {"id": 1240}, "assignee": {"id": 41}}, "organization": {"id": 1400}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "owner": {"id": 643}, "assignee": {"id": 543}, "project": {"id": 313, "owner": {"id": 778}, "assignee": {"id": 868}}, "task": {"id": 385, "owner": {"id": 969}, "assignee": {"id": 1011}}, "job": {"id": 310, "assignee": {"id": 1157}}, "issue": {"id": 320, "owner": {"id": 1225}, "assignee": {"id": 38}}, "organization": {"id": 130}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 639}, "assignee": {"id": 598}, "project": {"id": 396, "owner": {"id": 716}, "assignee": {"id": 863}}, "task": {"id": 321, "owner": {"id": 990}, "assignee": {"id": 1051}}, "job": {"id": 355, "assignee": {"id": 1137}}, "issue": {"id": 359, "owner": {"id": 1213}, "assignee": {"id": 54}}, "organization": {"id": 147}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 689}, "assignee": {"id": 522}, "project": {"id": 324, "owner": {"id": 765}, "assignee": {"id": 846}}, "task": {"id": 311, "owner": {"id": 940}, "assignee": {"id": 1081}}, "job": {"id": 388, "assignee": {"id": 1165}}, "issue": {"id": 333, "owner": {"id": 1273}, "assignee": {"id": 42}}, "organization": {"id": 1415}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "owner": {"id": 607}, "assignee": {"id": 529}, "project": {"id": 326, "owner": {"id": 773}, "assignee": {"id": 894}}, "task": {"id": 318, "owner": {"id": 978}, "assignee": {"id": 1082}}, "job": {"id": 386, "assignee": {"id": 1140}}, "issue": {"id": 356, "owner": {"id": 1235}, "assignee": {"id": 98}}, "organization": {"id": 1478}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "owner": {"id": 679}, "assignee": {"id": 524}, "project": {"id": 333, "owner": {"id": 736}, "assignee": {"id": 825}}, "task": {"id": 397, "owner": {"id": 991}, "assignee": {"id": 1038}}, "job": {"id": 312, "assignee": {"id": 1173}}, "issue": {"id": 304, "owner": {"id": 1281}, "assignee": {"id": 33}}, "organization": {"id": 104}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "owner": {"id": 612}, "assignee": {"id": 581}, "project": {"id": 320, "owner": {"id": 798}, "assignee": {"id": 873}}, "task": {"id": 302, "owner": {"id": 936}, "assignee": {"id": 1076}}, "job": {"id": 391, "assignee": {"id": 1103}}, "issue": {"id": 398, "owner": {"id": 1291}, "assignee": {"id": 17}}, "organization": {"id": 173}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 632}, "assignee": {"id": 555}, "project": {"id": 352, "owner": {"id": 770}, "assignee": {"id": 837}}, "task": {"id": 339, "owner": {"id": 926}, "assignee": {"id": 1030}}, "job": {"id": 396, "assignee": {"id": 1137}}, "issue": {"id": 320, "owner": {"id": 1209}, "assignee": {"id": 86}}, "organization": {"id": 1451}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "owner": {"id": 635}, "assignee": {"id": 595}, "project": {"id": 338, "owner": {"id": 751}, "assignee": {"id": 873}}, "task": {"id": 394, "owner": {"id": 999}, "assignee": {"id": 1047}}, "job": {"id": 396, "assignee": {"id": 1120}}, "issue": {"id": 346, "owner": {"id": 1223}, "assignee": {"id": 74}}, "organization": {"id": 1489}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 624}, "assignee": {"id": 597}, "project": {"id": 365, "owner": {"id": 758}, "assignee": {"id": 868}}, "task": {"id": 364, "owner": {"id": 995}, "assignee": {"id": 1074}}, "job": {"id": 324, "assignee": {"id": 1124}}, "issue": {"id": 318, "owner": {"id": 1290}, "assignee": {"id": 82}}, "organization": {"id": 168}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 629}, "assignee": {"id": 564}, "project": {"id": 390, "owner": {"id": 712}, "assignee": {"id": 833}}, "task": {"id": 323, "owner": {"id": 996}, "assignee": {"id": 1053}}, "job": {"id": 320, "assignee": {"id": 1162}}, "issue": {"id": 352, "owner": {"id": 1291}, "assignee": {"id": 14}}, "organization": {"id": 121}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 337, "owner": {"id": 631}, "assignee": {"id": 570}, "project": {"id": 301, "owner": {"id": 768}, "assignee": {"id": 832}}, "task": {"id": 322, "owner": {"id": 964}, "assignee": {"id": 1085}}, "job": {"id": 373, "assignee": {"id": 1153}}, "issue": {"id": 372, "owner": {"id": 1264}, "assignee": {"id": 37}}, "organization": {"id": 1488}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 654}, "assignee": {"id": 537}, "project": {"id": 366, "owner": {"id": 759}, "assignee": {"id": 819}}, "task": {"id": 381, "owner": {"id": 937}, "assignee": {"id": 1065}}, "job": {"id": 312, "assignee": {"id": 1182}}, "issue": {"id": 377, "owner": {"id": 1286}, "assignee": {"id": 98}}, "organization": {"id": 1408}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 374, "owner": {"id": 656}, "assignee": {"id": 593}, "project": {"id": 339, "owner": {"id": 742}, "assignee": {"id": 874}}, "task": {"id": 362, "owner": {"id": 926}, "assignee": {"id": 1003}}, "job": {"id": 345, "assignee": {"id": 1196}}, "issue": {"id": 351, "owner": {"id": 1297}, "assignee": {"id": 22}}, "organization": {"id": 193}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 688}, "assignee": {"id": 576}, "project": {"id": 381, "owner": {"id": 716}, "assignee": {"id": 877}}, "task": {"id": 312, "owner": {"id": 931}, "assignee": {"id": 1007}}, "job": {"id": 384, "assignee": {"id": 1111}}, "issue": {"id": 312, "owner": {"id": 1270}, "assignee": {"id": 60}}, "organization": {"id": 148}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 325, "owner": {"id": 645}, "assignee": {"id": 547}, "project": {"id": 367, "owner": {"id": 777}, "assignee": {"id": 856}}, "task": {"id": 394, "owner": {"id": 928}, "assignee": {"id": 1079}}, "job": {"id": 301, "assignee": {"id": 1131}}, "issue": {"id": 346, "owner": {"id": 1222}, "assignee": {"id": 76}}, "organization": {"id": 1498}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 388, "owner": {"id": 689}, "assignee": {"id": 593}, "project": {"id": 322, "owner": {"id": 780}, "assignee": {"id": 859}}, "task": {"id": 310, "owner": {"id": 919}, "assignee": {"id": 1007}}, "job": {"id": 322, "assignee": {"id": 1169}}, "issue": {"id": 385, "owner": {"id": 1281}, "assignee": {"id": 83}}, "organization": {"id": 1411}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 302, "owner": {"id": 633}, "assignee": {"id": 501}, "project": {"id": 366, "owner": {"id": 799}, "assignee": {"id": 863}}, "task": {"id": 347, "owner": {"id": 991}, "assignee": {"id": 1059}}, "job": {"id": 331, "assignee": {"id": 1147}}, "issue": {"id": 392, "owner": {"id": 1214}, "assignee": {"id": 69}}, "organization": {"id": 117}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 333, "owner": {"id": 683}, "assignee": {"id": 544}, "project": {"id": 387, "owner": {"id": 762}, "assignee": {"id": 838}}, "task": {"id": 378, "owner": {"id": 967}, "assignee": {"id": 1062}}, "job": {"id": 303, "assignee": {"id": 1174}}, "issue": {"id": 307, "owner": {"id": 1212}, "assignee": {"id": 26}}, "organization": {"id": 109}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 698}, "assignee": {"id": 575}, "project": {"id": 316, "owner": {"id": 732}, "assignee": {"id": 828}}, "task": {"id": 332, "owner": {"id": 946}, "assignee": {"id": 1088}}, "job": {"id": 309, "assignee": {"id": 1122}}, "issue": {"id": 370, "owner": {"id": 1259}, "assignee": {"id": 53}}, "organization": {"id": 1470}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 600}, "assignee": {"id": 542}, "project": {"id": 341, "owner": {"id": 795}, "assignee": {"id": 862}}, "task": {"id": 350, "owner": {"id": 948}, "assignee": {"id": 1018}}, "job": {"id": 339, "assignee": {"id": 1127}}, "issue": {"id": 331, "owner": {"id": 1266}, "assignee": {"id": 30}}, "organization": {"id": 1456}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "owner": {"id": 626}, "assignee": {"id": 553}, "project": {"id": 346, "owner": {"id": 725}, "assignee": {"id": 818}}, "task": {"id": 376, "owner": {"id": 933}, "assignee": {"id": 1095}}, "job": {"id": 305, "assignee": {"id": 1188}}, "issue": {"id": 376, "owner": {"id": 1282}, "assignee": {"id": 62}}, "organization": {"id": 148}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "owner": {"id": 652}, "assignee": {"id": 555}, "project": {"id": 315, "owner": {"id": 773}, "assignee": {"id": 842}}, "task": {"id": 338, "owner": {"id": 978}, "assignee": {"id": 1057}}, "job": {"id": 375, "assignee": {"id": 1151}}, "issue": {"id": 378, "owner": {"id": 1204}, "assignee": {"id": 0}}, "organization": {"id": 123}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "owner": {"id": 614}, "assignee": {"id": 579}, "project": {"id": 311, "owner": {"id": 778}, "assignee": {"id": 817}}, "task": {"id": 319, "owner": {"id": 943}, "assignee": {"id": 1058}}, "job": {"id": 300, "assignee": {"id": 1151}}, "issue": {"id": 347, "owner": {"id": 1294}, "assignee": {"id": 38}}, "organization": {"id": 1402}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "owner": {"id": 684}, "assignee": {"id": 572}, "project": {"id": 386, "owner": {"id": 796}, "assignee": {"id": 872}}, "task": {"id": 368, "owner": {"id": 917}, "assignee": {"id": 1091}}, "job": {"id": 379, "assignee": {"id": 1134}}, "issue": {"id": 312, "owner": {"id": 1274}, "assignee": {"id": 30}}, "organization": {"id": 1433}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 665}, "assignee": {"id": 586}, "project": {"id": 352, "owner": {"id": 721}, "assignee": {"id": 870}}, "task": {"id": 381, "owner": {"id": 963}, "assignee": {"id": 1084}}, "job": {"id": 322, "assignee": {"id": 1157}}, "issue": {"id": 393, "owner": {"id": 1238}, "assignee": {"id": 51}}, "organization": {"id": 181}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "owner": {"id": 647}, "assignee": {"id": 505}, "project": {"id": 390, "owner": {"id": 792}, "assignee": {"id": 882}}, "task": {"id": 312, "owner": {"id": 967}, "assignee": {"id": 1076}}, "job": {"id": 311, "assignee": {"id": 1133}}, "issue": {"id": 339, "owner": {"id": 1250}, "assignee": {"id": 99}}, "organization": {"id": 198}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 324, "owner": {"id": 606}, "assignee": {"id": 518}, "project": {"id": 324, "owner": {"id": 753}, "assignee": {"id": 882}}, "task": {"id": 326, "owner": {"id": 996}, "assignee": {"id": 1020}}, "job": {"id": 339, "assignee": {"id": 1134}}, "issue": {"id": 399, "owner": {"id": 1224}, "assignee": {"id": 67}}, "organization": {"id": 1465}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "owner": {"id": 602}, "assignee": {"id": 524}, "project": {"id": 393, "owner": {"id": 712}, "assignee": {"id": 875}}, "task": {"id": 366, "owner": {"id": 904}, "assignee": {"id": 1069}}, "job": {"id": 310, "assignee": {"id": 1152}}, "issue": {"id": 381, "owner": {"id": 1292}, "assignee": {"id": 82}}, "organization": {"id": 1438}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 690}, "assignee": {"id": 566}, "project": {"id": 344, "owner": {"id": 733}, "assignee": {"id": 820}}, "task": {"id": 361, "owner": {"id": 907}, "assignee": {"id": 1007}}, "job": {"id": 307, "assignee": {"id": 1159}}, "issue": {"id": 308, "owner": {"id": 1295}, "assignee": {"id": 67}}, "organization": {"id": 157}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 329, "owner": {"id": 647}, "assignee": {"id": 598}, "project": {"id": 367, "owner": {"id": 791}, "assignee": {"id": 835}}, "task": {"id": 391, "owner": {"id": 982}, "assignee": {"id": 1052}}, "job": {"id": 314, "assignee": {"id": 1102}}, "issue": {"id": 336, "owner": {"id": 1208}, "assignee": {"id": 28}}, "organization": {"id": 118}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 323, "owner": {"id": 687}, "assignee": {"id": 541}, "project": {"id": 385, "owner": {"id": 702}, "assignee": {"id": 869}}, "task": {"id": 323, "owner": {"id": 929}, "assignee": {"id": 1045}}, "job": {"id": 348, "assignee": {"id": 1140}}, "issue": {"id": 362, "owner": {"id": 1290}, "assignee": {"id": 81}}, "organization": {"id": 1433}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 316, "owner": {"id": 630}, "assignee": {"id": 552}, "project": {"id": 314, "owner": {"id": 737}, "assignee": {"id": 828}}, "task": {"id": 322, "owner": {"id": 961}, "assignee": {"id": 1004}}, "job": {"id": 342, "assignee": {"id": 1157}}, "issue": {"id": 383, "owner": {"id": 1216}, "assignee": {"id": 87}}, "organization": {"id": 1416}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 371, "owner": {"id": 669}, "assignee": {"id": 594}, "project": {"id": 371, "owner": {"id": 717}, "assignee": {"id": 805}}, "task": {"id": 397, "owner": {"id": 916}, "assignee": {"id": 1072}}, "job": {"id": 339, "assignee": {"id": 1183}}, "issue": {"id": 301, "owner": {"id": 1229}, "assignee": {"id": 94}}, "organization": {"id": 136}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 328, "owner": {"id": 600}, "assignee": {"id": 517}, "project": {"id": 372, "owner": {"id": 749}, "assignee": {"id": 893}}, "task": {"id": 388, "owner": {"id": 979}, "assignee": {"id": 1036}}, "job": {"id": 383, "assignee": {"id": 1179}}, "issue": {"id": 387, "owner": {"id": 1259}, "assignee": {"id": 65}}, "organization": {"id": 165}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 370, "owner": {"id": 687}, "assignee": {"id": 587}, "project": {"id": 337, "owner": {"id": 745}, "assignee": {"id": 812}}, "task": {"id": 378, "owner": {"id": 938}, "assignee": {"id": 1059}}, "job": {"id": 397, "assignee": {"id": 1145}}, "issue": {"id": 386, "owner": {"id": 1252}, "assignee": {"id": 8}}, "organization": {"id": 1406}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 628}, "assignee": {"id": 579}, "project": {"id": 320, "owner": {"id": 788}, "assignee": {"id": 857}}, "task": {"id": 349, "owner": {"id": 990}, "assignee": {"id": 1005}}, "job": {"id": 306, "assignee": {"id": 1160}}, "issue": {"id": 309, "owner": {"id": 1261}, "assignee": {"id": 41}}, "organization": {"id": 1403}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 658}, "assignee": {"id": 540}, "project": {"id": 370, "owner": {"id": 726}, "assignee": {"id": 866}}, "task": {"id": 304, "owner": {"id": 941}, "assignee": {"id": 1018}}, "job": {"id": 301, "assignee": {"id": 1125}}, "issue": {"id": 364, "owner": {"id": 1251}, "assignee": {"id": 46}}, "organization": {"id": 194}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 682}, "assignee": {"id": 520}, "project": {"id": 317, "owner": {"id": 706}, "assignee": {"id": 840}}, "task": {"id": 340, "owner": {"id": 940}, "assignee": {"id": 1012}}, "job": {"id": 323, "assignee": {"id": 1109}}, "issue": {"id": 396, "owner": {"id": 1245}, "assignee": {"id": 43}}, "organization": {"id": 197}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 690}, "assignee": {"id": 531}, "project": {"id": 319, "owner": {"id": 714}, "assignee": {"id": 845}}, "task": {"id": 380, "owner": {"id": 975}, "assignee": {"id": 1025}}, "job": {"id": 391, "assignee": {"id": 1103}}, "issue": {"id": 340, "owner": {"id": 1219}, "assignee": {"id": 38}}, "organization": {"id": 1460}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 318, "owner": {"id": 668}, "assignee": {"id": 572}, "project": {"id": 305, "owner": {"id": 739}, "assignee": {"id": 826}}, "task": {"id": 375, "owner": {"id": 978}, "assignee": {"id": 1047}}, "job": {"id": 340, "assignee": {"id": 1122}}, "issue": {"id": 304, "owner": {"id": 1276}, "assignee": {"id": 36}}, "organization": {"id": 1403}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 612}, "assignee": {"id": 521}, "project": {"id": 356, "owner": {"id": 756}, "assignee": {"id": 866}}, "task": {"id": 365, "owner": {"id": 906}, "assignee": {"id": 1029}}, "job": {"id": 315, "assignee": {"id": 1177}}, "issue": {"id": 322, "owner": {"id": 1216}, "assignee": {"id": 12}}, "organization": {"id": 160}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "owner": {"id": 662}, "assignee": {"id": 564}, "project": {"id": 357, "owner": {"id": 755}, "assignee": {"id": 857}}, "task": {"id": 378, "owner": {"id": 981}, "assignee": {"id": 1052}}, "job": {"id": 364, "assignee": {"id": 1185}}, "issue": {"id": 349, "owner": {"id": 1265}, "assignee": {"id": 8}}, "organization": {"id": 173}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "owner": {"id": 651}, "assignee": {"id": 589}, "project": {"id": 358, "owner": {"id": 709}, "assignee": {"id": 879}}, "task": {"id": 361, "owner": {"id": 962}, "assignee": {"id": 1056}}, "job": {"id": 395, "assignee": {"id": 1111}}, "issue": {"id": 368, "owner": {"id": 1242}, "assignee": {"id": 38}}, "organization": {"id": 1433}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 320, "owner": {"id": 608}, "assignee": {"id": 556}, "project": {"id": 314, "owner": {"id": 735}, "assignee": {"id": 844}}, "task": {"id": 312, "owner": {"id": 921}, "assignee": {"id": 1054}}, "job": {"id": 339, "assignee": {"id": 1199}}, "issue": {"id": 368, "owner": {"id": 1295}, "assignee": {"id": 88}}, "organization": {"id": 1483}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 672}, "assignee": {"id": 597}, "project": {"id": 305, "owner": {"id": 792}, "assignee": {"id": 801}}, "task": {"id": 384, "owner": {"id": 976}, "assignee": {"id": 1095}}, "job": {"id": 340, "assignee": {"id": 1167}}, "issue": {"id": 316, "owner": {"id": 1298}, "assignee": {"id": 37}}, "organization": {"id": 172}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 623}, "assignee": {"id": 510}, "project": {"id": 315, "owner": {"id": 729}, "assignee": {"id": 833}}, "task": {"id": 364, "owner": {"id": 941}, "assignee": {"id": 1014}}, "job": {"id": 361, "assignee": {"id": 1132}}, "issue": {"id": 394, "owner": {"id": 1227}, "assignee": {"id": 13}}, "organization": {"id": 186}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "owner": {"id": 646}, "assignee": {"id": 594}, "project": {"id": 395, "owner": {"id": 783}, "assignee": {"id": 817}}, "task": {"id": 384, "owner": {"id": 934}, "assignee": {"id": 1017}}, "job": {"id": 352, "assignee": {"id": 1193}}, "issue": {"id": 318, "owner": {"id": 1237}, "assignee": {"id": 10}}, "organization": {"id": 1485}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "owner": {"id": 642}, "assignee": {"id": 524}, "project": {"id": 370, "owner": {"id": 701}, "assignee": {"id": 871}}, "task": {"id": 389, "owner": {"id": 988}, "assignee": {"id": 1031}}, "job": {"id": 325, "assignee": {"id": 1153}}, "issue": {"id": 316, "owner": {"id": 1250}, "assignee": {"id": 6}}, "organization": {"id": 1432}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 328, "owner": {"id": 637}, "assignee": {"id": 545}, "project": {"id": 307, "owner": {"id": 748}, "assignee": {"id": 869}}, "task": {"id": 377, "owner": {"id": 942}, "assignee": {"id": 1067}}, "job": {"id": 361, "assignee": {"id": 1109}}, "issue": {"id": 351, "owner": {"id": 1287}, "assignee": {"id": 84}}, "organization": {"id": 142}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 303, "owner": {"id": 664}, "assignee": {"id": 556}, "project": {"id": 370, "owner": {"id": 716}, "assignee": {"id": 803}}, "task": {"id": 318, "owner": {"id": 949}, "assignee": {"id": 1050}}, "job": {"id": 385, "assignee": {"id": 1186}}, "issue": {"id": 302, "owner": {"id": 1248}, "assignee": {"id": 38}}, "organization": {"id": 169}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"id": 338, "owner": {"id": 698}, "assignee": {"id": 589}, "project": {"id": 333, "owner": {"id": 720}, "assignee": {"id": 826}}, "task": {"id": 398, "owner": {"id": 988}, "assignee": {"id": 1098}}, "job": {"id": 389, "assignee": {"id": 1195}}, "issue": {"id": 326, "owner": {"id": 1246}, "assignee": {"id": 78}}, "organization": {"id": 1473}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 309, "owner": {"id": 664}, "assignee": {"id": 510}, "project": {"id": 354, "owner": {"id": 723}, "assignee": {"id": 849}}, "task": {"id": 314, "owner": {"id": 983}, "assignee": {"id": 1046}}, "job": {"id": 395, "assignee": {"id": 1122}}, "issue": {"id": 319, "owner": {"id": 1216}, "assignee": {"id": 66}}, "organization": {"id": 1408}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 340, "owner": {"id": 641}, "assignee": {"id": 544}, "project": {"id": 344, "owner": {"id": 726}, "assignee": {"id": 818}}, "task": {"id": 367, "owner": {"id": 900}, "assignee": {"id": 1019}}, "job": {"id": 353, "assignee": {"id": 1124}}, "issue": {"id": 320, "owner": {"id": 1297}, "assignee": {"id": 59}}, "organization": {"id": 141}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 395, "owner": {"id": 654}, "assignee": {"id": 529}, "project": {"id": 358, "owner": {"id": 791}, "assignee": {"id": 808}}, "task": {"id": 353, "owner": {"id": 998}, "assignee": {"id": 1008}}, "job": {"id": 318, "assignee": {"id": 1116}}, "issue": {"id": 377, "owner": {"id": 1229}, "assignee": {"id": 6}}, "organization": {"id": 184}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 322, "owner": {"id": 686}, "assignee": {"id": 540}, "project": {"id": 337, "owner": {"id": 759}, "assignee": {"id": 816}}, "task": {"id": 391, "owner": {"id": 929}, "assignee": {"id": 1062}}, "job": {"id": 333, "assignee": {"id": 1165}}, "issue": {"id": 319, "owner": {"id": 1298}, "assignee": {"id": 83}}, "organization": {"id": 1438}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ISSUE_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 381, "owner": {"id": 635}, "assignee": {"id": 530}, "project": {"id": 380, "owner": {"id": 799}, "assignee": {"id": 898}}, "task": {"id": 301, "owner": {"id": 999}, "assignee": {"id": 1061}}, "job": {"id": 336, "assignee": {"id": 1191}}, "issue": {"id": 377, "owner": {"id": 1223}, "assignee": {"id": 79}}, "organization": {"id": 1408}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 384, "owner": {"id": 84}, "assignee": {"id": 502}, "project": {"id": 355, "owner": {"id": 724}, "assignee": {"id": 858}}, "task": {"id": 351, "owner": {"id": 902}, "assignee": {"id": 1014}}, "job": {"id": 371, "assignee": {"id": 1129}}, "issue": {"id": 300, "owner": {"id": 1281}, "assignee": {"id": 1353}}, "organization": {"id": 187}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 326, "owner": {"id": 96}, "assignee": {"id": 591}, "project": {"id": 352, "owner": {"id": 778}, "assignee": {"id": 823}}, "task": {"id": 394, "owner": {"id": 964}, "assignee": {"id": 1095}}, "job": {"id": 330, "assignee": {"id": 1101}}, "issue": {"id": 384, "owner": {"id": 1249}, "assignee": {"id": 1342}}, "organization": {"id": 128}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 331, "owner": {"id": 98}, "assignee": {"id": 516}, "project": {"id": 333, "owner": {"id": 734}, "assignee": {"id": 891}}, "task": {"id": 363, "owner": {"id": 960}, "assignee": {"id": 1053}}, "job": {"id": 311, "assignee": {"id": 1114}}, "issue": {"id": 318, "owner": {"id": 1209}, "assignee": {"id": 1367}}, "organization": {"id": 1419}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 326, "owner": {"id": 82}, "assignee": {"id": 500}, "project": {"id": 356, "owner": {"id": 712}, "assignee": {"id": 876}}, "task": {"id": 336, "owner": {"id": 938}, "assignee": {"id": 1090}}, "job": {"id": 372, "assignee": {"id": 1102}}, "issue": {"id": 379, "owner": {"id": 1224}, "assignee": {"id": 1383}}, "organization": {"id": 1497}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "owner": {"id": 65}, "assignee": {"id": 530}, "project": {"id": 318, "owner": {"id": 796}, "assignee": {"id": 809}}, "task": {"id": 310, "owner": {"id": 959}, "assignee": {"id": 1096}}, "job": {"id": 375, "assignee": {"id": 1154}}, "issue": {"id": 331, "owner": {"id": 1215}, "assignee": {"id": 1333}}, "organization": {"id": 118}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "owner": {"id": 56}, "assignee": {"id": 532}, "project": {"id": 380, "owner": {"id": 759}, "assignee": {"id": 825}}, "task": {"id": 358, "owner": {"id": 927}, "assignee": {"id": 1028}}, "job": {"id": 342, "assignee": {"id": 1167}}, "issue": {"id": 398, "owner": {"id": 1272}, "assignee": {"id": 1327}}, "organization": {"id": 121}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 76}, "assignee": {"id": 592}, "project": {"id": 381, "owner": {"id": 774}, "assignee": {"id": 896}}, "task": {"id": 375, "owner": {"id": 926}, "assignee": {"id": 1073}}, "job": {"id": 388, "assignee": {"id": 1143}}, "issue": {"id": 343, "owner": {"id": 1291}, "assignee": {"id": 1328}}, "organization": {"id": 1470}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "owner": {"id": 43}, "assignee": {"id": 596}, "project": {"id": 304, "owner": {"id": 718}, "assignee": {"id": 850}}, "task": {"id": 305, "owner": {"id": 977}, "assignee": {"id": 1055}}, "job": {"id": 307, "assignee": {"id": 1174}}, "issue": {"id": 323, "owner": {"id": 1256}, "assignee": {"id": 1370}}, "organization": {"id": 1414}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "owner": {"id": 72}, "assignee": {"id": 548}, "project": {"id": 311, "owner": {"id": 708}, "assignee": {"id": 863}}, "task": {"id": 343, "owner": {"id": 948}, "assignee": {"id": 1026}}, "job": {"id": 352, "assignee": {"id": 1149}}, "issue": {"id": 363, "owner": {"id": 1223}, "assignee": {"id": 1396}}, "organization": {"id": 145}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 53}, "assignee": {"id": 574}, "project": {"id": 375, "owner": {"id": 708}, "assignee": {"id": 897}}, "task": {"id": 317, "owner": {"id": 977}, "assignee": {"id": 1043}}, "job": {"id": 323, "assignee": {"id": 1157}}, "issue": {"id": 332, "owner": {"id": 1260}, "assignee": {"id": 1362}}, "organization": {"id": 105}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 23}, "assignee": {"id": 557}, "project": {"id": 324, "owner": {"id": 725}, "assignee": {"id": 820}}, "task": {"id": 314, "owner": {"id": 952}, "assignee": {"id": 1002}}, "job": {"id": 328, "assignee": {"id": 1115}}, "issue": {"id": 320, "owner": {"id": 1240}, "assignee": {"id": 1371}}, "organization": {"id": 1431}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "owner": {"id": 63}, "assignee": {"id": 564}, "project": {"id": 351, "owner": {"id": 712}, "assignee": {"id": 811}}, "task": {"id": 353, "owner": {"id": 921}, "assignee": {"id": 1048}}, "job": {"id": 397, "assignee": {"id": 1157}}, "issue": {"id": 390, "owner": {"id": 1279}, "assignee": {"id": 1333}}, "organization": {"id": 1453}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 390, "owner": {"id": 26}, "assignee": {"id": 554}, "project": {"id": 350, "owner": {"id": 752}, "assignee": {"id": 808}}, "task": {"id": 361, "owner": {"id": 925}, "assignee": {"id": 1086}}, "job": {"id": 348, "assignee": {"id": 1168}}, "issue": {"id": 326, "owner": {"id": 1248}, "assignee": {"id": 1321}}, "organization": {"id": 149}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 4}, "assignee": {"id": 554}, "project": {"id": 352, "owner": {"id": 713}, "assignee": {"id": 882}}, "task": {"id": 370, "owner": {"id": 900}, "assignee": {"id": 1093}}, "job": {"id": 389, "assignee": {"id": 1157}}, "issue": {"id": 306, "owner": {"id": 1253}, "assignee": {"id": 1391}}, "organization": {"id": 168}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 85}, "assignee": {"id": 572}, "project": {"id": 394, "owner": {"id": 765}, "assignee": {"id": 879}}, "task": {"id": 301, "owner": {"id": 982}, "assignee": {"id": 1000}}, "job": {"id": 352, "assignee": {"id": 1131}}, "issue": {"id": 352, "owner": {"id": 1288}, "assignee": {"id": 1336}}, "organization": {"id": 1428}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 364, "owner": {"id": 69}, "assignee": {"id": 561}, "project": {"id": 371, "owner": {"id": 703}, "assignee": {"id": 861}}, "task": {"id": 366, "owner": {"id": 985}, "assignee": {"id": 1075}}, "job": {"id": 334, "assignee": {"id": 1196}}, "issue": {"id": 397, "owner": {"id": 1203}, "assignee": {"id": 1394}}, "organization": {"id": 1498}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 344, "owner": {"id": 59}, "assignee": {"id": 566}, "project": {"id": 333, "owner": {"id": 718}, "assignee": {"id": 852}}, "task": {"id": 348, "owner": {"id": 992}, "assignee": {"id": 1064}}, "job": {"id": 351, "assignee": {"id": 1110}}, "issue": {"id": 370, "owner": {"id": 1228}, "assignee": {"id": 1314}}, "organization": {"id": 163}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 20}, "assignee": {"id": 593}, "project": {"id": 397, "owner": {"id": 720}, "assignee": {"id": 823}}, "task": {"id": 335, "owner": {"id": 940}, "assignee": {"id": 1038}}, "job": {"id": 354, "assignee": {"id": 1177}}, "issue": {"id": 384, "owner": {"id": 1234}, "assignee": {"id": 1356}}, "organization": {"id": 177}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 355, "owner": {"id": 82}, "assignee": {"id": 582}, "project": {"id": 360, "owner": {"id": 705}, "assignee": {"id": 819}}, "task": {"id": 324, "owner": {"id": 901}, "assignee": {"id": 1097}}, "job": {"id": 386, "assignee": {"id": 1188}}, "issue": {"id": 309, "owner": {"id": 1299}, "assignee": {"id": 1377}}, "organization": {"id": 1445}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 89}, "assignee": {"id": 512}, "project": {"id": 359, "owner": {"id": 702}, "assignee": {"id": 874}}, "task": {"id": 322, "owner": {"id": 946}, "assignee": {"id": 1012}}, "job": {"id": 334, "assignee": {"id": 1197}}, "issue": {"id": 300, "owner": {"id": 1246}, "assignee": {"id": 1351}}, "organization": {"id": 1450}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 312, "owner": {"id": 75}, "assignee": {"id": 543}, "project": {"id": 370, "owner": {"id": 747}, "assignee": {"id": 848}}, "task": {"id": 300, "owner": {"id": 953}, "assignee": {"id": 1018}}, "job": {"id": 311, "assignee": {"id": 1161}}, "issue": {"id": 341, "owner": {"id": 1294}, "assignee": {"id": 1368}}, "organization": {"id": 108}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 370, "owner": {"id": 14}, "assignee": {"id": 521}, "project": {"id": 351, "owner": {"id": 773}, "assignee": {"id": 839}}, "task": {"id": 384, "owner": {"id": 996}, "assignee": {"id": 1025}}, "job": {"id": 323, "assignee": {"id": 1121}}, "issue": {"id": 332, "owner": {"id": 1280}, "assignee": {"id": 1390}}, "organization": {"id": 150}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 324, "owner": {"id": 80}, "assignee": {"id": 544}, "project": {"id": 347, "owner": {"id": 763}, "assignee": {"id": 823}}, "task": {"id": 373, "owner": {"id": 981}, "assignee": {"id": 1005}}, "job": {"id": 333, "assignee": {"id": 1184}}, "issue": {"id": 356, "owner": {"id": 1210}, "assignee": {"id": 1389}}, "organization": {"id": 1441}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 386, "owner": {"id": 82}, "assignee": {"id": 521}, "project": {"id": 390, "owner": {"id": 774}, "assignee": {"id": 865}}, "task": {"id": 372, "owner": {"id": 905}, "assignee": {"id": 1000}}, "job": {"id": 360, "assignee": {"id": 1110}}, "issue": {"id": 358, "owner": {"id": 1230}, "assignee": {"id": 1327}}, "organization": {"id": 1470}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 389, "owner": {"id": 64}, "assignee": {"id": 538}, "project": {"id": 304, "owner": {"id": 772}, "assignee": {"id": 889}}, "task": {"id": 314, "owner": {"id": 900}, "assignee": {"id": 1074}}, "job": {"id": 324, "assignee": {"id": 1159}}, "issue": {"id": 379, "owner": {"id": 1248}, "assignee": {"id": 1331}}, "organization": {"id": 133}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 29}, "assignee": {"id": 585}, "project": {"id": 325, "owner": {"id": 719}, "assignee": {"id": 898}}, "task": {"id": 328, "owner": {"id": 954}, "assignee": {"id": 1056}}, "job": {"id": 374, "assignee": {"id": 1112}}, "issue": {"id": 341, "owner": {"id": 1211}, "assignee": {"id": 1322}}, "organization": {"id": 154}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "owner": {"id": 41}, "assignee": {"id": 555}, "project": {"id": 342, "owner": {"id": 721}, "assignee": {"id": 851}}, "task": {"id": 369, "owner": {"id": 951}, "assignee": {"id": 1096}}, "job": {"id": 307, "assignee": {"id": 1110}}, "issue": {"id": 387, "owner": {"id": 1226}, "assignee": {"id": 1320}}, "organization": {"id": 1480}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "owner": {"id": 45}, "assignee": {"id": 547}, "project": {"id": 372, "owner": {"id": 779}, "assignee": {"id": 809}}, "task": {"id": 312, "owner": {"id": 963}, "assignee": {"id": 1088}}, "job": {"id": 315, "assignee": {"id": 1183}}, "issue": {"id": 335, "owner": {"id": 1229}, "assignee": {"id": 1368}}, "organization": {"id": 1476}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 25}, "assignee": {"id": 539}, "project": {"id": 353, "owner": {"id": 753}, "assignee": {"id": 810}}, "task": {"id": 376, "owner": {"id": 924}, "assignee": {"id": 1029}}, "job": {"id": 369, "assignee": {"id": 1118}}, "issue": {"id": 328, "owner": {"id": 1277}, "assignee": {"id": 1332}}, "organization": {"id": 140}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 28}, "assignee": {"id": 588}, "project": {"id": 301, "owner": {"id": 751}, "assignee": {"id": 811}}, "task": {"id": 361, "owner": {"id": 901}, "assignee": {"id": 1092}}, "job": {"id": 368, "assignee": {"id": 1160}}, "issue": {"id": 343, "owner": {"id": 1279}, "assignee": {"id": 1374}}, "organization": {"id": 179}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "owner": {"id": 21}, "assignee": {"id": 589}, "project": {"id": 389, "owner": {"id": 729}, "assignee": {"id": 839}}, "task": {"id": 365, "owner": {"id": 909}, "assignee": {"id": 1063}}, "job": {"id": 323, "assignee": {"id": 1144}}, "issue": {"id": 355, "owner": {"id": 1200}, "assignee": {"id": 1320}}, "organization": {"id": 1413}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 343, "owner": {"id": 74}, "assignee": {"id": 541}, "project": {"id": 347, "owner": {"id": 728}, "assignee": {"id": 827}}, "task": {"id": 330, "owner": {"id": 908}, "assignee": {"id": 1008}}, "job": {"id": 344, "assignee": {"id": 1158}}, "issue": {"id": 396, "owner": {"id": 1252}, "assignee": {"id": 1311}}, "organization": {"id": 1492}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 364, "owner": {"id": 75}, "assignee": {"id": 540}, "project": {"id": 396, "owner": {"id": 757}, "assignee": {"id": 891}}, "task": {"id": 366, "owner": {"id": 966}, "assignee": {"id": 1054}}, "job": {"id": 359, "assignee": {"id": 1115}}, "issue": {"id": 366, "owner": {"id": 1253}, "assignee": {"id": 1387}}, "organization": {"id": 121}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 17}, "assignee": {"id": 535}, "project": {"id": 311, "owner": {"id": 735}, "assignee": {"id": 822}}, "task": {"id": 350, "owner": {"id": 937}, "assignee": {"id": 1010}}, "job": {"id": 365, "assignee": {"id": 1139}}, "issue": {"id": 312, "owner": {"id": 1258}, "assignee": {"id": 1366}}, "organization": {"id": 155}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 369, "owner": {"id": 13}, "assignee": {"id": 557}, "project": {"id": 359, "owner": {"id": 701}, "assignee": {"id": 830}}, "task": {"id": 377, "owner": {"id": 922}, "assignee": {"id": 1076}}, "job": {"id": 330, "assignee": {"id": 1180}}, "issue": {"id": 387, "owner": {"id": 1252}, "assignee": {"id": 1357}}, "organization": {"id": 1441}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 341, "owner": {"id": 83}, "assignee": {"id": 577}, "project": {"id": 397, "owner": {"id": 732}, "assignee": {"id": 868}}, "task": {"id": 312, "owner": {"id": 935}, "assignee": {"id": 1088}}, "job": {"id": 396, "assignee": {"id": 1156}}, "issue": {"id": 320, "owner": {"id": 1253}, "assignee": {"id": 1338}}, "organization": {"id": 1432}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 345, "owner": {"id": 12}, "assignee": {"id": 511}, "project": {"id": 325, "owner": {"id": 743}, "assignee": {"id": 877}}, "task": {"id": 390, "owner": {"id": 943}, "assignee": {"id": 1043}}, "job": {"id": 315, "assignee": {"id": 1101}}, "issue": {"id": 309, "owner": {"id": 1274}, "assignee": {"id": 1376}}, "organization": {"id": 111}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 329, "owner": {"id": 6}, "assignee": {"id": 527}, "project": {"id": 357, "owner": {"id": 725}, "assignee": {"id": 888}}, "task": {"id": 322, "owner": {"id": 904}, "assignee": {"id": 1007}}, "job": {"id": 346, "assignee": {"id": 1167}}, "issue": {"id": 323, "owner": {"id": 1284}, "assignee": {"id": 1300}}, "organization": {"id": 117}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 99}, "assignee": {"id": 594}, "project": {"id": 364, "owner": {"id": 790}, "assignee": {"id": 877}}, "task": {"id": 316, "owner": {"id": 996}, "assignee": {"id": 1077}}, "job": {"id": 385, "assignee": {"id": 1161}}, "issue": {"id": 342, "owner": {"id": 1219}, "assignee": {"id": 1349}}, "organization": {"id": 1468}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 87}, "assignee": {"id": 586}, "project": {"id": 367, "owner": {"id": 782}, "assignee": {"id": 816}}, "task": {"id": 360, "owner": {"id": 934}, "assignee": {"id": 1091}}, "job": {"id": 348, "assignee": {"id": 1129}}, "issue": {"id": 302, "owner": {"id": 1205}, "assignee": {"id": 1346}}, "organization": {"id": 1490}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 45}, "assignee": {"id": 502}, "project": {"id": 382, "owner": {"id": 785}, "assignee": {"id": 814}}, "task": {"id": 399, "owner": {"id": 917}, "assignee": {"id": 1084}}, "job": {"id": 349, "assignee": {"id": 1197}}, "issue": {"id": 351, "owner": {"id": 1224}, "assignee": {"id": 1302}}, "organization": {"id": 122}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 331, "owner": {"id": 55}, "assignee": {"id": 561}, "project": {"id": 358, "owner": {"id": 745}, "assignee": {"id": 837}}, "task": {"id": 388, "owner": {"id": 955}, "assignee": {"id": 1085}}, "job": {"id": 378, "assignee": {"id": 1140}}, "issue": {"id": 355, "owner": {"id": 1275}, "assignee": {"id": 1397}}, "organization": {"id": 176}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 370, "owner": {"id": 62}, "assignee": {"id": 536}, "project": {"id": 377, "owner": {"id": 740}, "assignee": {"id": 810}}, "task": {"id": 361, "owner": {"id": 994}, "assignee": {"id": 1091}}, "job": {"id": 328, "assignee": {"id": 1136}}, "issue": {"id": 398, "owner": {"id": 1222}, "assignee": {"id": 1316}}, "organization": {"id": 1406}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 316, "owner": {"id": 74}, "assignee": {"id": 517}, "project": {"id": 384, "owner": {"id": 761}, "assignee": {"id": 899}}, "task": {"id": 311, "owner": {"id": 933}, "assignee": {"id": 1023}}, "job": {"id": 322, "assignee": {"id": 1126}}, "issue": {"id": 352, "owner": {"id": 1268}, "assignee": {"id": 1347}}, "organization": {"id": 1411}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "owner": {"id": 35}, "assignee": {"id": 573}, "project": {"id": 339, "owner": {"id": 776}, "assignee": {"id": 801}}, "task": {"id": 396, "owner": {"id": 972}, "assignee": {"id": 1091}}, "job": {"id": 367, "assignee": {"id": 1104}}, "issue": {"id": 342, "owner": {"id": 1200}, "assignee": {"id": 1356}}, "organization": {"id": 199}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "owner": {"id": 67}, "assignee": {"id": 534}, "project": {"id": 322, "owner": {"id": 769}, "assignee": {"id": 854}}, "task": {"id": 332, "owner": {"id": 929}, "assignee": {"id": 1080}}, "job": {"id": 301, "assignee": {"id": 1175}}, "issue": {"id": 328, "owner": {"id": 1239}, "assignee": {"id": 1320}}, "organization": {"id": 161}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 91}, "assignee": {"id": 591}, "project": {"id": 397, "owner": {"id": 783}, "assignee": {"id": 805}}, "task": {"id": 394, "owner": {"id": 999}, "assignee": {"id": 1091}}, "job": {"id": 370, "assignee": {"id": 1144}}, "issue": {"id": 306, "owner": {"id": 1250}, "assignee": {"id": 1387}}, "organization": {"id": 1413}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 51}, "assignee": {"id": 521}, "project": {"id": 372, "owner": {"id": 700}, "assignee": {"id": 823}}, "task": {"id": 396, "owner": {"id": 956}, "assignee": {"id": 1019}}, "job": {"id": 353, "assignee": {"id": 1113}}, "issue": {"id": 384, "owner": {"id": 1247}, "assignee": {"id": 1352}}, "organization": {"id": 1493}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 48}, "assignee": {"id": 542}, "project": {"id": 321, "owner": {"id": 732}, "assignee": {"id": 822}}, "task": {"id": 364, "owner": {"id": 950}, "assignee": {"id": 1054}}, "job": {"id": 383, "assignee": {"id": 1105}}, "issue": {"id": 306, "owner": {"id": 1280}, "assignee": {"id": 1360}}, "organization": {"id": 167}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "owner": {"id": 96}, "assignee": {"id": 511}, "project": {"id": 344, "owner": {"id": 752}, "assignee": {"id": 892}}, "task": {"id": 324, "owner": {"id": 908}, "assignee": {"id": 1003}}, "job": {"id": 324, "assignee": {"id": 1121}}, "issue": {"id": 369, "owner": {"id": 1262}, "assignee": {"id": 1357}}, "organization": {"id": 147}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "owner": {"id": 15}, "assignee": {"id": 564}, "project": {"id": 326, "owner": {"id": 793}, "assignee": {"id": 870}}, "task": {"id": 341, "owner": {"id": 972}, "assignee": {"id": 1020}}, "job": {"id": 360, "assignee": {"id": 1115}}, "issue": {"id": 337, "owner": {"id": 1207}, "assignee": {"id": 1330}}, "organization": {"id": 1454}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "owner": {"id": 26}, "assignee": {"id": 505}, "project": {"id": 307, "owner": {"id": 798}, "assignee": {"id": 827}}, "task": {"id": 352, "owner": {"id": 991}, "assignee": {"id": 1029}}, "job": {"id": 313, "assignee": {"id": 1129}}, "issue": {"id": 386, "owner": {"id": 1268}, "assignee": {"id": 1381}}, "organization": {"id": 1416}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 389, "owner": {"id": 27}, "assignee": {"id": 519}, "project": {"id": 337, "owner": {"id": 747}, "assignee": {"id": 871}}, "task": {"id": 396, "owner": {"id": 919}, "assignee": {"id": 1093}}, "job": {"id": 395, "assignee": {"id": 1173}}, "issue": {"id": 327, "owner": {"id": 1244}, "assignee": {"id": 1313}}, "organization": {"id": 144}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 382, "owner": {"id": 42}, "assignee": {"id": 587}, "project": {"id": 356, "owner": {"id": 763}, "assignee": {"id": 840}}, "task": {"id": 339, "owner": {"id": 904}, "assignee": {"id": 1066}}, "job": {"id": 315, "assignee": {"id": 1165}}, "issue": {"id": 389, "owner": {"id": 1283}, "assignee": {"id": 1349}}, "organization": {"id": 189}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 309, "owner": {"id": 39}, "assignee": {"id": 507}, "project": {"id": 340, "owner": {"id": 784}, "assignee": {"id": 811}}, "task": {"id": 326, "owner": {"id": 916}, "assignee": {"id": 1008}}, "job": {"id": 317, "assignee": {"id": 1103}}, "issue": {"id": 359, "owner": {"id": 1208}, "assignee": {"id": 1329}}, "organization": {"id": 1435}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 310, "owner": {"id": 65}, "assignee": {"id": 599}, "project": {"id": 319, "owner": {"id": 725}, "assignee": {"id": 862}}, "task": {"id": 357, "owner": {"id": 947}, "assignee": {"id": 1003}}, "job": {"id": 306, "assignee": {"id": 1152}}, "issue": {"id": 345, "owner": {"id": 1239}, "assignee": {"id": 1333}}, "organization": {"id": 1459}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 374, "owner": {"id": 52}, "assignee": {"id": 551}, "project": {"id": 389, "owner": {"id": 764}, "assignee": {"id": 881}}, "task": {"id": 376, "owner": {"id": 930}, "assignee": {"id": 1017}}, "job": {"id": 395, "assignee": {"id": 1108}}, "issue": {"id": 340, "owner": {"id": 1223}, "assignee": {"id": 1363}}, "organization": {"id": 163}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 399, "owner": {"id": 97}, "assignee": {"id": 540}, "project": {"id": 361, "owner": {"id": 714}, "assignee": {"id": 809}}, "task": {"id": 346, "owner": {"id": 963}, "assignee": {"id": 1004}}, "job": {"id": 336, "assignee": {"id": 1109}}, "issue": {"id": 305, "owner": {"id": 1243}, "assignee": {"id": 1311}}, "organization": {"id": 104}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 372, "owner": {"id": 32}, "assignee": {"id": 586}, "project": {"id": 371, "owner": {"id": 724}, "assignee": {"id": 803}}, "task": {"id": 303, "owner": {"id": 997}, "assignee": {"id": 1077}}, "job": {"id": 356, "assignee": {"id": 1184}}, "issue": {"id": 371, "owner": {"id": 1294}, "assignee": {"id": 1319}}, "organization": {"id": 1453}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 90}, "assignee": {"id": 507}, "project": {"id": 398, "owner": {"id": 738}, "assignee": {"id": 847}}, "task": {"id": 339, "owner": {"id": 979}, "assignee": {"id": 1059}}, "job": {"id": 324, "assignee": {"id": 1194}}, "issue": {"id": 381, "owner": {"id": 1251}, "assignee": {"id": 1346}}, "organization": {"id": 1462}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 365, "owner": {"id": 82}, "assignee": {"id": 527}, "project": {"id": 318, "owner": {"id": 717}, "assignee": {"id": 817}}, "task": {"id": 305, "owner": {"id": 904}, "assignee": {"id": 1034}}, "job": {"id": 335, "assignee": {"id": 1169}}, "issue": {"id": 382, "owner": {"id": 1296}, "assignee": {"id": 1361}}, "organization": {"id": 168}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 302, "owner": {"id": 84}, "assignee": {"id": 595}, "project": {"id": 350, "owner": {"id": 759}, "assignee": {"id": 834}}, "task": {"id": 389, "owner": {"id": 961}, "assignee": {"id": 1023}}, "job": {"id": 305, "assignee": {"id": 1107}}, "issue": {"id": 320, "owner": {"id": 1222}, "assignee": {"id": 1378}}, "organization": {"id": 126}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 12}, "assignee": {"id": 591}, "project": {"id": 364, "owner": {"id": 713}, "assignee": {"id": 875}}, "task": {"id": 323, "owner": {"id": 983}, "assignee": {"id": 1084}}, "job": {"id": 342, "assignee": {"id": 1115}}, "issue": {"id": 378, "owner": {"id": 1270}, "assignee": {"id": 1375}}, "organization": {"id": 1460}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 46}, "assignee": {"id": 559}, "project": {"id": 367, "owner": {"id": 770}, "assignee": {"id": 850}}, "task": {"id": 391, "owner": {"id": 923}, "assignee": {"id": 1093}}, "job": {"id": 330, "assignee": {"id": 1135}}, "issue": {"id": 364, "owner": {"id": 1215}, "assignee": {"id": 1387}}, "organization": {"id": 1467}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "owner": {"id": 23}, "assignee": {"id": 586}, "project": {"id": 375, "owner": {"id": 720}, "assignee": {"id": 823}}, "task": {"id": 390, "owner": {"id": 984}, "assignee": {"id": 1077}}, "job": {"id": 301, "assignee": {"id": 1143}}, "issue": {"id": 393, "owner": {"id": 1233}, "assignee": {"id": 1388}}, "organization": {"id": 174}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "owner": {"id": 69}, "assignee": {"id": 552}, "project": {"id": 326, "owner": {"id": 713}, "assignee": {"id": 817}}, "task": {"id": 307, "owner": {"id": 982}, "assignee": {"id": 1019}}, "job": {"id": 398, "assignee": {"id": 1179}}, "issue": {"id": 355, "owner": {"id": 1239}, "assignee": {"id": 1304}}, "organization": {"id": 156}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "owner": {"id": 35}, "assignee": {"id": 551}, "project": {"id": 359, "owner": {"id": 770}, "assignee": {"id": 806}}, "task": {"id": 381, "owner": {"id": 927}, "assignee": {"id": 1085}}, "job": {"id": 339, "assignee": {"id": 1157}}, "issue": {"id": 338, "owner": {"id": 1271}, "assignee": {"id": 1303}}, "organization": {"id": 1464}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 92}, "assignee": {"id": 556}, "project": {"id": 345, "owner": {"id": 736}, "assignee": {"id": 870}}, "task": {"id": 328, "owner": {"id": 941}, "assignee": {"id": 1030}}, "job": {"id": 398, "assignee": {"id": 1176}}, "issue": {"id": 329, "owner": {"id": 1238}, "assignee": {"id": 1389}}, "organization": {"id": 1466}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "owner": {"id": 0}, "assignee": {"id": 520}, "project": {"id": 356, "owner": {"id": 705}, "assignee": {"id": 828}}, "task": {"id": 362, "owner": {"id": 930}, "assignee": {"id": 1056}}, "job": {"id": 301, "assignee": {"id": 1143}}, "issue": {"id": 350, "owner": {"id": 1244}, "assignee": {"id": 1339}}, "organization": {"id": 182}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "owner": {"id": 64}, "assignee": {"id": 552}, "project": {"id": 332, "owner": {"id": 765}, "assignee": {"id": 805}}, "task": {"id": 318, "owner": {"id": 981}, "assignee": {"id": 1044}}, "job": {"id": 310, "assignee": {"id": 1134}}, "issue": {"id": 308, "owner": {"id": 1296}, "assignee": {"id": 1389}}, "organization": {"id": 105}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "owner": {"id": 34}, "assignee": {"id": 570}, "project": {"id": 325, "owner": {"id": 701}, "assignee": {"id": 874}}, "task": {"id": 337, "owner": {"id": 921}, "assignee": {"id": 1092}}, "job": {"id": 363, "assignee": {"id": 1143}}, "issue": {"id": 370, "owner": {"id": 1230}, "assignee": {"id": 1325}}, "organization": {"id": 1422}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "owner": {"id": 66}, "assignee": {"id": 575}, "project": {"id": 356, "owner": {"id": 758}, "assignee": {"id": 858}}, "task": {"id": 306, "owner": {"id": 930}, "assignee": {"id": 1041}}, "job": {"id": 377, "assignee": {"id": 1159}}, "issue": {"id": 382, "owner": {"id": 1272}, "assignee": {"id": 1387}}, "organization": {"id": 1483}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 80}, "assignee": {"id": 507}, "project": {"id": 394, "owner": {"id": 786}, "assignee": {"id": 893}}, "task": {"id": 309, "owner": {"id": 910}, "assignee": {"id": 1033}}, "job": {"id": 375, "assignee": {"id": 1174}}, "issue": {"id": 330, "owner": {"id": 1281}, "assignee": {"id": 1351}}, "organization": {"id": 123}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 347, "owner": {"id": 14}, "assignee": {"id": 502}, "project": {"id": 363, "owner": {"id": 770}, "assignee": {"id": 899}}, "task": {"id": 313, "owner": {"id": 960}, "assignee": {"id": 1061}}, "job": {"id": 382, "assignee": {"id": 1120}}, "issue": {"id": 303, "owner": {"id": 1264}, "assignee": {"id": 1303}}, "organization": {"id": 178}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 7}, "assignee": {"id": 575}, "project": {"id": 307, "owner": {"id": 720}, "assignee": {"id": 838}}, "task": {"id": 317, "owner": {"id": 987}, "assignee": {"id": 1094}}, "job": {"id": 343, "assignee": {"id": 1139}}, "issue": {"id": 329, "owner": {"id": 1298}, "assignee": {"id": 1365}}, "organization": {"id": 1497}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 368, "owner": {"id": 52}, "assignee": {"id": 517}, "project": {"id": 309, "owner": {"id": 790}, "assignee": {"id": 827}}, "task": {"id": 342, "owner": {"id": 962}, "assignee": {"id": 1088}}, "job": {"id": 313, "assignee": {"id": 1142}}, "issue": {"id": 338, "owner": {"id": 1280}, "assignee": {"id": 1387}}, "organization": {"id": 1499}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 334, "owner": {"id": 53}, "assignee": {"id": 536}, "project": {"id": 359, "owner": {"id": 764}, "assignee": {"id": 803}}, "task": {"id": 361, "owner": {"id": 960}, "assignee": {"id": 1059}}, "job": {"id": 325, "assignee": {"id": 1152}}, "issue": {"id": 383, "owner": {"id": 1222}, "assignee": {"id": 1367}}, "organization": {"id": 115}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 316, "owner": {"id": 27}, "assignee": {"id": 580}, "project": {"id": 383, "owner": {"id": 779}, "assignee": {"id": 884}}, "task": {"id": 355, "owner": {"id": 977}, "assignee": {"id": 1073}}, "job": {"id": 398, "assignee": {"id": 1149}}, "issue": {"id": 316, "owner": {"id": 1293}, "assignee": {"id": 1333}}, "organization": {"id": 191}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 84}, "assignee": {"id": 585}, "project": {"id": 352, "owner": {"id": 754}, "assignee": {"id": 801}}, "task": {"id": 388, "owner": {"id": 947}, "assignee": {"id": 1079}}, "job": {"id": 346, "assignee": {"id": 1126}}, "issue": {"id": 337, "owner": {"id": 1219}, "assignee": {"id": 1326}}, "organization": {"id": 1421}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 323, "owner": {"id": 43}, "assignee": {"id": 595}, "project": {"id": 314, "owner": {"id": 784}, "assignee": {"id": 837}}, "task": {"id": 387, "owner": {"id": 916}, "assignee": {"id": 1026}}, "job": {"id": 345, "assignee": {"id": 1162}}, "issue": {"id": 311, "owner": {"id": 1233}, "assignee": {"id": 1388}}, "organization": {"id": 1493}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 390, "owner": {"id": 18}, "assignee": {"id": 586}, "project": {"id": 327, "owner": {"id": 797}, "assignee": {"id": 884}}, "task": {"id": 325, "owner": {"id": 967}, "assignee": {"id": 1042}}, "job": {"id": 300, "assignee": {"id": 1116}}, "issue": {"id": 301, "owner": {"id": 1234}, "assignee": {"id": 1379}}, "organization": {"id": 175}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"id": 350, "owner": {"id": 20}, "assignee": {"id": 530}, "project": {"id": 349, "owner": {"id": 763}, "assignee": {"id": 844}}, "task": {"id": 374, "owner": {"id": 900}, "assignee": {"id": 1039}}, "job": {"id": 358, "assignee": {"id": 1150}}, "issue": {"id": 338, "owner": {"id": 1223}, "assignee": {"id": 1335}}, "organization": {"id": 122}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 64}, "assignee": {"id": 531}, "project": {"id": 326, "owner": {"id": 757}, "assignee": {"id": 887}}, "task": {"id": 331, "owner": {"id": 908}, "assignee": {"id": 1075}}, "job": {"id": 355, "assignee": {"id": 1180}}, "issue": {"id": 315, "owner": {"id": 1206}, "assignee": {"id": 1364}}, "organization": {"id": 1408}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 334, "owner": {"id": 15}, "assignee": {"id": 510}, "project": {"id": 372, "owner": {"id": 748}, "assignee": {"id": 809}}, "task": {"id": 300, "owner": {"id": 981}, "assignee": {"id": 1083}}, "job": {"id": 372, "assignee": {"id": 1168}}, "issue": {"id": 372, "owner": {"id": 1256}, "assignee": {"id": 1376}}, "organization": {"id": 1454}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 45}, "assignee": {"id": 555}, "project": {"id": 328, "owner": {"id": 733}, "assignee": {"id": 846}}, "task": {"id": 387, "owner": {"id": 959}, "assignee": {"id": 1088}}, "job": {"id": 363, "assignee": {"id": 1199}}, "issue": {"id": 336, "owner": {"id": 1221}, "assignee": {"id": 1383}}, "organization": {"id": 199}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "owner": {"id": 69}, "assignee": {"id": 565}, "project": {"id": 371, "owner": {"id": 760}, "assignee": {"id": 894}}, "task": {"id": 379, "owner": {"id": 990}, "assignee": {"id": 1083}}, "job": {"id": 383, "assignee": {"id": 1125}}, "issue": {"id": 356, "owner": {"id": 1201}, "assignee": {"id": 1347}}, "organization": {"id": 131}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 45}, "assignee": {"id": 515}, "project": {"id": 339, "owner": {"id": 756}, "assignee": {"id": 846}}, "task": {"id": 327, "owner": {"id": 914}, "assignee": {"id": 1060}}, "job": {"id": 343, "assignee": {"id": 1143}}, "issue": {"id": 353, "owner": {"id": 1281}, "assignee": {"id": 1388}}, "organization": {"id": 1468}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "owner": {"id": 28}, "assignee": {"id": 518}, "project": {"id": 350, "owner": {"id": 717}, "assignee": {"id": 814}}, "task": {"id": 374, "owner": {"id": 915}, "assignee": {"id": 1012}}, "job": {"id": 329, "assignee": {"id": 1135}}, "issue": {"id": 334, "owner": {"id": 1244}, "assignee": {"id": 1375}}, "organization": {"id": 1404}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "owner": {"id": 34}, "assignee": {"id": 545}, "project": {"id": 305, "owner": {"id": 757}, "assignee": {"id": 864}}, "task": {"id": 389, "owner": {"id": 964}, "assignee": {"id": 1017}}, "job": {"id": 324, "assignee": {"id": 1195}}, "issue": {"id": 316, "owner": {"id": 1282}, "assignee": {"id": 1395}}, "organization": {"id": 199}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "owner": {"id": 10}, "assignee": {"id": 550}, "project": {"id": 359, "owner": {"id": 748}, "assignee": {"id": 887}}, "task": {"id": 379, "owner": {"id": 937}, "assignee": {"id": 1075}}, "job": {"id": 340, "assignee": {"id": 1149}}, "issue": {"id": 305, "owner": {"id": 1291}, "assignee": {"id": 1312}}, "organization": {"id": 122}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 20}, "assignee": {"id": 550}, "project": {"id": 337, "owner": {"id": 793}, "assignee": {"id": 852}}, "task": {"id": 304, "owner": {"id": 915}, "assignee": {"id": 1041}}, "job": {"id": 347, "assignee": {"id": 1156}}, "issue": {"id": 375, "owner": {"id": 1220}, "assignee": {"id": 1303}}, "organization": {"id": 1418}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 90}, "assignee": {"id": 557}, "project": {"id": 341, "owner": {"id": 727}, "assignee": {"id": 885}}, "task": {"id": 329, "owner": {"id": 927}, "assignee": {"id": 1086}}, "job": {"id": 361, "assignee": {"id": 1140}}, "issue": {"id": 314, "owner": {"id": 1278}, "assignee": {"id": 1388}}, "organization": {"id": 1490}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 78}, "assignee": {"id": 576}, "project": {"id": 321, "owner": {"id": 742}, "assignee": {"id": 858}}, "task": {"id": 323, "owner": {"id": 950}, "assignee": {"id": 1027}}, "job": {"id": 352, "assignee": {"id": 1110}}, "issue": {"id": 321, "owner": {"id": 1212}, "assignee": {"id": 1339}}, "organization": {"id": 182}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 339, "owner": {"id": 33}, "assignee": {"id": 587}, "project": {"id": 398, "owner": {"id": 718}, "assignee": {"id": 887}}, "task": {"id": 336, "owner": {"id": 962}, "assignee": {"id": 1079}}, "job": {"id": 357, "assignee": {"id": 1168}}, "issue": {"id": 382, "owner": {"id": 1279}, "assignee": {"id": 1364}}, "organization": {"id": 143}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 339, "owner": {"id": 79}, "assignee": {"id": 513}, "project": {"id": 338, "owner": {"id": 731}, "assignee": {"id": 841}}, "task": {"id": 376, "owner": {"id": 946}, "assignee": {"id": 1082}}, "job": {"id": 365, "assignee": {"id": 1193}}, "issue": {"id": 340, "owner": {"id": 1210}, "assignee": {"id": 1358}}, "organization": {"id": 1494}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 392, "owner": {"id": 17}, "assignee": {"id": 577}, "project": {"id": 312, "owner": {"id": 727}, "assignee": {"id": 836}}, "task": {"id": 360, "owner": {"id": 927}, "assignee": {"id": 1061}}, "job": {"id": 345, "assignee": {"id": 1130}}, "issue": {"id": 353, "owner": {"id": 1231}, "assignee": {"id": 1397}}, "organization": {"id": 1474}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 382, "owner": {"id": 93}, "assignee": {"id": 515}, "project": {"id": 399, "owner": {"id": 708}, "assignee": {"id": 897}}, "task": {"id": 346, "owner": {"id": 962}, "assignee": {"id": 1092}}, "job": {"id": 370, "assignee": {"id": 1164}}, "issue": {"id": 383, "owner": {"id": 1291}, "assignee": {"id": 1386}}, "organization": {"id": 158}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 321, "owner": {"id": 38}, "assignee": {"id": 565}, "project": {"id": 307, "owner": {"id": 709}, "assignee": {"id": 806}}, "task": {"id": 357, "owner": {"id": 992}, "assignee": {"id": 1089}}, "job": {"id": 320, "assignee": {"id": 1122}}, "issue": {"id": 368, "owner": {"id": 1269}, "assignee": {"id": 1383}}, "organization": {"id": 148}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 366, "owner": {"id": 48}, "assignee": {"id": 589}, "project": {"id": 324, "owner": {"id": 717}, "assignee": {"id": 857}}, "task": {"id": 348, "owner": {"id": 943}, "assignee": {"id": 1043}}, "job": {"id": 315, "assignee": {"id": 1115}}, "issue": {"id": 323, "owner": {"id": 1236}, "assignee": {"id": 1357}}, "organization": {"id": 1445}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 384, "owner": {"id": 66}, "assignee": {"id": 508}, "project": {"id": 334, "owner": {"id": 733}, "assignee": {"id": 829}}, "task": {"id": 387, "owner": {"id": 917}, "assignee": {"id": 1095}}, "job": {"id": 390, "assignee": {"id": 1144}}, "issue": {"id": 346, "owner": {"id": 1273}, "assignee": {"id": 1384}}, "organization": {"id": 1476}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 335, "owner": {"id": 658}, "assignee": {"id": 584}, "project": {"id": 390, "owner": {"id": 753}, "assignee": {"id": 857}}, "task": {"id": 304, "owner": {"id": 975}, "assignee": {"id": 1080}}, "job": {"id": 337, "assignee": {"id": 1122}}, "issue": {"id": 399, "owner": {"id": 1295}, "assignee": {"id": 1378}}, "organization": {"id": 162}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 670}, "assignee": {"id": 598}, "project": {"id": 340, "owner": {"id": 760}, "assignee": {"id": 882}}, "task": {"id": 373, "owner": {"id": 994}, "assignee": {"id": 1031}}, "job": {"id": 378, "assignee": {"id": 1180}}, "issue": {"id": 300, "owner": {"id": 1246}, "assignee": {"id": 1359}}, "organization": {"id": 126}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 392, "owner": {"id": 639}, "assignee": {"id": 537}, "project": {"id": 347, "owner": {"id": 725}, "assignee": {"id": 811}}, "task": {"id": 384, "owner": {"id": 943}, "assignee": {"id": 1057}}, "job": {"id": 300, "assignee": {"id": 1191}}, "issue": {"id": 394, "owner": {"id": 1257}, "assignee": {"id": 1310}}, "organization": {"id": 1499}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 370, "owner": {"id": 615}, "assignee": {"id": 566}, "project": {"id": 378, "owner": {"id": 756}, "assignee": {"id": 807}}, "task": {"id": 323, "owner": {"id": 969}, "assignee": {"id": 1016}}, "job": {"id": 338, "assignee": {"id": 1103}}, "issue": {"id": 351, "owner": {"id": 1261}, "assignee": {"id": 1371}}, "organization": {"id": 1446}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "owner": {"id": 641}, "assignee": {"id": 520}, "project": {"id": 324, "owner": {"id": 725}, "assignee": {"id": 831}}, "task": {"id": 399, "owner": {"id": 900}, "assignee": {"id": 1047}}, "job": {"id": 350, "assignee": {"id": 1180}}, "issue": {"id": 348, "owner": {"id": 1270}, "assignee": {"id": 1356}}, "organization": {"id": 122}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 683}, "assignee": {"id": 539}, "project": {"id": 321, "owner": {"id": 792}, "assignee": {"id": 825}}, "task": {"id": 372, "owner": {"id": 902}, "assignee": {"id": 1064}}, "job": {"id": 382, "assignee": {"id": 1195}}, "issue": {"id": 307, "owner": {"id": 1219}, "assignee": {"id": 1390}}, "organization": {"id": 185}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "owner": {"id": 695}, "assignee": {"id": 555}, "project": {"id": 327, "owner": {"id": 794}, "assignee": {"id": 833}}, "task": {"id": 307, "owner": {"id": 905}, "assignee": {"id": 1065}}, "job": {"id": 394, "assignee": {"id": 1161}}, "issue": {"id": 368, "owner": {"id": 1258}, "assignee": {"id": 1395}}, "organization": {"id": 1441}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "owner": {"id": 659}, "assignee": {"id": 551}, "project": {"id": 309, "owner": {"id": 763}, "assignee": {"id": 842}}, "task": {"id": 335, "owner": {"id": 931}, "assignee": {"id": 1091}}, "job": {"id": 305, "assignee": {"id": 1155}}, "issue": {"id": 322, "owner": {"id": 1212}, "assignee": {"id": 1364}}, "organization": {"id": 1475}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "owner": {"id": 674}, "assignee": {"id": 582}, "project": {"id": 367, "owner": {"id": 713}, "assignee": {"id": 822}}, "task": {"id": 367, "owner": {"id": 942}, "assignee": {"id": 1035}}, "job": {"id": 321, "assignee": {"id": 1160}}, "issue": {"id": 381, "owner": {"id": 1247}, "assignee": {"id": 1355}}, "organization": {"id": 196}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "owner": {"id": 639}, "assignee": {"id": 539}, "project": {"id": 377, "owner": {"id": 719}, "assignee": {"id": 877}}, "task": {"id": 303, "owner": {"id": 912}, "assignee": {"id": 1019}}, "job": {"id": 367, "assignee": {"id": 1124}}, "issue": {"id": 361, "owner": {"id": 1259}, "assignee": {"id": 1356}}, "organization": {"id": 199}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "owner": {"id": 697}, "assignee": {"id": 590}, "project": {"id": 370, "owner": {"id": 763}, "assignee": {"id": 843}}, "task": {"id": 387, "owner": {"id": 949}, "assignee": {"id": 1000}}, "job": {"id": 309, "assignee": {"id": 1188}}, "issue": {"id": 326, "owner": {"id": 1281}, "assignee": {"id": 1386}}, "organization": {"id": 1447}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "owner": {"id": 653}, "assignee": {"id": 525}, "project": {"id": 370, "owner": {"id": 793}, "assignee": {"id": 804}}, "task": {"id": 339, "owner": {"id": 958}, "assignee": {"id": 1031}}, "job": {"id": 328, "assignee": {"id": 1191}}, "issue": {"id": 373, "owner": {"id": 1240}, "assignee": {"id": 1304}}, "organization": {"id": 1400}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 340, "owner": {"id": 683}, "assignee": {"id": 592}, "project": {"id": 344, "owner": {"id": 705}, "assignee": {"id": 846}}, "task": {"id": 381, "owner": {"id": 970}, "assignee": {"id": 1035}}, "job": {"id": 318, "assignee": {"id": 1198}}, "issue": {"id": 301, "owner": {"id": 1226}, "assignee": {"id": 1399}}, "organization": {"id": 136}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 652}, "assignee": {"id": 570}, "project": {"id": 391, "owner": {"id": 700}, "assignee": {"id": 866}}, "task": {"id": 342, "owner": {"id": 942}, "assignee": {"id": 1074}}, "job": {"id": 342, "assignee": {"id": 1132}}, "issue": {"id": 375, "owner": {"id": 1248}, "assignee": {"id": 1383}}, "organization": {"id": 121}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 301, "owner": {"id": 647}, "assignee": {"id": 589}, "project": {"id": 397, "owner": {"id": 740}, "assignee": {"id": 855}}, "task": {"id": 349, "owner": {"id": 999}, "assignee": {"id": 1076}}, "job": {"id": 386, "assignee": {"id": 1133}}, "issue": {"id": 398, "owner": {"id": 1268}, "assignee": {"id": 1363}}, "organization": {"id": 1427}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 309, "owner": {"id": 672}, "assignee": {"id": 586}, "project": {"id": 311, "owner": {"id": 702}, "assignee": {"id": 838}}, "task": {"id": 388, "owner": {"id": 983}, "assignee": {"id": 1052}}, "job": {"id": 364, "assignee": {"id": 1110}}, "issue": {"id": 326, "owner": {"id": 1278}, "assignee": {"id": 1312}}, "organization": {"id": 1472}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 656}, "assignee": {"id": 578}, "project": {"id": 366, "owner": {"id": 712}, "assignee": {"id": 831}}, "task": {"id": 326, "owner": {"id": 910}, "assignee": {"id": 1003}}, "job": {"id": 303, "assignee": {"id": 1100}}, "issue": {"id": 332, "owner": {"id": 1213}, "assignee": {"id": 1396}}, "organization": {"id": 131}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"id": 337, "owner": {"id": 626}, "assignee": {"id": 501}, "project": {"id": 347, "owner": {"id": 784}, "assignee": {"id": 836}}, "task": {"id": 348, "owner": {"id": 934}, "assignee": {"id": 1063}}, "job": {"id": 364, "assignee": {"id": 1165}}, "issue": {"id": 386, "owner": {"id": 1219}, "assignee": {"id": 1351}}, "organization": {"id": 178}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 365, "owner": {"id": 635}, "assignee": {"id": 555}, "project": {"id": 382, "owner": {"id": 723}, "assignee": {"id": 863}}, "task": {"id": 326, "owner": {"id": 990}, "assignee": {"id": 1060}}, "job": {"id": 302, "assignee": {"id": 1145}}, "issue": {"id": 312, "owner": {"id": 1273}, "assignee": {"id": 1357}}, "organization": {"id": 1464}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 379, "owner": {"id": 606}, "assignee": {"id": 576}, "project": {"id": 352, "owner": {"id": 753}, "assignee": {"id": 828}}, "task": {"id": 393, "owner": {"id": 931}, "assignee": {"id": 1061}}, "job": {"id": 374, "assignee": {"id": 1162}}, "issue": {"id": 337, "owner": {"id": 1252}, "assignee": {"id": 1334}}, "organization": {"id": 1431}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 330, "owner": {"id": 687}, "assignee": {"id": 548}, "project": {"id": 383, "owner": {"id": 798}, "assignee": {"id": 847}}, "task": {"id": 350, "owner": {"id": 941}, "assignee": {"id": 1054}}, "job": {"id": 379, "assignee": {"id": 1117}}, "issue": {"id": 323, "owner": {"id": 1293}, "assignee": {"id": 1392}}, "organization": {"id": 153}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 628}, "assignee": {"id": 525}, "project": {"id": 332, "owner": {"id": 751}, "assignee": {"id": 816}}, "task": {"id": 359, "owner": {"id": 936}, "assignee": {"id": 1049}}, "job": {"id": 314, "assignee": {"id": 1165}}, "issue": {"id": 314, "owner": {"id": 1284}, "assignee": {"id": 1389}}, "organization": {"id": 163}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 326, "owner": {"id": 612}, "assignee": {"id": 548}, "project": {"id": 311, "owner": {"id": 779}, "assignee": {"id": 845}}, "task": {"id": 350, "owner": {"id": 961}, "assignee": {"id": 1087}}, "job": {"id": 359, "assignee": {"id": 1167}}, "issue": {"id": 305, "owner": {"id": 1233}, "assignee": {"id": 1391}}, "organization": {"id": 1455}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 363, "owner": {"id": 612}, "assignee": {"id": 525}, "project": {"id": 383, "owner": {"id": 746}, "assignee": {"id": 819}}, "task": {"id": 339, "owner": {"id": 951}, "assignee": {"id": 1058}}, "job": {"id": 346, "assignee": {"id": 1167}}, "issue": {"id": 319, "owner": {"id": 1267}, "assignee": {"id": 1348}}, "organization": {"id": 1431}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 684}, "assignee": {"id": 583}, "project": {"id": 392, "owner": {"id": 726}, "assignee": {"id": 893}}, "task": {"id": 302, "owner": {"id": 955}, "assignee": {"id": 1024}}, "job": {"id": 315, "assignee": {"id": 1143}}, "issue": {"id": 375, "owner": {"id": 1286}, "assignee": {"id": 1321}}, "organization": {"id": 149}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 676}, "assignee": {"id": 569}, "project": {"id": 331, "owner": {"id": 787}, "assignee": {"id": 806}}, "task": {"id": 317, "owner": {"id": 934}, "assignee": {"id": 1087}}, "job": {"id": 348, "assignee": {"id": 1162}}, "issue": {"id": 381, "owner": {"id": 1244}, "assignee": {"id": 1300}}, "organization": {"id": 173}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "owner": {"id": 610}, "assignee": {"id": 559}, "project": {"id": 350, "owner": {"id": 710}, "assignee": {"id": 828}}, "task": {"id": 331, "owner": {"id": 972}, "assignee": {"id": 1006}}, "job": {"id": 323, "assignee": {"id": 1125}}, "issue": {"id": 332, "owner": {"id": 1214}, "assignee": {"id": 1305}}, "organization": {"id": 1407}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 677}, "assignee": {"id": 524}, "project": {"id": 342, "owner": {"id": 702}, "assignee": {"id": 848}}, "task": {"id": 358, "owner": {"id": 903}, "assignee": {"id": 1061}}, "job": {"id": 318, "assignee": {"id": 1162}}, "issue": {"id": 385, "owner": {"id": 1267}, "assignee": {"id": 1378}}, "organization": {"id": 1450}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "owner": {"id": 674}, "assignee": {"id": 547}, "project": {"id": 331, "owner": {"id": 732}, "assignee": {"id": 821}}, "task": {"id": 338, "owner": {"id": 904}, "assignee": {"id": 1051}}, "job": {"id": 303, "assignee": {"id": 1157}}, "issue": {"id": 395, "owner": {"id": 1283}, "assignee": {"id": 1311}}, "organization": {"id": 155}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 657}, "assignee": {"id": 527}, "project": {"id": 327, "owner": {"id": 737}, "assignee": {"id": 807}}, "task": {"id": 303, "owner": {"id": 913}, "assignee": {"id": 1067}}, "job": {"id": 358, "assignee": {"id": 1134}}, "issue": {"id": 329, "owner": {"id": 1277}, "assignee": {"id": 1329}}, "organization": {"id": 185}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "owner": {"id": 695}, "assignee": {"id": 526}, "project": {"id": 398, "owner": {"id": 738}, "assignee": {"id": 809}}, "task": {"id": 355, "owner": {"id": 911}, "assignee": {"id": 1029}}, "job": {"id": 389, "assignee": {"id": 1175}}, "issue": {"id": 385, "owner": {"id": 1294}, "assignee": {"id": 1346}}, "organization": {"id": 1411}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 682}, "assignee": {"id": 587}, "project": {"id": 376, "owner": {"id": 717}, "assignee": {"id": 885}}, "task": {"id": 369, "owner": {"id": 950}, "assignee": {"id": 1048}}, "job": {"id": 320, "assignee": {"id": 1124}}, "issue": {"id": 385, "owner": {"id": 1269}, "assignee": {"id": 1374}}, "organization": {"id": 1445}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 372, "owner": {"id": 631}, "assignee": {"id": 535}, "project": {"id": 317, "owner": {"id": 729}, "assignee": {"id": 811}}, "task": {"id": 329, "owner": {"id": 977}, "assignee": {"id": 1050}}, "job": {"id": 374, "assignee": {"id": 1194}}, "issue": {"id": 343, "owner": {"id": 1202}, "assignee": {"id": 1399}}, "organization": {"id": 154}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 392, "owner": {"id": 679}, "assignee": {"id": 513}, "project": {"id": 305, "owner": {"id": 763}, "assignee": {"id": 826}}, "task": {"id": 330, "owner": {"id": 901}, "assignee": {"id": 1065}}, "job": {"id": 326, "assignee": {"id": 1190}}, "issue": {"id": 327, "owner": {"id": 1274}, "assignee": {"id": 1301}}, "organization": {"id": 195}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 378, "owner": {"id": 658}, "assignee": {"id": 537}, "project": {"id": 349, "owner": {"id": 788}, "assignee": {"id": 815}}, "task": {"id": 342, "owner": {"id": 922}, "assignee": {"id": 1013}}, "job": {"id": 341, "assignee": {"id": 1125}}, "issue": {"id": 329, "owner": {"id": 1285}, "assignee": {"id": 1356}}, "organization": {"id": 1472}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 333, "owner": {"id": 602}, "assignee": {"id": 523}, "project": {"id": 324, "owner": {"id": 796}, "assignee": {"id": 879}}, "task": {"id": 396, "owner": {"id": 917}, "assignee": {"id": 1054}}, "job": {"id": 363, "assignee": {"id": 1110}}, "issue": {"id": 394, "owner": {"id": 1298}, "assignee": {"id": 1336}}, "organization": {"id": 1411}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 365, "owner": {"id": 612}, "assignee": {"id": 513}, "project": {"id": 351, "owner": {"id": 751}, "assignee": {"id": 842}}, "task": {"id": 349, "owner": {"id": 980}, "assignee": {"id": 1021}}, "job": {"id": 381, "assignee": {"id": 1177}}, "issue": {"id": 327, "owner": {"id": 1238}, "assignee": {"id": 1323}}, "organization": {"id": 113}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 373, "owner": {"id": 666}, "assignee": {"id": 503}, "project": {"id": 368, "owner": {"id": 784}, "assignee": {"id": 870}}, "task": {"id": 326, "owner": {"id": 909}, "assignee": {"id": 1044}}, "job": {"id": 392, "assignee": {"id": 1175}}, "issue": {"id": 398, "owner": {"id": 1221}, "assignee": {"id": 1351}}, "organization": {"id": 145}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 330, "owner": {"id": 667}, "assignee": {"id": 516}, "project": {"id": 321, "owner": {"id": 716}, "assignee": {"id": 832}}, "task": {"id": 359, "owner": {"id": 959}, "assignee": {"id": 1026}}, "job": {"id": 369, "assignee": {"id": 1156}}, "issue": {"id": 364, "owner": {"id": 1297}, "assignee": {"id": 1345}}, "organization": {"id": 1474}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 361, "owner": {"id": 613}, "assignee": {"id": 565}, "project": {"id": 388, "owner": {"id": 772}, "assignee": {"id": 878}}, "task": {"id": 356, "owner": {"id": 927}, "assignee": {"id": 1027}}, "job": {"id": 394, "assignee": {"id": 1130}}, "issue": {"id": 347, "owner": {"id": 1225}, "assignee": {"id": 1365}}, "organization": {"id": 1425}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 351, "owner": {"id": 643}, "assignee": {"id": 537}, "project": {"id": 336, "owner": {"id": 737}, "assignee": {"id": 870}}, "task": {"id": 333, "owner": {"id": 934}, "assignee": {"id": 1013}}, "job": {"id": 325, "assignee": {"id": 1173}}, "issue": {"id": 362, "owner": {"id": 1231}, "assignee": {"id": 1372}}, "organization": {"id": 157}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 300, "owner": {"id": 671}, "assignee": {"id": 526}, "project": {"id": 321, "owner": {"id": 717}, "assignee": {"id": 897}}, "task": {"id": 320, "owner": {"id": 954}, "assignee": {"id": 1095}}, "job": {"id": 355, "assignee": {"id": 1154}}, "issue": {"id": 382, "owner": {"id": 1280}, "assignee": {"id": 1344}}, "organization": {"id": 172}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 697}, "assignee": {"id": 551}, "project": {"id": 339, "owner": {"id": 773}, "assignee": {"id": 865}}, "task": {"id": 388, "owner": {"id": 957}, "assignee": {"id": 1002}}, "job": {"id": 315, "assignee": {"id": 1124}}, "issue": {"id": 359, "owner": {"id": 1257}, "assignee": {"id": 1362}}, "organization": {"id": 1453}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 600}, "assignee": {"id": 583}, "project": {"id": 366, "owner": {"id": 771}, "assignee": {"id": 841}}, "task": {"id": 393, "owner": {"id": 978}, "assignee": {"id": 1012}}, "job": {"id": 316, "assignee": {"id": 1128}}, "issue": {"id": 300, "owner": {"id": 1273}, "assignee": {"id": 1305}}, "organization": {"id": 1401}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "owner": {"id": 609}, "assignee": {"id": 569}, "project": {"id": 383, "owner": {"id": 712}, "assignee": {"id": 899}}, "task": {"id": 362, "owner": {"id": 913}, "assignee": {"id": 1019}}, "job": {"id": 376, "assignee": {"id": 1122}}, "issue": {"id": 369, "owner": {"id": 1220}, "assignee": {"id": 1308}}, "organization": {"id": 169}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "owner": {"id": 664}, "assignee": {"id": 503}, "project": {"id": 339, "owner": {"id": 715}, "assignee": {"id": 861}}, "task": {"id": 371, "owner": {"id": 966}, "assignee": {"id": 1062}}, "job": {"id": 335, "assignee": {"id": 1133}}, "issue": {"id": 392, "owner": {"id": 1227}, "assignee": {"id": 1342}}, "organization": {"id": 152}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "owner": {"id": 624}, "assignee": {"id": 545}, "project": {"id": 355, "owner": {"id": 795}, "assignee": {"id": 875}}, "task": {"id": 385, "owner": {"id": 922}, "assignee": {"id": 1025}}, "job": {"id": 381, "assignee": {"id": 1165}}, "issue": {"id": 307, "owner": {"id": 1246}, "assignee": {"id": 1355}}, "organization": {"id": 1403}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "owner": {"id": 635}, "assignee": {"id": 520}, "project": {"id": 353, "owner": {"id": 726}, "assignee": {"id": 814}}, "task": {"id": 384, "owner": {"id": 939}, "assignee": {"id": 1066}}, "job": {"id": 364, "assignee": {"id": 1132}}, "issue": {"id": 320, "owner": {"id": 1239}, "assignee": {"id": 1327}}, "organization": {"id": 1492}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "owner": {"id": 619}, "assignee": {"id": 550}, "project": {"id": 367, "owner": {"id": 716}, "assignee": {"id": 864}}, "task": {"id": 354, "owner": {"id": 926}, "assignee": {"id": 1085}}, "job": {"id": 302, "assignee": {"id": 1124}}, "issue": {"id": 348, "owner": {"id": 1290}, "assignee": {"id": 1312}}, "organization": {"id": 142}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "owner": {"id": 660}, "assignee": {"id": 512}, "project": {"id": 316, "owner": {"id": 727}, "assignee": {"id": 825}}, "task": {"id": 313, "owner": {"id": 930}, "assignee": {"id": 1082}}, "job": {"id": 368, "assignee": {"id": 1148}}, "issue": {"id": 310, "owner": {"id": 1273}, "assignee": {"id": 1398}}, "organization": {"id": 143}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 380, "owner": {"id": 614}, "assignee": {"id": 512}, "project": {"id": 332, "owner": {"id": 708}, "assignee": {"id": 840}}, "task": {"id": 395, "owner": {"id": 943}, "assignee": {"id": 1074}}, "job": {"id": 367, "assignee": {"id": 1110}}, "issue": {"id": 309, "owner": {"id": 1268}, "assignee": {"id": 1368}}, "organization": {"id": 1446}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"id": 369, "owner": {"id": 637}, "assignee": {"id": 522}, "project": {"id": 334, "owner": {"id": 790}, "assignee": {"id": 826}}, "task": {"id": 383, "owner": {"id": 924}, "assignee": {"id": 1054}}, "job": {"id": 391, "assignee": {"id": 1138}}, "issue": {"id": 392, "owner": {"id": 1253}, "assignee": {"id": 1332}}, "organization": {"id": 1462}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 693}, "assignee": {"id": 557}, "project": {"id": 340, "owner": {"id": 752}, "assignee": {"id": 872}}, "task": {"id": 392, "owner": {"id": 941}, "assignee": {"id": 1086}}, "job": {"id": 314, "assignee": {"id": 1184}}, "issue": {"id": 374, "owner": {"id": 1275}, "assignee": {"id": 1351}}, "organization": {"id": 178}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 323, "owner": {"id": 676}, "assignee": {"id": 555}, "project": {"id": 327, "owner": {"id": 705}, "assignee": {"id": 812}}, "task": {"id": 383, "owner": {"id": 962}, "assignee": {"id": 1097}}, "job": {"id": 324, "assignee": {"id": 1165}}, "issue": {"id": 330, "owner": {"id": 1235}, "assignee": {"id": 1351}}, "organization": {"id": 111}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 662}, "assignee": {"id": 571}, "project": {"id": 316, "owner": {"id": 746}, "assignee": {"id": 857}}, "task": {"id": 388, "owner": {"id": 925}, "assignee": {"id": 1083}}, "job": {"id": 346, "assignee": {"id": 1122}}, "issue": {"id": 322, "owner": {"id": 1214}, "assignee": {"id": 1340}}, "organization": {"id": 1493}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 332, "owner": {"id": 604}, "assignee": {"id": 512}, "project": {"id": 313, "owner": {"id": 732}, "assignee": {"id": 815}}, "task": {"id": 352, "owner": {"id": 912}, "assignee": {"id": 1002}}, "job": {"id": 321, "assignee": {"id": 1193}}, "issue": {"id": 399, "owner": {"id": 1292}, "assignee": {"id": 1334}}, "organization": {"id": 1420}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 365, "owner": {"id": 629}, "assignee": {"id": 521}, "project": {"id": 339, "owner": {"id": 711}, "assignee": {"id": 863}}, "task": {"id": 357, "owner": {"id": 901}, "assignee": {"id": 1063}}, "job": {"id": 338, "assignee": {"id": 1166}}, "issue": {"id": 399, "owner": {"id": 1247}, "assignee": {"id": 1364}}, "organization": {"id": 184}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"id": 377, "owner": {"id": 618}, "assignee": {"id": 549}, "project": {"id": 329, "owner": {"id": 702}, "assignee": {"id": 877}}, "task": {"id": 386, "owner": {"id": 983}, "assignee": {"id": 1036}}, "job": {"id": 303, "assignee": {"id": 1104}}, "issue": {"id": 327, "owner": {"id": 1231}, "assignee": {"id": 1309}}, "organization": {"id": 170}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 338, "owner": {"id": 641}, "assignee": {"id": 527}, "project": {"id": 355, "owner": {"id": 702}, "assignee": {"id": 890}}, "task": {"id": 303, "owner": {"id": 998}, "assignee": {"id": 1008}}, "job": {"id": 352, "assignee": {"id": 1192}}, "issue": {"id": 355, "owner": {"id": 1250}, "assignee": {"id": 1355}}, "organization": {"id": 1485}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 639}, "assignee": {"id": 558}, "project": {"id": 320, "owner": {"id": 769}, "assignee": {"id": 896}}, "task": {"id": 325, "owner": {"id": 986}, "assignee": {"id": 1099}}, "job": {"id": 368, "assignee": {"id": 1131}}, "issue": {"id": 354, "owner": {"id": 1284}, "assignee": {"id": 1346}}, "organization": {"id": 1459}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 310, "owner": {"id": 664}, "assignee": {"id": 505}, "project": {"id": 386, "owner": {"id": 735}, "assignee": {"id": 877}}, "task": {"id": 388, "owner": {"id": 987}, "assignee": {"id": 1058}}, "job": {"id": 399, "assignee": {"id": 1116}}, "issue": {"id": 321, "owner": {"id": 1291}, "assignee": {"id": 1368}}, "organization": {"id": 125}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 629}, "assignee": {"id": 517}, "project": {"id": 384, "owner": {"id": 799}, "assignee": {"id": 843}}, "task": {"id": 307, "owner": {"id": 966}, "assignee": {"id": 1011}}, "job": {"id": 380, "assignee": {"id": 1151}}, "issue": {"id": 313, "owner": {"id": 1210}, "assignee": {"id": 1387}}, "organization": {"id": 183}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 677}, "assignee": {"id": 532}, "project": {"id": 394, "owner": {"id": 741}, "assignee": {"id": 863}}, "task": {"id": 377, "owner": {"id": 961}, "assignee": {"id": 1032}}, "job": {"id": 317, "assignee": {"id": 1187}}, "issue": {"id": 330, "owner": {"id": 1201}, "assignee": {"id": 1346}}, "organization": {"id": 1486}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 399, "owner": {"id": 679}, "assignee": {"id": 556}, "project": {"id": 307, "owner": {"id": 745}, "assignee": {"id": 851}}, "task": {"id": 391, "owner": {"id": 993}, "assignee": {"id": 1020}}, "job": {"id": 399, "assignee": {"id": 1188}}, "issue": {"id": 367, "owner": {"id": 1201}, "assignee": {"id": 1332}}, "organization": {"id": 1475}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "owner": {"id": 629}, "assignee": {"id": 591}, "project": {"id": 332, "owner": {"id": 707}, "assignee": {"id": 828}}, "task": {"id": 340, "owner": {"id": 990}, "assignee": {"id": 1079}}, "job": {"id": 348, "assignee": {"id": 1136}}, "issue": {"id": 344, "owner": {"id": 1242}, "assignee": {"id": 1328}}, "organization": {"id": 174}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "owner": {"id": 660}, "assignee": {"id": 515}, "project": {"id": 390, "owner": {"id": 719}, "assignee": {"id": 841}}, "task": {"id": 376, "owner": {"id": 924}, "assignee": {"id": 1046}}, "job": {"id": 347, "assignee": {"id": 1189}}, "issue": {"id": 394, "owner": {"id": 1266}, "assignee": {"id": 1326}}, "organization": {"id": 156}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "owner": {"id": 696}, "assignee": {"id": 528}, "project": {"id": 305, "owner": {"id": 767}, "assignee": {"id": 851}}, "task": {"id": 318, "owner": {"id": 957}, "assignee": {"id": 1093}}, "job": {"id": 342, "assignee": {"id": 1189}}, "issue": {"id": 340, "owner": {"id": 1206}, "assignee": {"id": 1309}}, "organization": {"id": 1495}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "owner": {"id": 601}, "assignee": {"id": 598}, "project": {"id": 399, "owner": {"id": 775}, "assignee": {"id": 899}}, "task": {"id": 334, "owner": {"id": 924}, "assignee": {"id": 1073}}, "job": {"id": 352, "assignee": {"id": 1176}}, "issue": {"id": 303, "owner": {"id": 1298}, "assignee": {"id": 1327}}, "organization": {"id": 1495}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "owner": {"id": 628}, "assignee": {"id": 548}, "project": {"id": 308, "owner": {"id": 762}, "assignee": {"id": 809}}, "task": {"id": 355, "owner": {"id": 978}, "assignee": {"id": 1058}}, "job": {"id": 366, "assignee": {"id": 1137}}, "issue": {"id": 344, "owner": {"id": 1225}, "assignee": {"id": 1393}}, "organization": {"id": 180}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 666}, "assignee": {"id": 566}, "project": {"id": 391, "owner": {"id": 792}, "assignee": {"id": 886}}, "task": {"id": 342, "owner": {"id": 903}, "assignee": {"id": 1092}}, "job": {"id": 330, "assignee": {"id": 1159}}, "issue": {"id": 350, "owner": {"id": 1226}, "assignee": {"id": 1345}}, "organization": {"id": 121}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 603}, "assignee": {"id": 500}, "project": {"id": 312, "owner": {"id": 716}, "assignee": {"id": 853}}, "task": {"id": 375, "owner": {"id": 950}, "assignee": {"id": 1075}}, "job": {"id": 315, "assignee": {"id": 1179}}, "issue": {"id": 388, "owner": {"id": 1220}, "assignee": {"id": 1366}}, "organization": {"id": 1470}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 678}, "assignee": {"id": 560}, "project": {"id": 389, "owner": {"id": 708}, "assignee": {"id": 879}}, "task": {"id": 394, "owner": {"id": 984}, "assignee": {"id": 1042}}, "job": {"id": 337, "assignee": {"id": 1188}}, "issue": {"id": 369, "owner": {"id": 1259}, "assignee": {"id": 1345}}, "organization": {"id": 1470}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 390, "owner": {"id": 691}, "assignee": {"id": 528}, "project": {"id": 326, "owner": {"id": 799}, "assignee": {"id": 870}}, "task": {"id": 379, "owner": {"id": 987}, "assignee": {"id": 1067}}, "job": {"id": 337, "assignee": {"id": 1103}}, "issue": {"id": 399, "owner": {"id": 1286}, "assignee": {"id": 1388}}, "organization": {"id": 167}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 395, "owner": {"id": 688}, "assignee": {"id": 517}, "project": {"id": 312, "owner": {"id": 784}, "assignee": {"id": 821}}, "task": {"id": 300, "owner": {"id": 909}, "assignee": {"id": 1095}}, "job": {"id": 377, "assignee": {"id": 1156}}, "issue": {"id": 377, "owner": {"id": 1266}, "assignee": {"id": 1328}}, "organization": {"id": 159}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 622}, "assignee": {"id": 520}, "project": {"id": 332, "owner": {"id": 746}, "assignee": {"id": 811}}, "task": {"id": 360, "owner": {"id": 999}, "assignee": {"id": 1094}}, "job": {"id": 338, "assignee": {"id": 1195}}, "issue": {"id": 349, "owner": {"id": 1213}, "assignee": {"id": 1315}}, "organization": {"id": 1489}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 682}, "assignee": {"id": 595}, "project": {"id": 352, "owner": {"id": 756}, "assignee": {"id": 869}}, "task": {"id": 343, "owner": {"id": 917}, "assignee": {"id": 1001}}, "job": {"id": 388, "assignee": {"id": 1191}}, "issue": {"id": 392, "owner": {"id": 1218}, "assignee": {"id": 1327}}, "organization": {"id": 1460}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 620}, "assignee": {"id": 563}, "project": {"id": 384, "owner": {"id": 781}, "assignee": {"id": 821}}, "task": {"id": 398, "owner": {"id": 969}, "assignee": {"id": 1036}}, "job": {"id": 389, "assignee": {"id": 1132}}, "issue": {"id": 382, "owner": {"id": 1237}, "assignee": {"id": 1368}}, "organization": {"id": 105}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 333, "owner": {"id": 646}, "assignee": {"id": 594}, "project": {"id": 378, "owner": {"id": 797}, "assignee": {"id": 855}}, "task": {"id": 371, "owner": {"id": 929}, "assignee": {"id": 1094}}, "job": {"id": 349, "assignee": {"id": 1190}}, "issue": {"id": 387, "owner": {"id": 1258}, "assignee": {"id": 1375}}, "organization": {"id": 196}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 345, "owner": {"id": 634}, "assignee": {"id": 539}, "project": {"id": 368, "owner": {"id": 745}, "assignee": {"id": 857}}, "task": {"id": 323, "owner": {"id": 983}, "assignee": {"id": 1083}}, "job": {"id": 344, "assignee": {"id": 1171}}, "issue": {"id": 384, "owner": {"id": 1216}, "assignee": {"id": 1351}}, "organization": {"id": 1446}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 394, "owner": {"id": 694}, "assignee": {"id": 515}, "project": {"id": 379, "owner": {"id": 792}, "assignee": {"id": 857}}, "task": {"id": 360, "owner": {"id": 977}, "assignee": {"id": 1031}}, "job": {"id": 391, "assignee": {"id": 1130}}, "issue": {"id": 388, "owner": {"id": 1293}, "assignee": {"id": 1373}}, "organization": {"id": 1445}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 382, "owner": {"id": 631}, "assignee": {"id": 506}, "project": {"id": 313, "owner": {"id": 718}, "assignee": {"id": 855}}, "task": {"id": 370, "owner": {"id": 937}, "assignee": {"id": 1073}}, "job": {"id": 348, "assignee": {"id": 1127}}, "issue": {"id": 388, "owner": {"id": 1230}, "assignee": {"id": 1375}}, "organization": {"id": 119}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 379, "owner": {"id": 682}, "assignee": {"id": 511}, "project": {"id": 312, "owner": {"id": 726}, "assignee": {"id": 813}}, "task": {"id": 380, "owner": {"id": 967}, "assignee": {"id": 1082}}, "job": {"id": 310, "assignee": {"id": 1115}}, "issue": {"id": 396, "owner": {"id": 1228}, "assignee": {"id": 1353}}, "organization": {"id": 191}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 353, "owner": {"id": 615}, "assignee": {"id": 584}, "project": {"id": 350, "owner": {"id": 780}, "assignee": {"id": 809}}, "task": {"id": 304, "owner": {"id": 914}, "assignee": {"id": 1090}}, "job": {"id": 371, "assignee": {"id": 1185}}, "issue": {"id": 379, "owner": {"id": 1290}, "assignee": {"id": 1393}}, "organization": {"id": 1406}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 628}, "assignee": {"id": 515}, "project": {"id": 317, "owner": {"id": 735}, "assignee": {"id": 882}}, "task": {"id": 367, "owner": {"id": 985}, "assignee": {"id": 1054}}, "job": {"id": 348, "assignee": {"id": 1131}}, "issue": {"id": 331, "owner": {"id": 1226}, "assignee": {"id": 1376}}, "organization": {"id": 1434}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "owner": {"id": 645}, "assignee": {"id": 524}, "project": {"id": 308, "owner": {"id": 730}, "assignee": {"id": 800}}, "task": {"id": 323, "owner": {"id": 997}, "assignee": {"id": 1052}}, "job": {"id": 336, "assignee": {"id": 1128}}, "issue": {"id": 347, "owner": {"id": 1246}, "assignee": {"id": 1323}}, "organization": {"id": 176}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "owner": {"id": 685}, "assignee": {"id": 577}, "project": {"id": 349, "owner": {"id": 758}, "assignee": {"id": 880}}, "task": {"id": 351, "owner": {"id": 994}, "assignee": {"id": 1067}}, "job": {"id": 318, "assignee": {"id": 1169}}, "issue": {"id": 360, "owner": {"id": 1288}, "assignee": {"id": 1353}}, "organization": {"id": 114}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "owner": {"id": 672}, "assignee": {"id": 511}, "project": {"id": 383, "owner": {"id": 750}, "assignee": {"id": 844}}, "task": {"id": 306, "owner": {"id": 900}, "assignee": {"id": 1014}}, "job": {"id": 389, "assignee": {"id": 1199}}, "issue": {"id": 332, "owner": {"id": 1287}, "assignee": {"id": 1346}}, "organization": {"id": 1491}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 686}, "assignee": {"id": 573}, "project": {"id": 391, "owner": {"id": 731}, "assignee": {"id": 810}}, "task": {"id": 339, "owner": {"id": 905}, "assignee": {"id": 1059}}, "job": {"id": 370, "assignee": {"id": 1193}}, "issue": {"id": 306, "owner": {"id": 1234}, "assignee": {"id": 1373}}, "organization": {"id": 1434}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "owner": {"id": 613}, "assignee": {"id": 518}, "project": {"id": 311, "owner": {"id": 760}, "assignee": {"id": 826}}, "task": {"id": 358, "owner": {"id": 982}, "assignee": {"id": 1011}}, "job": {"id": 362, "assignee": {"id": 1168}}, "issue": {"id": 340, "owner": {"id": 1280}, "assignee": {"id": 1399}}, "organization": {"id": 122}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "owner": {"id": 648}, "assignee": {"id": 581}, "project": {"id": 328, "owner": {"id": 785}, "assignee": {"id": 826}}, "task": {"id": 333, "owner": {"id": 950}, "assignee": {"id": 1005}}, "job": {"id": 312, "assignee": {"id": 1105}}, "issue": {"id": 373, "owner": {"id": 1262}, "assignee": {"id": 1395}}, "organization": {"id": 188}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 679}, "assignee": {"id": 525}, "project": {"id": 312, "owner": {"id": 735}, "assignee": {"id": 829}}, "task": {"id": 318, "owner": {"id": 997}, "assignee": {"id": 1050}}, "job": {"id": 355, "assignee": {"id": 1122}}, "issue": {"id": 331, "owner": {"id": 1241}, "assignee": {"id": 1380}}, "organization": {"id": 1456}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 637}, "assignee": {"id": 547}, "project": {"id": 378, "owner": {"id": 733}, "assignee": {"id": 879}}, "task": {"id": 341, "owner": {"id": 950}, "assignee": {"id": 1008}}, "job": {"id": 303, "assignee": {"id": 1105}}, "issue": {"id": 359, "owner": {"id": 1218}, "assignee": {"id": 1307}}, "organization": {"id": 1473}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 638}, "assignee": {"id": 596}, "project": {"id": 344, "owner": {"id": 746}, "assignee": {"id": 879}}, "task": {"id": 320, "owner": {"id": 993}, "assignee": {"id": 1089}}, "job": {"id": 333, "assignee": {"id": 1191}}, "issue": {"id": 374, "owner": {"id": 1282}, "assignee": {"id": 1316}}, "organization": {"id": 156}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 355, "owner": {"id": 621}, "assignee": {"id": 534}, "project": {"id": 382, "owner": {"id": 749}, "assignee": {"id": 860}}, "task": {"id": 342, "owner": {"id": 903}, "assignee": {"id": 1028}}, "job": {"id": 332, "assignee": {"id": 1187}}, "issue": {"id": 384, "owner": {"id": 1289}, "assignee": {"id": 1397}}, "organization": {"id": 104}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"id": 364, "owner": {"id": 651}, "assignee": {"id": 586}, "project": {"id": 327, "owner": {"id": 737}, "assignee": {"id": 887}}, "task": {"id": 345, "owner": {"id": 974}, "assignee": {"id": 1023}}, "job": {"id": 364, "assignee": {"id": 1163}}, "issue": {"id": 317, "owner": {"id": 1298}, "assignee": {"id": 1379}}, "organization": {"id": 1482}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 651}, "assignee": {"id": 508}, "project": {"id": 369, "owner": {"id": 751}, "assignee": {"id": 855}}, "task": {"id": 344, "owner": {"id": 949}, "assignee": {"id": 1059}}, "job": {"id": 333, "assignee": {"id": 1100}}, "issue": {"id": 388, "owner": {"id": 1241}, "assignee": {"id": 1355}}, "organization": {"id": 1420}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 373, "owner": {"id": 670}, "assignee": {"id": 569}, "project": {"id": 378, "owner": {"id": 707}, "assignee": {"id": 840}}, "task": {"id": 354, "owner": {"id": 933}, "assignee": {"id": 1006}}, "job": {"id": 389, "assignee": {"id": 1131}}, "issue": {"id": 393, "owner": {"id": 1276}, "assignee": {"id": 1338}}, "organization": {"id": 128}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 382, "owner": {"id": 653}, "assignee": {"id": 527}, "project": {"id": 304, "owner": {"id": 748}, "assignee": {"id": 857}}, "task": {"id": 327, "owner": {"id": 995}, "assignee": {"id": 1061}}, "job": {"id": 332, "assignee": {"id": 1154}}, "issue": {"id": 312, "owner": {"id": 1222}, "assignee": {"id": 1361}}, "organization": {"id": 162}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 326, "owner": {"id": 652}, "assignee": {"id": 528}, "project": {"id": 318, "owner": {"id": 773}, "assignee": {"id": 821}}, "task": {"id": 388, "owner": {"id": 935}, "assignee": {"id": 1075}}, "job": {"id": 367, "assignee": {"id": 1129}}, "issue": {"id": 324, "owner": {"id": 1264}, "assignee": {"id": 1329}}, "organization": {"id": 1409}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 388, "owner": {"id": 603}, "assignee": {"id": 511}, "project": {"id": 369, "owner": {"id": 706}, "assignee": {"id": 858}}, "task": {"id": 376, "owner": {"id": 943}, "assignee": {"id": 1018}}, "job": {"id": 323, "assignee": {"id": 1179}}, "issue": {"id": 307, "owner": {"id": 1235}, "assignee": {"id": 1305}}, "organization": {"id": 1442}}} -} - - - -# comments_test.gen.rego.py -# # Copyright (C) 2021-2022 Intel Corporation -# # -# # SPDX-License-Identifier: MIT -# -# # Copyright (C) 2021-2022 Intel Corporation -# # -# # SPDX-License-Identifier: MIT -# -# import csv -# import json -# import random -# import sys -# import os -# from itertools import product -# -# -# NAME = 'comments' -# -# def read_rules(name): -# rules = [] -# with open(os.path.join(sys.argv[1], f'{name}.csv')) as f: -# reader = csv.DictReader(f) -# for row in reader: -# row = {k.lower():v.lower().replace('n/a','na') for k,v in row.items()} -# row['limit'] = row['limit'].replace('none', 'None') -# found = False -# for col,val in row.items(): -# if col in ["limit", "method", "url", "resource"]: -# continue -# complex_val = [v.strip() for v in val.split(',')] -# if len(complex_val) > 1: -# found = True -# for item in complex_val: -# new_row = row.copy() -# new_row[col] = item -# rules.append(new_row) -# if not found: -# rules.append(row) -# -# return rules -# -# simple_rules = read_rules(NAME) -# -# SCOPES = list({rule['scope'] for rule in simple_rules}) -# CONTEXTS = ['sandbox', 'organization'] -# OWNERSHIPS = ['project:owner', 'project:assignee', 'task:owner', 'task:assignee', -# 'job:assignee', 'issue:owner', 'issue:assignee', 'owner', 'none'] -# GROUPS = ['admin', 'business', 'user', 'worker', 'none'] -# ORG_ROLES = ['owner', 'maintainer', 'supervisor', 'worker', None] -# SAME_ORG = [True, False] -# HAS_PROJ = [True, False] -# -# def RESOURCES(scope): -# if scope == 'list': -# return [None] -# else: -# return [{ -# "id": random.randrange(300, 400), -# "owner": { "id": random.randrange(600, 700) }, -# "assignee": { "id": random.randrange(500, 600) }, -# "project": { -# "id": random.randrange(300, 400), -# "owner": { "id": random.randrange(700, 800) }, -# "assignee": { "id": random.randrange(800, 900) } -# }, -# "task": { -# "id": random.randrange(300, 400), -# "owner": { "id": random.randrange(900, 1000) }, -# "assignee": { "id": random.randrange(1000, 1100) } -# }, -# "job": { -# "id": random.randrange(300, 400), -# "assignee": { "id": random.randrange(1100, 1200) } -# }, -# "issue": { -# "id": random.randrange(300, 400), -# "owner": { "id": random.randrange(1200, 1300) }, -# "assignee": { "id": random.randrange(1300, 1400) } -# }, -# "organization": { -# "id": random.randrange(1400, 1500) -# } -# }] -# -# def is_same_org(org1, org2): -# if org1 != None and org2 != None: -# return org1['id'] == org2['id'] -# elif org1 == None and org2 == None: -# return True -# else: -# return False -# -# def eval_rule(scope, context, ownership, privilege, membership, data): -# if privilege == 'admin': -# return True -# -# rules = list(filter(lambda r: scope == r['scope'], simple_rules)) -# rules = list(filter(lambda r: r['context'] == 'na' or context == r['context'], rules)) -# rules = list(filter(lambda r: r['ownership'] == 'na' or ownership == r['ownership'], rules)) -# rules = list(filter(lambda r: r['membership'] == 'na' or -# ORG_ROLES.index(membership) <= ORG_ROLES.index(r['membership']), rules)) -# rules = list(filter(lambda r: GROUPS.index(privilege) <= GROUPS.index(r['privilege']), rules)) -# resource = data['resource'] -# rules = list(filter(lambda r: not r['limit'] or eval(r['limit'], {'resource': resource}), rules)) -# if not is_same_org(data['auth']['organization'], data['resource']['organization']) and context != 'sandbox': -# return False -# -# return bool(rules) -# -# def get_data(scope, context, ownership, privilege, membership, resource, same_org): -# data = { -# "scope": scope, -# "auth": { -# "user": { "id": random.randrange(0,100), "privilege": privilege }, -# "organization": { -# "id": random.randrange(100,200), -# "owner": { "id": random.randrange(200, 300) }, -# "user": { "role": membership } -# } if context == 'organization' else None -# }, -# "resource": resource -# } -# -# user_id = data['auth']['user']['id'] -# if context == 'organization': -# org_id = data['auth']['organization']['id'] -# if data['auth']['organization']['user']['role'] == 'owner': -# data['auth']['organization']['owner']['id'] = user_id -# -# if same_org: -# data['resource']['organization']['id'] = org_id -# -# if ownership == 'owner': -# data['resource']['owner']['id'] = user_id -# -# if ownership == 'project:owner': -# data['resource']['project']['owner']['id'] = user_id -# -# if ownership == 'project:assignee': -# data['resource']['project']['assignee']['id'] = user_id -# -# if ownership == 'task:owner': -# data['resource']['task']['owner']['id'] = user_id -# -# if ownership == 'task:assignee': -# data['resource']['task']['assignee']['id'] = user_id -# -# if ownership == 'job:assignee': -# data['resource']['job']['assignee']['id'] = user_id -# -# if ownership == 'issue:owner': -# data['resource']['issue']['owner']['id'] = user_id -# -# if ownership == 'issue:assignee': -# data['resource']['issue']['assignee']['id'] = user_id -# -# -# return data -# -# def _get_name(prefix, **kwargs): -# name = prefix -# for k,v in kwargs.items(): -# if k == 'resource': -# continue -# prefix = '_' + str(k) -# if isinstance(v, dict): -# if 'id' in v: -# v = v.copy() -# v.pop('id') -# if v: -# name += _get_name(prefix, **v) -# else: -# name += ''.join(map(lambda c: c if c.isalnum() else {'@':'_IN_'}.get(c, '_'), -# f'{prefix}_{str(v).upper()}')) -# -# return name -# -# def get_name(scope, context, ownership, privilege, membership, resource, same_org, has_proj): -# return _get_name('test', **locals()) -# -# def is_valid(scope, context, ownership, privilege, membership, resource, same_org, has_proj): -# if context == "sandbox" and membership: -# return False -# if scope == 'list' and ownership != 'None': -# return False -# if context == 'sandbox' and same_org == False: -# return False -# if not has_proj and ownership.startswith('project'): -# return False -# if scope == 'create@issue' and ownership == 'owner': -# return False -# -# return True -# -# def gen_test_rego(name): -# with open(f'{name}_test.gen.rego', 'wt') as f: -# f.write(f'package {name}\n\n') -# for scope, context, ownership, privilege, membership, same_org, has_proj in product( -# SCOPES, CONTEXTS, OWNERSHIPS, GROUPS, ORG_ROLES, SAME_ORG, HAS_PROJ): -# for resource in RESOURCES(scope): -# if not is_valid(scope, context, ownership, privilege, membership, resource, same_org, has_proj): -# continue -# -# data = get_data(scope, context, ownership, privilege, membership, resource, same_org) -# test_name = get_name(scope, context, ownership, privilege, membership, resource, same_org, has_proj) -# result = eval_rule(scope, context, ownership, privilege, membership, data) -# f.write('{test_name} {{\n {allow} with input as {data}\n}}\n\n'.format( -# test_name=test_name, allow='allow' if result else 'not allow', -# data=json.dumps(data))) -# -# # Write the script which is used to generate the file -# with open(sys.argv[0]) as this_file: -# f.write(f'\n\n# {os.path.split(sys.argv[0])[1]}\n') -# for line in this_file: -# if line.strip(): -# f.write(f'# {line}') -# else: -# f.write(f'#\n') -# -# # Write rules which are used to generate the file -# with open(os.path.join(sys.argv[1], f'{name}.csv')) as rego_file: -# f.write(f'\n\n# {name}.csv\n') -# for line in rego_file: -# if line.strip(): -# f.write(f'# {line}') -# else: -# f.write(f'#\n') -# -# gen_test_rego(NAME) - -# comments.csv -# Scope,Resource,Context,Ownership,Limit,Method,URL,Privilege,Membership -# list,Comment,Sandbox,N/A,,GET,"/issues/{id}/comments, /comments",None,N/A -# list,Comment,Organization,N/A,,GET,"/issues/{id}/comments, /comments",None,Worker -# create@issue,"Comment, Issue",Sandbox,N/A,,POST,/comments,Admin,N/A -# create@issue,"Comment, Issue",Sandbox,"Project:owner, Project:assignee, Task:owner, Task:assignee, Job:assignee, Issue:owner, Issue:assignee",,POST,/comments,Worker,N/A -# create@issue,"Comment, Issue",Organization,N/A,,POST,/comments,User,Maintainer -# create@issue,"Comment, Issue",Organization,"Project:owner, Project:assignee, Task:owner, Task:assignee, Job:assignee, Issue:owner, Issue:assignee",,POST,/comments,Worker,Worker -# view,Comment,Sandbox,N/A,,GET,/comments/{id},Admin,N/A -# view,Comment,Sandbox,"Project:owner, Project:assignee, Task:owner, Task:assignee, Job:assignee, Issue:owner, Issue:assignee, Owner",,GET,/comments/{id},None,N/A -# view,Comment,Organization,None,,GET,/comments/{id},User,Maintainer -# view,Comment,Organization,"Project:owner, Project:assignee, Task:owner, Task:assignee, Job:assignee, Issue:owner, Issue:assignee, Owner",,GET,/comments/{id},None,Worker -# update,Comment,Sandbox,N/A,,PATCH,/comments/{id},Admin,N/A -# update,Comment,Sandbox,"Project:owner, Project:assignee, Task:owner, Task:assignee, Job:assignee, Issue:owner, Issue:assignee, Owner",,PATCH,/comments/{id},Worker,N/A -# update,Comment,Organization,N/A,,PATCH,/comments/{id},User,Maintainer -# update,Comment,Organization,"Project:owner, Project:assignee, Task:owner, Task:assignee, Job:assignee, Issue:owner, Issue:assignee, Owner",,PATCH,/comments/{id},Worker,Worker -# delete,Comment,Sandbox,None,,DELETE,/comments/{id},Admin,N/A -# delete,Comment,Sandbox,"Project:owner, Project:assignee, Task:owner, Task:assignee, Job:assignee, Issue:owner, Issue:assignee, Owner",,DELETE,/comments/{id},Worker,N/A -# delete,Comment,Organization,None,,DELETE,/comments/{id},User,Maintainer -# delete,Comment,Organization,"Project:owner, Project:assignee, Task:owner, Task:assignee, Job:assignee, Issue:owner, Issue:assignee, Owner",,DELETE,/comments/{id},Worker,Worker \ No newline at end of file diff --git a/cvat/apps/iam/rules/invitations_test.gen.rego b/cvat/apps/iam/rules/invitations_test.gen.rego deleted file mode 100644 index 3769eba6..00000000 --- a/cvat/apps/iam/rules/invitations_test.gen.rego +++ /dev/null @@ -1,13404 +0,0 @@ -package invitations - -test_scope_RESEND_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 54}, "invitee": {"id": 478}, "role": "owner", "organization": {"id": 547}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 17}, "invitee": {"id": 441}, "role": "maintainer", "organization": {"id": 523}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 36, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 36}, "invitee": {"id": 424}, "role": "supervisor", "organization": {"id": 563}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 76}, "invitee": {"id": 414}, "role": "worker", "organization": {"id": 577}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 90}, "invitee": {"id": 484}, "role": "owner", "organization": {"id": 578}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 95}, "invitee": {"id": 461}, "role": "maintainer", "organization": {"id": 570}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 69}, "invitee": {"id": 453}, "role": "supervisor", "organization": {"id": 581}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 96}, "invitee": {"id": 429}, "role": "worker", "organization": {"id": 512}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 8}, "invitee": {"id": 444}, "role": "owner", "organization": {"id": 599}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 39}, "invitee": {"id": 458}, "role": "maintainer", "organization": {"id": 595}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 86}, "invitee": {"id": 408}, "role": "supervisor", "organization": {"id": 503}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 59}, "invitee": {"id": 489}, "role": "worker", "organization": {"id": 510}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 97}, "invitee": {"id": 437}, "role": "owner", "organization": {"id": 541}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 79}, "invitee": {"id": 488}, "role": "maintainer", "organization": {"id": 562}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 85}, "invitee": {"id": 402}, "role": "supervisor", "organization": {"id": 582}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 17}, "invitee": {"id": 406}, "role": "worker", "organization": {"id": 598}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 61, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 61}, "invitee": {"id": 469}, "role": "owner", "organization": {"id": 542}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 70}, "invitee": {"id": 481}, "role": "maintainer", "organization": {"id": 574}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 33}, "invitee": {"id": 407}, "role": "supervisor", "organization": {"id": 570}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 85}, "invitee": {"id": 438}, "role": "worker", "organization": {"id": 584}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 363}, "invitee": {"id": 92}, "role": "owner", "organization": {"id": 521}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 399}, "invitee": {"id": 1}, "role": "maintainer", "organization": {"id": 554}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 378}, "invitee": {"id": 87}, "role": "supervisor", "organization": {"id": 532}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 347}, "invitee": {"id": 55}, "role": "worker", "organization": {"id": 544}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 343}, "invitee": {"id": 9}, "role": "owner", "organization": {"id": 535}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 381}, "invitee": {"id": 69}, "role": "maintainer", "organization": {"id": 569}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 399}, "invitee": {"id": 80}, "role": "supervisor", "organization": {"id": 559}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 316}, "invitee": {"id": 33}, "role": "worker", "organization": {"id": 524}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 306}, "invitee": {"id": 33}, "role": "owner", "organization": {"id": 561}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 321}, "invitee": {"id": 70}, "role": "maintainer", "organization": {"id": 570}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 387}, "invitee": {"id": 79}, "role": "supervisor", "organization": {"id": 587}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 328}, "invitee": {"id": 54}, "role": "worker", "organization": {"id": 513}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 304}, "invitee": {"id": 0}, "role": "owner", "organization": {"id": 575}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 353}, "invitee": {"id": 59}, "role": "maintainer", "organization": {"id": 574}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 310}, "invitee": {"id": 7}, "role": "supervisor", "organization": {"id": 503}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 337}, "invitee": {"id": 30}, "role": "worker", "organization": {"id": 526}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 358}, "invitee": {"id": 98}, "role": "owner", "organization": {"id": 514}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 385}, "invitee": {"id": 29}, "role": "maintainer", "organization": {"id": 576}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 363}, "invitee": {"id": 87}, "role": "supervisor", "organization": {"id": 558}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 362}, "invitee": {"id": 17}, "role": "worker", "organization": {"id": 578}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 361}, "invitee": {"id": 413}, "role": "owner", "organization": {"id": 553}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 358}, "invitee": {"id": 497}, "role": "maintainer", "organization": {"id": 512}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 392}, "invitee": {"id": 483}, "role": "supervisor", "organization": {"id": 554}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 353}, "invitee": {"id": 453}, "role": "worker", "organization": {"id": 581}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 311}, "invitee": {"id": 443}, "role": "owner", "organization": {"id": 529}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 300}, "invitee": {"id": 466}, "role": "maintainer", "organization": {"id": 585}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 307}, "invitee": {"id": 438}, "role": "supervisor", "organization": {"id": 551}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 336}, "invitee": {"id": 480}, "role": "worker", "organization": {"id": 566}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 329}, "invitee": {"id": 413}, "role": "owner", "organization": {"id": 550}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 333}, "invitee": {"id": 420}, "role": "maintainer", "organization": {"id": 587}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 390}, "invitee": {"id": 421}, "role": "supervisor", "organization": {"id": 587}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 319}, "invitee": {"id": 411}, "role": "worker", "organization": {"id": 592}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 343}, "invitee": {"id": 483}, "role": "owner", "organization": {"id": 554}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 314}, "invitee": {"id": 418}, "role": "maintainer", "organization": {"id": 535}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 357}, "invitee": {"id": 420}, "role": "supervisor", "organization": {"id": 563}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 301}, "invitee": {"id": 476}, "role": "worker", "organization": {"id": 515}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 301}, "invitee": {"id": 451}, "role": "owner", "organization": {"id": 583}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 384}, "invitee": {"id": 439}, "role": "maintainer", "organization": {"id": 524}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 317}, "invitee": {"id": 488}, "role": "supervisor", "organization": {"id": 563}}} -} - -test_scope_RESEND_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 303}, "invitee": {"id": 455}, "role": "worker", "organization": {"id": 500}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 33}, "invitee": {"id": 434}, "role": "owner", "organization": {"id": 567}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 64}, "invitee": {"id": 448}, "role": "maintainer", "organization": {"id": 512}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 54}, "invitee": {"id": 418}, "role": "supervisor", "organization": {"id": 532}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 56}, "invitee": {"id": 421}, "role": "worker", "organization": {"id": 551}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 48}, "invitee": {"id": 492}, "role": "owner", "organization": {"id": 164}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 76}, "invitee": {"id": 449}, "role": "maintainer", "organization": {"id": 137}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 17}, "invitee": {"id": 424}, "role": "supervisor", "organization": {"id": 132}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 94}, "invitee": {"id": 400}, "role": "worker", "organization": {"id": 168}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 9}, "invitee": {"id": 417}, "role": "owner", "organization": {"id": 599}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 95}, "invitee": {"id": 457}, "role": "maintainer", "organization": {"id": 582}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 19}, "invitee": {"id": 448}, "role": "supervisor", "organization": {"id": 557}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 78}, "invitee": {"id": 420}, "role": "worker", "organization": {"id": 558}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 20}, "invitee": {"id": 478}, "role": "owner", "organization": {"id": 167}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 52}, "invitee": {"id": 401}, "role": "maintainer", "organization": {"id": 106}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 83}, "invitee": {"id": 461}, "role": "supervisor", "organization": {"id": 128}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 25}, "invitee": {"id": 432}, "role": "worker", "organization": {"id": 140}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 51}, "invitee": {"id": 492}, "role": "owner", "organization": {"id": 518}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 72}, "invitee": {"id": 436}, "role": "maintainer", "organization": {"id": 566}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 16}, "invitee": {"id": 482}, "role": "supervisor", "organization": {"id": 599}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 71}, "invitee": {"id": 429}, "role": "worker", "organization": {"id": 552}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 57}, "invitee": {"id": 487}, "role": "owner", "organization": {"id": 152}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 97}, "invitee": {"id": 468}, "role": "maintainer", "organization": {"id": 194}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 8}, "invitee": {"id": 449}, "role": "supervisor", "organization": {"id": 172}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 95}, "invitee": {"id": 407}, "role": "worker", "organization": {"id": 163}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 32}, "invitee": {"id": 425}, "role": "owner", "organization": {"id": 543}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 8}, "invitee": {"id": 463}, "role": "maintainer", "organization": {"id": 503}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 35}, "invitee": {"id": 421}, "role": "supervisor", "organization": {"id": 548}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 95}, "invitee": {"id": 401}, "role": "worker", "organization": {"id": 584}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 8}, "invitee": {"id": 446}, "role": "owner", "organization": {"id": 166}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 76}, "invitee": {"id": 424}, "role": "maintainer", "organization": {"id": 116}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 61}, "invitee": {"id": 486}, "role": "supervisor", "organization": {"id": 131}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 34}, "invitee": {"id": 424}, "role": "worker", "organization": {"id": 123}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"owner": {"id": 50}, "invitee": {"id": 403}, "role": "owner", "organization": {"id": 502}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"owner": {"id": 91}, "invitee": {"id": 445}, "role": "maintainer", "organization": {"id": 539}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"owner": {"id": 33}, "invitee": {"id": 460}, "role": "supervisor", "organization": {"id": 516}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"owner": {"id": 55}, "invitee": {"id": 445}, "role": "worker", "organization": {"id": 507}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"owner": {"id": 98}, "invitee": {"id": 413}, "role": "owner", "organization": {"id": 127}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"owner": {"id": 31}, "invitee": {"id": 444}, "role": "maintainer", "organization": {"id": 191}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"owner": {"id": 53}, "invitee": {"id": 443}, "role": "supervisor", "organization": {"id": 192}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 36, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"owner": {"id": 36}, "invitee": {"id": 499}, "role": "worker", "organization": {"id": 165}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 31, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 31}, "invitee": {"id": 457}, "role": "owner", "organization": {"id": 513}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 13}, "invitee": {"id": 494}, "role": "maintainer", "organization": {"id": 539}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 57}, "invitee": {"id": 468}, "role": "supervisor", "organization": {"id": 566}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 17}, "invitee": {"id": 492}, "role": "worker", "organization": {"id": 591}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 90}, "invitee": {"id": 467}, "role": "owner", "organization": {"id": 108}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 83}, "invitee": {"id": 469}, "role": "maintainer", "organization": {"id": 181}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 40}, "invitee": {"id": 479}, "role": "supervisor", "organization": {"id": 183}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 74}, "invitee": {"id": 489}, "role": "worker", "organization": {"id": 131}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 22}, "invitee": {"id": 411}, "role": "owner", "organization": {"id": 550}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 74}, "invitee": {"id": 472}, "role": "maintainer", "organization": {"id": 591}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 67}, "invitee": {"id": 490}, "role": "supervisor", "organization": {"id": 597}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 62}, "invitee": {"id": 457}, "role": "worker", "organization": {"id": 531}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 76}, "invitee": {"id": 420}, "role": "owner", "organization": {"id": 121}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 25}, "invitee": {"id": 493}, "role": "maintainer", "organization": {"id": 116}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 33}, "invitee": {"id": 499}, "role": "supervisor", "organization": {"id": 103}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 38}, "invitee": {"id": 402}, "role": "worker", "organization": {"id": 199}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 79}, "invitee": {"id": 442}, "role": "owner", "organization": {"id": 588}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 96}, "invitee": {"id": 406}, "role": "maintainer", "organization": {"id": 539}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 63}, "invitee": {"id": 458}, "role": "supervisor", "organization": {"id": 595}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 37}, "invitee": {"id": 414}, "role": "worker", "organization": {"id": 516}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 90}, "invitee": {"id": 492}, "role": "owner", "organization": {"id": 167}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 52}, "invitee": {"id": 474}, "role": "maintainer", "organization": {"id": 197}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 20}, "invitee": {"id": 441}, "role": "supervisor", "organization": {"id": 172}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 78}, "invitee": {"id": 498}, "role": "worker", "organization": {"id": 197}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 36}, "invitee": {"id": 424}, "role": "owner", "organization": {"id": 541}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 56}, "invitee": {"id": 452}, "role": "maintainer", "organization": {"id": 538}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 45}, "invitee": {"id": 456}, "role": "supervisor", "organization": {"id": 534}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 87}, "invitee": {"id": 492}, "role": "worker", "organization": {"id": 573}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 71}, "invitee": {"id": 438}, "role": "owner", "organization": {"id": 117}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 40}, "invitee": {"id": 480}, "role": "maintainer", "organization": {"id": 109}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 81, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 81}, "invitee": {"id": 439}, "role": "supervisor", "organization": {"id": 118}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 93}, "invitee": {"id": 477}, "role": "worker", "organization": {"id": 186}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"owner": {"id": 96}, "invitee": {"id": 460}, "role": "owner", "organization": {"id": 573}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"owner": {"id": 72}, "invitee": {"id": 464}, "role": "maintainer", "organization": {"id": 598}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"owner": {"id": 42}, "invitee": {"id": 474}, "role": "supervisor", "organization": {"id": 519}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"owner": {"id": 58}, "invitee": {"id": 415}, "role": "worker", "organization": {"id": 571}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"owner": {"id": 68}, "invitee": {"id": 411}, "role": "owner", "organization": {"id": 100}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"owner": {"id": 13}, "invitee": {"id": 477}, "role": "maintainer", "organization": {"id": 115}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"owner": {"id": 53}, "invitee": {"id": 491}, "role": "supervisor", "organization": {"id": 152}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"owner": {"id": 7}, "invitee": {"id": 413}, "role": "worker", "organization": {"id": 100}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 65}, "invitee": {"id": 439}, "role": "owner", "organization": {"id": 511}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 42}, "invitee": {"id": 486}, "role": "maintainer", "organization": {"id": 510}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 65}, "invitee": {"id": 489}, "role": "supervisor", "organization": {"id": 529}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 72}, "invitee": {"id": 429}, "role": "worker", "organization": {"id": 575}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 69}, "invitee": {"id": 481}, "role": "owner", "organization": {"id": 192}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 0}, "invitee": {"id": 468}, "role": "maintainer", "organization": {"id": 186}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 30}, "invitee": {"id": 427}, "role": "supervisor", "organization": {"id": 174}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 88}, "invitee": {"id": 408}, "role": "worker", "organization": {"id": 171}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 51}, "invitee": {"id": 461}, "role": "owner", "organization": {"id": 550}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 18}, "invitee": {"id": 499}, "role": "maintainer", "organization": {"id": 595}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 36}, "invitee": {"id": 487}, "role": "supervisor", "organization": {"id": 581}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 18}, "invitee": {"id": 491}, "role": "worker", "organization": {"id": 541}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 31}, "invitee": {"id": 429}, "role": "owner", "organization": {"id": 176}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 44}, "invitee": {"id": 498}, "role": "maintainer", "organization": {"id": 160}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 64}, "invitee": {"id": 459}, "role": "supervisor", "organization": {"id": 135}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 54}, "invitee": {"id": 419}, "role": "worker", "organization": {"id": 152}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 83}, "invitee": {"id": 413}, "role": "owner", "organization": {"id": 503}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 91}, "invitee": {"id": 444}, "role": "maintainer", "organization": {"id": 508}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 29}, "invitee": {"id": 491}, "role": "supervisor", "organization": {"id": 504}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 0}, "invitee": {"id": 478}, "role": "worker", "organization": {"id": 544}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 91}, "invitee": {"id": 456}, "role": "owner", "organization": {"id": 107}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 65}, "invitee": {"id": 492}, "role": "maintainer", "organization": {"id": 131}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 17}, "invitee": {"id": 488}, "role": "supervisor", "organization": {"id": 106}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 57}, "invitee": {"id": 468}, "role": "worker", "organization": {"id": 115}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 45}, "invitee": {"id": 447}, "role": "owner", "organization": {"id": 500}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 90, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 90}, "invitee": {"id": 489}, "role": "maintainer", "organization": {"id": 539}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 41}, "invitee": {"id": 459}, "role": "supervisor", "organization": {"id": 509}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 31}, "invitee": {"id": 401}, "role": "worker", "organization": {"id": 583}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 76}, "invitee": {"id": 417}, "role": "owner", "organization": {"id": 119}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 24}, "invitee": {"id": 483}, "role": "maintainer", "organization": {"id": 193}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 95}, "invitee": {"id": 494}, "role": "supervisor", "organization": {"id": 169}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 81}, "invitee": {"id": 476}, "role": "worker", "organization": {"id": 152}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"owner": {"id": 24}, "invitee": {"id": 469}, "role": "owner", "organization": {"id": 594}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"owner": {"id": 48}, "invitee": {"id": 435}, "role": "maintainer", "organization": {"id": 599}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"owner": {"id": 68}, "invitee": {"id": 495}, "role": "supervisor", "organization": {"id": 520}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"owner": {"id": 37}, "invitee": {"id": 485}, "role": "worker", "organization": {"id": 541}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"owner": {"id": 1}, "invitee": {"id": 483}, "role": "owner", "organization": {"id": 107}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"owner": {"id": 72}, "invitee": {"id": 495}, "role": "maintainer", "organization": {"id": 172}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"owner": {"id": 29}, "invitee": {"id": 453}, "role": "supervisor", "organization": {"id": 110}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"owner": {"id": 21}, "invitee": {"id": 410}, "role": "worker", "organization": {"id": 156}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 98}, "invitee": {"id": 454}, "role": "owner", "organization": {"id": 590}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 70}, "invitee": {"id": 489}, "role": "maintainer", "organization": {"id": 519}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 48}, "invitee": {"id": 445}, "role": "supervisor", "organization": {"id": 520}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 89}, "invitee": {"id": 476}, "role": "worker", "organization": {"id": 588}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 83}, "invitee": {"id": 449}, "role": "owner", "organization": {"id": 187}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 83}, "invitee": {"id": 484}, "role": "maintainer", "organization": {"id": 123}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 90}, "invitee": {"id": 472}, "role": "supervisor", "organization": {"id": 135}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 18}, "invitee": {"id": 425}, "role": "worker", "organization": {"id": 167}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 33}, "invitee": {"id": 414}, "role": "owner", "organization": {"id": 504}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 3}, "invitee": {"id": 497}, "role": "maintainer", "organization": {"id": 542}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 95}, "invitee": {"id": 442}, "role": "supervisor", "organization": {"id": 527}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 75}, "invitee": {"id": 406}, "role": "worker", "organization": {"id": 509}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 30}, "invitee": {"id": 403}, "role": "owner", "organization": {"id": 173}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 78}, "invitee": {"id": 424}, "role": "maintainer", "organization": {"id": 165}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 96}, "invitee": {"id": 473}, "role": "supervisor", "organization": {"id": 157}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 72}, "invitee": {"id": 451}, "role": "worker", "organization": {"id": 105}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 6}, "invitee": {"id": 497}, "role": "owner", "organization": {"id": 549}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 40}, "invitee": {"id": 400}, "role": "maintainer", "organization": {"id": 581}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 21}, "invitee": {"id": 457}, "role": "supervisor", "organization": {"id": 551}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 87}, "invitee": {"id": 451}, "role": "worker", "organization": {"id": 596}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 87}, "invitee": {"id": 496}, "role": "owner", "organization": {"id": 132}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 76}, "invitee": {"id": 446}, "role": "maintainer", "organization": {"id": 152}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 82}, "invitee": {"id": 403}, "role": "supervisor", "organization": {"id": 150}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 27}, "invitee": {"id": 494}, "role": "worker", "organization": {"id": 143}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 65}, "invitee": {"id": 422}, "role": "owner", "organization": {"id": 569}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 2}, "invitee": {"id": 485}, "role": "maintainer", "organization": {"id": 550}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 3}, "invitee": {"id": 446}, "role": "supervisor", "organization": {"id": 507}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 16}, "invitee": {"id": 471}, "role": "worker", "organization": {"id": 568}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 68}, "invitee": {"id": 408}, "role": "owner", "organization": {"id": 106}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 64}, "invitee": {"id": 444}, "role": "maintainer", "organization": {"id": 130}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 40}, "invitee": {"id": 470}, "role": "supervisor", "organization": {"id": 134}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 36}, "invitee": {"id": 445}, "role": "worker", "organization": {"id": 133}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"owner": {"id": 97}, "invitee": {"id": 406}, "role": "owner", "organization": {"id": 525}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"owner": {"id": 40}, "invitee": {"id": 476}, "role": "maintainer", "organization": {"id": 528}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"owner": {"id": 92}, "invitee": {"id": 467}, "role": "supervisor", "organization": {"id": 518}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"owner": {"id": 58}, "invitee": {"id": 487}, "role": "worker", "organization": {"id": 582}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"owner": {"id": 56}, "invitee": {"id": 465}, "role": "owner", "organization": {"id": 141}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"owner": {"id": 77}, "invitee": {"id": 483}, "role": "maintainer", "organization": {"id": 148}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"owner": {"id": 96}, "invitee": {"id": 496}, "role": "supervisor", "organization": {"id": 136}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"owner": {"id": 28}, "invitee": {"id": 411}, "role": "worker", "organization": {"id": 126}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 4}, "invitee": {"id": 421}, "role": "owner", "organization": {"id": 582}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 17}, "invitee": {"id": 493}, "role": "maintainer", "organization": {"id": 542}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 20}, "invitee": {"id": 497}, "role": "supervisor", "organization": {"id": 582}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 20}, "invitee": {"id": 463}, "role": "worker", "organization": {"id": 559}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 97}, "invitee": {"id": 435}, "role": "owner", "organization": {"id": 153}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 8}, "invitee": {"id": 405}, "role": "maintainer", "organization": {"id": 106}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 87}, "invitee": {"id": 449}, "role": "supervisor", "organization": {"id": 198}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 66}, "invitee": {"id": 456}, "role": "worker", "organization": {"id": 162}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 68}, "invitee": {"id": 418}, "role": "owner", "organization": {"id": 521}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 42}, "invitee": {"id": 436}, "role": "maintainer", "organization": {"id": 512}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 87}, "invitee": {"id": 495}, "role": "supervisor", "organization": {"id": 592}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 20}, "invitee": {"id": 424}, "role": "worker", "organization": {"id": 515}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 43}, "invitee": {"id": 497}, "role": "owner", "organization": {"id": 120}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 33}, "invitee": {"id": 487}, "role": "maintainer", "organization": {"id": 148}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 60}, "invitee": {"id": 493}, "role": "supervisor", "organization": {"id": 113}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 23}, "invitee": {"id": 427}, "role": "worker", "organization": {"id": 168}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 96}, "invitee": {"id": 421}, "role": "owner", "organization": {"id": 538}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 59}, "invitee": {"id": 447}, "role": "maintainer", "organization": {"id": 570}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 76}, "invitee": {"id": 484}, "role": "supervisor", "organization": {"id": 553}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 18}, "invitee": {"id": 468}, "role": "worker", "organization": {"id": 549}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 16}, "invitee": {"id": 485}, "role": "owner", "organization": {"id": 196}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 39}, "invitee": {"id": 414}, "role": "maintainer", "organization": {"id": 167}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 72}, "invitee": {"id": 411}, "role": "supervisor", "organization": {"id": 149}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 31}, "invitee": {"id": 418}, "role": "worker", "organization": {"id": 188}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 75}, "invitee": {"id": 493}, "role": "owner", "organization": {"id": 500}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 90}, "invitee": {"id": 421}, "role": "maintainer", "organization": {"id": 567}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 11}, "invitee": {"id": 437}, "role": "supervisor", "organization": {"id": 586}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 78}, "invitee": {"id": 488}, "role": "worker", "organization": {"id": 534}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 22}, "invitee": {"id": 463}, "role": "owner", "organization": {"id": 177}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 60}, "invitee": {"id": 485}, "role": "maintainer", "organization": {"id": 112}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 82}, "invitee": {"id": 455}, "role": "supervisor", "organization": {"id": 167}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 29}, "invitee": {"id": 424}, "role": "worker", "organization": {"id": 119}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"owner": {"id": 40}, "invitee": {"id": 493}, "role": "owner", "organization": {"id": 537}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"owner": {"id": 40}, "invitee": {"id": 458}, "role": "maintainer", "organization": {"id": 512}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"owner": {"id": 10}, "invitee": {"id": 485}, "role": "supervisor", "organization": {"id": 584}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"owner": {"id": 77}, "invitee": {"id": 435}, "role": "worker", "organization": {"id": 588}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"owner": {"id": 35}, "invitee": {"id": 449}, "role": "owner", "organization": {"id": 116}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"owner": {"id": 41}, "invitee": {"id": 482}, "role": "maintainer", "organization": {"id": 187}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"owner": {"id": 9}, "invitee": {"id": 488}, "role": "supervisor", "organization": {"id": 154}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"owner": {"id": 73}, "invitee": {"id": 427}, "role": "worker", "organization": {"id": 131}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_OWNER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 376}, "invitee": {"id": 82}, "role": "owner", "organization": {"id": 548}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 344}, "invitee": {"id": 3}, "role": "maintainer", "organization": {"id": 518}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 333}, "invitee": {"id": 91}, "role": "supervisor", "organization": {"id": 566}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_OWNER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 375}, "invitee": {"id": 44}, "role": "worker", "organization": {"id": 546}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_OWNER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 372}, "invitee": {"id": 48}, "role": "owner", "organization": {"id": 153}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 392}, "invitee": {"id": 94}, "role": "maintainer", "organization": {"id": 175}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 378}, "invitee": {"id": 15}, "role": "supervisor", "organization": {"id": 129}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 356}, "invitee": {"id": 14}, "role": "worker", "organization": {"id": 174}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 378}, "invitee": {"id": 11}, "role": "owner", "organization": {"id": 574}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 349}, "invitee": {"id": 43}, "role": "maintainer", "organization": {"id": 526}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 349}, "invitee": {"id": 94}, "role": "supervisor", "organization": {"id": 504}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 372}, "invitee": {"id": 73}, "role": "worker", "organization": {"id": 585}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 361}, "invitee": {"id": 37}, "role": "owner", "organization": {"id": 131}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 319}, "invitee": {"id": 26}, "role": "maintainer", "organization": {"id": 112}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 350}, "invitee": {"id": 22}, "role": "supervisor", "organization": {"id": 198}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 389}, "invitee": {"id": 30}, "role": "worker", "organization": {"id": 172}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 356}, "invitee": {"id": 26}, "role": "owner", "organization": {"id": 530}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 328}, "invitee": {"id": 44}, "role": "maintainer", "organization": {"id": 507}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 338}, "invitee": {"id": 80}, "role": "supervisor", "organization": {"id": 536}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 392}, "invitee": {"id": 18}, "role": "worker", "organization": {"id": 555}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 361}, "invitee": {"id": 17}, "role": "owner", "organization": {"id": 194}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 386}, "invitee": {"id": 98}, "role": "maintainer", "organization": {"id": 154}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 318}, "invitee": {"id": 33}, "role": "supervisor", "organization": {"id": 159}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 323}, "invitee": {"id": 92}, "role": "worker", "organization": {"id": 190}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_WORKER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 395}, "invitee": {"id": 48}, "role": "owner", "organization": {"id": 592}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 357}, "invitee": {"id": 80}, "role": "maintainer", "organization": {"id": 546}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 379}, "invitee": {"id": 61}, "role": "supervisor", "organization": {"id": 551}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_WORKER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 344}, "invitee": {"id": 97}, "role": "worker", "organization": {"id": 510}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_WORKER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 399}, "invitee": {"id": 31}, "role": "owner", "organization": {"id": 184}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 372}, "invitee": {"id": 77}, "role": "maintainer", "organization": {"id": 117}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 339}, "invitee": {"id": 98}, "role": "supervisor", "organization": {"id": 146}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_WORKER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 308}, "invitee": {"id": 64}, "role": "worker", "organization": {"id": 153}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"owner": {"id": 323}, "invitee": {"id": 59}, "role": "owner", "organization": {"id": 552}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"owner": {"id": 319}, "invitee": {"id": 34}, "role": "maintainer", "organization": {"id": 552}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"owner": {"id": 324}, "invitee": {"id": 16}, "role": "supervisor", "organization": {"id": 519}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"owner": {"id": 317}, "invitee": {"id": 45}, "role": "worker", "organization": {"id": 508}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"owner": {"id": 349}, "invitee": {"id": 96}, "role": "owner", "organization": {"id": 167}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"owner": {"id": 386}, "invitee": {"id": 12}, "role": "maintainer", "organization": {"id": 182}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"owner": {"id": 394}, "invitee": {"id": 98}, "role": "supervisor", "organization": {"id": 157}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"owner": {"id": 312}, "invitee": {"id": 14}, "role": "worker", "organization": {"id": 179}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 329}, "invitee": {"id": 13}, "role": "owner", "organization": {"id": 588}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 330}, "invitee": {"id": 40}, "role": "maintainer", "organization": {"id": 578}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 316}, "invitee": {"id": 45}, "role": "supervisor", "organization": {"id": 508}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 384}, "invitee": {"id": 91}, "role": "worker", "organization": {"id": 557}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_OWNER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 347}, "invitee": {"id": 32}, "role": "owner", "organization": {"id": 170}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 397}, "invitee": {"id": 37}, "role": "maintainer", "organization": {"id": 139}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 395}, "invitee": {"id": 24}, "role": "supervisor", "organization": {"id": 146}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 94, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 366}, "invitee": {"id": 94}, "role": "worker", "organization": {"id": 108}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 399}, "invitee": {"id": 8}, "role": "owner", "organization": {"id": 544}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 303}, "invitee": {"id": 96}, "role": "maintainer", "organization": {"id": 561}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 329}, "invitee": {"id": 71}, "role": "supervisor", "organization": {"id": 502}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 369}, "invitee": {"id": 28}, "role": "worker", "organization": {"id": 598}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 355}, "invitee": {"id": 40}, "role": "owner", "organization": {"id": 108}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 363}, "invitee": {"id": 23}, "role": "maintainer", "organization": {"id": 162}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 324}, "invitee": {"id": 92}, "role": "supervisor", "organization": {"id": 123}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 334}, "invitee": {"id": 21}, "role": "worker", "organization": {"id": 104}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 346}, "invitee": {"id": 95}, "role": "owner", "organization": {"id": 547}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 371}, "invitee": {"id": 2}, "role": "maintainer", "organization": {"id": 538}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 343}, "invitee": {"id": 93}, "role": "supervisor", "organization": {"id": 536}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 315}, "invitee": {"id": 38}, "role": "worker", "organization": {"id": 511}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 338}, "invitee": {"id": 82}, "role": "owner", "organization": {"id": 186}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 388}, "invitee": {"id": 11}, "role": "maintainer", "organization": {"id": 142}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 320}, "invitee": {"id": 76}, "role": "supervisor", "organization": {"id": 113}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 334}, "invitee": {"id": 40}, "role": "worker", "organization": {"id": 132}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 306}, "invitee": {"id": 1}, "role": "owner", "organization": {"id": 592}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 317}, "invitee": {"id": 17}, "role": "maintainer", "organization": {"id": 516}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 345}, "invitee": {"id": 75}, "role": "supervisor", "organization": {"id": 583}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 314}, "invitee": {"id": 18}, "role": "worker", "organization": {"id": 507}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_WORKER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 304}, "invitee": {"id": 19}, "role": "owner", "organization": {"id": 146}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 347}, "invitee": {"id": 62}, "role": "maintainer", "organization": {"id": 120}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 316}, "invitee": {"id": 48}, "role": "supervisor", "organization": {"id": 147}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_WORKER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 365}, "invitee": {"id": 7}, "role": "worker", "organization": {"id": 135}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"owner": {"id": 377}, "invitee": {"id": 79}, "role": "owner", "organization": {"id": 551}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"owner": {"id": 307}, "invitee": {"id": 54}, "role": "maintainer", "organization": {"id": 507}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"owner": {"id": 320}, "invitee": {"id": 77}, "role": "supervisor", "organization": {"id": 595}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"owner": {"id": 350}, "invitee": {"id": 51}, "role": "worker", "organization": {"id": 541}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"owner": {"id": 324}, "invitee": {"id": 82}, "role": "owner", "organization": {"id": 150}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"owner": {"id": 379}, "invitee": {"id": 47}, "role": "maintainer", "organization": {"id": 188}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"owner": {"id": 350}, "invitee": {"id": 63}, "role": "supervisor", "organization": {"id": 186}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"owner": {"id": 397}, "invitee": {"id": 32}, "role": "worker", "organization": {"id": 146}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 300}, "invitee": {"id": 58}, "role": "owner", "organization": {"id": 503}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 357}, "invitee": {"id": 18}, "role": "maintainer", "organization": {"id": 510}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 346}, "invitee": {"id": 18}, "role": "supervisor", "organization": {"id": 550}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 339}, "invitee": {"id": 2}, "role": "worker", "organization": {"id": 540}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_OWNER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 351}, "invitee": {"id": 27}, "role": "owner", "organization": {"id": 171}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 309}, "invitee": {"id": 47}, "role": "maintainer", "organization": {"id": 114}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 346}, "invitee": {"id": 55}, "role": "supervisor", "organization": {"id": 147}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 350}, "invitee": {"id": 0}, "role": "worker", "organization": {"id": 104}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 384}, "invitee": {"id": 6}, "role": "owner", "organization": {"id": 541}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 354}, "invitee": {"id": 65}, "role": "maintainer", "organization": {"id": 579}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 318}, "invitee": {"id": 4}, "role": "supervisor", "organization": {"id": 550}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 301}, "invitee": {"id": 62}, "role": "worker", "organization": {"id": 548}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 346}, "invitee": {"id": 10}, "role": "owner", "organization": {"id": 195}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 303}, "invitee": {"id": 2}, "role": "maintainer", "organization": {"id": 149}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 361}, "invitee": {"id": 43}, "role": "supervisor", "organization": {"id": 180}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 394}, "invitee": {"id": 40}, "role": "worker", "organization": {"id": 180}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 343}, "invitee": {"id": 49}, "role": "owner", "organization": {"id": 541}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 369}, "invitee": {"id": 83}, "role": "maintainer", "organization": {"id": 508}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 356}, "invitee": {"id": 46}, "role": "supervisor", "organization": {"id": 564}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 334}, "invitee": {"id": 55}, "role": "worker", "organization": {"id": 582}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 374}, "invitee": {"id": 4}, "role": "owner", "organization": {"id": 141}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 341}, "invitee": {"id": 91}, "role": "maintainer", "organization": {"id": 145}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 315}, "invitee": {"id": 87}, "role": "supervisor", "organization": {"id": 192}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 335}, "invitee": {"id": 9}, "role": "worker", "organization": {"id": 169}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 306}, "invitee": {"id": 12}, "role": "owner", "organization": {"id": 513}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 345}, "invitee": {"id": 40}, "role": "maintainer", "organization": {"id": 535}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 376}, "invitee": {"id": 17}, "role": "supervisor", "organization": {"id": 583}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 389}, "invitee": {"id": 23}, "role": "worker", "organization": {"id": 516}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_WORKER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 334}, "invitee": {"id": 58}, "role": "owner", "organization": {"id": 144}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 389}, "invitee": {"id": 15}, "role": "maintainer", "organization": {"id": 128}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 313}, "invitee": {"id": 16}, "role": "supervisor", "organization": {"id": 160}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_WORKER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 334}, "invitee": {"id": 43}, "role": "worker", "organization": {"id": 148}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"owner": {"id": 343}, "invitee": {"id": 47}, "role": "owner", "organization": {"id": 512}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"owner": {"id": 388}, "invitee": {"id": 43}, "role": "maintainer", "organization": {"id": 596}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"owner": {"id": 343}, "invitee": {"id": 1}, "role": "supervisor", "organization": {"id": 587}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"owner": {"id": 321}, "invitee": {"id": 96}, "role": "worker", "organization": {"id": 502}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"owner": {"id": 371}, "invitee": {"id": 18}, "role": "owner", "organization": {"id": 193}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"owner": {"id": 323}, "invitee": {"id": 75}, "role": "maintainer", "organization": {"id": 190}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"owner": {"id": 317}, "invitee": {"id": 92}, "role": "supervisor", "organization": {"id": 135}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"owner": {"id": 380}, "invitee": {"id": 45}, "role": "worker", "organization": {"id": 163}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 359}, "invitee": {"id": 28}, "role": "owner", "organization": {"id": 595}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 308}, "invitee": {"id": 97}, "role": "maintainer", "organization": {"id": 578}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 357}, "invitee": {"id": 22}, "role": "supervisor", "organization": {"id": 594}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 351}, "invitee": {"id": 43}, "role": "worker", "organization": {"id": 530}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_OWNER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 309}, "invitee": {"id": 19}, "role": "owner", "organization": {"id": 123}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 358}, "invitee": {"id": 13}, "role": "maintainer", "organization": {"id": 124}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 371}, "invitee": {"id": 97}, "role": "supervisor", "organization": {"id": 115}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_OWNER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 377}, "invitee": {"id": 33}, "role": "worker", "organization": {"id": 106}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 344}, "invitee": {"id": 68}, "role": "owner", "organization": {"id": 598}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 366}, "invitee": {"id": 8}, "role": "maintainer", "organization": {"id": 570}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 314}, "invitee": {"id": 5}, "role": "supervisor", "organization": {"id": 554}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 311}, "invitee": {"id": 25}, "role": "worker", "organization": {"id": 567}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 360}, "invitee": {"id": 76}, "role": "owner", "organization": {"id": 119}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 336}, "invitee": {"id": 52}, "role": "maintainer", "organization": {"id": 173}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 381}, "invitee": {"id": 50}, "role": "supervisor", "organization": {"id": 109}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 367}, "invitee": {"id": 47}, "role": "worker", "organization": {"id": 157}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 302}, "invitee": {"id": 4}, "role": "owner", "organization": {"id": 573}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 389}, "invitee": {"id": 13}, "role": "maintainer", "organization": {"id": 591}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 335}, "invitee": {"id": 49}, "role": "supervisor", "organization": {"id": 529}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 375}, "invitee": {"id": 95}, "role": "worker", "organization": {"id": 555}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 376}, "invitee": {"id": 51}, "role": "owner", "organization": {"id": 124}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 352}, "invitee": {"id": 1}, "role": "maintainer", "organization": {"id": 191}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 351}, "invitee": {"id": 8}, "role": "supervisor", "organization": {"id": 108}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 363}, "invitee": {"id": 8}, "role": "worker", "organization": {"id": 159}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 342}, "invitee": {"id": 74}, "role": "owner", "organization": {"id": 508}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 305}, "invitee": {"id": 42}, "role": "maintainer", "organization": {"id": 504}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 351}, "invitee": {"id": 75}, "role": "supervisor", "organization": {"id": 508}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 362}, "invitee": {"id": 11}, "role": "worker", "organization": {"id": 539}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_WORKER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 337}, "invitee": {"id": 43}, "role": "owner", "organization": {"id": 156}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 24, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 373}, "invitee": {"id": 24}, "role": "maintainer", "organization": {"id": 155}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 361}, "invitee": {"id": 48}, "role": "supervisor", "organization": {"id": 150}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_WORKER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 347}, "invitee": {"id": 26}, "role": "worker", "organization": {"id": 179}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"owner": {"id": 304}, "invitee": {"id": 26}, "role": "owner", "organization": {"id": 534}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"owner": {"id": 356}, "invitee": {"id": 50}, "role": "maintainer", "organization": {"id": 503}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"owner": {"id": 322}, "invitee": {"id": 51}, "role": "supervisor", "organization": {"id": 585}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"owner": {"id": 335}, "invitee": {"id": 43}, "role": "worker", "organization": {"id": 526}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"owner": {"id": 316}, "invitee": {"id": 58}, "role": "owner", "organization": {"id": 101}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"owner": {"id": 302}, "invitee": {"id": 14}, "role": "maintainer", "organization": {"id": 189}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"owner": {"id": 308}, "invitee": {"id": 75}, "role": "supervisor", "organization": {"id": 102}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"owner": {"id": 358}, "invitee": {"id": 38}, "role": "worker", "organization": {"id": 135}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 306}, "invitee": {"id": 63}, "role": "owner", "organization": {"id": 566}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 397}, "invitee": {"id": 78}, "role": "maintainer", "organization": {"id": 579}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 359}, "invitee": {"id": 90}, "role": "supervisor", "organization": {"id": 522}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 311}, "invitee": {"id": 85}, "role": "worker", "organization": {"id": 587}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_OWNER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 380}, "invitee": {"id": 65}, "role": "owner", "organization": {"id": 157}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 389}, "invitee": {"id": 21}, "role": "maintainer", "organization": {"id": 151}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 362}, "invitee": {"id": 21}, "role": "supervisor", "organization": {"id": 140}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_OWNER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 354}, "invitee": {"id": 2}, "role": "worker", "organization": {"id": 175}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 390}, "invitee": {"id": 69}, "role": "owner", "organization": {"id": 562}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 391}, "invitee": {"id": 75}, "role": "maintainer", "organization": {"id": 508}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 19, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 379}, "invitee": {"id": 19}, "role": "supervisor", "organization": {"id": 559}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 361}, "invitee": {"id": 77}, "role": "worker", "organization": {"id": 509}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 338}, "invitee": {"id": 81}, "role": "owner", "organization": {"id": 144}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 384}, "invitee": {"id": 62}, "role": "maintainer", "organization": {"id": 145}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 317}, "invitee": {"id": 97}, "role": "supervisor", "organization": {"id": 170}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 347}, "invitee": {"id": 21}, "role": "worker", "organization": {"id": 198}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 388}, "invitee": {"id": 12}, "role": "owner", "organization": {"id": 562}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 398}, "invitee": {"id": 45}, "role": "maintainer", "organization": {"id": 551}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 363}, "invitee": {"id": 21}, "role": "supervisor", "organization": {"id": 546}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 309}, "invitee": {"id": 15}, "role": "worker", "organization": {"id": 528}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 365}, "invitee": {"id": 84}, "role": "owner", "organization": {"id": 194}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 345}, "invitee": {"id": 0}, "role": "maintainer", "organization": {"id": 119}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 336}, "invitee": {"id": 86}, "role": "supervisor", "organization": {"id": 128}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 341}, "invitee": {"id": 38}, "role": "worker", "organization": {"id": 168}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 344}, "invitee": {"id": 42}, "role": "owner", "organization": {"id": 511}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 362}, "invitee": {"id": 80}, "role": "maintainer", "organization": {"id": 561}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 383}, "invitee": {"id": 79}, "role": "supervisor", "organization": {"id": 528}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 342}, "invitee": {"id": 55}, "role": "worker", "organization": {"id": 595}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_WORKER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 386}, "invitee": {"id": 75}, "role": "owner", "organization": {"id": 140}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 337}, "invitee": {"id": 7}, "role": "maintainer", "organization": {"id": 123}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 355}, "invitee": {"id": 5}, "role": "supervisor", "organization": {"id": 145}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_WORKER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 347}, "invitee": {"id": 8}, "role": "worker", "organization": {"id": 121}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"owner": {"id": 339}, "invitee": {"id": 56}, "role": "owner", "organization": {"id": 510}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"owner": {"id": 350}, "invitee": {"id": 66}, "role": "maintainer", "organization": {"id": 524}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"owner": {"id": 333}, "invitee": {"id": 7}, "role": "supervisor", "organization": {"id": 511}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"owner": {"id": 313}, "invitee": {"id": 82}, "role": "worker", "organization": {"id": 583}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"owner": {"id": 381}, "invitee": {"id": 24}, "role": "owner", "organization": {"id": 161}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"owner": {"id": 367}, "invitee": {"id": 13}, "role": "maintainer", "organization": {"id": 184}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"owner": {"id": 311}, "invitee": {"id": 76}, "role": "supervisor", "organization": {"id": 116}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"owner": {"id": 305}, "invitee": {"id": 55}, "role": "worker", "organization": {"id": 190}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 350}, "invitee": {"id": 455}, "role": "owner", "organization": {"id": 545}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 353}, "invitee": {"id": 403}, "role": "maintainer", "organization": {"id": 503}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 311}, "invitee": {"id": 427}, "role": "supervisor", "organization": {"id": 585}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 314}, "invitee": {"id": 490}, "role": "worker", "organization": {"id": 543}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 346}, "invitee": {"id": 484}, "role": "owner", "organization": {"id": 148}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 362}, "invitee": {"id": 434}, "role": "maintainer", "organization": {"id": 164}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 315}, "invitee": {"id": 425}, "role": "supervisor", "organization": {"id": 107}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 310}, "invitee": {"id": 494}, "role": "worker", "organization": {"id": 101}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 398}, "invitee": {"id": 407}, "role": "owner", "organization": {"id": 535}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 383}, "invitee": {"id": 461}, "role": "maintainer", "organization": {"id": 547}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 398}, "invitee": {"id": 439}, "role": "supervisor", "organization": {"id": 591}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 382}, "invitee": {"id": 433}, "role": "worker", "organization": {"id": 589}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 393}, "invitee": {"id": 455}, "role": "owner", "organization": {"id": 132}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 341}, "invitee": {"id": 418}, "role": "maintainer", "organization": {"id": 106}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 378}, "invitee": {"id": 441}, "role": "supervisor", "organization": {"id": 126}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 320}, "invitee": {"id": 475}, "role": "worker", "organization": {"id": 161}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 334}, "invitee": {"id": 428}, "role": "owner", "organization": {"id": 556}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 328}, "invitee": {"id": 454}, "role": "maintainer", "organization": {"id": 557}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 350}, "invitee": {"id": 429}, "role": "supervisor", "organization": {"id": 519}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 320}, "invitee": {"id": 410}, "role": "worker", "organization": {"id": 581}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 358}, "invitee": {"id": 499}, "role": "owner", "organization": {"id": 124}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 318}, "invitee": {"id": 416}, "role": "maintainer", "organization": {"id": 125}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 321}, "invitee": {"id": 458}, "role": "supervisor", "organization": {"id": 154}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 340}, "invitee": {"id": 411}, "role": "worker", "organization": {"id": 192}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 312}, "invitee": {"id": 465}, "role": "owner", "organization": {"id": 516}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 335}, "invitee": {"id": 418}, "role": "maintainer", "organization": {"id": 592}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 362}, "invitee": {"id": 449}, "role": "supervisor", "organization": {"id": 532}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 342}, "invitee": {"id": 495}, "role": "worker", "organization": {"id": 577}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 399}, "invitee": {"id": 476}, "role": "owner", "organization": {"id": 160}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 374}, "invitee": {"id": 402}, "role": "maintainer", "organization": {"id": 130}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 385}, "invitee": {"id": 419}, "role": "supervisor", "organization": {"id": 101}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 345}, "invitee": {"id": 431}, "role": "worker", "organization": {"id": 106}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"owner": {"id": 382}, "invitee": {"id": 477}, "role": "owner", "organization": {"id": 586}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"owner": {"id": 338}, "invitee": {"id": 450}, "role": "maintainer", "organization": {"id": 518}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"owner": {"id": 334}, "invitee": {"id": 413}, "role": "supervisor", "organization": {"id": 573}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"owner": {"id": 384}, "invitee": {"id": 418}, "role": "worker", "organization": {"id": 523}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"owner": {"id": 384}, "invitee": {"id": 488}, "role": "owner", "organization": {"id": 148}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"owner": {"id": 385}, "invitee": {"id": 482}, "role": "maintainer", "organization": {"id": 177}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"owner": {"id": 378}, "invitee": {"id": 453}, "role": "supervisor", "organization": {"id": 129}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"owner": {"id": 322}, "invitee": {"id": 470}, "role": "worker", "organization": {"id": 169}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 26, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 329}, "invitee": {"id": 443}, "role": "owner", "organization": {"id": 578}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 375}, "invitee": {"id": 402}, "role": "maintainer", "organization": {"id": 598}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 369}, "invitee": {"id": 454}, "role": "supervisor", "organization": {"id": 557}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 372}, "invitee": {"id": 445}, "role": "worker", "organization": {"id": 506}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 361}, "invitee": {"id": 498}, "role": "owner", "organization": {"id": 164}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 306}, "invitee": {"id": 465}, "role": "maintainer", "organization": {"id": 105}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 368}, "invitee": {"id": 459}, "role": "supervisor", "organization": {"id": 141}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 310}, "invitee": {"id": 482}, "role": "worker", "organization": {"id": 161}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 318}, "invitee": {"id": 413}, "role": "owner", "organization": {"id": 591}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 356}, "invitee": {"id": 411}, "role": "maintainer", "organization": {"id": 510}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 26, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 301}, "invitee": {"id": 442}, "role": "supervisor", "organization": {"id": 531}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 337}, "invitee": {"id": 475}, "role": "worker", "organization": {"id": 528}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 312}, "invitee": {"id": 472}, "role": "owner", "organization": {"id": 106}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 349}, "invitee": {"id": 406}, "role": "maintainer", "organization": {"id": 121}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 363}, "invitee": {"id": 465}, "role": "supervisor", "organization": {"id": 178}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 365}, "invitee": {"id": 450}, "role": "worker", "organization": {"id": 112}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 375}, "invitee": {"id": 481}, "role": "owner", "organization": {"id": 555}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 333}, "invitee": {"id": 473}, "role": "maintainer", "organization": {"id": 509}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 308}, "invitee": {"id": 444}, "role": "supervisor", "organization": {"id": 550}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 341}, "invitee": {"id": 425}, "role": "worker", "organization": {"id": 517}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 328}, "invitee": {"id": 482}, "role": "owner", "organization": {"id": 186}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 394}, "invitee": {"id": 494}, "role": "maintainer", "organization": {"id": 110}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 395}, "invitee": {"id": 408}, "role": "supervisor", "organization": {"id": 108}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 308}, "invitee": {"id": 488}, "role": "worker", "organization": {"id": 121}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 391}, "invitee": {"id": 460}, "role": "owner", "organization": {"id": 562}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 379}, "invitee": {"id": 497}, "role": "maintainer", "organization": {"id": 591}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 325}, "invitee": {"id": 466}, "role": "supervisor", "organization": {"id": 537}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 311}, "invitee": {"id": 415}, "role": "worker", "organization": {"id": 564}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 330}, "invitee": {"id": 425}, "role": "owner", "organization": {"id": 135}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 353}, "invitee": {"id": 435}, "role": "maintainer", "organization": {"id": 176}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 320}, "invitee": {"id": 477}, "role": "supervisor", "organization": {"id": 141}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 378}, "invitee": {"id": 418}, "role": "worker", "organization": {"id": 146}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"owner": {"id": 331}, "invitee": {"id": 402}, "role": "owner", "organization": {"id": 559}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"owner": {"id": 385}, "invitee": {"id": 429}, "role": "maintainer", "organization": {"id": 583}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"owner": {"id": 303}, "invitee": {"id": 463}, "role": "supervisor", "organization": {"id": 581}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"owner": {"id": 307}, "invitee": {"id": 462}, "role": "worker", "organization": {"id": 573}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"owner": {"id": 388}, "invitee": {"id": 475}, "role": "owner", "organization": {"id": 148}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"owner": {"id": 343}, "invitee": {"id": 423}, "role": "maintainer", "organization": {"id": 123}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"owner": {"id": 389}, "invitee": {"id": 488}, "role": "supervisor", "organization": {"id": 160}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"owner": {"id": 386}, "invitee": {"id": 415}, "role": "worker", "organization": {"id": 196}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 332}, "invitee": {"id": 415}, "role": "owner", "organization": {"id": 515}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 356}, "invitee": {"id": 431}, "role": "maintainer", "organization": {"id": 524}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 308}, "invitee": {"id": 407}, "role": "supervisor", "organization": {"id": 504}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 362}, "invitee": {"id": 475}, "role": "worker", "organization": {"id": 524}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 318}, "invitee": {"id": 486}, "role": "owner", "organization": {"id": 109}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 377}, "invitee": {"id": 433}, "role": "maintainer", "organization": {"id": 136}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 367}, "invitee": {"id": 468}, "role": "supervisor", "organization": {"id": 137}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 351}, "invitee": {"id": 405}, "role": "worker", "organization": {"id": 159}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 352}, "invitee": {"id": 452}, "role": "owner", "organization": {"id": 583}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 373}, "invitee": {"id": 497}, "role": "maintainer", "organization": {"id": 571}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 318}, "invitee": {"id": 496}, "role": "supervisor", "organization": {"id": 565}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 363}, "invitee": {"id": 424}, "role": "worker", "organization": {"id": 565}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 353}, "invitee": {"id": 497}, "role": "owner", "organization": {"id": 177}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 397}, "invitee": {"id": 466}, "role": "maintainer", "organization": {"id": 192}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 365}, "invitee": {"id": 485}, "role": "supervisor", "organization": {"id": 155}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "resend", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 312}, "invitee": {"id": 469}, "role": "worker", "organization": {"id": 173}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 355}, "invitee": {"id": 498}, "role": "owner", "organization": {"id": 585}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 357}, "invitee": {"id": 421}, "role": "maintainer", "organization": {"id": 523}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 332}, "invitee": {"id": 453}, "role": "supervisor", "organization": {"id": 510}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 369}, "invitee": {"id": 441}, "role": "worker", "organization": {"id": 511}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 395}, "invitee": {"id": 400}, "role": "owner", "organization": {"id": 135}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 384}, "invitee": {"id": 435}, "role": "maintainer", "organization": {"id": 121}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 355}, "invitee": {"id": 414}, "role": "supervisor", "organization": {"id": 119}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 340}, "invitee": {"id": 490}, "role": "worker", "organization": {"id": 156}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 338}, "invitee": {"id": 435}, "role": "owner", "organization": {"id": 599}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 394}, "invitee": {"id": 483}, "role": "maintainer", "organization": {"id": 578}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 71, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 333}, "invitee": {"id": 453}, "role": "supervisor", "organization": {"id": 575}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 329}, "invitee": {"id": 498}, "role": "worker", "organization": {"id": 599}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 341}, "invitee": {"id": 452}, "role": "owner", "organization": {"id": 128}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 331}, "invitee": {"id": 499}, "role": "maintainer", "organization": {"id": 110}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 19, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 316}, "invitee": {"id": 479}, "role": "supervisor", "organization": {"id": 115}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 364}, "invitee": {"id": 456}, "role": "worker", "organization": {"id": 199}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"owner": {"id": 363}, "invitee": {"id": 417}, "role": "owner", "organization": {"id": 536}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"owner": {"id": 318}, "invitee": {"id": 441}, "role": "maintainer", "organization": {"id": 530}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"owner": {"id": 369}, "invitee": {"id": 488}, "role": "supervisor", "organization": {"id": 515}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"owner": {"id": 350}, "invitee": {"id": 487}, "role": "worker", "organization": {"id": 552}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"owner": {"id": 385}, "invitee": {"id": 456}, "role": "owner", "organization": {"id": 188}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"owner": {"id": 389}, "invitee": {"id": 447}, "role": "maintainer", "organization": {"id": 110}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"owner": {"id": 387}, "invitee": {"id": 452}, "role": "supervisor", "organization": {"id": 132}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"owner": {"id": 388}, "invitee": {"id": 436}, "role": "worker", "organization": {"id": 125}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 303}, "invitee": {"id": 454}, "role": "owner", "organization": {"id": 515}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 352}, "invitee": {"id": 441}, "role": "maintainer", "organization": {"id": 588}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 359}, "invitee": {"id": 473}, "role": "supervisor", "organization": {"id": 595}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 307}, "invitee": {"id": 431}, "role": "worker", "organization": {"id": 520}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 323}, "invitee": {"id": 423}, "role": "owner", "organization": {"id": 164}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 387}, "invitee": {"id": 464}, "role": "maintainer", "organization": {"id": 131}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 320}, "invitee": {"id": 438}, "role": "supervisor", "organization": {"id": 173}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 331}, "invitee": {"id": 418}, "role": "worker", "organization": {"id": 144}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 331}, "invitee": {"id": 484}, "role": "owner", "organization": {"id": 579}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 304}, "invitee": {"id": 469}, "role": "maintainer", "organization": {"id": 519}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 364}, "invitee": {"id": 485}, "role": "supervisor", "organization": {"id": 559}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 315}, "invitee": {"id": 499}, "role": "worker", "organization": {"id": 533}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 309}, "invitee": {"id": 426}, "role": "owner", "organization": {"id": 155}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 388}, "invitee": {"id": 453}, "role": "maintainer", "organization": {"id": 123}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 29, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 364}, "invitee": {"id": 441}, "role": "supervisor", "organization": {"id": 137}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 310}, "invitee": {"id": 438}, "role": "worker", "organization": {"id": 131}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 343}, "invitee": {"id": 470}, "role": "owner", "organization": {"id": 510}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 366}, "invitee": {"id": 414}, "role": "maintainer", "organization": {"id": 539}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 363}, "invitee": {"id": 473}, "role": "supervisor", "organization": {"id": 548}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 306}, "invitee": {"id": 492}, "role": "worker", "organization": {"id": 576}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 348}, "invitee": {"id": 493}, "role": "owner", "organization": {"id": 196}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 24, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 310}, "invitee": {"id": 464}, "role": "maintainer", "organization": {"id": 149}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 376}, "invitee": {"id": 467}, "role": "supervisor", "organization": {"id": 135}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 381}, "invitee": {"id": 472}, "role": "worker", "organization": {"id": 198}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 360}, "invitee": {"id": 427}, "role": "owner", "organization": {"id": 565}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 370}, "invitee": {"id": 457}, "role": "maintainer", "organization": {"id": 546}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 387}, "invitee": {"id": 442}, "role": "supervisor", "organization": {"id": 588}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 331}, "invitee": {"id": 422}, "role": "worker", "organization": {"id": 516}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 394}, "invitee": {"id": 417}, "role": "owner", "organization": {"id": 100}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 353}, "invitee": {"id": 466}, "role": "maintainer", "organization": {"id": 102}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 307}, "invitee": {"id": 470}, "role": "supervisor", "organization": {"id": 165}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 335}, "invitee": {"id": 409}, "role": "worker", "organization": {"id": 119}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"owner": {"id": 314}, "invitee": {"id": 401}, "role": "owner", "organization": {"id": 588}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"owner": {"id": 345}, "invitee": {"id": 456}, "role": "maintainer", "organization": {"id": 523}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"owner": {"id": 382}, "invitee": {"id": 481}, "role": "supervisor", "organization": {"id": 530}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"owner": {"id": 315}, "invitee": {"id": 430}, "role": "worker", "organization": {"id": 562}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"owner": {"id": 358}, "invitee": {"id": 489}, "role": "owner", "organization": {"id": 124}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"owner": {"id": 392}, "invitee": {"id": 483}, "role": "maintainer", "organization": {"id": 185}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"owner": {"id": 379}, "invitee": {"id": 401}, "role": "supervisor", "organization": {"id": 175}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"owner": {"id": 310}, "invitee": {"id": 461}, "role": "worker", "organization": {"id": 187}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 326}, "invitee": {"id": 444}, "role": "owner", "organization": {"id": 538}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 382}, "invitee": {"id": 403}, "role": "maintainer", "organization": {"id": 592}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 367}, "invitee": {"id": 480}, "role": "supervisor", "organization": {"id": 539}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 302}, "invitee": {"id": 458}, "role": "worker", "organization": {"id": 556}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 330}, "invitee": {"id": 413}, "role": "owner", "organization": {"id": 177}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 341}, "invitee": {"id": 482}, "role": "maintainer", "organization": {"id": 165}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 366}, "invitee": {"id": 454}, "role": "supervisor", "organization": {"id": 193}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 396}, "invitee": {"id": 488}, "role": "worker", "organization": {"id": 120}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 358}, "invitee": {"id": 477}, "role": "owner", "organization": {"id": 542}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 372}, "invitee": {"id": 428}, "role": "maintainer", "organization": {"id": 529}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 327}, "invitee": {"id": 443}, "role": "supervisor", "organization": {"id": 534}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 303}, "invitee": {"id": 415}, "role": "worker", "organization": {"id": 562}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 319}, "invitee": {"id": 473}, "role": "owner", "organization": {"id": 141}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 363}, "invitee": {"id": 476}, "role": "maintainer", "organization": {"id": 150}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 365}, "invitee": {"id": 464}, "role": "supervisor", "organization": {"id": 199}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 363}, "invitee": {"id": 482}, "role": "worker", "organization": {"id": 137}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 364}, "invitee": {"id": 453}, "role": "owner", "organization": {"id": 506}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 387}, "invitee": {"id": 458}, "role": "maintainer", "organization": {"id": 537}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 301}, "invitee": {"id": 497}, "role": "supervisor", "organization": {"id": 548}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 396}, "invitee": {"id": 426}, "role": "worker", "organization": {"id": 539}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 328}, "invitee": {"id": 483}, "role": "owner", "organization": {"id": 155}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 328}, "invitee": {"id": 440}, "role": "maintainer", "organization": {"id": 188}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 318}, "invitee": {"id": 441}, "role": "supervisor", "organization": {"id": 188}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 376}, "invitee": {"id": 449}, "role": "worker", "organization": {"id": 119}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 398}, "invitee": {"id": 452}, "role": "owner", "organization": {"id": 526}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 356}, "invitee": {"id": 499}, "role": "maintainer", "organization": {"id": 597}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 396}, "invitee": {"id": 494}, "role": "supervisor", "organization": {"id": 592}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 311}, "invitee": {"id": 464}, "role": "worker", "organization": {"id": 589}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 329}, "invitee": {"id": 410}, "role": "owner", "organization": {"id": 176}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 396}, "invitee": {"id": 488}, "role": "maintainer", "organization": {"id": 177}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 388}, "invitee": {"id": 427}, "role": "supervisor", "organization": {"id": 120}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 328}, "invitee": {"id": 495}, "role": "worker", "organization": {"id": 156}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"owner": {"id": 311}, "invitee": {"id": 420}, "role": "owner", "organization": {"id": 536}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"owner": {"id": 399}, "invitee": {"id": 411}, "role": "maintainer", "organization": {"id": 526}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"owner": {"id": 353}, "invitee": {"id": 483}, "role": "supervisor", "organization": {"id": 591}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"owner": {"id": 327}, "invitee": {"id": 487}, "role": "worker", "organization": {"id": 595}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"owner": {"id": 314}, "invitee": {"id": 487}, "role": "owner", "organization": {"id": 172}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"owner": {"id": 378}, "invitee": {"id": 444}, "role": "maintainer", "organization": {"id": 134}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"owner": {"id": 337}, "invitee": {"id": 418}, "role": "supervisor", "organization": {"id": 115}}} -} - -test_scope_RESEND_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "resend", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"owner": {"id": 325}, "invitee": {"id": 474}, "role": "worker", "organization": {"id": 139}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 87}, "invitee": {"id": 489}, "role": "owner", "organization": {"id": 581}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 17}, "invitee": {"id": 450}, "role": "maintainer", "organization": {"id": 513}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 54}, "invitee": {"id": 488}, "role": "supervisor", "organization": {"id": 520}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 22}, "invitee": {"id": 409}, "role": "worker", "organization": {"id": 552}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 42}, "invitee": {"id": 438}, "role": "owner", "organization": {"id": 574}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 48}, "invitee": {"id": 459}, "role": "maintainer", "organization": {"id": 524}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 90}, "invitee": {"id": 407}, "role": "supervisor", "organization": {"id": 599}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 20}, "invitee": {"id": 468}, "role": "worker", "organization": {"id": 574}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 91}, "invitee": {"id": 445}, "role": "owner", "organization": {"id": 587}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 61}, "invitee": {"id": 463}, "role": "maintainer", "organization": {"id": 533}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 49}, "invitee": {"id": 475}, "role": "supervisor", "organization": {"id": 509}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 54}, "invitee": {"id": 444}, "role": "worker", "organization": {"id": 511}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 66}, "invitee": {"id": 464}, "role": "owner", "organization": {"id": 544}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 64}, "invitee": {"id": 423}, "role": "maintainer", "organization": {"id": 516}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 26}, "invitee": {"id": 458}, "role": "supervisor", "organization": {"id": 571}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 38}, "invitee": {"id": 424}, "role": "worker", "organization": {"id": 509}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 45}, "invitee": {"id": 407}, "role": "owner", "organization": {"id": 509}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 59}, "invitee": {"id": 455}, "role": "maintainer", "organization": {"id": 541}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 68}, "invitee": {"id": 471}, "role": "supervisor", "organization": {"id": 560}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 98}, "invitee": {"id": 479}, "role": "worker", "organization": {"id": 512}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 356}, "invitee": {"id": 67}, "role": "owner", "organization": {"id": 532}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 387}, "invitee": {"id": 15}, "role": "maintainer", "organization": {"id": 565}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 382}, "invitee": {"id": 33}, "role": "supervisor", "organization": {"id": 589}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 354}, "invitee": {"id": 93}, "role": "worker", "organization": {"id": 596}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 361}, "invitee": {"id": 73}, "role": "owner", "organization": {"id": 559}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 394}, "invitee": {"id": 47}, "role": "maintainer", "organization": {"id": 546}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 319}, "invitee": {"id": 51}, "role": "supervisor", "organization": {"id": 541}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 343}, "invitee": {"id": 96}, "role": "worker", "organization": {"id": 542}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 300}, "invitee": {"id": 21}, "role": "owner", "organization": {"id": 559}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 353}, "invitee": {"id": 56}, "role": "maintainer", "organization": {"id": 537}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 355}, "invitee": {"id": 20}, "role": "supervisor", "organization": {"id": 570}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 349}, "invitee": {"id": 59}, "role": "worker", "organization": {"id": 523}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 310}, "invitee": {"id": 53}, "role": "owner", "organization": {"id": 583}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 387}, "invitee": {"id": 23}, "role": "maintainer", "organization": {"id": 570}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 323}, "invitee": {"id": 85}, "role": "supervisor", "organization": {"id": 556}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 328}, "invitee": {"id": 39}, "role": "worker", "organization": {"id": 534}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 329}, "invitee": {"id": 36}, "role": "owner", "organization": {"id": 526}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 383}, "invitee": {"id": 33}, "role": "maintainer", "organization": {"id": 536}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 363}, "invitee": {"id": 99}, "role": "supervisor", "organization": {"id": 565}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 391}, "invitee": {"id": 56}, "role": "worker", "organization": {"id": 589}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 326}, "invitee": {"id": 428}, "role": "owner", "organization": {"id": 568}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 320}, "invitee": {"id": 435}, "role": "maintainer", "organization": {"id": 518}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 392}, "invitee": {"id": 461}, "role": "supervisor", "organization": {"id": 542}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 381}, "invitee": {"id": 405}, "role": "worker", "organization": {"id": 597}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 343}, "invitee": {"id": 414}, "role": "owner", "organization": {"id": 515}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 381}, "invitee": {"id": 416}, "role": "maintainer", "organization": {"id": 595}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 391}, "invitee": {"id": 454}, "role": "supervisor", "organization": {"id": 569}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 304}, "invitee": {"id": 448}, "role": "worker", "organization": {"id": 505}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 342}, "invitee": {"id": 466}, "role": "owner", "organization": {"id": 592}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 345}, "invitee": {"id": 421}, "role": "maintainer", "organization": {"id": 548}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 347}, "invitee": {"id": 402}, "role": "supervisor", "organization": {"id": 502}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 354}, "invitee": {"id": 491}, "role": "worker", "organization": {"id": 541}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 375}, "invitee": {"id": 439}, "role": "owner", "organization": {"id": 584}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 377}, "invitee": {"id": 459}, "role": "maintainer", "organization": {"id": 580}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 325}, "invitee": {"id": 483}, "role": "supervisor", "organization": {"id": 517}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 382}, "invitee": {"id": 461}, "role": "worker", "organization": {"id": 585}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 399}, "invitee": {"id": 492}, "role": "owner", "organization": {"id": 570}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 348}, "invitee": {"id": 483}, "role": "maintainer", "organization": {"id": 541}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 397}, "invitee": {"id": 448}, "role": "supervisor", "organization": {"id": 593}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 349}, "invitee": {"id": 405}, "role": "worker", "organization": {"id": 522}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 29}, "invitee": {"id": 418}, "role": "owner", "organization": {"id": 517}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 59}, "invitee": {"id": 470}, "role": "maintainer", "organization": {"id": 575}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 92}, "invitee": {"id": 494}, "role": "supervisor", "organization": {"id": 546}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 71}, "invitee": {"id": 443}, "role": "worker", "organization": {"id": 531}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 36, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 36}, "invitee": {"id": 409}, "role": "owner", "organization": {"id": 106}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 55}, "invitee": {"id": 456}, "role": "maintainer", "organization": {"id": 148}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 3}, "invitee": {"id": 451}, "role": "supervisor", "organization": {"id": 169}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 73}, "invitee": {"id": 410}, "role": "worker", "organization": {"id": 122}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 6}, "invitee": {"id": 459}, "role": "owner", "organization": {"id": 557}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 87}, "invitee": {"id": 448}, "role": "maintainer", "organization": {"id": 546}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 60}, "invitee": {"id": 455}, "role": "supervisor", "organization": {"id": 518}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 78}, "invitee": {"id": 435}, "role": "worker", "organization": {"id": 527}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 88}, "invitee": {"id": 423}, "role": "owner", "organization": {"id": 192}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 32}, "invitee": {"id": 426}, "role": "maintainer", "organization": {"id": 122}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 33}, "invitee": {"id": 484}, "role": "supervisor", "organization": {"id": 132}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 69}, "invitee": {"id": 470}, "role": "worker", "organization": {"id": 196}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 85}, "invitee": {"id": 491}, "role": "owner", "organization": {"id": 579}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 7}, "invitee": {"id": 415}, "role": "maintainer", "organization": {"id": 511}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 47}, "invitee": {"id": 405}, "role": "supervisor", "organization": {"id": 511}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 94}, "invitee": {"id": 443}, "role": "worker", "organization": {"id": 527}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 51}, "invitee": {"id": 403}, "role": "owner", "organization": {"id": 176}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 5}, "invitee": {"id": 408}, "role": "maintainer", "organization": {"id": 116}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 24}, "invitee": {"id": 427}, "role": "supervisor", "organization": {"id": 172}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 82}, "invitee": {"id": 467}, "role": "worker", "organization": {"id": 165}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 95}, "invitee": {"id": 478}, "role": "owner", "organization": {"id": 518}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 17}, "invitee": {"id": 419}, "role": "maintainer", "organization": {"id": 566}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 24}, "invitee": {"id": 481}, "role": "supervisor", "organization": {"id": 529}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 88}, "invitee": {"id": 451}, "role": "worker", "organization": {"id": 562}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 52}, "invitee": {"id": 496}, "role": "owner", "organization": {"id": 194}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 69}, "invitee": {"id": 410}, "role": "maintainer", "organization": {"id": 111}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 58}, "invitee": {"id": 446}, "role": "supervisor", "organization": {"id": 134}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 1}, "invitee": {"id": 490}, "role": "worker", "organization": {"id": 148}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"owner": {"id": 53}, "invitee": {"id": 400}, "role": "owner", "organization": {"id": 583}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"owner": {"id": 99}, "invitee": {"id": 463}, "role": "maintainer", "organization": {"id": 503}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"owner": {"id": 38}, "invitee": {"id": 455}, "role": "supervisor", "organization": {"id": 588}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"owner": {"id": 1}, "invitee": {"id": 403}, "role": "worker", "organization": {"id": 586}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"owner": {"id": 82}, "invitee": {"id": 431}, "role": "owner", "organization": {"id": 178}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"owner": {"id": 96}, "invitee": {"id": 466}, "role": "maintainer", "organization": {"id": 107}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"owner": {"id": 80}, "invitee": {"id": 468}, "role": "supervisor", "organization": {"id": 168}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"owner": {"id": 56}, "invitee": {"id": 456}, "role": "worker", "organization": {"id": 170}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 0}, "invitee": {"id": 421}, "role": "owner", "organization": {"id": 504}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 71}, "invitee": {"id": 495}, "role": "maintainer", "organization": {"id": 548}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 42}, "invitee": {"id": 430}, "role": "supervisor", "organization": {"id": 588}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 30}, "invitee": {"id": 440}, "role": "worker", "organization": {"id": 558}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 0}, "invitee": {"id": 427}, "role": "owner", "organization": {"id": 129}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 61}, "invitee": {"id": 494}, "role": "maintainer", "organization": {"id": 120}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 61}, "invitee": {"id": 498}, "role": "supervisor", "organization": {"id": 191}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 55}, "invitee": {"id": 436}, "role": "worker", "organization": {"id": 128}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 55}, "invitee": {"id": 444}, "role": "owner", "organization": {"id": 514}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 45}, "invitee": {"id": 469}, "role": "maintainer", "organization": {"id": 519}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 8}, "invitee": {"id": 431}, "role": "supervisor", "organization": {"id": 522}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 38}, "invitee": {"id": 426}, "role": "worker", "organization": {"id": 558}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 83}, "invitee": {"id": 412}, "role": "owner", "organization": {"id": 170}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 72}, "invitee": {"id": 473}, "role": "maintainer", "organization": {"id": 124}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 7}, "invitee": {"id": 444}, "role": "supervisor", "organization": {"id": 186}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 93}, "invitee": {"id": 447}, "role": "worker", "organization": {"id": 128}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 77}, "invitee": {"id": 499}, "role": "owner", "organization": {"id": 531}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 47}, "invitee": {"id": 435}, "role": "maintainer", "organization": {"id": 553}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 98}, "invitee": {"id": 424}, "role": "supervisor", "organization": {"id": 521}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 14}, "invitee": {"id": 408}, "role": "worker", "organization": {"id": 547}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 40}, "invitee": {"id": 490}, "role": "owner", "organization": {"id": 104}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 30}, "invitee": {"id": 414}, "role": "maintainer", "organization": {"id": 124}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 74}, "invitee": {"id": 445}, "role": "supervisor", "organization": {"id": 123}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 31}, "invitee": {"id": 498}, "role": "worker", "organization": {"id": 151}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 22}, "invitee": {"id": 485}, "role": "owner", "organization": {"id": 575}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 98}, "invitee": {"id": 414}, "role": "maintainer", "organization": {"id": 558}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 83}, "invitee": {"id": 480}, "role": "supervisor", "organization": {"id": 519}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 20}, "invitee": {"id": 426}, "role": "worker", "organization": {"id": 556}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 35}, "invitee": {"id": 463}, "role": "owner", "organization": {"id": 145}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 78}, "invitee": {"id": 419}, "role": "maintainer", "organization": {"id": 175}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 33}, "invitee": {"id": 454}, "role": "supervisor", "organization": {"id": 121}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 55}, "invitee": {"id": 413}, "role": "worker", "organization": {"id": 150}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"owner": {"id": 12}, "invitee": {"id": 431}, "role": "owner", "organization": {"id": 589}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"owner": {"id": 90}, "invitee": {"id": 467}, "role": "maintainer", "organization": {"id": 585}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"owner": {"id": 62}, "invitee": {"id": 401}, "role": "supervisor", "organization": {"id": 515}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"owner": {"id": 44}, "invitee": {"id": 458}, "role": "worker", "organization": {"id": 532}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"owner": {"id": 37}, "invitee": {"id": 410}, "role": "owner", "organization": {"id": 161}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"owner": {"id": 58}, "invitee": {"id": 425}, "role": "maintainer", "organization": {"id": 105}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"owner": {"id": 70}, "invitee": {"id": 406}, "role": "supervisor", "organization": {"id": 119}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"owner": {"id": 50}, "invitee": {"id": 493}, "role": "worker", "organization": {"id": 182}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 6}, "invitee": {"id": 441}, "role": "owner", "organization": {"id": 543}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 24}, "invitee": {"id": 403}, "role": "maintainer", "organization": {"id": 592}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 64}, "invitee": {"id": 464}, "role": "supervisor", "organization": {"id": 562}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 91}, "invitee": {"id": 445}, "role": "worker", "organization": {"id": 598}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 29}, "invitee": {"id": 417}, "role": "owner", "organization": {"id": 183}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 37}, "invitee": {"id": 455}, "role": "maintainer", "organization": {"id": 128}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 87}, "invitee": {"id": 458}, "role": "supervisor", "organization": {"id": 132}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 87}, "invitee": {"id": 460}, "role": "worker", "organization": {"id": 116}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 62}, "invitee": {"id": 419}, "role": "owner", "organization": {"id": 531}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 32}, "invitee": {"id": 420}, "role": "maintainer", "organization": {"id": 565}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 11}, "invitee": {"id": 427}, "role": "supervisor", "organization": {"id": 566}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 50}, "invitee": {"id": 438}, "role": "worker", "organization": {"id": 532}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 79}, "invitee": {"id": 466}, "role": "owner", "organization": {"id": 164}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 65}, "invitee": {"id": 406}, "role": "maintainer", "organization": {"id": 102}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 8}, "invitee": {"id": 445}, "role": "supervisor", "organization": {"id": 196}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 0}, "invitee": {"id": 407}, "role": "worker", "organization": {"id": 124}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 87}, "invitee": {"id": 469}, "role": "owner", "organization": {"id": 545}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 20}, "invitee": {"id": 474}, "role": "maintainer", "organization": {"id": 593}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 33}, "invitee": {"id": 432}, "role": "supervisor", "organization": {"id": 595}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 12}, "invitee": {"id": 435}, "role": "worker", "organization": {"id": 519}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 32}, "invitee": {"id": 462}, "role": "owner", "organization": {"id": 109}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 13}, "invitee": {"id": 455}, "role": "maintainer", "organization": {"id": 160}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 38}, "invitee": {"id": 458}, "role": "supervisor", "organization": {"id": 127}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 15}, "invitee": {"id": 453}, "role": "worker", "organization": {"id": 111}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 42}, "invitee": {"id": 401}, "role": "owner", "organization": {"id": 583}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 22}, "invitee": {"id": 409}, "role": "maintainer", "organization": {"id": 598}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 49}, "invitee": {"id": 463}, "role": "supervisor", "organization": {"id": 547}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 34}, "invitee": {"id": 426}, "role": "worker", "organization": {"id": 544}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 65}, "invitee": {"id": 406}, "role": "owner", "organization": {"id": 139}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 18}, "invitee": {"id": 407}, "role": "maintainer", "organization": {"id": 173}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 56}, "invitee": {"id": 401}, "role": "supervisor", "organization": {"id": 142}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 18}, "invitee": {"id": 416}, "role": "worker", "organization": {"id": 173}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"owner": {"id": 44}, "invitee": {"id": 491}, "role": "owner", "organization": {"id": 551}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"owner": {"id": 97}, "invitee": {"id": 464}, "role": "maintainer", "organization": {"id": 541}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"owner": {"id": 16}, "invitee": {"id": 454}, "role": "supervisor", "organization": {"id": 537}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"owner": {"id": 47}, "invitee": {"id": 482}, "role": "worker", "organization": {"id": 569}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"owner": {"id": 25}, "invitee": {"id": 455}, "role": "owner", "organization": {"id": 152}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"owner": {"id": 97}, "invitee": {"id": 475}, "role": "maintainer", "organization": {"id": 182}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"owner": {"id": 56}, "invitee": {"id": 455}, "role": "supervisor", "organization": {"id": 190}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"owner": {"id": 13}, "invitee": {"id": 494}, "role": "worker", "organization": {"id": 133}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 47}, "invitee": {"id": 453}, "role": "owner", "organization": {"id": 503}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 56}, "invitee": {"id": 486}, "role": "maintainer", "organization": {"id": 565}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 16}, "invitee": {"id": 437}, "role": "supervisor", "organization": {"id": 528}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 56}, "invitee": {"id": 471}, "role": "worker", "organization": {"id": 555}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 47}, "invitee": {"id": 470}, "role": "owner", "organization": {"id": 190}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 59}, "invitee": {"id": 493}, "role": "maintainer", "organization": {"id": 190}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 72}, "invitee": {"id": 489}, "role": "supervisor", "organization": {"id": 159}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 0}, "invitee": {"id": 420}, "role": "worker", "organization": {"id": 160}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 34}, "invitee": {"id": 403}, "role": "owner", "organization": {"id": 546}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 14}, "invitee": {"id": 464}, "role": "maintainer", "organization": {"id": 512}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 40}, "invitee": {"id": 409}, "role": "supervisor", "organization": {"id": 509}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 88}, "invitee": {"id": 468}, "role": "worker", "organization": {"id": 564}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 86}, "invitee": {"id": 463}, "role": "owner", "organization": {"id": 167}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 49}, "invitee": {"id": 429}, "role": "maintainer", "organization": {"id": 186}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 4}, "invitee": {"id": 408}, "role": "supervisor", "organization": {"id": 170}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 69}, "invitee": {"id": 428}, "role": "worker", "organization": {"id": 189}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 68}, "invitee": {"id": 427}, "role": "owner", "organization": {"id": 539}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 90}, "invitee": {"id": 470}, "role": "maintainer", "organization": {"id": 515}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 3}, "invitee": {"id": 478}, "role": "supervisor", "organization": {"id": 535}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 38}, "invitee": {"id": 469}, "role": "worker", "organization": {"id": 503}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 88}, "invitee": {"id": 464}, "role": "owner", "organization": {"id": 116}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 74}, "invitee": {"id": 429}, "role": "maintainer", "organization": {"id": 128}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 84}, "invitee": {"id": 478}, "role": "supervisor", "organization": {"id": 187}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 0}, "invitee": {"id": 482}, "role": "worker", "organization": {"id": 146}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 71}, "invitee": {"id": 410}, "role": "owner", "organization": {"id": 553}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 98}, "invitee": {"id": 483}, "role": "maintainer", "organization": {"id": 525}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 87}, "invitee": {"id": 473}, "role": "supervisor", "organization": {"id": 562}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 51}, "invitee": {"id": 476}, "role": "worker", "organization": {"id": 521}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 33}, "invitee": {"id": 477}, "role": "owner", "organization": {"id": 128}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 10}, "invitee": {"id": 454}, "role": "maintainer", "organization": {"id": 198}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 77}, "invitee": {"id": 468}, "role": "supervisor", "organization": {"id": 130}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 73}, "invitee": {"id": 478}, "role": "worker", "organization": {"id": 180}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"owner": {"id": 55}, "invitee": {"id": 426}, "role": "owner", "organization": {"id": 596}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"owner": {"id": 4}, "invitee": {"id": 405}, "role": "maintainer", "organization": {"id": 543}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"owner": {"id": 63}, "invitee": {"id": 403}, "role": "supervisor", "organization": {"id": 552}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"owner": {"id": 76}, "invitee": {"id": 469}, "role": "worker", "organization": {"id": 520}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"owner": {"id": 49}, "invitee": {"id": 419}, "role": "owner", "organization": {"id": 195}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"owner": {"id": 76}, "invitee": {"id": 451}, "role": "maintainer", "organization": {"id": 189}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"owner": {"id": 63}, "invitee": {"id": 436}, "role": "supervisor", "organization": {"id": 137}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"owner": {"id": 22}, "invitee": {"id": 471}, "role": "worker", "organization": {"id": 100}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 14}, "invitee": {"id": 411}, "role": "owner", "organization": {"id": 539}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 75}, "invitee": {"id": 477}, "role": "maintainer", "organization": {"id": 581}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 73}, "invitee": {"id": 454}, "role": "supervisor", "organization": {"id": 543}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 85}, "invitee": {"id": 480}, "role": "worker", "organization": {"id": 558}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 5}, "invitee": {"id": 456}, "role": "owner", "organization": {"id": 193}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 20}, "invitee": {"id": 426}, "role": "maintainer", "organization": {"id": 109}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 52}, "invitee": {"id": 449}, "role": "supervisor", "organization": {"id": 102}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 6}, "invitee": {"id": 458}, "role": "worker", "organization": {"id": 188}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 38}, "invitee": {"id": 490}, "role": "owner", "organization": {"id": 500}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 1}, "invitee": {"id": 453}, "role": "maintainer", "organization": {"id": 529}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 96}, "invitee": {"id": 480}, "role": "supervisor", "organization": {"id": 562}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 78}, "invitee": {"id": 405}, "role": "worker", "organization": {"id": 550}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 0}, "invitee": {"id": 444}, "role": "owner", "organization": {"id": 131}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 28}, "invitee": {"id": 452}, "role": "maintainer", "organization": {"id": 159}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 52}, "invitee": {"id": 482}, "role": "supervisor", "organization": {"id": 142}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 1}, "invitee": {"id": 482}, "role": "worker", "organization": {"id": 115}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 31}, "invitee": {"id": 441}, "role": "owner", "organization": {"id": 515}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 76}, "invitee": {"id": 415}, "role": "maintainer", "organization": {"id": 500}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 71}, "invitee": {"id": 458}, "role": "supervisor", "organization": {"id": 551}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 74}, "invitee": {"id": 480}, "role": "worker", "organization": {"id": 562}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 85}, "invitee": {"id": 449}, "role": "owner", "organization": {"id": 166}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 94}, "invitee": {"id": 417}, "role": "maintainer", "organization": {"id": 125}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 57}, "invitee": {"id": 470}, "role": "supervisor", "organization": {"id": 128}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 64}, "invitee": {"id": 405}, "role": "worker", "organization": {"id": 115}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 63}, "invitee": {"id": 462}, "role": "owner", "organization": {"id": 561}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 90}, "invitee": {"id": 446}, "role": "maintainer", "organization": {"id": 557}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 17}, "invitee": {"id": 410}, "role": "supervisor", "organization": {"id": 513}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 10}, "invitee": {"id": 495}, "role": "worker", "organization": {"id": 584}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 22}, "invitee": {"id": 447}, "role": "owner", "organization": {"id": 114}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 34}, "invitee": {"id": 455}, "role": "maintainer", "organization": {"id": 161}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 8}, "invitee": {"id": 403}, "role": "supervisor", "organization": {"id": 129}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 30}, "invitee": {"id": 449}, "role": "worker", "organization": {"id": 128}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"owner": {"id": 94}, "invitee": {"id": 423}, "role": "owner", "organization": {"id": 585}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"owner": {"id": 84}, "invitee": {"id": 470}, "role": "maintainer", "organization": {"id": 503}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"owner": {"id": 37}, "invitee": {"id": 465}, "role": "supervisor", "organization": {"id": 524}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"owner": {"id": 25}, "invitee": {"id": 498}, "role": "worker", "organization": {"id": 597}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"owner": {"id": 26}, "invitee": {"id": 480}, "role": "owner", "organization": {"id": 162}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"owner": {"id": 77}, "invitee": {"id": 451}, "role": "maintainer", "organization": {"id": 155}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"owner": {"id": 0}, "invitee": {"id": 428}, "role": "supervisor", "organization": {"id": 191}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"owner": {"id": 43}, "invitee": {"id": 427}, "role": "worker", "organization": {"id": 117}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_OWNER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 365}, "invitee": {"id": 49}, "role": "owner", "organization": {"id": 574}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 332}, "invitee": {"id": 9}, "role": "maintainer", "organization": {"id": 529}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 347}, "invitee": {"id": 17}, "role": "supervisor", "organization": {"id": 508}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_OWNER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 354}, "invitee": {"id": 74}, "role": "worker", "organization": {"id": 517}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_OWNER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 390}, "invitee": {"id": 18}, "role": "owner", "organization": {"id": 189}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 341}, "invitee": {"id": 26}, "role": "maintainer", "organization": {"id": 175}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 319}, "invitee": {"id": 41}, "role": "supervisor", "organization": {"id": 134}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 364}, "invitee": {"id": 22}, "role": "worker", "organization": {"id": 168}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 398}, "invitee": {"id": 13}, "role": "owner", "organization": {"id": 584}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 303}, "invitee": {"id": 52}, "role": "maintainer", "organization": {"id": 589}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 356}, "invitee": {"id": 19}, "role": "supervisor", "organization": {"id": 580}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 341}, "invitee": {"id": 98}, "role": "worker", "organization": {"id": 596}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 354}, "invitee": {"id": 16}, "role": "owner", "organization": {"id": 170}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 346}, "invitee": {"id": 14}, "role": "maintainer", "organization": {"id": 120}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 328}, "invitee": {"id": 92}, "role": "supervisor", "organization": {"id": 198}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 387}, "invitee": {"id": 93}, "role": "worker", "organization": {"id": 127}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 334}, "invitee": {"id": 33}, "role": "owner", "organization": {"id": 528}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 309}, "invitee": {"id": 74}, "role": "maintainer", "organization": {"id": 528}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 384}, "invitee": {"id": 25}, "role": "supervisor", "organization": {"id": 575}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 355}, "invitee": {"id": 30}, "role": "worker", "organization": {"id": 526}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 398}, "invitee": {"id": 93}, "role": "owner", "organization": {"id": 198}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 389}, "invitee": {"id": 62}, "role": "maintainer", "organization": {"id": 164}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 310}, "invitee": {"id": 97}, "role": "supervisor", "organization": {"id": 184}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 325}, "invitee": {"id": 21}, "role": "worker", "organization": {"id": 141}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_WORKER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 398}, "invitee": {"id": 88}, "role": "owner", "organization": {"id": 581}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 331}, "invitee": {"id": 64}, "role": "maintainer", "organization": {"id": 522}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 312}, "invitee": {"id": 42}, "role": "supervisor", "organization": {"id": 571}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_WORKER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 348}, "invitee": {"id": 87}, "role": "worker", "organization": {"id": 503}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_WORKER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 374}, "invitee": {"id": 65}, "role": "owner", "organization": {"id": 164}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 357}, "invitee": {"id": 45}, "role": "maintainer", "organization": {"id": 131}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 342}, "invitee": {"id": 71}, "role": "supervisor", "organization": {"id": 117}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_WORKER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 336}, "invitee": {"id": 26}, "role": "worker", "organization": {"id": 196}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"owner": {"id": 300}, "invitee": {"id": 96}, "role": "owner", "organization": {"id": 577}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"owner": {"id": 374}, "invitee": {"id": 35}, "role": "maintainer", "organization": {"id": 558}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"owner": {"id": 308}, "invitee": {"id": 79}, "role": "supervisor", "organization": {"id": 513}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"owner": {"id": 328}, "invitee": {"id": 69}, "role": "worker", "organization": {"id": 584}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"owner": {"id": 361}, "invitee": {"id": 40}, "role": "owner", "organization": {"id": 199}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"owner": {"id": 330}, "invitee": {"id": 12}, "role": "maintainer", "organization": {"id": 160}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"owner": {"id": 382}, "invitee": {"id": 86}, "role": "supervisor", "organization": {"id": 151}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"owner": {"id": 384}, "invitee": {"id": 44}, "role": "worker", "organization": {"id": 103}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 355}, "invitee": {"id": 26}, "role": "owner", "organization": {"id": 548}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 365}, "invitee": {"id": 91}, "role": "maintainer", "organization": {"id": 556}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 385}, "invitee": {"id": 1}, "role": "supervisor", "organization": {"id": 598}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 377}, "invitee": {"id": 32}, "role": "worker", "organization": {"id": 536}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_OWNER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 379}, "invitee": {"id": 63}, "role": "owner", "organization": {"id": 101}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 305}, "invitee": {"id": 96}, "role": "maintainer", "organization": {"id": 147}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 389}, "invitee": {"id": 53}, "role": "supervisor", "organization": {"id": 164}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 373}, "invitee": {"id": 15}, "role": "worker", "organization": {"id": 190}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 399}, "invitee": {"id": 39}, "role": "owner", "organization": {"id": 559}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 350}, "invitee": {"id": 37}, "role": "maintainer", "organization": {"id": 511}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 306}, "invitee": {"id": 68}, "role": "supervisor", "organization": {"id": 577}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 351}, "invitee": {"id": 95}, "role": "worker", "organization": {"id": 557}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 372}, "invitee": {"id": 19}, "role": "owner", "organization": {"id": 185}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 343}, "invitee": {"id": 2}, "role": "maintainer", "organization": {"id": 185}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 383}, "invitee": {"id": 37}, "role": "supervisor", "organization": {"id": 147}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 364}, "invitee": {"id": 75}, "role": "worker", "organization": {"id": 167}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 334}, "invitee": {"id": 17}, "role": "owner", "organization": {"id": 549}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 334}, "invitee": {"id": 36}, "role": "maintainer", "organization": {"id": 593}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 343}, "invitee": {"id": 21}, "role": "supervisor", "organization": {"id": 508}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 380}, "invitee": {"id": 65}, "role": "worker", "organization": {"id": 562}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 337}, "invitee": {"id": 75}, "role": "owner", "organization": {"id": 107}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 336}, "invitee": {"id": 85}, "role": "maintainer", "organization": {"id": 191}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 395}, "invitee": {"id": 35}, "role": "supervisor", "organization": {"id": 179}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 343}, "invitee": {"id": 94}, "role": "worker", "organization": {"id": 193}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 360}, "invitee": {"id": 90}, "role": "owner", "organization": {"id": 505}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 373}, "invitee": {"id": 65}, "role": "maintainer", "organization": {"id": 596}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 343}, "invitee": {"id": 39}, "role": "supervisor", "organization": {"id": 526}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 329}, "invitee": {"id": 93}, "role": "worker", "organization": {"id": 577}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_WORKER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 310}, "invitee": {"id": 81}, "role": "owner", "organization": {"id": 126}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 379}, "invitee": {"id": 58}, "role": "maintainer", "organization": {"id": 122}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 326}, "invitee": {"id": 39}, "role": "supervisor", "organization": {"id": 103}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_WORKER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 387}, "invitee": {"id": 91}, "role": "worker", "organization": {"id": 148}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"owner": {"id": 378}, "invitee": {"id": 61}, "role": "owner", "organization": {"id": 513}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"owner": {"id": 348}, "invitee": {"id": 47}, "role": "maintainer", "organization": {"id": 555}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"owner": {"id": 311}, "invitee": {"id": 70}, "role": "supervisor", "organization": {"id": 547}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"owner": {"id": 306}, "invitee": {"id": 69}, "role": "worker", "organization": {"id": 502}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"owner": {"id": 395}, "invitee": {"id": 90}, "role": "owner", "organization": {"id": 112}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"owner": {"id": 308}, "invitee": {"id": 23}, "role": "maintainer", "organization": {"id": 122}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"owner": {"id": 352}, "invitee": {"id": 92}, "role": "supervisor", "organization": {"id": 196}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"owner": {"id": 350}, "invitee": {"id": 72}, "role": "worker", "organization": {"id": 188}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 329}, "invitee": {"id": 95}, "role": "owner", "organization": {"id": 576}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 325}, "invitee": {"id": 83}, "role": "maintainer", "organization": {"id": 536}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 331}, "invitee": {"id": 85}, "role": "supervisor", "organization": {"id": 581}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 318}, "invitee": {"id": 70}, "role": "worker", "organization": {"id": 569}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_OWNER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 390}, "invitee": {"id": 92}, "role": "owner", "organization": {"id": 190}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 310}, "invitee": {"id": 43}, "role": "maintainer", "organization": {"id": 196}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 329}, "invitee": {"id": 11}, "role": "supervisor", "organization": {"id": 167}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 323}, "invitee": {"id": 64}, "role": "worker", "organization": {"id": 109}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 328}, "invitee": {"id": 67}, "role": "owner", "organization": {"id": 526}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 356}, "invitee": {"id": 65}, "role": "maintainer", "organization": {"id": 539}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 366}, "invitee": {"id": 90}, "role": "supervisor", "organization": {"id": 572}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 391}, "invitee": {"id": 33}, "role": "worker", "organization": {"id": 500}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 386}, "invitee": {"id": 37}, "role": "owner", "organization": {"id": 130}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 333}, "invitee": {"id": 55}, "role": "maintainer", "organization": {"id": 185}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 339}, "invitee": {"id": 75}, "role": "supervisor", "organization": {"id": 107}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 311}, "invitee": {"id": 57}, "role": "worker", "organization": {"id": 165}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 362}, "invitee": {"id": 37}, "role": "owner", "organization": {"id": 582}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 333}, "invitee": {"id": 65}, "role": "maintainer", "organization": {"id": 511}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 346}, "invitee": {"id": 38}, "role": "supervisor", "organization": {"id": 568}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 338}, "invitee": {"id": 66}, "role": "worker", "organization": {"id": 591}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 387}, "invitee": {"id": 92}, "role": "owner", "organization": {"id": 191}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 323}, "invitee": {"id": 12}, "role": "maintainer", "organization": {"id": 184}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 370}, "invitee": {"id": 56}, "role": "supervisor", "organization": {"id": 155}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 355}, "invitee": {"id": 54}, "role": "worker", "organization": {"id": 196}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 307}, "invitee": {"id": 15}, "role": "owner", "organization": {"id": 521}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 303}, "invitee": {"id": 44}, "role": "maintainer", "organization": {"id": 538}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 348}, "invitee": {"id": 34}, "role": "supervisor", "organization": {"id": 581}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 364}, "invitee": {"id": 65}, "role": "worker", "organization": {"id": 595}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_WORKER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 326}, "invitee": {"id": 59}, "role": "owner", "organization": {"id": 173}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 388}, "invitee": {"id": 64}, "role": "maintainer", "organization": {"id": 134}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 350}, "invitee": {"id": 62}, "role": "supervisor", "organization": {"id": 183}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_WORKER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 319}, "invitee": {"id": 70}, "role": "worker", "organization": {"id": 182}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"owner": {"id": 342}, "invitee": {"id": 45}, "role": "owner", "organization": {"id": 516}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"owner": {"id": 317}, "invitee": {"id": 65}, "role": "maintainer", "organization": {"id": 510}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"owner": {"id": 306}, "invitee": {"id": 57}, "role": "supervisor", "organization": {"id": 512}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"owner": {"id": 348}, "invitee": {"id": 51}, "role": "worker", "organization": {"id": 583}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"owner": {"id": 331}, "invitee": {"id": 85}, "role": "owner", "organization": {"id": 182}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"owner": {"id": 396}, "invitee": {"id": 70}, "role": "maintainer", "organization": {"id": 181}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"owner": {"id": 376}, "invitee": {"id": 7}, "role": "supervisor", "organization": {"id": 185}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"owner": {"id": 350}, "invitee": {"id": 86}, "role": "worker", "organization": {"id": 176}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 338}, "invitee": {"id": 8}, "role": "owner", "organization": {"id": 549}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 397}, "invitee": {"id": 68}, "role": "maintainer", "organization": {"id": 585}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 354}, "invitee": {"id": 98}, "role": "supervisor", "organization": {"id": 526}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 391}, "invitee": {"id": 79}, "role": "worker", "organization": {"id": 577}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_OWNER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 321}, "invitee": {"id": 16}, "role": "owner", "organization": {"id": 189}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 326}, "invitee": {"id": 52}, "role": "maintainer", "organization": {"id": 184}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 368}, "invitee": {"id": 37}, "role": "supervisor", "organization": {"id": 135}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 336}, "invitee": {"id": 46}, "role": "worker", "organization": {"id": 130}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 300}, "invitee": {"id": 96}, "role": "owner", "organization": {"id": 542}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 358}, "invitee": {"id": 6}, "role": "maintainer", "organization": {"id": 560}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 316}, "invitee": {"id": 65}, "role": "supervisor", "organization": {"id": 562}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 386}, "invitee": {"id": 76}, "role": "worker", "organization": {"id": 505}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 316}, "invitee": {"id": 52}, "role": "owner", "organization": {"id": 155}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 320}, "invitee": {"id": 35}, "role": "maintainer", "organization": {"id": 105}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 300}, "invitee": {"id": 81}, "role": "supervisor", "organization": {"id": 115}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 334}, "invitee": {"id": 15}, "role": "worker", "organization": {"id": 127}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 327}, "invitee": {"id": 92}, "role": "owner", "organization": {"id": 571}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 388}, "invitee": {"id": 96}, "role": "maintainer", "organization": {"id": 551}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 308}, "invitee": {"id": 70}, "role": "supervisor", "organization": {"id": 572}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 391}, "invitee": {"id": 17}, "role": "worker", "organization": {"id": 592}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 354}, "invitee": {"id": 22}, "role": "owner", "organization": {"id": 194}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 350}, "invitee": {"id": 98}, "role": "maintainer", "organization": {"id": 190}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 300}, "invitee": {"id": 42}, "role": "supervisor", "organization": {"id": 152}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 319}, "invitee": {"id": 82}, "role": "worker", "organization": {"id": 148}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 309}, "invitee": {"id": 28}, "role": "owner", "organization": {"id": 546}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 376}, "invitee": {"id": 94}, "role": "maintainer", "organization": {"id": 536}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 360}, "invitee": {"id": 49}, "role": "supervisor", "organization": {"id": 507}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 334}, "invitee": {"id": 42}, "role": "worker", "organization": {"id": 502}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_WORKER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 326}, "invitee": {"id": 9}, "role": "owner", "organization": {"id": 102}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 372}, "invitee": {"id": 25}, "role": "maintainer", "organization": {"id": 131}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 392}, "invitee": {"id": 62}, "role": "supervisor", "organization": {"id": 131}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_WORKER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 339}, "invitee": {"id": 9}, "role": "worker", "organization": {"id": 189}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"owner": {"id": 322}, "invitee": {"id": 99}, "role": "owner", "organization": {"id": 544}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"owner": {"id": 304}, "invitee": {"id": 19}, "role": "maintainer", "organization": {"id": 578}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"owner": {"id": 320}, "invitee": {"id": 3}, "role": "supervisor", "organization": {"id": 567}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"owner": {"id": 366}, "invitee": {"id": 88}, "role": "worker", "organization": {"id": 591}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"owner": {"id": 363}, "invitee": {"id": 58}, "role": "owner", "organization": {"id": 128}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"owner": {"id": 335}, "invitee": {"id": 40}, "role": "maintainer", "organization": {"id": 180}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"owner": {"id": 375}, "invitee": {"id": 74}, "role": "supervisor", "organization": {"id": 132}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"owner": {"id": 328}, "invitee": {"id": 25}, "role": "worker", "organization": {"id": 194}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 342}, "invitee": {"id": 39}, "role": "owner", "organization": {"id": 510}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 375}, "invitee": {"id": 27}, "role": "maintainer", "organization": {"id": 542}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 341}, "invitee": {"id": 81}, "role": "supervisor", "organization": {"id": 531}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 307}, "invitee": {"id": 45}, "role": "worker", "organization": {"id": 539}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_OWNER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 313}, "invitee": {"id": 24}, "role": "owner", "organization": {"id": 122}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 341}, "invitee": {"id": 10}, "role": "maintainer", "organization": {"id": 157}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 335}, "invitee": {"id": 61}, "role": "supervisor", "organization": {"id": 192}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 337}, "invitee": {"id": 73}, "role": "worker", "organization": {"id": 184}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 337}, "invitee": {"id": 29}, "role": "owner", "organization": {"id": 521}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 371}, "invitee": {"id": 85}, "role": "maintainer", "organization": {"id": 597}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 323}, "invitee": {"id": 82}, "role": "supervisor", "organization": {"id": 562}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 339}, "invitee": {"id": 92}, "role": "worker", "organization": {"id": 505}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 336}, "invitee": {"id": 14}, "role": "owner", "organization": {"id": 188}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 308}, "invitee": {"id": 79}, "role": "maintainer", "organization": {"id": 119}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 316}, "invitee": {"id": 51}, "role": "supervisor", "organization": {"id": 127}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 359}, "invitee": {"id": 52}, "role": "worker", "organization": {"id": 109}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 316}, "invitee": {"id": 2}, "role": "owner", "organization": {"id": 550}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 323}, "invitee": {"id": 39}, "role": "maintainer", "organization": {"id": 544}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 387}, "invitee": {"id": 53}, "role": "supervisor", "organization": {"id": 538}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 318}, "invitee": {"id": 18}, "role": "worker", "organization": {"id": 565}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 361}, "invitee": {"id": 13}, "role": "owner", "organization": {"id": 132}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 377}, "invitee": {"id": 30}, "role": "maintainer", "organization": {"id": 117}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 321}, "invitee": {"id": 13}, "role": "supervisor", "organization": {"id": 132}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 351}, "invitee": {"id": 70}, "role": "worker", "organization": {"id": 113}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 395}, "invitee": {"id": 99}, "role": "owner", "organization": {"id": 545}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 311}, "invitee": {"id": 10}, "role": "maintainer", "organization": {"id": 598}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 300}, "invitee": {"id": 81}, "role": "supervisor", "organization": {"id": 507}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 357}, "invitee": {"id": 44}, "role": "worker", "organization": {"id": 550}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_WORKER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 368}, "invitee": {"id": 72}, "role": "owner", "organization": {"id": 138}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 385}, "invitee": {"id": 85}, "role": "maintainer", "organization": {"id": 110}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 302}, "invitee": {"id": 42}, "role": "supervisor", "organization": {"id": 154}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_WORKER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 361}, "invitee": {"id": 89}, "role": "worker", "organization": {"id": 146}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"owner": {"id": 334}, "invitee": {"id": 94}, "role": "owner", "organization": {"id": 579}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"owner": {"id": 312}, "invitee": {"id": 42}, "role": "maintainer", "organization": {"id": 543}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"owner": {"id": 374}, "invitee": {"id": 22}, "role": "supervisor", "organization": {"id": 500}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"owner": {"id": 305}, "invitee": {"id": 13}, "role": "worker", "organization": {"id": 562}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"owner": {"id": 398}, "invitee": {"id": 33}, "role": "owner", "organization": {"id": 106}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"owner": {"id": 314}, "invitee": {"id": 65}, "role": "maintainer", "organization": {"id": 137}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"owner": {"id": 396}, "invitee": {"id": 28}, "role": "supervisor", "organization": {"id": 155}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"owner": {"id": 337}, "invitee": {"id": 31}, "role": "worker", "organization": {"id": 167}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 349}, "invitee": {"id": 401}, "role": "owner", "organization": {"id": 573}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 379}, "invitee": {"id": 405}, "role": "maintainer", "organization": {"id": 584}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 360}, "invitee": {"id": 425}, "role": "supervisor", "organization": {"id": 588}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 304}, "invitee": {"id": 401}, "role": "worker", "organization": {"id": 574}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 386}, "invitee": {"id": 417}, "role": "owner", "organization": {"id": 170}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 366}, "invitee": {"id": 437}, "role": "maintainer", "organization": {"id": 156}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 344}, "invitee": {"id": 419}, "role": "supervisor", "organization": {"id": 181}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 372}, "invitee": {"id": 489}, "role": "worker", "organization": {"id": 124}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 335}, "invitee": {"id": 433}, "role": "owner", "organization": {"id": 581}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 379}, "invitee": {"id": 409}, "role": "maintainer", "organization": {"id": 570}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 323}, "invitee": {"id": 459}, "role": "supervisor", "organization": {"id": 576}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 310}, "invitee": {"id": 411}, "role": "worker", "organization": {"id": 525}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 341}, "invitee": {"id": 426}, "role": "owner", "organization": {"id": 164}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 383}, "invitee": {"id": 426}, "role": "maintainer", "organization": {"id": 174}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 363}, "invitee": {"id": 400}, "role": "supervisor", "organization": {"id": 189}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 378}, "invitee": {"id": 403}, "role": "worker", "organization": {"id": 160}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 349}, "invitee": {"id": 446}, "role": "owner", "organization": {"id": 570}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 301}, "invitee": {"id": 437}, "role": "maintainer", "organization": {"id": 534}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 318}, "invitee": {"id": 475}, "role": "supervisor", "organization": {"id": 507}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 395}, "invitee": {"id": 422}, "role": "worker", "organization": {"id": 567}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 362}, "invitee": {"id": 400}, "role": "owner", "organization": {"id": 175}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 318}, "invitee": {"id": 487}, "role": "maintainer", "organization": {"id": 108}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 373}, "invitee": {"id": 422}, "role": "supervisor", "organization": {"id": 131}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 350}, "invitee": {"id": 438}, "role": "worker", "organization": {"id": 174}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 312}, "invitee": {"id": 406}, "role": "owner", "organization": {"id": 537}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 315}, "invitee": {"id": 465}, "role": "maintainer", "organization": {"id": 530}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 391}, "invitee": {"id": 482}, "role": "supervisor", "organization": {"id": 589}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 338}, "invitee": {"id": 428}, "role": "worker", "organization": {"id": 558}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 346}, "invitee": {"id": 440}, "role": "owner", "organization": {"id": 144}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 386}, "invitee": {"id": 484}, "role": "maintainer", "organization": {"id": 188}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 397}, "invitee": {"id": 464}, "role": "supervisor", "organization": {"id": 169}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 337}, "invitee": {"id": 426}, "role": "worker", "organization": {"id": 124}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"owner": {"id": 312}, "invitee": {"id": 499}, "role": "owner", "organization": {"id": 530}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"owner": {"id": 343}, "invitee": {"id": 426}, "role": "maintainer", "organization": {"id": 509}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"owner": {"id": 320}, "invitee": {"id": 438}, "role": "supervisor", "organization": {"id": 580}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"owner": {"id": 386}, "invitee": {"id": 493}, "role": "worker", "organization": {"id": 506}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"owner": {"id": 336}, "invitee": {"id": 404}, "role": "owner", "organization": {"id": 152}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"owner": {"id": 359}, "invitee": {"id": 472}, "role": "maintainer", "organization": {"id": 167}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"owner": {"id": 394}, "invitee": {"id": 446}, "role": "supervisor", "organization": {"id": 147}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"owner": {"id": 373}, "invitee": {"id": 495}, "role": "worker", "organization": {"id": 158}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 381}, "invitee": {"id": 442}, "role": "owner", "organization": {"id": 575}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 369}, "invitee": {"id": 423}, "role": "maintainer", "organization": {"id": 572}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 308}, "invitee": {"id": 446}, "role": "supervisor", "organization": {"id": 586}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 376}, "invitee": {"id": 491}, "role": "worker", "organization": {"id": 553}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 391}, "invitee": {"id": 461}, "role": "owner", "organization": {"id": 170}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 303}, "invitee": {"id": 430}, "role": "maintainer", "organization": {"id": 166}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 354}, "invitee": {"id": 405}, "role": "supervisor", "organization": {"id": 155}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 328}, "invitee": {"id": 489}, "role": "worker", "organization": {"id": 159}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 313}, "invitee": {"id": 466}, "role": "owner", "organization": {"id": 554}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 385}, "invitee": {"id": 469}, "role": "maintainer", "organization": {"id": 537}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 350}, "invitee": {"id": 403}, "role": "supervisor", "organization": {"id": 571}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 316}, "invitee": {"id": 448}, "role": "worker", "organization": {"id": 536}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 359}, "invitee": {"id": 441}, "role": "owner", "organization": {"id": 191}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 332}, "invitee": {"id": 484}, "role": "maintainer", "organization": {"id": 137}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 328}, "invitee": {"id": 425}, "role": "supervisor", "organization": {"id": 110}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 304}, "invitee": {"id": 406}, "role": "worker", "organization": {"id": 141}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 333}, "invitee": {"id": 400}, "role": "owner", "organization": {"id": 568}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 352}, "invitee": {"id": 439}, "role": "maintainer", "organization": {"id": 537}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 387}, "invitee": {"id": 421}, "role": "supervisor", "organization": {"id": 518}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 361}, "invitee": {"id": 402}, "role": "worker", "organization": {"id": 539}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 352}, "invitee": {"id": 472}, "role": "owner", "organization": {"id": 111}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 335}, "invitee": {"id": 482}, "role": "maintainer", "organization": {"id": 182}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 396}, "invitee": {"id": 450}, "role": "supervisor", "organization": {"id": 138}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 345}, "invitee": {"id": 492}, "role": "worker", "organization": {"id": 176}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 361}, "invitee": {"id": 459}, "role": "owner", "organization": {"id": 529}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 312}, "invitee": {"id": 420}, "role": "maintainer", "organization": {"id": 545}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 307}, "invitee": {"id": 444}, "role": "supervisor", "organization": {"id": 536}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 304}, "invitee": {"id": 470}, "role": "worker", "organization": {"id": 510}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 329}, "invitee": {"id": 435}, "role": "owner", "organization": {"id": 108}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 350}, "invitee": {"id": 475}, "role": "maintainer", "organization": {"id": 129}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 322}, "invitee": {"id": 489}, "role": "supervisor", "organization": {"id": 157}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 318}, "invitee": {"id": 486}, "role": "worker", "organization": {"id": 139}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"owner": {"id": 394}, "invitee": {"id": 400}, "role": "owner", "organization": {"id": 539}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"owner": {"id": 374}, "invitee": {"id": 413}, "role": "maintainer", "organization": {"id": 523}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"owner": {"id": 375}, "invitee": {"id": 473}, "role": "supervisor", "organization": {"id": 556}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"owner": {"id": 326}, "invitee": {"id": 468}, "role": "worker", "organization": {"id": 593}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"owner": {"id": 318}, "invitee": {"id": 480}, "role": "owner", "organization": {"id": 108}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"owner": {"id": 391}, "invitee": {"id": 499}, "role": "maintainer", "organization": {"id": 118}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"owner": {"id": 334}, "invitee": {"id": 417}, "role": "supervisor", "organization": {"id": 110}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"owner": {"id": 397}, "invitee": {"id": 422}, "role": "worker", "organization": {"id": 189}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 320}, "invitee": {"id": 484}, "role": "owner", "organization": {"id": 500}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 343}, "invitee": {"id": 420}, "role": "maintainer", "organization": {"id": 539}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 369}, "invitee": {"id": 419}, "role": "supervisor", "organization": {"id": 591}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 392}, "invitee": {"id": 413}, "role": "worker", "organization": {"id": 577}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 350}, "invitee": {"id": 436}, "role": "owner", "organization": {"id": 131}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 365}, "invitee": {"id": 473}, "role": "maintainer", "organization": {"id": 198}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 382}, "invitee": {"id": 444}, "role": "supervisor", "organization": {"id": 178}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 346}, "invitee": {"id": 477}, "role": "worker", "organization": {"id": 169}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 307}, "invitee": {"id": 457}, "role": "owner", "organization": {"id": 556}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 375}, "invitee": {"id": 456}, "role": "maintainer", "organization": {"id": 511}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 318}, "invitee": {"id": 490}, "role": "supervisor", "organization": {"id": 599}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 303}, "invitee": {"id": 426}, "role": "worker", "organization": {"id": 541}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 357}, "invitee": {"id": 427}, "role": "owner", "organization": {"id": 183}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 354}, "invitee": {"id": 474}, "role": "maintainer", "organization": {"id": 199}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 377}, "invitee": {"id": 477}, "role": "supervisor", "organization": {"id": 190}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 390}, "invitee": {"id": 415}, "role": "worker", "organization": {"id": 101}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 396}, "invitee": {"id": 461}, "role": "owner", "organization": {"id": 587}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 388}, "invitee": {"id": 429}, "role": "maintainer", "organization": {"id": 517}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 366}, "invitee": {"id": 402}, "role": "supervisor", "organization": {"id": 551}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 367}, "invitee": {"id": 487}, "role": "worker", "organization": {"id": 564}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 322}, "invitee": {"id": 431}, "role": "owner", "organization": {"id": 100}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 335}, "invitee": {"id": 495}, "role": "maintainer", "organization": {"id": 173}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 323}, "invitee": {"id": 425}, "role": "supervisor", "organization": {"id": 147}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 375}, "invitee": {"id": 471}, "role": "worker", "organization": {"id": 171}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 367}, "invitee": {"id": 466}, "role": "owner", "organization": {"id": 521}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 353}, "invitee": {"id": 480}, "role": "maintainer", "organization": {"id": 535}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 352}, "invitee": {"id": 482}, "role": "supervisor", "organization": {"id": 549}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 316}, "invitee": {"id": 434}, "role": "worker", "organization": {"id": 562}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 353}, "invitee": {"id": 430}, "role": "owner", "organization": {"id": 107}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 395}, "invitee": {"id": 462}, "role": "maintainer", "organization": {"id": 118}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 396}, "invitee": {"id": 498}, "role": "supervisor", "organization": {"id": 174}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 317}, "invitee": {"id": 483}, "role": "worker", "organization": {"id": 165}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"owner": {"id": 394}, "invitee": {"id": 480}, "role": "owner", "organization": {"id": 560}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"owner": {"id": 313}, "invitee": {"id": 463}, "role": "maintainer", "organization": {"id": 517}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"owner": {"id": 367}, "invitee": {"id": 434}, "role": "supervisor", "organization": {"id": 517}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"owner": {"id": 382}, "invitee": {"id": 444}, "role": "worker", "organization": {"id": 568}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"owner": {"id": 328}, "invitee": {"id": 400}, "role": "owner", "organization": {"id": 197}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"owner": {"id": 334}, "invitee": {"id": 402}, "role": "maintainer", "organization": {"id": 181}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"owner": {"id": 376}, "invitee": {"id": 428}, "role": "supervisor", "organization": {"id": 170}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"owner": {"id": 357}, "invitee": {"id": 439}, "role": "worker", "organization": {"id": 131}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 348}, "invitee": {"id": 408}, "role": "owner", "organization": {"id": 527}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 395}, "invitee": {"id": 416}, "role": "maintainer", "organization": {"id": 568}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 394}, "invitee": {"id": 431}, "role": "supervisor", "organization": {"id": 547}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 385}, "invitee": {"id": 475}, "role": "worker", "organization": {"id": 564}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 330}, "invitee": {"id": 404}, "role": "owner", "organization": {"id": 178}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 360}, "invitee": {"id": 401}, "role": "maintainer", "organization": {"id": 158}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 303}, "invitee": {"id": 438}, "role": "supervisor", "organization": {"id": 154}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 362}, "invitee": {"id": 481}, "role": "worker", "organization": {"id": 197}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 373}, "invitee": {"id": 445}, "role": "owner", "organization": {"id": 579}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 337}, "invitee": {"id": 442}, "role": "maintainer", "organization": {"id": 561}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 356}, "invitee": {"id": 474}, "role": "supervisor", "organization": {"id": 599}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 304}, "invitee": {"id": 429}, "role": "worker", "organization": {"id": 582}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 390}, "invitee": {"id": 464}, "role": "owner", "organization": {"id": 125}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 330}, "invitee": {"id": 470}, "role": "maintainer", "organization": {"id": 112}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 378}, "invitee": {"id": 493}, "role": "supervisor", "organization": {"id": 150}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 384}, "invitee": {"id": 400}, "role": "worker", "organization": {"id": 132}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 359}, "invitee": {"id": 486}, "role": "owner", "organization": {"id": 547}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 337}, "invitee": {"id": 476}, "role": "maintainer", "organization": {"id": 594}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 373}, "invitee": {"id": 432}, "role": "supervisor", "organization": {"id": 564}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 307}, "invitee": {"id": 438}, "role": "worker", "organization": {"id": 526}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 349}, "invitee": {"id": 466}, "role": "owner", "organization": {"id": 113}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 302}, "invitee": {"id": 482}, "role": "maintainer", "organization": {"id": 149}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 300}, "invitee": {"id": 475}, "role": "supervisor", "organization": {"id": 172}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 305}, "invitee": {"id": 442}, "role": "worker", "organization": {"id": 180}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 329}, "invitee": {"id": 459}, "role": "owner", "organization": {"id": 555}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 311}, "invitee": {"id": 431}, "role": "maintainer", "organization": {"id": 541}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 370}, "invitee": {"id": 464}, "role": "supervisor", "organization": {"id": 519}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 398}, "invitee": {"id": 499}, "role": "worker", "organization": {"id": 575}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 395}, "invitee": {"id": 425}, "role": "owner", "organization": {"id": 109}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 398}, "invitee": {"id": 406}, "role": "maintainer", "organization": {"id": 118}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 333}, "invitee": {"id": 481}, "role": "supervisor", "organization": {"id": 199}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 397}, "invitee": {"id": 476}, "role": "worker", "organization": {"id": 120}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"owner": {"id": 323}, "invitee": {"id": 474}, "role": "owner", "organization": {"id": 543}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"owner": {"id": 335}, "invitee": {"id": 461}, "role": "maintainer", "organization": {"id": 550}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"owner": {"id": 339}, "invitee": {"id": 464}, "role": "supervisor", "organization": {"id": 552}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"owner": {"id": 308}, "invitee": {"id": 403}, "role": "worker", "organization": {"id": 592}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"owner": {"id": 334}, "invitee": {"id": 477}, "role": "owner", "organization": {"id": 139}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"owner": {"id": 348}, "invitee": {"id": 464}, "role": "maintainer", "organization": {"id": 104}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"owner": {"id": 304}, "invitee": {"id": 443}, "role": "supervisor", "organization": {"id": 121}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"owner": {"id": 312}, "invitee": {"id": 441}, "role": "worker", "organization": {"id": 146}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 344}, "invitee": {"id": 415}, "role": "owner", "organization": {"id": 554}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 362}, "invitee": {"id": 450}, "role": "maintainer", "organization": {"id": 535}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 350}, "invitee": {"id": 490}, "role": "supervisor", "organization": {"id": 566}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 358}, "invitee": {"id": 425}, "role": "worker", "organization": {"id": 556}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 303}, "invitee": {"id": 472}, "role": "owner", "organization": {"id": 139}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 343}, "invitee": {"id": 407}, "role": "maintainer", "organization": {"id": 131}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 315}, "invitee": {"id": 400}, "role": "supervisor", "organization": {"id": 188}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 395}, "invitee": {"id": 466}, "role": "worker", "organization": {"id": 129}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 352}, "invitee": {"id": 401}, "role": "owner", "organization": {"id": 535}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 329}, "invitee": {"id": 478}, "role": "maintainer", "organization": {"id": 591}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 371}, "invitee": {"id": 422}, "role": "supervisor", "organization": {"id": 504}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 338}, "invitee": {"id": 460}, "role": "worker", "organization": {"id": 559}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 365}, "invitee": {"id": 460}, "role": "owner", "organization": {"id": 126}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 358}, "invitee": {"id": 410}, "role": "maintainer", "organization": {"id": 144}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 388}, "invitee": {"id": 436}, "role": "supervisor", "organization": {"id": 165}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 380}, "invitee": {"id": 488}, "role": "worker", "organization": {"id": 115}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 343}, "invitee": {"id": 477}, "role": "owner", "organization": {"id": 569}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 339}, "invitee": {"id": 449}, "role": "maintainer", "organization": {"id": 577}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 335}, "invitee": {"id": 492}, "role": "supervisor", "organization": {"id": 543}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 309}, "invitee": {"id": 474}, "role": "worker", "organization": {"id": 555}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 352}, "invitee": {"id": 480}, "role": "owner", "organization": {"id": 158}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 384}, "invitee": {"id": 441}, "role": "maintainer", "organization": {"id": 156}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 312}, "invitee": {"id": 481}, "role": "supervisor", "organization": {"id": 195}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 321}, "invitee": {"id": 416}, "role": "worker", "organization": {"id": 141}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 359}, "invitee": {"id": 427}, "role": "owner", "organization": {"id": 584}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 307}, "invitee": {"id": 411}, "role": "maintainer", "organization": {"id": 570}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 360}, "invitee": {"id": 447}, "role": "supervisor", "organization": {"id": 533}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 360}, "invitee": {"id": 439}, "role": "worker", "organization": {"id": 529}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 315}, "invitee": {"id": 424}, "role": "owner", "organization": {"id": 158}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 327}, "invitee": {"id": 487}, "role": "maintainer", "organization": {"id": 148}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 332}, "invitee": {"id": 457}, "role": "supervisor", "organization": {"id": 178}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 328}, "invitee": {"id": 441}, "role": "worker", "organization": {"id": 181}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"owner": {"id": 384}, "invitee": {"id": 410}, "role": "owner", "organization": {"id": 514}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"owner": {"id": 337}, "invitee": {"id": 408}, "role": "maintainer", "organization": {"id": 516}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"owner": {"id": 320}, "invitee": {"id": 472}, "role": "supervisor", "organization": {"id": 591}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"owner": {"id": 383}, "invitee": {"id": 459}, "role": "worker", "organization": {"id": 570}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"owner": {"id": 335}, "invitee": {"id": 488}, "role": "owner", "organization": {"id": 102}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"owner": {"id": 399}, "invitee": {"id": 492}, "role": "maintainer", "organization": {"id": 138}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"owner": {"id": 343}, "invitee": {"id": 420}, "role": "supervisor", "organization": {"id": 190}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"owner": {"id": 304}, "invitee": {"id": 468}, "role": "worker", "organization": {"id": 116}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 14}, "invitee": {"id": 414}, "role": "owner", "organization": {"id": 572}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 58}, "invitee": {"id": 408}, "role": "maintainer", "organization": {"id": 596}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 65}, "invitee": {"id": 424}, "role": "supervisor", "organization": {"id": 516}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 74}, "invitee": {"id": 452}, "role": "worker", "organization": {"id": 541}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 89}, "invitee": {"id": 489}, "role": "owner", "organization": {"id": 551}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 64}, "invitee": {"id": 417}, "role": "maintainer", "organization": {"id": 594}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 44}, "invitee": {"id": 402}, "role": "supervisor", "organization": {"id": 520}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 41}, "invitee": {"id": 418}, "role": "worker", "organization": {"id": 506}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 8}, "invitee": {"id": 420}, "role": "owner", "organization": {"id": 575}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 33}, "invitee": {"id": 443}, "role": "maintainer", "organization": {"id": 551}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 86}, "invitee": {"id": 453}, "role": "supervisor", "organization": {"id": 586}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 48}, "invitee": {"id": 447}, "role": "worker", "organization": {"id": 551}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 18}, "invitee": {"id": 461}, "role": "owner", "organization": {"id": 525}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 83}, "invitee": {"id": 480}, "role": "maintainer", "organization": {"id": 511}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 84}, "invitee": {"id": 474}, "role": "supervisor", "organization": {"id": 549}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 37}, "invitee": {"id": 432}, "role": "worker", "organization": {"id": 528}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 89}, "invitee": {"id": 437}, "role": "owner", "organization": {"id": 522}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 67}, "invitee": {"id": 436}, "role": "maintainer", "organization": {"id": 536}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 51}, "invitee": {"id": 473}, "role": "supervisor", "organization": {"id": 541}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 16}, "invitee": {"id": 488}, "role": "worker", "organization": {"id": 593}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 321}, "invitee": {"id": 44}, "role": "owner", "organization": {"id": 516}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 398}, "invitee": {"id": 28}, "role": "maintainer", "organization": {"id": 535}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 304}, "invitee": {"id": 92}, "role": "supervisor", "organization": {"id": 553}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 383}, "invitee": {"id": 41}, "role": "worker", "organization": {"id": 507}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 356}, "invitee": {"id": 36}, "role": "owner", "organization": {"id": 538}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 319}, "invitee": {"id": 29}, "role": "maintainer", "organization": {"id": 522}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 317}, "invitee": {"id": 84}, "role": "supervisor", "organization": {"id": 545}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 371}, "invitee": {"id": 7}, "role": "worker", "organization": {"id": 521}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 361}, "invitee": {"id": 11}, "role": "owner", "organization": {"id": 501}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 304}, "invitee": {"id": 77}, "role": "maintainer", "organization": {"id": 507}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 359}, "invitee": {"id": 24}, "role": "supervisor", "organization": {"id": 534}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 332}, "invitee": {"id": 28}, "role": "worker", "organization": {"id": 572}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 306}, "invitee": {"id": 66}, "role": "owner", "organization": {"id": 554}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 337}, "invitee": {"id": 73}, "role": "maintainer", "organization": {"id": 515}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 315}, "invitee": {"id": 37}, "role": "supervisor", "organization": {"id": 553}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 350}, "invitee": {"id": 35}, "role": "worker", "organization": {"id": 544}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 326}, "invitee": {"id": 12}, "role": "owner", "organization": {"id": 524}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 365}, "invitee": {"id": 51}, "role": "maintainer", "organization": {"id": 544}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 325}, "invitee": {"id": 7}, "role": "supervisor", "organization": {"id": 518}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 333}, "invitee": {"id": 6}, "role": "worker", "organization": {"id": 515}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 361}, "invitee": {"id": 410}, "role": "owner", "organization": {"id": 554}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 333}, "invitee": {"id": 429}, "role": "maintainer", "organization": {"id": 511}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 346}, "invitee": {"id": 473}, "role": "supervisor", "organization": {"id": 548}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 399}, "invitee": {"id": 483}, "role": "worker", "organization": {"id": 555}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 355}, "invitee": {"id": 456}, "role": "owner", "organization": {"id": 579}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 376}, "invitee": {"id": 473}, "role": "maintainer", "organization": {"id": 560}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 319}, "invitee": {"id": 416}, "role": "supervisor", "organization": {"id": 532}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 397}, "invitee": {"id": 458}, "role": "worker", "organization": {"id": 510}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 362}, "invitee": {"id": 419}, "role": "owner", "organization": {"id": 502}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 367}, "invitee": {"id": 417}, "role": "maintainer", "organization": {"id": 593}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 309}, "invitee": {"id": 453}, "role": "supervisor", "organization": {"id": 566}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 351}, "invitee": {"id": 456}, "role": "worker", "organization": {"id": 542}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 345}, "invitee": {"id": 467}, "role": "owner", "organization": {"id": 572}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 369}, "invitee": {"id": 468}, "role": "maintainer", "organization": {"id": 539}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 322}, "invitee": {"id": 408}, "role": "supervisor", "organization": {"id": 581}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 322}, "invitee": {"id": 451}, "role": "worker", "organization": {"id": 511}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 387}, "invitee": {"id": 404}, "role": "owner", "organization": {"id": 595}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 351}, "invitee": {"id": 420}, "role": "maintainer", "organization": {"id": 509}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 50, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 399}, "invitee": {"id": 494}, "role": "supervisor", "organization": {"id": 500}}} -} - -test_scope_ACCEPT_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 373}, "invitee": {"id": 413}, "role": "worker", "organization": {"id": 509}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 27}, "invitee": {"id": 494}, "role": "owner", "organization": {"id": 574}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 85}, "invitee": {"id": 459}, "role": "maintainer", "organization": {"id": 500}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 13}, "invitee": {"id": 433}, "role": "supervisor", "organization": {"id": 514}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 10}, "invitee": {"id": 469}, "role": "worker", "organization": {"id": 508}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 40}, "invitee": {"id": 429}, "role": "owner", "organization": {"id": 138}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 34}, "invitee": {"id": 452}, "role": "maintainer", "organization": {"id": 197}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 87}, "invitee": {"id": 450}, "role": "supervisor", "organization": {"id": 153}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 16}, "invitee": {"id": 460}, "role": "worker", "organization": {"id": 152}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 32}, "invitee": {"id": 410}, "role": "owner", "organization": {"id": 525}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 73}, "invitee": {"id": 478}, "role": "maintainer", "organization": {"id": 538}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 54}, "invitee": {"id": 482}, "role": "supervisor", "organization": {"id": 550}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 64}, "invitee": {"id": 415}, "role": "worker", "organization": {"id": 592}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 61}, "invitee": {"id": 421}, "role": "owner", "organization": {"id": 120}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 62}, "invitee": {"id": 489}, "role": "maintainer", "organization": {"id": 102}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 49}, "invitee": {"id": 464}, "role": "supervisor", "organization": {"id": 156}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 91}, "invitee": {"id": 439}, "role": "worker", "organization": {"id": 175}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 65}, "invitee": {"id": 490}, "role": "owner", "organization": {"id": 504}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 91}, "invitee": {"id": 461}, "role": "maintainer", "organization": {"id": 518}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 8}, "invitee": {"id": 483}, "role": "supervisor", "organization": {"id": 562}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 45}, "invitee": {"id": 468}, "role": "worker", "organization": {"id": 577}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 13}, "invitee": {"id": 419}, "role": "owner", "organization": {"id": 196}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 66}, "invitee": {"id": 485}, "role": "maintainer", "organization": {"id": 115}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 99}, "invitee": {"id": 436}, "role": "supervisor", "organization": {"id": 174}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 39}, "invitee": {"id": 473}, "role": "worker", "organization": {"id": 164}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 92}, "invitee": {"id": 467}, "role": "owner", "organization": {"id": 530}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 90}, "invitee": {"id": 472}, "role": "maintainer", "organization": {"id": 539}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 81}, "invitee": {"id": 432}, "role": "supervisor", "organization": {"id": 596}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 76}, "invitee": {"id": 423}, "role": "worker", "organization": {"id": 512}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 33}, "invitee": {"id": 480}, "role": "owner", "organization": {"id": 176}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 70}, "invitee": {"id": 454}, "role": "maintainer", "organization": {"id": 146}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 33}, "invitee": {"id": 472}, "role": "supervisor", "organization": {"id": 118}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 17}, "invitee": {"id": 402}, "role": "worker", "organization": {"id": 105}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"owner": {"id": 60}, "invitee": {"id": 481}, "role": "owner", "organization": {"id": 594}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"owner": {"id": 87}, "invitee": {"id": 454}, "role": "maintainer", "organization": {"id": 551}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"owner": {"id": 27}, "invitee": {"id": 457}, "role": "supervisor", "organization": {"id": 513}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"owner": {"id": 97}, "invitee": {"id": 418}, "role": "worker", "organization": {"id": 588}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"owner": {"id": 61}, "invitee": {"id": 457}, "role": "owner", "organization": {"id": 192}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"owner": {"id": 51}, "invitee": {"id": 434}, "role": "maintainer", "organization": {"id": 170}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"owner": {"id": 66}, "invitee": {"id": 447}, "role": "supervisor", "organization": {"id": 167}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"owner": {"id": 55}, "invitee": {"id": 478}, "role": "worker", "organization": {"id": 181}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 80}, "invitee": {"id": 428}, "role": "owner", "organization": {"id": 541}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 7}, "invitee": {"id": 437}, "role": "maintainer", "organization": {"id": 568}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 90}, "invitee": {"id": 401}, "role": "supervisor", "organization": {"id": 577}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 76}, "invitee": {"id": 450}, "role": "worker", "organization": {"id": 553}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 38}, "invitee": {"id": 450}, "role": "owner", "organization": {"id": 115}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 12}, "invitee": {"id": 411}, "role": "maintainer", "organization": {"id": 122}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 12}, "invitee": {"id": 400}, "role": "supervisor", "organization": {"id": 146}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 73}, "invitee": {"id": 433}, "role": "worker", "organization": {"id": 147}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 28}, "invitee": {"id": 449}, "role": "owner", "organization": {"id": 511}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 59}, "invitee": {"id": 462}, "role": "maintainer", "organization": {"id": 516}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 4}, "invitee": {"id": 449}, "role": "supervisor", "organization": {"id": 550}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 22}, "invitee": {"id": 459}, "role": "worker", "organization": {"id": 550}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 56}, "invitee": {"id": 445}, "role": "owner", "organization": {"id": 116}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 21}, "invitee": {"id": 449}, "role": "maintainer", "organization": {"id": 139}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 9}, "invitee": {"id": 493}, "role": "supervisor", "organization": {"id": 127}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 72}, "invitee": {"id": 472}, "role": "worker", "organization": {"id": 138}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 31, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 31}, "invitee": {"id": 480}, "role": "owner", "organization": {"id": 503}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 25}, "invitee": {"id": 419}, "role": "maintainer", "organization": {"id": 543}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 16}, "invitee": {"id": 438}, "role": "supervisor", "organization": {"id": 551}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 12}, "invitee": {"id": 464}, "role": "worker", "organization": {"id": 529}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 17}, "invitee": {"id": 439}, "role": "owner", "organization": {"id": 195}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 16}, "invitee": {"id": 460}, "role": "maintainer", "organization": {"id": 147}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 43}, "invitee": {"id": 443}, "role": "supervisor", "organization": {"id": 178}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 30}, "invitee": {"id": 462}, "role": "worker", "organization": {"id": 136}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 87}, "invitee": {"id": 447}, "role": "owner", "organization": {"id": 505}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 78}, "invitee": {"id": 443}, "role": "maintainer", "organization": {"id": 530}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 62}, "invitee": {"id": 463}, "role": "supervisor", "organization": {"id": 550}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 33}, "invitee": {"id": 472}, "role": "worker", "organization": {"id": 583}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 37}, "invitee": {"id": 400}, "role": "owner", "organization": {"id": 119}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 7}, "invitee": {"id": 483}, "role": "maintainer", "organization": {"id": 132}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 25}, "invitee": {"id": 435}, "role": "supervisor", "organization": {"id": 181}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 82}, "invitee": {"id": 474}, "role": "worker", "organization": {"id": 122}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"owner": {"id": 91}, "invitee": {"id": 455}, "role": "owner", "organization": {"id": 517}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"owner": {"id": 43}, "invitee": {"id": 432}, "role": "maintainer", "organization": {"id": 544}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"owner": {"id": 70}, "invitee": {"id": 451}, "role": "supervisor", "organization": {"id": 516}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"owner": {"id": 93}, "invitee": {"id": 463}, "role": "worker", "organization": {"id": 576}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"owner": {"id": 44}, "invitee": {"id": 482}, "role": "owner", "organization": {"id": 139}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"owner": {"id": 87}, "invitee": {"id": 406}, "role": "maintainer", "organization": {"id": 192}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"owner": {"id": 11}, "invitee": {"id": 436}, "role": "supervisor", "organization": {"id": 151}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"owner": {"id": 82}, "invitee": {"id": 452}, "role": "worker", "organization": {"id": 122}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 64}, "invitee": {"id": 492}, "role": "owner", "organization": {"id": 583}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 69}, "invitee": {"id": 424}, "role": "maintainer", "organization": {"id": 528}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 14}, "invitee": {"id": 450}, "role": "supervisor", "organization": {"id": 542}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 88}, "invitee": {"id": 427}, "role": "worker", "organization": {"id": 558}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 6}, "invitee": {"id": 472}, "role": "owner", "organization": {"id": 122}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 72}, "invitee": {"id": 454}, "role": "maintainer", "organization": {"id": 130}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 57}, "invitee": {"id": 497}, "role": "supervisor", "organization": {"id": 189}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 88}, "invitee": {"id": 436}, "role": "worker", "organization": {"id": 177}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 87}, "invitee": {"id": 419}, "role": "owner", "organization": {"id": 568}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 16}, "invitee": {"id": 476}, "role": "maintainer", "organization": {"id": 552}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 87}, "invitee": {"id": 445}, "role": "supervisor", "organization": {"id": 526}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 86}, "invitee": {"id": 410}, "role": "worker", "organization": {"id": 553}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 73}, "invitee": {"id": 416}, "role": "owner", "organization": {"id": 159}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 56}, "invitee": {"id": 442}, "role": "maintainer", "organization": {"id": 179}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 88}, "invitee": {"id": 427}, "role": "supervisor", "organization": {"id": 192}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 67}, "invitee": {"id": 407}, "role": "worker", "organization": {"id": 100}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 15}, "invitee": {"id": 484}, "role": "owner", "organization": {"id": 561}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 1}, "invitee": {"id": 438}, "role": "maintainer", "organization": {"id": 574}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 44}, "invitee": {"id": 431}, "role": "supervisor", "organization": {"id": 532}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 88}, "invitee": {"id": 408}, "role": "worker", "organization": {"id": 541}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 52}, "invitee": {"id": 441}, "role": "owner", "organization": {"id": 129}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 65}, "invitee": {"id": 404}, "role": "maintainer", "organization": {"id": 161}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 49}, "invitee": {"id": 495}, "role": "supervisor", "organization": {"id": 156}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 95}, "invitee": {"id": 412}, "role": "worker", "organization": {"id": 138}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 54}, "invitee": {"id": 436}, "role": "owner", "organization": {"id": 500}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 8}, "invitee": {"id": 448}, "role": "maintainer", "organization": {"id": 587}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 52}, "invitee": {"id": 431}, "role": "supervisor", "organization": {"id": 598}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 30}, "invitee": {"id": 452}, "role": "worker", "organization": {"id": 522}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 13}, "invitee": {"id": 453}, "role": "owner", "organization": {"id": 108}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 96}, "invitee": {"id": 422}, "role": "maintainer", "organization": {"id": 197}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 62}, "invitee": {"id": 427}, "role": "supervisor", "organization": {"id": 195}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 82}, "invitee": {"id": 462}, "role": "worker", "organization": {"id": 111}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"owner": {"id": 89}, "invitee": {"id": 406}, "role": "owner", "organization": {"id": 598}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"owner": {"id": 34}, "invitee": {"id": 475}, "role": "maintainer", "organization": {"id": 565}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 90, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"owner": {"id": 90}, "invitee": {"id": 409}, "role": "supervisor", "organization": {"id": 562}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"owner": {"id": 26}, "invitee": {"id": 424}, "role": "worker", "organization": {"id": 564}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"owner": {"id": 79}, "invitee": {"id": 481}, "role": "owner", "organization": {"id": 165}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"owner": {"id": 62}, "invitee": {"id": 434}, "role": "maintainer", "organization": {"id": 110}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"owner": {"id": 46}, "invitee": {"id": 496}, "role": "supervisor", "organization": {"id": 111}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"owner": {"id": 51}, "invitee": {"id": 419}, "role": "worker", "organization": {"id": 141}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 80}, "invitee": {"id": 481}, "role": "owner", "organization": {"id": 589}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 41}, "invitee": {"id": 421}, "role": "maintainer", "organization": {"id": 528}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 44}, "invitee": {"id": 457}, "role": "supervisor", "organization": {"id": 599}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 87}, "invitee": {"id": 443}, "role": "worker", "organization": {"id": 568}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 75}, "invitee": {"id": 468}, "role": "owner", "organization": {"id": 109}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 22}, "invitee": {"id": 415}, "role": "maintainer", "organization": {"id": 123}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 50}, "invitee": {"id": 405}, "role": "supervisor", "organization": {"id": 187}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 45}, "invitee": {"id": 448}, "role": "worker", "organization": {"id": 149}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 88}, "invitee": {"id": 439}, "role": "owner", "organization": {"id": 508}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 94}, "invitee": {"id": 413}, "role": "maintainer", "organization": {"id": 567}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 27}, "invitee": {"id": 434}, "role": "supervisor", "organization": {"id": 522}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 1}, "invitee": {"id": 458}, "role": "worker", "organization": {"id": 560}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 34}, "invitee": {"id": 448}, "role": "owner", "organization": {"id": 187}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 45}, "invitee": {"id": 401}, "role": "maintainer", "organization": {"id": 197}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 90}, "invitee": {"id": 407}, "role": "supervisor", "organization": {"id": 152}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 90}, "invitee": {"id": 489}, "role": "worker", "organization": {"id": 156}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 58}, "invitee": {"id": 460}, "role": "owner", "organization": {"id": 547}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 91}, "invitee": {"id": 476}, "role": "maintainer", "organization": {"id": 530}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 13}, "invitee": {"id": 430}, "role": "supervisor", "organization": {"id": 511}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 2}, "invitee": {"id": 426}, "role": "worker", "organization": {"id": 595}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 65}, "invitee": {"id": 438}, "role": "owner", "organization": {"id": 168}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 43}, "invitee": {"id": 470}, "role": "maintainer", "organization": {"id": 109}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 82}, "invitee": {"id": 450}, "role": "supervisor", "organization": {"id": 154}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 87}, "invitee": {"id": 447}, "role": "worker", "organization": {"id": 134}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 50}, "invitee": {"id": 431}, "role": "owner", "organization": {"id": 577}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 40}, "invitee": {"id": 400}, "role": "maintainer", "organization": {"id": 502}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 30}, "invitee": {"id": 425}, "role": "supervisor", "organization": {"id": 507}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 77}, "invitee": {"id": 413}, "role": "worker", "organization": {"id": 586}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 99}, "invitee": {"id": 407}, "role": "owner", "organization": {"id": 127}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 31}, "invitee": {"id": 490}, "role": "maintainer", "organization": {"id": 168}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 82}, "invitee": {"id": 480}, "role": "supervisor", "organization": {"id": 123}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 76}, "invitee": {"id": 476}, "role": "worker", "organization": {"id": 156}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"owner": {"id": 93}, "invitee": {"id": 470}, "role": "owner", "organization": {"id": 542}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"owner": {"id": 14}, "invitee": {"id": 470}, "role": "maintainer", "organization": {"id": 557}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"owner": {"id": 17}, "invitee": {"id": 414}, "role": "supervisor", "organization": {"id": 573}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"owner": {"id": 20}, "invitee": {"id": 470}, "role": "worker", "organization": {"id": 582}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"owner": {"id": 97}, "invitee": {"id": 466}, "role": "owner", "organization": {"id": 140}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"owner": {"id": 41}, "invitee": {"id": 447}, "role": "maintainer", "organization": {"id": 185}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"owner": {"id": 21}, "invitee": {"id": 419}, "role": "supervisor", "organization": {"id": 185}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"owner": {"id": 26}, "invitee": {"id": 442}, "role": "worker", "organization": {"id": 187}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 6}, "invitee": {"id": 430}, "role": "owner", "organization": {"id": 547}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 41}, "invitee": {"id": 428}, "role": "maintainer", "organization": {"id": 572}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 59}, "invitee": {"id": 437}, "role": "supervisor", "organization": {"id": 592}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 85}, "invitee": {"id": 468}, "role": "worker", "organization": {"id": 566}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 2}, "invitee": {"id": 477}, "role": "owner", "organization": {"id": 177}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 19, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 19}, "invitee": {"id": 498}, "role": "maintainer", "organization": {"id": 168}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 34}, "invitee": {"id": 471}, "role": "supervisor", "organization": {"id": 113}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 27}, "invitee": {"id": 447}, "role": "worker", "organization": {"id": 173}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 28}, "invitee": {"id": 406}, "role": "owner", "organization": {"id": 599}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 44}, "invitee": {"id": 492}, "role": "maintainer", "organization": {"id": 524}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 92}, "invitee": {"id": 495}, "role": "supervisor", "organization": {"id": 567}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 57}, "invitee": {"id": 410}, "role": "worker", "organization": {"id": 557}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 36}, "invitee": {"id": 482}, "role": "owner", "organization": {"id": 127}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 66}, "invitee": {"id": 433}, "role": "maintainer", "organization": {"id": 109}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 62}, "invitee": {"id": 407}, "role": "supervisor", "organization": {"id": 106}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 61, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 61}, "invitee": {"id": 472}, "role": "worker", "organization": {"id": 122}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 9}, "invitee": {"id": 493}, "role": "owner", "organization": {"id": 578}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 79}, "invitee": {"id": 430}, "role": "maintainer", "organization": {"id": 527}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 13}, "invitee": {"id": 468}, "role": "supervisor", "organization": {"id": 546}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 92}, "invitee": {"id": 473}, "role": "worker", "organization": {"id": 581}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 64}, "invitee": {"id": 433}, "role": "owner", "organization": {"id": 103}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 21}, "invitee": {"id": 449}, "role": "maintainer", "organization": {"id": 171}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 61, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 61}, "invitee": {"id": 413}, "role": "supervisor", "organization": {"id": 104}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 20}, "invitee": {"id": 475}, "role": "worker", "organization": {"id": 110}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 42}, "invitee": {"id": 491}, "role": "owner", "organization": {"id": 532}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 93}, "invitee": {"id": 487}, "role": "maintainer", "organization": {"id": 532}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 27}, "invitee": {"id": 479}, "role": "supervisor", "organization": {"id": 506}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 37}, "invitee": {"id": 435}, "role": "worker", "organization": {"id": 513}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 66}, "invitee": {"id": 427}, "role": "owner", "organization": {"id": 177}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 21}, "invitee": {"id": 435}, "role": "maintainer", "organization": {"id": 165}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 9}, "invitee": {"id": 414}, "role": "supervisor", "organization": {"id": 178}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 0}, "invitee": {"id": 435}, "role": "worker", "organization": {"id": 185}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"owner": {"id": 74}, "invitee": {"id": 495}, "role": "owner", "organization": {"id": 568}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"owner": {"id": 13}, "invitee": {"id": 418}, "role": "maintainer", "organization": {"id": 576}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"owner": {"id": 65}, "invitee": {"id": 449}, "role": "supervisor", "organization": {"id": 501}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"owner": {"id": 28}, "invitee": {"id": 414}, "role": "worker", "organization": {"id": 533}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"owner": {"id": 6}, "invitee": {"id": 468}, "role": "owner", "organization": {"id": 199}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"owner": {"id": 89}, "invitee": {"id": 425}, "role": "maintainer", "organization": {"id": 191}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"owner": {"id": 40}, "invitee": {"id": 439}, "role": "supervisor", "organization": {"id": 186}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"owner": {"id": 42}, "invitee": {"id": 476}, "role": "worker", "organization": {"id": 134}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_OWNER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 346}, "invitee": {"id": 87}, "role": "owner", "organization": {"id": 573}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 376}, "invitee": {"id": 46}, "role": "maintainer", "organization": {"id": 537}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 397}, "invitee": {"id": 63}, "role": "supervisor", "organization": {"id": 549}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_OWNER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 318}, "invitee": {"id": 47}, "role": "worker", "organization": {"id": 525}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_OWNER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 367}, "invitee": {"id": 85}, "role": "owner", "organization": {"id": 126}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 374}, "invitee": {"id": 54}, "role": "maintainer", "organization": {"id": 109}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 363}, "invitee": {"id": 75}, "role": "supervisor", "organization": {"id": 184}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 346}, "invitee": {"id": 10}, "role": "worker", "organization": {"id": 160}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 379}, "invitee": {"id": 53}, "role": "owner", "organization": {"id": 508}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 307}, "invitee": {"id": 98}, "role": "maintainer", "organization": {"id": 593}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 312}, "invitee": {"id": 51}, "role": "supervisor", "organization": {"id": 501}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 384}, "invitee": {"id": 78}, "role": "worker", "organization": {"id": 535}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 308}, "invitee": {"id": 76}, "role": "owner", "organization": {"id": 194}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 314}, "invitee": {"id": 24}, "role": "maintainer", "organization": {"id": 134}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 367}, "invitee": {"id": 0}, "role": "supervisor", "organization": {"id": 122}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 301}, "invitee": {"id": 30}, "role": "worker", "organization": {"id": 172}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 381}, "invitee": {"id": 29}, "role": "owner", "organization": {"id": 526}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 365}, "invitee": {"id": 90}, "role": "maintainer", "organization": {"id": 515}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 390}, "invitee": {"id": 53}, "role": "supervisor", "organization": {"id": 526}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 345}, "invitee": {"id": 56}, "role": "worker", "organization": {"id": 539}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 357}, "invitee": {"id": 35}, "role": "owner", "organization": {"id": 129}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 339}, "invitee": {"id": 9}, "role": "maintainer", "organization": {"id": 126}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 391}, "invitee": {"id": 63}, "role": "supervisor", "organization": {"id": 198}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 376}, "invitee": {"id": 21}, "role": "worker", "organization": {"id": 144}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_WORKER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 355}, "invitee": {"id": 81}, "role": "owner", "organization": {"id": 554}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 335}, "invitee": {"id": 43}, "role": "maintainer", "organization": {"id": 578}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 7, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 340}, "invitee": {"id": 7}, "role": "supervisor", "organization": {"id": 574}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_WORKER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 343}, "invitee": {"id": 55}, "role": "worker", "organization": {"id": 526}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_WORKER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 354}, "invitee": {"id": 59}, "role": "owner", "organization": {"id": 131}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 399}, "invitee": {"id": 16}, "role": "maintainer", "organization": {"id": 115}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 365}, "invitee": {"id": 35}, "role": "supervisor", "organization": {"id": 118}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_WORKER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 315}, "invitee": {"id": 67}, "role": "worker", "organization": {"id": 116}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"owner": {"id": 368}, "invitee": {"id": 83}, "role": "owner", "organization": {"id": 551}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"owner": {"id": 360}, "invitee": {"id": 59}, "role": "maintainer", "organization": {"id": 533}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"owner": {"id": 317}, "invitee": {"id": 85}, "role": "supervisor", "organization": {"id": 518}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"owner": {"id": 391}, "invitee": {"id": 9}, "role": "worker", "organization": {"id": 586}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"owner": {"id": 374}, "invitee": {"id": 27}, "role": "owner", "organization": {"id": 116}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"owner": {"id": 347}, "invitee": {"id": 10}, "role": "maintainer", "organization": {"id": 111}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"owner": {"id": 310}, "invitee": {"id": 38}, "role": "supervisor", "organization": {"id": 126}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"owner": {"id": 362}, "invitee": {"id": 32}, "role": "worker", "organization": {"id": 199}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 362}, "invitee": {"id": 99}, "role": "owner", "organization": {"id": 562}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 357}, "invitee": {"id": 16}, "role": "maintainer", "organization": {"id": 599}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 374}, "invitee": {"id": 99}, "role": "supervisor", "organization": {"id": 502}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 346}, "invitee": {"id": 93}, "role": "worker", "organization": {"id": 501}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_OWNER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 337}, "invitee": {"id": 14}, "role": "owner", "organization": {"id": 166}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 337}, "invitee": {"id": 45}, "role": "maintainer", "organization": {"id": 143}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 325}, "invitee": {"id": 93}, "role": "supervisor", "organization": {"id": 139}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 367}, "invitee": {"id": 84}, "role": "worker", "organization": {"id": 187}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 379}, "invitee": {"id": 78}, "role": "owner", "organization": {"id": 527}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 380}, "invitee": {"id": 34}, "role": "maintainer", "organization": {"id": 516}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 353}, "invitee": {"id": 56}, "role": "supervisor", "organization": {"id": 585}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 31, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 329}, "invitee": {"id": 31}, "role": "worker", "organization": {"id": 527}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 369}, "invitee": {"id": 23}, "role": "owner", "organization": {"id": 158}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 382}, "invitee": {"id": 54}, "role": "maintainer", "organization": {"id": 194}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 319}, "invitee": {"id": 53}, "role": "supervisor", "organization": {"id": 181}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 333}, "invitee": {"id": 63}, "role": "worker", "organization": {"id": 117}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 350}, "invitee": {"id": 73}, "role": "owner", "organization": {"id": 535}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 390}, "invitee": {"id": 36}, "role": "maintainer", "organization": {"id": 589}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 384}, "invitee": {"id": 48}, "role": "supervisor", "organization": {"id": 545}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 94, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 314}, "invitee": {"id": 94}, "role": "worker", "organization": {"id": 545}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 331}, "invitee": {"id": 4}, "role": "owner", "organization": {"id": 123}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 357}, "invitee": {"id": 73}, "role": "maintainer", "organization": {"id": 197}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 352}, "invitee": {"id": 85}, "role": "supervisor", "organization": {"id": 150}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 385}, "invitee": {"id": 65}, "role": "worker", "organization": {"id": 169}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 360}, "invitee": {"id": 19}, "role": "owner", "organization": {"id": 550}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 310}, "invitee": {"id": 48}, "role": "maintainer", "organization": {"id": 525}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 332}, "invitee": {"id": 42}, "role": "supervisor", "organization": {"id": 565}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 320}, "invitee": {"id": 23}, "role": "worker", "organization": {"id": 555}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_WORKER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 309}, "invitee": {"id": 65}, "role": "owner", "organization": {"id": 123}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 336}, "invitee": {"id": 9}, "role": "maintainer", "organization": {"id": 112}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 310}, "invitee": {"id": 45}, "role": "supervisor", "organization": {"id": 194}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_WORKER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 377}, "invitee": {"id": 46}, "role": "worker", "organization": {"id": 143}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"owner": {"id": 359}, "invitee": {"id": 14}, "role": "owner", "organization": {"id": 523}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"owner": {"id": 323}, "invitee": {"id": 41}, "role": "maintainer", "organization": {"id": 599}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"owner": {"id": 333}, "invitee": {"id": 80}, "role": "supervisor", "organization": {"id": 564}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"owner": {"id": 388}, "invitee": {"id": 47}, "role": "worker", "organization": {"id": 571}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"owner": {"id": 302}, "invitee": {"id": 60}, "role": "owner", "organization": {"id": 140}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"owner": {"id": 306}, "invitee": {"id": 76}, "role": "maintainer", "organization": {"id": 103}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"owner": {"id": 357}, "invitee": {"id": 99}, "role": "supervisor", "organization": {"id": 137}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"owner": {"id": 357}, "invitee": {"id": 2}, "role": "worker", "organization": {"id": 160}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 315}, "invitee": {"id": 95}, "role": "owner", "organization": {"id": 597}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 372}, "invitee": {"id": 84}, "role": "maintainer", "organization": {"id": 501}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 323}, "invitee": {"id": 45}, "role": "supervisor", "organization": {"id": 574}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 383}, "invitee": {"id": 25}, "role": "worker", "organization": {"id": 520}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_OWNER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 367}, "invitee": {"id": 67}, "role": "owner", "organization": {"id": 158}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 349}, "invitee": {"id": 89}, "role": "maintainer", "organization": {"id": 121}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 326}, "invitee": {"id": 12}, "role": "supervisor", "organization": {"id": 197}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 326}, "invitee": {"id": 14}, "role": "worker", "organization": {"id": 172}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 375}, "invitee": {"id": 95}, "role": "owner", "organization": {"id": 571}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 311}, "invitee": {"id": 29}, "role": "maintainer", "organization": {"id": 520}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 315}, "invitee": {"id": 77}, "role": "supervisor", "organization": {"id": 596}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 19, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 375}, "invitee": {"id": 19}, "role": "worker", "organization": {"id": 529}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 308}, "invitee": {"id": 27}, "role": "owner", "organization": {"id": 185}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 322}, "invitee": {"id": 66}, "role": "maintainer", "organization": {"id": 101}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 323}, "invitee": {"id": 7}, "role": "supervisor", "organization": {"id": 153}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 332}, "invitee": {"id": 50}, "role": "worker", "organization": {"id": 105}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 331}, "invitee": {"id": 99}, "role": "owner", "organization": {"id": 570}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 304}, "invitee": {"id": 3}, "role": "maintainer", "organization": {"id": 566}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 361}, "invitee": {"id": 58}, "role": "supervisor", "organization": {"id": 555}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 382}, "invitee": {"id": 33}, "role": "worker", "organization": {"id": 583}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 311}, "invitee": {"id": 52}, "role": "owner", "organization": {"id": 113}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 354}, "invitee": {"id": 25}, "role": "maintainer", "organization": {"id": 153}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 395}, "invitee": {"id": 2}, "role": "supervisor", "organization": {"id": 113}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 321}, "invitee": {"id": 86}, "role": "worker", "organization": {"id": 100}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 380}, "invitee": {"id": 14}, "role": "owner", "organization": {"id": 535}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 362}, "invitee": {"id": 23}, "role": "maintainer", "organization": {"id": 513}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 347}, "invitee": {"id": 91}, "role": "supervisor", "organization": {"id": 544}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 358}, "invitee": {"id": 29}, "role": "worker", "organization": {"id": 583}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_WORKER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 392}, "invitee": {"id": 98}, "role": "owner", "organization": {"id": 164}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 351}, "invitee": {"id": 8}, "role": "maintainer", "organization": {"id": 175}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 316}, "invitee": {"id": 67}, "role": "supervisor", "organization": {"id": 165}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_WORKER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 341}, "invitee": {"id": 55}, "role": "worker", "organization": {"id": 124}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"owner": {"id": 384}, "invitee": {"id": 63}, "role": "owner", "organization": {"id": 596}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"owner": {"id": 304}, "invitee": {"id": 26}, "role": "maintainer", "organization": {"id": 538}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"owner": {"id": 318}, "invitee": {"id": 96}, "role": "supervisor", "organization": {"id": 559}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"owner": {"id": 339}, "invitee": {"id": 11}, "role": "worker", "organization": {"id": 515}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"owner": {"id": 303}, "invitee": {"id": 30}, "role": "owner", "organization": {"id": 103}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"owner": {"id": 339}, "invitee": {"id": 99}, "role": "maintainer", "organization": {"id": 133}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"owner": {"id": 398}, "invitee": {"id": 24}, "role": "supervisor", "organization": {"id": 159}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"owner": {"id": 354}, "invitee": {"id": 88}, "role": "worker", "organization": {"id": 117}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 320}, "invitee": {"id": 70}, "role": "owner", "organization": {"id": 557}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 309}, "invitee": {"id": 21}, "role": "maintainer", "organization": {"id": 550}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 302}, "invitee": {"id": 53}, "role": "supervisor", "organization": {"id": 548}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 341}, "invitee": {"id": 13}, "role": "worker", "organization": {"id": 583}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_OWNER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 356}, "invitee": {"id": 73}, "role": "owner", "organization": {"id": 173}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 352}, "invitee": {"id": 8}, "role": "maintainer", "organization": {"id": 144}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 382}, "invitee": {"id": 72}, "role": "supervisor", "organization": {"id": 138}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 353}, "invitee": {"id": 65}, "role": "worker", "organization": {"id": 133}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 393}, "invitee": {"id": 13}, "role": "owner", "organization": {"id": 507}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 383}, "invitee": {"id": 77}, "role": "maintainer", "organization": {"id": 522}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 318}, "invitee": {"id": 21}, "role": "supervisor", "organization": {"id": 563}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 315}, "invitee": {"id": 54}, "role": "worker", "organization": {"id": 516}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 398}, "invitee": {"id": 38}, "role": "owner", "organization": {"id": 179}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 336}, "invitee": {"id": 63}, "role": "maintainer", "organization": {"id": 187}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 319}, "invitee": {"id": 96}, "role": "supervisor", "organization": {"id": 102}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 312}, "invitee": {"id": 60}, "role": "worker", "organization": {"id": 159}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 327}, "invitee": {"id": 82}, "role": "owner", "organization": {"id": 516}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 345}, "invitee": {"id": 11}, "role": "maintainer", "organization": {"id": 599}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 371}, "invitee": {"id": 51}, "role": "supervisor", "organization": {"id": 500}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 317}, "invitee": {"id": 85}, "role": "worker", "organization": {"id": 520}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 342}, "invitee": {"id": 45}, "role": "owner", "organization": {"id": 136}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 338}, "invitee": {"id": 38}, "role": "maintainer", "organization": {"id": 178}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 309}, "invitee": {"id": 43}, "role": "supervisor", "organization": {"id": 149}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 318}, "invitee": {"id": 20}, "role": "worker", "organization": {"id": 184}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 337}, "invitee": {"id": 16}, "role": "owner", "organization": {"id": 535}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 341}, "invitee": {"id": 68}, "role": "maintainer", "organization": {"id": 575}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 352}, "invitee": {"id": 65}, "role": "supervisor", "organization": {"id": 552}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 309}, "invitee": {"id": 50}, "role": "worker", "organization": {"id": 571}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_WORKER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 29, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 307}, "invitee": {"id": 29}, "role": "owner", "organization": {"id": 168}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 310}, "invitee": {"id": 84}, "role": "maintainer", "organization": {"id": 176}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 378}, "invitee": {"id": 48}, "role": "supervisor", "organization": {"id": 155}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_WORKER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 388}, "invitee": {"id": 49}, "role": "worker", "organization": {"id": 189}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"owner": {"id": 394}, "invitee": {"id": 98}, "role": "owner", "organization": {"id": 514}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"owner": {"id": 309}, "invitee": {"id": 97}, "role": "maintainer", "organization": {"id": 501}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"owner": {"id": 303}, "invitee": {"id": 25}, "role": "supervisor", "organization": {"id": 503}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 29, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"owner": {"id": 307}, "invitee": {"id": 29}, "role": "worker", "organization": {"id": 566}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"owner": {"id": 337}, "invitee": {"id": 11}, "role": "owner", "organization": {"id": 192}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"owner": {"id": 357}, "invitee": {"id": 38}, "role": "maintainer", "organization": {"id": 188}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"owner": {"id": 332}, "invitee": {"id": 4}, "role": "supervisor", "organization": {"id": 187}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"owner": {"id": 373}, "invitee": {"id": 6}, "role": "worker", "organization": {"id": 165}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 346}, "invitee": {"id": 21}, "role": "owner", "organization": {"id": 593}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 332}, "invitee": {"id": 77}, "role": "maintainer", "organization": {"id": 573}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 337}, "invitee": {"id": 34}, "role": "supervisor", "organization": {"id": 533}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 327}, "invitee": {"id": 22}, "role": "worker", "organization": {"id": 558}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_OWNER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 380}, "invitee": {"id": 14}, "role": "owner", "organization": {"id": 189}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 316}, "invitee": {"id": 73}, "role": "maintainer", "organization": {"id": 198}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 347}, "invitee": {"id": 53}, "role": "supervisor", "organization": {"id": 168}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 301}, "invitee": {"id": 12}, "role": "worker", "organization": {"id": 129}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 395}, "invitee": {"id": 78}, "role": "owner", "organization": {"id": 542}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 350}, "invitee": {"id": 5}, "role": "maintainer", "organization": {"id": 553}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 318}, "invitee": {"id": 79}, "role": "supervisor", "organization": {"id": 530}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 395}, "invitee": {"id": 97}, "role": "worker", "organization": {"id": 591}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 382}, "invitee": {"id": 57}, "role": "owner", "organization": {"id": 180}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 361}, "invitee": {"id": 2}, "role": "maintainer", "organization": {"id": 162}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 307}, "invitee": {"id": 79}, "role": "supervisor", "organization": {"id": 158}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 307}, "invitee": {"id": 2}, "role": "worker", "organization": {"id": 170}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 366}, "invitee": {"id": 77}, "role": "owner", "organization": {"id": 529}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 397}, "invitee": {"id": 63}, "role": "maintainer", "organization": {"id": 582}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 303}, "invitee": {"id": 51}, "role": "supervisor", "organization": {"id": 513}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 394}, "invitee": {"id": 42}, "role": "worker", "organization": {"id": 567}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 321}, "invitee": {"id": 27}, "role": "owner", "organization": {"id": 109}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 368}, "invitee": {"id": 86}, "role": "maintainer", "organization": {"id": 157}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 329}, "invitee": {"id": 21}, "role": "supervisor", "organization": {"id": 116}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 372}, "invitee": {"id": 89}, "role": "worker", "organization": {"id": 104}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 334}, "invitee": {"id": 0}, "role": "owner", "organization": {"id": 500}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 314}, "invitee": {"id": 64}, "role": "maintainer", "organization": {"id": 541}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 309}, "invitee": {"id": 42}, "role": "supervisor", "organization": {"id": 517}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 325}, "invitee": {"id": 6}, "role": "worker", "organization": {"id": 555}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_WORKER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 348}, "invitee": {"id": 36}, "role": "owner", "organization": {"id": 144}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 319}, "invitee": {"id": 53}, "role": "maintainer", "organization": {"id": 180}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 345}, "invitee": {"id": 23}, "role": "supervisor", "organization": {"id": 128}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_WORKER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 326}, "invitee": {"id": 74}, "role": "worker", "organization": {"id": 198}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"owner": {"id": 366}, "invitee": {"id": 3}, "role": "owner", "organization": {"id": 589}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"owner": {"id": 321}, "invitee": {"id": 59}, "role": "maintainer", "organization": {"id": 572}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"owner": {"id": 312}, "invitee": {"id": 56}, "role": "supervisor", "organization": {"id": 542}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"owner": {"id": 323}, "invitee": {"id": 27}, "role": "worker", "organization": {"id": 539}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"owner": {"id": 391}, "invitee": {"id": 35}, "role": "owner", "organization": {"id": 136}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"owner": {"id": 389}, "invitee": {"id": 87}, "role": "maintainer", "organization": {"id": 109}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"owner": {"id": 372}, "invitee": {"id": 92}, "role": "supervisor", "organization": {"id": 121}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"owner": {"id": 306}, "invitee": {"id": 89}, "role": "worker", "organization": {"id": 149}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 304}, "invitee": {"id": 411}, "role": "owner", "organization": {"id": 564}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 300}, "invitee": {"id": 413}, "role": "maintainer", "organization": {"id": 500}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 383}, "invitee": {"id": 472}, "role": "supervisor", "organization": {"id": 526}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 300}, "invitee": {"id": 439}, "role": "worker", "organization": {"id": 529}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 368}, "invitee": {"id": 423}, "role": "owner", "organization": {"id": 120}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 356}, "invitee": {"id": 427}, "role": "maintainer", "organization": {"id": 167}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 341}, "invitee": {"id": 481}, "role": "supervisor", "organization": {"id": 149}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 313}, "invitee": {"id": 418}, "role": "worker", "organization": {"id": 170}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 399}, "invitee": {"id": 487}, "role": "owner", "organization": {"id": 518}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 384}, "invitee": {"id": 402}, "role": "maintainer", "organization": {"id": 514}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 325}, "invitee": {"id": 449}, "role": "supervisor", "organization": {"id": 550}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 375}, "invitee": {"id": 493}, "role": "worker", "organization": {"id": 524}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 312}, "invitee": {"id": 494}, "role": "owner", "organization": {"id": 147}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 304}, "invitee": {"id": 420}, "role": "maintainer", "organization": {"id": 131}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 347}, "invitee": {"id": 448}, "role": "supervisor", "organization": {"id": 106}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 387}, "invitee": {"id": 460}, "role": "worker", "organization": {"id": 120}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 337}, "invitee": {"id": 479}, "role": "owner", "organization": {"id": 535}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 314}, "invitee": {"id": 404}, "role": "maintainer", "organization": {"id": 545}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 307}, "invitee": {"id": 496}, "role": "supervisor", "organization": {"id": 567}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 303}, "invitee": {"id": 470}, "role": "worker", "organization": {"id": 507}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 329}, "invitee": {"id": 430}, "role": "owner", "organization": {"id": 123}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 397}, "invitee": {"id": 464}, "role": "maintainer", "organization": {"id": 102}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 352}, "invitee": {"id": 416}, "role": "supervisor", "organization": {"id": 157}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 321}, "invitee": {"id": 468}, "role": "worker", "organization": {"id": 146}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 363}, "invitee": {"id": 492}, "role": "owner", "organization": {"id": 507}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 356}, "invitee": {"id": 400}, "role": "maintainer", "organization": {"id": 538}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 358}, "invitee": {"id": 402}, "role": "supervisor", "organization": {"id": 569}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 382}, "invitee": {"id": 459}, "role": "worker", "organization": {"id": 552}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 7, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 339}, "invitee": {"id": 455}, "role": "owner", "organization": {"id": 189}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 362}, "invitee": {"id": 418}, "role": "maintainer", "organization": {"id": 166}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 379}, "invitee": {"id": 401}, "role": "supervisor", "organization": {"id": 130}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 316}, "invitee": {"id": 440}, "role": "worker", "organization": {"id": 119}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"owner": {"id": 364}, "invitee": {"id": 460}, "role": "owner", "organization": {"id": 531}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"owner": {"id": 312}, "invitee": {"id": 439}, "role": "maintainer", "organization": {"id": 515}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"owner": {"id": 311}, "invitee": {"id": 414}, "role": "supervisor", "organization": {"id": 585}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"owner": {"id": 390}, "invitee": {"id": 428}, "role": "worker", "organization": {"id": 506}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"owner": {"id": 336}, "invitee": {"id": 478}, "role": "owner", "organization": {"id": 165}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"owner": {"id": 307}, "invitee": {"id": 468}, "role": "maintainer", "organization": {"id": 161}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"owner": {"id": 359}, "invitee": {"id": 404}, "role": "supervisor", "organization": {"id": 121}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "accept", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"owner": {"id": 354}, "invitee": {"id": 466}, "role": "worker", "organization": {"id": 115}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 319}, "invitee": {"id": 491}, "role": "owner", "organization": {"id": 537}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 322}, "invitee": {"id": 432}, "role": "maintainer", "organization": {"id": 575}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 346}, "invitee": {"id": 493}, "role": "supervisor", "organization": {"id": 598}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 381}, "invitee": {"id": 443}, "role": "worker", "organization": {"id": 577}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 301}, "invitee": {"id": 489}, "role": "owner", "organization": {"id": 160}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 303}, "invitee": {"id": 438}, "role": "maintainer", "organization": {"id": 184}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 392}, "invitee": {"id": 419}, "role": "supervisor", "organization": {"id": 154}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 369}, "invitee": {"id": 481}, "role": "worker", "organization": {"id": 134}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 363}, "invitee": {"id": 417}, "role": "owner", "organization": {"id": 552}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 389}, "invitee": {"id": 450}, "role": "maintainer", "organization": {"id": 557}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 387}, "invitee": {"id": 478}, "role": "supervisor", "organization": {"id": 551}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 356}, "invitee": {"id": 467}, "role": "worker", "organization": {"id": 587}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 359}, "invitee": {"id": 466}, "role": "owner", "organization": {"id": 188}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 334}, "invitee": {"id": 459}, "role": "maintainer", "organization": {"id": 127}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 317}, "invitee": {"id": 492}, "role": "supervisor", "organization": {"id": 174}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 306}, "invitee": {"id": 460}, "role": "worker", "organization": {"id": 126}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 322}, "invitee": {"id": 441}, "role": "owner", "organization": {"id": 553}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 332}, "invitee": {"id": 489}, "role": "maintainer", "organization": {"id": 533}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 308}, "invitee": {"id": 482}, "role": "supervisor", "organization": {"id": 533}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 305}, "invitee": {"id": 436}, "role": "worker", "organization": {"id": 588}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 387}, "invitee": {"id": 452}, "role": "owner", "organization": {"id": 115}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 336}, "invitee": {"id": 441}, "role": "maintainer", "organization": {"id": 105}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 395}, "invitee": {"id": 488}, "role": "supervisor", "organization": {"id": 158}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 336}, "invitee": {"id": 482}, "role": "worker", "organization": {"id": 120}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 370}, "invitee": {"id": 420}, "role": "owner", "organization": {"id": 509}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 324}, "invitee": {"id": 410}, "role": "maintainer", "organization": {"id": 580}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 330}, "invitee": {"id": 415}, "role": "supervisor", "organization": {"id": 529}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 394}, "invitee": {"id": 446}, "role": "worker", "organization": {"id": 576}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 372}, "invitee": {"id": 499}, "role": "owner", "organization": {"id": 167}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 366}, "invitee": {"id": 420}, "role": "maintainer", "organization": {"id": 136}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 306}, "invitee": {"id": 432}, "role": "supervisor", "organization": {"id": 108}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 329}, "invitee": {"id": 483}, "role": "worker", "organization": {"id": 166}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"owner": {"id": 381}, "invitee": {"id": 432}, "role": "owner", "organization": {"id": 550}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"owner": {"id": 363}, "invitee": {"id": 432}, "role": "maintainer", "organization": {"id": 500}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"owner": {"id": 394}, "invitee": {"id": 444}, "role": "supervisor", "organization": {"id": 551}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"owner": {"id": 347}, "invitee": {"id": 404}, "role": "worker", "organization": {"id": 561}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"owner": {"id": 339}, "invitee": {"id": 498}, "role": "owner", "organization": {"id": 119}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"owner": {"id": 384}, "invitee": {"id": 423}, "role": "maintainer", "organization": {"id": 160}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"owner": {"id": 397}, "invitee": {"id": 484}, "role": "supervisor", "organization": {"id": 106}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"owner": {"id": 347}, "invitee": {"id": 489}, "role": "worker", "organization": {"id": 140}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 301}, "invitee": {"id": 445}, "role": "owner", "organization": {"id": 597}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 335}, "invitee": {"id": 406}, "role": "maintainer", "organization": {"id": 532}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 361}, "invitee": {"id": 434}, "role": "supervisor", "organization": {"id": 523}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 378}, "invitee": {"id": 430}, "role": "worker", "organization": {"id": 566}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 301}, "invitee": {"id": 471}, "role": "owner", "organization": {"id": 110}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 326}, "invitee": {"id": 441}, "role": "maintainer", "organization": {"id": 106}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 326}, "invitee": {"id": 469}, "role": "supervisor", "organization": {"id": 119}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 391}, "invitee": {"id": 433}, "role": "worker", "organization": {"id": 166}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 19, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 377}, "invitee": {"id": 447}, "role": "owner", "organization": {"id": 566}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 394}, "invitee": {"id": 402}, "role": "maintainer", "organization": {"id": 532}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 343}, "invitee": {"id": 429}, "role": "supervisor", "organization": {"id": 570}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 320}, "invitee": {"id": 482}, "role": "worker", "organization": {"id": 500}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 327}, "invitee": {"id": 486}, "role": "owner", "organization": {"id": 105}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 338}, "invitee": {"id": 459}, "role": "maintainer", "organization": {"id": 164}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 341}, "invitee": {"id": 498}, "role": "supervisor", "organization": {"id": 128}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 396}, "invitee": {"id": 429}, "role": "worker", "organization": {"id": 196}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 399}, "invitee": {"id": 497}, "role": "owner", "organization": {"id": 509}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 395}, "invitee": {"id": 409}, "role": "maintainer", "organization": {"id": 586}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 319}, "invitee": {"id": 436}, "role": "supervisor", "organization": {"id": 571}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 304}, "invitee": {"id": 457}, "role": "worker", "organization": {"id": 543}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 306}, "invitee": {"id": 451}, "role": "owner", "organization": {"id": 122}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 310}, "invitee": {"id": 428}, "role": "maintainer", "organization": {"id": 131}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 364}, "invitee": {"id": 426}, "role": "supervisor", "organization": {"id": 186}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 316}, "invitee": {"id": 468}, "role": "worker", "organization": {"id": 164}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 306}, "invitee": {"id": 478}, "role": "owner", "organization": {"id": 545}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 310}, "invitee": {"id": 455}, "role": "maintainer", "organization": {"id": 555}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 306}, "invitee": {"id": 456}, "role": "supervisor", "organization": {"id": 590}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 346}, "invitee": {"id": 495}, "role": "worker", "organization": {"id": 579}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 399}, "invitee": {"id": 414}, "role": "owner", "organization": {"id": 120}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 318}, "invitee": {"id": 401}, "role": "maintainer", "organization": {"id": 101}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 309}, "invitee": {"id": 402}, "role": "supervisor", "organization": {"id": 178}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 19, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 372}, "invitee": {"id": 403}, "role": "worker", "organization": {"id": 179}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"owner": {"id": 338}, "invitee": {"id": 483}, "role": "owner", "organization": {"id": 578}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"owner": {"id": 305}, "invitee": {"id": 427}, "role": "maintainer", "organization": {"id": 565}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"owner": {"id": 389}, "invitee": {"id": 464}, "role": "supervisor", "organization": {"id": 553}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"owner": {"id": 313}, "invitee": {"id": 458}, "role": "worker", "organization": {"id": 531}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"owner": {"id": 350}, "invitee": {"id": 471}, "role": "owner", "organization": {"id": 195}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"owner": {"id": 320}, "invitee": {"id": 439}, "role": "maintainer", "organization": {"id": 177}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 71, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"owner": {"id": 324}, "invitee": {"id": 463}, "role": "supervisor", "organization": {"id": 186}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"owner": {"id": 307}, "invitee": {"id": 448}, "role": "worker", "organization": {"id": 172}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 345}, "invitee": {"id": 435}, "role": "owner", "organization": {"id": 522}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 345}, "invitee": {"id": 440}, "role": "maintainer", "organization": {"id": 555}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 366}, "invitee": {"id": 426}, "role": "supervisor", "organization": {"id": 527}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 380}, "invitee": {"id": 449}, "role": "worker", "organization": {"id": 591}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 330}, "invitee": {"id": 447}, "role": "owner", "organization": {"id": 174}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 315}, "invitee": {"id": 412}, "role": "maintainer", "organization": {"id": 118}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 325}, "invitee": {"id": 459}, "role": "supervisor", "organization": {"id": 175}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 301}, "invitee": {"id": 478}, "role": "worker", "organization": {"id": 165}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 397}, "invitee": {"id": 480}, "role": "owner", "organization": {"id": 549}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 390}, "invitee": {"id": 452}, "role": "maintainer", "organization": {"id": 505}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 334}, "invitee": {"id": 469}, "role": "supervisor", "organization": {"id": 595}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 67, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 376}, "invitee": {"id": 477}, "role": "worker", "organization": {"id": 532}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 390}, "invitee": {"id": 483}, "role": "owner", "organization": {"id": 126}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 397}, "invitee": {"id": 471}, "role": "maintainer", "organization": {"id": 175}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 387}, "invitee": {"id": 402}, "role": "supervisor", "organization": {"id": 124}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 331}, "invitee": {"id": 413}, "role": "worker", "organization": {"id": 109}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 318}, "invitee": {"id": 460}, "role": "owner", "organization": {"id": 500}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 329}, "invitee": {"id": 431}, "role": "maintainer", "organization": {"id": 501}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 388}, "invitee": {"id": 440}, "role": "supervisor", "organization": {"id": 599}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 319}, "invitee": {"id": 497}, "role": "worker", "organization": {"id": 559}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 371}, "invitee": {"id": 412}, "role": "owner", "organization": {"id": 107}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 388}, "invitee": {"id": 495}, "role": "maintainer", "organization": {"id": 151}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 394}, "invitee": {"id": 402}, "role": "supervisor", "organization": {"id": 107}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 316}, "invitee": {"id": 406}, "role": "worker", "organization": {"id": 109}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 308}, "invitee": {"id": 476}, "role": "owner", "organization": {"id": 552}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 313}, "invitee": {"id": 499}, "role": "maintainer", "organization": {"id": 571}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 394}, "invitee": {"id": 444}, "role": "supervisor", "organization": {"id": 511}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 326}, "invitee": {"id": 499}, "role": "worker", "organization": {"id": 556}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 385}, "invitee": {"id": 483}, "role": "owner", "organization": {"id": 133}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 336}, "invitee": {"id": 457}, "role": "maintainer", "organization": {"id": 194}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 327}, "invitee": {"id": 419}, "role": "supervisor", "organization": {"id": 100}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 382}, "invitee": {"id": 453}, "role": "worker", "organization": {"id": 142}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"owner": {"id": 314}, "invitee": {"id": 411}, "role": "owner", "organization": {"id": 526}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"owner": {"id": 380}, "invitee": {"id": 473}, "role": "maintainer", "organization": {"id": 510}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"owner": {"id": 339}, "invitee": {"id": 425}, "role": "supervisor", "organization": {"id": 514}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"owner": {"id": 304}, "invitee": {"id": 414}, "role": "worker", "organization": {"id": 550}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"owner": {"id": 385}, "invitee": {"id": 486}, "role": "owner", "organization": {"id": 147}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"owner": {"id": 335}, "invitee": {"id": 492}, "role": "maintainer", "organization": {"id": 107}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"owner": {"id": 319}, "invitee": {"id": 470}, "role": "supervisor", "organization": {"id": 140}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 67, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"owner": {"id": 362}, "invitee": {"id": 485}, "role": "worker", "organization": {"id": 138}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 351}, "invitee": {"id": 432}, "role": "owner", "organization": {"id": 519}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 315}, "invitee": {"id": 402}, "role": "maintainer", "organization": {"id": 548}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 389}, "invitee": {"id": 454}, "role": "supervisor", "organization": {"id": 535}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 351}, "invitee": {"id": 438}, "role": "worker", "organization": {"id": 506}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 393}, "invitee": {"id": 439}, "role": "owner", "organization": {"id": 125}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 392}, "invitee": {"id": 465}, "role": "maintainer", "organization": {"id": 124}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 364}, "invitee": {"id": 460}, "role": "supervisor", "organization": {"id": 112}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 399}, "invitee": {"id": 479}, "role": "worker", "organization": {"id": 152}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 366}, "invitee": {"id": 488}, "role": "owner", "organization": {"id": 515}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 389}, "invitee": {"id": 434}, "role": "maintainer", "organization": {"id": 563}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 385}, "invitee": {"id": 494}, "role": "supervisor", "organization": {"id": 516}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 337}, "invitee": {"id": 418}, "role": "worker", "organization": {"id": 555}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 324}, "invitee": {"id": 458}, "role": "owner", "organization": {"id": 132}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 333}, "invitee": {"id": 488}, "role": "maintainer", "organization": {"id": 189}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 354}, "invitee": {"id": 441}, "role": "supervisor", "organization": {"id": 185}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 374}, "invitee": {"id": 417}, "role": "worker", "organization": {"id": 126}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 305}, "invitee": {"id": 496}, "role": "owner", "organization": {"id": 579}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 343}, "invitee": {"id": 447}, "role": "maintainer", "organization": {"id": 584}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 366}, "invitee": {"id": 434}, "role": "supervisor", "organization": {"id": 545}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 361}, "invitee": {"id": 444}, "role": "worker", "organization": {"id": 597}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 352}, "invitee": {"id": 428}, "role": "owner", "organization": {"id": 171}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 395}, "invitee": {"id": 496}, "role": "maintainer", "organization": {"id": 124}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 345}, "invitee": {"id": 433}, "role": "supervisor", "organization": {"id": 113}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 315}, "invitee": {"id": 417}, "role": "worker", "organization": {"id": 132}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 378}, "invitee": {"id": 458}, "role": "owner", "organization": {"id": 573}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 378}, "invitee": {"id": 471}, "role": "maintainer", "organization": {"id": 503}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 342}, "invitee": {"id": 439}, "role": "supervisor", "organization": {"id": 598}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 351}, "invitee": {"id": 422}, "role": "worker", "organization": {"id": 537}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 333}, "invitee": {"id": 403}, "role": "owner", "organization": {"id": 198}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 308}, "invitee": {"id": 402}, "role": "maintainer", "organization": {"id": 154}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 389}, "invitee": {"id": 489}, "role": "supervisor", "organization": {"id": 125}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 333}, "invitee": {"id": 448}, "role": "worker", "organization": {"id": 117}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"owner": {"id": 329}, "invitee": {"id": 456}, "role": "owner", "organization": {"id": 540}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"owner": {"id": 361}, "invitee": {"id": 404}, "role": "maintainer", "organization": {"id": 588}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"owner": {"id": 342}, "invitee": {"id": 496}, "role": "supervisor", "organization": {"id": 552}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"owner": {"id": 327}, "invitee": {"id": 465}, "role": "worker", "organization": {"id": 592}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"owner": {"id": 398}, "invitee": {"id": 467}, "role": "owner", "organization": {"id": 153}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"owner": {"id": 366}, "invitee": {"id": 428}, "role": "maintainer", "organization": {"id": 152}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"owner": {"id": 379}, "invitee": {"id": 496}, "role": "supervisor", "organization": {"id": 109}}} -} - -test_scope_ACCEPT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "accept", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"owner": {"id": 356}, "invitee": {"id": 466}, "role": "worker", "organization": {"id": 146}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 58}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 544}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 8}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 518}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 4}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 509}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 19}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 530}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 56}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 571}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 68}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 561}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 33}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 503}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 38}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 546}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 38}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 593}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 98}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 565}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 98}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 515}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 60}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 588}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 87}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 557}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 73}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 572}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 43}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 574}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 22}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 586}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 82}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 509}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 67}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 585}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 61, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 61}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 530}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 13}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 526}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 368}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 541}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 380}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 594}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 342}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 501}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 358}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 564}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 391}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 524}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 394}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 533}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 314}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 515}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 392}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 521}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 327}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 503}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 350}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 556}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 374}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 506}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 351}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 557}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 345}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 545}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 385}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 554}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 398}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 551}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 384}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 524}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 388}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 550}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 308}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 530}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 353}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 552}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 61, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 345}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 562}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 353}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 524}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 301}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 521}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 310}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 535}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 307}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 533}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 317}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 512}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 327}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 521}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 321}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 557}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 395}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 571}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 347}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 534}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 394}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 552}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 336}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 551}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 392}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 519}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 356}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 573}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 361}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 536}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 364}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 513}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 399}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 563}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 305}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 508}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 373}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 580}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 386}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 594}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 326}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 590}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 60}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 581}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 34}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 524}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 54}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 551}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 16}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 543}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 2}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 165}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 49}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 175}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 62}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 198}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 60}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 178}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 8}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 510}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 71}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 587}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 8}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 587}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 84}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 581}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 97}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 185}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 25}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 149}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 55}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 143}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 44}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 165}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 51}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 527}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 57}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 583}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 61}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 539}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 14}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 519}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 38}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 179}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 35}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 128}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 69}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 123}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 69}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 198}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 4}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 561}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 29}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 559}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 67}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 544}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 25}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 575}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 79}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 179}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 32}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 134}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 34}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 105}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 47}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 170}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"owner": {"id": 37}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 527}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"owner": {"id": 20}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 529}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"owner": {"id": 68}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 543}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"owner": {"id": 78}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 578}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"owner": {"id": 94}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 138}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"owner": {"id": 0}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 187}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"owner": {"id": 71}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 134}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"owner": {"id": 84}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 119}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 83}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 599}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 71}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 575}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 31, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 31}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 510}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 28}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 560}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 43}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 152}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 12}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 158}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 64}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 119}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 40}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 189}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 4}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 573}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 88}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 512}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 70}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 566}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 6}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 547}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 77}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 144}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 57}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 182}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 52}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 194}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 3}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 151}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 99}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 549}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 15}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 564}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 25}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 545}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 53}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 559}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 7}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 177}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 15}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 132}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 40}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 152}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 95}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 119}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 16}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 550}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 37}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 520}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 14}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 579}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 87}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 517}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 99}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 161}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 41}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 137}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 64}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 187}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 6}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 108}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"owner": {"id": 37}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 575}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"owner": {"id": 42}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 599}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"owner": {"id": 40}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 559}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"owner": {"id": 80}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 505}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"owner": {"id": 71}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 130}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"owner": {"id": 42}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 126}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"owner": {"id": 93}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 102}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"owner": {"id": 43}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 169}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 47}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 523}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 57}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 527}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 57}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 589}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 54}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 581}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 1}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 122}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 82}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 167}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 13}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 115}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 84}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 121}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 30}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 514}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 29}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 508}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 95}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 576}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 44}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 543}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 73}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 158}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 55}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 154}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 78}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 171}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 92}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 187}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 95}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 546}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 3}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 533}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 4}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 578}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 22}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 599}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 45}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 168}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 9}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 107}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 4}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 100}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 93}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 169}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 84}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 539}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 69}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 580}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 76}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 533}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 56}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 501}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 4}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 158}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 53}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 184}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 10}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 156}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 58}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 132}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"owner": {"id": 6}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 581}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"owner": {"id": 65}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 513}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"owner": {"id": 44}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 596}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"owner": {"id": 14}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 503}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"owner": {"id": 11}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 193}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"owner": {"id": 40}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 125}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"owner": {"id": 4}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 197}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"owner": {"id": 36}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 161}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 55}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 510}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 73}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 532}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 38}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 510}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 46}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 572}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 62}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 142}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 72}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 107}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 97}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 124}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 45}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 123}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 88}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 586}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 72}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 515}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 63}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 545}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 52}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 541}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 3}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 112}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 18}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 160}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 6}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 132}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 71}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 166}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 82}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 520}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 11}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 525}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 78}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 585}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 66}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 521}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 86}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 136}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 31}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 121}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 28}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 124}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 26}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 183}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 33}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 565}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 6}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 506}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 71}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 527}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 85}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 521}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 15}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 100}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 67, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 67}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 182}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 55}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 188}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 17}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 157}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"owner": {"id": 80}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 588}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"owner": {"id": 15}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 518}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"owner": {"id": 22}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 589}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"owner": {"id": 42}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 517}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"owner": {"id": 72}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 122}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"owner": {"id": 53}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 122}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"owner": {"id": 28}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 193}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"owner": {"id": 89}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 102}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 55}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 596}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 12}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 535}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 55}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 583}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 71}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 546}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 11}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 196}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 89}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 174}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 42}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 158}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 80}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 114}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 16}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 541}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 23}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 518}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 55}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 591}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 10}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 579}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 10}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 126}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 10}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 131}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 41}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 175}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 76}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 143}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 86}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 511}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 38}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 577}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 21}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 566}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 67}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 521}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 21}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 139}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 31}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 189}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 26}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 107}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 99}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 144}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 38}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 534}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 30}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 568}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 5}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 582}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 93}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 585}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 88}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 174}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 82}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 112}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 53}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 155}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 7}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 180}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"owner": {"id": 34}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 512}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"owner": {"id": 77}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 593}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"owner": {"id": 37}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 598}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"owner": {"id": 65}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 551}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"owner": {"id": 21}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 183}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"owner": {"id": 41}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 193}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"owner": {"id": 85}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 105}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"owner": {"id": 82}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 164}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_OWNER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 338}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 511}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 7, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 305}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 589}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 370}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 504}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_OWNER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 322}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 596}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_OWNER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 312}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 110}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 380}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 153}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 323}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 150}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 371}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 112}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 398}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 579}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 361}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 583}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 360}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 596}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 362}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 504}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 337}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 123}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 336}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 114}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 378}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 139}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 310}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 177}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 318}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 509}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 385}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 525}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 337}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 571}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 377}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 515}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 346}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 167}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 336}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 106}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 347}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 152}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 325}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 144}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_WORKER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 399}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 563}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 354}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 559}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 338}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 576}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_WORKER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 374}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 528}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_WORKER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 326}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 166}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 391}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 124}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 325}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 180}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_WORKER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 328}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 164}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"owner": {"id": 361}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 524}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"owner": {"id": 341}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 511}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"owner": {"id": 338}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 583}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"owner": {"id": 347}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 594}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"owner": {"id": 374}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 139}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"owner": {"id": 387}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 186}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"owner": {"id": 322}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 190}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"owner": {"id": 349}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 170}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 358}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 513}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 309}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 573}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 352}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 560}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 351}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 507}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_OWNER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 389}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 173}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 335}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 172}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 315}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 189}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 341}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 160}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 394}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 536}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 341}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 592}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 324}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 544}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 391}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 554}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 361}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 186}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 374}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 158}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 363}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 163}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 363}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 124}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 378}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 570}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 371}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 590}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 381}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 556}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 397}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 535}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 361}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 185}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 399}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 168}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 374}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 154}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 356}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 196}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 26, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 302}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 541}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 380}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 579}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 318}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 566}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 397}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 547}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_WORKER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 26, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 335}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 162}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 375}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 171}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 342}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 148}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_WORKER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 350}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 137}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"owner": {"id": 315}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 519}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"owner": {"id": 330}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 584}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"owner": {"id": 303}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 597}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"owner": {"id": 383}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 535}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"owner": {"id": 316}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 100}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"owner": {"id": 301}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 164}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"owner": {"id": 380}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 139}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"owner": {"id": 342}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 152}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 375}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 556}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 356}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 539}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 332}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 505}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 306}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 527}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_OWNER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 393}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 183}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 313}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 114}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 354}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 172}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 327}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 168}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 330}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 519}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 307}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 529}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 311}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 582}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 373}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 539}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 303}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 141}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 329}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 130}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 306}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 141}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 376}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 113}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 328}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 594}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 368}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 599}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 90, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 367}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 566}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 311}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 589}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 310}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 172}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 311}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 164}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 334}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 116}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 373}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 190}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 309}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 585}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 364}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 502}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 320}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 530}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 355}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 547}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_WORKER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 355}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 166}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 361}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 144}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 337}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 105}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_WORKER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 315}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 153}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"owner": {"id": 354}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 508}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"owner": {"id": 380}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 550}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"owner": {"id": 361}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 599}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"owner": {"id": 380}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 521}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"owner": {"id": 328}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 146}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 90, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"owner": {"id": 375}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 103}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"owner": {"id": 333}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 148}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"owner": {"id": 392}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 168}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 357}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 541}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 341}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 512}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 368}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 502}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 351}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 567}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_OWNER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 313}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 118}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 301}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 152}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 307}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 194}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_OWNER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 397}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 128}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 343}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 520}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 338}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 565}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 328}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 517}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 300}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 512}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 391}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 146}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 335}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 156}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 302}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 158}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 329}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 109}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 350}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 590}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 378}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 518}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 398}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 557}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 332}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 569}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 355}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 180}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 328}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 147}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 342}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 192}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 369}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 191}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 361}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 528}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 375}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 570}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 365}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 513}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 360}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 540}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_WORKER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 321}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 176}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 304}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 169}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 324}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 152}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_WORKER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 391}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 109}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"owner": {"id": 391}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 594}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"owner": {"id": 375}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 591}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"owner": {"id": 361}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 516}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"owner": {"id": 322}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 596}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"owner": {"id": 342}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 167}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"owner": {"id": 305}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 129}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"owner": {"id": 399}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 162}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"owner": {"id": 314}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 177}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 373}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 585}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 312}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 557}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 388}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 514}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 374}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 572}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_OWNER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 344}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 197}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 371}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 107}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 364}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 187}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_OWNER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 346}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 136}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 328}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 527}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 367}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 554}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 301}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 508}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 316}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 528}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 340}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 149}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 325}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 103}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 314}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 165}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 376}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 190}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 312}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 598}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 337}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 593}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 314}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 512}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 330}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 578}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 318}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 104}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 354}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 137}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 325}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 167}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 367}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 167}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 364}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 544}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 378}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 515}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 319}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 598}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 340}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 592}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_WORKER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 324}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 190}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 340}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 112}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 397}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 160}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_WORKER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 365}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 162}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"owner": {"id": 397}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 521}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"owner": {"id": 395}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 575}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"owner": {"id": 308}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 575}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"owner": {"id": 373}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 542}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"owner": {"id": 361}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 121}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"owner": {"id": 356}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 140}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"owner": {"id": 397}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 100}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"owner": {"id": 344}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 160}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 364}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 541}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 313}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 549}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 307}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 576}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 353}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 513}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 333}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 150}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 319}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 155}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 337}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 142}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 322}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 186}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 303}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 550}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 333}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 574}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 386}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 524}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 364}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 521}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 340}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 162}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 343}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 192}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 387}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 122}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 361}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 112}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 302}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 533}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 382}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 564}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 371}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 539}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 312}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 577}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 394}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 153}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 374}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 182}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 319}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 115}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 331}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 133}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 358}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 546}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 351}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 563}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 334}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 575}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 358}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 594}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 315}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 155}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 36, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 340}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 195}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 349}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 169}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 7, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 395}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 122}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"owner": {"id": 398}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 512}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"owner": {"id": 335}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 520}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"owner": {"id": 368}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 509}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"owner": {"id": 317}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 502}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"owner": {"id": 374}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 167}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"owner": {"id": 348}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 104}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"owner": {"id": 345}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 156}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"owner": {"id": 302}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 164}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 317}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 534}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 351}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 584}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 373}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 577}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 335}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 578}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 373}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 162}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 345}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 198}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 375}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 192}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 373}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 104}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 391}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 580}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 332}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 598}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 345}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 501}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 311}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 579}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 321}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 191}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 382}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 168}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 330}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 186}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 310}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 132}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 94, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 385}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 523}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 327}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 547}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 341}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 517}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 393}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 573}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 343}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 105}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 357}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 132}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 365}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 101}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 397}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 190}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 309}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 538}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 357}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 573}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 379}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 571}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 398}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 596}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 395}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 172}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 333}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 122}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 349}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 126}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 393}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 105}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"owner": {"id": 336}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 586}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"owner": {"id": 362}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 576}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"owner": {"id": 396}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 531}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"owner": {"id": 378}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 539}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"owner": {"id": 341}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 191}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"owner": {"id": 323}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 198}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"owner": {"id": 342}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 123}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"owner": {"id": 364}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 145}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 316}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 526}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 329}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 572}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 359}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 511}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 316}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 568}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 306}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 191}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 395}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 141}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 314}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 111}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 398}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 175}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 389}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 595}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 19, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 385}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 514}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 327}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 586}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 332}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 591}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 350}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 164}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 306}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 179}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 343}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 108}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 389}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 185}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 377}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 505}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 334}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 585}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 349}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 505}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 374}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 565}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 392}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 161}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 313}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 106}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 315}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 114}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 311}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 176}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 308}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 573}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 360}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 541}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 390}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 554}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 326}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 547}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 352}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 197}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 323}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 162}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 362}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 143}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 305}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 158}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"owner": {"id": 373}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 591}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"owner": {"id": 394}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 516}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"owner": {"id": 387}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 547}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"owner": {"id": 303}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 540}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"owner": {"id": 363}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 109}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"owner": {"id": 397}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 122}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"owner": {"id": 350}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 198}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"owner": {"id": 383}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 153}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 337}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 532}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 319}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 555}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 363}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 551}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 322}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 559}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 334}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 131}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 384}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 139}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 315}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 148}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 337}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 113}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 387}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 539}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 391}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 561}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 330}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 500}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 326}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 560}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 336}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 131}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 391}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 189}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 314}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 188}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 394}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 193}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 336}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 586}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 313}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 500}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 388}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 533}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 334}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 544}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 360}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 188}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 311}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 165}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 339}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 168}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 394}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 189}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 324}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 547}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 306}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 561}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 313}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 593}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 304}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 507}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 311}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 110}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 308}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 186}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 372}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 123}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 383}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 116}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"owner": {"id": 321}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 513}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"owner": {"id": 352}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 511}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"owner": {"id": 390}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 508}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"owner": {"id": 313}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 530}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"owner": {"id": 323}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 125}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"owner": {"id": 382}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 117}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"owner": {"id": 360}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 171}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"owner": {"id": 340}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 188}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 387}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 549}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 373}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 551}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 372}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 588}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 394}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 571}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 344}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 148}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 351}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 186}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 382}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 128}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 395}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 188}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 337}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 575}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 398}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 514}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 311}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 507}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 372}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 511}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 304}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 198}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 320}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 176}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 355}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 193}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 308}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 162}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 366}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 576}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 387}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 586}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 371}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 591}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 382}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 571}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 371}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 197}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 349}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 128}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 316}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 113}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 346}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 167}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 399}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 588}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 375}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 558}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 317}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 519}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 386}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 547}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 350}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 177}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 344}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 152}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 389}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 179}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 304}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 183}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"owner": {"id": 312}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 519}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"owner": {"id": 399}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 553}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"owner": {"id": 382}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 585}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"owner": {"id": 356}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 511}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"owner": {"id": 390}, "invitee": {"id": null}, "role": "owner", "organization": {"id": 100}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"owner": {"id": 310}, "invitee": {"id": null}, "role": "maintainer", "organization": {"id": 163}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"owner": {"id": 364}, "invitee": {"id": null}, "role": "supervisor", "organization": {"id": 155}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"owner": {"id": 302}, "invitee": {"id": null}, "role": "worker", "organization": {"id": 132}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 67}, "invitee": {"id": 436}, "role": "owner", "organization": {"id": 541}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 93}, "invitee": {"id": 481}, "role": "maintainer", "organization": {"id": 592}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 89}, "invitee": {"id": 470}, "role": "supervisor", "organization": {"id": 554}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 23}, "invitee": {"id": 449}, "role": "worker", "organization": {"id": 576}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 53}, "invitee": {"id": 470}, "role": "owner", "organization": {"id": 563}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 3}, "invitee": {"id": 480}, "role": "maintainer", "organization": {"id": 558}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 66}, "invitee": {"id": 405}, "role": "supervisor", "organization": {"id": 514}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 33}, "invitee": {"id": 424}, "role": "worker", "organization": {"id": 579}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 69}, "invitee": {"id": 451}, "role": "owner", "organization": {"id": 546}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 49}, "invitee": {"id": 426}, "role": "maintainer", "organization": {"id": 543}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 97}, "invitee": {"id": 403}, "role": "supervisor", "organization": {"id": 558}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 74}, "invitee": {"id": 443}, "role": "worker", "organization": {"id": 569}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 97}, "invitee": {"id": 404}, "role": "owner", "organization": {"id": 552}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 71}, "invitee": {"id": 444}, "role": "maintainer", "organization": {"id": 541}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 24}, "invitee": {"id": 464}, "role": "supervisor", "organization": {"id": 594}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 43}, "invitee": {"id": 482}, "role": "worker", "organization": {"id": 533}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 28}, "invitee": {"id": 414}, "role": "owner", "organization": {"id": 583}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 82}, "invitee": {"id": 402}, "role": "maintainer", "organization": {"id": 506}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 5}, "invitee": {"id": 433}, "role": "supervisor", "organization": {"id": 586}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 34}, "invitee": {"id": 425}, "role": "worker", "organization": {"id": 506}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 371}, "invitee": {"id": 91}, "role": "owner", "organization": {"id": 577}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 371}, "invitee": {"id": 55}, "role": "maintainer", "organization": {"id": 519}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 342}, "invitee": {"id": 42}, "role": "supervisor", "organization": {"id": 535}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 333}, "invitee": {"id": 27}, "role": "worker", "organization": {"id": 575}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 330}, "invitee": {"id": 67}, "role": "owner", "organization": {"id": 567}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 343}, "invitee": {"id": 68}, "role": "maintainer", "organization": {"id": 506}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 396}, "invitee": {"id": 10}, "role": "supervisor", "organization": {"id": 518}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 392}, "invitee": {"id": 80}, "role": "worker", "organization": {"id": 549}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 338}, "invitee": {"id": 51}, "role": "owner", "organization": {"id": 532}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 388}, "invitee": {"id": 1}, "role": "maintainer", "organization": {"id": 514}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 353}, "invitee": {"id": 44}, "role": "supervisor", "organization": {"id": 582}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 302}, "invitee": {"id": 59}, "role": "worker", "organization": {"id": 559}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 318}, "invitee": {"id": 95}, "role": "owner", "organization": {"id": 577}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 362}, "invitee": {"id": 41}, "role": "maintainer", "organization": {"id": 517}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 371}, "invitee": {"id": 57}, "role": "supervisor", "organization": {"id": 505}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 353}, "invitee": {"id": 19}, "role": "worker", "organization": {"id": 505}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 361}, "invitee": {"id": 47}, "role": "owner", "organization": {"id": 575}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 301}, "invitee": {"id": 48}, "role": "maintainer", "organization": {"id": 561}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 338}, "invitee": {"id": 92}, "role": "supervisor", "organization": {"id": 511}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 357}, "invitee": {"id": 28}, "role": "worker", "organization": {"id": 563}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 385}, "invitee": {"id": 427}, "role": "owner", "organization": {"id": 521}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 372}, "invitee": {"id": 446}, "role": "maintainer", "organization": {"id": 547}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 338}, "invitee": {"id": 427}, "role": "supervisor", "organization": {"id": 505}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 372}, "invitee": {"id": 464}, "role": "worker", "organization": {"id": 578}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 377}, "invitee": {"id": 406}, "role": "owner", "organization": {"id": 509}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 347}, "invitee": {"id": 444}, "role": "maintainer", "organization": {"id": 516}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 323}, "invitee": {"id": 431}, "role": "supervisor", "organization": {"id": 535}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 372}, "invitee": {"id": 450}, "role": "worker", "organization": {"id": 574}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 321}, "invitee": {"id": 416}, "role": "owner", "organization": {"id": 574}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 333}, "invitee": {"id": 431}, "role": "maintainer", "organization": {"id": 565}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 336}, "invitee": {"id": 401}, "role": "supervisor", "organization": {"id": 566}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 332}, "invitee": {"id": 497}, "role": "worker", "organization": {"id": 583}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 350}, "invitee": {"id": 466}, "role": "owner", "organization": {"id": 579}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 321}, "invitee": {"id": 416}, "role": "maintainer", "organization": {"id": 556}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 313}, "invitee": {"id": 458}, "role": "supervisor", "organization": {"id": 529}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 361}, "invitee": {"id": 470}, "role": "worker", "organization": {"id": 598}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 353}, "invitee": {"id": 417}, "role": "owner", "organization": {"id": 500}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 307}, "invitee": {"id": 408}, "role": "maintainer", "organization": {"id": 598}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 359}, "invitee": {"id": 413}, "role": "supervisor", "organization": {"id": 581}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 384}, "invitee": {"id": 482}, "role": "worker", "organization": {"id": 589}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 42}, "invitee": {"id": 469}, "role": "owner", "organization": {"id": 598}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 20}, "invitee": {"id": 445}, "role": "maintainer", "organization": {"id": 599}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 11}, "invitee": {"id": 421}, "role": "supervisor", "organization": {"id": 568}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 43}, "invitee": {"id": 492}, "role": "worker", "organization": {"id": 588}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 31}, "invitee": {"id": 446}, "role": "owner", "organization": {"id": 145}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 70}, "invitee": {"id": 439}, "role": "maintainer", "organization": {"id": 125}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 75}, "invitee": {"id": 400}, "role": "supervisor", "organization": {"id": 123}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 3}, "invitee": {"id": 414}, "role": "worker", "organization": {"id": 137}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 90}, "invitee": {"id": 400}, "role": "owner", "organization": {"id": 578}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 82}, "invitee": {"id": 446}, "role": "maintainer", "organization": {"id": 520}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 8}, "invitee": {"id": 460}, "role": "supervisor", "organization": {"id": 542}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 51}, "invitee": {"id": 454}, "role": "worker", "organization": {"id": 571}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 30}, "invitee": {"id": 417}, "role": "owner", "organization": {"id": 132}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 88}, "invitee": {"id": 485}, "role": "maintainer", "organization": {"id": 186}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 82}, "invitee": {"id": 472}, "role": "supervisor", "organization": {"id": 119}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 48}, "invitee": {"id": 485}, "role": "worker", "organization": {"id": 147}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 81}, "invitee": {"id": 468}, "role": "owner", "organization": {"id": 507}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 0}, "invitee": {"id": 462}, "role": "maintainer", "organization": {"id": 531}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 64}, "invitee": {"id": 439}, "role": "supervisor", "organization": {"id": 587}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 64}, "invitee": {"id": 449}, "role": "worker", "organization": {"id": 516}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 74}, "invitee": {"id": 467}, "role": "owner", "organization": {"id": 164}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 40}, "invitee": {"id": 478}, "role": "maintainer", "organization": {"id": 114}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 24}, "invitee": {"id": 455}, "role": "supervisor", "organization": {"id": 149}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 1}, "invitee": {"id": 483}, "role": "worker", "organization": {"id": 169}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 85}, "invitee": {"id": 444}, "role": "owner", "organization": {"id": 543}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 12}, "invitee": {"id": 427}, "role": "maintainer", "organization": {"id": 533}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 10}, "invitee": {"id": 440}, "role": "supervisor", "organization": {"id": 583}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 72}, "invitee": {"id": 495}, "role": "worker", "organization": {"id": 506}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 34}, "invitee": {"id": 449}, "role": "owner", "organization": {"id": 181}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 96}, "invitee": {"id": 484}, "role": "maintainer", "organization": {"id": 194}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 59}, "invitee": {"id": 484}, "role": "supervisor", "organization": {"id": 198}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 84}, "invitee": {"id": 495}, "role": "worker", "organization": {"id": 190}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"owner": {"id": 26}, "invitee": {"id": 492}, "role": "owner", "organization": {"id": 524}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"owner": {"id": 94}, "invitee": {"id": 498}, "role": "maintainer", "organization": {"id": 512}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"owner": {"id": 80}, "invitee": {"id": 478}, "role": "supervisor", "organization": {"id": 553}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"owner": {"id": 32}, "invitee": {"id": 436}, "role": "worker", "organization": {"id": 502}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"owner": {"id": 44}, "invitee": {"id": 485}, "role": "owner", "organization": {"id": 190}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"owner": {"id": 20}, "invitee": {"id": 458}, "role": "maintainer", "organization": {"id": 156}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"owner": {"id": 79}, "invitee": {"id": 469}, "role": "supervisor", "organization": {"id": 139}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"owner": {"id": 11}, "invitee": {"id": 479}, "role": "worker", "organization": {"id": 182}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 9}, "invitee": {"id": 451}, "role": "owner", "organization": {"id": 533}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 23}, "invitee": {"id": 433}, "role": "maintainer", "organization": {"id": 538}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 0}, "invitee": {"id": 494}, "role": "supervisor", "organization": {"id": 577}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 27}, "invitee": {"id": 477}, "role": "worker", "organization": {"id": 570}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 26}, "invitee": {"id": 495}, "role": "owner", "organization": {"id": 155}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 5}, "invitee": {"id": 400}, "role": "maintainer", "organization": {"id": 133}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 7}, "invitee": {"id": 439}, "role": "supervisor", "organization": {"id": 147}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 98}, "invitee": {"id": 428}, "role": "worker", "organization": {"id": 127}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 34}, "invitee": {"id": 458}, "role": "owner", "organization": {"id": 505}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 89}, "invitee": {"id": 458}, "role": "maintainer", "organization": {"id": 544}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 54}, "invitee": {"id": 437}, "role": "supervisor", "organization": {"id": 540}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 42}, "invitee": {"id": 486}, "role": "worker", "organization": {"id": 590}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 0}, "invitee": {"id": 482}, "role": "owner", "organization": {"id": 136}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 43}, "invitee": {"id": 404}, "role": "maintainer", "organization": {"id": 105}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 55}, "invitee": {"id": 401}, "role": "supervisor", "organization": {"id": 176}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 54}, "invitee": {"id": 485}, "role": "worker", "organization": {"id": 188}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 26}, "invitee": {"id": 410}, "role": "owner", "organization": {"id": 523}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 4}, "invitee": {"id": 480}, "role": "maintainer", "organization": {"id": 589}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 73}, "invitee": {"id": 497}, "role": "supervisor", "organization": {"id": 568}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 50}, "invitee": {"id": 400}, "role": "worker", "organization": {"id": 538}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 89}, "invitee": {"id": 402}, "role": "owner", "organization": {"id": 161}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 14}, "invitee": {"id": 407}, "role": "maintainer", "organization": {"id": 194}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 49}, "invitee": {"id": 476}, "role": "supervisor", "organization": {"id": 194}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 8}, "invitee": {"id": 434}, "role": "worker", "organization": {"id": 176}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 83}, "invitee": {"id": 420}, "role": "owner", "organization": {"id": 504}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 59}, "invitee": {"id": 481}, "role": "maintainer", "organization": {"id": 554}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 25}, "invitee": {"id": 473}, "role": "supervisor", "organization": {"id": 542}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 20}, "invitee": {"id": 481}, "role": "worker", "organization": {"id": 516}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 55}, "invitee": {"id": 459}, "role": "owner", "organization": {"id": 169}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 98}, "invitee": {"id": 469}, "role": "maintainer", "organization": {"id": 139}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 6}, "invitee": {"id": 465}, "role": "supervisor", "organization": {"id": 105}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 21}, "invitee": {"id": 482}, "role": "worker", "organization": {"id": 167}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"owner": {"id": 23}, "invitee": {"id": 408}, "role": "owner", "organization": {"id": 575}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"owner": {"id": 53}, "invitee": {"id": 442}, "role": "maintainer", "organization": {"id": 596}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"owner": {"id": 36}, "invitee": {"id": 405}, "role": "supervisor", "organization": {"id": 540}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"owner": {"id": 9}, "invitee": {"id": 425}, "role": "worker", "organization": {"id": 512}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"owner": {"id": 52}, "invitee": {"id": 441}, "role": "owner", "organization": {"id": 175}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"owner": {"id": 74}, "invitee": {"id": 467}, "role": "maintainer", "organization": {"id": 149}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"owner": {"id": 56}, "invitee": {"id": 489}, "role": "supervisor", "organization": {"id": 150}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"owner": {"id": 4}, "invitee": {"id": 442}, "role": "worker", "organization": {"id": 180}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 85}, "invitee": {"id": 435}, "role": "owner", "organization": {"id": 578}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 26}, "invitee": {"id": 410}, "role": "maintainer", "organization": {"id": 595}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 87}, "invitee": {"id": 419}, "role": "supervisor", "organization": {"id": 528}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 99}, "invitee": {"id": 433}, "role": "worker", "organization": {"id": 561}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 71}, "invitee": {"id": 403}, "role": "owner", "organization": {"id": 170}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 62}, "invitee": {"id": 441}, "role": "maintainer", "organization": {"id": 172}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 56}, "invitee": {"id": 452}, "role": "supervisor", "organization": {"id": 129}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 53}, "invitee": {"id": 463}, "role": "worker", "organization": {"id": 105}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 67}, "invitee": {"id": 488}, "role": "owner", "organization": {"id": 549}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 41}, "invitee": {"id": 498}, "role": "maintainer", "organization": {"id": 556}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 68}, "invitee": {"id": 454}, "role": "supervisor", "organization": {"id": 556}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 13}, "invitee": {"id": 490}, "role": "worker", "organization": {"id": 580}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 96}, "invitee": {"id": 464}, "role": "owner", "organization": {"id": 141}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 88}, "invitee": {"id": 443}, "role": "maintainer", "organization": {"id": 153}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 43}, "invitee": {"id": 473}, "role": "supervisor", "organization": {"id": 161}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 12}, "invitee": {"id": 460}, "role": "worker", "organization": {"id": 120}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 28}, "invitee": {"id": 490}, "role": "owner", "organization": {"id": 592}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 9}, "invitee": {"id": 436}, "role": "maintainer", "organization": {"id": 546}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 3}, "invitee": {"id": 460}, "role": "supervisor", "organization": {"id": 561}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 8}, "invitee": {"id": 418}, "role": "worker", "organization": {"id": 580}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 67}, "invitee": {"id": 478}, "role": "owner", "organization": {"id": 104}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 30}, "invitee": {"id": 403}, "role": "maintainer", "organization": {"id": 157}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 76}, "invitee": {"id": 421}, "role": "supervisor", "organization": {"id": 115}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 59}, "invitee": {"id": 475}, "role": "worker", "organization": {"id": 193}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 4}, "invitee": {"id": 471}, "role": "owner", "organization": {"id": 567}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 36}, "invitee": {"id": 412}, "role": "maintainer", "organization": {"id": 593}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 48}, "invitee": {"id": 465}, "role": "supervisor", "organization": {"id": 598}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 46}, "invitee": {"id": 422}, "role": "worker", "organization": {"id": 574}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 64}, "invitee": {"id": 497}, "role": "owner", "organization": {"id": 184}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 32}, "invitee": {"id": 472}, "role": "maintainer", "organization": {"id": 107}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 68}, "invitee": {"id": 422}, "role": "supervisor", "organization": {"id": 124}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 33}, "invitee": {"id": 444}, "role": "worker", "organization": {"id": 152}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"owner": {"id": 67}, "invitee": {"id": 490}, "role": "owner", "organization": {"id": 515}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"owner": {"id": 93}, "invitee": {"id": 491}, "role": "maintainer", "organization": {"id": 589}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 19, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"owner": {"id": 19}, "invitee": {"id": 459}, "role": "supervisor", "organization": {"id": 598}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"owner": {"id": 53}, "invitee": {"id": 413}, "role": "worker", "organization": {"id": 533}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"owner": {"id": 91}, "invitee": {"id": 439}, "role": "owner", "organization": {"id": 126}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"owner": {"id": 56}, "invitee": {"id": 473}, "role": "maintainer", "organization": {"id": 172}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"owner": {"id": 38}, "invitee": {"id": 490}, "role": "supervisor", "organization": {"id": 167}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"owner": {"id": 90}, "invitee": {"id": 452}, "role": "worker", "organization": {"id": 109}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 64}, "invitee": {"id": 402}, "role": "owner", "organization": {"id": 515}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 15}, "invitee": {"id": 481}, "role": "maintainer", "organization": {"id": 547}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 47}, "invitee": {"id": 486}, "role": "supervisor", "organization": {"id": 549}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 94}, "invitee": {"id": 489}, "role": "worker", "organization": {"id": 571}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 17}, "invitee": {"id": 465}, "role": "owner", "organization": {"id": 155}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 91}, "invitee": {"id": 439}, "role": "maintainer", "organization": {"id": 107}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 33}, "invitee": {"id": 440}, "role": "supervisor", "organization": {"id": 141}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 17}, "invitee": {"id": 458}, "role": "worker", "organization": {"id": 179}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 76}, "invitee": {"id": 439}, "role": "owner", "organization": {"id": 570}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 38}, "invitee": {"id": 468}, "role": "maintainer", "organization": {"id": 558}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 15}, "invitee": {"id": 499}, "role": "supervisor", "organization": {"id": 589}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 66}, "invitee": {"id": 493}, "role": "worker", "organization": {"id": 558}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 49}, "invitee": {"id": 421}, "role": "owner", "organization": {"id": 143}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 86}, "invitee": {"id": 413}, "role": "maintainer", "organization": {"id": 115}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 61}, "invitee": {"id": 405}, "role": "supervisor", "organization": {"id": 180}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 60}, "invitee": {"id": 418}, "role": "worker", "organization": {"id": 156}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 87}, "invitee": {"id": 419}, "role": "owner", "organization": {"id": 574}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 40}, "invitee": {"id": 428}, "role": "maintainer", "organization": {"id": 543}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 37}, "invitee": {"id": 499}, "role": "supervisor", "organization": {"id": 547}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 89}, "invitee": {"id": 468}, "role": "worker", "organization": {"id": 577}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 15}, "invitee": {"id": 439}, "role": "owner", "organization": {"id": 102}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 35}, "invitee": {"id": 485}, "role": "maintainer", "organization": {"id": 117}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 32}, "invitee": {"id": 433}, "role": "supervisor", "organization": {"id": 123}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 66}, "invitee": {"id": 421}, "role": "worker", "organization": {"id": 109}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 34}, "invitee": {"id": 423}, "role": "owner", "organization": {"id": 576}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 18}, "invitee": {"id": 457}, "role": "maintainer", "organization": {"id": 588}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 20}, "invitee": {"id": 490}, "role": "supervisor", "organization": {"id": 508}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 5}, "invitee": {"id": 486}, "role": "worker", "organization": {"id": 520}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 38}, "invitee": {"id": 416}, "role": "owner", "organization": {"id": 142}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 97}, "invitee": {"id": 480}, "role": "maintainer", "organization": {"id": 161}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 24}, "invitee": {"id": 456}, "role": "supervisor", "organization": {"id": 142}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 38}, "invitee": {"id": 433}, "role": "worker", "organization": {"id": 148}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"owner": {"id": 38}, "invitee": {"id": 460}, "role": "owner", "organization": {"id": 537}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"owner": {"id": 2}, "invitee": {"id": 483}, "role": "maintainer", "organization": {"id": 566}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"owner": {"id": 40}, "invitee": {"id": 496}, "role": "supervisor", "organization": {"id": 573}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"owner": {"id": 53}, "invitee": {"id": 416}, "role": "worker", "organization": {"id": 539}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"owner": {"id": 95}, "invitee": {"id": 449}, "role": "owner", "organization": {"id": 101}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"owner": {"id": 55}, "invitee": {"id": 405}, "role": "maintainer", "organization": {"id": 172}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"owner": {"id": 35}, "invitee": {"id": 486}, "role": "supervisor", "organization": {"id": 117}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"owner": {"id": 41}, "invitee": {"id": 450}, "role": "worker", "organization": {"id": 139}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 71}, "invitee": {"id": 465}, "role": "owner", "organization": {"id": 589}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 58}, "invitee": {"id": 425}, "role": "maintainer", "organization": {"id": 586}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 77}, "invitee": {"id": 403}, "role": "supervisor", "organization": {"id": 514}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 31}, "invitee": {"id": 456}, "role": "worker", "organization": {"id": 525}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 37}, "invitee": {"id": 491}, "role": "owner", "organization": {"id": 142}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 78}, "invitee": {"id": 442}, "role": "maintainer", "organization": {"id": 119}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 95}, "invitee": {"id": 443}, "role": "supervisor", "organization": {"id": 142}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 29}, "invitee": {"id": 434}, "role": "worker", "organization": {"id": 105}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 6}, "invitee": {"id": 417}, "role": "owner", "organization": {"id": 522}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 28}, "invitee": {"id": 448}, "role": "maintainer", "organization": {"id": 565}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 37}, "invitee": {"id": 493}, "role": "supervisor", "organization": {"id": 565}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 14}, "invitee": {"id": 402}, "role": "worker", "organization": {"id": 586}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 37}, "invitee": {"id": 431}, "role": "owner", "organization": {"id": 100}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 47}, "invitee": {"id": 478}, "role": "maintainer", "organization": {"id": 173}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 76}, "invitee": {"id": 427}, "role": "supervisor", "organization": {"id": 141}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 25}, "invitee": {"id": 434}, "role": "worker", "organization": {"id": 159}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 90}, "invitee": {"id": 442}, "role": "owner", "organization": {"id": 550}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 8}, "invitee": {"id": 463}, "role": "maintainer", "organization": {"id": 564}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 91}, "invitee": {"id": 497}, "role": "supervisor", "organization": {"id": 513}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 19, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 19}, "invitee": {"id": 410}, "role": "worker", "organization": {"id": 581}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 5}, "invitee": {"id": 459}, "role": "owner", "organization": {"id": 179}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 36}, "invitee": {"id": 420}, "role": "maintainer", "organization": {"id": 165}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 39}, "invitee": {"id": 403}, "role": "supervisor", "organization": {"id": 133}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 68}, "invitee": {"id": 436}, "role": "worker", "organization": {"id": 134}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 62}, "invitee": {"id": 409}, "role": "owner", "organization": {"id": 587}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 53}, "invitee": {"id": 417}, "role": "maintainer", "organization": {"id": 521}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 49}, "invitee": {"id": 496}, "role": "supervisor", "organization": {"id": 558}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 28}, "invitee": {"id": 450}, "role": "worker", "organization": {"id": 509}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 57}, "invitee": {"id": 403}, "role": "owner", "organization": {"id": 148}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 45}, "invitee": {"id": 407}, "role": "maintainer", "organization": {"id": 147}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 90}, "invitee": {"id": 461}, "role": "supervisor", "organization": {"id": 103}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 21}, "invitee": {"id": 410}, "role": "worker", "organization": {"id": 158}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"owner": {"id": 33}, "invitee": {"id": 436}, "role": "owner", "organization": {"id": 505}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"owner": {"id": 70}, "invitee": {"id": 400}, "role": "maintainer", "organization": {"id": 575}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"owner": {"id": 68}, "invitee": {"id": 480}, "role": "supervisor", "organization": {"id": 592}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"owner": {"id": 80}, "invitee": {"id": 415}, "role": "worker", "organization": {"id": 541}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"owner": {"id": 94}, "invitee": {"id": 434}, "role": "owner", "organization": {"id": 147}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"owner": {"id": 56}, "invitee": {"id": 403}, "role": "maintainer", "organization": {"id": 103}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"owner": {"id": 5}, "invitee": {"id": 498}, "role": "supervisor", "organization": {"id": 128}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"owner": {"id": 68}, "invitee": {"id": 499}, "role": "worker", "organization": {"id": 102}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_OWNER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 325}, "invitee": {"id": 34}, "role": "owner", "organization": {"id": 585}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 368}, "invitee": {"id": 59}, "role": "maintainer", "organization": {"id": 583}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 344}, "invitee": {"id": 18}, "role": "supervisor", "organization": {"id": 590}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_OWNER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 303}, "invitee": {"id": 70}, "role": "worker", "organization": {"id": 534}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_OWNER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 388}, "invitee": {"id": 3}, "role": "owner", "organization": {"id": 100}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 309}, "invitee": {"id": 28}, "role": "maintainer", "organization": {"id": 170}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 300}, "invitee": {"id": 19}, "role": "supervisor", "organization": {"id": 102}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 322}, "invitee": {"id": 44}, "role": "worker", "organization": {"id": 199}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 363}, "invitee": {"id": 89}, "role": "owner", "organization": {"id": 593}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 395}, "invitee": {"id": 40}, "role": "maintainer", "organization": {"id": 562}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 343}, "invitee": {"id": 6}, "role": "supervisor", "organization": {"id": 582}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 359}, "invitee": {"id": 21}, "role": "worker", "organization": {"id": 526}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 399}, "invitee": {"id": 26}, "role": "owner", "organization": {"id": 126}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 326}, "invitee": {"id": 25}, "role": "maintainer", "organization": {"id": 104}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 312}, "invitee": {"id": 4}, "role": "supervisor", "organization": {"id": 146}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 344}, "invitee": {"id": 1}, "role": "worker", "organization": {"id": 137}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 326}, "invitee": {"id": 24}, "role": "owner", "organization": {"id": 597}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 382}, "invitee": {"id": 24}, "role": "maintainer", "organization": {"id": 545}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 344}, "invitee": {"id": 2}, "role": "supervisor", "organization": {"id": 545}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 394}, "invitee": {"id": 20}, "role": "worker", "organization": {"id": 564}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 362}, "invitee": {"id": 27}, "role": "owner", "organization": {"id": 192}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 353}, "invitee": {"id": 78}, "role": "maintainer", "organization": {"id": 169}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 392}, "invitee": {"id": 35}, "role": "supervisor", "organization": {"id": 134}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 366}, "invitee": {"id": 18}, "role": "worker", "organization": {"id": 184}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_WORKER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 348}, "invitee": {"id": 60}, "role": "owner", "organization": {"id": 504}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 363}, "invitee": {"id": 76}, "role": "maintainer", "organization": {"id": 579}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 375}, "invitee": {"id": 48}, "role": "supervisor", "organization": {"id": 583}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_WORKER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 392}, "invitee": {"id": 19}, "role": "worker", "organization": {"id": 587}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_WORKER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 360}, "invitee": {"id": 76}, "role": "owner", "organization": {"id": 160}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 358}, "invitee": {"id": 73}, "role": "maintainer", "organization": {"id": 160}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 332}, "invitee": {"id": 6}, "role": "supervisor", "organization": {"id": 143}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_WORKER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 353}, "invitee": {"id": 43}, "role": "worker", "organization": {"id": 141}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"owner": {"id": 345}, "invitee": {"id": 37}, "role": "owner", "organization": {"id": 573}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"owner": {"id": 385}, "invitee": {"id": 59}, "role": "maintainer", "organization": {"id": 589}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"owner": {"id": 301}, "invitee": {"id": 39}, "role": "supervisor", "organization": {"id": 578}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"owner": {"id": 301}, "invitee": {"id": 58}, "role": "worker", "organization": {"id": 575}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"owner": {"id": 380}, "invitee": {"id": 79}, "role": "owner", "organization": {"id": 154}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"owner": {"id": 350}, "invitee": {"id": 5}, "role": "maintainer", "organization": {"id": 199}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"owner": {"id": 306}, "invitee": {"id": 64}, "role": "supervisor", "organization": {"id": 123}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"owner": {"id": 317}, "invitee": {"id": 22}, "role": "worker", "organization": {"id": 163}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 343}, "invitee": {"id": 57}, "role": "owner", "organization": {"id": 570}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 306}, "invitee": {"id": 50}, "role": "maintainer", "organization": {"id": 559}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 390}, "invitee": {"id": 0}, "role": "supervisor", "organization": {"id": 525}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 310}, "invitee": {"id": 51}, "role": "worker", "organization": {"id": 545}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_OWNER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 351}, "invitee": {"id": 64}, "role": "owner", "organization": {"id": 110}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 379}, "invitee": {"id": 92}, "role": "maintainer", "organization": {"id": 179}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 376}, "invitee": {"id": 93}, "role": "supervisor", "organization": {"id": 159}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 379}, "invitee": {"id": 52}, "role": "worker", "organization": {"id": 101}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 340}, "invitee": {"id": 67}, "role": "owner", "organization": {"id": 579}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 308}, "invitee": {"id": 52}, "role": "maintainer", "organization": {"id": 505}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 352}, "invitee": {"id": 55}, "role": "supervisor", "organization": {"id": 567}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 384}, "invitee": {"id": 84}, "role": "worker", "organization": {"id": 547}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 355}, "invitee": {"id": 51}, "role": "owner", "organization": {"id": 175}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 358}, "invitee": {"id": 14}, "role": "maintainer", "organization": {"id": 141}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 349}, "invitee": {"id": 19}, "role": "supervisor", "organization": {"id": 151}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 389}, "invitee": {"id": 66}, "role": "worker", "organization": {"id": 136}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 354}, "invitee": {"id": 89}, "role": "owner", "organization": {"id": 581}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 303}, "invitee": {"id": 73}, "role": "maintainer", "organization": {"id": 530}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 368}, "invitee": {"id": 67}, "role": "supervisor", "organization": {"id": 581}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 314}, "invitee": {"id": 38}, "role": "worker", "organization": {"id": 553}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 316}, "invitee": {"id": 53}, "role": "owner", "organization": {"id": 192}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 380}, "invitee": {"id": 22}, "role": "maintainer", "organization": {"id": 161}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 356}, "invitee": {"id": 18}, "role": "supervisor", "organization": {"id": 148}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 383}, "invitee": {"id": 3}, "role": "worker", "organization": {"id": 111}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 368}, "invitee": {"id": 86}, "role": "owner", "organization": {"id": 577}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 301}, "invitee": {"id": 0}, "role": "maintainer", "organization": {"id": 523}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 397}, "invitee": {"id": 52}, "role": "supervisor", "organization": {"id": 546}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 300}, "invitee": {"id": 68}, "role": "worker", "organization": {"id": 528}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_WORKER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 324}, "invitee": {"id": 82}, "role": "owner", "organization": {"id": 178}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 375}, "invitee": {"id": 73}, "role": "maintainer", "organization": {"id": 195}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 306}, "invitee": {"id": 60}, "role": "supervisor", "organization": {"id": 129}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_WORKER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 392}, "invitee": {"id": 95}, "role": "worker", "organization": {"id": 145}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"owner": {"id": 396}, "invitee": {"id": 26}, "role": "owner", "organization": {"id": 529}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"owner": {"id": 355}, "invitee": {"id": 82}, "role": "maintainer", "organization": {"id": 516}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"owner": {"id": 355}, "invitee": {"id": 12}, "role": "supervisor", "organization": {"id": 513}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"owner": {"id": 389}, "invitee": {"id": 37}, "role": "worker", "organization": {"id": 500}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"owner": {"id": 345}, "invitee": {"id": 25}, "role": "owner", "organization": {"id": 112}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"owner": {"id": 323}, "invitee": {"id": 7}, "role": "maintainer", "organization": {"id": 139}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"owner": {"id": 399}, "invitee": {"id": 79}, "role": "supervisor", "organization": {"id": 140}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"owner": {"id": 357}, "invitee": {"id": 9}, "role": "worker", "organization": {"id": 117}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 345}, "invitee": {"id": 98}, "role": "owner", "organization": {"id": 579}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 370}, "invitee": {"id": 20}, "role": "maintainer", "organization": {"id": 502}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 359}, "invitee": {"id": 8}, "role": "supervisor", "organization": {"id": 507}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 335}, "invitee": {"id": 70}, "role": "worker", "organization": {"id": 514}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_OWNER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 337}, "invitee": {"id": 73}, "role": "owner", "organization": {"id": 196}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 347}, "invitee": {"id": 52}, "role": "maintainer", "organization": {"id": 196}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 314}, "invitee": {"id": 98}, "role": "supervisor", "organization": {"id": 154}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 339}, "invitee": {"id": 53}, "role": "worker", "organization": {"id": 161}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 384}, "invitee": {"id": 47}, "role": "owner", "organization": {"id": 561}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 335}, "invitee": {"id": 3}, "role": "maintainer", "organization": {"id": 585}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 322}, "invitee": {"id": 59}, "role": "supervisor", "organization": {"id": 573}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 310}, "invitee": {"id": 25}, "role": "worker", "organization": {"id": 530}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 382}, "invitee": {"id": 68}, "role": "owner", "organization": {"id": 153}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 352}, "invitee": {"id": 21}, "role": "maintainer", "organization": {"id": 191}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 375}, "invitee": {"id": 65}, "role": "supervisor", "organization": {"id": 102}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 309}, "invitee": {"id": 63}, "role": "worker", "organization": {"id": 132}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 332}, "invitee": {"id": 36}, "role": "owner", "organization": {"id": 556}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 338}, "invitee": {"id": 58}, "role": "maintainer", "organization": {"id": 551}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 340}, "invitee": {"id": 36}, "role": "supervisor", "organization": {"id": 510}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 340}, "invitee": {"id": 85}, "role": "worker", "organization": {"id": 572}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 394}, "invitee": {"id": 52}, "role": "owner", "organization": {"id": 182}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 303}, "invitee": {"id": 45}, "role": "maintainer", "organization": {"id": 190}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 388}, "invitee": {"id": 43}, "role": "supervisor", "organization": {"id": 167}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 371}, "invitee": {"id": 99}, "role": "worker", "organization": {"id": 161}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 366}, "invitee": {"id": 99}, "role": "owner", "organization": {"id": 507}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 328}, "invitee": {"id": 48}, "role": "maintainer", "organization": {"id": 582}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 355}, "invitee": {"id": 15}, "role": "supervisor", "organization": {"id": 542}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 314}, "invitee": {"id": 64}, "role": "worker", "organization": {"id": 510}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_WORKER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 337}, "invitee": {"id": 37}, "role": "owner", "organization": {"id": 138}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 338}, "invitee": {"id": 9}, "role": "maintainer", "organization": {"id": 198}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 309}, "invitee": {"id": 86}, "role": "supervisor", "organization": {"id": 121}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_WORKER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 307}, "invitee": {"id": 56}, "role": "worker", "organization": {"id": 138}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"owner": {"id": 337}, "invitee": {"id": 55}, "role": "owner", "organization": {"id": 552}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"owner": {"id": 343}, "invitee": {"id": 99}, "role": "maintainer", "organization": {"id": 545}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"owner": {"id": 366}, "invitee": {"id": 74}, "role": "supervisor", "organization": {"id": 504}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"owner": {"id": 344}, "invitee": {"id": 18}, "role": "worker", "organization": {"id": 582}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"owner": {"id": 338}, "invitee": {"id": 20}, "role": "owner", "organization": {"id": 127}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"owner": {"id": 313}, "invitee": {"id": 56}, "role": "maintainer", "organization": {"id": 180}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"owner": {"id": 333}, "invitee": {"id": 35}, "role": "supervisor", "organization": {"id": 181}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_USER_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"owner": {"id": 368}, "invitee": {"id": 25}, "role": "worker", "organization": {"id": 176}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 379}, "invitee": {"id": 79}, "role": "owner", "organization": {"id": 593}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 361}, "invitee": {"id": 16}, "role": "maintainer", "organization": {"id": 532}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 326}, "invitee": {"id": 30}, "role": "supervisor", "organization": {"id": 578}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 327}, "invitee": {"id": 5}, "role": "worker", "organization": {"id": 577}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_OWNER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 349}, "invitee": {"id": 21}, "role": "owner", "organization": {"id": 147}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 322}, "invitee": {"id": 16}, "role": "maintainer", "organization": {"id": 178}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 375}, "invitee": {"id": 98}, "role": "supervisor", "organization": {"id": 195}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_OWNER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 366}, "invitee": {"id": 18}, "role": "worker", "organization": {"id": 143}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 350}, "invitee": {"id": 64}, "role": "owner", "organization": {"id": 569}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 383}, "invitee": {"id": 76}, "role": "maintainer", "organization": {"id": 512}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 362}, "invitee": {"id": 80}, "role": "supervisor", "organization": {"id": 598}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 367}, "invitee": {"id": 73}, "role": "worker", "organization": {"id": 521}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 315}, "invitee": {"id": 55}, "role": "owner", "organization": {"id": 145}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 321}, "invitee": {"id": 54}, "role": "maintainer", "organization": {"id": 136}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 315}, "invitee": {"id": 57}, "role": "supervisor", "organization": {"id": 169}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 347}, "invitee": {"id": 62}, "role": "worker", "organization": {"id": 199}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 334}, "invitee": {"id": 81}, "role": "owner", "organization": {"id": 542}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 359}, "invitee": {"id": 17}, "role": "maintainer", "organization": {"id": 517}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 366}, "invitee": {"id": 71}, "role": "supervisor", "organization": {"id": 531}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 305}, "invitee": {"id": 49}, "role": "worker", "organization": {"id": 589}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 380}, "invitee": {"id": 8}, "role": "owner", "organization": {"id": 102}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 311}, "invitee": {"id": 34}, "role": "maintainer", "organization": {"id": 110}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 373}, "invitee": {"id": 13}, "role": "supervisor", "organization": {"id": 104}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 345}, "invitee": {"id": 1}, "role": "worker", "organization": {"id": 187}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 345}, "invitee": {"id": 96}, "role": "owner", "organization": {"id": 583}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 308}, "invitee": {"id": 16}, "role": "maintainer", "organization": {"id": 591}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 362}, "invitee": {"id": 18}, "role": "supervisor", "organization": {"id": 596}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 358}, "invitee": {"id": 62}, "role": "worker", "organization": {"id": 571}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_WORKER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 341}, "invitee": {"id": 13}, "role": "owner", "organization": {"id": 178}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 387}, "invitee": {"id": 15}, "role": "maintainer", "organization": {"id": 196}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 324}, "invitee": {"id": 48}, "role": "supervisor", "organization": {"id": 191}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_WORKER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 384}, "invitee": {"id": 58}, "role": "worker", "organization": {"id": 118}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"owner": {"id": 389}, "invitee": {"id": 11}, "role": "owner", "organization": {"id": 546}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"owner": {"id": 345}, "invitee": {"id": 35}, "role": "maintainer", "organization": {"id": 515}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"owner": {"id": 360}, "invitee": {"id": 87}, "role": "supervisor", "organization": {"id": 574}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"owner": {"id": 395}, "invitee": {"id": 48}, "role": "worker", "organization": {"id": 543}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"owner": {"id": 386}, "invitee": {"id": 35}, "role": "owner", "organization": {"id": 194}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"owner": {"id": 388}, "invitee": {"id": 34}, "role": "maintainer", "organization": {"id": 131}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"owner": {"id": 351}, "invitee": {"id": 45}, "role": "supervisor", "organization": {"id": 125}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"owner": {"id": 355}, "invitee": {"id": 80}, "role": "worker", "organization": {"id": 116}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 349}, "invitee": {"id": 42}, "role": "owner", "organization": {"id": 503}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 336}, "invitee": {"id": 66}, "role": "maintainer", "organization": {"id": 510}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 385}, "invitee": {"id": 51}, "role": "supervisor", "organization": {"id": 514}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 366}, "invitee": {"id": 72}, "role": "worker", "organization": {"id": 510}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_OWNER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 382}, "invitee": {"id": 50}, "role": "owner", "organization": {"id": 198}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 330}, "invitee": {"id": 95}, "role": "maintainer", "organization": {"id": 100}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 315}, "invitee": {"id": 11}, "role": "supervisor", "organization": {"id": 146}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_OWNER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 61, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 350}, "invitee": {"id": 61}, "role": "worker", "organization": {"id": 113}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 341}, "invitee": {"id": 12}, "role": "owner", "organization": {"id": 580}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 358}, "invitee": {"id": 57}, "role": "maintainer", "organization": {"id": 561}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 325}, "invitee": {"id": 74}, "role": "supervisor", "organization": {"id": 522}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 352}, "invitee": {"id": 33}, "role": "worker", "organization": {"id": 596}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 369}, "invitee": {"id": 31}, "role": "owner", "organization": {"id": 194}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 303}, "invitee": {"id": 46}, "role": "maintainer", "organization": {"id": 170}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 391}, "invitee": {"id": 63}, "role": "supervisor", "organization": {"id": 100}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 314}, "invitee": {"id": 94}, "role": "worker", "organization": {"id": 134}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 397}, "invitee": {"id": 42}, "role": "owner", "organization": {"id": 599}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 310}, "invitee": {"id": 83}, "role": "maintainer", "organization": {"id": 571}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 311}, "invitee": {"id": 86}, "role": "supervisor", "organization": {"id": 532}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 382}, "invitee": {"id": 96}, "role": "worker", "organization": {"id": 527}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 346}, "invitee": {"id": 99}, "role": "owner", "organization": {"id": 175}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 373}, "invitee": {"id": 93}, "role": "maintainer", "organization": {"id": 145}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 323}, "invitee": {"id": 45}, "role": "supervisor", "organization": {"id": 144}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 359}, "invitee": {"id": 80}, "role": "worker", "organization": {"id": 137}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 335}, "invitee": {"id": 11}, "role": "owner", "organization": {"id": 584}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 369}, "invitee": {"id": 45}, "role": "maintainer", "organization": {"id": 550}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 388}, "invitee": {"id": 48}, "role": "supervisor", "organization": {"id": 547}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 304}, "invitee": {"id": 73}, "role": "worker", "organization": {"id": 597}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_WORKER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 344}, "invitee": {"id": 54}, "role": "owner", "organization": {"id": 113}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 317}, "invitee": {"id": 41}, "role": "maintainer", "organization": {"id": 152}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 375}, "invitee": {"id": 21}, "role": "supervisor", "organization": {"id": 150}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_WORKER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 313}, "invitee": {"id": 63}, "role": "worker", "organization": {"id": 156}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"owner": {"id": 389}, "invitee": {"id": 24}, "role": "owner", "organization": {"id": 585}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"owner": {"id": 363}, "invitee": {"id": 74}, "role": "maintainer", "organization": {"id": 501}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"owner": {"id": 385}, "invitee": {"id": 87}, "role": "supervisor", "organization": {"id": 588}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"owner": {"id": 362}, "invitee": {"id": 48}, "role": "worker", "organization": {"id": 517}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"owner": {"id": 379}, "invitee": {"id": 17}, "role": "owner", "organization": {"id": 181}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"owner": {"id": 337}, "invitee": {"id": 63}, "role": "maintainer", "organization": {"id": 142}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"owner": {"id": 392}, "invitee": {"id": 58}, "role": "supervisor", "organization": {"id": 114}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_INVITEE_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"owner": {"id": 371}, "invitee": {"id": 57}, "role": "worker", "organization": {"id": 121}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 367}, "invitee": {"id": 402}, "role": "owner", "organization": {"id": 542}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 337}, "invitee": {"id": 448}, "role": "maintainer", "organization": {"id": 531}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 381}, "invitee": {"id": 418}, "role": "supervisor", "organization": {"id": 510}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 363}, "invitee": {"id": 400}, "role": "worker", "organization": {"id": 554}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 324}, "invitee": {"id": 456}, "role": "owner", "organization": {"id": 146}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 369}, "invitee": {"id": 420}, "role": "maintainer", "organization": {"id": 198}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 394}, "invitee": {"id": 418}, "role": "supervisor", "organization": {"id": 147}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 381}, "invitee": {"id": 498}, "role": "worker", "organization": {"id": 126}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 315}, "invitee": {"id": 467}, "role": "owner", "organization": {"id": 549}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 346}, "invitee": {"id": 446}, "role": "maintainer", "organization": {"id": 584}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 387}, "invitee": {"id": 481}, "role": "supervisor", "organization": {"id": 564}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 385}, "invitee": {"id": 498}, "role": "worker", "organization": {"id": 574}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 343}, "invitee": {"id": 408}, "role": "owner", "organization": {"id": 115}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 315}, "invitee": {"id": 464}, "role": "maintainer", "organization": {"id": 179}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 375}, "invitee": {"id": 404}, "role": "supervisor", "organization": {"id": 196}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 326}, "invitee": {"id": 403}, "role": "worker", "organization": {"id": 124}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 345}, "invitee": {"id": 429}, "role": "owner", "organization": {"id": 565}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 329}, "invitee": {"id": 446}, "role": "maintainer", "organization": {"id": 501}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 345}, "invitee": {"id": 412}, "role": "supervisor", "organization": {"id": 514}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 399}, "invitee": {"id": 463}, "role": "worker", "organization": {"id": 583}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 326}, "invitee": {"id": 440}, "role": "owner", "organization": {"id": 140}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 351}, "invitee": {"id": 466}, "role": "maintainer", "organization": {"id": 187}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 387}, "invitee": {"id": 483}, "role": "supervisor", "organization": {"id": 166}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 332}, "invitee": {"id": 429}, "role": "worker", "organization": {"id": 173}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 388}, "invitee": {"id": 455}, "role": "owner", "organization": {"id": 599}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 393}, "invitee": {"id": 452}, "role": "maintainer", "organization": {"id": 591}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 360}, "invitee": {"id": 404}, "role": "supervisor", "organization": {"id": 565}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 344}, "invitee": {"id": 420}, "role": "worker", "organization": {"id": 592}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 363}, "invitee": {"id": 428}, "role": "owner", "organization": {"id": 184}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 324}, "invitee": {"id": 481}, "role": "maintainer", "organization": {"id": 103}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 347}, "invitee": {"id": 455}, "role": "supervisor", "organization": {"id": 147}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 390}, "invitee": {"id": 465}, "role": "worker", "organization": {"id": 134}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"owner": {"id": 322}, "invitee": {"id": 470}, "role": "owner", "organization": {"id": 574}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"owner": {"id": 359}, "invitee": {"id": 435}, "role": "maintainer", "organization": {"id": 587}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"owner": {"id": 300}, "invitee": {"id": 403}, "role": "supervisor", "organization": {"id": 516}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"owner": {"id": 307}, "invitee": {"id": 469}, "role": "worker", "organization": {"id": 578}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"owner": {"id": 332}, "invitee": {"id": 430}, "role": "owner", "organization": {"id": 105}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"owner": {"id": 312}, "invitee": {"id": 496}, "role": "maintainer", "organization": {"id": 143}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"owner": {"id": 322}, "invitee": {"id": 406}, "role": "supervisor", "organization": {"id": 130}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"owner": {"id": 365}, "invitee": {"id": 474}, "role": "worker", "organization": {"id": 156}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 354}, "invitee": {"id": 461}, "role": "owner", "organization": {"id": 594}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 303}, "invitee": {"id": 499}, "role": "maintainer", "organization": {"id": 567}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 333}, "invitee": {"id": 461}, "role": "supervisor", "organization": {"id": 563}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 306}, "invitee": {"id": 411}, "role": "worker", "organization": {"id": 587}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 300}, "invitee": {"id": 418}, "role": "owner", "organization": {"id": 169}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 337}, "invitee": {"id": 449}, "role": "maintainer", "organization": {"id": 119}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 373}, "invitee": {"id": 421}, "role": "supervisor", "organization": {"id": 138}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 314}, "invitee": {"id": 464}, "role": "worker", "organization": {"id": 185}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 352}, "invitee": {"id": 415}, "role": "owner", "organization": {"id": 521}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 308}, "invitee": {"id": 480}, "role": "maintainer", "organization": {"id": 561}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 310}, "invitee": {"id": 457}, "role": "supervisor", "organization": {"id": 550}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 384}, "invitee": {"id": 446}, "role": "worker", "organization": {"id": 572}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 338}, "invitee": {"id": 462}, "role": "owner", "organization": {"id": 175}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 309}, "invitee": {"id": 474}, "role": "maintainer", "organization": {"id": 125}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 303}, "invitee": {"id": 480}, "role": "supervisor", "organization": {"id": 199}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 361}, "invitee": {"id": 421}, "role": "worker", "organization": {"id": 142}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 357}, "invitee": {"id": 445}, "role": "owner", "organization": {"id": 582}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 315}, "invitee": {"id": 496}, "role": "maintainer", "organization": {"id": 589}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 306}, "invitee": {"id": 450}, "role": "supervisor", "organization": {"id": 581}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 329}, "invitee": {"id": 452}, "role": "worker", "organization": {"id": 561}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 342}, "invitee": {"id": 448}, "role": "owner", "organization": {"id": 144}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 320}, "invitee": {"id": 494}, "role": "maintainer", "organization": {"id": 189}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 381}, "invitee": {"id": 466}, "role": "supervisor", "organization": {"id": 188}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 300}, "invitee": {"id": 410}, "role": "worker", "organization": {"id": 145}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 378}, "invitee": {"id": 418}, "role": "owner", "organization": {"id": 532}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 363}, "invitee": {"id": 480}, "role": "maintainer", "organization": {"id": 528}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 339}, "invitee": {"id": 486}, "role": "supervisor", "organization": {"id": 521}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 321}, "invitee": {"id": 454}, "role": "worker", "organization": {"id": 503}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 377}, "invitee": {"id": 425}, "role": "owner", "organization": {"id": 149}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 318}, "invitee": {"id": 412}, "role": "maintainer", "organization": {"id": 155}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 307}, "invitee": {"id": 467}, "role": "supervisor", "organization": {"id": 102}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 359}, "invitee": {"id": 470}, "role": "worker", "organization": {"id": 142}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"owner": {"id": 362}, "invitee": {"id": 444}, "role": "owner", "organization": {"id": 581}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"owner": {"id": 330}, "invitee": {"id": 426}, "role": "maintainer", "organization": {"id": 518}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"owner": {"id": 345}, "invitee": {"id": 490}, "role": "supervisor", "organization": {"id": 510}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"owner": {"id": 352}, "invitee": {"id": 417}, "role": "worker", "organization": {"id": 511}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"owner": {"id": 335}, "invitee": {"id": 439}, "role": "owner", "organization": {"id": 147}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"owner": {"id": 359}, "invitee": {"id": 450}, "role": "maintainer", "organization": {"id": 143}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"owner": {"id": 387}, "invitee": {"id": 413}, "role": "supervisor", "organization": {"id": 196}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"owner": {"id": 384}, "invitee": {"id": 478}, "role": "worker", "organization": {"id": 153}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 397}, "invitee": {"id": 499}, "role": "owner", "organization": {"id": 568}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 396}, "invitee": {"id": 480}, "role": "maintainer", "organization": {"id": 539}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 347}, "invitee": {"id": 493}, "role": "supervisor", "organization": {"id": 517}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 341}, "invitee": {"id": 420}, "role": "worker", "organization": {"id": 500}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 375}, "invitee": {"id": 405}, "role": "owner", "organization": {"id": 188}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 391}, "invitee": {"id": 420}, "role": "maintainer", "organization": {"id": 116}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 342}, "invitee": {"id": 455}, "role": "supervisor", "organization": {"id": 111}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 333}, "invitee": {"id": 420}, "role": "worker", "organization": {"id": 150}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 368}, "invitee": {"id": 465}, "role": "owner", "organization": {"id": 519}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 378}, "invitee": {"id": 460}, "role": "maintainer", "organization": {"id": 551}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 335}, "invitee": {"id": 460}, "role": "supervisor", "organization": {"id": 587}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 373}, "invitee": {"id": 451}, "role": "worker", "organization": {"id": 513}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 387}, "invitee": {"id": 460}, "role": "owner", "organization": {"id": 155}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 372}, "invitee": {"id": 480}, "role": "maintainer", "organization": {"id": 182}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 316}, "invitee": {"id": 409}, "role": "supervisor", "organization": {"id": 163}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 301}, "invitee": {"id": 488}, "role": "worker", "organization": {"id": 106}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 363}, "invitee": {"id": 413}, "role": "owner", "organization": {"id": 554}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 362}, "invitee": {"id": 413}, "role": "maintainer", "organization": {"id": 504}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 330}, "invitee": {"id": 475}, "role": "supervisor", "organization": {"id": 584}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 312}, "invitee": {"id": 482}, "role": "worker", "organization": {"id": 550}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 357}, "invitee": {"id": 459}, "role": "owner", "organization": {"id": 148}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 305}, "invitee": {"id": 461}, "role": "maintainer", "organization": {"id": 196}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 346}, "invitee": {"id": 499}, "role": "supervisor", "organization": {"id": 140}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 310}, "invitee": {"id": 458}, "role": "worker", "organization": {"id": 136}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 326}, "invitee": {"id": 448}, "role": "owner", "organization": {"id": 572}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 393}, "invitee": {"id": 427}, "role": "maintainer", "organization": {"id": 553}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 329}, "invitee": {"id": 483}, "role": "supervisor", "organization": {"id": 578}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 340}, "invitee": {"id": 428}, "role": "worker", "organization": {"id": 536}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 345}, "invitee": {"id": 486}, "role": "owner", "organization": {"id": 138}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 302}, "invitee": {"id": 473}, "role": "maintainer", "organization": {"id": 186}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 380}, "invitee": {"id": 480}, "role": "supervisor", "organization": {"id": 134}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 374}, "invitee": {"id": 436}, "role": "worker", "organization": {"id": 147}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"owner": {"id": 395}, "invitee": {"id": 479}, "role": "owner", "organization": {"id": 592}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"owner": {"id": 368}, "invitee": {"id": 407}, "role": "maintainer", "organization": {"id": 527}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"owner": {"id": 330}, "invitee": {"id": 455}, "role": "supervisor", "organization": {"id": 576}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"owner": {"id": 314}, "invitee": {"id": 464}, "role": "worker", "organization": {"id": 537}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"owner": {"id": 320}, "invitee": {"id": 488}, "role": "owner", "organization": {"id": 188}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"owner": {"id": 345}, "invitee": {"id": 400}, "role": "maintainer", "organization": {"id": 128}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"owner": {"id": 306}, "invitee": {"id": 496}, "role": "supervisor", "organization": {"id": 108}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"owner": {"id": 386}, "invitee": {"id": 487}, "role": "worker", "organization": {"id": 116}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 312}, "invitee": {"id": 418}, "role": "owner", "organization": {"id": 554}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 305}, "invitee": {"id": 478}, "role": "maintainer", "organization": {"id": 507}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 398}, "invitee": {"id": 485}, "role": "supervisor", "organization": {"id": 512}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 344}, "invitee": {"id": 484}, "role": "worker", "organization": {"id": 506}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 343}, "invitee": {"id": 410}, "role": "owner", "organization": {"id": 193}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 319}, "invitee": {"id": 428}, "role": "maintainer", "organization": {"id": 151}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 338}, "invitee": {"id": 420}, "role": "supervisor", "organization": {"id": 196}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 386}, "invitee": {"id": 459}, "role": "worker", "organization": {"id": 196}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 347}, "invitee": {"id": 421}, "role": "owner", "organization": {"id": 545}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 373}, "invitee": {"id": 486}, "role": "maintainer", "organization": {"id": 549}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 384}, "invitee": {"id": 415}, "role": "supervisor", "organization": {"id": 552}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 309}, "invitee": {"id": 444}, "role": "worker", "organization": {"id": 538}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 362}, "invitee": {"id": 486}, "role": "owner", "organization": {"id": 174}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 366}, "invitee": {"id": 412}, "role": "maintainer", "organization": {"id": 140}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 378}, "invitee": {"id": 481}, "role": "supervisor", "organization": {"id": 124}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 348}, "invitee": {"id": 401}, "role": "worker", "organization": {"id": 181}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 395}, "invitee": {"id": 446}, "role": "owner", "organization": {"id": 536}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 361}, "invitee": {"id": 488}, "role": "maintainer", "organization": {"id": 528}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 385}, "invitee": {"id": 405}, "role": "supervisor", "organization": {"id": 538}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 329}, "invitee": {"id": 450}, "role": "worker", "organization": {"id": 570}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 346}, "invitee": {"id": 437}, "role": "owner", "organization": {"id": 164}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 337}, "invitee": {"id": 459}, "role": "maintainer", "organization": {"id": 104}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 387}, "invitee": {"id": 401}, "role": "supervisor", "organization": {"id": 166}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 307}, "invitee": {"id": 418}, "role": "worker", "organization": {"id": 199}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 356}, "invitee": {"id": 488}, "role": "owner", "organization": {"id": 532}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 317}, "invitee": {"id": 485}, "role": "maintainer", "organization": {"id": 575}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 330}, "invitee": {"id": 448}, "role": "supervisor", "organization": {"id": 513}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 366}, "invitee": {"id": 480}, "role": "worker", "organization": {"id": 563}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 319}, "invitee": {"id": 423}, "role": "owner", "organization": {"id": 178}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 347}, "invitee": {"id": 427}, "role": "maintainer", "organization": {"id": 181}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 390}, "invitee": {"id": 408}, "role": "supervisor", "organization": {"id": 133}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 325}, "invitee": {"id": 484}, "role": "worker", "organization": {"id": 193}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"owner": {"id": 393}, "invitee": {"id": 436}, "role": "owner", "organization": {"id": 560}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"owner": {"id": 363}, "invitee": {"id": 462}, "role": "maintainer", "organization": {"id": 553}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"owner": {"id": 344}, "invitee": {"id": 403}, "role": "supervisor", "organization": {"id": 518}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"owner": {"id": 336}, "invitee": {"id": 476}, "role": "worker", "organization": {"id": 560}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"owner": {"id": 350}, "invitee": {"id": 430}, "role": "owner", "organization": {"id": 115}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"owner": {"id": 396}, "invitee": {"id": 470}, "role": "maintainer", "organization": {"id": 197}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"owner": {"id": 316}, "invitee": {"id": 462}, "role": "supervisor", "organization": {"id": 146}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"owner": {"id": 358}, "invitee": {"id": 404}, "role": "worker", "organization": {"id": 134}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 381}, "invitee": {"id": 465}, "role": "owner", "organization": {"id": 599}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 306}, "invitee": {"id": 470}, "role": "maintainer", "organization": {"id": 558}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 380}, "invitee": {"id": 492}, "role": "supervisor", "organization": {"id": 592}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 343}, "invitee": {"id": 414}, "role": "worker", "organization": {"id": 576}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 333}, "invitee": {"id": 471}, "role": "owner", "organization": {"id": 125}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 300}, "invitee": {"id": 421}, "role": "maintainer", "organization": {"id": 109}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 398}, "invitee": {"id": 439}, "role": "supervisor", "organization": {"id": 132}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 352}, "invitee": {"id": 481}, "role": "worker", "organization": {"id": 173}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 305}, "invitee": {"id": 475}, "role": "owner", "organization": {"id": 599}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 318}, "invitee": {"id": 413}, "role": "maintainer", "organization": {"id": 568}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 309}, "invitee": {"id": 419}, "role": "supervisor", "organization": {"id": 578}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 339}, "invitee": {"id": 487}, "role": "worker", "organization": {"id": 507}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 341}, "invitee": {"id": 490}, "role": "owner", "organization": {"id": 125}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 384}, "invitee": {"id": 431}, "role": "maintainer", "organization": {"id": 162}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 336}, "invitee": {"id": 467}, "role": "supervisor", "organization": {"id": 155}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 332}, "invitee": {"id": 452}, "role": "worker", "organization": {"id": 198}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 306}, "invitee": {"id": 489}, "role": "owner", "organization": {"id": 576}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 328}, "invitee": {"id": 464}, "role": "maintainer", "organization": {"id": 538}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 370}, "invitee": {"id": 463}, "role": "supervisor", "organization": {"id": 558}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 379}, "invitee": {"id": 496}, "role": "worker", "organization": {"id": 526}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 314}, "invitee": {"id": 451}, "role": "owner", "organization": {"id": 146}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 363}, "invitee": {"id": 494}, "role": "maintainer", "organization": {"id": 136}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 358}, "invitee": {"id": 472}, "role": "supervisor", "organization": {"id": 162}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 308}, "invitee": {"id": 466}, "role": "worker", "organization": {"id": 124}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 356}, "invitee": {"id": 421}, "role": "owner", "organization": {"id": 559}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 340}, "invitee": {"id": 483}, "role": "maintainer", "organization": {"id": 563}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 387}, "invitee": {"id": 454}, "role": "supervisor", "organization": {"id": 574}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 322}, "invitee": {"id": 495}, "role": "worker", "organization": {"id": 511}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 370}, "invitee": {"id": 407}, "role": "owner", "organization": {"id": 188}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 321}, "invitee": {"id": 447}, "role": "maintainer", "organization": {"id": 161}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 335}, "invitee": {"id": 497}, "role": "supervisor", "organization": {"id": 110}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 342}, "invitee": {"id": 481}, "role": "worker", "organization": {"id": 134}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"owner": {"id": 383}, "invitee": {"id": 463}, "role": "owner", "organization": {"id": 562}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"owner": {"id": 357}, "invitee": {"id": 417}, "role": "maintainer", "organization": {"id": 529}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"owner": {"id": 354}, "invitee": {"id": 435}, "role": "supervisor", "organization": {"id": 596}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"owner": {"id": 370}, "invitee": {"id": 494}, "role": "worker", "organization": {"id": 573}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"owner": {"id": 337}, "invitee": {"id": 437}, "role": "owner", "organization": {"id": 153}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"owner": {"id": 329}, "invitee": {"id": 482}, "role": "maintainer", "organization": {"id": 140}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"owner": {"id": 361}, "invitee": {"id": 423}, "role": "supervisor", "organization": {"id": 128}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"owner": {"id": 301}, "invitee": {"id": 462}, "role": "worker", "organization": {"id": 174}}} -} - - - -# invitations_test.gen.rego.py -# # Copyright (C) 2021-2022 Intel Corporation -# # -# # SPDX-License-Identifier: MIT -# -# # Copyright (C) 2021-2022 Intel Corporation -# # -# # SPDX-License-Identifier: MIT -# -# import csv -# import json -# import random -# import sys -# import os -# from itertools import product -# -# NAME = 'invitations' -# -# def read_rules(name): -# rules = [] -# with open(os.path.join(sys.argv[1], f'{name}.csv')) as f: -# reader = csv.DictReader(f) -# for row in reader: -# row = {k.lower():v.lower().replace('n/a','na') for k,v in row.items()} -# row['limit'] = row['limit'].replace('none', 'None') -# found = False -# for col,val in row.items(): -# if col in ["limit", "method", "url"]: -# continue -# complex_val = [v.strip() for v in val.split(',')] -# if len(complex_val) > 1: -# found = True -# for item in complex_val: -# new_row = row.copy() -# new_row[col] = item -# rules.append(new_row) -# if not found: -# rules.append(row) -# -# return rules -# -# simple_rules = read_rules(NAME) -# -# SCOPES = {rule['scope'] for rule in simple_rules} -# CONTEXTS = ['sandbox', 'organization'] -# OWNERSHIPS = ['owner', 'invitee', 'none'] -# GROUPS = ['admin', 'business', 'user', 'worker', 'none'] -# ORG_ROLES = ['owner', 'maintainer', 'supervisor', 'worker', None] -# SAME_ORG = [False, True] -# -# def RESOURCES(scope): -# if scope == 'list': -# return [None] -# else: -# return [{ -# "owner": { "id": random.randrange(300, 400) }, -# "invitee": { "id": random.randrange(400, 500) }, -# "role": role, -# "organization": { -# "id": random.randrange(500,600) -# } -# } for role in ORG_ROLES if role != None] -# -# def is_same_org(org1, org2): -# if org1 != None and org2 != None: -# return org1['id'] == org2['id'] -# elif org1 == None and org2 == None: -# return True -# else: -# return False -# -# def eval_rule(scope, context, ownership, privilege, membership, data): -# if privilege == 'admin': -# return True -# -# rules = list(filter(lambda r: scope == r['scope'], simple_rules)) -# rules = list(filter(lambda r: r['context'] == 'na' or context == r['context'], rules)) -# rules = list(filter(lambda r: r['ownership'] == 'na' or ownership == r['ownership'], rules)) -# rules = list(filter(lambda r: r['membership'] == 'na' or -# ORG_ROLES.index(membership) <= ORG_ROLES.index(r['membership']), rules)) -# rules = list(filter(lambda r: GROUPS.index(privilege) <= GROUPS.index(r['privilege']), rules)) -# resource = data['resource'] -# rules = list(filter(lambda r: not r['limit'] or r['limit'].startswith('filter') -# or eval(r['limit'], {'resource': resource}), rules)) -# if not is_same_org(data['auth']['organization'], data['resource']['organization']) and context != 'sandbox': -# return False -# -# return bool(rules) -# -# def get_data(scope, context, ownership, privilege, membership, resource, same_org): -# data = { -# "scope": scope, -# "auth": { -# "user": { "id": random.randrange(0,100), "privilege": privilege }, -# "organization": { -# "id": random.randrange(100,200), -# "owner": { "id": random.randrange(200, 300) }, -# "user": { "role": membership } -# } if context == 'organization' else None -# }, -# "resource": resource -# } -# -# user_id = data['auth']['user']['id'] -# if context == 'organization': -# org_id = data['auth']['organization']['id'] -# if data['auth']['organization']['user']['role'] == 'owner': -# data['auth']['organization']['owner']['id'] = user_id -# -# if same_org: -# data['resource']['organization']['id'] = org_id -# -# if ownership == 'owner': -# data['resource']['owner']['id'] = user_id -# elif ownership == 'invitee': -# data['resource']['invitee']['id'] = user_id -# -# if scope == 'create': -# data['resource']['invitee']['id'] = None -# -# return data -# -# def _get_name(prefix, **kwargs): -# name = prefix -# for k,v in kwargs.items(): -# prefix = '_' + str(k) -# if isinstance(v, dict): -# if 'id' not in v: -# name += _get_name(prefix, **v) -# else: -# name += f'{prefix}_{str(v).upper()}' -# -# return name -# -# def get_name(scope, context, ownership, privilege, membership, resource, same_org): -# return _get_name('test', **locals()) -# -# def is_valid(scope, context, ownership, privilege, membership, resource, same_org): -# if context == "sandbox" and membership: -# return False -# if scope == 'list' and ownership != 'None': -# return False -# if context == 'sandbox' and same_org == False: -# return False -# -# return True -# -# def gen_test_rego(name): -# with open(f'{name}_test.gen.rego', 'wt') as f: -# f.write(f'package {name}\n\n') -# for scope, context, ownership, privilege, membership, same_org in product( -# SCOPES, CONTEXTS, OWNERSHIPS, GROUPS, ORG_ROLES, SAME_ORG): -# for resource in RESOURCES(scope): -# if not is_valid(scope, context, ownership, privilege, membership, resource, same_org): -# continue -# -# data = get_data(scope, context, ownership, privilege, membership, resource, same_org) -# test_name = get_name(scope, context, ownership, privilege, membership, resource, same_org) -# result = eval_rule(scope, context, ownership, privilege, membership, data) -# f.write('{test_name} {{\n {allow} with input as {data}\n}}\n\n'.format( -# test_name=test_name, allow='allow' if result else 'not allow', -# data=json.dumps(data))) -# -# # Write the script which is used to generate the file -# with open(sys.argv[0]) as this_file: -# f.write(f'\n\n# {os.path.split(sys.argv[0])[1]}\n') -# for line in this_file: -# if line.strip(): -# f.write(f'# {line}') -# else: -# f.write(f'#\n') -# -# # Write rules which are used to generate the file -# with open(os.path.join(sys.argv[1], f'{name}.csv')) as rego_file: -# f.write(f'\n\n# {name}.csv\n') -# for line in rego_file: -# if line.strip(): -# f.write(f'# {line}') -# else: -# f.write(f'#\n') -# -# gen_test_rego(NAME) - -# invitations.csv -# Scope,Resource,Context,Ownership,Limit,Method,URL,Privilege,Membership -# list,Invitation,Sandbox,N/A,,GET,/invitations,None,N/A -# list,Invitation,Organization,N/A,,GET,/invitations,None,Worker -# create,Invitation,Organization,N/A,"resource[""role""] not in [""maintainer"", ""owner""]",POST,/invitations,User,Maintainer -# create,Invitation,Organization,N/A,"resource[""role""] != ""owner""",POST,/invitations,User,Owner -# view,Invitation,Sandbox,None,,GET,/invitations/{id},Admin,N/A -# view,Invitation,N/A,"Owner, Invitee",,GET,/invitations/{id},None,N/A -# view,Invitation,Organization,None,,GET,/invitations/{id},User,Maintainer -# resend,Invitation,Sandbox,"None, Invitee",,PATCH,/invitations/{id},Admin,N/A -# resend,Invitation,N/A,Owner,,PATCH,/invitations/{id},Worker,N/A -# resend,Invitation,Organization,"None, Invitee",,PATCH,/invitations/{id},User,Maintainer -# delete,Invitation,Sandbox,"None, Invitee",,DELETE,/invitations/{id},Admin,N/A -# delete,Invitation,N/A,Owner,,DELETE,/invitations/{id},Worker,N/A -# delete,Invitation,Organization,"None, Invitee",,DELETE,/invitations/{id},User,Maintainer -# accept,Invitation,N/A,None,,PATCH,/invitations/{id},Admin,N/A -# accept,Invitation,N/A,Invitee,,PATCH,/invitations/{id},None,N/A \ No newline at end of file diff --git a/cvat/apps/iam/rules/issues_test.gen.rego b/cvat/apps/iam/rules/issues_test.gen.rego deleted file mode 100644 index 40e1fa4f..00000000 --- a/cvat/apps/iam/rules/issues_test.gen.rego +++ /dev/null @@ -1,11680 +0,0 @@ -package issues - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": null}, "resource": {"id": 300, "owner": {"id": 655}, "assignee": {"id": 513}, "project": {"id": 314, "owner": {"id": 23}, "assignee": {"id": 862}}, "task": {"id": 344, "owner": {"id": 948}, "assignee": {"id": 1057}}, "job": {"id": 314, "assignee": {"id": 1167}}, "organization": {"id": 1268}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": null}, "resource": {"id": 369, "owner": {"id": 663}, "assignee": {"id": 509}, "project": {"id": 384, "owner": {"id": 78}, "assignee": {"id": 854}}, "task": {"id": 355, "owner": {"id": 917}, "assignee": {"id": 1087}}, "job": {"id": 349, "assignee": {"id": 1152}}, "organization": {"id": 1275}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": null}, "resource": {"id": 320, "owner": {"id": 621}, "assignee": {"id": 518}, "project": {"id": 335, "owner": {"id": 84}, "assignee": {"id": 814}}, "task": {"id": 381, "owner": {"id": 942}, "assignee": {"id": 1028}}, "job": {"id": 360, "assignee": {"id": 1195}}, "organization": {"id": 1280}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": null}, "resource": {"id": 311, "owner": {"id": 667}, "assignee": {"id": 555}, "project": {"id": 365, "owner": {"id": 31}, "assignee": {"id": 800}}, "task": {"id": 327, "owner": {"id": 918}, "assignee": {"id": 1040}}, "job": {"id": 328, "assignee": {"id": 1144}}, "organization": {"id": 1229}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": null}, "resource": {"id": 332, "owner": {"id": 674}, "assignee": {"id": 572}, "project": {"id": 349, "owner": {"id": 4}, "assignee": {"id": 813}}, "task": {"id": 340, "owner": {"id": 942}, "assignee": {"id": 1060}}, "job": {"id": 395, "assignee": {"id": 1179}}, "organization": {"id": 1242}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": null}, "resource": {"id": 349, "owner": {"id": 640}, "assignee": {"id": 578}, "project": {"id": 323, "owner": {"id": 772}, "assignee": {"id": 42}}, "task": {"id": 385, "owner": {"id": 981}, "assignee": {"id": 1010}}, "job": {"id": 347, "assignee": {"id": 1142}}, "organization": {"id": 1212}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": null}, "resource": {"id": 397, "owner": {"id": 658}, "assignee": {"id": 561}, "project": {"id": 320, "owner": {"id": 761}, "assignee": {"id": 61}}, "task": {"id": 386, "owner": {"id": 911}, "assignee": {"id": 1004}}, "job": {"id": 327, "assignee": {"id": 1176}}, "organization": {"id": 1275}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": null}, "resource": {"id": 360, "owner": {"id": 694}, "assignee": {"id": 547}, "project": {"id": 335, "owner": {"id": 752}, "assignee": {"id": 83}}, "task": {"id": 359, "owner": {"id": 990}, "assignee": {"id": 1069}}, "job": {"id": 345, "assignee": {"id": 1152}}, "organization": {"id": 1247}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": null}, "resource": {"id": 343, "owner": {"id": 633}, "assignee": {"id": 521}, "project": {"id": 349, "owner": {"id": 712}, "assignee": {"id": 46}}, "task": {"id": 314, "owner": {"id": 992}, "assignee": {"id": 1039}}, "job": {"id": 334, "assignee": {"id": 1145}}, "organization": {"id": 1283}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": null}, "resource": {"id": 353, "owner": {"id": 611}, "assignee": {"id": 554}, "project": {"id": 334, "owner": {"id": 742}, "assignee": {"id": 20}}, "task": {"id": 353, "owner": {"id": 919}, "assignee": {"id": 1051}}, "job": {"id": 367, "assignee": {"id": 1193}}, "organization": {"id": 1223}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": null}, "resource": {"id": 330, "owner": {"id": 688}, "assignee": {"id": 529}, "project": {"id": 309, "owner": {"id": 741}, "assignee": {"id": 829}}, "task": {"id": 396, "owner": {"id": 76}, "assignee": {"id": 1070}}, "job": {"id": 376, "assignee": {"id": 1182}}, "organization": {"id": 1224}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": null}, "resource": {"id": 327, "owner": {"id": 629}, "assignee": {"id": 552}, "project": {"id": 305, "owner": {"id": 768}, "assignee": {"id": 856}}, "task": {"id": 389, "owner": {"id": 8}, "assignee": {"id": 1065}}, "job": {"id": 335, "assignee": {"id": 1149}}, "organization": {"id": 1205}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": null}, "resource": {"id": 320, "owner": {"id": 603}, "assignee": {"id": 555}, "project": {"id": 335, "owner": {"id": 731}, "assignee": {"id": 817}}, "task": {"id": 399, "owner": {"id": 44}, "assignee": {"id": 1076}}, "job": {"id": 388, "assignee": {"id": 1114}}, "organization": {"id": 1263}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": null}, "resource": {"id": 347, "owner": {"id": 685}, "assignee": {"id": 553}, "project": {"id": 353, "owner": {"id": 774}, "assignee": {"id": 857}}, "task": {"id": 380, "owner": {"id": 58}, "assignee": {"id": 1072}}, "job": {"id": 359, "assignee": {"id": 1197}}, "organization": {"id": 1240}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": null}, "resource": {"id": 354, "owner": {"id": 637}, "assignee": {"id": 520}, "project": {"id": 342, "owner": {"id": 745}, "assignee": {"id": 826}}, "task": {"id": 367, "owner": {"id": 10}, "assignee": {"id": 1003}}, "job": {"id": 338, "assignee": {"id": 1107}}, "organization": {"id": 1265}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": null}, "resource": {"id": 398, "owner": {"id": 619}, "assignee": {"id": 550}, "project": {"id": 351, "owner": {"id": 719}, "assignee": {"id": 823}}, "task": {"id": 353, "owner": {"id": 97}, "assignee": {"id": 1015}}, "job": {"id": 316, "assignee": {"id": 1121}}, "organization": {"id": 1287}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": null}, "resource": {"id": 315, "owner": {"id": 693}, "assignee": {"id": 526}, "project": {"id": 343, "owner": {"id": 706}, "assignee": {"id": 838}}, "task": {"id": 346, "owner": {"id": 30}, "assignee": {"id": 1053}}, "job": {"id": 382, "assignee": {"id": 1137}}, "organization": {"id": 1209}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": null}, "resource": {"id": 359, "owner": {"id": 649}, "assignee": {"id": 579}, "project": {"id": 328, "owner": {"id": 726}, "assignee": {"id": 809}}, "task": {"id": 356, "owner": {"id": 25}, "assignee": {"id": 1074}}, "job": {"id": 375, "assignee": {"id": 1103}}, "organization": {"id": 1225}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": null}, "resource": {"id": 311, "owner": {"id": 696}, "assignee": {"id": 577}, "project": {"id": 364, "owner": {"id": 755}, "assignee": {"id": 870}}, "task": {"id": 380, "owner": {"id": 24}, "assignee": {"id": 1004}}, "job": {"id": 348, "assignee": {"id": 1140}}, "organization": {"id": 1282}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": null}, "resource": {"id": 325, "owner": {"id": 698}, "assignee": {"id": 577}, "project": {"id": 356, "owner": {"id": 782}, "assignee": {"id": 858}}, "task": {"id": 379, "owner": {"id": 27}, "assignee": {"id": 1022}}, "job": {"id": 398, "assignee": {"id": 1123}}, "organization": {"id": 1265}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": null}, "resource": {"id": 322, "owner": {"id": 643}, "assignee": {"id": 576}, "project": {"id": 302, "owner": {"id": 790}, "assignee": {"id": 879}}, "task": {"id": 379, "owner": {"id": 918}, "assignee": {"id": 96}}, "job": {"id": 377, "assignee": {"id": 1127}}, "organization": {"id": 1217}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": null}, "resource": {"id": 316, "owner": {"id": 687}, "assignee": {"id": 536}, "project": {"id": 337, "owner": {"id": 782}, "assignee": {"id": 816}}, "task": {"id": 389, "owner": {"id": 926}, "assignee": {"id": 51}}, "job": {"id": 313, "assignee": {"id": 1121}}, "organization": {"id": 1208}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": null}, "resource": {"id": 320, "owner": {"id": 648}, "assignee": {"id": 587}, "project": {"id": 342, "owner": {"id": 767}, "assignee": {"id": 834}}, "task": {"id": 319, "owner": {"id": 916}, "assignee": {"id": 32}}, "job": {"id": 337, "assignee": {"id": 1131}}, "organization": {"id": 1201}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": null}, "resource": {"id": 320, "owner": {"id": 613}, "assignee": {"id": 524}, "project": {"id": 396, "owner": {"id": 793}, "assignee": {"id": 842}}, "task": {"id": 393, "owner": {"id": 982}, "assignee": {"id": 40}}, "job": {"id": 338, "assignee": {"id": 1199}}, "organization": {"id": 1258}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": null}, "resource": {"id": 364, "owner": {"id": 679}, "assignee": {"id": 542}, "project": {"id": 312, "owner": {"id": 750}, "assignee": {"id": 852}}, "task": {"id": 392, "owner": {"id": 929}, "assignee": {"id": 70}}, "job": {"id": 379, "assignee": {"id": 1143}}, "organization": {"id": 1219}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": null}, "resource": {"id": 301, "owner": {"id": 653}, "assignee": {"id": 551}, "project": {"id": 302, "owner": {"id": 780}, "assignee": {"id": 866}}, "task": {"id": 352, "owner": {"id": 970}, "assignee": {"id": 41}}, "job": {"id": 395, "assignee": {"id": 1198}}, "organization": {"id": 1232}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": null}, "resource": {"id": 331, "owner": {"id": 662}, "assignee": {"id": 574}, "project": {"id": 344, "owner": {"id": 722}, "assignee": {"id": 853}}, "task": {"id": 392, "owner": {"id": 944}, "assignee": {"id": 51}}, "job": {"id": 327, "assignee": {"id": 1130}}, "organization": {"id": 1225}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": null}, "resource": {"id": 317, "owner": {"id": 623}, "assignee": {"id": 505}, "project": {"id": 398, "owner": {"id": 789}, "assignee": {"id": 843}}, "task": {"id": 379, "owner": {"id": 964}, "assignee": {"id": 72}}, "job": {"id": 378, "assignee": {"id": 1119}}, "organization": {"id": 1222}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": null}, "resource": {"id": 377, "owner": {"id": 612}, "assignee": {"id": 595}, "project": {"id": 304, "owner": {"id": 722}, "assignee": {"id": 848}}, "task": {"id": 307, "owner": {"id": 949}, "assignee": {"id": 34}}, "job": {"id": 323, "assignee": {"id": 1159}}, "organization": {"id": 1261}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": null}, "resource": {"id": 374, "owner": {"id": 678}, "assignee": {"id": 535}, "project": {"id": 379, "owner": {"id": 795}, "assignee": {"id": 802}}, "task": {"id": 362, "owner": {"id": 942}, "assignee": {"id": 80}}, "job": {"id": 371, "assignee": {"id": 1187}}, "organization": {"id": 1291}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": null}, "resource": {"id": 396, "owner": {"id": 675}, "assignee": {"id": 596}, "project": {"id": 383, "owner": {"id": 749}, "assignee": {"id": 884}}, "task": {"id": 314, "owner": {"id": 910}, "assignee": {"id": 1068}}, "job": {"id": 311, "assignee": {"id": 12}}, "organization": {"id": 1238}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": null}, "resource": {"id": 348, "owner": {"id": 693}, "assignee": {"id": 571}, "project": {"id": 335, "owner": {"id": 737}, "assignee": {"id": 897}}, "task": {"id": 315, "owner": {"id": 970}, "assignee": {"id": 1003}}, "job": {"id": 392, "assignee": {"id": 69}}, "organization": {"id": 1233}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": null}, "resource": {"id": 357, "owner": {"id": 675}, "assignee": {"id": 511}, "project": {"id": 339, "owner": {"id": 771}, "assignee": {"id": 830}}, "task": {"id": 333, "owner": {"id": 988}, "assignee": {"id": 1095}}, "job": {"id": 307, "assignee": {"id": 95}}, "organization": {"id": 1227}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": null}, "resource": {"id": 385, "owner": {"id": 659}, "assignee": {"id": 595}, "project": {"id": 330, "owner": {"id": 778}, "assignee": {"id": 816}}, "task": {"id": 397, "owner": {"id": 936}, "assignee": {"id": 1071}}, "job": {"id": 390, "assignee": {"id": 11}}, "organization": {"id": 1254}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": null}, "resource": {"id": 322, "owner": {"id": 661}, "assignee": {"id": 539}, "project": {"id": 307, "owner": {"id": 739}, "assignee": {"id": 818}}, "task": {"id": 368, "owner": {"id": 960}, "assignee": {"id": 1078}}, "job": {"id": 360, "assignee": {"id": 20}}, "organization": {"id": 1269}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": null}, "resource": {"id": 385, "owner": {"id": 629}, "assignee": {"id": 589}, "project": {"id": 326, "owner": {"id": 774}, "assignee": {"id": 840}}, "task": {"id": 334, "owner": {"id": 968}, "assignee": {"id": 1054}}, "job": {"id": 358, "assignee": {"id": 74}}, "organization": {"id": 1271}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": null}, "resource": {"id": 335, "owner": {"id": 675}, "assignee": {"id": 506}, "project": {"id": 373, "owner": {"id": 793}, "assignee": {"id": 887}}, "task": {"id": 312, "owner": {"id": 924}, "assignee": {"id": 1038}}, "job": {"id": 333, "assignee": {"id": 30}}, "organization": {"id": 1220}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": null}, "resource": {"id": 306, "owner": {"id": 652}, "assignee": {"id": 533}, "project": {"id": 379, "owner": {"id": 744}, "assignee": {"id": 830}}, "task": {"id": 333, "owner": {"id": 902}, "assignee": {"id": 1004}}, "job": {"id": 347, "assignee": {"id": 66}}, "organization": {"id": 1291}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "none"}, "organization": null}, "resource": {"id": 397, "owner": {"id": 653}, "assignee": {"id": 536}, "project": {"id": 313, "owner": {"id": 761}, "assignee": {"id": 827}}, "task": {"id": 330, "owner": {"id": 914}, "assignee": {"id": 1073}}, "job": {"id": 325, "assignee": {"id": 19}}, "organization": {"id": 1249}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": null}, "resource": {"id": 334, "owner": {"id": 633}, "assignee": {"id": 591}, "project": {"id": 363, "owner": {"id": 740}, "assignee": {"id": 848}}, "task": {"id": 338, "owner": {"id": 993}, "assignee": {"id": 1087}}, "job": {"id": 368, "assignee": {"id": 11}}, "organization": {"id": 1294}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": null}, "resource": {"id": 344, "owner": {"id": 26}, "assignee": {"id": 586}, "project": {"id": 343, "owner": {"id": 780}, "assignee": {"id": 847}}, "task": {"id": 365, "owner": {"id": 920}, "assignee": {"id": 1079}}, "job": {"id": 320, "assignee": {"id": 1109}}, "organization": {"id": 1242}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": null}, "resource": {"id": 306, "owner": {"id": 29}, "assignee": {"id": 508}, "project": {"id": 310, "owner": {"id": 712}, "assignee": {"id": 891}}, "task": {"id": 338, "owner": {"id": 992}, "assignee": {"id": 1084}}, "job": {"id": 392, "assignee": {"id": 1121}}, "organization": {"id": 1202}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": null}, "resource": {"id": 301, "owner": {"id": 65}, "assignee": {"id": 593}, "project": {"id": 385, "owner": {"id": 756}, "assignee": {"id": 890}}, "task": {"id": 329, "owner": {"id": 915}, "assignee": {"id": 1032}}, "job": {"id": 372, "assignee": {"id": 1135}}, "organization": {"id": 1232}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": null}, "resource": {"id": 383, "owner": {"id": 22}, "assignee": {"id": 562}, "project": {"id": 393, "owner": {"id": 761}, "assignee": {"id": 821}}, "task": {"id": 348, "owner": {"id": 906}, "assignee": {"id": 1054}}, "job": {"id": 397, "assignee": {"id": 1122}}, "organization": {"id": 1254}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": null}, "resource": {"id": 320, "owner": {"id": 7}, "assignee": {"id": 568}, "project": {"id": 355, "owner": {"id": 705}, "assignee": {"id": 869}}, "task": {"id": 398, "owner": {"id": 987}, "assignee": {"id": 1012}}, "job": {"id": 394, "assignee": {"id": 1178}}, "organization": {"id": 1240}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": null}, "resource": {"id": 327, "owner": {"id": 96}, "assignee": {"id": 561}, "project": {"id": 399, "owner": {"id": 773}, "assignee": {"id": 877}}, "task": {"id": 314, "owner": {"id": 942}, "assignee": {"id": 1044}}, "job": {"id": 311, "assignee": {"id": 1178}}, "organization": {"id": 1205}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": null}, "resource": {"id": 365, "owner": {"id": 75}, "assignee": {"id": 580}, "project": {"id": 328, "owner": {"id": 762}, "assignee": {"id": 870}}, "task": {"id": 315, "owner": {"id": 984}, "assignee": {"id": 1019}}, "job": {"id": 399, "assignee": {"id": 1114}}, "organization": {"id": 1293}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": null}, "resource": {"id": 326, "owner": {"id": 36}, "assignee": {"id": 539}, "project": {"id": 390, "owner": {"id": 718}, "assignee": {"id": 881}}, "task": {"id": 306, "owner": {"id": 977}, "assignee": {"id": 1041}}, "job": {"id": 375, "assignee": {"id": 1129}}, "organization": {"id": 1254}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": null}, "resource": {"id": 372, "owner": {"id": 99}, "assignee": {"id": 510}, "project": {"id": 355, "owner": {"id": 714}, "assignee": {"id": 884}}, "task": {"id": 322, "owner": {"id": 920}, "assignee": {"id": 1083}}, "job": {"id": 327, "assignee": {"id": 1112}}, "organization": {"id": 1251}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": null}, "resource": {"id": 365, "owner": {"id": 57}, "assignee": {"id": 525}, "project": {"id": 337, "owner": {"id": 771}, "assignee": {"id": 839}}, "task": {"id": 391, "owner": {"id": 966}, "assignee": {"id": 1059}}, "job": {"id": 383, "assignee": {"id": 1157}}, "organization": {"id": 1275}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": null}, "resource": {"id": 375, "owner": {"id": 682}, "assignee": {"id": 19}, "project": {"id": 351, "owner": {"id": 743}, "assignee": {"id": 861}}, "task": {"id": 361, "owner": {"id": 967}, "assignee": {"id": 1096}}, "job": {"id": 372, "assignee": {"id": 1189}}, "organization": {"id": 1252}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": null}, "resource": {"id": 385, "owner": {"id": 677}, "assignee": {"id": 35}, "project": {"id": 351, "owner": {"id": 756}, "assignee": {"id": 855}}, "task": {"id": 328, "owner": {"id": 952}, "assignee": {"id": 1077}}, "job": {"id": 369, "assignee": {"id": 1184}}, "organization": {"id": 1243}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": null}, "resource": {"id": 322, "owner": {"id": 653}, "assignee": {"id": 20}, "project": {"id": 390, "owner": {"id": 728}, "assignee": {"id": 800}}, "task": {"id": 347, "owner": {"id": 966}, "assignee": {"id": 1026}}, "job": {"id": 352, "assignee": {"id": 1179}}, "organization": {"id": 1226}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": null}, "resource": {"id": 391, "owner": {"id": 640}, "assignee": {"id": 42}, "project": {"id": 320, "owner": {"id": 718}, "assignee": {"id": 842}}, "task": {"id": 374, "owner": {"id": 974}, "assignee": {"id": 1057}}, "job": {"id": 336, "assignee": {"id": 1155}}, "organization": {"id": 1244}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "user"}, "organization": null}, "resource": {"id": 336, "owner": {"id": 627}, "assignee": {"id": 19}, "project": {"id": 399, "owner": {"id": 792}, "assignee": {"id": 842}}, "task": {"id": 305, "owner": {"id": 959}, "assignee": {"id": 1020}}, "job": {"id": 362, "assignee": {"id": 1178}}, "organization": {"id": 1297}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": null}, "resource": {"id": 368, "owner": {"id": 628}, "assignee": {"id": 7}, "project": {"id": 373, "owner": {"id": 718}, "assignee": {"id": 855}}, "task": {"id": 393, "owner": {"id": 935}, "assignee": {"id": 1089}}, "job": {"id": 329, "assignee": {"id": 1165}}, "organization": {"id": 1229}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "worker"}, "organization": null}, "resource": {"id": 356, "owner": {"id": 611}, "assignee": {"id": 29}, "project": {"id": 372, "owner": {"id": 708}, "assignee": {"id": 847}}, "task": {"id": 324, "owner": {"id": 949}, "assignee": {"id": 1090}}, "job": {"id": 395, "assignee": {"id": 1111}}, "organization": {"id": 1218}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": null}, "resource": {"id": 302, "owner": {"id": 668}, "assignee": {"id": 28}, "project": {"id": 384, "owner": {"id": 774}, "assignee": {"id": 839}}, "task": {"id": 382, "owner": {"id": 979}, "assignee": {"id": 1077}}, "job": {"id": 313, "assignee": {"id": 1112}}, "organization": {"id": 1235}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": null}, "resource": {"id": 341, "owner": {"id": 622}, "assignee": {"id": 77}, "project": {"id": 375, "owner": {"id": 743}, "assignee": {"id": 890}}, "task": {"id": 324, "owner": {"id": 968}, "assignee": {"id": 1030}}, "job": {"id": 382, "assignee": {"id": 1166}}, "organization": {"id": 1218}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": null}, "resource": {"id": 343, "owner": {"id": 604}, "assignee": {"id": 30}, "project": {"id": 318, "owner": {"id": 707}, "assignee": {"id": 894}}, "task": {"id": 343, "owner": {"id": 948}, "assignee": {"id": 1075}}, "job": {"id": 376, "assignee": {"id": 1100}}, "organization": {"id": 1255}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": null}, "resource": {"id": 348, "owner": {"id": 672}, "assignee": {"id": 566}, "project": {"id": 330, "owner": {"id": 786}, "assignee": {"id": 865}}, "task": {"id": 327, "owner": {"id": 906}, "assignee": {"id": 1017}}, "job": {"id": 391, "assignee": {"id": 1142}}, "organization": {"id": 1248}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": null}, "resource": {"id": 381, "owner": {"id": 671}, "assignee": {"id": 511}, "project": {"id": 369, "owner": {"id": 799}, "assignee": {"id": 830}}, "task": {"id": 372, "owner": {"id": 948}, "assignee": {"id": 1087}}, "job": {"id": 349, "assignee": {"id": 1114}}, "organization": {"id": 1210}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": null}, "resource": {"id": 389, "owner": {"id": 670}, "assignee": {"id": 516}, "project": {"id": 366, "owner": {"id": 762}, "assignee": {"id": 801}}, "task": {"id": 372, "owner": {"id": 994}, "assignee": {"id": 1000}}, "job": {"id": 397, "assignee": {"id": 1156}}, "organization": {"id": 1271}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": null}, "resource": {"id": 389, "owner": {"id": 644}, "assignee": {"id": 583}, "project": {"id": 326, "owner": {"id": 752}, "assignee": {"id": 830}}, "task": {"id": 368, "owner": {"id": 909}, "assignee": {"id": 1088}}, "job": {"id": 309, "assignee": {"id": 1116}}, "organization": {"id": 1219}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": null}, "resource": {"id": 336, "owner": {"id": 627}, "assignee": {"id": 540}, "project": {"id": 394, "owner": {"id": 716}, "assignee": {"id": 804}}, "task": {"id": 337, "owner": {"id": 954}, "assignee": {"id": 1019}}, "job": {"id": 342, "assignee": {"id": 1180}}, "organization": {"id": 1296}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": null}, "resource": {"id": 332, "owner": {"id": 619}, "assignee": {"id": 506}, "project": {"id": 376, "owner": {"id": 794}, "assignee": {"id": 825}}, "task": {"id": 392, "owner": {"id": 913}, "assignee": {"id": 1098}}, "job": {"id": 384, "assignee": {"id": 1187}}, "organization": {"id": 1298}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": null}, "resource": {"id": 319, "owner": {"id": 682}, "assignee": {"id": 581}, "project": {"id": 326, "owner": {"id": 766}, "assignee": {"id": 884}}, "task": {"id": 309, "owner": {"id": 948}, "assignee": {"id": 1001}}, "job": {"id": 302, "assignee": {"id": 1122}}, "organization": {"id": 1282}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": null}, "resource": {"id": 391, "owner": {"id": 650}, "assignee": {"id": 567}, "project": {"id": 370, "owner": {"id": 758}, "assignee": {"id": 801}}, "task": {"id": 372, "owner": {"id": 974}, "assignee": {"id": 1059}}, "job": {"id": 316, "assignee": {"id": 1125}}, "organization": {"id": 1235}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": null}, "resource": {"id": 302, "owner": {"id": 656}, "assignee": {"id": 581}, "project": {"id": 324, "owner": {"id": 722}, "assignee": {"id": 893}}, "task": {"id": 331, "owner": {"id": 930}, "assignee": {"id": 1081}}, "job": {"id": 366, "assignee": {"id": 1108}}, "organization": {"id": 1285}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": null}, "resource": {"id": 320, "owner": {"id": 680}, "assignee": {"id": 572}, "project": {"id": 316, "owner": {"id": 743}, "assignee": {"id": 870}}, "task": {"id": 349, "owner": {"id": 989}, "assignee": {"id": 1059}}, "job": {"id": 335, "assignee": {"id": 1183}}, "organization": {"id": 1275}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 323, "owner": {"id": 652}, "assignee": {"id": 555}, "project": {"id": 369, "owner": {"id": 97}, "assignee": {"id": 825}}, "task": {"id": 325, "owner": {"id": 951}, "assignee": {"id": 1026}}, "job": {"id": 336, "assignee": {"id": 1155}}, "organization": {"id": 163}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 386, "owner": {"id": 690}, "assignee": {"id": 547}, "project": {"id": 396, "owner": {"id": 58}, "assignee": {"id": 815}}, "task": {"id": 301, "owner": {"id": 941}, "assignee": {"id": 1041}}, "job": {"id": 303, "assignee": {"id": 1126}}, "organization": {"id": 1228}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 627}, "assignee": {"id": 547}, "project": {"id": 372, "owner": {"id": 33}, "assignee": {"id": 842}}, "task": {"id": 304, "owner": {"id": 923}, "assignee": {"id": 1067}}, "job": {"id": 357, "assignee": {"id": 1122}}, "organization": {"id": 137}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "owner": {"id": 612}, "assignee": {"id": 514}, "project": {"id": 318, "owner": {"id": 30}, "assignee": {"id": 823}}, "task": {"id": 302, "owner": {"id": 971}, "assignee": {"id": 1001}}, "job": {"id": 329, "assignee": {"id": 1108}}, "organization": {"id": 1288}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "owner": {"id": 683}, "assignee": {"id": 517}, "project": {"id": 356, "owner": {"id": 45}, "assignee": {"id": 861}}, "task": {"id": 314, "owner": {"id": 911}, "assignee": {"id": 1001}}, "job": {"id": 389, "assignee": {"id": 1112}}, "organization": {"id": 132}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "owner": {"id": 659}, "assignee": {"id": 550}, "project": {"id": 381, "owner": {"id": 62}, "assignee": {"id": 850}}, "task": {"id": 344, "owner": {"id": 932}, "assignee": {"id": 1037}}, "job": {"id": 327, "assignee": {"id": 1113}}, "organization": {"id": 1202}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 309, "owner": {"id": 633}, "assignee": {"id": 552}, "project": {"id": 335, "owner": {"id": 89}, "assignee": {"id": 889}}, "task": {"id": 347, "owner": {"id": 981}, "assignee": {"id": 1089}}, "job": {"id": 375, "assignee": {"id": 1176}}, "organization": {"id": 169}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 347, "owner": {"id": 661}, "assignee": {"id": 585}, "project": {"id": 324, "owner": {"id": 47}, "assignee": {"id": 865}}, "task": {"id": 319, "owner": {"id": 929}, "assignee": {"id": 1089}}, "job": {"id": 330, "assignee": {"id": 1187}}, "organization": {"id": 1268}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 390, "owner": {"id": 684}, "assignee": {"id": 563}, "project": {"id": 349, "owner": {"id": 78}, "assignee": {"id": 804}}, "task": {"id": 309, "owner": {"id": 964}, "assignee": {"id": 1098}}, "job": {"id": 346, "assignee": {"id": 1183}}, "organization": {"id": 113}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 387, "owner": {"id": 600}, "assignee": {"id": 588}, "project": {"id": 396, "owner": {"id": 8}, "assignee": {"id": 842}}, "task": {"id": 318, "owner": {"id": 944}, "assignee": {"id": 1022}}, "job": {"id": 367, "assignee": {"id": 1142}}, "organization": {"id": 1279}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 345, "owner": {"id": 602}, "assignee": {"id": 598}, "project": {"id": 365, "owner": {"id": 21}, "assignee": {"id": 817}}, "task": {"id": 356, "owner": {"id": 966}, "assignee": {"id": 1040}}, "job": {"id": 371, "assignee": {"id": 1109}}, "organization": {"id": 120}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 328, "owner": {"id": 631}, "assignee": {"id": 562}, "project": {"id": 388, "owner": {"id": 2}, "assignee": {"id": 875}}, "task": {"id": 398, "owner": {"id": 947}, "assignee": {"id": 1065}}, "job": {"id": 337, "assignee": {"id": 1165}}, "organization": {"id": 1205}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "owner": {"id": 627}, "assignee": {"id": 563}, "project": {"id": 361, "owner": {"id": 30}, "assignee": {"id": 827}}, "task": {"id": 338, "owner": {"id": 916}, "assignee": {"id": 1080}}, "job": {"id": 324, "assignee": {"id": 1127}}, "organization": {"id": 158}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 678}, "assignee": {"id": 566}, "project": {"id": 381, "owner": {"id": 15}, "assignee": {"id": 855}}, "task": {"id": 386, "owner": {"id": 910}, "assignee": {"id": 1068}}, "job": {"id": 385, "assignee": {"id": 1192}}, "organization": {"id": 1237}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "owner": {"id": 644}, "assignee": {"id": 529}, "project": {"id": 315, "owner": {"id": 36}, "assignee": {"id": 827}}, "task": {"id": 365, "owner": {"id": 901}, "assignee": {"id": 1049}}, "job": {"id": 387, "assignee": {"id": 1141}}, "organization": {"id": 128}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "owner": {"id": 661}, "assignee": {"id": 563}, "project": {"id": 378, "owner": {"id": 42}, "assignee": {"id": 819}}, "task": {"id": 310, "owner": {"id": 937}, "assignee": {"id": 1077}}, "job": {"id": 306, "assignee": {"id": 1142}}, "organization": {"id": 1212}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 372, "owner": {"id": 634}, "assignee": {"id": 516}, "project": {"id": 320, "owner": {"id": 15}, "assignee": {"id": 827}}, "task": {"id": 341, "owner": {"id": 966}, "assignee": {"id": 1033}}, "job": {"id": 330, "assignee": {"id": 1168}}, "organization": {"id": 171}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 321, "owner": {"id": 694}, "assignee": {"id": 525}, "project": {"id": 304, "owner": {"id": 99}, "assignee": {"id": 855}}, "task": {"id": 303, "owner": {"id": 947}, "assignee": {"id": 1020}}, "job": {"id": 304, "assignee": {"id": 1187}}, "organization": {"id": 1232}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 395, "owner": {"id": 651}, "assignee": {"id": 501}, "project": {"id": 318, "owner": {"id": 62}, "assignee": {"id": 835}}, "task": {"id": 323, "owner": {"id": 955}, "assignee": {"id": 1067}}, "job": {"id": 313, "assignee": {"id": 1119}}, "organization": {"id": 120}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 386, "owner": {"id": 658}, "assignee": {"id": 557}, "project": {"id": 346, "owner": {"id": 52}, "assignee": {"id": 837}}, "task": {"id": 301, "owner": {"id": 975}, "assignee": {"id": 1073}}, "job": {"id": 368, "assignee": {"id": 1174}}, "organization": {"id": 1283}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 671}, "assignee": {"id": 524}, "project": {"id": 370, "owner": {"id": 21}, "assignee": {"id": 866}}, "task": {"id": 337, "owner": {"id": 919}, "assignee": {"id": 1006}}, "job": {"id": 320, "assignee": {"id": 1123}}, "organization": {"id": 141}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 625}, "assignee": {"id": 557}, "project": {"id": 378, "owner": {"id": 7}, "assignee": {"id": 828}}, "task": {"id": 394, "owner": {"id": 937}, "assignee": {"id": 1085}}, "job": {"id": 310, "assignee": {"id": 1179}}, "organization": {"id": 1217}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "owner": {"id": 663}, "assignee": {"id": 597}, "project": {"id": 340, "owner": {"id": 64}, "assignee": {"id": 806}}, "task": {"id": 358, "owner": {"id": 964}, "assignee": {"id": 1082}}, "job": {"id": 386, "assignee": {"id": 1103}}, "organization": {"id": 171}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "owner": {"id": 697}, "assignee": {"id": 574}, "project": {"id": 368, "owner": {"id": 5}, "assignee": {"id": 807}}, "task": {"id": 322, "owner": {"id": 962}, "assignee": {"id": 1020}}, "job": {"id": 366, "assignee": {"id": 1161}}, "organization": {"id": 1210}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "owner": {"id": 658}, "assignee": {"id": 509}, "project": {"id": 393, "owner": {"id": 61}, "assignee": {"id": 874}}, "task": {"id": 380, "owner": {"id": 974}, "assignee": {"id": 1096}}, "job": {"id": 355, "assignee": {"id": 1106}}, "organization": {"id": 134}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "owner": {"id": 606}, "assignee": {"id": 573}, "project": {"id": 371, "owner": {"id": 32}, "assignee": {"id": 871}}, "task": {"id": 364, "owner": {"id": 969}, "assignee": {"id": 1003}}, "job": {"id": 390, "assignee": {"id": 1179}}, "organization": {"id": 1274}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 323, "owner": {"id": 681}, "assignee": {"id": 582}, "project": {"id": 388, "owner": {"id": 60}, "assignee": {"id": 892}}, "task": {"id": 306, "owner": {"id": 901}, "assignee": {"id": 1042}}, "job": {"id": 333, "assignee": {"id": 1128}}, "organization": {"id": 119}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 322, "owner": {"id": 614}, "assignee": {"id": 587}, "project": {"id": 325, "owner": {"id": 99}, "assignee": {"id": 847}}, "task": {"id": 323, "owner": {"id": 936}, "assignee": {"id": 1007}}, "job": {"id": 361, "assignee": {"id": 1124}}, "organization": {"id": 1212}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 371, "owner": {"id": 616}, "assignee": {"id": 551}, "project": {"id": 358, "owner": {"id": 8}, "assignee": {"id": 862}}, "task": {"id": 369, "owner": {"id": 951}, "assignee": {"id": 1084}}, "job": {"id": 330, "assignee": {"id": 1190}}, "organization": {"id": 145}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 315, "owner": {"id": 668}, "assignee": {"id": 582}, "project": {"id": 383, "owner": {"id": 90}, "assignee": {"id": 817}}, "task": {"id": 383, "owner": {"id": 900}, "assignee": {"id": 1069}}, "job": {"id": 317, "assignee": {"id": 1198}}, "organization": {"id": 1273}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 316, "owner": {"id": 639}, "assignee": {"id": 588}, "project": {"id": 300, "owner": {"id": 92}, "assignee": {"id": 804}}, "task": {"id": 391, "owner": {"id": 924}, "assignee": {"id": 1068}}, "job": {"id": 371, "assignee": {"id": 1123}}, "organization": {"id": 119}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 333, "owner": {"id": 615}, "assignee": {"id": 562}, "project": {"id": 317, "owner": {"id": 18}, "assignee": {"id": 833}}, "task": {"id": 381, "owner": {"id": 951}, "assignee": {"id": 1053}}, "job": {"id": 332, "assignee": {"id": 1147}}, "organization": {"id": 1245}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "owner": {"id": 635}, "assignee": {"id": 511}, "project": {"id": 356, "owner": {"id": 83}, "assignee": {"id": 883}}, "task": {"id": 394, "owner": {"id": 934}, "assignee": {"id": 1066}}, "job": {"id": 360, "assignee": {"id": 1143}}, "organization": {"id": 169}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "owner": {"id": 643}, "assignee": {"id": 548}, "project": {"id": 349, "owner": {"id": 96}, "assignee": {"id": 869}}, "task": {"id": 360, "owner": {"id": 935}, "assignee": {"id": 1063}}, "job": {"id": 369, "assignee": {"id": 1132}}, "organization": {"id": 1202}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 380, "owner": {"id": 607}, "assignee": {"id": 526}, "project": {"id": 391, "owner": {"id": 16}, "assignee": {"id": 897}}, "task": {"id": 379, "owner": {"id": 990}, "assignee": {"id": 1075}}, "job": {"id": 309, "assignee": {"id": 1115}}, "organization": {"id": 145}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 668}, "assignee": {"id": 532}, "project": {"id": 338, "owner": {"id": 68}, "assignee": {"id": 845}}, "task": {"id": 325, "owner": {"id": 959}, "assignee": {"id": 1022}}, "job": {"id": 342, "assignee": {"id": 1149}}, "organization": {"id": 1225}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 312, "owner": {"id": 647}, "assignee": {"id": 540}, "project": {"id": 332, "owner": {"id": 56}, "assignee": {"id": 814}}, "task": {"id": 327, "owner": {"id": 914}, "assignee": {"id": 1070}}, "job": {"id": 342, "assignee": {"id": 1119}}, "organization": {"id": 159}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 307, "owner": {"id": 672}, "assignee": {"id": 534}, "project": {"id": 361, "owner": {"id": 8}, "assignee": {"id": 818}}, "task": {"id": 348, "owner": {"id": 962}, "assignee": {"id": 1045}}, "job": {"id": 308, "assignee": {"id": 1195}}, "organization": {"id": 1296}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 688}, "assignee": {"id": 587}, "project": {"id": 387, "owner": {"id": 16}, "assignee": {"id": 841}}, "task": {"id": 331, "owner": {"id": 925}, "assignee": {"id": 1088}}, "job": {"id": 372, "assignee": {"id": 1189}}, "organization": {"id": 190}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 377, "owner": {"id": 639}, "assignee": {"id": 553}, "project": {"id": 311, "owner": {"id": 90}, "assignee": {"id": 832}}, "task": {"id": 388, "owner": {"id": 901}, "assignee": {"id": 1063}}, "job": {"id": 338, "assignee": {"id": 1172}}, "organization": {"id": 1297}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 659}, "assignee": {"id": 549}, "project": {"id": 311, "owner": {"id": 44}, "assignee": {"id": 875}}, "task": {"id": 323, "owner": {"id": 996}, "assignee": {"id": 1083}}, "job": {"id": 316, "assignee": {"id": 1186}}, "organization": {"id": 193}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 331, "owner": {"id": 623}, "assignee": {"id": 515}, "project": {"id": 397, "owner": {"id": 18}, "assignee": {"id": 839}}, "task": {"id": 302, "owner": {"id": 973}, "assignee": {"id": 1062}}, "job": {"id": 379, "assignee": {"id": 1106}}, "organization": {"id": 1267}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 641}, "assignee": {"id": 544}, "project": {"id": 380, "owner": {"id": 81}, "assignee": {"id": 890}}, "task": {"id": 314, "owner": {"id": 941}, "assignee": {"id": 1092}}, "job": {"id": 317, "assignee": {"id": 1139}}, "organization": {"id": 116}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "owner": {"id": 661}, "assignee": {"id": 520}, "project": {"id": 399, "owner": {"id": 89}, "assignee": {"id": 882}}, "task": {"id": 386, "owner": {"id": 903}, "assignee": {"id": 1051}}, "job": {"id": 386, "assignee": {"id": 1103}}, "organization": {"id": 1258}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "owner": {"id": 639}, "assignee": {"id": 519}, "project": {"id": 321, "owner": {"id": 12}, "assignee": {"id": 834}}, "task": {"id": 330, "owner": {"id": 960}, "assignee": {"id": 1098}}, "job": {"id": 379, "assignee": {"id": 1166}}, "organization": {"id": 142}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "owner": {"id": 605}, "assignee": {"id": 588}, "project": {"id": 397, "owner": {"id": 97}, "assignee": {"id": 819}}, "task": {"id": 346, "owner": {"id": 936}, "assignee": {"id": 1059}}, "job": {"id": 339, "assignee": {"id": 1149}}, "organization": {"id": 1292}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 330, "owner": {"id": 602}, "assignee": {"id": 578}, "project": {"id": 323, "owner": {"id": 93}, "assignee": {"id": 832}}, "task": {"id": 310, "owner": {"id": 903}, "assignee": {"id": 1051}}, "job": {"id": 367, "assignee": {"id": 1134}}, "organization": {"id": 189}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 310, "owner": {"id": 651}, "assignee": {"id": 545}, "project": {"id": 301, "owner": {"id": 38}, "assignee": {"id": 882}}, "task": {"id": 356, "owner": {"id": 995}, "assignee": {"id": 1086}}, "job": {"id": 327, "assignee": {"id": 1134}}, "organization": {"id": 1268}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 333, "owner": {"id": 632}, "assignee": {"id": 555}, "project": {"id": 332, "owner": {"id": 75}, "assignee": {"id": 827}}, "task": {"id": 395, "owner": {"id": 984}, "assignee": {"id": 1058}}, "job": {"id": 372, "assignee": {"id": 1136}}, "organization": {"id": 196}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 624}, "assignee": {"id": 539}, "project": {"id": 390, "owner": {"id": 42}, "assignee": {"id": 819}}, "task": {"id": 384, "owner": {"id": 979}, "assignee": {"id": 1050}}, "job": {"id": 308, "assignee": {"id": 1154}}, "organization": {"id": 1246}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 319, "owner": {"id": 672}, "assignee": {"id": 526}, "project": {"id": 370, "owner": {"id": 724}, "assignee": {"id": 52}}, "task": {"id": 325, "owner": {"id": 908}, "assignee": {"id": 1058}}, "job": {"id": 394, "assignee": {"id": 1171}}, "organization": {"id": 163}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 615}, "assignee": {"id": 569}, "project": {"id": 301, "owner": {"id": 723}, "assignee": {"id": 98}}, "task": {"id": 367, "owner": {"id": 962}, "assignee": {"id": 1059}}, "job": {"id": 379, "assignee": {"id": 1123}}, "organization": {"id": 1229}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "owner": {"id": 622}, "assignee": {"id": 556}, "project": {"id": 337, "owner": {"id": 762}, "assignee": {"id": 62}}, "task": {"id": 358, "owner": {"id": 901}, "assignee": {"id": 1052}}, "job": {"id": 352, "assignee": {"id": 1138}}, "organization": {"id": 149}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 635}, "assignee": {"id": 572}, "project": {"id": 344, "owner": {"id": 702}, "assignee": {"id": 98}}, "task": {"id": 355, "owner": {"id": 928}, "assignee": {"id": 1006}}, "job": {"id": 330, "assignee": {"id": 1190}}, "organization": {"id": 1204}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 623}, "assignee": {"id": 513}, "project": {"id": 352, "owner": {"id": 766}, "assignee": {"id": 90}}, "task": {"id": 370, "owner": {"id": 963}, "assignee": {"id": 1092}}, "job": {"id": 399, "assignee": {"id": 1153}}, "organization": {"id": 135}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 609}, "assignee": {"id": 558}, "project": {"id": 356, "owner": {"id": 790}, "assignee": {"id": 68}}, "task": {"id": 395, "owner": {"id": 978}, "assignee": {"id": 1013}}, "job": {"id": 371, "assignee": {"id": 1170}}, "organization": {"id": 1210}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 318, "owner": {"id": 676}, "assignee": {"id": 591}, "project": {"id": 378, "owner": {"id": 746}, "assignee": {"id": 18}}, "task": {"id": 361, "owner": {"id": 933}, "assignee": {"id": 1080}}, "job": {"id": 331, "assignee": {"id": 1166}}, "organization": {"id": 128}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 622}, "assignee": {"id": 595}, "project": {"id": 321, "owner": {"id": 765}, "assignee": {"id": 59}}, "task": {"id": 316, "owner": {"id": 906}, "assignee": {"id": 1050}}, "job": {"id": 334, "assignee": {"id": 1139}}, "organization": {"id": 1289}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 383, "owner": {"id": 642}, "assignee": {"id": 597}, "project": {"id": 379, "owner": {"id": 780}, "assignee": {"id": 56}}, "task": {"id": 378, "owner": {"id": 942}, "assignee": {"id": 1097}}, "job": {"id": 318, "assignee": {"id": 1190}}, "organization": {"id": 133}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 355, "owner": {"id": 690}, "assignee": {"id": 590}, "project": {"id": 338, "owner": {"id": 710}, "assignee": {"id": 98}}, "task": {"id": 340, "owner": {"id": 966}, "assignee": {"id": 1096}}, "job": {"id": 394, "assignee": {"id": 1112}}, "organization": {"id": 1254}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 602}, "assignee": {"id": 515}, "project": {"id": 303, "owner": {"id": 799}, "assignee": {"id": 8}}, "task": {"id": 371, "owner": {"id": 928}, "assignee": {"id": 1049}}, "job": {"id": 388, "assignee": {"id": 1159}}, "organization": {"id": 147}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"id": 350, "owner": {"id": 623}, "assignee": {"id": 533}, "project": {"id": 364, "owner": {"id": 720}, "assignee": {"id": 8}}, "task": {"id": 380, "owner": {"id": 913}, "assignee": {"id": 1004}}, "job": {"id": 368, "assignee": {"id": 1129}}, "organization": {"id": 1211}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "owner": {"id": 696}, "assignee": {"id": 567}, "project": {"id": 322, "owner": {"id": 716}, "assignee": {"id": 92}}, "task": {"id": 317, "owner": {"id": 971}, "assignee": {"id": 1076}}, "job": {"id": 354, "assignee": {"id": 1174}}, "organization": {"id": 116}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "owner": {"id": 624}, "assignee": {"id": 570}, "project": {"id": 373, "owner": {"id": 766}, "assignee": {"id": 15}}, "task": {"id": 395, "owner": {"id": 970}, "assignee": {"id": 1056}}, "job": {"id": 338, "assignee": {"id": 1109}}, "organization": {"id": 1221}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 340, "owner": {"id": 620}, "assignee": {"id": 519}, "project": {"id": 319, "owner": {"id": 780}, "assignee": {"id": 12}}, "task": {"id": 303, "owner": {"id": 972}, "assignee": {"id": 1001}}, "job": {"id": 393, "assignee": {"id": 1160}}, "organization": {"id": 165}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "owner": {"id": 690}, "assignee": {"id": 554}, "project": {"id": 380, "owner": {"id": 701}, "assignee": {"id": 11}}, "task": {"id": 373, "owner": {"id": 960}, "assignee": {"id": 1065}}, "job": {"id": 332, "assignee": {"id": 1141}}, "organization": {"id": 1250}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 389, "owner": {"id": 644}, "assignee": {"id": 585}, "project": {"id": 342, "owner": {"id": 716}, "assignee": {"id": 48}}, "task": {"id": 391, "owner": {"id": 901}, "assignee": {"id": 1058}}, "job": {"id": 308, "assignee": {"id": 1161}}, "organization": {"id": 117}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 311, "owner": {"id": 642}, "assignee": {"id": 569}, "project": {"id": 307, "owner": {"id": 752}, "assignee": {"id": 67}}, "task": {"id": 363, "owner": {"id": 992}, "assignee": {"id": 1075}}, "job": {"id": 363, "assignee": {"id": 1119}}, "organization": {"id": 1209}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 394, "owner": {"id": 607}, "assignee": {"id": 581}, "project": {"id": 340, "owner": {"id": 764}, "assignee": {"id": 25}}, "task": {"id": 387, "owner": {"id": 942}, "assignee": {"id": 1027}}, "job": {"id": 362, "assignee": {"id": 1150}}, "organization": {"id": 157}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 689}, "assignee": {"id": 578}, "project": {"id": 399, "owner": {"id": 727}, "assignee": {"id": 27}}, "task": {"id": 373, "owner": {"id": 997}, "assignee": {"id": 1051}}, "job": {"id": 351, "assignee": {"id": 1186}}, "organization": {"id": 1242}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 370, "owner": {"id": 618}, "assignee": {"id": 508}, "project": {"id": 343, "owner": {"id": 709}, "assignee": {"id": 91}}, "task": {"id": 394, "owner": {"id": 977}, "assignee": {"id": 1070}}, "job": {"id": 368, "assignee": {"id": 1136}}, "organization": {"id": 193}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 396, "owner": {"id": 638}, "assignee": {"id": 543}, "project": {"id": 373, "owner": {"id": 796}, "assignee": {"id": 43}}, "task": {"id": 377, "owner": {"id": 983}, "assignee": {"id": 1012}}, "job": {"id": 323, "assignee": {"id": 1130}}, "organization": {"id": 1221}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "owner": {"id": 675}, "assignee": {"id": 552}, "project": {"id": 318, "owner": {"id": 796}, "assignee": {"id": 93}}, "task": {"id": 307, "owner": {"id": 983}, "assignee": {"id": 1098}}, "job": {"id": 345, "assignee": {"id": 1126}}, "organization": {"id": 101}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 358, "owner": {"id": 605}, "assignee": {"id": 513}, "project": {"id": 351, "owner": {"id": 735}, "assignee": {"id": 95}}, "task": {"id": 392, "owner": {"id": 930}, "assignee": {"id": 1032}}, "job": {"id": 339, "assignee": {"id": 1195}}, "organization": {"id": 1243}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "owner": {"id": 657}, "assignee": {"id": 521}, "project": {"id": 398, "owner": {"id": 738}, "assignee": {"id": 63}}, "task": {"id": 312, "owner": {"id": 943}, "assignee": {"id": 1091}}, "job": {"id": 352, "assignee": {"id": 1138}}, "organization": {"id": 126}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "owner": {"id": 674}, "assignee": {"id": 520}, "project": {"id": 307, "owner": {"id": 722}, "assignee": {"id": 64}}, "task": {"id": 334, "owner": {"id": 993}, "assignee": {"id": 1093}}, "job": {"id": 305, "assignee": {"id": 1131}}, "organization": {"id": 1249}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 652}, "assignee": {"id": 532}, "project": {"id": 360, "owner": {"id": 756}, "assignee": {"id": 30}}, "task": {"id": 339, "owner": {"id": 961}, "assignee": {"id": 1070}}, "job": {"id": 388, "assignee": {"id": 1148}}, "organization": {"id": 135}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 695}, "assignee": {"id": 596}, "project": {"id": 335, "owner": {"id": 776}, "assignee": {"id": 51}}, "task": {"id": 334, "owner": {"id": 939}, "assignee": {"id": 1007}}, "job": {"id": 307, "assignee": {"id": 1126}}, "organization": {"id": 1274}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 692}, "assignee": {"id": 516}, "project": {"id": 363, "owner": {"id": 789}, "assignee": {"id": 59}}, "task": {"id": 382, "owner": {"id": 975}, "assignee": {"id": 1036}}, "job": {"id": 370, "assignee": {"id": 1160}}, "organization": {"id": 160}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 673}, "assignee": {"id": 581}, "project": {"id": 302, "owner": {"id": 786}, "assignee": {"id": 15}}, "task": {"id": 356, "owner": {"id": 955}, "assignee": {"id": 1035}}, "job": {"id": 387, "assignee": {"id": 1183}}, "organization": {"id": 1211}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 673}, "assignee": {"id": 563}, "project": {"id": 346, "owner": {"id": 725}, "assignee": {"id": 99}}, "task": {"id": 390, "owner": {"id": 910}, "assignee": {"id": 1081}}, "job": {"id": 329, "assignee": {"id": 1168}}, "organization": {"id": 111}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 325, "owner": {"id": 679}, "assignee": {"id": 505}, "project": {"id": 399, "owner": {"id": 747}, "assignee": {"id": 30}}, "task": {"id": 366, "owner": {"id": 981}, "assignee": {"id": 1009}}, "job": {"id": 323, "assignee": {"id": 1148}}, "organization": {"id": 1271}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 321, "owner": {"id": 655}, "assignee": {"id": 519}, "project": {"id": 318, "owner": {"id": 782}, "assignee": {"id": 66}}, "task": {"id": 302, "owner": {"id": 901}, "assignee": {"id": 1021}}, "job": {"id": 344, "assignee": {"id": 1145}}, "organization": {"id": 183}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "owner": {"id": 662}, "assignee": {"id": 562}, "project": {"id": 376, "owner": {"id": 784}, "assignee": {"id": 48}}, "task": {"id": 348, "owner": {"id": 987}, "assignee": {"id": 1049}}, "job": {"id": 330, "assignee": {"id": 1191}}, "organization": {"id": 1259}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "owner": {"id": 636}, "assignee": {"id": 517}, "project": {"id": 305, "owner": {"id": 761}, "assignee": {"id": 86}}, "task": {"id": 315, "owner": {"id": 930}, "assignee": {"id": 1009}}, "job": {"id": 396, "assignee": {"id": 1154}}, "organization": {"id": 142}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "owner": {"id": 603}, "assignee": {"id": 580}, "project": {"id": 395, "owner": {"id": 783}, "assignee": {"id": 39}}, "task": {"id": 375, "owner": {"id": 944}, "assignee": {"id": 1036}}, "job": {"id": 364, "assignee": {"id": 1151}}, "organization": {"id": 1243}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 328, "owner": {"id": 621}, "assignee": {"id": 588}, "project": {"id": 369, "owner": {"id": 740}, "assignee": {"id": 85}}, "task": {"id": 381, "owner": {"id": 924}, "assignee": {"id": 1099}}, "job": {"id": 320, "assignee": {"id": 1135}}, "organization": {"id": 180}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 340, "owner": {"id": 630}, "assignee": {"id": 508}, "project": {"id": 351, "owner": {"id": 764}, "assignee": {"id": 64}}, "task": {"id": 395, "owner": {"id": 910}, "assignee": {"id": 1018}}, "job": {"id": 399, "assignee": {"id": 1173}}, "organization": {"id": 1229}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 636}, "assignee": {"id": 560}, "project": {"id": 359, "owner": {"id": 756}, "assignee": {"id": 55}}, "task": {"id": 366, "owner": {"id": 964}, "assignee": {"id": 1094}}, "job": {"id": 346, "assignee": {"id": 1190}}, "organization": {"id": 172}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 650}, "assignee": {"id": 550}, "project": {"id": 380, "owner": {"id": 703}, "assignee": {"id": 69}}, "task": {"id": 328, "owner": {"id": 991}, "assignee": {"id": 1020}}, "job": {"id": 372, "assignee": {"id": 1133}}, "organization": {"id": 1266}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 305, "owner": {"id": 647}, "assignee": {"id": 586}, "project": {"id": 351, "owner": {"id": 755}, "assignee": {"id": 58}}, "task": {"id": 319, "owner": {"id": 984}, "assignee": {"id": 1015}}, "job": {"id": 375, "assignee": {"id": 1137}}, "organization": {"id": 197}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 315, "owner": {"id": 636}, "assignee": {"id": 503}, "project": {"id": 388, "owner": {"id": 746}, "assignee": {"id": 90}}, "task": {"id": 336, "owner": {"id": 931}, "assignee": {"id": 1008}}, "job": {"id": 330, "assignee": {"id": 1111}}, "organization": {"id": 1212}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 674}, "assignee": {"id": 543}, "project": {"id": 333, "owner": {"id": 753}, "assignee": {"id": 22}}, "task": {"id": 377, "owner": {"id": 910}, "assignee": {"id": 1012}}, "job": {"id": 358, "assignee": {"id": 1171}}, "organization": {"id": 126}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "owner": {"id": 615}, "assignee": {"id": 589}, "project": {"id": 304, "owner": {"id": 711}, "assignee": {"id": 13}}, "task": {"id": 337, "owner": {"id": 956}, "assignee": {"id": 1056}}, "job": {"id": 319, "assignee": {"id": 1102}}, "organization": {"id": 1293}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "owner": {"id": 605}, "assignee": {"id": 524}, "project": {"id": 330, "owner": {"id": 762}, "assignee": {"id": 76}}, "task": {"id": 398, "owner": {"id": 909}, "assignee": {"id": 1029}}, "job": {"id": 327, "assignee": {"id": 1162}}, "organization": {"id": 148}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 689}, "assignee": {"id": 532}, "project": {"id": 374, "owner": {"id": 735}, "assignee": {"id": 33}}, "task": {"id": 386, "owner": {"id": 902}, "assignee": {"id": 1084}}, "job": {"id": 373, "assignee": {"id": 1131}}, "organization": {"id": 1207}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 326, "owner": {"id": 656}, "assignee": {"id": 501}, "project": {"id": 329, "owner": {"id": 797}, "assignee": {"id": 62}}, "task": {"id": 359, "owner": {"id": 942}, "assignee": {"id": 1084}}, "job": {"id": 391, "assignee": {"id": 1159}}, "organization": {"id": 135}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 395, "owner": {"id": 652}, "assignee": {"id": 510}, "project": {"id": 338, "owner": {"id": 778}, "assignee": {"id": 21}}, "task": {"id": 354, "owner": {"id": 982}, "assignee": {"id": 1056}}, "job": {"id": 323, "assignee": {"id": 1121}}, "organization": {"id": 1255}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 344, "owner": {"id": 641}, "assignee": {"id": 518}, "project": {"id": 332, "owner": {"id": 795}, "assignee": {"id": 87}}, "task": {"id": 309, "owner": {"id": 962}, "assignee": {"id": 1041}}, "job": {"id": 347, "assignee": {"id": 1100}}, "organization": {"id": 175}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 399, "owner": {"id": 641}, "assignee": {"id": 524}, "project": {"id": 308, "owner": {"id": 739}, "assignee": {"id": 79}}, "task": {"id": 345, "owner": {"id": 919}, "assignee": {"id": 1043}}, "job": {"id": 359, "assignee": {"id": 1149}}, "organization": {"id": 1228}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 396, "owner": {"id": 657}, "assignee": {"id": 578}, "project": {"id": 376, "owner": {"id": 718}, "assignee": {"id": 827}}, "task": {"id": 351, "owner": {"id": 94}, "assignee": {"id": 1002}}, "job": {"id": 385, "assignee": {"id": 1190}}, "organization": {"id": 170}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 309, "owner": {"id": 653}, "assignee": {"id": 594}, "project": {"id": 304, "owner": {"id": 749}, "assignee": {"id": 894}}, "task": {"id": 378, "owner": {"id": 10}, "assignee": {"id": 1078}}, "job": {"id": 385, "assignee": {"id": 1186}}, "organization": {"id": 144}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 623}, "assignee": {"id": 589}, "project": {"id": 392, "owner": {"id": 758}, "assignee": {"id": 809}}, "task": {"id": 391, "owner": {"id": 30}, "assignee": {"id": 1016}}, "job": {"id": 327, "assignee": {"id": 1142}}, "organization": {"id": 1220}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 650}, "assignee": {"id": 556}, "project": {"id": 345, "owner": {"id": 769}, "assignee": {"id": 895}}, "task": {"id": 339, "owner": {"id": 25}, "assignee": {"id": 1014}}, "job": {"id": 353, "assignee": {"id": 1155}}, "organization": {"id": 1286}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "owner": {"id": 656}, "assignee": {"id": 521}, "project": {"id": 351, "owner": {"id": 735}, "assignee": {"id": 884}}, "task": {"id": 364, "owner": {"id": 6}, "assignee": {"id": 1067}}, "job": {"id": 323, "assignee": {"id": 1103}}, "organization": {"id": 155}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 638}, "assignee": {"id": 531}, "project": {"id": 311, "owner": {"id": 704}, "assignee": {"id": 829}}, "task": {"id": 319, "owner": {"id": 97}, "assignee": {"id": 1086}}, "job": {"id": 385, "assignee": {"id": 1122}}, "organization": {"id": 186}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "owner": {"id": 624}, "assignee": {"id": 535}, "project": {"id": 338, "owner": {"id": 760}, "assignee": {"id": 892}}, "task": {"id": 344, "owner": {"id": 81}, "assignee": {"id": 1018}}, "job": {"id": 347, "assignee": {"id": 1102}}, "organization": {"id": 1282}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "owner": {"id": 633}, "assignee": {"id": 525}, "project": {"id": 314, "owner": {"id": 797}, "assignee": {"id": 844}}, "task": {"id": 333, "owner": {"id": 81}, "assignee": {"id": 1061}}, "job": {"id": 378, "assignee": {"id": 1197}}, "organization": {"id": 1215}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 369, "owner": {"id": 635}, "assignee": {"id": 520}, "project": {"id": 379, "owner": {"id": 710}, "assignee": {"id": 833}}, "task": {"id": 363, "owner": {"id": 39}, "assignee": {"id": 1061}}, "job": {"id": 328, "assignee": {"id": 1106}}, "organization": {"id": 124}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "owner": {"id": 617}, "assignee": {"id": 507}, "project": {"id": 386, "owner": {"id": 784}, "assignee": {"id": 867}}, "task": {"id": 387, "owner": {"id": 84}, "assignee": {"id": 1006}}, "job": {"id": 316, "assignee": {"id": 1104}}, "organization": {"id": 161}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "owner": {"id": 628}, "assignee": {"id": 569}, "project": {"id": 342, "owner": {"id": 776}, "assignee": {"id": 884}}, "task": {"id": 375, "owner": {"id": 96}, "assignee": {"id": 1037}}, "job": {"id": 342, "assignee": {"id": 1136}}, "organization": {"id": 1248}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "owner": {"id": 667}, "assignee": {"id": 553}, "project": {"id": 365, "owner": {"id": 795}, "assignee": {"id": 838}}, "task": {"id": 382, "owner": {"id": 35}, "assignee": {"id": 1059}}, "job": {"id": 343, "assignee": {"id": 1129}}, "organization": {"id": 1294}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 638}, "assignee": {"id": 553}, "project": {"id": 305, "owner": {"id": 739}, "assignee": {"id": 828}}, "task": {"id": 319, "owner": {"id": 8}, "assignee": {"id": 1037}}, "job": {"id": 398, "assignee": {"id": 1198}}, "organization": {"id": 122}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 389, "owner": {"id": 654}, "assignee": {"id": 542}, "project": {"id": 375, "owner": {"id": 720}, "assignee": {"id": 817}}, "task": {"id": 353, "owner": {"id": 95}, "assignee": {"id": 1025}}, "job": {"id": 396, "assignee": {"id": 1146}}, "organization": {"id": 185}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 300, "owner": {"id": 657}, "assignee": {"id": 529}, "project": {"id": 337, "owner": {"id": 701}, "assignee": {"id": 880}}, "task": {"id": 321, "owner": {"id": 37}, "assignee": {"id": 1009}}, "job": {"id": 303, "assignee": {"id": 1178}}, "organization": {"id": 1216}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 371, "owner": {"id": 607}, "assignee": {"id": 581}, "project": {"id": 350, "owner": {"id": 729}, "assignee": {"id": 855}}, "task": {"id": 303, "owner": {"id": 92}, "assignee": {"id": 1080}}, "job": {"id": 369, "assignee": {"id": 1142}}, "organization": {"id": 1259}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 372, "owner": {"id": 697}, "assignee": {"id": 589}, "project": {"id": 380, "owner": {"id": 795}, "assignee": {"id": 854}}, "task": {"id": 310, "owner": {"id": 56}, "assignee": {"id": 1083}}, "job": {"id": 308, "assignee": {"id": 1186}}, "organization": {"id": 182}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 321, "owner": {"id": 651}, "assignee": {"id": 520}, "project": {"id": 354, "owner": {"id": 722}, "assignee": {"id": 890}}, "task": {"id": 347, "owner": {"id": 9}, "assignee": {"id": 1055}}, "job": {"id": 323, "assignee": {"id": 1145}}, "organization": {"id": 176}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 384, "owner": {"id": 618}, "assignee": {"id": 512}, "project": {"id": 390, "owner": {"id": 720}, "assignee": {"id": 872}}, "task": {"id": 347, "owner": {"id": 25}, "assignee": {"id": 1059}}, "job": {"id": 326, "assignee": {"id": 1169}}, "organization": {"id": 1222}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 347, "owner": {"id": 656}, "assignee": {"id": 567}, "project": {"id": 357, "owner": {"id": 781}, "assignee": {"id": 843}}, "task": {"id": 384, "owner": {"id": 15}, "assignee": {"id": 1081}}, "job": {"id": 346, "assignee": {"id": 1175}}, "organization": {"id": 1250}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 663}, "assignee": {"id": 580}, "project": {"id": 369, "owner": {"id": 737}, "assignee": {"id": 837}}, "task": {"id": 313, "owner": {"id": 78}, "assignee": {"id": 1039}}, "job": {"id": 376, "assignee": {"id": 1163}}, "organization": {"id": 165}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 350, "owner": {"id": 602}, "assignee": {"id": 551}, "project": {"id": 367, "owner": {"id": 722}, "assignee": {"id": 871}}, "task": {"id": 386, "owner": {"id": 24}, "assignee": {"id": 1040}}, "job": {"id": 372, "assignee": {"id": 1146}}, "organization": {"id": 176}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 668}, "assignee": {"id": 580}, "project": {"id": 374, "owner": {"id": 713}, "assignee": {"id": 825}}, "task": {"id": 351, "owner": {"id": 98}, "assignee": {"id": 1034}}, "job": {"id": 338, "assignee": {"id": 1108}}, "organization": {"id": 1290}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 326, "owner": {"id": 676}, "assignee": {"id": 554}, "project": {"id": 360, "owner": {"id": 776}, "assignee": {"id": 858}}, "task": {"id": 345, "owner": {"id": 39}, "assignee": {"id": 1072}}, "job": {"id": 319, "assignee": {"id": 1134}}, "organization": {"id": 1222}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 663}, "assignee": {"id": 525}, "project": {"id": 326, "owner": {"id": 755}, "assignee": {"id": 819}}, "task": {"id": 302, "owner": {"id": 46}, "assignee": {"id": 1000}}, "job": {"id": 368, "assignee": {"id": 1149}}, "organization": {"id": 163}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 684}, "assignee": {"id": 502}, "project": {"id": 382, "owner": {"id": 730}, "assignee": {"id": 859}}, "task": {"id": 380, "owner": {"id": 93}, "assignee": {"id": 1082}}, "job": {"id": 314, "assignee": {"id": 1174}}, "organization": {"id": 114}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "owner": {"id": 674}, "assignee": {"id": 512}, "project": {"id": 324, "owner": {"id": 702}, "assignee": {"id": 859}}, "task": {"id": 365, "owner": {"id": 45}, "assignee": {"id": 1070}}, "job": {"id": 345, "assignee": {"id": 1182}}, "organization": {"id": 1296}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "owner": {"id": 685}, "assignee": {"id": 574}, "project": {"id": 332, "owner": {"id": 720}, "assignee": {"id": 809}}, "task": {"id": 368, "owner": {"id": 58}, "assignee": {"id": 1035}}, "job": {"id": 357, "assignee": {"id": 1109}}, "organization": {"id": 1218}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "owner": {"id": 662}, "assignee": {"id": 539}, "project": {"id": 358, "owner": {"id": 786}, "assignee": {"id": 891}}, "task": {"id": 341, "owner": {"id": 81}, "assignee": {"id": 1070}}, "job": {"id": 359, "assignee": {"id": 1132}}, "organization": {"id": 144}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "owner": {"id": 694}, "assignee": {"id": 520}, "project": {"id": 340, "owner": {"id": 731}, "assignee": {"id": 891}}, "task": {"id": 346, "owner": {"id": 32}, "assignee": {"id": 1046}}, "job": {"id": 313, "assignee": {"id": 1151}}, "organization": {"id": 130}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 661}, "assignee": {"id": 566}, "project": {"id": 392, "owner": {"id": 732}, "assignee": {"id": 897}}, "task": {"id": 310, "owner": {"id": 67}, "assignee": {"id": 1038}}, "job": {"id": 372, "assignee": {"id": 1185}}, "organization": {"id": 1240}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "owner": {"id": 672}, "assignee": {"id": 572}, "project": {"id": 327, "owner": {"id": 759}, "assignee": {"id": 853}}, "task": {"id": 382, "owner": {"id": 81}, "assignee": {"id": 1082}}, "job": {"id": 331, "assignee": {"id": 1181}}, "organization": {"id": 1290}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 369, "owner": {"id": 638}, "assignee": {"id": 514}, "project": {"id": 302, "owner": {"id": 780}, "assignee": {"id": 869}}, "task": {"id": 329, "owner": {"id": 46}, "assignee": {"id": 1074}}, "job": {"id": 314, "assignee": {"id": 1120}}, "organization": {"id": 118}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 381, "owner": {"id": 678}, "assignee": {"id": 586}, "project": {"id": 363, "owner": {"id": 780}, "assignee": {"id": 822}}, "task": {"id": 301, "owner": {"id": 42}, "assignee": {"id": 1011}}, "job": {"id": 315, "assignee": {"id": 1151}}, "organization": {"id": 125}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 353, "owner": {"id": 652}, "assignee": {"id": 575}, "project": {"id": 373, "owner": {"id": 732}, "assignee": {"id": 816}}, "task": {"id": 358, "owner": {"id": 85}, "assignee": {"id": 1049}}, "job": {"id": 310, "assignee": {"id": 1105}}, "organization": {"id": 1219}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 371, "owner": {"id": 626}, "assignee": {"id": 506}, "project": {"id": 371, "owner": {"id": 762}, "assignee": {"id": 816}}, "task": {"id": 334, "owner": {"id": 64}, "assignee": {"id": 1019}}, "job": {"id": 372, "assignee": {"id": 1197}}, "organization": {"id": 1274}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 338, "owner": {"id": 687}, "assignee": {"id": 556}, "project": {"id": 322, "owner": {"id": 762}, "assignee": {"id": 868}}, "task": {"id": 364, "owner": {"id": 98}, "assignee": {"id": 1064}}, "job": {"id": 315, "assignee": {"id": 1152}}, "organization": {"id": 173}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 639}, "assignee": {"id": 523}, "project": {"id": 379, "owner": {"id": 715}, "assignee": {"id": 807}}, "task": {"id": 387, "owner": {"id": 57}, "assignee": {"id": 1090}}, "job": {"id": 391, "assignee": {"id": 1135}}, "organization": {"id": 108}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 326, "owner": {"id": 666}, "assignee": {"id": 597}, "project": {"id": 386, "owner": {"id": 789}, "assignee": {"id": 841}}, "task": {"id": 301, "owner": {"id": 87}, "assignee": {"id": 1011}}, "job": {"id": 393, "assignee": {"id": 1102}}, "organization": {"id": 1241}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 670}, "assignee": {"id": 540}, "project": {"id": 314, "owner": {"id": 771}, "assignee": {"id": 808}}, "task": {"id": 371, "owner": {"id": 1}, "assignee": {"id": 1059}}, "job": {"id": 347, "assignee": {"id": 1173}}, "organization": {"id": 1229}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"id": 390, "owner": {"id": 696}, "assignee": {"id": 502}, "project": {"id": 377, "owner": {"id": 710}, "assignee": {"id": 879}}, "task": {"id": 334, "owner": {"id": 20}, "assignee": {"id": 1014}}, "job": {"id": 361, "assignee": {"id": 1108}}, "organization": {"id": 177}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 309, "owner": {"id": 619}, "assignee": {"id": 518}, "project": {"id": 363, "owner": {"id": 748}, "assignee": {"id": 880}}, "task": {"id": 324, "owner": {"id": 73}, "assignee": {"id": 1085}}, "job": {"id": 359, "assignee": {"id": 1129}}, "organization": {"id": 101}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"id": 359, "owner": {"id": 648}, "assignee": {"id": 528}, "project": {"id": 386, "owner": {"id": 714}, "assignee": {"id": 844}}, "task": {"id": 320, "owner": {"id": 8}, "assignee": {"id": 1070}}, "job": {"id": 343, "assignee": {"id": 1114}}, "organization": {"id": 1244}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 317, "owner": {"id": 608}, "assignee": {"id": 575}, "project": {"id": 399, "owner": {"id": 706}, "assignee": {"id": 855}}, "task": {"id": 345, "owner": {"id": 16}, "assignee": {"id": 1001}}, "job": {"id": 325, "assignee": {"id": 1154}}, "organization": {"id": 1244}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "owner": {"id": 695}, "assignee": {"id": 558}, "project": {"id": 364, "owner": {"id": 773}, "assignee": {"id": 867}}, "task": {"id": 369, "owner": {"id": 5}, "assignee": {"id": 1077}}, "job": {"id": 327, "assignee": {"id": 1155}}, "organization": {"id": 109}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 673}, "assignee": {"id": 560}, "project": {"id": 360, "owner": {"id": 738}, "assignee": {"id": 883}}, "task": {"id": 309, "owner": {"id": 69}, "assignee": {"id": 1078}}, "job": {"id": 354, "assignee": {"id": 1145}}, "organization": {"id": 150}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 688}, "assignee": {"id": 566}, "project": {"id": 392, "owner": {"id": 787}, "assignee": {"id": 830}}, "task": {"id": 387, "owner": {"id": 27}, "assignee": {"id": 1034}}, "job": {"id": 321, "assignee": {"id": 1199}}, "organization": {"id": 1281}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 691}, "assignee": {"id": 589}, "project": {"id": 352, "owner": {"id": 765}, "assignee": {"id": 814}}, "task": {"id": 348, "owner": {"id": 79}, "assignee": {"id": 1093}}, "job": {"id": 305, "assignee": {"id": 1183}}, "organization": {"id": 1293}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "owner": {"id": 641}, "assignee": {"id": 560}, "project": {"id": 384, "owner": {"id": 774}, "assignee": {"id": 830}}, "task": {"id": 380, "owner": {"id": 92}, "assignee": {"id": 1068}}, "job": {"id": 316, "assignee": {"id": 1160}}, "organization": {"id": 161}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 695}, "assignee": {"id": 592}, "project": {"id": 336, "owner": {"id": 792}, "assignee": {"id": 861}}, "task": {"id": 316, "owner": {"id": 48}, "assignee": {"id": 1093}}, "job": {"id": 374, "assignee": {"id": 1100}}, "organization": {"id": 158}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "owner": {"id": 625}, "assignee": {"id": 571}, "project": {"id": 334, "owner": {"id": 790}, "assignee": {"id": 834}}, "task": {"id": 383, "owner": {"id": 32}, "assignee": {"id": 1017}}, "job": {"id": 341, "assignee": {"id": 1181}}, "organization": {"id": 1239}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 683}, "assignee": {"id": 571}, "project": {"id": 322, "owner": {"id": 799}, "assignee": {"id": 882}}, "task": {"id": 399, "owner": {"id": 93}, "assignee": {"id": 1091}}, "job": {"id": 355, "assignee": {"id": 1196}}, "organization": {"id": 1286}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 341, "owner": {"id": 612}, "assignee": {"id": 509}, "project": {"id": 342, "owner": {"id": 725}, "assignee": {"id": 851}}, "task": {"id": 360, "owner": {"id": 35}, "assignee": {"id": 1048}}, "job": {"id": 335, "assignee": {"id": 1140}}, "organization": {"id": 169}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 315, "owner": {"id": 683}, "assignee": {"id": 515}, "project": {"id": 351, "owner": {"id": 702}, "assignee": {"id": 807}}, "task": {"id": 307, "owner": {"id": 83}, "assignee": {"id": 1043}}, "job": {"id": 312, "assignee": {"id": 1185}}, "organization": {"id": 178}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 377, "owner": {"id": 649}, "assignee": {"id": 547}, "project": {"id": 375, "owner": {"id": 782}, "assignee": {"id": 861}}, "task": {"id": 301, "owner": {"id": 68}, "assignee": {"id": 1051}}, "job": {"id": 393, "assignee": {"id": 1174}}, "organization": {"id": 1240}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 610}, "assignee": {"id": 520}, "project": {"id": 357, "owner": {"id": 753}, "assignee": {"id": 862}}, "task": {"id": 343, "owner": {"id": 18}, "assignee": {"id": 1072}}, "job": {"id": 391, "assignee": {"id": 1123}}, "organization": {"id": 1290}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 300, "owner": {"id": 606}, "assignee": {"id": 523}, "project": {"id": 363, "owner": {"id": 773}, "assignee": {"id": 889}}, "task": {"id": 386, "owner": {"id": 74}, "assignee": {"id": 1051}}, "job": {"id": 352, "assignee": {"id": 1144}}, "organization": {"id": 120}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 373, "owner": {"id": 669}, "assignee": {"id": 506}, "project": {"id": 335, "owner": {"id": 747}, "assignee": {"id": 851}}, "task": {"id": 333, "owner": {"id": 59}, "assignee": {"id": 1033}}, "job": {"id": 359, "assignee": {"id": 1125}}, "organization": {"id": 148}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 659}, "assignee": {"id": 591}, "project": {"id": 328, "owner": {"id": 752}, "assignee": {"id": 851}}, "task": {"id": 389, "owner": {"id": 99}, "assignee": {"id": 1047}}, "job": {"id": 376, "assignee": {"id": 1135}}, "organization": {"id": 1286}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 604}, "assignee": {"id": 555}, "project": {"id": 366, "owner": {"id": 714}, "assignee": {"id": 818}}, "task": {"id": 336, "owner": {"id": 35}, "assignee": {"id": 1045}}, "job": {"id": 341, "assignee": {"id": 1114}}, "organization": {"id": 1224}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 309, "owner": {"id": 601}, "assignee": {"id": 572}, "project": {"id": 375, "owner": {"id": 738}, "assignee": {"id": 827}}, "task": {"id": 365, "owner": {"id": 32}, "assignee": {"id": 1009}}, "job": {"id": 376, "assignee": {"id": 1168}}, "organization": {"id": 166}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 313, "owner": {"id": 607}, "assignee": {"id": 564}, "project": {"id": 388, "owner": {"id": 780}, "assignee": {"id": 864}}, "task": {"id": 352, "owner": {"id": 42}, "assignee": {"id": 1048}}, "job": {"id": 386, "assignee": {"id": 1154}}, "organization": {"id": 125}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 336, "owner": {"id": 655}, "assignee": {"id": 505}, "project": {"id": 344, "owner": {"id": 701}, "assignee": {"id": 814}}, "task": {"id": 303, "owner": {"id": 83}, "assignee": {"id": 1060}}, "job": {"id": 338, "assignee": {"id": 1164}}, "organization": {"id": 1248}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 611}, "assignee": {"id": 592}, "project": {"id": 348, "owner": {"id": 799}, "assignee": {"id": 840}}, "task": {"id": 384, "owner": {"id": 71}, "assignee": {"id": 1002}}, "job": {"id": 360, "assignee": {"id": 1128}}, "organization": {"id": 1253}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 678}, "assignee": {"id": 587}, "project": {"id": 385, "owner": {"id": 734}, "assignee": {"id": 826}}, "task": {"id": 377, "owner": {"id": 19}, "assignee": {"id": 1005}}, "job": {"id": 309, "assignee": {"id": 1106}}, "organization": {"id": 190}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 655}, "assignee": {"id": 547}, "project": {"id": 364, "owner": {"id": 735}, "assignee": {"id": 826}}, "task": {"id": 394, "owner": {"id": 12}, "assignee": {"id": 1036}}, "job": {"id": 361, "assignee": {"id": 1169}}, "organization": {"id": 191}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "owner": {"id": 673}, "assignee": {"id": 581}, "project": {"id": 357, "owner": {"id": 709}, "assignee": {"id": 812}}, "task": {"id": 393, "owner": {"id": 22}, "assignee": {"id": 1015}}, "job": {"id": 362, "assignee": {"id": 1178}}, "organization": {"id": 1214}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "owner": {"id": 629}, "assignee": {"id": 588}, "project": {"id": 315, "owner": {"id": 745}, "assignee": {"id": 821}}, "task": {"id": 321, "owner": {"id": 38}, "assignee": {"id": 1032}}, "job": {"id": 313, "assignee": {"id": 1152}}, "organization": {"id": 1260}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "owner": {"id": 659}, "assignee": {"id": 517}, "project": {"id": 377, "owner": {"id": 781}, "assignee": {"id": 873}}, "task": {"id": 342, "owner": {"id": 83}, "assignee": {"id": 1038}}, "job": {"id": 392, "assignee": {"id": 1131}}, "organization": {"id": 173}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 662}, "assignee": {"id": 590}, "project": {"id": 381, "owner": {"id": 749}, "assignee": {"id": 835}}, "task": {"id": 357, "owner": {"id": 62}, "assignee": {"id": 1038}}, "job": {"id": 329, "assignee": {"id": 1157}}, "organization": {"id": 132}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 668}, "assignee": {"id": 580}, "project": {"id": 351, "owner": {"id": 750}, "assignee": {"id": 894}}, "task": {"id": 327, "owner": {"id": 69}, "assignee": {"id": 1017}}, "job": {"id": 339, "assignee": {"id": 1170}}, "organization": {"id": 1242}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "owner": {"id": 657}, "assignee": {"id": 563}, "project": {"id": 379, "owner": {"id": 768}, "assignee": {"id": 877}}, "task": {"id": 331, "owner": {"id": 68}, "assignee": {"id": 1073}}, "job": {"id": 328, "assignee": {"id": 1174}}, "organization": {"id": 1281}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 324, "owner": {"id": 672}, "assignee": {"id": 511}, "project": {"id": 396, "owner": {"id": 764}, "assignee": {"id": 841}}, "task": {"id": 323, "owner": {"id": 8}, "assignee": {"id": 1084}}, "job": {"id": 325, "assignee": {"id": 1141}}, "organization": {"id": 127}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 373, "owner": {"id": 687}, "assignee": {"id": 585}, "project": {"id": 386, "owner": {"id": 781}, "assignee": {"id": 815}}, "task": {"id": 317, "owner": {"id": 99}, "assignee": {"id": 1036}}, "job": {"id": 393, "assignee": {"id": 1103}}, "organization": {"id": 196}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 674}, "assignee": {"id": 584}, "project": {"id": 372, "owner": {"id": 722}, "assignee": {"id": 891}}, "task": {"id": 351, "owner": {"id": 42}, "assignee": {"id": 1016}}, "job": {"id": 350, "assignee": {"id": 1188}}, "organization": {"id": 1285}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 607}, "assignee": {"id": 505}, "project": {"id": 375, "owner": {"id": 756}, "assignee": {"id": 863}}, "task": {"id": 339, "owner": {"id": 68}, "assignee": {"id": 1064}}, "job": {"id": 350, "assignee": {"id": 1118}}, "organization": {"id": 1223}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 380, "owner": {"id": 699}, "assignee": {"id": 548}, "project": {"id": 330, "owner": {"id": 773}, "assignee": {"id": 815}}, "task": {"id": 382, "owner": {"id": 21}, "assignee": {"id": 1016}}, "job": {"id": 334, "assignee": {"id": 1165}}, "organization": {"id": 154}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 317, "owner": {"id": 668}, "assignee": {"id": 572}, "project": {"id": 342, "owner": {"id": 769}, "assignee": {"id": 827}}, "task": {"id": 392, "owner": {"id": 28}, "assignee": {"id": 1015}}, "job": {"id": 398, "assignee": {"id": 1167}}, "organization": {"id": 128}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 336, "owner": {"id": 660}, "assignee": {"id": 595}, "project": {"id": 331, "owner": {"id": 761}, "assignee": {"id": 818}}, "task": {"id": 359, "owner": {"id": 88}, "assignee": {"id": 1078}}, "job": {"id": 370, "assignee": {"id": 1118}}, "organization": {"id": 1260}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 601}, "assignee": {"id": 541}, "project": {"id": 307, "owner": {"id": 772}, "assignee": {"id": 893}}, "task": {"id": 399, "owner": {"id": 65}, "assignee": {"id": 1003}}, "job": {"id": 372, "assignee": {"id": 1148}}, "organization": {"id": 1292}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 384, "owner": {"id": 612}, "assignee": {"id": 590}, "project": {"id": 392, "owner": {"id": 796}, "assignee": {"id": 857}}, "task": {"id": 303, "owner": {"id": 3}, "assignee": {"id": 1011}}, "job": {"id": 337, "assignee": {"id": 1196}}, "organization": {"id": 136}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 319, "owner": {"id": 658}, "assignee": {"id": 567}, "project": {"id": 350, "owner": {"id": 790}, "assignee": {"id": 880}}, "task": {"id": 307, "owner": {"id": 85}, "assignee": {"id": 1072}}, "job": {"id": 381, "assignee": {"id": 1102}}, "organization": {"id": 192}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 383, "owner": {"id": 682}, "assignee": {"id": 588}, "project": {"id": 341, "owner": {"id": 787}, "assignee": {"id": 825}}, "task": {"id": 392, "owner": {"id": 44}, "assignee": {"id": 1093}}, "job": {"id": 358, "assignee": {"id": 1142}}, "organization": {"id": 1270}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 304, "owner": {"id": 615}, "assignee": {"id": 568}, "project": {"id": 367, "owner": {"id": 779}, "assignee": {"id": 816}}, "task": {"id": 332, "owner": {"id": 46}, "assignee": {"id": 1036}}, "job": {"id": 381, "assignee": {"id": 1139}}, "organization": {"id": 1233}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "owner": {"id": 681}, "assignee": {"id": 503}, "project": {"id": 397, "owner": {"id": 783}, "assignee": {"id": 855}}, "task": {"id": 361, "owner": {"id": 63}, "assignee": {"id": 1035}}, "job": {"id": 359, "assignee": {"id": 1161}}, "organization": {"id": 110}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 695}, "assignee": {"id": 503}, "project": {"id": 354, "owner": {"id": 729}, "assignee": {"id": 875}}, "task": {"id": 303, "owner": {"id": 43}, "assignee": {"id": 1071}}, "job": {"id": 379, "assignee": {"id": 1148}}, "organization": {"id": 151}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "owner": {"id": 668}, "assignee": {"id": 539}, "project": {"id": 345, "owner": {"id": 731}, "assignee": {"id": 802}}, "task": {"id": 305, "owner": {"id": 56}, "assignee": {"id": 1080}}, "job": {"id": 300, "assignee": {"id": 1171}}, "organization": {"id": 1206}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "owner": {"id": 630}, "assignee": {"id": 532}, "project": {"id": 367, "owner": {"id": 738}, "assignee": {"id": 828}}, "task": {"id": 337, "owner": {"id": 50}, "assignee": {"id": 1039}}, "job": {"id": 350, "assignee": {"id": 1104}}, "organization": {"id": 1243}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "owner": {"id": 692}, "assignee": {"id": 506}, "project": {"id": 368, "owner": {"id": 705}, "assignee": {"id": 835}}, "task": {"id": 341, "owner": {"id": 3}, "assignee": {"id": 1056}}, "job": {"id": 382, "assignee": {"id": 1154}}, "organization": {"id": 112}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 627}, "assignee": {"id": 513}, "project": {"id": 354, "owner": {"id": 700}, "assignee": {"id": 838}}, "task": {"id": 330, "owner": {"id": 87}, "assignee": {"id": 1046}}, "job": {"id": 358, "assignee": {"id": 1111}}, "organization": {"id": 188}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "owner": {"id": 685}, "assignee": {"id": 517}, "project": {"id": 354, "owner": {"id": 766}, "assignee": {"id": 866}}, "task": {"id": 340, "owner": {"id": 16}, "assignee": {"id": 1076}}, "job": {"id": 347, "assignee": {"id": 1152}}, "organization": {"id": 1207}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 387, "owner": {"id": 640}, "assignee": {"id": 586}, "project": {"id": 314, "owner": {"id": 701}, "assignee": {"id": 822}}, "task": {"id": 311, "owner": {"id": 43}, "assignee": {"id": 1028}}, "job": {"id": 389, "assignee": {"id": 1165}}, "organization": {"id": 1200}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 395, "owner": {"id": 681}, "assignee": {"id": 545}, "project": {"id": 345, "owner": {"id": 796}, "assignee": {"id": 816}}, "task": {"id": 314, "owner": {"id": 65}, "assignee": {"id": 1036}}, "job": {"id": 384, "assignee": {"id": 1196}}, "organization": {"id": 196}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 366, "owner": {"id": 665}, "assignee": {"id": 526}, "project": {"id": 386, "owner": {"id": 752}, "assignee": {"id": 809}}, "task": {"id": 330, "owner": {"id": 6}, "assignee": {"id": 1058}}, "job": {"id": 343, "assignee": {"id": 1117}}, "organization": {"id": 181}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 363, "owner": {"id": 694}, "assignee": {"id": 524}, "project": {"id": 393, "owner": {"id": 748}, "assignee": {"id": 862}}, "task": {"id": 324, "owner": {"id": 59}, "assignee": {"id": 1077}}, "job": {"id": 366, "assignee": {"id": 1118}}, "organization": {"id": 1256}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 304, "owner": {"id": 673}, "assignee": {"id": 500}, "project": {"id": 329, "owner": {"id": 707}, "assignee": {"id": 876}}, "task": {"id": 319, "owner": {"id": 24}, "assignee": {"id": 1035}}, "job": {"id": 321, "assignee": {"id": 1131}}, "organization": {"id": 1254}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 356, "owner": {"id": 607}, "assignee": {"id": 519}, "project": {"id": 365, "owner": {"id": 771}, "assignee": {"id": 821}}, "task": {"id": 319, "owner": {"id": 34}, "assignee": {"id": 1068}}, "job": {"id": 340, "assignee": {"id": 1168}}, "organization": {"id": 179}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 347, "owner": {"id": 637}, "assignee": {"id": 542}, "project": {"id": 387, "owner": {"id": 709}, "assignee": {"id": 834}}, "task": {"id": 370, "owner": {"id": 21}, "assignee": {"id": 1030}}, "job": {"id": 377, "assignee": {"id": 1156}}, "organization": {"id": 198}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 373, "owner": {"id": 659}, "assignee": {"id": 530}, "project": {"id": 327, "owner": {"id": 747}, "assignee": {"id": 824}}, "task": {"id": 303, "owner": {"id": 77}, "assignee": {"id": 1039}}, "job": {"id": 382, "assignee": {"id": 1114}}, "organization": {"id": 1252}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 301, "owner": {"id": 677}, "assignee": {"id": 575}, "project": {"id": 321, "owner": {"id": 799}, "assignee": {"id": 835}}, "task": {"id": 311, "owner": {"id": 17}, "assignee": {"id": 1066}}, "job": {"id": 379, "assignee": {"id": 1138}}, "organization": {"id": 1206}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 320, "owner": {"id": 624}, "assignee": {"id": 528}, "project": {"id": 351, "owner": {"id": 783}, "assignee": {"id": 821}}, "task": {"id": 313, "owner": {"id": 921}, "assignee": {"id": 17}}, "job": {"id": 359, "assignee": {"id": 1166}}, "organization": {"id": 137}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 693}, "assignee": {"id": 522}, "project": {"id": 398, "owner": {"id": 788}, "assignee": {"id": 851}}, "task": {"id": 370, "owner": {"id": 957}, "assignee": {"id": 40}}, "job": {"id": 352, "assignee": {"id": 1174}}, "organization": {"id": 156}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 356, "owner": {"id": 616}, "assignee": {"id": 554}, "project": {"id": 310, "owner": {"id": 715}, "assignee": {"id": 888}}, "task": {"id": 336, "owner": {"id": 951}, "assignee": {"id": 15}}, "job": {"id": 319, "assignee": {"id": 1126}}, "organization": {"id": 1285}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 629}, "assignee": {"id": 536}, "project": {"id": 352, "owner": {"id": 730}, "assignee": {"id": 815}}, "task": {"id": 369, "owner": {"id": 917}, "assignee": {"id": 73}}, "job": {"id": 366, "assignee": {"id": 1192}}, "organization": {"id": 1244}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "owner": {"id": 687}, "assignee": {"id": 505}, "project": {"id": 387, "owner": {"id": 724}, "assignee": {"id": 839}}, "task": {"id": 382, "owner": {"id": 949}, "assignee": {"id": 6}}, "job": {"id": 306, "assignee": {"id": 1108}}, "organization": {"id": 116}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 648}, "assignee": {"id": 523}, "project": {"id": 393, "owner": {"id": 719}, "assignee": {"id": 884}}, "task": {"id": 395, "owner": {"id": 933}, "assignee": {"id": 83}}, "job": {"id": 384, "assignee": {"id": 1191}}, "organization": {"id": 100}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "owner": {"id": 615}, "assignee": {"id": 577}, "project": {"id": 397, "owner": {"id": 760}, "assignee": {"id": 877}}, "task": {"id": 335, "owner": {"id": 999}, "assignee": {"id": 11}}, "job": {"id": 379, "assignee": {"id": 1102}}, "organization": {"id": 1284}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 603}, "assignee": {"id": 548}, "project": {"id": 392, "owner": {"id": 723}, "assignee": {"id": 819}}, "task": {"id": 329, "owner": {"id": 926}, "assignee": {"id": 95}}, "job": {"id": 324, "assignee": {"id": 1166}}, "organization": {"id": 1235}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 696}, "assignee": {"id": 507}, "project": {"id": 341, "owner": {"id": 796}, "assignee": {"id": 843}}, "task": {"id": 328, "owner": {"id": 952}, "assignee": {"id": 11}}, "job": {"id": 399, "assignee": {"id": 1135}}, "organization": {"id": 142}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "owner": {"id": 671}, "assignee": {"id": 598}, "project": {"id": 345, "owner": {"id": 757}, "assignee": {"id": 812}}, "task": {"id": 397, "owner": {"id": 925}, "assignee": {"id": 22}}, "job": {"id": 365, "assignee": {"id": 1149}}, "organization": {"id": 160}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 664}, "assignee": {"id": 557}, "project": {"id": 375, "owner": {"id": 736}, "assignee": {"id": 815}}, "task": {"id": 387, "owner": {"id": 976}, "assignee": {"id": 25}}, "job": {"id": 356, "assignee": {"id": 1164}}, "organization": {"id": 1240}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "owner": {"id": 621}, "assignee": {"id": 566}, "project": {"id": 312, "owner": {"id": 792}, "assignee": {"id": 899}}, "task": {"id": 387, "owner": {"id": 993}, "assignee": {"id": 83}}, "job": {"id": 355, "assignee": {"id": 1199}}, "organization": {"id": 1294}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 367, "owner": {"id": 697}, "assignee": {"id": 505}, "project": {"id": 376, "owner": {"id": 719}, "assignee": {"id": 851}}, "task": {"id": 337, "owner": {"id": 998}, "assignee": {"id": 17}}, "job": {"id": 332, "assignee": {"id": 1178}}, "organization": {"id": 164}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 605}, "assignee": {"id": 549}, "project": {"id": 301, "owner": {"id": 717}, "assignee": {"id": 874}}, "task": {"id": 397, "owner": {"id": 951}, "assignee": {"id": 92}}, "job": {"id": 387, "assignee": {"id": 1177}}, "organization": {"id": 173}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 302, "owner": {"id": 612}, "assignee": {"id": 556}, "project": {"id": 320, "owner": {"id": 768}, "assignee": {"id": 827}}, "task": {"id": 304, "owner": {"id": 908}, "assignee": {"id": 54}}, "job": {"id": 353, "assignee": {"id": 1123}}, "organization": {"id": 1253}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 372, "owner": {"id": 628}, "assignee": {"id": 541}, "project": {"id": 372, "owner": {"id": 741}, "assignee": {"id": 884}}, "task": {"id": 305, "owner": {"id": 962}, "assignee": {"id": 52}}, "job": {"id": 334, "assignee": {"id": 1131}}, "organization": {"id": 1291}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 631}, "assignee": {"id": 542}, "project": {"id": 337, "owner": {"id": 756}, "assignee": {"id": 849}}, "task": {"id": 366, "owner": {"id": 900}, "assignee": {"id": 34}}, "job": {"id": 361, "assignee": {"id": 1134}}, "organization": {"id": 105}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 376, "owner": {"id": 625}, "assignee": {"id": 512}, "project": {"id": 393, "owner": {"id": 779}, "assignee": {"id": 806}}, "task": {"id": 319, "owner": {"id": 912}, "assignee": {"id": 20}}, "job": {"id": 322, "assignee": {"id": 1116}}, "organization": {"id": 199}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 620}, "assignee": {"id": 549}, "project": {"id": 325, "owner": {"id": 777}, "assignee": {"id": 821}}, "task": {"id": 360, "owner": {"id": 943}, "assignee": {"id": 42}}, "job": {"id": 333, "assignee": {"id": 1130}}, "organization": {"id": 1283}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 656}, "assignee": {"id": 531}, "project": {"id": 398, "owner": {"id": 799}, "assignee": {"id": 892}}, "task": {"id": 385, "owner": {"id": 904}, "assignee": {"id": 46}}, "job": {"id": 391, "assignee": {"id": 1175}}, "organization": {"id": 1267}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 313, "owner": {"id": 621}, "assignee": {"id": 567}, "project": {"id": 332, "owner": {"id": 783}, "assignee": {"id": 849}}, "task": {"id": 387, "owner": {"id": 979}, "assignee": {"id": 30}}, "job": {"id": 331, "assignee": {"id": 1148}}, "organization": {"id": 172}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 616}, "assignee": {"id": 569}, "project": {"id": 383, "owner": {"id": 730}, "assignee": {"id": 894}}, "task": {"id": 326, "owner": {"id": 912}, "assignee": {"id": 48}}, "job": {"id": 349, "assignee": {"id": 1194}}, "organization": {"id": 136}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 397, "owner": {"id": 627}, "assignee": {"id": 553}, "project": {"id": 306, "owner": {"id": 750}, "assignee": {"id": 893}}, "task": {"id": 317, "owner": {"id": 932}, "assignee": {"id": 24}}, "job": {"id": 334, "assignee": {"id": 1169}}, "organization": {"id": 1240}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 626}, "assignee": {"id": 553}, "project": {"id": 376, "owner": {"id": 732}, "assignee": {"id": 829}}, "task": {"id": 398, "owner": {"id": 995}, "assignee": {"id": 58}}, "job": {"id": 324, "assignee": {"id": 1169}}, "organization": {"id": 1252}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "owner": {"id": 665}, "assignee": {"id": 596}, "project": {"id": 386, "owner": {"id": 791}, "assignee": {"id": 817}}, "task": {"id": 339, "owner": {"id": 999}, "assignee": {"id": 77}}, "job": {"id": 369, "assignee": {"id": 1168}}, "organization": {"id": 123}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "owner": {"id": 648}, "assignee": {"id": 573}, "project": {"id": 326, "owner": {"id": 755}, "assignee": {"id": 880}}, "task": {"id": 353, "owner": {"id": 994}, "assignee": {"id": 34}}, "job": {"id": 355, "assignee": {"id": 1139}}, "organization": {"id": 107}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 646}, "assignee": {"id": 515}, "project": {"id": 344, "owner": {"id": 768}, "assignee": {"id": 829}}, "task": {"id": 371, "owner": {"id": 983}, "assignee": {"id": 29}}, "job": {"id": 382, "assignee": {"id": 1126}}, "organization": {"id": 1293}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "owner": {"id": 655}, "assignee": {"id": 561}, "project": {"id": 301, "owner": {"id": 784}, "assignee": {"id": 857}}, "task": {"id": 357, "owner": {"id": 991}, "assignee": {"id": 29}}, "job": {"id": 380, "assignee": {"id": 1184}}, "organization": {"id": 1287}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "owner": {"id": 649}, "assignee": {"id": 537}, "project": {"id": 343, "owner": {"id": 796}, "assignee": {"id": 862}}, "task": {"id": 329, "owner": {"id": 922}, "assignee": {"id": 76}}, "job": {"id": 385, "assignee": {"id": 1149}}, "organization": {"id": 169}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "owner": {"id": 696}, "assignee": {"id": 586}, "project": {"id": 383, "owner": {"id": 700}, "assignee": {"id": 800}}, "task": {"id": 322, "owner": {"id": 966}, "assignee": {"id": 14}}, "job": {"id": 302, "assignee": {"id": 1103}}, "organization": {"id": 167}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 645}, "assignee": {"id": 553}, "project": {"id": 329, "owner": {"id": 708}, "assignee": {"id": 892}}, "task": {"id": 376, "owner": {"id": 944}, "assignee": {"id": 26}}, "job": {"id": 381, "assignee": {"id": 1199}}, "organization": {"id": 1286}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 606}, "assignee": {"id": 572}, "project": {"id": 314, "owner": {"id": 732}, "assignee": {"id": 853}}, "task": {"id": 336, "owner": {"id": 967}, "assignee": {"id": 2}}, "job": {"id": 321, "assignee": {"id": 1166}}, "organization": {"id": 1270}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 332, "owner": {"id": 689}, "assignee": {"id": 596}, "project": {"id": 304, "owner": {"id": 729}, "assignee": {"id": 835}}, "task": {"id": 337, "owner": {"id": 980}, "assignee": {"id": 7}}, "job": {"id": 345, "assignee": {"id": 1118}}, "organization": {"id": 171}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 679}, "assignee": {"id": 533}, "project": {"id": 364, "owner": {"id": 729}, "assignee": {"id": 863}}, "task": {"id": 369, "owner": {"id": 974}, "assignee": {"id": 19}}, "job": {"id": 392, "assignee": {"id": 1165}}, "organization": {"id": 185}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 319, "owner": {"id": 696}, "assignee": {"id": 569}, "project": {"id": 396, "owner": {"id": 761}, "assignee": {"id": 829}}, "task": {"id": 397, "owner": {"id": 996}, "assignee": {"id": 28}}, "job": {"id": 346, "assignee": {"id": 1119}}, "organization": {"id": 1239}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 338, "owner": {"id": 678}, "assignee": {"id": 554}, "project": {"id": 357, "owner": {"id": 764}, "assignee": {"id": 812}}, "task": {"id": 364, "owner": {"id": 917}, "assignee": {"id": 64}}, "job": {"id": 312, "assignee": {"id": 1153}}, "organization": {"id": 1270}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 391, "owner": {"id": 603}, "assignee": {"id": 502}, "project": {"id": 350, "owner": {"id": 797}, "assignee": {"id": 876}}, "task": {"id": 371, "owner": {"id": 941}, "assignee": {"id": 73}}, "job": {"id": 384, "assignee": {"id": 1159}}, "organization": {"id": 161}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 371, "owner": {"id": 648}, "assignee": {"id": 555}, "project": {"id": 332, "owner": {"id": 758}, "assignee": {"id": 854}}, "task": {"id": 339, "owner": {"id": 959}, "assignee": {"id": 8}}, "job": {"id": 303, "assignee": {"id": 1121}}, "organization": {"id": 160}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 315, "owner": {"id": 676}, "assignee": {"id": 509}, "project": {"id": 305, "owner": {"id": 747}, "assignee": {"id": 835}}, "task": {"id": 391, "owner": {"id": 973}, "assignee": {"id": 59}}, "job": {"id": 392, "assignee": {"id": 1189}}, "organization": {"id": 1207}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 356, "owner": {"id": 661}, "assignee": {"id": 514}, "project": {"id": 349, "owner": {"id": 746}, "assignee": {"id": 889}}, "task": {"id": 306, "owner": {"id": 932}, "assignee": {"id": 41}}, "job": {"id": 353, "assignee": {"id": 1171}}, "organization": {"id": 1275}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 656}, "assignee": {"id": 506}, "project": {"id": 396, "owner": {"id": 733}, "assignee": {"id": 886}}, "task": {"id": 332, "owner": {"id": 991}, "assignee": {"id": 23}}, "job": {"id": 327, "assignee": {"id": 1170}}, "organization": {"id": 101}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 311, "owner": {"id": 601}, "assignee": {"id": 549}, "project": {"id": 360, "owner": {"id": 725}, "assignee": {"id": 800}}, "task": {"id": 349, "owner": {"id": 949}, "assignee": {"id": 99}}, "job": {"id": 380, "assignee": {"id": 1101}}, "organization": {"id": 182}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"id": 317, "owner": {"id": 641}, "assignee": {"id": 534}, "project": {"id": 319, "owner": {"id": 756}, "assignee": {"id": 821}}, "task": {"id": 389, "owner": {"id": 952}, "assignee": {"id": 20}}, "job": {"id": 326, "assignee": {"id": 1105}}, "organization": {"id": 1272}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 357, "owner": {"id": 625}, "assignee": {"id": 562}, "project": {"id": 322, "owner": {"id": 739}, "assignee": {"id": 850}}, "task": {"id": 356, "owner": {"id": 976}, "assignee": {"id": 94}}, "job": {"id": 302, "assignee": {"id": 1191}}, "organization": {"id": 1282}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "owner": {"id": 620}, "assignee": {"id": 534}, "project": {"id": 325, "owner": {"id": 782}, "assignee": {"id": 805}}, "task": {"id": 358, "owner": {"id": 977}, "assignee": {"id": 46}}, "job": {"id": 381, "assignee": {"id": 1159}}, "organization": {"id": 199}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "owner": {"id": 610}, "assignee": {"id": 521}, "project": {"id": 352, "owner": {"id": 785}, "assignee": {"id": 852}}, "task": {"id": 333, "owner": {"id": 922}, "assignee": {"id": 39}}, "job": {"id": 313, "assignee": {"id": 1191}}, "organization": {"id": 164}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 690}, "assignee": {"id": 587}, "project": {"id": 319, "owner": {"id": 760}, "assignee": {"id": 828}}, "task": {"id": 346, "owner": {"id": 979}, "assignee": {"id": 78}}, "job": {"id": 331, "assignee": {"id": 1104}}, "organization": {"id": 1298}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "owner": {"id": 632}, "assignee": {"id": 521}, "project": {"id": 383, "owner": {"id": 799}, "assignee": {"id": 889}}, "task": {"id": 345, "owner": {"id": 901}, "assignee": {"id": 7}}, "job": {"id": 304, "assignee": {"id": 1134}}, "organization": {"id": 1282}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "owner": {"id": 684}, "assignee": {"id": 579}, "project": {"id": 313, "owner": {"id": 702}, "assignee": {"id": 812}}, "task": {"id": 352, "owner": {"id": 931}, "assignee": {"id": 0}}, "job": {"id": 351, "assignee": {"id": 1182}}, "organization": {"id": 157}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 664}, "assignee": {"id": 501}, "project": {"id": 311, "owner": {"id": 748}, "assignee": {"id": 846}}, "task": {"id": 389, "owner": {"id": 975}, "assignee": {"id": 82}}, "job": {"id": 352, "assignee": {"id": 1189}}, "organization": {"id": 123}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 611}, "assignee": {"id": 549}, "project": {"id": 314, "owner": {"id": 791}, "assignee": {"id": 836}}, "task": {"id": 361, "owner": {"id": 975}, "assignee": {"id": 36}}, "job": {"id": 305, "assignee": {"id": 1197}}, "organization": {"id": 1207}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "owner": {"id": 675}, "assignee": {"id": 568}, "project": {"id": 348, "owner": {"id": 771}, "assignee": {"id": 888}}, "task": {"id": 318, "owner": {"id": 976}, "assignee": {"id": 29}}, "job": {"id": 340, "assignee": {"id": 1136}}, "organization": {"id": 1283}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 389, "owner": {"id": 639}, "assignee": {"id": 537}, "project": {"id": 317, "owner": {"id": 745}, "assignee": {"id": 838}}, "task": {"id": 366, "owner": {"id": 936}, "assignee": {"id": 58}}, "job": {"id": 383, "assignee": {"id": 1101}}, "organization": {"id": 117}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 333, "owner": {"id": 601}, "assignee": {"id": 544}, "project": {"id": 330, "owner": {"id": 719}, "assignee": {"id": 847}}, "task": {"id": 311, "owner": {"id": 908}, "assignee": {"id": 12}}, "job": {"id": 339, "assignee": {"id": 1100}}, "organization": {"id": 181}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 319, "owner": {"id": 633}, "assignee": {"id": 521}, "project": {"id": 341, "owner": {"id": 777}, "assignee": {"id": 846}}, "task": {"id": 348, "owner": {"id": 941}, "assignee": {"id": 66}}, "job": {"id": 314, "assignee": {"id": 1191}}, "organization": {"id": 1293}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 687}, "assignee": {"id": 543}, "project": {"id": 384, "owner": {"id": 713}, "assignee": {"id": 841}}, "task": {"id": 354, "owner": {"id": 953}, "assignee": {"id": 26}}, "job": {"id": 325, "assignee": {"id": 1114}}, "organization": {"id": 1224}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 663}, "assignee": {"id": 578}, "project": {"id": 383, "owner": {"id": 775}, "assignee": {"id": 847}}, "task": {"id": 366, "owner": {"id": 965}, "assignee": {"id": 68}}, "job": {"id": 367, "assignee": {"id": 1106}}, "organization": {"id": 104}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 347, "owner": {"id": 667}, "assignee": {"id": 588}, "project": {"id": 333, "owner": {"id": 762}, "assignee": {"id": 812}}, "task": {"id": 372, "owner": {"id": 924}, "assignee": {"id": 73}}, "job": {"id": 392, "assignee": {"id": 1141}}, "organization": {"id": 159}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 667}, "assignee": {"id": 561}, "project": {"id": 351, "owner": {"id": 749}, "assignee": {"id": 860}}, "task": {"id": 354, "owner": {"id": 926}, "assignee": {"id": 8}}, "job": {"id": 302, "assignee": {"id": 1103}}, "organization": {"id": 1232}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 618}, "assignee": {"id": 578}, "project": {"id": 374, "owner": {"id": 780}, "assignee": {"id": 824}}, "task": {"id": 323, "owner": {"id": 955}, "assignee": {"id": 31}}, "job": {"id": 355, "assignee": {"id": 1117}}, "organization": {"id": 1228}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 386, "owner": {"id": 613}, "assignee": {"id": 520}, "project": {"id": 386, "owner": {"id": 771}, "assignee": {"id": 840}}, "task": {"id": 382, "owner": {"id": 969}, "assignee": {"id": 56}}, "job": {"id": 371, "assignee": {"id": 1165}}, "organization": {"id": 191}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 339, "owner": {"id": 676}, "assignee": {"id": 592}, "project": {"id": 363, "owner": {"id": 790}, "assignee": {"id": 806}}, "task": {"id": 377, "owner": {"id": 998}, "assignee": {"id": 52}}, "job": {"id": 394, "assignee": {"id": 1116}}, "organization": {"id": 138}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 393, "owner": {"id": 667}, "assignee": {"id": 501}, "project": {"id": 306, "owner": {"id": 729}, "assignee": {"id": 836}}, "task": {"id": 373, "owner": {"id": 997}, "assignee": {"id": 11}}, "job": {"id": 312, "assignee": {"id": 1150}}, "organization": {"id": 1216}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 656}, "assignee": {"id": 537}, "project": {"id": 325, "owner": {"id": 732}, "assignee": {"id": 821}}, "task": {"id": 353, "owner": {"id": 959}, "assignee": {"id": 41}}, "job": {"id": 337, "assignee": {"id": 1122}}, "organization": {"id": 1246}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "owner": {"id": 643}, "assignee": {"id": 546}, "project": {"id": 325, "owner": {"id": 730}, "assignee": {"id": 811}}, "task": {"id": 314, "owner": {"id": 972}, "assignee": {"id": 7}}, "job": {"id": 381, "assignee": {"id": 1118}}, "organization": {"id": 147}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "owner": {"id": 638}, "assignee": {"id": 553}, "project": {"id": 344, "owner": {"id": 720}, "assignee": {"id": 863}}, "task": {"id": 365, "owner": {"id": 924}, "assignee": {"id": 82}}, "job": {"id": 377, "assignee": {"id": 1108}}, "organization": {"id": 149}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "owner": {"id": 661}, "assignee": {"id": 540}, "project": {"id": 371, "owner": {"id": 793}, "assignee": {"id": 829}}, "task": {"id": 369, "owner": {"id": 934}, "assignee": {"id": 80}}, "job": {"id": 393, "assignee": {"id": 1155}}, "organization": {"id": 1255}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 655}, "assignee": {"id": 509}, "project": {"id": 351, "owner": {"id": 725}, "assignee": {"id": 818}}, "task": {"id": 338, "owner": {"id": 946}, "assignee": {"id": 1}}, "job": {"id": 351, "assignee": {"id": 1152}}, "organization": {"id": 1260}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 679}, "assignee": {"id": 534}, "project": {"id": 391, "owner": {"id": 789}, "assignee": {"id": 863}}, "task": {"id": 325, "owner": {"id": 940}, "assignee": {"id": 50}}, "job": {"id": 352, "assignee": {"id": 1181}}, "organization": {"id": 110}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 618}, "assignee": {"id": 570}, "project": {"id": 389, "owner": {"id": 745}, "assignee": {"id": 840}}, "task": {"id": 351, "owner": {"id": 964}, "assignee": {"id": 74}}, "job": {"id": 333, "assignee": {"id": 1127}}, "organization": {"id": 159}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 624}, "assignee": {"id": 504}, "project": {"id": 342, "owner": {"id": 760}, "assignee": {"id": 838}}, "task": {"id": 367, "owner": {"id": 947}, "assignee": {"id": 19}}, "job": {"id": 380, "assignee": {"id": 1107}}, "organization": {"id": 1209}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "owner": {"id": 610}, "assignee": {"id": 554}, "project": {"id": 393, "owner": {"id": 779}, "assignee": {"id": 847}}, "task": {"id": 367, "owner": {"id": 959}, "assignee": {"id": 47}}, "job": {"id": 391, "assignee": {"id": 1102}}, "organization": {"id": 1226}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 640}, "assignee": {"id": 514}, "project": {"id": 377, "owner": {"id": 714}, "assignee": {"id": 813}}, "task": {"id": 375, "owner": {"id": 989}, "assignee": {"id": 3}}, "job": {"id": 331, "assignee": {"id": 1148}}, "organization": {"id": 108}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 397, "owner": {"id": 612}, "assignee": {"id": 582}, "project": {"id": 392, "owner": {"id": 711}, "assignee": {"id": 841}}, "task": {"id": 325, "owner": {"id": 916}, "assignee": {"id": 96}}, "job": {"id": 397, "assignee": {"id": 1191}}, "organization": {"id": 168}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 641}, "assignee": {"id": 557}, "project": {"id": 324, "owner": {"id": 778}, "assignee": {"id": 807}}, "task": {"id": 359, "owner": {"id": 915}, "assignee": {"id": 38}}, "job": {"id": 355, "assignee": {"id": 1172}}, "organization": {"id": 1267}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 378, "owner": {"id": 655}, "assignee": {"id": 583}, "project": {"id": 350, "owner": {"id": 753}, "assignee": {"id": 826}}, "task": {"id": 369, "owner": {"id": 942}, "assignee": {"id": 93}}, "job": {"id": 325, "assignee": {"id": 1187}}, "organization": {"id": 1231}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 320, "owner": {"id": 652}, "assignee": {"id": 572}, "project": {"id": 350, "owner": {"id": 749}, "assignee": {"id": 842}}, "task": {"id": 310, "owner": {"id": 940}, "assignee": {"id": 57}}, "job": {"id": 337, "assignee": {"id": 1180}}, "organization": {"id": 104}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 352, "owner": {"id": 669}, "assignee": {"id": 519}, "project": {"id": 389, "owner": {"id": 713}, "assignee": {"id": 881}}, "task": {"id": 301, "owner": {"id": 967}, "assignee": {"id": 98}}, "job": {"id": 318, "assignee": {"id": 1176}}, "organization": {"id": 181}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 681}, "assignee": {"id": 524}, "project": {"id": 328, "owner": {"id": 742}, "assignee": {"id": 848}}, "task": {"id": 362, "owner": {"id": 903}, "assignee": {"id": 33}}, "job": {"id": 302, "assignee": {"id": 1116}}, "organization": {"id": 1274}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 669}, "assignee": {"id": 508}, "project": {"id": 369, "owner": {"id": 752}, "assignee": {"id": 838}}, "task": {"id": 360, "owner": {"id": 927}, "assignee": {"id": 14}}, "job": {"id": 317, "assignee": {"id": 1171}}, "organization": {"id": 1213}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 659}, "assignee": {"id": 585}, "project": {"id": 340, "owner": {"id": 733}, "assignee": {"id": 827}}, "task": {"id": 318, "owner": {"id": 938}, "assignee": {"id": 80}}, "job": {"id": 337, "assignee": {"id": 1199}}, "organization": {"id": 180}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"id": 341, "owner": {"id": 691}, "assignee": {"id": 585}, "project": {"id": 365, "owner": {"id": 715}, "assignee": {"id": 885}}, "task": {"id": 353, "owner": {"id": 911}, "assignee": {"id": 66}}, "job": {"id": 378, "assignee": {"id": 1134}}, "organization": {"id": 105}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 374, "owner": {"id": 690}, "assignee": {"id": 535}, "project": {"id": 384, "owner": {"id": 799}, "assignee": {"id": 888}}, "task": {"id": 356, "owner": {"id": 914}, "assignee": {"id": 79}}, "job": {"id": 354, "assignee": {"id": 1156}}, "organization": {"id": 1216}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 315, "owner": {"id": 635}, "assignee": {"id": 545}, "project": {"id": 398, "owner": {"id": 704}, "assignee": {"id": 844}}, "task": {"id": 337, "owner": {"id": 988}, "assignee": {"id": 99}}, "job": {"id": 302, "assignee": {"id": 1166}}, "organization": {"id": 1229}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "owner": {"id": 684}, "assignee": {"id": 538}, "project": {"id": 315, "owner": {"id": 741}, "assignee": {"id": 878}}, "task": {"id": 377, "owner": {"id": 936}, "assignee": {"id": 54}}, "job": {"id": 356, "assignee": {"id": 1195}}, "organization": {"id": 108}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 695}, "assignee": {"id": 557}, "project": {"id": 388, "owner": {"id": 715}, "assignee": {"id": 873}}, "task": {"id": 344, "owner": {"id": 927}, "assignee": {"id": 87}}, "job": {"id": 317, "assignee": {"id": 1191}}, "organization": {"id": 111}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "owner": {"id": 676}, "assignee": {"id": 564}, "project": {"id": 326, "owner": {"id": 749}, "assignee": {"id": 896}}, "task": {"id": 318, "owner": {"id": 971}, "assignee": {"id": 56}}, "job": {"id": 392, "assignee": {"id": 1185}}, "organization": {"id": 1248}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "owner": {"id": 656}, "assignee": {"id": 507}, "project": {"id": 397, "owner": {"id": 759}, "assignee": {"id": 819}}, "task": {"id": 399, "owner": {"id": 953}, "assignee": {"id": 21}}, "job": {"id": 396, "assignee": {"id": 1143}}, "organization": {"id": 1207}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "owner": {"id": 640}, "assignee": {"id": 574}, "project": {"id": 322, "owner": {"id": 794}, "assignee": {"id": 895}}, "task": {"id": 326, "owner": {"id": 927}, "assignee": {"id": 44}}, "job": {"id": 384, "assignee": {"id": 1121}}, "organization": {"id": 129}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "owner": {"id": 612}, "assignee": {"id": 539}, "project": {"id": 336, "owner": {"id": 740}, "assignee": {"id": 889}}, "task": {"id": 384, "owner": {"id": 901}, "assignee": {"id": 2}}, "job": {"id": 315, "assignee": {"id": 1148}}, "organization": {"id": 114}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "owner": {"id": 671}, "assignee": {"id": 563}, "project": {"id": 310, "owner": {"id": 795}, "assignee": {"id": 875}}, "task": {"id": 326, "owner": {"id": 907}, "assignee": {"id": 49}}, "job": {"id": 383, "assignee": {"id": 1162}}, "organization": {"id": 1225}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "owner": {"id": 616}, "assignee": {"id": 552}, "project": {"id": 364, "owner": {"id": 763}, "assignee": {"id": 884}}, "task": {"id": 329, "owner": {"id": 905}, "assignee": {"id": 86}}, "job": {"id": 398, "assignee": {"id": 1184}}, "organization": {"id": 1215}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 668}, "assignee": {"id": 544}, "project": {"id": 333, "owner": {"id": 754}, "assignee": {"id": 889}}, "task": {"id": 339, "owner": {"id": 947}, "assignee": {"id": 34}}, "job": {"id": 339, "assignee": {"id": 1159}}, "organization": {"id": 136}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 387, "owner": {"id": 632}, "assignee": {"id": 582}, "project": {"id": 376, "owner": {"id": 772}, "assignee": {"id": 857}}, "task": {"id": 394, "owner": {"id": 958}, "assignee": {"id": 54}}, "job": {"id": 378, "assignee": {"id": 1120}}, "organization": {"id": 106}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 303, "owner": {"id": 685}, "assignee": {"id": 543}, "project": {"id": 346, "owner": {"id": 729}, "assignee": {"id": 871}}, "task": {"id": 366, "owner": {"id": 920}, "assignee": {"id": 14}}, "job": {"id": 374, "assignee": {"id": 1135}}, "organization": {"id": 1205}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 389, "owner": {"id": 649}, "assignee": {"id": 519}, "project": {"id": 312, "owner": {"id": 756}, "assignee": {"id": 897}}, "task": {"id": 375, "owner": {"id": 969}, "assignee": {"id": 12}}, "job": {"id": 364, "assignee": {"id": 1100}}, "organization": {"id": 1229}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 384, "owner": {"id": 616}, "assignee": {"id": 535}, "project": {"id": 330, "owner": {"id": 707}, "assignee": {"id": 811}}, "task": {"id": 364, "owner": {"id": 963}, "assignee": {"id": 9}}, "job": {"id": 307, "assignee": {"id": 1138}}, "organization": {"id": 124}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 382, "owner": {"id": 672}, "assignee": {"id": 599}, "project": {"id": 371, "owner": {"id": 720}, "assignee": {"id": 875}}, "task": {"id": 338, "owner": {"id": 938}, "assignee": {"id": 84}}, "job": {"id": 311, "assignee": {"id": 1107}}, "organization": {"id": 105}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 392, "owner": {"id": 686}, "assignee": {"id": 599}, "project": {"id": 306, "owner": {"id": 701}, "assignee": {"id": 807}}, "task": {"id": 345, "owner": {"id": 940}, "assignee": {"id": 75}}, "job": {"id": 339, "assignee": {"id": 1148}}, "organization": {"id": 1203}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 393, "owner": {"id": 631}, "assignee": {"id": 561}, "project": {"id": 350, "owner": {"id": 769}, "assignee": {"id": 804}}, "task": {"id": 309, "owner": {"id": 914}, "assignee": {"id": 96}}, "job": {"id": 328, "assignee": {"id": 1167}}, "organization": {"id": 1246}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 682}, "assignee": {"id": 590}, "project": {"id": 318, "owner": {"id": 714}, "assignee": {"id": 875}}, "task": {"id": 354, "owner": {"id": 984}, "assignee": {"id": 1012}}, "job": {"id": 306, "assignee": {"id": 41}}, "organization": {"id": 199}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 377, "owner": {"id": 605}, "assignee": {"id": 564}, "project": {"id": 381, "owner": {"id": 745}, "assignee": {"id": 838}}, "task": {"id": 302, "owner": {"id": 947}, "assignee": {"id": 1060}}, "job": {"id": 382, "assignee": {"id": 18}}, "organization": {"id": 161}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 311, "owner": {"id": 681}, "assignee": {"id": 586}, "project": {"id": 317, "owner": {"id": 715}, "assignee": {"id": 803}}, "task": {"id": 322, "owner": {"id": 931}, "assignee": {"id": 1082}}, "job": {"id": 343, "assignee": {"id": 56}}, "organization": {"id": 1203}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 353, "owner": {"id": 618}, "assignee": {"id": 557}, "project": {"id": 368, "owner": {"id": 762}, "assignee": {"id": 890}}, "task": {"id": 316, "owner": {"id": 990}, "assignee": {"id": 1087}}, "job": {"id": 387, "assignee": {"id": 88}}, "organization": {"id": 1244}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "owner": {"id": 678}, "assignee": {"id": 598}, "project": {"id": 363, "owner": {"id": 747}, "assignee": {"id": 804}}, "task": {"id": 301, "owner": {"id": 912}, "assignee": {"id": 1010}}, "job": {"id": 395, "assignee": {"id": 19}}, "organization": {"id": 119}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "owner": {"id": 640}, "assignee": {"id": 583}, "project": {"id": 303, "owner": {"id": 732}, "assignee": {"id": 819}}, "task": {"id": 334, "owner": {"id": 990}, "assignee": {"id": 1055}}, "job": {"id": 339, "assignee": {"id": 10}}, "organization": {"id": 199}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 681}, "assignee": {"id": 556}, "project": {"id": 311, "owner": {"id": 761}, "assignee": {"id": 887}}, "task": {"id": 319, "owner": {"id": 979}, "assignee": {"id": 1067}}, "job": {"id": 343, "assignee": {"id": 1}}, "organization": {"id": 1258}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "owner": {"id": 661}, "assignee": {"id": 582}, "project": {"id": 303, "owner": {"id": 740}, "assignee": {"id": 839}}, "task": {"id": 318, "owner": {"id": 942}, "assignee": {"id": 1013}}, "job": {"id": 330, "assignee": {"id": 24}}, "organization": {"id": 1241}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "owner": {"id": 671}, "assignee": {"id": 513}, "project": {"id": 395, "owner": {"id": 715}, "assignee": {"id": 810}}, "task": {"id": 334, "owner": {"id": 988}, "assignee": {"id": 1049}}, "job": {"id": 388, "assignee": {"id": 96}}, "organization": {"id": 148}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "owner": {"id": 656}, "assignee": {"id": 598}, "project": {"id": 353, "owner": {"id": 750}, "assignee": {"id": 840}}, "task": {"id": 300, "owner": {"id": 922}, "assignee": {"id": 1049}}, "job": {"id": 355, "assignee": {"id": 43}}, "organization": {"id": 102}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 642}, "assignee": {"id": 518}, "project": {"id": 376, "owner": {"id": 746}, "assignee": {"id": 832}}, "task": {"id": 389, "owner": {"id": 959}, "assignee": {"id": 1063}}, "job": {"id": 333, "assignee": {"id": 58}}, "organization": {"id": 1238}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "owner": {"id": 612}, "assignee": {"id": 569}, "project": {"id": 331, "owner": {"id": 720}, "assignee": {"id": 877}}, "task": {"id": 393, "owner": {"id": 993}, "assignee": {"id": 1066}}, "job": {"id": 352, "assignee": {"id": 38}}, "organization": {"id": 1245}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 306, "owner": {"id": 678}, "assignee": {"id": 507}, "project": {"id": 389, "owner": {"id": 797}, "assignee": {"id": 864}}, "task": {"id": 389, "owner": {"id": 986}, "assignee": {"id": 1058}}, "job": {"id": 310, "assignee": {"id": 10}}, "organization": {"id": 181}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 307, "owner": {"id": 699}, "assignee": {"id": 584}, "project": {"id": 391, "owner": {"id": 791}, "assignee": {"id": 871}}, "task": {"id": 323, "owner": {"id": 909}, "assignee": {"id": 1014}}, "job": {"id": 316, "assignee": {"id": 26}}, "organization": {"id": 140}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 300, "owner": {"id": 620}, "assignee": {"id": 562}, "project": {"id": 367, "owner": {"id": 764}, "assignee": {"id": 802}}, "task": {"id": 380, "owner": {"id": 980}, "assignee": {"id": 1084}}, "job": {"id": 310, "assignee": {"id": 72}}, "organization": {"id": 1246}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 678}, "assignee": {"id": 596}, "project": {"id": 393, "owner": {"id": 787}, "assignee": {"id": 828}}, "task": {"id": 387, "owner": {"id": 928}, "assignee": {"id": 1010}}, "job": {"id": 377, "assignee": {"id": 14}}, "organization": {"id": 1231}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 356, "owner": {"id": 697}, "assignee": {"id": 535}, "project": {"id": 341, "owner": {"id": 745}, "assignee": {"id": 807}}, "task": {"id": 364, "owner": {"id": 922}, "assignee": {"id": 1083}}, "job": {"id": 384, "assignee": {"id": 71}}, "organization": {"id": 106}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 308, "owner": {"id": 607}, "assignee": {"id": 591}, "project": {"id": 335, "owner": {"id": 701}, "assignee": {"id": 803}}, "task": {"id": 320, "owner": {"id": 948}, "assignee": {"id": 1002}}, "job": {"id": 342, "assignee": {"id": 94}}, "organization": {"id": 109}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 642}, "assignee": {"id": 524}, "project": {"id": 377, "owner": {"id": 766}, "assignee": {"id": 861}}, "task": {"id": 362, "owner": {"id": 910}, "assignee": {"id": 1000}}, "job": {"id": 319, "assignee": {"id": 97}}, "organization": {"id": 1217}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 379, "owner": {"id": 619}, "assignee": {"id": 579}, "project": {"id": 316, "owner": {"id": 757}, "assignee": {"id": 809}}, "task": {"id": 334, "owner": {"id": 955}, "assignee": {"id": 1078}}, "job": {"id": 336, "assignee": {"id": 38}}, "organization": {"id": 1255}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 673}, "assignee": {"id": 547}, "project": {"id": 384, "owner": {"id": 733}, "assignee": {"id": 812}}, "task": {"id": 396, "owner": {"id": 946}, "assignee": {"id": 1091}}, "job": {"id": 355, "assignee": {"id": 51}}, "organization": {"id": 126}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 390, "owner": {"id": 618}, "assignee": {"id": 539}, "project": {"id": 370, "owner": {"id": 770}, "assignee": {"id": 877}}, "task": {"id": 339, "owner": {"id": 940}, "assignee": {"id": 1057}}, "job": {"id": 369, "assignee": {"id": 17}}, "organization": {"id": 137}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 348, "owner": {"id": 647}, "assignee": {"id": 530}, "project": {"id": 372, "owner": {"id": 730}, "assignee": {"id": 835}}, "task": {"id": 305, "owner": {"id": 908}, "assignee": {"id": 1055}}, "job": {"id": 347, "assignee": {"id": 44}}, "organization": {"id": 1244}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 646}, "assignee": {"id": 513}, "project": {"id": 337, "owner": {"id": 720}, "assignee": {"id": 847}}, "task": {"id": 313, "owner": {"id": 968}, "assignee": {"id": 1088}}, "job": {"id": 359, "assignee": {"id": 42}}, "organization": {"id": 1284}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 671}, "assignee": {"id": 516}, "project": {"id": 380, "owner": {"id": 771}, "assignee": {"id": 836}}, "task": {"id": 388, "owner": {"id": 973}, "assignee": {"id": 1015}}, "job": {"id": 344, "assignee": {"id": 44}}, "organization": {"id": 172}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "owner": {"id": 637}, "assignee": {"id": 521}, "project": {"id": 389, "owner": {"id": 762}, "assignee": {"id": 808}}, "task": {"id": 342, "owner": {"id": 916}, "assignee": {"id": 1069}}, "job": {"id": 381, "assignee": {"id": 73}}, "organization": {"id": 110}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "owner": {"id": 623}, "assignee": {"id": 569}, "project": {"id": 361, "owner": {"id": 792}, "assignee": {"id": 832}}, "task": {"id": 347, "owner": {"id": 995}, "assignee": {"id": 1021}}, "job": {"id": 380, "assignee": {"id": 6}}, "organization": {"id": 1268}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "owner": {"id": 672}, "assignee": {"id": 531}, "project": {"id": 328, "owner": {"id": 764}, "assignee": {"id": 872}}, "task": {"id": 344, "owner": {"id": 956}, "assignee": {"id": 1076}}, "job": {"id": 387, "assignee": {"id": 67}}, "organization": {"id": 1275}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 624}, "assignee": {"id": 546}, "project": {"id": 379, "owner": {"id": 707}, "assignee": {"id": 887}}, "task": {"id": 374, "owner": {"id": 917}, "assignee": {"id": 1040}}, "job": {"id": 387, "assignee": {"id": 47}}, "organization": {"id": 174}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "owner": {"id": 669}, "assignee": {"id": 528}, "project": {"id": 364, "owner": {"id": 797}, "assignee": {"id": 877}}, "task": {"id": 313, "owner": {"id": 932}, "assignee": {"id": 1028}}, "job": {"id": 398, "assignee": {"id": 15}}, "organization": {"id": 146}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "owner": {"id": 679}, "assignee": {"id": 530}, "project": {"id": 301, "owner": {"id": 719}, "assignee": {"id": 800}}, "task": {"id": 369, "owner": {"id": 920}, "assignee": {"id": 1065}}, "job": {"id": 362, "assignee": {"id": 43}}, "organization": {"id": 1252}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "owner": {"id": 616}, "assignee": {"id": 590}, "project": {"id": 345, "owner": {"id": 725}, "assignee": {"id": 800}}, "task": {"id": 380, "owner": {"id": 991}, "assignee": {"id": 1016}}, "job": {"id": 394, "assignee": {"id": 33}}, "organization": {"id": 1275}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 325, "owner": {"id": 681}, "assignee": {"id": 588}, "project": {"id": 362, "owner": {"id": 789}, "assignee": {"id": 883}}, "task": {"id": 394, "owner": {"id": 937}, "assignee": {"id": 1050}}, "job": {"id": 302, "assignee": {"id": 46}}, "organization": {"id": 118}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 343, "owner": {"id": 649}, "assignee": {"id": 555}, "project": {"id": 365, "owner": {"id": 732}, "assignee": {"id": 858}}, "task": {"id": 373, "owner": {"id": 979}, "assignee": {"id": 1046}}, "job": {"id": 320, "assignee": {"id": 93}}, "organization": {"id": 185}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 309, "owner": {"id": 693}, "assignee": {"id": 525}, "project": {"id": 323, "owner": {"id": 701}, "assignee": {"id": 815}}, "task": {"id": 389, "owner": {"id": 966}, "assignee": {"id": 1091}}, "job": {"id": 398, "assignee": {"id": 35}}, "organization": {"id": 1280}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 326, "owner": {"id": 618}, "assignee": {"id": 576}, "project": {"id": 372, "owner": {"id": 781}, "assignee": {"id": 848}}, "task": {"id": 339, "owner": {"id": 960}, "assignee": {"id": 1050}}, "job": {"id": 321, "assignee": {"id": 23}}, "organization": {"id": 1266}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 325, "owner": {"id": 677}, "assignee": {"id": 524}, "project": {"id": 332, "owner": {"id": 784}, "assignee": {"id": 873}}, "task": {"id": 328, "owner": {"id": 994}, "assignee": {"id": 1019}}, "job": {"id": 310, "assignee": {"id": 64}}, "organization": {"id": 155}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 395, "owner": {"id": 663}, "assignee": {"id": 542}, "project": {"id": 352, "owner": {"id": 711}, "assignee": {"id": 824}}, "task": {"id": 301, "owner": {"id": 944}, "assignee": {"id": 1067}}, "job": {"id": 332, "assignee": {"id": 74}}, "organization": {"id": 194}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 384, "owner": {"id": 631}, "assignee": {"id": 568}, "project": {"id": 390, "owner": {"id": 754}, "assignee": {"id": 870}}, "task": {"id": 325, "owner": {"id": 915}, "assignee": {"id": 1041}}, "job": {"id": 397, "assignee": {"id": 1}}, "organization": {"id": 1225}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 647}, "assignee": {"id": 594}, "project": {"id": 396, "owner": {"id": 759}, "assignee": {"id": 858}}, "task": {"id": 319, "owner": {"id": 969}, "assignee": {"id": 1085}}, "job": {"id": 371, "assignee": {"id": 45}}, "organization": {"id": 1207}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 687}, "assignee": {"id": 523}, "project": {"id": 328, "owner": {"id": 726}, "assignee": {"id": 876}}, "task": {"id": 328, "owner": {"id": 997}, "assignee": {"id": 1020}}, "job": {"id": 324, "assignee": {"id": 60}}, "organization": {"id": 184}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 335, "owner": {"id": 602}, "assignee": {"id": 580}, "project": {"id": 374, "owner": {"id": 749}, "assignee": {"id": 858}}, "task": {"id": 365, "owner": {"id": 979}, "assignee": {"id": 1009}}, "job": {"id": 388, "assignee": {"id": 24}}, "organization": {"id": 147}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 365, "owner": {"id": 695}, "assignee": {"id": 574}, "project": {"id": 305, "owner": {"id": 775}, "assignee": {"id": 809}}, "task": {"id": 371, "owner": {"id": 935}, "assignee": {"id": 1048}}, "job": {"id": 372, "assignee": {"id": 25}}, "organization": {"id": 1277}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 305, "owner": {"id": 601}, "assignee": {"id": 582}, "project": {"id": 375, "owner": {"id": 794}, "assignee": {"id": 840}}, "task": {"id": 369, "owner": {"id": 987}, "assignee": {"id": 1082}}, "job": {"id": 335, "assignee": {"id": 39}}, "organization": {"id": 1253}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "owner": {"id": 631}, "assignee": {"id": 530}, "project": {"id": 308, "owner": {"id": 788}, "assignee": {"id": 864}}, "task": {"id": 338, "owner": {"id": 967}, "assignee": {"id": 1079}}, "job": {"id": 354, "assignee": {"id": 68}}, "organization": {"id": 148}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "owner": {"id": 608}, "assignee": {"id": 571}, "project": {"id": 352, "owner": {"id": 789}, "assignee": {"id": 859}}, "task": {"id": 368, "owner": {"id": 921}, "assignee": {"id": 1012}}, "job": {"id": 382, "assignee": {"id": 15}}, "organization": {"id": 166}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 665}, "assignee": {"id": 525}, "project": {"id": 319, "owner": {"id": 753}, "assignee": {"id": 889}}, "task": {"id": 320, "owner": {"id": 902}, "assignee": {"id": 1062}}, "job": {"id": 387, "assignee": {"id": 7}}, "organization": {"id": 1266}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 616}, "assignee": {"id": 543}, "project": {"id": 397, "owner": {"id": 788}, "assignee": {"id": 878}}, "task": {"id": 355, "owner": {"id": 986}, "assignee": {"id": 1082}}, "job": {"id": 331, "assignee": {"id": 62}}, "organization": {"id": 1204}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "owner": {"id": 673}, "assignee": {"id": 532}, "project": {"id": 385, "owner": {"id": 718}, "assignee": {"id": 855}}, "task": {"id": 302, "owner": {"id": 979}, "assignee": {"id": 1068}}, "job": {"id": 379, "assignee": {"id": 30}}, "organization": {"id": 131}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 666}, "assignee": {"id": 562}, "project": {"id": 373, "owner": {"id": 791}, "assignee": {"id": 892}}, "task": {"id": 313, "owner": {"id": 935}, "assignee": {"id": 1082}}, "job": {"id": 308, "assignee": {"id": 46}}, "organization": {"id": 135}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 688}, "assignee": {"id": 503}, "project": {"id": 345, "owner": {"id": 751}, "assignee": {"id": 887}}, "task": {"id": 330, "owner": {"id": 981}, "assignee": {"id": 1086}}, "job": {"id": 382, "assignee": {"id": 74}}, "organization": {"id": 1281}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "owner": {"id": 629}, "assignee": {"id": 596}, "project": {"id": 301, "owner": {"id": 786}, "assignee": {"id": 897}}, "task": {"id": 374, "owner": {"id": 981}, "assignee": {"id": 1047}}, "job": {"id": 318, "assignee": {"id": 46}}, "organization": {"id": 1227}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 681}, "assignee": {"id": 582}, "project": {"id": 322, "owner": {"id": 748}, "assignee": {"id": 860}}, "task": {"id": 387, "owner": {"id": 975}, "assignee": {"id": 1097}}, "job": {"id": 345, "assignee": {"id": 61}}, "organization": {"id": 117}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 671}, "assignee": {"id": 523}, "project": {"id": 310, "owner": {"id": 724}, "assignee": {"id": 874}}, "task": {"id": 368, "owner": {"id": 954}, "assignee": {"id": 1069}}, "job": {"id": 372, "assignee": {"id": 31}}, "organization": {"id": 139}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 301, "owner": {"id": 637}, "assignee": {"id": 546}, "project": {"id": 331, "owner": {"id": 796}, "assignee": {"id": 816}}, "task": {"id": 315, "owner": {"id": 979}, "assignee": {"id": 1009}}, "job": {"id": 301, "assignee": {"id": 22}}, "organization": {"id": 1298}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 342, "owner": {"id": 683}, "assignee": {"id": 548}, "project": {"id": 356, "owner": {"id": 789}, "assignee": {"id": 818}}, "task": {"id": 341, "owner": {"id": 923}, "assignee": {"id": 1049}}, "job": {"id": 302, "assignee": {"id": 13}}, "organization": {"id": 1216}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 667}, "assignee": {"id": 536}, "project": {"id": 320, "owner": {"id": 786}, "assignee": {"id": 855}}, "task": {"id": 324, "owner": {"id": 982}, "assignee": {"id": 1062}}, "job": {"id": 379, "assignee": {"id": 10}}, "organization": {"id": 113}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 399, "owner": {"id": 649}, "assignee": {"id": 500}, "project": {"id": 307, "owner": {"id": 745}, "assignee": {"id": 818}}, "task": {"id": 386, "owner": {"id": 939}, "assignee": {"id": 1017}}, "job": {"id": 341, "assignee": {"id": 96}}, "organization": {"id": 110}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 394, "owner": {"id": 658}, "assignee": {"id": 575}, "project": {"id": 308, "owner": {"id": 767}, "assignee": {"id": 857}}, "task": {"id": 360, "owner": {"id": 978}, "assignee": {"id": 1075}}, "job": {"id": 315, "assignee": {"id": 55}}, "organization": {"id": 1209}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 340, "owner": {"id": 677}, "assignee": {"id": 588}, "project": {"id": 301, "owner": {"id": 735}, "assignee": {"id": 843}}, "task": {"id": 364, "owner": {"id": 944}, "assignee": {"id": 1015}}, "job": {"id": 354, "assignee": {"id": 59}}, "organization": {"id": 1295}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 627}, "assignee": {"id": 567}, "project": {"id": 324, "owner": {"id": 734}, "assignee": {"id": 825}}, "task": {"id": 322, "owner": {"id": 935}, "assignee": {"id": 1078}}, "job": {"id": 346, "assignee": {"id": 5}}, "organization": {"id": 175}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"id": 337, "owner": {"id": 627}, "assignee": {"id": 552}, "project": {"id": 335, "owner": {"id": 785}, "assignee": {"id": 815}}, "task": {"id": 387, "owner": {"id": 926}, "assignee": {"id": 1085}}, "job": {"id": 360, "assignee": {"id": 66}}, "organization": {"id": 178}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 335, "owner": {"id": 632}, "assignee": {"id": 585}, "project": {"id": 382, "owner": {"id": 719}, "assignee": {"id": 803}}, "task": {"id": 310, "owner": {"id": 936}, "assignee": {"id": 1056}}, "job": {"id": 378, "assignee": {"id": 93}}, "organization": {"id": 1272}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 647}, "assignee": {"id": 551}, "project": {"id": 354, "owner": {"id": 707}, "assignee": {"id": 881}}, "task": {"id": 352, "owner": {"id": 974}, "assignee": {"id": 1099}}, "job": {"id": 387, "assignee": {"id": 74}}, "organization": {"id": 1231}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "owner": {"id": 610}, "assignee": {"id": 525}, "project": {"id": 374, "owner": {"id": 774}, "assignee": {"id": 866}}, "task": {"id": 323, "owner": {"id": 904}, "assignee": {"id": 1081}}, "job": {"id": 355, "assignee": {"id": 52}}, "organization": {"id": 119}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "owner": {"id": 696}, "assignee": {"id": 527}, "project": {"id": 355, "owner": {"id": 790}, "assignee": {"id": 882}}, "task": {"id": 361, "owner": {"id": 981}, "assignee": {"id": 1045}}, "job": {"id": 318, "assignee": {"id": 12}}, "organization": {"id": 123}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "owner": {"id": 680}, "assignee": {"id": 580}, "project": {"id": 378, "owner": {"id": 704}, "assignee": {"id": 812}}, "task": {"id": 307, "owner": {"id": 969}, "assignee": {"id": 1011}}, "job": {"id": 391, "assignee": {"id": 96}}, "organization": {"id": 1243}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 628}, "assignee": {"id": 538}, "project": {"id": 356, "owner": {"id": 736}, "assignee": {"id": 895}}, "task": {"id": 387, "owner": {"id": 989}, "assignee": {"id": 1070}}, "job": {"id": 358, "assignee": {"id": 13}}, "organization": {"id": 1207}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 324, "owner": {"id": 601}, "assignee": {"id": 544}, "project": {"id": 300, "owner": {"id": 744}, "assignee": {"id": 814}}, "task": {"id": 303, "owner": {"id": 908}, "assignee": {"id": 1097}}, "job": {"id": 317, "assignee": {"id": 6}}, "organization": {"id": 145}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "owner": {"id": 604}, "assignee": {"id": 526}, "project": {"id": 374, "owner": {"id": 700}, "assignee": {"id": 829}}, "task": {"id": 319, "owner": {"id": 994}, "assignee": {"id": 1039}}, "job": {"id": 348, "assignee": {"id": 82}}, "organization": {"id": 103}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "owner": {"id": 628}, "assignee": {"id": 542}, "project": {"id": 390, "owner": {"id": 743}, "assignee": {"id": 894}}, "task": {"id": 391, "owner": {"id": 930}, "assignee": {"id": 1096}}, "job": {"id": 363, "assignee": {"id": 53}}, "organization": {"id": 1271}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "owner": {"id": 632}, "assignee": {"id": 561}, "project": {"id": 371, "owner": {"id": 758}, "assignee": {"id": 886}}, "task": {"id": 346, "owner": {"id": 958}, "assignee": {"id": 1077}}, "job": {"id": 346, "assignee": {"id": 77}}, "organization": {"id": 1247}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 697}, "assignee": {"id": 590}, "project": {"id": 318, "owner": {"id": 708}, "assignee": {"id": 849}}, "task": {"id": 381, "owner": {"id": 953}, "assignee": {"id": 1062}}, "job": {"id": 319, "assignee": {"id": 92}}, "organization": {"id": 144}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 329, "owner": {"id": 676}, "assignee": {"id": 527}, "project": {"id": 331, "owner": {"id": 726}, "assignee": {"id": 865}}, "task": {"id": 315, "owner": {"id": 984}, "assignee": {"id": 1079}}, "job": {"id": 370, "assignee": {"id": 96}}, "organization": {"id": 141}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 319, "owner": {"id": 658}, "assignee": {"id": 527}, "project": {"id": 397, "owner": {"id": 746}, "assignee": {"id": 821}}, "task": {"id": 399, "owner": {"id": 962}, "assignee": {"id": 1007}}, "job": {"id": 322, "assignee": {"id": 91}}, "organization": {"id": 1297}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 617}, "assignee": {"id": 590}, "project": {"id": 391, "owner": {"id": 713}, "assignee": {"id": 871}}, "task": {"id": 332, "owner": {"id": 989}, "assignee": {"id": 1001}}, "job": {"id": 303, "assignee": {"id": 54}}, "organization": {"id": 1206}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 362, "owner": {"id": 650}, "assignee": {"id": 574}, "project": {"id": 306, "owner": {"id": 778}, "assignee": {"id": 858}}, "task": {"id": 329, "owner": {"id": 975}, "assignee": {"id": 1097}}, "job": {"id": 378, "assignee": {"id": 54}}, "organization": {"id": 189}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 302, "owner": {"id": 632}, "assignee": {"id": 591}, "project": {"id": 390, "owner": {"id": 702}, "assignee": {"id": 812}}, "task": {"id": 310, "owner": {"id": 945}, "assignee": {"id": 1034}}, "job": {"id": 331, "assignee": {"id": 0}}, "organization": {"id": 109}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"id": 381, "owner": {"id": 607}, "assignee": {"id": 545}, "project": {"id": 395, "owner": {"id": 794}, "assignee": {"id": 837}}, "task": {"id": 393, "owner": {"id": 907}, "assignee": {"id": 1044}}, "job": {"id": 351, "assignee": {"id": 26}}, "organization": {"id": 1237}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 331, "owner": {"id": 657}, "assignee": {"id": 574}, "project": {"id": 339, "owner": {"id": 759}, "assignee": {"id": 813}}, "task": {"id": 324, "owner": {"id": 910}, "assignee": {"id": 1083}}, "job": {"id": 386, "assignee": {"id": 65}}, "organization": {"id": 1297}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 350, "owner": {"id": 680}, "assignee": {"id": 501}, "project": {"id": 364, "owner": {"id": 778}, "assignee": {"id": 870}}, "task": {"id": 376, "owner": {"id": 906}, "assignee": {"id": 1006}}, "job": {"id": 357, "assignee": {"id": 89}}, "organization": {"id": 192}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 316, "owner": {"id": 650}, "assignee": {"id": 519}, "project": {"id": 359, "owner": {"id": 764}, "assignee": {"id": 817}}, "task": {"id": 351, "owner": {"id": 928}, "assignee": {"id": 1063}}, "job": {"id": 365, "assignee": {"id": 50}}, "organization": {"id": 130}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 309, "owner": {"id": 672}, "assignee": {"id": 594}, "project": {"id": 364, "owner": {"id": 799}, "assignee": {"id": 861}}, "task": {"id": 312, "owner": {"id": 998}, "assignee": {"id": 1047}}, "job": {"id": 355, "assignee": {"id": 42}}, "organization": {"id": 1258}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 321, "owner": {"id": 684}, "assignee": {"id": 590}, "project": {"id": 341, "owner": {"id": 770}, "assignee": {"id": 863}}, "task": {"id": 387, "owner": {"id": 997}, "assignee": {"id": 1048}}, "job": {"id": 330, "assignee": {"id": 79}}, "organization": {"id": 1258}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 321, "owner": {"id": 642}, "assignee": {"id": 577}, "project": {"id": 385, "owner": {"id": 779}, "assignee": {"id": 852}}, "task": {"id": 381, "owner": {"id": 963}, "assignee": {"id": 1017}}, "job": {"id": 370, "assignee": {"id": 38}}, "organization": {"id": 101}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "owner": {"id": 642}, "assignee": {"id": 541}, "project": {"id": 377, "owner": {"id": 720}, "assignee": {"id": 858}}, "task": {"id": 322, "owner": {"id": 911}, "assignee": {"id": 1050}}, "job": {"id": 347, "assignee": {"id": 71}}, "organization": {"id": 147}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "owner": {"id": 640}, "assignee": {"id": 594}, "project": {"id": 377, "owner": {"id": 716}, "assignee": {"id": 848}}, "task": {"id": 374, "owner": {"id": 989}, "assignee": {"id": 1039}}, "job": {"id": 357, "assignee": {"id": 43}}, "organization": {"id": 1279}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 639}, "assignee": {"id": 595}, "project": {"id": 319, "owner": {"id": 703}, "assignee": {"id": 886}}, "task": {"id": 391, "owner": {"id": 920}, "assignee": {"id": 1077}}, "job": {"id": 331, "assignee": {"id": 80}}, "organization": {"id": 1287}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "owner": {"id": 656}, "assignee": {"id": 555}, "project": {"id": 399, "owner": {"id": 755}, "assignee": {"id": 892}}, "task": {"id": 312, "owner": {"id": 941}, "assignee": {"id": 1028}}, "job": {"id": 321, "assignee": {"id": 34}}, "organization": {"id": 101}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 672}, "assignee": {"id": 585}, "project": {"id": 394, "owner": {"id": 773}, "assignee": {"id": 804}}, "task": {"id": 396, "owner": {"id": 991}, "assignee": {"id": 1058}}, "job": {"id": 373, "assignee": {"id": 41}}, "organization": {"id": 199}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "owner": {"id": 600}, "assignee": {"id": 551}, "project": {"id": 359, "owner": {"id": 786}, "assignee": {"id": 874}}, "task": {"id": 339, "owner": {"id": 937}, "assignee": {"id": 1001}}, "job": {"id": 300, "assignee": {"id": 51}}, "organization": {"id": 1271}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 687}, "assignee": {"id": 578}, "project": {"id": 392, "owner": {"id": 748}, "assignee": {"id": 897}}, "task": {"id": 309, "owner": {"id": 971}, "assignee": {"id": 1004}}, "job": {"id": 327, "assignee": {"id": 15}}, "organization": {"id": 1230}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 389, "owner": {"id": 608}, "assignee": {"id": 525}, "project": {"id": 327, "owner": {"id": 716}, "assignee": {"id": 889}}, "task": {"id": 316, "owner": {"id": 966}, "assignee": {"id": 1044}}, "job": {"id": 303, "assignee": {"id": 18}}, "organization": {"id": 153}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 638}, "assignee": {"id": 523}, "project": {"id": 345, "owner": {"id": 765}, "assignee": {"id": 843}}, "task": {"id": 368, "owner": {"id": 999}, "assignee": {"id": 1072}}, "job": {"id": 348, "assignee": {"id": 40}}, "organization": {"id": 150}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 314, "owner": {"id": 670}, "assignee": {"id": 534}, "project": {"id": 391, "owner": {"id": 705}, "assignee": {"id": 860}}, "task": {"id": 350, "owner": {"id": 954}, "assignee": {"id": 1013}}, "job": {"id": 357, "assignee": {"id": 13}}, "organization": {"id": 1285}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 370, "owner": {"id": 639}, "assignee": {"id": 546}, "project": {"id": 399, "owner": {"id": 701}, "assignee": {"id": 834}}, "task": {"id": 390, "owner": {"id": 946}, "assignee": {"id": 1006}}, "job": {"id": 314, "assignee": {"id": 36}}, "organization": {"id": 1217}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 341, "owner": {"id": 650}, "assignee": {"id": 595}, "project": {"id": 323, "owner": {"id": 712}, "assignee": {"id": 842}}, "task": {"id": 319, "owner": {"id": 964}, "assignee": {"id": 1058}}, "job": {"id": 320, "assignee": {"id": 77}}, "organization": {"id": 137}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 361, "owner": {"id": 635}, "assignee": {"id": 581}, "project": {"id": 399, "owner": {"id": 792}, "assignee": {"id": 867}}, "task": {"id": 342, "owner": {"id": 949}, "assignee": {"id": 1072}}, "job": {"id": 373, "assignee": {"id": 75}}, "organization": {"id": 119}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 357, "owner": {"id": 623}, "assignee": {"id": 520}, "project": {"id": 379, "owner": {"id": 701}, "assignee": {"id": 886}}, "task": {"id": 301, "owner": {"id": 972}, "assignee": {"id": 1072}}, "job": {"id": 393, "assignee": {"id": 83}}, "organization": {"id": 1210}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 328, "owner": {"id": 695}, "assignee": {"id": 582}, "project": {"id": 376, "owner": {"id": 740}, "assignee": {"id": 885}}, "task": {"id": 381, "owner": {"id": 947}, "assignee": {"id": 1061}}, "job": {"id": 389, "assignee": {"id": 3}}, "organization": {"id": 1216}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 333, "owner": {"id": 69}, "assignee": {"id": 534}, "project": {"id": 367, "owner": {"id": 737}, "assignee": {"id": 876}}, "task": {"id": 324, "owner": {"id": 987}, "assignee": {"id": 1054}}, "job": {"id": 338, "assignee": {"id": 1175}}, "organization": {"id": 192}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 74}, "assignee": {"id": 589}, "project": {"id": 331, "owner": {"id": 723}, "assignee": {"id": 837}}, "task": {"id": 344, "owner": {"id": 931}, "assignee": {"id": 1084}}, "job": {"id": 315, "assignee": {"id": 1162}}, "organization": {"id": 195}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 367, "owner": {"id": 48}, "assignee": {"id": 540}, "project": {"id": 329, "owner": {"id": 701}, "assignee": {"id": 866}}, "task": {"id": 370, "owner": {"id": 945}, "assignee": {"id": 1039}}, "job": {"id": 359, "assignee": {"id": 1146}}, "organization": {"id": 1200}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 363, "owner": {"id": 86}, "assignee": {"id": 527}, "project": {"id": 379, "owner": {"id": 752}, "assignee": {"id": 819}}, "task": {"id": 394, "owner": {"id": 902}, "assignee": {"id": 1086}}, "job": {"id": 393, "assignee": {"id": 1185}}, "organization": {"id": 1271}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "owner": {"id": 11}, "assignee": {"id": 516}, "project": {"id": 339, "owner": {"id": 702}, "assignee": {"id": 878}}, "task": {"id": 302, "owner": {"id": 975}, "assignee": {"id": 1055}}, "job": {"id": 318, "assignee": {"id": 1147}}, "organization": {"id": 164}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 15}, "assignee": {"id": 562}, "project": {"id": 304, "owner": {"id": 797}, "assignee": {"id": 807}}, "task": {"id": 335, "owner": {"id": 950}, "assignee": {"id": 1066}}, "job": {"id": 394, "assignee": {"id": 1154}}, "organization": {"id": 103}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "owner": {"id": 54}, "assignee": {"id": 597}, "project": {"id": 366, "owner": {"id": 752}, "assignee": {"id": 882}}, "task": {"id": 313, "owner": {"id": 937}, "assignee": {"id": 1072}}, "job": {"id": 341, "assignee": {"id": 1188}}, "organization": {"id": 1291}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 70}, "assignee": {"id": 504}, "project": {"id": 323, "owner": {"id": 784}, "assignee": {"id": 870}}, "task": {"id": 379, "owner": {"id": 974}, "assignee": {"id": 1065}}, "job": {"id": 310, "assignee": {"id": 1141}}, "organization": {"id": 1277}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 23}, "assignee": {"id": 575}, "project": {"id": 398, "owner": {"id": 792}, "assignee": {"id": 813}}, "task": {"id": 386, "owner": {"id": 985}, "assignee": {"id": 1018}}, "job": {"id": 397, "assignee": {"id": 1134}}, "organization": {"id": 134}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "owner": {"id": 44}, "assignee": {"id": 525}, "project": {"id": 397, "owner": {"id": 719}, "assignee": {"id": 854}}, "task": {"id": 312, "owner": {"id": 983}, "assignee": {"id": 1032}}, "job": {"id": 391, "assignee": {"id": 1133}}, "organization": {"id": 112}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "owner": {"id": 35}, "assignee": {"id": 579}, "project": {"id": 381, "owner": {"id": 770}, "assignee": {"id": 803}}, "task": {"id": 339, "owner": {"id": 911}, "assignee": {"id": 1008}}, "job": {"id": 354, "assignee": {"id": 1126}}, "organization": {"id": 1251}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "owner": {"id": 39}, "assignee": {"id": 567}, "project": {"id": 396, "owner": {"id": 708}, "assignee": {"id": 845}}, "task": {"id": 371, "owner": {"id": 964}, "assignee": {"id": 1006}}, "job": {"id": 339, "assignee": {"id": 1131}}, "organization": {"id": 1284}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 72}, "assignee": {"id": 574}, "project": {"id": 377, "owner": {"id": 763}, "assignee": {"id": 865}}, "task": {"id": 353, "owner": {"id": 980}, "assignee": {"id": 1022}}, "job": {"id": 349, "assignee": {"id": 1193}}, "organization": {"id": 110}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 355, "owner": {"id": 54}, "assignee": {"id": 584}, "project": {"id": 349, "owner": {"id": 770}, "assignee": {"id": 835}}, "task": {"id": 321, "owner": {"id": 984}, "assignee": {"id": 1093}}, "job": {"id": 351, "assignee": {"id": 1116}}, "organization": {"id": 141}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 60}, "assignee": {"id": 549}, "project": {"id": 340, "owner": {"id": 768}, "assignee": {"id": 818}}, "task": {"id": 393, "owner": {"id": 989}, "assignee": {"id": 1017}}, "job": {"id": 373, "assignee": {"id": 1197}}, "organization": {"id": 1271}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 372, "owner": {"id": 23}, "assignee": {"id": 500}, "project": {"id": 329, "owner": {"id": 719}, "assignee": {"id": 898}}, "task": {"id": 307, "owner": {"id": 915}, "assignee": {"id": 1051}}, "job": {"id": 386, "assignee": {"id": 1172}}, "organization": {"id": 1289}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"id": 347, "owner": {"id": 71}, "assignee": {"id": 552}, "project": {"id": 370, "owner": {"id": 759}, "assignee": {"id": 884}}, "task": {"id": 393, "owner": {"id": 936}, "assignee": {"id": 1030}}, "job": {"id": 384, "assignee": {"id": 1172}}, "organization": {"id": 136}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 84}, "assignee": {"id": 580}, "project": {"id": 300, "owner": {"id": 733}, "assignee": {"id": 859}}, "task": {"id": 365, "owner": {"id": 917}, "assignee": {"id": 1085}}, "job": {"id": 318, "assignee": {"id": 1158}}, "organization": {"id": 154}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"id": 362, "owner": {"id": 1}, "assignee": {"id": 540}, "project": {"id": 380, "owner": {"id": 712}, "assignee": {"id": 875}}, "task": {"id": 304, "owner": {"id": 958}, "assignee": {"id": 1097}}, "job": {"id": 387, "assignee": {"id": 1111}}, "organization": {"id": 1236}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 338, "owner": {"id": 55}, "assignee": {"id": 567}, "project": {"id": 371, "owner": {"id": 767}, "assignee": {"id": 810}}, "task": {"id": 343, "owner": {"id": 945}, "assignee": {"id": 1075}}, "job": {"id": 360, "assignee": {"id": 1194}}, "organization": {"id": 1276}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 331, "owner": {"id": 3}, "assignee": {"id": 566}, "project": {"id": 367, "owner": {"id": 721}, "assignee": {"id": 811}}, "task": {"id": 389, "owner": {"id": 948}, "assignee": {"id": 1058}}, "job": {"id": 340, "assignee": {"id": 1176}}, "organization": {"id": 114}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 336, "owner": {"id": 34}, "assignee": {"id": 581}, "project": {"id": 387, "owner": {"id": 761}, "assignee": {"id": 885}}, "task": {"id": 328, "owner": {"id": 963}, "assignee": {"id": 1046}}, "job": {"id": 367, "assignee": {"id": 1147}}, "organization": {"id": 156}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 320, "owner": {"id": 43}, "assignee": {"id": 546}, "project": {"id": 314, "owner": {"id": 740}, "assignee": {"id": 817}}, "task": {"id": 302, "owner": {"id": 929}, "assignee": {"id": 1022}}, "job": {"id": 392, "assignee": {"id": 1173}}, "organization": {"id": 1216}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 381, "owner": {"id": 29}, "assignee": {"id": 515}, "project": {"id": 398, "owner": {"id": 791}, "assignee": {"id": 893}}, "task": {"id": 316, "owner": {"id": 913}, "assignee": {"id": 1032}}, "job": {"id": 352, "assignee": {"id": 1153}}, "organization": {"id": 1254}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 5}, "assignee": {"id": 512}, "project": {"id": 301, "owner": {"id": 716}, "assignee": {"id": 831}}, "task": {"id": 396, "owner": {"id": 913}, "assignee": {"id": 1082}}, "job": {"id": 350, "assignee": {"id": 1122}}, "organization": {"id": 197}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "owner": {"id": 67}, "assignee": {"id": 556}, "project": {"id": 343, "owner": {"id": 707}, "assignee": {"id": 807}}, "task": {"id": 368, "owner": {"id": 902}, "assignee": {"id": 1040}}, "job": {"id": 395, "assignee": {"id": 1110}}, "organization": {"id": 142}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 35}, "assignee": {"id": 535}, "project": {"id": 395, "owner": {"id": 758}, "assignee": {"id": 837}}, "task": {"id": 380, "owner": {"id": 954}, "assignee": {"id": 1061}}, "job": {"id": 391, "assignee": {"id": 1152}}, "organization": {"id": 1229}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "owner": {"id": 48}, "assignee": {"id": 527}, "project": {"id": 305, "owner": {"id": 794}, "assignee": {"id": 834}}, "task": {"id": 394, "owner": {"id": 949}, "assignee": {"id": 1077}}, "job": {"id": 344, "assignee": {"id": 1141}}, "organization": {"id": 1211}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "owner": {"id": 3}, "assignee": {"id": 553}, "project": {"id": 338, "owner": {"id": 792}, "assignee": {"id": 899}}, "task": {"id": 363, "owner": {"id": 963}, "assignee": {"id": 1067}}, "job": {"id": 301, "assignee": {"id": 1188}}, "organization": {"id": 175}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "owner": {"id": 13}, "assignee": {"id": 550}, "project": {"id": 380, "owner": {"id": 713}, "assignee": {"id": 832}}, "task": {"id": 320, "owner": {"id": 974}, "assignee": {"id": 1016}}, "job": {"id": 332, "assignee": {"id": 1177}}, "organization": {"id": 106}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "owner": {"id": 14}, "assignee": {"id": 508}, "project": {"id": 344, "owner": {"id": 790}, "assignee": {"id": 842}}, "task": {"id": 327, "owner": {"id": 959}, "assignee": {"id": 1055}}, "job": {"id": 393, "assignee": {"id": 1140}}, "organization": {"id": 1272}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "owner": {"id": 15}, "assignee": {"id": 527}, "project": {"id": 334, "owner": {"id": 775}, "assignee": {"id": 831}}, "task": {"id": 335, "owner": {"id": 968}, "assignee": {"id": 1077}}, "job": {"id": 331, "assignee": {"id": 1109}}, "organization": {"id": 1281}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 353, "owner": {"id": 42}, "assignee": {"id": 567}, "project": {"id": 353, "owner": {"id": 715}, "assignee": {"id": 819}}, "task": {"id": 320, "owner": {"id": 971}, "assignee": {"id": 1058}}, "job": {"id": 396, "assignee": {"id": 1195}}, "organization": {"id": 179}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 397, "owner": {"id": 82}, "assignee": {"id": 545}, "project": {"id": 350, "owner": {"id": 793}, "assignee": {"id": 858}}, "task": {"id": 356, "owner": {"id": 964}, "assignee": {"id": 1061}}, "job": {"id": 325, "assignee": {"id": 1132}}, "organization": {"id": 153}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 332, "owner": {"id": 49}, "assignee": {"id": 589}, "project": {"id": 368, "owner": {"id": 759}, "assignee": {"id": 803}}, "task": {"id": 310, "owner": {"id": 966}, "assignee": {"id": 1052}}, "job": {"id": 357, "assignee": {"id": 1144}}, "organization": {"id": 1235}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 368, "owner": {"id": 69}, "assignee": {"id": 503}, "project": {"id": 365, "owner": {"id": 744}, "assignee": {"id": 828}}, "task": {"id": 368, "owner": {"id": 943}, "assignee": {"id": 1014}}, "job": {"id": 305, "assignee": {"id": 1122}}, "organization": {"id": 1219}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 58}, "assignee": {"id": 580}, "project": {"id": 304, "owner": {"id": 787}, "assignee": {"id": 845}}, "task": {"id": 361, "owner": {"id": 978}, "assignee": {"id": 1000}}, "job": {"id": 329, "assignee": {"id": 1106}}, "organization": {"id": 166}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"id": 338, "owner": {"id": 5}, "assignee": {"id": 588}, "project": {"id": 388, "owner": {"id": 722}, "assignee": {"id": 835}}, "task": {"id": 330, "owner": {"id": 985}, "assignee": {"id": 1071}}, "job": {"id": 375, "assignee": {"id": 1190}}, "organization": {"id": 167}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 331, "owner": {"id": 4}, "assignee": {"id": 514}, "project": {"id": 374, "owner": {"id": 738}, "assignee": {"id": 882}}, "task": {"id": 397, "owner": {"id": 964}, "assignee": {"id": 1046}}, "job": {"id": 315, "assignee": {"id": 1168}}, "organization": {"id": 1286}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 65}, "assignee": {"id": 552}, "project": {"id": 383, "owner": {"id": 762}, "assignee": {"id": 870}}, "task": {"id": 398, "owner": {"id": 923}, "assignee": {"id": 1033}}, "job": {"id": 323, "assignee": {"id": 1192}}, "organization": {"id": 1286}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 310, "owner": {"id": 30}, "assignee": {"id": 525}, "project": {"id": 394, "owner": {"id": 797}, "assignee": {"id": 818}}, "task": {"id": 325, "owner": {"id": 906}, "assignee": {"id": 1068}}, "job": {"id": 314, "assignee": {"id": 1117}}, "organization": {"id": 104}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 362, "owner": {"id": 48}, "assignee": {"id": 536}, "project": {"id": 300, "owner": {"id": 751}, "assignee": {"id": 890}}, "task": {"id": 362, "owner": {"id": 940}, "assignee": {"id": 1059}}, "job": {"id": 371, "assignee": {"id": 1141}}, "organization": {"id": 193}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 300, "owner": {"id": 52}, "assignee": {"id": 546}, "project": {"id": 351, "owner": {"id": 773}, "assignee": {"id": 803}}, "task": {"id": 359, "owner": {"id": 949}, "assignee": {"id": 1075}}, "job": {"id": 310, "assignee": {"id": 1109}}, "organization": {"id": 1257}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 369, "owner": {"id": 76}, "assignee": {"id": 525}, "project": {"id": 365, "owner": {"id": 791}, "assignee": {"id": 879}}, "task": {"id": 392, "owner": {"id": 999}, "assignee": {"id": 1055}}, "job": {"id": 391, "assignee": {"id": 1121}}, "organization": {"id": 1211}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "owner": {"id": 46}, "assignee": {"id": 579}, "project": {"id": 334, "owner": {"id": 796}, "assignee": {"id": 851}}, "task": {"id": 376, "owner": {"id": 940}, "assignee": {"id": 1037}}, "job": {"id": 328, "assignee": {"id": 1140}}, "organization": {"id": 135}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 39}, "assignee": {"id": 565}, "project": {"id": 356, "owner": {"id": 724}, "assignee": {"id": 835}}, "task": {"id": 343, "owner": {"id": 974}, "assignee": {"id": 1099}}, "job": {"id": 334, "assignee": {"id": 1117}}, "organization": {"id": 140}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "owner": {"id": 41}, "assignee": {"id": 540}, "project": {"id": 386, "owner": {"id": 723}, "assignee": {"id": 879}}, "task": {"id": 342, "owner": {"id": 946}, "assignee": {"id": 1087}}, "job": {"id": 323, "assignee": {"id": 1130}}, "organization": {"id": 1298}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "owner": {"id": 73}, "assignee": {"id": 528}, "project": {"id": 385, "owner": {"id": 706}, "assignee": {"id": 838}}, "task": {"id": 377, "owner": {"id": 952}, "assignee": {"id": 1076}}, "job": {"id": 357, "assignee": {"id": 1127}}, "organization": {"id": 1210}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 369, "owner": {"id": 84}, "assignee": {"id": 530}, "project": {"id": 365, "owner": {"id": 784}, "assignee": {"id": 800}}, "task": {"id": 359, "owner": {"id": 940}, "assignee": {"id": 1093}}, "job": {"id": 338, "assignee": {"id": 1158}}, "organization": {"id": 179}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "owner": {"id": 68}, "assignee": {"id": 556}, "project": {"id": 375, "owner": {"id": 764}, "assignee": {"id": 820}}, "task": {"id": 351, "owner": {"id": 904}, "assignee": {"id": 1008}}, "job": {"id": 368, "assignee": {"id": 1191}}, "organization": {"id": 187}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 13}, "assignee": {"id": 544}, "project": {"id": 316, "owner": {"id": 776}, "assignee": {"id": 808}}, "task": {"id": 387, "owner": {"id": 976}, "assignee": {"id": 1043}}, "job": {"id": 385, "assignee": {"id": 1192}}, "organization": {"id": 1291}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 46}, "assignee": {"id": 590}, "project": {"id": 374, "owner": {"id": 751}, "assignee": {"id": 803}}, "task": {"id": 390, "owner": {"id": 917}, "assignee": {"id": 1094}}, "job": {"id": 371, "assignee": {"id": 1139}}, "organization": {"id": 1264}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 372, "owner": {"id": 72}, "assignee": {"id": 532}, "project": {"id": 336, "owner": {"id": 758}, "assignee": {"id": 880}}, "task": {"id": 304, "owner": {"id": 953}, "assignee": {"id": 1040}}, "job": {"id": 325, "assignee": {"id": 1178}}, "organization": {"id": 127}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 361, "owner": {"id": 34}, "assignee": {"id": 544}, "project": {"id": 334, "owner": {"id": 797}, "assignee": {"id": 887}}, "task": {"id": 364, "owner": {"id": 952}, "assignee": {"id": 1053}}, "job": {"id": 308, "assignee": {"id": 1192}}, "organization": {"id": 147}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 45}, "assignee": {"id": 547}, "project": {"id": 335, "owner": {"id": 751}, "assignee": {"id": 837}}, "task": {"id": 319, "owner": {"id": 914}, "assignee": {"id": 1018}}, "job": {"id": 308, "assignee": {"id": 1111}}, "organization": {"id": 1266}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 320, "owner": {"id": 67}, "assignee": {"id": 524}, "project": {"id": 356, "owner": {"id": 792}, "assignee": {"id": 854}}, "task": {"id": 305, "owner": {"id": 995}, "assignee": {"id": 1003}}, "job": {"id": 307, "assignee": {"id": 1173}}, "organization": {"id": 1292}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 312, "owner": {"id": 69}, "assignee": {"id": 530}, "project": {"id": 314, "owner": {"id": 795}, "assignee": {"id": 840}}, "task": {"id": 314, "owner": {"id": 920}, "assignee": {"id": 1026}}, "job": {"id": 312, "assignee": {"id": 1152}}, "organization": {"id": 106}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 394, "owner": {"id": 43}, "assignee": {"id": 559}, "project": {"id": 315, "owner": {"id": 757}, "assignee": {"id": 825}}, "task": {"id": 399, "owner": {"id": 969}, "assignee": {"id": 1035}}, "job": {"id": 325, "assignee": {"id": 1165}}, "organization": {"id": 106}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 82}, "assignee": {"id": 540}, "project": {"id": 350, "owner": {"id": 776}, "assignee": {"id": 886}}, "task": {"id": 367, "owner": {"id": 958}, "assignee": {"id": 1043}}, "job": {"id": 376, "assignee": {"id": 1111}}, "organization": {"id": 1299}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 94}, "assignee": {"id": 537}, "project": {"id": 386, "owner": {"id": 760}, "assignee": {"id": 838}}, "task": {"id": 333, "owner": {"id": 991}, "assignee": {"id": 1000}}, "job": {"id": 392, "assignee": {"id": 1166}}, "organization": {"id": 1292}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 366, "owner": {"id": 17}, "assignee": {"id": 569}, "project": {"id": 330, "owner": {"id": 756}, "assignee": {"id": 883}}, "task": {"id": 380, "owner": {"id": 976}, "assignee": {"id": 1072}}, "job": {"id": 332, "assignee": {"id": 1147}}, "organization": {"id": 159}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 350, "owner": {"id": 19}, "assignee": {"id": 535}, "project": {"id": 347, "owner": {"id": 726}, "assignee": {"id": 825}}, "task": {"id": 372, "owner": {"id": 942}, "assignee": {"id": 1079}}, "job": {"id": 350, "assignee": {"id": 1176}}, "organization": {"id": 126}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 328, "owner": {"id": 41}, "assignee": {"id": 555}, "project": {"id": 362, "owner": {"id": 767}, "assignee": {"id": 849}}, "task": {"id": 379, "owner": {"id": 929}, "assignee": {"id": 1079}}, "job": {"id": 372, "assignee": {"id": 1101}}, "organization": {"id": 1298}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 386, "owner": {"id": 26}, "assignee": {"id": 541}, "project": {"id": 326, "owner": {"id": 713}, "assignee": {"id": 833}}, "task": {"id": 321, "owner": {"id": 980}, "assignee": {"id": 1089}}, "job": {"id": 392, "assignee": {"id": 1111}}, "organization": {"id": 1235}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "owner": {"id": 19}, "assignee": {"id": 529}, "project": {"id": 354, "owner": {"id": 776}, "assignee": {"id": 837}}, "task": {"id": 379, "owner": {"id": 993}, "assignee": {"id": 1031}}, "job": {"id": 329, "assignee": {"id": 1195}}, "organization": {"id": 100}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "owner": {"id": 15}, "assignee": {"id": 583}, "project": {"id": 381, "owner": {"id": 765}, "assignee": {"id": 842}}, "task": {"id": 366, "owner": {"id": 953}, "assignee": {"id": 1054}}, "job": {"id": 360, "assignee": {"id": 1163}}, "organization": {"id": 110}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "owner": {"id": 58}, "assignee": {"id": 508}, "project": {"id": 309, "owner": {"id": 706}, "assignee": {"id": 841}}, "task": {"id": 320, "owner": {"id": 982}, "assignee": {"id": 1097}}, "job": {"id": 332, "assignee": {"id": 1163}}, "organization": {"id": 1276}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 10}, "assignee": {"id": 534}, "project": {"id": 396, "owner": {"id": 725}, "assignee": {"id": 864}}, "task": {"id": 397, "owner": {"id": 995}, "assignee": {"id": 1012}}, "job": {"id": 374, "assignee": {"id": 1127}}, "organization": {"id": 1227}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "owner": {"id": 82}, "assignee": {"id": 573}, "project": {"id": 331, "owner": {"id": 750}, "assignee": {"id": 898}}, "task": {"id": 381, "owner": {"id": 916}, "assignee": {"id": 1069}}, "job": {"id": 352, "assignee": {"id": 1136}}, "organization": {"id": 136}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 22}, "assignee": {"id": 596}, "project": {"id": 323, "owner": {"id": 766}, "assignee": {"id": 833}}, "task": {"id": 361, "owner": {"id": 913}, "assignee": {"id": 1053}}, "job": {"id": 341, "assignee": {"id": 1186}}, "organization": {"id": 194}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "owner": {"id": 1}, "assignee": {"id": 523}, "project": {"id": 331, "owner": {"id": 798}, "assignee": {"id": 849}}, "task": {"id": 389, "owner": {"id": 903}, "assignee": {"id": 1043}}, "job": {"id": 301, "assignee": {"id": 1142}}, "organization": {"id": 1270}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "owner": {"id": 52}, "assignee": {"id": 599}, "project": {"id": 396, "owner": {"id": 776}, "assignee": {"id": 869}}, "task": {"id": 356, "owner": {"id": 971}, "assignee": {"id": 1056}}, "job": {"id": 360, "assignee": {"id": 1139}}, "organization": {"id": 1205}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 66}, "assignee": {"id": 505}, "project": {"id": 354, "owner": {"id": 740}, "assignee": {"id": 846}}, "task": {"id": 329, "owner": {"id": 924}, "assignee": {"id": 1082}}, "job": {"id": 348, "assignee": {"id": 1126}}, "organization": {"id": 146}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 330, "owner": {"id": 55}, "assignee": {"id": 592}, "project": {"id": 392, "owner": {"id": 735}, "assignee": {"id": 811}}, "task": {"id": 334, "owner": {"id": 958}, "assignee": {"id": 1046}}, "job": {"id": 322, "assignee": {"id": 1114}}, "organization": {"id": 165}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 86}, "assignee": {"id": 595}, "project": {"id": 317, "owner": {"id": 728}, "assignee": {"id": 825}}, "task": {"id": 313, "owner": {"id": 974}, "assignee": {"id": 1055}}, "job": {"id": 326, "assignee": {"id": 1103}}, "organization": {"id": 1260}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 388, "owner": {"id": 54}, "assignee": {"id": 562}, "project": {"id": 352, "owner": {"id": 762}, "assignee": {"id": 857}}, "task": {"id": 322, "owner": {"id": 972}, "assignee": {"id": 1053}}, "job": {"id": 337, "assignee": {"id": 1188}}, "organization": {"id": 1256}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 365, "owner": {"id": 78}, "assignee": {"id": 566}, "project": {"id": 381, "owner": {"id": 724}, "assignee": {"id": 879}}, "task": {"id": 342, "owner": {"id": 988}, "assignee": {"id": 1041}}, "job": {"id": 399, "assignee": {"id": 1112}}, "organization": {"id": 105}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 329, "owner": {"id": 51}, "assignee": {"id": 568}, "project": {"id": 318, "owner": {"id": 713}, "assignee": {"id": 854}}, "task": {"id": 300, "owner": {"id": 950}, "assignee": {"id": 1050}}, "job": {"id": 396, "assignee": {"id": 1110}}, "organization": {"id": 191}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 44}, "assignee": {"id": 546}, "project": {"id": 370, "owner": {"id": 731}, "assignee": {"id": 855}}, "task": {"id": 309, "owner": {"id": 931}, "assignee": {"id": 1028}}, "job": {"id": 328, "assignee": {"id": 1118}}, "organization": {"id": 1228}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 362, "owner": {"id": 43}, "assignee": {"id": 509}, "project": {"id": 323, "owner": {"id": 778}, "assignee": {"id": 848}}, "task": {"id": 338, "owner": {"id": 914}, "assignee": {"id": 1071}}, "job": {"id": 391, "assignee": {"id": 1153}}, "organization": {"id": 1221}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 335, "owner": {"id": 97}, "assignee": {"id": 594}, "project": {"id": 325, "owner": {"id": 792}, "assignee": {"id": 815}}, "task": {"id": 390, "owner": {"id": 935}, "assignee": {"id": 1058}}, "job": {"id": 319, "assignee": {"id": 1101}}, "organization": {"id": 141}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 63}, "assignee": {"id": 598}, "project": {"id": 350, "owner": {"id": 763}, "assignee": {"id": 877}}, "task": {"id": 344, "owner": {"id": 960}, "assignee": {"id": 1080}}, "job": {"id": 363, "assignee": {"id": 1120}}, "organization": {"id": 189}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 16}, "assignee": {"id": 510}, "project": {"id": 351, "owner": {"id": 740}, "assignee": {"id": 825}}, "task": {"id": 370, "owner": {"id": 960}, "assignee": {"id": 1077}}, "job": {"id": 397, "assignee": {"id": 1118}}, "organization": {"id": 1252}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 6}, "assignee": {"id": 524}, "project": {"id": 312, "owner": {"id": 738}, "assignee": {"id": 846}}, "task": {"id": 343, "owner": {"id": 925}, "assignee": {"id": 1038}}, "job": {"id": 366, "assignee": {"id": 1123}}, "organization": {"id": 1231}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 99}, "assignee": {"id": 531}, "project": {"id": 355, "owner": {"id": 756}, "assignee": {"id": 809}}, "task": {"id": 397, "owner": {"id": 921}, "assignee": {"id": 1060}}, "job": {"id": 334, "assignee": {"id": 1152}}, "organization": {"id": 154}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "owner": {"id": 29}, "assignee": {"id": 564}, "project": {"id": 381, "owner": {"id": 721}, "assignee": {"id": 889}}, "task": {"id": 308, "owner": {"id": 927}, "assignee": {"id": 1087}}, "job": {"id": 310, "assignee": {"id": 1146}}, "organization": {"id": 106}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 92}, "assignee": {"id": 565}, "project": {"id": 346, "owner": {"id": 703}, "assignee": {"id": 896}}, "task": {"id": 318, "owner": {"id": 915}, "assignee": {"id": 1032}}, "job": {"id": 356, "assignee": {"id": 1136}}, "organization": {"id": 1233}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "owner": {"id": 60}, "assignee": {"id": 585}, "project": {"id": 369, "owner": {"id": 780}, "assignee": {"id": 849}}, "task": {"id": 311, "owner": {"id": 993}, "assignee": {"id": 1020}}, "job": {"id": 323, "assignee": {"id": 1137}}, "organization": {"id": 1229}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "owner": {"id": 53}, "assignee": {"id": 573}, "project": {"id": 329, "owner": {"id": 765}, "assignee": {"id": 894}}, "task": {"id": 374, "owner": {"id": 907}, "assignee": {"id": 1097}}, "job": {"id": 333, "assignee": {"id": 1104}}, "organization": {"id": 110}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "owner": {"id": 89}, "assignee": {"id": 503}, "project": {"id": 348, "owner": {"id": 766}, "assignee": {"id": 812}}, "task": {"id": 345, "owner": {"id": 983}, "assignee": {"id": 1057}}, "job": {"id": 385, "assignee": {"id": 1137}}, "organization": {"id": 197}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "owner": {"id": 49}, "assignee": {"id": 572}, "project": {"id": 320, "owner": {"id": 710}, "assignee": {"id": 855}}, "task": {"id": 366, "owner": {"id": 984}, "assignee": {"id": 1097}}, "job": {"id": 399, "assignee": {"id": 1195}}, "organization": {"id": 1241}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "owner": {"id": 51}, "assignee": {"id": 542}, "project": {"id": 362, "owner": {"id": 778}, "assignee": {"id": 825}}, "task": {"id": 371, "owner": {"id": 912}, "assignee": {"id": 1086}}, "job": {"id": 381, "assignee": {"id": 1185}}, "organization": {"id": 1293}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 346, "owner": {"id": 96}, "assignee": {"id": 518}, "project": {"id": 383, "owner": {"id": 704}, "assignee": {"id": 816}}, "task": {"id": 341, "owner": {"id": 938}, "assignee": {"id": 1056}}, "job": {"id": 313, "assignee": {"id": 1191}}, "organization": {"id": 163}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 340, "owner": {"id": 9}, "assignee": {"id": 566}, "project": {"id": 369, "owner": {"id": 750}, "assignee": {"id": 866}}, "task": {"id": 317, "owner": {"id": 996}, "assignee": {"id": 1008}}, "job": {"id": 305, "assignee": {"id": 1167}}, "organization": {"id": 103}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 363, "owner": {"id": 48}, "assignee": {"id": 585}, "project": {"id": 303, "owner": {"id": 737}, "assignee": {"id": 818}}, "task": {"id": 379, "owner": {"id": 940}, "assignee": {"id": 1098}}, "job": {"id": 345, "assignee": {"id": 1183}}, "organization": {"id": 1285}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 304, "owner": {"id": 10}, "assignee": {"id": 543}, "project": {"id": 372, "owner": {"id": 796}, "assignee": {"id": 861}}, "task": {"id": 333, "owner": {"id": 907}, "assignee": {"id": 1005}}, "job": {"id": 380, "assignee": {"id": 1166}}, "organization": {"id": 1220}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 399, "owner": {"id": 4}, "assignee": {"id": 504}, "project": {"id": 358, "owner": {"id": 771}, "assignee": {"id": 868}}, "task": {"id": 314, "owner": {"id": 968}, "assignee": {"id": 1020}}, "job": {"id": 344, "assignee": {"id": 1172}}, "organization": {"id": 187}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 311, "owner": {"id": 4}, "assignee": {"id": 500}, "project": {"id": 387, "owner": {"id": 715}, "assignee": {"id": 884}}, "task": {"id": 317, "owner": {"id": 925}, "assignee": {"id": 1058}}, "job": {"id": 358, "assignee": {"id": 1194}}, "organization": {"id": 116}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 341, "owner": {"id": 95}, "assignee": {"id": 505}, "project": {"id": 344, "owner": {"id": 791}, "assignee": {"id": 802}}, "task": {"id": 341, "owner": {"id": 954}, "assignee": {"id": 1046}}, "job": {"id": 323, "assignee": {"id": 1159}}, "organization": {"id": 1255}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 390, "owner": {"id": 95}, "assignee": {"id": 539}, "project": {"id": 327, "owner": {"id": 781}, "assignee": {"id": 856}}, "task": {"id": 397, "owner": {"id": 901}, "assignee": {"id": 1033}}, "job": {"id": 355, "assignee": {"id": 1192}}, "organization": {"id": 1266}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 349, "owner": {"id": 630}, "assignee": {"id": 40}, "project": {"id": 310, "owner": {"id": 773}, "assignee": {"id": 845}}, "task": {"id": 353, "owner": {"id": 978}, "assignee": {"id": 1045}}, "job": {"id": 316, "assignee": {"id": 1177}}, "organization": {"id": 173}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 356, "owner": {"id": 635}, "assignee": {"id": 31}, "project": {"id": 382, "owner": {"id": 737}, "assignee": {"id": 813}}, "task": {"id": 302, "owner": {"id": 943}, "assignee": {"id": 1007}}, "job": {"id": 305, "assignee": {"id": 1169}}, "organization": {"id": 126}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 392, "owner": {"id": 650}, "assignee": {"id": 45}, "project": {"id": 358, "owner": {"id": 727}, "assignee": {"id": 821}}, "task": {"id": 363, "owner": {"id": 996}, "assignee": {"id": 1042}}, "job": {"id": 373, "assignee": {"id": 1167}}, "organization": {"id": 1255}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 637}, "assignee": {"id": 29}, "project": {"id": 336, "owner": {"id": 742}, "assignee": {"id": 866}}, "task": {"id": 338, "owner": {"id": 903}, "assignee": {"id": 1060}}, "job": {"id": 394, "assignee": {"id": 1120}}, "organization": {"id": 1225}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "owner": {"id": 682}, "assignee": {"id": 16}, "project": {"id": 357, "owner": {"id": 754}, "assignee": {"id": 860}}, "task": {"id": 325, "owner": {"id": 932}, "assignee": {"id": 1057}}, "job": {"id": 382, "assignee": {"id": 1158}}, "organization": {"id": 123}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 639}, "assignee": {"id": 58}, "project": {"id": 317, "owner": {"id": 798}, "assignee": {"id": 883}}, "task": {"id": 331, "owner": {"id": 900}, "assignee": {"id": 1043}}, "job": {"id": 395, "assignee": {"id": 1164}}, "organization": {"id": 117}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 644}, "assignee": {"id": 76}, "project": {"id": 343, "owner": {"id": 723}, "assignee": {"id": 821}}, "task": {"id": 373, "owner": {"id": 963}, "assignee": {"id": 1092}}, "job": {"id": 316, "assignee": {"id": 1177}}, "organization": {"id": 1259}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "owner": {"id": 659}, "assignee": {"id": 85}, "project": {"id": 319, "owner": {"id": 773}, "assignee": {"id": 835}}, "task": {"id": 313, "owner": {"id": 931}, "assignee": {"id": 1008}}, "job": {"id": 352, "assignee": {"id": 1111}}, "organization": {"id": 1234}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 665}, "assignee": {"id": 73}, "project": {"id": 367, "owner": {"id": 705}, "assignee": {"id": 840}}, "task": {"id": 324, "owner": {"id": 940}, "assignee": {"id": 1075}}, "job": {"id": 354, "assignee": {"id": 1102}}, "organization": {"id": 123}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "owner": {"id": 651}, "assignee": {"id": 49}, "project": {"id": 387, "owner": {"id": 706}, "assignee": {"id": 820}}, "task": {"id": 353, "owner": {"id": 993}, "assignee": {"id": 1023}}, "job": {"id": 335, "assignee": {"id": 1100}}, "organization": {"id": 114}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "owner": {"id": 694}, "assignee": {"id": 24}, "project": {"id": 331, "owner": {"id": 723}, "assignee": {"id": 809}}, "task": {"id": 301, "owner": {"id": 947}, "assignee": {"id": 1018}}, "job": {"id": 377, "assignee": {"id": 1125}}, "organization": {"id": 1248}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "owner": {"id": 689}, "assignee": {"id": 31}, "project": {"id": 349, "owner": {"id": 772}, "assignee": {"id": 869}}, "task": {"id": 316, "owner": {"id": 996}, "assignee": {"id": 1092}}, "job": {"id": 390, "assignee": {"id": 1179}}, "organization": {"id": 1229}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 389, "owner": {"id": 656}, "assignee": {"id": 13}, "project": {"id": 388, "owner": {"id": 752}, "assignee": {"id": 809}}, "task": {"id": 391, "owner": {"id": 989}, "assignee": {"id": 1076}}, "job": {"id": 314, "assignee": {"id": 1109}}, "organization": {"id": 137}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 396, "owner": {"id": 639}, "assignee": {"id": 98}, "project": {"id": 363, "owner": {"id": 733}, "assignee": {"id": 862}}, "task": {"id": 357, "owner": {"id": 921}, "assignee": {"id": 1002}}, "job": {"id": 307, "assignee": {"id": 1152}}, "organization": {"id": 114}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 337, "owner": {"id": 608}, "assignee": {"id": 78}, "project": {"id": 302, "owner": {"id": 740}, "assignee": {"id": 897}}, "task": {"id": 328, "owner": {"id": 944}, "assignee": {"id": 1084}}, "job": {"id": 374, "assignee": {"id": 1111}}, "organization": {"id": 1214}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 365, "owner": {"id": 676}, "assignee": {"id": 0}, "project": {"id": 325, "owner": {"id": 797}, "assignee": {"id": 859}}, "task": {"id": 319, "owner": {"id": 941}, "assignee": {"id": 1079}}, "job": {"id": 344, "assignee": {"id": 1185}}, "organization": {"id": 1212}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 605}, "assignee": {"id": 7}, "project": {"id": 386, "owner": {"id": 756}, "assignee": {"id": 815}}, "task": {"id": 336, "owner": {"id": 941}, "assignee": {"id": 1017}}, "job": {"id": 350, "assignee": {"id": 1191}}, "organization": {"id": 136}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 377, "owner": {"id": 640}, "assignee": {"id": 63}, "project": {"id": 300, "owner": {"id": 729}, "assignee": {"id": 891}}, "task": {"id": 374, "owner": {"id": 940}, "assignee": {"id": 1069}}, "job": {"id": 316, "assignee": {"id": 1169}}, "organization": {"id": 184}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 661}, "assignee": {"id": 28}, "project": {"id": 358, "owner": {"id": 785}, "assignee": {"id": 821}}, "task": {"id": 311, "owner": {"id": 979}, "assignee": {"id": 1066}}, "job": {"id": 375, "assignee": {"id": 1151}}, "organization": {"id": 1263}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 626}, "assignee": {"id": 73}, "project": {"id": 398, "owner": {"id": 744}, "assignee": {"id": 875}}, "task": {"id": 384, "owner": {"id": 982}, "assignee": {"id": 1091}}, "job": {"id": 360, "assignee": {"id": 1160}}, "organization": {"id": 1297}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 302, "owner": {"id": 631}, "assignee": {"id": 17}, "project": {"id": 345, "owner": {"id": 720}, "assignee": {"id": 874}}, "task": {"id": 314, "owner": {"id": 993}, "assignee": {"id": 1079}}, "job": {"id": 387, "assignee": {"id": 1125}}, "organization": {"id": 190}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 327, "owner": {"id": 697}, "assignee": {"id": 40}, "project": {"id": 317, "owner": {"id": 727}, "assignee": {"id": 834}}, "task": {"id": 316, "owner": {"id": 902}, "assignee": {"id": 1072}}, "job": {"id": 357, "assignee": {"id": 1187}}, "organization": {"id": 156}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 678}, "assignee": {"id": 47}, "project": {"id": 384, "owner": {"id": 792}, "assignee": {"id": 874}}, "task": {"id": 341, "owner": {"id": 942}, "assignee": {"id": 1044}}, "job": {"id": 341, "assignee": {"id": 1165}}, "organization": {"id": 1298}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 606}, "assignee": {"id": 48}, "project": {"id": 367, "owner": {"id": 792}, "assignee": {"id": 829}}, "task": {"id": 308, "owner": {"id": 938}, "assignee": {"id": 1065}}, "job": {"id": 311, "assignee": {"id": 1194}}, "organization": {"id": 1248}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "owner": {"id": 621}, "assignee": {"id": 17}, "project": {"id": 319, "owner": {"id": 768}, "assignee": {"id": 856}}, "task": {"id": 379, "owner": {"id": 926}, "assignee": {"id": 1018}}, "job": {"id": 339, "assignee": {"id": 1118}}, "organization": {"id": 183}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "owner": {"id": 632}, "assignee": {"id": 43}, "project": {"id": 301, "owner": {"id": 770}, "assignee": {"id": 852}}, "task": {"id": 378, "owner": {"id": 968}, "assignee": {"id": 1073}}, "job": {"id": 392, "assignee": {"id": 1130}}, "organization": {"id": 148}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 614}, "assignee": {"id": 52}, "project": {"id": 327, "owner": {"id": 727}, "assignee": {"id": 873}}, "task": {"id": 360, "owner": {"id": 993}, "assignee": {"id": 1035}}, "job": {"id": 373, "assignee": {"id": 1103}}, "organization": {"id": 1221}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "owner": {"id": 689}, "assignee": {"id": 23}, "project": {"id": 382, "owner": {"id": 794}, "assignee": {"id": 825}}, "task": {"id": 312, "owner": {"id": 938}, "assignee": {"id": 1041}}, "job": {"id": 377, "assignee": {"id": 1165}}, "organization": {"id": 1253}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 343, "owner": {"id": 682}, "assignee": {"id": 76}, "project": {"id": 395, "owner": {"id": 715}, "assignee": {"id": 840}}, "task": {"id": 354, "owner": {"id": 936}, "assignee": {"id": 1057}}, "job": {"id": 398, "assignee": {"id": 1103}}, "organization": {"id": 156}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "owner": {"id": 607}, "assignee": {"id": 32}, "project": {"id": 317, "owner": {"id": 777}, "assignee": {"id": 890}}, "task": {"id": 324, "owner": {"id": 980}, "assignee": {"id": 1036}}, "job": {"id": 319, "assignee": {"id": 1135}}, "organization": {"id": 119}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "owner": {"id": 610}, "assignee": {"id": 14}, "project": {"id": 379, "owner": {"id": 729}, "assignee": {"id": 851}}, "task": {"id": 326, "owner": {"id": 998}, "assignee": {"id": 1073}}, "job": {"id": 382, "assignee": {"id": 1131}}, "organization": {"id": 1232}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 601}, "assignee": {"id": 22}, "project": {"id": 357, "owner": {"id": 708}, "assignee": {"id": 826}}, "task": {"id": 386, "owner": {"id": 955}, "assignee": {"id": 1087}}, "job": {"id": 399, "assignee": {"id": 1173}}, "organization": {"id": 1265}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 303, "owner": {"id": 601}, "assignee": {"id": 67}, "project": {"id": 361, "owner": {"id": 740}, "assignee": {"id": 889}}, "task": {"id": 359, "owner": {"id": 972}, "assignee": {"id": 1014}}, "job": {"id": 305, "assignee": {"id": 1162}}, "organization": {"id": 172}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 363, "owner": {"id": 657}, "assignee": {"id": 7}, "project": {"id": 354, "owner": {"id": 713}, "assignee": {"id": 845}}, "task": {"id": 394, "owner": {"id": 900}, "assignee": {"id": 1092}}, "job": {"id": 393, "assignee": {"id": 1189}}, "organization": {"id": 149}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 323, "owner": {"id": 640}, "assignee": {"id": 51}, "project": {"id": 399, "owner": {"id": 716}, "assignee": {"id": 857}}, "task": {"id": 357, "owner": {"id": 915}, "assignee": {"id": 1080}}, "job": {"id": 328, "assignee": {"id": 1192}}, "organization": {"id": 1256}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 675}, "assignee": {"id": 98}, "project": {"id": 398, "owner": {"id": 743}, "assignee": {"id": 836}}, "task": {"id": 306, "owner": {"id": 934}, "assignee": {"id": 1019}}, "job": {"id": 349, "assignee": {"id": 1154}}, "organization": {"id": 1202}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 399, "owner": {"id": 651}, "assignee": {"id": 65}, "project": {"id": 343, "owner": {"id": 794}, "assignee": {"id": 864}}, "task": {"id": 334, "owner": {"id": 919}, "assignee": {"id": 1068}}, "job": {"id": 374, "assignee": {"id": 1130}}, "organization": {"id": 142}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 614}, "assignee": {"id": 80}, "project": {"id": 375, "owner": {"id": 716}, "assignee": {"id": 855}}, "task": {"id": 383, "owner": {"id": 962}, "assignee": {"id": 1006}}, "job": {"id": 312, "assignee": {"id": 1186}}, "organization": {"id": 135}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 611}, "assignee": {"id": 92}, "project": {"id": 363, "owner": {"id": 701}, "assignee": {"id": 831}}, "task": {"id": 389, "owner": {"id": 918}, "assignee": {"id": 1068}}, "job": {"id": 335, "assignee": {"id": 1129}}, "organization": {"id": 1229}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 624}, "assignee": {"id": 93}, "project": {"id": 398, "owner": {"id": 723}, "assignee": {"id": 872}}, "task": {"id": 398, "owner": {"id": 956}, "assignee": {"id": 1039}}, "job": {"id": 344, "assignee": {"id": 1102}}, "organization": {"id": 1236}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 399, "owner": {"id": 698}, "assignee": {"id": 76}, "project": {"id": 396, "owner": {"id": 768}, "assignee": {"id": 800}}, "task": {"id": 305, "owner": {"id": 942}, "assignee": {"id": 1069}}, "job": {"id": 350, "assignee": {"id": 1173}}, "organization": {"id": 187}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 304, "owner": {"id": 699}, "assignee": {"id": 29}, "project": {"id": 380, "owner": {"id": 772}, "assignee": {"id": 827}}, "task": {"id": 365, "owner": {"id": 999}, "assignee": {"id": 1095}}, "job": {"id": 312, "assignee": {"id": 1116}}, "organization": {"id": 158}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 324, "owner": {"id": 647}, "assignee": {"id": 73}, "project": {"id": 302, "owner": {"id": 763}, "assignee": {"id": 825}}, "task": {"id": 362, "owner": {"id": 979}, "assignee": {"id": 1019}}, "job": {"id": 328, "assignee": {"id": 1121}}, "organization": {"id": 1227}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 651}, "assignee": {"id": 89}, "project": {"id": 329, "owner": {"id": 717}, "assignee": {"id": 864}}, "task": {"id": 354, "owner": {"id": 959}, "assignee": {"id": 1031}}, "job": {"id": 369, "assignee": {"id": 1126}}, "organization": {"id": 1200}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 699}, "assignee": {"id": 7}, "project": {"id": 352, "owner": {"id": 753}, "assignee": {"id": 845}}, "task": {"id": 361, "owner": {"id": 916}, "assignee": {"id": 1097}}, "job": {"id": 311, "assignee": {"id": 1126}}, "organization": {"id": 104}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 607}, "assignee": {"id": 92}, "project": {"id": 323, "owner": {"id": 705}, "assignee": {"id": 824}}, "task": {"id": 394, "owner": {"id": 916}, "assignee": {"id": 1060}}, "job": {"id": 361, "assignee": {"id": 1125}}, "organization": {"id": 188}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 693}, "assignee": {"id": 42}, "project": {"id": 326, "owner": {"id": 729}, "assignee": {"id": 877}}, "task": {"id": 341, "owner": {"id": 964}, "assignee": {"id": 1083}}, "job": {"id": 376, "assignee": {"id": 1144}}, "organization": {"id": 1256}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "owner": {"id": 680}, "assignee": {"id": 51}, "project": {"id": 331, "owner": {"id": 772}, "assignee": {"id": 866}}, "task": {"id": 372, "owner": {"id": 940}, "assignee": {"id": 1034}}, "job": {"id": 310, "assignee": {"id": 1112}}, "organization": {"id": 1292}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "owner": {"id": 663}, "assignee": {"id": 96}, "project": {"id": 301, "owner": {"id": 797}, "assignee": {"id": 864}}, "task": {"id": 357, "owner": {"id": 947}, "assignee": {"id": 1094}}, "job": {"id": 338, "assignee": {"id": 1138}}, "organization": {"id": 114}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 627}, "assignee": {"id": 92}, "project": {"id": 331, "owner": {"id": 733}, "assignee": {"id": 866}}, "task": {"id": 323, "owner": {"id": 973}, "assignee": {"id": 1057}}, "job": {"id": 347, "assignee": {"id": 1141}}, "organization": {"id": 175}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "owner": {"id": 680}, "assignee": {"id": 93}, "project": {"id": 361, "owner": {"id": 789}, "assignee": {"id": 859}}, "task": {"id": 306, "owner": {"id": 952}, "assignee": {"id": 1027}}, "job": {"id": 361, "assignee": {"id": 1127}}, "organization": {"id": 1226}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "owner": {"id": 642}, "assignee": {"id": 66}, "project": {"id": 326, "owner": {"id": 756}, "assignee": {"id": 860}}, "task": {"id": 345, "owner": {"id": 997}, "assignee": {"id": 1045}}, "job": {"id": 302, "assignee": {"id": 1105}}, "organization": {"id": 1205}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 389, "owner": {"id": 696}, "assignee": {"id": 39}, "project": {"id": 395, "owner": {"id": 766}, "assignee": {"id": 876}}, "task": {"id": 384, "owner": {"id": 952}, "assignee": {"id": 1048}}, "job": {"id": 388, "assignee": {"id": 1125}}, "organization": {"id": 149}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 604}, "assignee": {"id": 30}, "project": {"id": 306, "owner": {"id": 712}, "assignee": {"id": 882}}, "task": {"id": 384, "owner": {"id": 951}, "assignee": {"id": 1048}}, "job": {"id": 385, "assignee": {"id": 1168}}, "organization": {"id": 151}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"id": 324, "owner": {"id": 668}, "assignee": {"id": 34}, "project": {"id": 356, "owner": {"id": 727}, "assignee": {"id": 854}}, "task": {"id": 384, "owner": {"id": 979}, "assignee": {"id": 1099}}, "job": {"id": 340, "assignee": {"id": 1160}}, "organization": {"id": 1298}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 312, "owner": {"id": 659}, "assignee": {"id": 92}, "project": {"id": 358, "owner": {"id": 753}, "assignee": {"id": 833}}, "task": {"id": 313, "owner": {"id": 978}, "assignee": {"id": 1078}}, "job": {"id": 381, "assignee": {"id": 1175}}, "organization": {"id": 1285}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 388, "owner": {"id": 610}, "assignee": {"id": 36}, "project": {"id": 374, "owner": {"id": 786}, "assignee": {"id": 891}}, "task": {"id": 381, "owner": {"id": 913}, "assignee": {"id": 1055}}, "job": {"id": 351, "assignee": {"id": 1157}}, "organization": {"id": 186}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 609}, "assignee": {"id": 25}, "project": {"id": 381, "owner": {"id": 764}, "assignee": {"id": 826}}, "task": {"id": 304, "owner": {"id": 920}, "assignee": {"id": 1072}}, "job": {"id": 323, "assignee": {"id": 1182}}, "organization": {"id": 170}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 309, "owner": {"id": 680}, "assignee": {"id": 8}, "project": {"id": 348, "owner": {"id": 795}, "assignee": {"id": 818}}, "task": {"id": 327, "owner": {"id": 968}, "assignee": {"id": 1010}}, "job": {"id": 356, "assignee": {"id": 1142}}, "organization": {"id": 1200}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 300, "owner": {"id": 620}, "assignee": {"id": 98}, "project": {"id": 364, "owner": {"id": 701}, "assignee": {"id": 851}}, "task": {"id": 317, "owner": {"id": 962}, "assignee": {"id": 1004}}, "job": {"id": 372, "assignee": {"id": 1181}}, "organization": {"id": 1228}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 323, "owner": {"id": 603}, "assignee": {"id": 30}, "project": {"id": 369, "owner": {"id": 734}, "assignee": {"id": 842}}, "task": {"id": 363, "owner": {"id": 944}, "assignee": {"id": 1059}}, "job": {"id": 373, "assignee": {"id": 1132}}, "organization": {"id": 190}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 624}, "assignee": {"id": 32}, "project": {"id": 312, "owner": {"id": 725}, "assignee": {"id": 843}}, "task": {"id": 316, "owner": {"id": 917}, "assignee": {"id": 1011}}, "job": {"id": 388, "assignee": {"id": 1129}}, "organization": {"id": 196}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 319, "owner": {"id": 653}, "assignee": {"id": 94}, "project": {"id": 328, "owner": {"id": 750}, "assignee": {"id": 851}}, "task": {"id": 367, "owner": {"id": 977}, "assignee": {"id": 1085}}, "job": {"id": 396, "assignee": {"id": 1123}}, "organization": {"id": 1282}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 605}, "assignee": {"id": 11}, "project": {"id": 344, "owner": {"id": 790}, "assignee": {"id": 852}}, "task": {"id": 383, "owner": {"id": 964}, "assignee": {"id": 1092}}, "job": {"id": 315, "assignee": {"id": 1109}}, "organization": {"id": 1231}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 645}, "assignee": {"id": 8}, "project": {"id": 301, "owner": {"id": 763}, "assignee": {"id": 830}}, "task": {"id": 324, "owner": {"id": 915}, "assignee": {"id": 1088}}, "job": {"id": 343, "assignee": {"id": 1128}}, "organization": {"id": 196}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "owner": {"id": 641}, "assignee": {"id": 17}, "project": {"id": 350, "owner": {"id": 764}, "assignee": {"id": 869}}, "task": {"id": 384, "owner": {"id": 904}, "assignee": {"id": 1099}}, "job": {"id": 334, "assignee": {"id": 1115}}, "organization": {"id": 121}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 637}, "assignee": {"id": 66}, "project": {"id": 334, "owner": {"id": 773}, "assignee": {"id": 814}}, "task": {"id": 377, "owner": {"id": 960}, "assignee": {"id": 1080}}, "job": {"id": 392, "assignee": {"id": 1138}}, "organization": {"id": 1213}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 667}, "assignee": {"id": 79}, "project": {"id": 317, "owner": {"id": 781}, "assignee": {"id": 863}}, "task": {"id": 396, "owner": {"id": 972}, "assignee": {"id": 1069}}, "job": {"id": 340, "assignee": {"id": 1168}}, "organization": {"id": 1258}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "owner": {"id": 661}, "assignee": {"id": 19}, "project": {"id": 349, "owner": {"id": 773}, "assignee": {"id": 896}}, "task": {"id": 345, "owner": {"id": 976}, "assignee": {"id": 1077}}, "job": {"id": 309, "assignee": {"id": 1174}}, "organization": {"id": 188}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 667}, "assignee": {"id": 87}, "project": {"id": 312, "owner": {"id": 782}, "assignee": {"id": 811}}, "task": {"id": 343, "owner": {"id": 992}, "assignee": {"id": 1051}}, "job": {"id": 368, "assignee": {"id": 1139}}, "organization": {"id": 101}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 340, "owner": {"id": 657}, "assignee": {"id": 96}, "project": {"id": 309, "owner": {"id": 705}, "assignee": {"id": 870}}, "task": {"id": 351, "owner": {"id": 928}, "assignee": {"id": 1071}}, "job": {"id": 374, "assignee": {"id": 1190}}, "organization": {"id": 1251}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 622}, "assignee": {"id": 17}, "project": {"id": 372, "owner": {"id": 752}, "assignee": {"id": 863}}, "task": {"id": 392, "owner": {"id": 996}, "assignee": {"id": 1042}}, "job": {"id": 336, "assignee": {"id": 1108}}, "organization": {"id": 1283}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 24, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 377, "owner": {"id": 633}, "assignee": {"id": 24}, "project": {"id": 351, "owner": {"id": 716}, "assignee": {"id": 853}}, "task": {"id": 398, "owner": {"id": 952}, "assignee": {"id": 1015}}, "job": {"id": 386, "assignee": {"id": 1155}}, "organization": {"id": 139}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 611}, "assignee": {"id": 17}, "project": {"id": 330, "owner": {"id": 702}, "assignee": {"id": 859}}, "task": {"id": 382, "owner": {"id": 915}, "assignee": {"id": 1034}}, "job": {"id": 379, "assignee": {"id": 1150}}, "organization": {"id": 105}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 303, "owner": {"id": 601}, "assignee": {"id": 16}, "project": {"id": 356, "owner": {"id": 756}, "assignee": {"id": 810}}, "task": {"id": 375, "owner": {"id": 906}, "assignee": {"id": 1022}}, "job": {"id": 350, "assignee": {"id": 1140}}, "organization": {"id": 1230}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 311, "owner": {"id": 660}, "assignee": {"id": 44}, "project": {"id": 346, "owner": {"id": 714}, "assignee": {"id": 818}}, "task": {"id": 352, "owner": {"id": 986}, "assignee": {"id": 1064}}, "job": {"id": 329, "assignee": {"id": 1111}}, "organization": {"id": 1232}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 378, "owner": {"id": 688}, "assignee": {"id": 2}, "project": {"id": 307, "owner": {"id": 735}, "assignee": {"id": 889}}, "task": {"id": 317, "owner": {"id": 998}, "assignee": {"id": 1089}}, "job": {"id": 391, "assignee": {"id": 1115}}, "organization": {"id": 138}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 662}, "assignee": {"id": 43}, "project": {"id": 379, "owner": {"id": 754}, "assignee": {"id": 803}}, "task": {"id": 391, "owner": {"id": 983}, "assignee": {"id": 1055}}, "job": {"id": 338, "assignee": {"id": 1170}}, "organization": {"id": 132}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"id": 303, "owner": {"id": 646}, "assignee": {"id": 37}, "project": {"id": 390, "owner": {"id": 711}, "assignee": {"id": 859}}, "task": {"id": 357, "owner": {"id": 982}, "assignee": {"id": 1074}}, "job": {"id": 339, "assignee": {"id": 1126}}, "organization": {"id": 1234}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 356, "owner": {"id": 678}, "assignee": {"id": 51}, "project": {"id": 333, "owner": {"id": 721}, "assignee": {"id": 805}}, "task": {"id": 302, "owner": {"id": 900}, "assignee": {"id": 1080}}, "job": {"id": 303, "assignee": {"id": 1115}}, "organization": {"id": 1283}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 643}, "assignee": {"id": 70}, "project": {"id": 355, "owner": {"id": 746}, "assignee": {"id": 884}}, "task": {"id": 357, "owner": {"id": 903}, "assignee": {"id": 1041}}, "job": {"id": 380, "assignee": {"id": 1140}}, "organization": {"id": 196}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 357, "owner": {"id": 668}, "assignee": {"id": 91}, "project": {"id": 319, "owner": {"id": 726}, "assignee": {"id": 828}}, "task": {"id": 318, "owner": {"id": 907}, "assignee": {"id": 1032}}, "job": {"id": 397, "assignee": {"id": 1144}}, "organization": {"id": 166}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 379, "owner": {"id": 627}, "assignee": {"id": 85}, "project": {"id": 339, "owner": {"id": 716}, "assignee": {"id": 818}}, "task": {"id": 381, "owner": {"id": 982}, "assignee": {"id": 1060}}, "job": {"id": 385, "assignee": {"id": 1138}}, "organization": {"id": 1269}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 319, "owner": {"id": 668}, "assignee": {"id": 75}, "project": {"id": 365, "owner": {"id": 777}, "assignee": {"id": 886}}, "task": {"id": 340, "owner": {"id": 949}, "assignee": {"id": 1076}}, "job": {"id": 328, "assignee": {"id": 1162}}, "organization": {"id": 1281}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "owner": {"id": 615}, "assignee": {"id": 96}, "project": {"id": 372, "owner": {"id": 701}, "assignee": {"id": 888}}, "task": {"id": 398, "owner": {"id": 998}, "assignee": {"id": 1013}}, "job": {"id": 349, "assignee": {"id": 1114}}, "organization": {"id": 138}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "owner": {"id": 640}, "assignee": {"id": 91}, "project": {"id": 357, "owner": {"id": 762}, "assignee": {"id": 819}}, "task": {"id": 347, "owner": {"id": 978}, "assignee": {"id": 1042}}, "job": {"id": 319, "assignee": {"id": 1128}}, "organization": {"id": 174}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "owner": {"id": 669}, "assignee": {"id": 44}, "project": {"id": 328, "owner": {"id": 799}, "assignee": {"id": 821}}, "task": {"id": 316, "owner": {"id": 935}, "assignee": {"id": 1090}}, "job": {"id": 324, "assignee": {"id": 1180}}, "organization": {"id": 1271}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "owner": {"id": 650}, "assignee": {"id": 42}, "project": {"id": 306, "owner": {"id": 711}, "assignee": {"id": 880}}, "task": {"id": 334, "owner": {"id": 923}, "assignee": {"id": 1033}}, "job": {"id": 384, "assignee": {"id": 1158}}, "organization": {"id": 1294}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "owner": {"id": 612}, "assignee": {"id": 6}, "project": {"id": 312, "owner": {"id": 789}, "assignee": {"id": 867}}, "task": {"id": 359, "owner": {"id": 976}, "assignee": {"id": 1055}}, "job": {"id": 375, "assignee": {"id": 1112}}, "organization": {"id": 165}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 648}, "assignee": {"id": 81}, "project": {"id": 315, "owner": {"id": 719}, "assignee": {"id": 800}}, "task": {"id": 346, "owner": {"id": 997}, "assignee": {"id": 1045}}, "job": {"id": 311, "assignee": {"id": 1126}}, "organization": {"id": 143}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "owner": {"id": 639}, "assignee": {"id": 58}, "project": {"id": 330, "owner": {"id": 759}, "assignee": {"id": 860}}, "task": {"id": 365, "owner": {"id": 996}, "assignee": {"id": 1028}}, "job": {"id": 338, "assignee": {"id": 1192}}, "organization": {"id": 1241}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "owner": {"id": 605}, "assignee": {"id": 12}, "project": {"id": 316, "owner": {"id": 790}, "assignee": {"id": 846}}, "task": {"id": 378, "owner": {"id": 912}, "assignee": {"id": 1079}}, "job": {"id": 396, "assignee": {"id": 1128}}, "organization": {"id": 1241}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 367, "owner": {"id": 641}, "assignee": {"id": 5}, "project": {"id": 340, "owner": {"id": 796}, "assignee": {"id": 810}}, "task": {"id": 368, "owner": {"id": 953}, "assignee": {"id": 1076}}, "job": {"id": 327, "assignee": {"id": 1142}}, "organization": {"id": 180}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 320, "owner": {"id": 633}, "assignee": {"id": 60}, "project": {"id": 369, "owner": {"id": 758}, "assignee": {"id": 819}}, "task": {"id": 330, "owner": {"id": 921}, "assignee": {"id": 1031}}, "job": {"id": 380, "assignee": {"id": 1115}}, "organization": {"id": 150}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 346, "owner": {"id": 610}, "assignee": {"id": 13}, "project": {"id": 364, "owner": {"id": 772}, "assignee": {"id": 845}}, "task": {"id": 353, "owner": {"id": 904}, "assignee": {"id": 1046}}, "job": {"id": 308, "assignee": {"id": 1102}}, "organization": {"id": 1296}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 674}, "assignee": {"id": 49}, "project": {"id": 346, "owner": {"id": 704}, "assignee": {"id": 865}}, "task": {"id": 387, "owner": {"id": 923}, "assignee": {"id": 1045}}, "job": {"id": 373, "assignee": {"id": 1185}}, "organization": {"id": 1211}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 357, "owner": {"id": 655}, "assignee": {"id": 71}, "project": {"id": 361, "owner": {"id": 732}, "assignee": {"id": 822}}, "task": {"id": 311, "owner": {"id": 960}, "assignee": {"id": 1028}}, "job": {"id": 302, "assignee": {"id": 1154}}, "organization": {"id": 139}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 683}, "assignee": {"id": 69}, "project": {"id": 381, "owner": {"id": 776}, "assignee": {"id": 898}}, "task": {"id": 344, "owner": {"id": 968}, "assignee": {"id": 1060}}, "job": {"id": 365, "assignee": {"id": 1141}}, "organization": {"id": 129}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 635}, "assignee": {"id": 94}, "project": {"id": 338, "owner": {"id": 789}, "assignee": {"id": 874}}, "task": {"id": 335, "owner": {"id": 973}, "assignee": {"id": 1013}}, "job": {"id": 392, "assignee": {"id": 1112}}, "organization": {"id": 1262}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 304, "owner": {"id": 667}, "assignee": {"id": 60}, "project": {"id": 360, "owner": {"id": 709}, "assignee": {"id": 821}}, "task": {"id": 398, "owner": {"id": 926}, "assignee": {"id": 1060}}, "job": {"id": 377, "assignee": {"id": 1192}}, "organization": {"id": 1273}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 369, "owner": {"id": 694}, "assignee": {"id": 581}, "project": {"id": 335, "owner": {"id": 793}, "assignee": {"id": 887}}, "task": {"id": 386, "owner": {"id": 941}, "assignee": {"id": 1082}}, "job": {"id": 320, "assignee": {"id": 1126}}, "organization": {"id": 170}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 362, "owner": {"id": 634}, "assignee": {"id": 562}, "project": {"id": 306, "owner": {"id": 701}, "assignee": {"id": 818}}, "task": {"id": 327, "owner": {"id": 952}, "assignee": {"id": 1053}}, "job": {"id": 350, "assignee": {"id": 1142}}, "organization": {"id": 161}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 684}, "assignee": {"id": 560}, "project": {"id": 399, "owner": {"id": 724}, "assignee": {"id": 888}}, "task": {"id": 359, "owner": {"id": 933}, "assignee": {"id": 1087}}, "job": {"id": 333, "assignee": {"id": 1105}}, "organization": {"id": 1237}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 316, "owner": {"id": 635}, "assignee": {"id": 596}, "project": {"id": 354, "owner": {"id": 795}, "assignee": {"id": 831}}, "task": {"id": 337, "owner": {"id": 961}, "assignee": {"id": 1005}}, "job": {"id": 379, "assignee": {"id": 1104}}, "organization": {"id": 1254}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 617}, "assignee": {"id": 598}, "project": {"id": 393, "owner": {"id": 717}, "assignee": {"id": 838}}, "task": {"id": 370, "owner": {"id": 959}, "assignee": {"id": 1027}}, "job": {"id": 365, "assignee": {"id": 1184}}, "organization": {"id": 184}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "owner": {"id": 637}, "assignee": {"id": 501}, "project": {"id": 356, "owner": {"id": 738}, "assignee": {"id": 896}}, "task": {"id": 335, "owner": {"id": 960}, "assignee": {"id": 1076}}, "job": {"id": 367, "assignee": {"id": 1169}}, "organization": {"id": 140}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "owner": {"id": 627}, "assignee": {"id": 507}, "project": {"id": 324, "owner": {"id": 799}, "assignee": {"id": 856}}, "task": {"id": 357, "owner": {"id": 934}, "assignee": {"id": 1064}}, "job": {"id": 327, "assignee": {"id": 1160}}, "organization": {"id": 1216}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 604}, "assignee": {"id": 506}, "project": {"id": 343, "owner": {"id": 794}, "assignee": {"id": 868}}, "task": {"id": 323, "owner": {"id": 990}, "assignee": {"id": 1043}}, "job": {"id": 372, "assignee": {"id": 1146}}, "organization": {"id": 1296}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 369, "owner": {"id": 685}, "assignee": {"id": 526}, "project": {"id": 341, "owner": {"id": 771}, "assignee": {"id": 855}}, "task": {"id": 387, "owner": {"id": 934}, "assignee": {"id": 1026}}, "job": {"id": 335, "assignee": {"id": 1136}}, "organization": {"id": 111}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 657}, "assignee": {"id": 543}, "project": {"id": 307, "owner": {"id": 768}, "assignee": {"id": 818}}, "task": {"id": 353, "owner": {"id": 919}, "assignee": {"id": 1097}}, "job": {"id": 326, "assignee": {"id": 1126}}, "organization": {"id": 167}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "owner": {"id": 600}, "assignee": {"id": 507}, "project": {"id": 332, "owner": {"id": 718}, "assignee": {"id": 888}}, "task": {"id": 321, "owner": {"id": 932}, "assignee": {"id": 1005}}, "job": {"id": 358, "assignee": {"id": 1120}}, "organization": {"id": 1212}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 673}, "assignee": {"id": 526}, "project": {"id": 353, "owner": {"id": 738}, "assignee": {"id": 832}}, "task": {"id": 352, "owner": {"id": 975}, "assignee": {"id": 1040}}, "job": {"id": 315, "assignee": {"id": 1101}}, "organization": {"id": 1265}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 342, "owner": {"id": 600}, "assignee": {"id": 577}, "project": {"id": 347, "owner": {"id": 747}, "assignee": {"id": 843}}, "task": {"id": 334, "owner": {"id": 917}, "assignee": {"id": 1029}}, "job": {"id": 316, "assignee": {"id": 1153}}, "organization": {"id": 104}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 628}, "assignee": {"id": 521}, "project": {"id": 332, "owner": {"id": 732}, "assignee": {"id": 808}}, "task": {"id": 365, "owner": {"id": 913}, "assignee": {"id": 1013}}, "job": {"id": 367, "assignee": {"id": 1174}}, "organization": {"id": 134}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 329, "owner": {"id": 659}, "assignee": {"id": 554}, "project": {"id": 385, "owner": {"id": 778}, "assignee": {"id": 880}}, "task": {"id": 363, "owner": {"id": 996}, "assignee": {"id": 1004}}, "job": {"id": 362, "assignee": {"id": 1178}}, "organization": {"id": 1298}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 353, "owner": {"id": 617}, "assignee": {"id": 585}, "project": {"id": 312, "owner": {"id": 734}, "assignee": {"id": 863}}, "task": {"id": 377, "owner": {"id": 939}, "assignee": {"id": 1085}}, "job": {"id": 390, "assignee": {"id": 1131}}, "organization": {"id": 1201}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 669}, "assignee": {"id": 532}, "project": {"id": 360, "owner": {"id": 721}, "assignee": {"id": 804}}, "task": {"id": 324, "owner": {"id": 995}, "assignee": {"id": 1099}}, "job": {"id": 321, "assignee": {"id": 1171}}, "organization": {"id": 140}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 646}, "assignee": {"id": 562}, "project": {"id": 378, "owner": {"id": 756}, "assignee": {"id": 896}}, "task": {"id": 336, "owner": {"id": 984}, "assignee": {"id": 1023}}, "job": {"id": 309, "assignee": {"id": 1102}}, "organization": {"id": 150}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 315, "owner": {"id": 631}, "assignee": {"id": 505}, "project": {"id": 342, "owner": {"id": 703}, "assignee": {"id": 878}}, "task": {"id": 371, "owner": {"id": 901}, "assignee": {"id": 1068}}, "job": {"id": 371, "assignee": {"id": 1128}}, "organization": {"id": 1281}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 329, "owner": {"id": 638}, "assignee": {"id": 584}, "project": {"id": 368, "owner": {"id": 726}, "assignee": {"id": 862}}, "task": {"id": 360, "owner": {"id": 977}, "assignee": {"id": 1042}}, "job": {"id": 395, "assignee": {"id": 1184}}, "organization": {"id": 1231}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 375, "owner": {"id": 691}, "assignee": {"id": 520}, "project": {"id": 382, "owner": {"id": 728}, "assignee": {"id": 871}}, "task": {"id": 342, "owner": {"id": 969}, "assignee": {"id": 1000}}, "job": {"id": 377, "assignee": {"id": 1179}}, "organization": {"id": 106}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 382, "owner": {"id": 624}, "assignee": {"id": 551}, "project": {"id": 309, "owner": {"id": 772}, "assignee": {"id": 881}}, "task": {"id": 313, "owner": {"id": 937}, "assignee": {"id": 1055}}, "job": {"id": 307, "assignee": {"id": 1175}}, "organization": {"id": 150}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 343, "owner": {"id": 619}, "assignee": {"id": 500}, "project": {"id": 326, "owner": {"id": 721}, "assignee": {"id": 878}}, "task": {"id": 369, "owner": {"id": 963}, "assignee": {"id": 1067}}, "job": {"id": 372, "assignee": {"id": 1196}}, "organization": {"id": 1253}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 330, "owner": {"id": 692}, "assignee": {"id": 548}, "project": {"id": 334, "owner": {"id": 718}, "assignee": {"id": 873}}, "task": {"id": 319, "owner": {"id": 946}, "assignee": {"id": 1059}}, "job": {"id": 383, "assignee": {"id": 1165}}, "organization": {"id": 1232}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "owner": {"id": 640}, "assignee": {"id": 505}, "project": {"id": 325, "owner": {"id": 723}, "assignee": {"id": 826}}, "task": {"id": 317, "owner": {"id": 937}, "assignee": {"id": 1040}}, "job": {"id": 373, "assignee": {"id": 1108}}, "organization": {"id": 190}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 372, "owner": {"id": 641}, "assignee": {"id": 519}, "project": {"id": 371, "owner": {"id": 744}, "assignee": {"id": 874}}, "task": {"id": 373, "owner": {"id": 953}, "assignee": {"id": 1085}}, "job": {"id": 322, "assignee": {"id": 1121}}, "organization": {"id": 193}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "owner": {"id": 651}, "assignee": {"id": 516}, "project": {"id": 338, "owner": {"id": 702}, "assignee": {"id": 899}}, "task": {"id": 345, "owner": {"id": 918}, "assignee": {"id": 1064}}, "job": {"id": 335, "assignee": {"id": 1192}}, "organization": {"id": 1225}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "owner": {"id": 626}, "assignee": {"id": 573}, "project": {"id": 337, "owner": {"id": 707}, "assignee": {"id": 818}}, "task": {"id": 313, "owner": {"id": 985}, "assignee": {"id": 1006}}, "job": {"id": 326, "assignee": {"id": 1105}}, "organization": {"id": 1290}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 659}, "assignee": {"id": 575}, "project": {"id": 312, "owner": {"id": 773}, "assignee": {"id": 895}}, "task": {"id": 356, "owner": {"id": 918}, "assignee": {"id": 1070}}, "job": {"id": 368, "assignee": {"id": 1158}}, "organization": {"id": 154}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "owner": {"id": 617}, "assignee": {"id": 567}, "project": {"id": 368, "owner": {"id": 771}, "assignee": {"id": 837}}, "task": {"id": 320, "owner": {"id": 945}, "assignee": {"id": 1030}}, "job": {"id": 336, "assignee": {"id": 1146}}, "organization": {"id": 140}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "owner": {"id": 693}, "assignee": {"id": 509}, "project": {"id": 367, "owner": {"id": 759}, "assignee": {"id": 857}}, "task": {"id": 354, "owner": {"id": 967}, "assignee": {"id": 1045}}, "job": {"id": 377, "assignee": {"id": 1148}}, "organization": {"id": 1250}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "owner": {"id": 609}, "assignee": {"id": 551}, "project": {"id": 389, "owner": {"id": 712}, "assignee": {"id": 884}}, "task": {"id": 361, "owner": {"id": 928}, "assignee": {"id": 1025}}, "job": {"id": 395, "assignee": {"id": 1188}}, "organization": {"id": 1216}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 327, "owner": {"id": 633}, "assignee": {"id": 525}, "project": {"id": 342, "owner": {"id": 763}, "assignee": {"id": 885}}, "task": {"id": 320, "owner": {"id": 967}, "assignee": {"id": 1079}}, "job": {"id": 306, "assignee": {"id": 1114}}, "organization": {"id": 152}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 604}, "assignee": {"id": 573}, "project": {"id": 394, "owner": {"id": 737}, "assignee": {"id": 876}}, "task": {"id": 373, "owner": {"id": 905}, "assignee": {"id": 1006}}, "job": {"id": 383, "assignee": {"id": 1128}}, "organization": {"id": 167}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 310, "owner": {"id": 690}, "assignee": {"id": 542}, "project": {"id": 321, "owner": {"id": 740}, "assignee": {"id": 804}}, "task": {"id": 376, "owner": {"id": 949}, "assignee": {"id": 1047}}, "job": {"id": 391, "assignee": {"id": 1110}}, "organization": {"id": 1277}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 628}, "assignee": {"id": 547}, "project": {"id": 354, "owner": {"id": 733}, "assignee": {"id": 807}}, "task": {"id": 372, "owner": {"id": 946}, "assignee": {"id": 1077}}, "job": {"id": 339, "assignee": {"id": 1172}}, "organization": {"id": 1292}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 376, "owner": {"id": 611}, "assignee": {"id": 552}, "project": {"id": 373, "owner": {"id": 796}, "assignee": {"id": 887}}, "task": {"id": 352, "owner": {"id": 929}, "assignee": {"id": 1043}}, "job": {"id": 351, "assignee": {"id": 1134}}, "organization": {"id": 168}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 606}, "assignee": {"id": 548}, "project": {"id": 389, "owner": {"id": 734}, "assignee": {"id": 841}}, "task": {"id": 357, "owner": {"id": 926}, "assignee": {"id": 1063}}, "job": {"id": 308, "assignee": {"id": 1151}}, "organization": {"id": 185}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 636}, "assignee": {"id": 587}, "project": {"id": 316, "owner": {"id": 734}, "assignee": {"id": 856}}, "task": {"id": 300, "owner": {"id": 970}, "assignee": {"id": 1074}}, "job": {"id": 366, "assignee": {"id": 1114}}, "organization": {"id": 1228}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 341, "owner": {"id": 664}, "assignee": {"id": 509}, "project": {"id": 388, "owner": {"id": 725}, "assignee": {"id": 886}}, "task": {"id": 337, "owner": {"id": 971}, "assignee": {"id": 1084}}, "job": {"id": 326, "assignee": {"id": 1145}}, "organization": {"id": 1206}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 318, "owner": {"id": 645}, "assignee": {"id": 565}, "project": {"id": 342, "owner": {"id": 783}, "assignee": {"id": 829}}, "task": {"id": 343, "owner": {"id": 937}, "assignee": {"id": 1059}}, "job": {"id": 374, "assignee": {"id": 1163}}, "organization": {"id": 154}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 381, "owner": {"id": 652}, "assignee": {"id": 558}, "project": {"id": 320, "owner": {"id": 708}, "assignee": {"id": 857}}, "task": {"id": 345, "owner": {"id": 983}, "assignee": {"id": 1035}}, "job": {"id": 386, "assignee": {"id": 1147}}, "organization": {"id": 168}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 377, "owner": {"id": 632}, "assignee": {"id": 596}, "project": {"id": 320, "owner": {"id": 704}, "assignee": {"id": 877}}, "task": {"id": 337, "owner": {"id": 995}, "assignee": {"id": 1066}}, "job": {"id": 386, "assignee": {"id": 1183}}, "organization": {"id": 1273}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 359, "owner": {"id": 673}, "assignee": {"id": 551}, "project": {"id": 337, "owner": {"id": 788}, "assignee": {"id": 880}}, "task": {"id": 339, "owner": {"id": 980}, "assignee": {"id": 1018}}, "job": {"id": 348, "assignee": {"id": 1119}}, "organization": {"id": 1223}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 629}, "assignee": {"id": 531}, "project": {"id": 311, "owner": {"id": 773}, "assignee": {"id": 855}}, "task": {"id": 301, "owner": {"id": 968}, "assignee": {"id": 1086}}, "job": {"id": 386, "assignee": {"id": 1130}}, "organization": {"id": 196}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 605}, "assignee": {"id": 542}, "project": {"id": 302, "owner": {"id": 753}, "assignee": {"id": 869}}, "task": {"id": 358, "owner": {"id": 929}, "assignee": {"id": 1019}}, "job": {"id": 337, "assignee": {"id": 1195}}, "organization": {"id": 119}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "owner": {"id": 611}, "assignee": {"id": 578}, "project": {"id": 327, "owner": {"id": 720}, "assignee": {"id": 867}}, "task": {"id": 354, "owner": {"id": 943}, "assignee": {"id": 1043}}, "job": {"id": 371, "assignee": {"id": 1193}}, "organization": {"id": 1253}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "owner": {"id": 699}, "assignee": {"id": 597}, "project": {"id": 374, "owner": {"id": 722}, "assignee": {"id": 848}}, "task": {"id": 379, "owner": {"id": 982}, "assignee": {"id": 1097}}, "job": {"id": 370, "assignee": {"id": 1141}}, "organization": {"id": 1286}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "owner": {"id": 656}, "assignee": {"id": 524}, "project": {"id": 349, "owner": {"id": 736}, "assignee": {"id": 883}}, "task": {"id": 376, "owner": {"id": 909}, "assignee": {"id": 1083}}, "job": {"id": 378, "assignee": {"id": 1190}}, "organization": {"id": 177}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 340, "owner": {"id": 622}, "assignee": {"id": 521}, "project": {"id": 314, "owner": {"id": 727}, "assignee": {"id": 835}}, "task": {"id": 331, "owner": {"id": 979}, "assignee": {"id": 1034}}, "job": {"id": 302, "assignee": {"id": 1187}}, "organization": {"id": 125}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "owner": {"id": 640}, "assignee": {"id": 578}, "project": {"id": 390, "owner": {"id": 743}, "assignee": {"id": 841}}, "task": {"id": 321, "owner": {"id": 949}, "assignee": {"id": 1066}}, "job": {"id": 313, "assignee": {"id": 1179}}, "organization": {"id": 1247}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "owner": {"id": 651}, "assignee": {"id": 582}, "project": {"id": 390, "owner": {"id": 775}, "assignee": {"id": 857}}, "task": {"id": 301, "owner": {"id": 954}, "assignee": {"id": 1055}}, "job": {"id": 330, "assignee": {"id": 1128}}, "organization": {"id": 1202}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 333, "owner": {"id": 617}, "assignee": {"id": 512}, "project": {"id": 395, "owner": {"id": 785}, "assignee": {"id": 882}}, "task": {"id": 389, "owner": {"id": 933}, "assignee": {"id": 1069}}, "job": {"id": 314, "assignee": {"id": 1128}}, "organization": {"id": 184}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 659}, "assignee": {"id": 517}, "project": {"id": 367, "owner": {"id": 719}, "assignee": {"id": 800}}, "task": {"id": 347, "owner": {"id": 945}, "assignee": {"id": 1093}}, "job": {"id": 301, "assignee": {"id": 1185}}, "organization": {"id": 198}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 312, "owner": {"id": 653}, "assignee": {"id": 549}, "project": {"id": 308, "owner": {"id": 788}, "assignee": {"id": 876}}, "task": {"id": 379, "owner": {"id": 922}, "assignee": {"id": 1080}}, "job": {"id": 342, "assignee": {"id": 1193}}, "organization": {"id": 1246}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 355, "owner": {"id": 674}, "assignee": {"id": 516}, "project": {"id": 396, "owner": {"id": 734}, "assignee": {"id": 829}}, "task": {"id": 319, "owner": {"id": 930}, "assignee": {"id": 1072}}, "job": {"id": 325, "assignee": {"id": 1121}}, "organization": {"id": 1251}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 329, "owner": {"id": 686}, "assignee": {"id": 589}, "project": {"id": 323, "owner": {"id": 713}, "assignee": {"id": 822}}, "task": {"id": 306, "owner": {"id": 932}, "assignee": {"id": 1008}}, "job": {"id": 363, "assignee": {"id": 1160}}, "organization": {"id": 155}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 371, "owner": {"id": 676}, "assignee": {"id": 540}, "project": {"id": 375, "owner": {"id": 721}, "assignee": {"id": 812}}, "task": {"id": 377, "owner": {"id": 977}, "assignee": {"id": 1087}}, "job": {"id": 343, "assignee": {"id": 1109}}, "organization": {"id": 144}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 327, "owner": {"id": 604}, "assignee": {"id": 511}, "project": {"id": 387, "owner": {"id": 712}, "assignee": {"id": 855}}, "task": {"id": 342, "owner": {"id": 917}, "assignee": {"id": 1080}}, "job": {"id": 334, "assignee": {"id": 1113}}, "organization": {"id": 1239}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 362, "owner": {"id": 679}, "assignee": {"id": 544}, "project": {"id": 378, "owner": {"id": 717}, "assignee": {"id": 827}}, "task": {"id": 390, "owner": {"id": 926}, "assignee": {"id": 1021}}, "job": {"id": 330, "assignee": {"id": 1155}}, "organization": {"id": 1218}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 349, "owner": {"id": 610}, "assignee": {"id": 565}, "project": {"id": 302, "owner": {"id": 739}, "assignee": {"id": 863}}, "task": {"id": 399, "owner": {"id": 902}, "assignee": {"id": 1087}}, "job": {"id": 322, "assignee": {"id": 1191}}, "organization": {"id": 153}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 682}, "assignee": {"id": 566}, "project": {"id": 321, "owner": {"id": 759}, "assignee": {"id": 812}}, "task": {"id": 336, "owner": {"id": 958}, "assignee": {"id": 1089}}, "job": {"id": 344, "assignee": {"id": 1118}}, "organization": {"id": 150}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 358, "owner": {"id": 663}, "assignee": {"id": 577}, "project": {"id": 315, "owner": {"id": 791}, "assignee": {"id": 864}}, "task": {"id": 399, "owner": {"id": 957}, "assignee": {"id": 1059}}, "job": {"id": 301, "assignee": {"id": 1186}}, "organization": {"id": 1282}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 382, "owner": {"id": 611}, "assignee": {"id": 577}, "project": {"id": 352, "owner": {"id": 778}, "assignee": {"id": 850}}, "task": {"id": 353, "owner": {"id": 995}, "assignee": {"id": 1013}}, "job": {"id": 303, "assignee": {"id": 1167}}, "organization": {"id": 1207}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 606}, "assignee": {"id": 544}, "project": {"id": 356, "owner": {"id": 736}, "assignee": {"id": 852}}, "task": {"id": 367, "owner": {"id": 933}, "assignee": {"id": 1085}}, "job": {"id": 392, "assignee": {"id": 1100}}, "organization": {"id": 138}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 629}, "assignee": {"id": 591}, "project": {"id": 380, "owner": {"id": 736}, "assignee": {"id": 820}}, "task": {"id": 323, "owner": {"id": 973}, "assignee": {"id": 1030}}, "job": {"id": 398, "assignee": {"id": 1170}}, "organization": {"id": 195}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 358, "owner": {"id": 622}, "assignee": {"id": 542}, "project": {"id": 383, "owner": {"id": 733}, "assignee": {"id": 891}}, "task": {"id": 388, "owner": {"id": 953}, "assignee": {"id": 1052}}, "job": {"id": 333, "assignee": {"id": 1130}}, "organization": {"id": 1214}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 600}, "assignee": {"id": 555}, "project": {"id": 353, "owner": {"id": 736}, "assignee": {"id": 818}}, "task": {"id": 334, "owner": {"id": 973}, "assignee": {"id": 1046}}, "job": {"id": 367, "assignee": {"id": 1141}}, "organization": {"id": 1242}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 647}, "assignee": {"id": 574}, "project": {"id": 322, "owner": {"id": 727}, "assignee": {"id": 822}}, "task": {"id": 319, "owner": {"id": 957}, "assignee": {"id": 1010}}, "job": {"id": 393, "assignee": {"id": 1113}}, "organization": {"id": 161}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "owner": {"id": 636}, "assignee": {"id": 549}, "project": {"id": 332, "owner": {"id": 784}, "assignee": {"id": 852}}, "task": {"id": 357, "owner": {"id": 976}, "assignee": {"id": 1097}}, "job": {"id": 331, "assignee": {"id": 1185}}, "organization": {"id": 197}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "owner": {"id": 662}, "assignee": {"id": 566}, "project": {"id": 390, "owner": {"id": 782}, "assignee": {"id": 896}}, "task": {"id": 334, "owner": {"id": 982}, "assignee": {"id": 1072}}, "job": {"id": 344, "assignee": {"id": 1179}}, "organization": {"id": 1203}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 612}, "assignee": {"id": 522}, "project": {"id": 365, "owner": {"id": 788}, "assignee": {"id": 880}}, "task": {"id": 395, "owner": {"id": 997}, "assignee": {"id": 1053}}, "job": {"id": 360, "assignee": {"id": 1103}}, "organization": {"id": 1212}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 341, "owner": {"id": 604}, "assignee": {"id": 572}, "project": {"id": 333, "owner": {"id": 793}, "assignee": {"id": 816}}, "task": {"id": 315, "owner": {"id": 924}, "assignee": {"id": 1002}}, "job": {"id": 311, "assignee": {"id": 1154}}, "organization": {"id": 153}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 330, "owner": {"id": 611}, "assignee": {"id": 576}, "project": {"id": 350, "owner": {"id": 766}, "assignee": {"id": 811}}, "task": {"id": 393, "owner": {"id": 949}, "assignee": {"id": 1057}}, "job": {"id": 343, "assignee": {"id": 1191}}, "organization": {"id": 192}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 666}, "assignee": {"id": 598}, "project": {"id": 387, "owner": {"id": 762}, "assignee": {"id": 808}}, "task": {"id": 370, "owner": {"id": 925}, "assignee": {"id": 1086}}, "job": {"id": 336, "assignee": {"id": 1145}}, "organization": {"id": 1255}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 628}, "assignee": {"id": 557}, "project": {"id": 343, "owner": {"id": 705}, "assignee": {"id": 876}}, "task": {"id": 306, "owner": {"id": 986}, "assignee": {"id": 1068}}, "job": {"id": 376, "assignee": {"id": 1164}}, "organization": {"id": 1252}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 614}, "assignee": {"id": 504}, "project": {"id": 369, "owner": {"id": 703}, "assignee": {"id": 869}}, "task": {"id": 388, "owner": {"id": 969}, "assignee": {"id": 1092}}, "job": {"id": 306, "assignee": {"id": 1156}}, "organization": {"id": 181}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 381, "owner": {"id": 606}, "assignee": {"id": 586}, "project": {"id": 373, "owner": {"id": 779}, "assignee": {"id": 852}}, "task": {"id": 362, "owner": {"id": 945}, "assignee": {"id": 1038}}, "job": {"id": 331, "assignee": {"id": 1157}}, "organization": {"id": 129}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 649}, "assignee": {"id": 597}, "project": {"id": 365, "owner": {"id": 734}, "assignee": {"id": 853}}, "task": {"id": 368, "owner": {"id": 960}, "assignee": {"id": 1053}}, "job": {"id": 313, "assignee": {"id": 1113}}, "organization": {"id": 1285}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"id": 340, "owner": {"id": 606}, "assignee": {"id": 528}, "project": {"id": 347, "owner": {"id": 716}, "assignee": {"id": 804}}, "task": {"id": 368, "owner": {"id": 997}, "assignee": {"id": 1052}}, "job": {"id": 310, "assignee": {"id": 1168}}, "organization": {"id": 1212}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 686}, "assignee": {"id": 535}, "project": {"id": 397, "owner": {"id": 752}, "assignee": {"id": 838}}, "task": {"id": 348, "owner": {"id": 987}, "assignee": {"id": 1002}}, "job": {"id": 396, "assignee": {"id": 1158}}, "organization": {"id": 110}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 666}, "assignee": {"id": 517}, "project": {"id": 375, "owner": {"id": 782}, "assignee": {"id": 812}}, "task": {"id": 326, "owner": {"id": 984}, "assignee": {"id": 1043}}, "job": {"id": 328, "assignee": {"id": 1186}}, "organization": {"id": 133}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 306, "owner": {"id": 678}, "assignee": {"id": 529}, "project": {"id": 364, "owner": {"id": 710}, "assignee": {"id": 880}}, "task": {"id": 371, "owner": {"id": 973}, "assignee": {"id": 1099}}, "job": {"id": 376, "assignee": {"id": 1159}}, "organization": {"id": 1261}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"id": 359, "owner": {"id": 631}, "assignee": {"id": 504}, "project": {"id": 322, "owner": {"id": 762}, "assignee": {"id": 828}}, "task": {"id": 320, "owner": {"id": 940}, "assignee": {"id": 1048}}, "job": {"id": 380, "assignee": {"id": 1114}}, "organization": {"id": 1270}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 664}, "assignee": {"id": 597}, "project": {"id": 332, "owner": {"id": 774}, "assignee": {"id": 870}}, "task": {"id": 306, "owner": {"id": 969}, "assignee": {"id": 1024}}, "job": {"id": 353, "assignee": {"id": 1176}}, "organization": {"id": 149}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 684}, "assignee": {"id": 524}, "project": {"id": 317, "owner": {"id": 720}, "assignee": {"id": 817}}, "task": {"id": 315, "owner": {"id": 936}, "assignee": {"id": 1054}}, "job": {"id": 360, "assignee": {"id": 1150}}, "organization": {"id": 179}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "owner": {"id": 630}, "assignee": {"id": 528}, "project": {"id": 310, "owner": {"id": 707}, "assignee": {"id": 890}}, "task": {"id": 366, "owner": {"id": 924}, "assignee": {"id": 1010}}, "job": {"id": 364, "assignee": {"id": 1143}}, "organization": {"id": 1219}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 656}, "assignee": {"id": 512}, "project": {"id": 390, "owner": {"id": 763}, "assignee": {"id": 877}}, "task": {"id": 332, "owner": {"id": 990}, "assignee": {"id": 1020}}, "job": {"id": 323, "assignee": {"id": 1127}}, "organization": {"id": 1231}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 380, "owner": {"id": 624}, "assignee": {"id": 599}, "project": {"id": 347, "owner": {"id": 789}, "assignee": {"id": 834}}, "task": {"id": 379, "owner": {"id": 915}, "assignee": {"id": 1027}}, "job": {"id": 316, "assignee": {"id": 1112}}, "organization": {"id": 132}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 641}, "assignee": {"id": 553}, "project": {"id": 374, "owner": {"id": 706}, "assignee": {"id": 885}}, "task": {"id": 332, "owner": {"id": 974}, "assignee": {"id": 1011}}, "job": {"id": 340, "assignee": {"id": 1108}}, "organization": {"id": 167}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 644}, "assignee": {"id": 590}, "project": {"id": 314, "owner": {"id": 709}, "assignee": {"id": 874}}, "task": {"id": 302, "owner": {"id": 907}, "assignee": {"id": 1079}}, "job": {"id": 360, "assignee": {"id": 1166}}, "organization": {"id": 1284}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "owner": {"id": 659}, "assignee": {"id": 526}, "project": {"id": 384, "owner": {"id": 758}, "assignee": {"id": 838}}, "task": {"id": 309, "owner": {"id": 927}, "assignee": {"id": 1062}}, "job": {"id": 334, "assignee": {"id": 1188}}, "organization": {"id": 1285}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 320, "owner": {"id": 638}, "assignee": {"id": 534}, "project": {"id": 360, "owner": {"id": 727}, "assignee": {"id": 802}}, "task": {"id": 309, "owner": {"id": 989}, "assignee": {"id": 1035}}, "job": {"id": 362, "assignee": {"id": 1181}}, "organization": {"id": 196}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 316, "owner": {"id": 652}, "assignee": {"id": 508}, "project": {"id": 304, "owner": {"id": 739}, "assignee": {"id": 851}}, "task": {"id": 348, "owner": {"id": 978}, "assignee": {"id": 1033}}, "job": {"id": 388, "assignee": {"id": 1142}}, "organization": {"id": 127}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 351, "owner": {"id": 676}, "assignee": {"id": 550}, "project": {"id": 339, "owner": {"id": 716}, "assignee": {"id": 877}}, "task": {"id": 326, "owner": {"id": 992}, "assignee": {"id": 1047}}, "job": {"id": 399, "assignee": {"id": 1115}}, "organization": {"id": 1254}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 306, "owner": {"id": 648}, "assignee": {"id": 597}, "project": {"id": 355, "owner": {"id": 704}, "assignee": {"id": 861}}, "task": {"id": 388, "owner": {"id": 981}, "assignee": {"id": 1076}}, "job": {"id": 301, "assignee": {"id": 1161}}, "organization": {"id": 1227}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 303, "owner": {"id": 602}, "assignee": {"id": 568}, "project": {"id": 399, "owner": {"id": 751}, "assignee": {"id": 839}}, "task": {"id": 342, "owner": {"id": 926}, "assignee": {"id": 1016}}, "job": {"id": 355, "assignee": {"id": 1121}}, "organization": {"id": 112}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 344, "owner": {"id": 639}, "assignee": {"id": 505}, "project": {"id": 369, "owner": {"id": 744}, "assignee": {"id": 836}}, "task": {"id": 335, "owner": {"id": 921}, "assignee": {"id": 1021}}, "job": {"id": 358, "assignee": {"id": 1155}}, "organization": {"id": 161}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 352, "owner": {"id": 656}, "assignee": {"id": 535}, "project": {"id": 389, "owner": {"id": 727}, "assignee": {"id": 801}}, "task": {"id": 317, "owner": {"id": 987}, "assignee": {"id": 1006}}, "job": {"id": 343, "assignee": {"id": 1158}}, "organization": {"id": 1282}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 685}, "assignee": {"id": 549}, "project": {"id": 364, "owner": {"id": 723}, "assignee": {"id": 877}}, "task": {"id": 338, "owner": {"id": 984}, "assignee": {"id": 1002}}, "job": {"id": 365, "assignee": {"id": 1129}}, "organization": {"id": 1259}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": null}, "resource": {"id": 376, "owner": {"id": 605}, "assignee": {"id": 552}, "project": {"id": 357, "owner": {"id": 53}, "assignee": {"id": 857}}, "task": {"id": 386, "owner": {"id": 994}, "assignee": {"id": 1017}}, "job": {"id": 369, "assignee": {"id": 1189}}, "organization": {"id": 1277}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": null}, "resource": {"id": 330, "owner": {"id": 699}, "assignee": {"id": 575}, "project": {"id": 399, "owner": {"id": 24}, "assignee": {"id": 890}}, "task": {"id": 309, "owner": {"id": 969}, "assignee": {"id": 1063}}, "job": {"id": 308, "assignee": {"id": 1101}}, "organization": {"id": 1228}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": null}, "resource": {"id": 352, "owner": {"id": 656}, "assignee": {"id": 514}, "project": {"id": 374, "owner": {"id": 13}, "assignee": {"id": 838}}, "task": {"id": 324, "owner": {"id": 999}, "assignee": {"id": 1022}}, "job": {"id": 322, "assignee": {"id": 1158}}, "organization": {"id": 1209}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": null}, "resource": {"id": 335, "owner": {"id": 674}, "assignee": {"id": 577}, "project": {"id": 312, "owner": {"id": 94}, "assignee": {"id": 890}}, "task": {"id": 373, "owner": {"id": 979}, "assignee": {"id": 1061}}, "job": {"id": 336, "assignee": {"id": 1175}}, "organization": {"id": 1286}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": null}, "resource": {"id": 343, "owner": {"id": 684}, "assignee": {"id": 527}, "project": {"id": 334, "owner": {"id": 76}, "assignee": {"id": 818}}, "task": {"id": 385, "owner": {"id": 923}, "assignee": {"id": 1015}}, "job": {"id": 371, "assignee": {"id": 1131}}, "organization": {"id": 1297}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": null}, "resource": {"id": 359, "owner": {"id": 619}, "assignee": {"id": 580}, "project": {"id": 328, "owner": {"id": 778}, "assignee": {"id": 75}}, "task": {"id": 365, "owner": {"id": 993}, "assignee": {"id": 1052}}, "job": {"id": 334, "assignee": {"id": 1189}}, "organization": {"id": 1222}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": null}, "resource": {"id": 327, "owner": {"id": 690}, "assignee": {"id": 588}, "project": {"id": 312, "owner": {"id": 721}, "assignee": {"id": 35}}, "task": {"id": 340, "owner": {"id": 912}, "assignee": {"id": 1003}}, "job": {"id": 372, "assignee": {"id": 1107}}, "organization": {"id": 1223}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": null}, "resource": {"id": 339, "owner": {"id": 623}, "assignee": {"id": 573}, "project": {"id": 380, "owner": {"id": 739}, "assignee": {"id": 13}}, "task": {"id": 380, "owner": {"id": 908}, "assignee": {"id": 1085}}, "job": {"id": 320, "assignee": {"id": 1152}}, "organization": {"id": 1251}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": null}, "resource": {"id": 391, "owner": {"id": 622}, "assignee": {"id": 597}, "project": {"id": 376, "owner": {"id": 778}, "assignee": {"id": 88}}, "task": {"id": 323, "owner": {"id": 966}, "assignee": {"id": 1058}}, "job": {"id": 351, "assignee": {"id": 1114}}, "organization": {"id": 1207}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": null}, "resource": {"id": 369, "owner": {"id": 692}, "assignee": {"id": 576}, "project": {"id": 308, "owner": {"id": 768}, "assignee": {"id": 25}}, "task": {"id": 378, "owner": {"id": 988}, "assignee": {"id": 1053}}, "job": {"id": 327, "assignee": {"id": 1104}}, "organization": {"id": 1209}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": null}, "resource": {"id": 324, "owner": {"id": 678}, "assignee": {"id": 550}, "project": {"id": 382, "owner": {"id": 767}, "assignee": {"id": 839}}, "task": {"id": 366, "owner": {"id": 64}, "assignee": {"id": 1050}}, "job": {"id": 304, "assignee": {"id": 1120}}, "organization": {"id": 1245}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": null}, "resource": {"id": 340, "owner": {"id": 675}, "assignee": {"id": 539}, "project": {"id": 340, "owner": {"id": 779}, "assignee": {"id": 860}}, "task": {"id": 351, "owner": {"id": 61}, "assignee": {"id": 1062}}, "job": {"id": 352, "assignee": {"id": 1108}}, "organization": {"id": 1219}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": null}, "resource": {"id": 303, "owner": {"id": 652}, "assignee": {"id": 538}, "project": {"id": 385, "owner": {"id": 763}, "assignee": {"id": 822}}, "task": {"id": 345, "owner": {"id": 24}, "assignee": {"id": 1082}}, "job": {"id": 379, "assignee": {"id": 1196}}, "organization": {"id": 1294}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": null}, "resource": {"id": 351, "owner": {"id": 647}, "assignee": {"id": 533}, "project": {"id": 326, "owner": {"id": 794}, "assignee": {"id": 850}}, "task": {"id": 311, "owner": {"id": 87}, "assignee": {"id": 1039}}, "job": {"id": 353, "assignee": {"id": 1179}}, "organization": {"id": 1281}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": null}, "resource": {"id": 343, "owner": {"id": 638}, "assignee": {"id": 582}, "project": {"id": 348, "owner": {"id": 751}, "assignee": {"id": 830}}, "task": {"id": 371, "owner": {"id": 50}, "assignee": {"id": 1075}}, "job": {"id": 319, "assignee": {"id": 1177}}, "organization": {"id": 1231}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": null}, "resource": {"id": 395, "owner": {"id": 672}, "assignee": {"id": 572}, "project": {"id": 374, "owner": {"id": 779}, "assignee": {"id": 801}}, "task": {"id": 369, "owner": {"id": 27}, "assignee": {"id": 1072}}, "job": {"id": 303, "assignee": {"id": 1124}}, "organization": {"id": 1297}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": null}, "resource": {"id": 345, "owner": {"id": 675}, "assignee": {"id": 548}, "project": {"id": 349, "owner": {"id": 732}, "assignee": {"id": 857}}, "task": {"id": 399, "owner": {"id": 62}, "assignee": {"id": 1098}}, "job": {"id": 398, "assignee": {"id": 1131}}, "organization": {"id": 1269}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": null}, "resource": {"id": 325, "owner": {"id": 607}, "assignee": {"id": 515}, "project": {"id": 303, "owner": {"id": 759}, "assignee": {"id": 898}}, "task": {"id": 396, "owner": {"id": 69}, "assignee": {"id": 1086}}, "job": {"id": 346, "assignee": {"id": 1158}}, "organization": {"id": 1284}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": null}, "resource": {"id": 343, "owner": {"id": 604}, "assignee": {"id": 535}, "project": {"id": 313, "owner": {"id": 763}, "assignee": {"id": 869}}, "task": {"id": 351, "owner": {"id": 60}, "assignee": {"id": 1050}}, "job": {"id": 356, "assignee": {"id": 1146}}, "organization": {"id": 1233}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": null}, "resource": {"id": 386, "owner": {"id": 620}, "assignee": {"id": 517}, "project": {"id": 331, "owner": {"id": 726}, "assignee": {"id": 883}}, "task": {"id": 392, "owner": {"id": 53}, "assignee": {"id": 1067}}, "job": {"id": 338, "assignee": {"id": 1189}}, "organization": {"id": 1220}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": null}, "resource": {"id": 394, "owner": {"id": 642}, "assignee": {"id": 585}, "project": {"id": 375, "owner": {"id": 702}, "assignee": {"id": 820}}, "task": {"id": 373, "owner": {"id": 929}, "assignee": {"id": 46}}, "job": {"id": 362, "assignee": {"id": 1178}}, "organization": {"id": 1267}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": null}, "resource": {"id": 375, "owner": {"id": 659}, "assignee": {"id": 539}, "project": {"id": 395, "owner": {"id": 796}, "assignee": {"id": 801}}, "task": {"id": 388, "owner": {"id": 915}, "assignee": {"id": 41}}, "job": {"id": 361, "assignee": {"id": 1106}}, "organization": {"id": 1204}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": null}, "resource": {"id": 358, "owner": {"id": 656}, "assignee": {"id": 536}, "project": {"id": 328, "owner": {"id": 735}, "assignee": {"id": 855}}, "task": {"id": 395, "owner": {"id": 958}, "assignee": {"id": 20}}, "job": {"id": 304, "assignee": {"id": 1161}}, "organization": {"id": 1268}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": null}, "resource": {"id": 397, "owner": {"id": 607}, "assignee": {"id": 582}, "project": {"id": 347, "owner": {"id": 756}, "assignee": {"id": 855}}, "task": {"id": 346, "owner": {"id": 912}, "assignee": {"id": 6}}, "job": {"id": 355, "assignee": {"id": 1146}}, "organization": {"id": 1203}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": null}, "resource": {"id": 325, "owner": {"id": 602}, "assignee": {"id": 510}, "project": {"id": 391, "owner": {"id": 720}, "assignee": {"id": 817}}, "task": {"id": 341, "owner": {"id": 999}, "assignee": {"id": 66}}, "job": {"id": 382, "assignee": {"id": 1144}}, "organization": {"id": 1226}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": null}, "resource": {"id": 321, "owner": {"id": 602}, "assignee": {"id": 599}, "project": {"id": 381, "owner": {"id": 796}, "assignee": {"id": 875}}, "task": {"id": 371, "owner": {"id": 928}, "assignee": {"id": 22}}, "job": {"id": 369, "assignee": {"id": 1102}}, "organization": {"id": 1218}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": null}, "resource": {"id": 371, "owner": {"id": 652}, "assignee": {"id": 519}, "project": {"id": 375, "owner": {"id": 789}, "assignee": {"id": 823}}, "task": {"id": 391, "owner": {"id": 908}, "assignee": {"id": 28}}, "job": {"id": 317, "assignee": {"id": 1162}}, "organization": {"id": 1207}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": null}, "resource": {"id": 390, "owner": {"id": 631}, "assignee": {"id": 588}, "project": {"id": 301, "owner": {"id": 732}, "assignee": {"id": 832}}, "task": {"id": 329, "owner": {"id": 900}, "assignee": {"id": 86}}, "job": {"id": 310, "assignee": {"id": 1199}}, "organization": {"id": 1282}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": null}, "resource": {"id": 327, "owner": {"id": 605}, "assignee": {"id": 554}, "project": {"id": 399, "owner": {"id": 716}, "assignee": {"id": 882}}, "task": {"id": 337, "owner": {"id": 933}, "assignee": {"id": 88}}, "job": {"id": 339, "assignee": {"id": 1176}}, "organization": {"id": 1220}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": null}, "resource": {"id": 323, "owner": {"id": 617}, "assignee": {"id": 567}, "project": {"id": 304, "owner": {"id": 772}, "assignee": {"id": 875}}, "task": {"id": 341, "owner": {"id": 989}, "assignee": {"id": 44}}, "job": {"id": 390, "assignee": {"id": 1100}}, "organization": {"id": 1250}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": null}, "resource": {"id": 336, "owner": {"id": 635}, "assignee": {"id": 598}, "project": {"id": 348, "owner": {"id": 712}, "assignee": {"id": 839}}, "task": {"id": 324, "owner": {"id": 999}, "assignee": {"id": 1074}}, "job": {"id": 359, "assignee": {"id": 50}}, "organization": {"id": 1282}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": null}, "resource": {"id": 375, "owner": {"id": 602}, "assignee": {"id": 544}, "project": {"id": 334, "owner": {"id": 746}, "assignee": {"id": 810}}, "task": {"id": 369, "owner": {"id": 939}, "assignee": {"id": 1086}}, "job": {"id": 358, "assignee": {"id": 78}}, "organization": {"id": 1211}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": null}, "resource": {"id": 350, "owner": {"id": 663}, "assignee": {"id": 514}, "project": {"id": 318, "owner": {"id": 761}, "assignee": {"id": 805}}, "task": {"id": 390, "owner": {"id": 974}, "assignee": {"id": 1043}}, "job": {"id": 319, "assignee": {"id": 53}}, "organization": {"id": 1265}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": null}, "resource": {"id": 311, "owner": {"id": 690}, "assignee": {"id": 586}, "project": {"id": 382, "owner": {"id": 740}, "assignee": {"id": 899}}, "task": {"id": 321, "owner": {"id": 942}, "assignee": {"id": 1056}}, "job": {"id": 377, "assignee": {"id": 97}}, "organization": {"id": 1232}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": null}, "resource": {"id": 369, "owner": {"id": 607}, "assignee": {"id": 512}, "project": {"id": 390, "owner": {"id": 781}, "assignee": {"id": 811}}, "task": {"id": 322, "owner": {"id": 920}, "assignee": {"id": 1027}}, "job": {"id": 378, "assignee": {"id": 78}}, "organization": {"id": 1201}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": null}, "resource": {"id": 345, "owner": {"id": 678}, "assignee": {"id": 562}, "project": {"id": 330, "owner": {"id": 704}, "assignee": {"id": 815}}, "task": {"id": 373, "owner": {"id": 962}, "assignee": {"id": 1030}}, "job": {"id": 340, "assignee": {"id": 87}}, "organization": {"id": 1234}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": null}, "resource": {"id": 392, "owner": {"id": 619}, "assignee": {"id": 574}, "project": {"id": 374, "owner": {"id": 761}, "assignee": {"id": 829}}, "task": {"id": 380, "owner": {"id": 996}, "assignee": {"id": 1081}}, "job": {"id": 396, "assignee": {"id": 82}}, "organization": {"id": 1297}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": null}, "resource": {"id": 391, "owner": {"id": 646}, "assignee": {"id": 540}, "project": {"id": 353, "owner": {"id": 798}, "assignee": {"id": 810}}, "task": {"id": 322, "owner": {"id": 991}, "assignee": {"id": 1042}}, "job": {"id": 337, "assignee": {"id": 91}}, "organization": {"id": 1232}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": null}, "resource": {"id": 383, "owner": {"id": 660}, "assignee": {"id": 525}, "project": {"id": 393, "owner": {"id": 702}, "assignee": {"id": 824}}, "task": {"id": 326, "owner": {"id": 983}, "assignee": {"id": 1058}}, "job": {"id": 376, "assignee": {"id": 52}}, "organization": {"id": 1259}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": null}, "resource": {"id": 346, "owner": {"id": 633}, "assignee": {"id": 563}, "project": {"id": 312, "owner": {"id": 785}, "assignee": {"id": 809}}, "task": {"id": 336, "owner": {"id": 941}, "assignee": {"id": 1046}}, "job": {"id": 398, "assignee": {"id": 48}}, "organization": {"id": 1232}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": null}, "resource": {"id": 340, "owner": {"id": 686}, "assignee": {"id": 595}, "project": {"id": 342, "owner": {"id": 797}, "assignee": {"id": 818}}, "task": {"id": 374, "owner": {"id": 976}, "assignee": {"id": 1059}}, "job": {"id": 382, "assignee": {"id": 1135}}, "organization": {"id": 1236}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": null}, "resource": {"id": 391, "owner": {"id": 646}, "assignee": {"id": 536}, "project": {"id": 303, "owner": {"id": 788}, "assignee": {"id": 807}}, "task": {"id": 312, "owner": {"id": 961}, "assignee": {"id": 1029}}, "job": {"id": 375, "assignee": {"id": 1179}}, "organization": {"id": 1236}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 31, "privilege": "business"}, "organization": null}, "resource": {"id": 327, "owner": {"id": 657}, "assignee": {"id": 572}, "project": {"id": 370, "owner": {"id": 710}, "assignee": {"id": 860}}, "task": {"id": 385, "owner": {"id": 990}, "assignee": {"id": 1087}}, "job": {"id": 322, "assignee": {"id": 1175}}, "organization": {"id": 1220}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": null}, "resource": {"id": 329, "owner": {"id": 651}, "assignee": {"id": 570}, "project": {"id": 352, "owner": {"id": 779}, "assignee": {"id": 839}}, "task": {"id": 365, "owner": {"id": 967}, "assignee": {"id": 1044}}, "job": {"id": 303, "assignee": {"id": 1140}}, "organization": {"id": 1282}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": null}, "resource": {"id": 333, "owner": {"id": 682}, "assignee": {"id": 588}, "project": {"id": 378, "owner": {"id": 751}, "assignee": {"id": 856}}, "task": {"id": 368, "owner": {"id": 992}, "assignee": {"id": 1081}}, "job": {"id": 368, "assignee": {"id": 1197}}, "organization": {"id": 1241}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": null}, "resource": {"id": 377, "owner": {"id": 627}, "assignee": {"id": 513}, "project": {"id": 364, "owner": {"id": 723}, "assignee": {"id": 891}}, "task": {"id": 329, "owner": {"id": 964}, "assignee": {"id": 1054}}, "job": {"id": 338, "assignee": {"id": 1140}}, "organization": {"id": 1265}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": null}, "resource": {"id": 330, "owner": {"id": 684}, "assignee": {"id": 528}, "project": {"id": 366, "owner": {"id": 741}, "assignee": {"id": 860}}, "task": {"id": 326, "owner": {"id": 907}, "assignee": {"id": 1005}}, "job": {"id": 357, "assignee": {"id": 1132}}, "organization": {"id": 1289}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": null}, "resource": {"id": 393, "owner": {"id": 630}, "assignee": {"id": 552}, "project": {"id": 355, "owner": {"id": 780}, "assignee": {"id": 825}}, "task": {"id": 307, "owner": {"id": 902}, "assignee": {"id": 1027}}, "job": {"id": 312, "assignee": {"id": 1112}}, "organization": {"id": 1258}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": null}, "resource": {"id": 307, "owner": {"id": 606}, "assignee": {"id": 570}, "project": {"id": 300, "owner": {"id": 797}, "assignee": {"id": 827}}, "task": {"id": 381, "owner": {"id": 978}, "assignee": {"id": 1075}}, "job": {"id": 310, "assignee": {"id": 1124}}, "organization": {"id": 1263}}} -} - -test_scope_CREATE_IN_JOB_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 19, "privilege": "none"}, "organization": null}, "resource": {"id": 378, "owner": {"id": 610}, "assignee": {"id": 509}, "project": {"id": 381, "owner": {"id": 761}, "assignee": {"id": 803}}, "task": {"id": 385, "owner": {"id": 989}, "assignee": {"id": 1077}}, "job": {"id": 363, "assignee": {"id": 1184}}, "organization": {"id": 1298}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 652}, "assignee": {"id": 569}, "project": {"id": 364, "owner": {"id": 56}, "assignee": {"id": 800}}, "task": {"id": 376, "owner": {"id": 995}, "assignee": {"id": 1020}}, "job": {"id": 351, "assignee": {"id": 1126}}, "organization": {"id": 154}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 348, "owner": {"id": 642}, "assignee": {"id": 579}, "project": {"id": 381, "owner": {"id": 75}, "assignee": {"id": 872}}, "task": {"id": 377, "owner": {"id": 980}, "assignee": {"id": 1059}}, "job": {"id": 377, "assignee": {"id": 1138}}, "organization": {"id": 1287}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 687}, "assignee": {"id": 535}, "project": {"id": 360, "owner": {"id": 68}, "assignee": {"id": 836}}, "task": {"id": 329, "owner": {"id": 990}, "assignee": {"id": 1002}}, "job": {"id": 320, "assignee": {"id": 1152}}, "organization": {"id": 160}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 659}, "assignee": {"id": 514}, "project": {"id": 374, "owner": {"id": 66}, "assignee": {"id": 888}}, "task": {"id": 359, "owner": {"id": 987}, "assignee": {"id": 1032}}, "job": {"id": 390, "assignee": {"id": 1148}}, "organization": {"id": 1275}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 672}, "assignee": {"id": 591}, "project": {"id": 321, "owner": {"id": 83}, "assignee": {"id": 868}}, "task": {"id": 364, "owner": {"id": 918}, "assignee": {"id": 1092}}, "job": {"id": 359, "assignee": {"id": 1175}}, "organization": {"id": 142}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "owner": {"id": 638}, "assignee": {"id": 509}, "project": {"id": 354, "owner": {"id": 40}, "assignee": {"id": 892}}, "task": {"id": 350, "owner": {"id": 916}, "assignee": {"id": 1085}}, "job": {"id": 394, "assignee": {"id": 1126}}, "organization": {"id": 1283}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 364, "owner": {"id": 621}, "assignee": {"id": 590}, "project": {"id": 396, "owner": {"id": 65}, "assignee": {"id": 834}}, "task": {"id": 370, "owner": {"id": 949}, "assignee": {"id": 1099}}, "job": {"id": 328, "assignee": {"id": 1159}}, "organization": {"id": 104}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 392, "owner": {"id": 631}, "assignee": {"id": 536}, "project": {"id": 317, "owner": {"id": 23}, "assignee": {"id": 836}}, "task": {"id": 385, "owner": {"id": 940}, "assignee": {"id": 1072}}, "job": {"id": 304, "assignee": {"id": 1141}}, "organization": {"id": 1235}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"id": 391, "owner": {"id": 697}, "assignee": {"id": 560}, "project": {"id": 343, "owner": {"id": 74}, "assignee": {"id": 869}}, "task": {"id": 344, "owner": {"id": 997}, "assignee": {"id": 1003}}, "job": {"id": 351, "assignee": {"id": 1161}}, "organization": {"id": 171}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 370, "owner": {"id": 604}, "assignee": {"id": 559}, "project": {"id": 356, "owner": {"id": 54}, "assignee": {"id": 826}}, "task": {"id": 319, "owner": {"id": 968}, "assignee": {"id": 1077}}, "job": {"id": 379, "assignee": {"id": 1141}}, "organization": {"id": 1254}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 674}, "assignee": {"id": 512}, "project": {"id": 301, "owner": {"id": 69}, "assignee": {"id": 854}}, "task": {"id": 334, "owner": {"id": 922}, "assignee": {"id": 1069}}, "job": {"id": 317, "assignee": {"id": 1169}}, "organization": {"id": 142}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 683}, "assignee": {"id": 503}, "project": {"id": 393, "owner": {"id": 20}, "assignee": {"id": 832}}, "task": {"id": 364, "owner": {"id": 915}, "assignee": {"id": 1009}}, "job": {"id": 392, "assignee": {"id": 1140}}, "organization": {"id": 1263}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 638}, "assignee": {"id": 585}, "project": {"id": 345, "owner": {"id": 45}, "assignee": {"id": 869}}, "task": {"id": 394, "owner": {"id": 940}, "assignee": {"id": 1002}}, "job": {"id": 322, "assignee": {"id": 1126}}, "organization": {"id": 169}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "owner": {"id": 661}, "assignee": {"id": 500}, "project": {"id": 306, "owner": {"id": 4}, "assignee": {"id": 807}}, "task": {"id": 339, "owner": {"id": 984}, "assignee": {"id": 1019}}, "job": {"id": 351, "assignee": {"id": 1196}}, "organization": {"id": 1262}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "owner": {"id": 646}, "assignee": {"id": 583}, "project": {"id": 359, "owner": {"id": 40}, "assignee": {"id": 832}}, "task": {"id": 372, "owner": {"id": 962}, "assignee": {"id": 1003}}, "job": {"id": 314, "assignee": {"id": 1163}}, "organization": {"id": 166}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "owner": {"id": 689}, "assignee": {"id": 575}, "project": {"id": 378, "owner": {"id": 28}, "assignee": {"id": 835}}, "task": {"id": 396, "owner": {"id": 940}, "assignee": {"id": 1089}}, "job": {"id": 322, "assignee": {"id": 1126}}, "organization": {"id": 1231}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 368, "owner": {"id": 613}, "assignee": {"id": 515}, "project": {"id": 379, "owner": {"id": 22}, "assignee": {"id": 875}}, "task": {"id": 354, "owner": {"id": 987}, "assignee": {"id": 1031}}, "job": {"id": 399, "assignee": {"id": 1126}}, "organization": {"id": 118}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 395, "owner": {"id": 665}, "assignee": {"id": 578}, "project": {"id": 305, "owner": {"id": 21}, "assignee": {"id": 824}}, "task": {"id": 300, "owner": {"id": 935}, "assignee": {"id": 1020}}, "job": {"id": 310, "assignee": {"id": 1154}}, "organization": {"id": 1291}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 322, "owner": {"id": 635}, "assignee": {"id": 547}, "project": {"id": 321, "owner": {"id": 64}, "assignee": {"id": 842}}, "task": {"id": 385, "owner": {"id": 917}, "assignee": {"id": 1036}}, "job": {"id": 356, "assignee": {"id": 1197}}, "organization": {"id": 176}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 386, "owner": {"id": 665}, "assignee": {"id": 512}, "project": {"id": 304, "owner": {"id": 46}, "assignee": {"id": 848}}, "task": {"id": 350, "owner": {"id": 904}, "assignee": {"id": 1019}}, "job": {"id": 304, "assignee": {"id": 1154}}, "organization": {"id": 1233}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 382, "owner": {"id": 668}, "assignee": {"id": 529}, "project": {"id": 301, "owner": {"id": 38}, "assignee": {"id": 801}}, "task": {"id": 360, "owner": {"id": 956}, "assignee": {"id": 1031}}, "job": {"id": 360, "assignee": {"id": 1103}}, "organization": {"id": 127}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 387, "owner": {"id": 654}, "assignee": {"id": 568}, "project": {"id": 354, "owner": {"id": 23}, "assignee": {"id": 870}}, "task": {"id": 341, "owner": {"id": 945}, "assignee": {"id": 1095}}, "job": {"id": 361, "assignee": {"id": 1158}}, "organization": {"id": 1204}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "owner": {"id": 680}, "assignee": {"id": 562}, "project": {"id": 362, "owner": {"id": 89}, "assignee": {"id": 841}}, "task": {"id": 331, "owner": {"id": 962}, "assignee": {"id": 1086}}, "job": {"id": 386, "assignee": {"id": 1181}}, "organization": {"id": 105}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 669}, "assignee": {"id": 507}, "project": {"id": 301, "owner": {"id": 35}, "assignee": {"id": 810}}, "task": {"id": 302, "owner": {"id": 912}, "assignee": {"id": 1022}}, "job": {"id": 365, "assignee": {"id": 1151}}, "organization": {"id": 1261}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "owner": {"id": 684}, "assignee": {"id": 545}, "project": {"id": 382, "owner": {"id": 29}, "assignee": {"id": 854}}, "task": {"id": 341, "owner": {"id": 982}, "assignee": {"id": 1079}}, "job": {"id": 384, "assignee": {"id": 1125}}, "organization": {"id": 108}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "owner": {"id": 691}, "assignee": {"id": 539}, "project": {"id": 391, "owner": {"id": 54}, "assignee": {"id": 864}}, "task": {"id": 311, "owner": {"id": 946}, "assignee": {"id": 1057}}, "job": {"id": 335, "assignee": {"id": 1120}}, "organization": {"id": 1272}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 355, "owner": {"id": 689}, "assignee": {"id": 533}, "project": {"id": 379, "owner": {"id": 30}, "assignee": {"id": 802}}, "task": {"id": 341, "owner": {"id": 969}, "assignee": {"id": 1031}}, "job": {"id": 312, "assignee": {"id": 1192}}, "organization": {"id": 190}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 317, "owner": {"id": 668}, "assignee": {"id": 505}, "project": {"id": 396, "owner": {"id": 78}, "assignee": {"id": 895}}, "task": {"id": 301, "owner": {"id": 908}, "assignee": {"id": 1066}}, "job": {"id": 368, "assignee": {"id": 1107}}, "organization": {"id": 1277}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 392, "owner": {"id": 621}, "assignee": {"id": 598}, "project": {"id": 307, "owner": {"id": 39}, "assignee": {"id": 801}}, "task": {"id": 368, "owner": {"id": 922}, "assignee": {"id": 1053}}, "job": {"id": 333, "assignee": {"id": 1189}}, "organization": {"id": 152}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 360, "owner": {"id": 657}, "assignee": {"id": 592}, "project": {"id": 368, "owner": {"id": 12}, "assignee": {"id": 883}}, "task": {"id": 375, "owner": {"id": 940}, "assignee": {"id": 1015}}, "job": {"id": 329, "assignee": {"id": 1177}}, "organization": {"id": 1221}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 313, "owner": {"id": 683}, "assignee": {"id": 566}, "project": {"id": 380, "owner": {"id": 87}, "assignee": {"id": 868}}, "task": {"id": 331, "owner": {"id": 905}, "assignee": {"id": 1045}}, "job": {"id": 321, "assignee": {"id": 1125}}, "organization": {"id": 198}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 358, "owner": {"id": 666}, "assignee": {"id": 557}, "project": {"id": 378, "owner": {"id": 61}, "assignee": {"id": 832}}, "task": {"id": 385, "owner": {"id": 958}, "assignee": {"id": 1081}}, "job": {"id": 375, "assignee": {"id": 1139}}, "organization": {"id": 1293}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 606}, "assignee": {"id": 510}, "project": {"id": 380, "owner": {"id": 64}, "assignee": {"id": 835}}, "task": {"id": 317, "owner": {"id": 993}, "assignee": {"id": 1011}}, "job": {"id": 324, "assignee": {"id": 1185}}, "organization": {"id": 148}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "owner": {"id": 629}, "assignee": {"id": 557}, "project": {"id": 306, "owner": {"id": 82}, "assignee": {"id": 858}}, "task": {"id": 347, "owner": {"id": 948}, "assignee": {"id": 1003}}, "job": {"id": 394, "assignee": {"id": 1129}}, "organization": {"id": 1258}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "owner": {"id": 639}, "assignee": {"id": 558}, "project": {"id": 334, "owner": {"id": 72}, "assignee": {"id": 886}}, "task": {"id": 308, "owner": {"id": 978}, "assignee": {"id": 1032}}, "job": {"id": 353, "assignee": {"id": 1137}}, "organization": {"id": 196}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "owner": {"id": 661}, "assignee": {"id": 594}, "project": {"id": 311, "owner": {"id": 70}, "assignee": {"id": 842}}, "task": {"id": 316, "owner": {"id": 919}, "assignee": {"id": 1076}}, "job": {"id": 364, "assignee": {"id": 1157}}, "organization": {"id": 1262}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 380, "owner": {"id": 612}, "assignee": {"id": 532}, "project": {"id": 311, "owner": {"id": 41}, "assignee": {"id": 826}}, "task": {"id": 350, "owner": {"id": 936}, "assignee": {"id": 1013}}, "job": {"id": 371, "assignee": {"id": 1187}}, "organization": {"id": 153}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 667}, "assignee": {"id": 548}, "project": {"id": 326, "owner": {"id": 97}, "assignee": {"id": 838}}, "task": {"id": 337, "owner": {"id": 901}, "assignee": {"id": 1057}}, "job": {"id": 352, "assignee": {"id": 1189}}, "organization": {"id": 1250}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 363, "owner": {"id": 636}, "assignee": {"id": 505}, "project": {"id": 378, "owner": {"id": 90}, "assignee": {"id": 858}}, "task": {"id": 323, "owner": {"id": 917}, "assignee": {"id": 1093}}, "job": {"id": 385, "assignee": {"id": 1189}}, "organization": {"id": 113}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 683}, "assignee": {"id": 596}, "project": {"id": 369, "owner": {"id": 28}, "assignee": {"id": 866}}, "task": {"id": 379, "owner": {"id": 929}, "assignee": {"id": 1032}}, "job": {"id": 307, "assignee": {"id": 1180}}, "organization": {"id": 1240}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 688}, "assignee": {"id": 549}, "project": {"id": 387, "owner": {"id": 62}, "assignee": {"id": 887}}, "task": {"id": 339, "owner": {"id": 902}, "assignee": {"id": 1010}}, "job": {"id": 325, "assignee": {"id": 1180}}, "organization": {"id": 138}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 308, "owner": {"id": 606}, "assignee": {"id": 520}, "project": {"id": 383, "owner": {"id": 90}, "assignee": {"id": 824}}, "task": {"id": 350, "owner": {"id": 908}, "assignee": {"id": 1071}}, "job": {"id": 366, "assignee": {"id": 1114}}, "organization": {"id": 1251}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 301, "owner": {"id": 666}, "assignee": {"id": 573}, "project": {"id": 353, "owner": {"id": 42}, "assignee": {"id": 852}}, "task": {"id": 384, "owner": {"id": 935}, "assignee": {"id": 1026}}, "job": {"id": 321, "assignee": {"id": 1172}}, "organization": {"id": 182}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "owner": {"id": 622}, "assignee": {"id": 526}, "project": {"id": 372, "owner": {"id": 88}, "assignee": {"id": 854}}, "task": {"id": 389, "owner": {"id": 906}, "assignee": {"id": 1039}}, "job": {"id": 375, "assignee": {"id": 1177}}, "organization": {"id": 1292}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "owner": {"id": 680}, "assignee": {"id": 585}, "project": {"id": 301, "owner": {"id": 52}, "assignee": {"id": 880}}, "task": {"id": 338, "owner": {"id": 950}, "assignee": {"id": 1043}}, "job": {"id": 327, "assignee": {"id": 1146}}, "organization": {"id": 187}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 664}, "assignee": {"id": 555}, "project": {"id": 393, "owner": {"id": 78}, "assignee": {"id": 870}}, "task": {"id": 336, "owner": {"id": 927}, "assignee": {"id": 1002}}, "job": {"id": 340, "assignee": {"id": 1103}}, "organization": {"id": 1290}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 664}, "assignee": {"id": 520}, "project": {"id": 312, "owner": {"id": 78}, "assignee": {"id": 869}}, "task": {"id": 381, "owner": {"id": 953}, "assignee": {"id": 1049}}, "job": {"id": 371, "assignee": {"id": 1120}}, "organization": {"id": 157}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 645}, "assignee": {"id": 597}, "project": {"id": 314, "owner": {"id": 2}, "assignee": {"id": 842}}, "task": {"id": 386, "owner": {"id": 989}, "assignee": {"id": 1086}}, "job": {"id": 352, "assignee": {"id": 1108}}, "organization": {"id": 1247}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 652}, "assignee": {"id": 522}, "project": {"id": 313, "owner": {"id": 4}, "assignee": {"id": 871}}, "task": {"id": 369, "owner": {"id": 972}, "assignee": {"id": 1096}}, "job": {"id": 324, "assignee": {"id": 1183}}, "organization": {"id": 196}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 610}, "assignee": {"id": 550}, "project": {"id": 356, "owner": {"id": 77}, "assignee": {"id": 885}}, "task": {"id": 383, "owner": {"id": 976}, "assignee": {"id": 1038}}, "job": {"id": 322, "assignee": {"id": 1150}}, "organization": {"id": 1260}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 390, "owner": {"id": 647}, "assignee": {"id": 566}, "project": {"id": 396, "owner": {"id": 767}, "assignee": {"id": 57}}, "task": {"id": 330, "owner": {"id": 995}, "assignee": {"id": 1027}}, "job": {"id": 329, "assignee": {"id": 1103}}, "organization": {"id": 162}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 674}, "assignee": {"id": 564}, "project": {"id": 379, "owner": {"id": 774}, "assignee": {"id": 63}}, "task": {"id": 377, "owner": {"id": 910}, "assignee": {"id": 1096}}, "job": {"id": 395, "assignee": {"id": 1171}}, "organization": {"id": 1200}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 614}, "assignee": {"id": 531}, "project": {"id": 396, "owner": {"id": 770}, "assignee": {"id": 46}}, "task": {"id": 364, "owner": {"id": 934}, "assignee": {"id": 1022}}, "job": {"id": 343, "assignee": {"id": 1172}}, "organization": {"id": 167}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "owner": {"id": 651}, "assignee": {"id": 589}, "project": {"id": 303, "owner": {"id": 748}, "assignee": {"id": 14}}, "task": {"id": 339, "owner": {"id": 939}, "assignee": {"id": 1076}}, "job": {"id": 304, "assignee": {"id": 1165}}, "organization": {"id": 1200}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "owner": {"id": 630}, "assignee": {"id": 546}, "project": {"id": 377, "owner": {"id": 789}, "assignee": {"id": 29}}, "task": {"id": 356, "owner": {"id": 986}, "assignee": {"id": 1010}}, "job": {"id": 375, "assignee": {"id": 1128}}, "organization": {"id": 144}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "owner": {"id": 697}, "assignee": {"id": 556}, "project": {"id": 353, "owner": {"id": 724}, "assignee": {"id": 56}}, "task": {"id": 398, "owner": {"id": 977}, "assignee": {"id": 1044}}, "job": {"id": 336, "assignee": {"id": 1159}}, "organization": {"id": 1204}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 373, "owner": {"id": 616}, "assignee": {"id": 575}, "project": {"id": 364, "owner": {"id": 733}, "assignee": {"id": 63}}, "task": {"id": 394, "owner": {"id": 960}, "assignee": {"id": 1097}}, "job": {"id": 390, "assignee": {"id": 1171}}, "organization": {"id": 189}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 392, "owner": {"id": 654}, "assignee": {"id": 547}, "project": {"id": 301, "owner": {"id": 764}, "assignee": {"id": 81}}, "task": {"id": 396, "owner": {"id": 932}, "assignee": {"id": 1062}}, "job": {"id": 324, "assignee": {"id": 1165}}, "organization": {"id": 1276}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 311, "owner": {"id": 630}, "assignee": {"id": 526}, "project": {"id": 377, "owner": {"id": 745}, "assignee": {"id": 81}}, "task": {"id": 338, "owner": {"id": 904}, "assignee": {"id": 1069}}, "job": {"id": 328, "assignee": {"id": 1110}}, "organization": {"id": 177}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 688}, "assignee": {"id": 572}, "project": {"id": 370, "owner": {"id": 782}, "assignee": {"id": 73}}, "task": {"id": 307, "owner": {"id": 904}, "assignee": {"id": 1088}}, "job": {"id": 335, "assignee": {"id": 1161}}, "organization": {"id": 1223}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 674}, "assignee": {"id": 569}, "project": {"id": 333, "owner": {"id": 768}, "assignee": {"id": 19}}, "task": {"id": 371, "owner": {"id": 973}, "assignee": {"id": 1079}}, "job": {"id": 381, "assignee": {"id": 1105}}, "organization": {"id": 151}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 614}, "assignee": {"id": 583}, "project": {"id": 302, "owner": {"id": 719}, "assignee": {"id": 50}}, "task": {"id": 320, "owner": {"id": 983}, "assignee": {"id": 1044}}, "job": {"id": 327, "assignee": {"id": 1191}}, "organization": {"id": 1282}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "owner": {"id": 680}, "assignee": {"id": 565}, "project": {"id": 346, "owner": {"id": 751}, "assignee": {"id": 14}}, "task": {"id": 350, "owner": {"id": 965}, "assignee": {"id": 1038}}, "job": {"id": 379, "assignee": {"id": 1197}}, "organization": {"id": 113}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "owner": {"id": 655}, "assignee": {"id": 593}, "project": {"id": 374, "owner": {"id": 716}, "assignee": {"id": 58}}, "task": {"id": 391, "owner": {"id": 977}, "assignee": {"id": 1094}}, "job": {"id": 355, "assignee": {"id": 1187}}, "organization": {"id": 1255}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "owner": {"id": 686}, "assignee": {"id": 590}, "project": {"id": 371, "owner": {"id": 707}, "assignee": {"id": 1}}, "task": {"id": 387, "owner": {"id": 918}, "assignee": {"id": 1028}}, "job": {"id": 390, "assignee": {"id": 1122}}, "organization": {"id": 134}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 617}, "assignee": {"id": 514}, "project": {"id": 342, "owner": {"id": 744}, "assignee": {"id": 58}}, "task": {"id": 312, "owner": {"id": 911}, "assignee": {"id": 1071}}, "job": {"id": 360, "assignee": {"id": 1106}}, "organization": {"id": 1200}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 365, "owner": {"id": 670}, "assignee": {"id": 503}, "project": {"id": 331, "owner": {"id": 766}, "assignee": {"id": 38}}, "task": {"id": 337, "owner": {"id": 901}, "assignee": {"id": 1076}}, "job": {"id": 387, "assignee": {"id": 1101}}, "organization": {"id": 155}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 371, "owner": {"id": 645}, "assignee": {"id": 528}, "project": {"id": 335, "owner": {"id": 713}, "assignee": {"id": 85}}, "task": {"id": 320, "owner": {"id": 941}, "assignee": {"id": 1054}}, "job": {"id": 303, "assignee": {"id": 1129}}, "organization": {"id": 1280}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 670}, "assignee": {"id": 502}, "project": {"id": 395, "owner": {"id": 700}, "assignee": {"id": 32}}, "task": {"id": 355, "owner": {"id": 936}, "assignee": {"id": 1028}}, "job": {"id": 383, "assignee": {"id": 1178}}, "organization": {"id": 188}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 635}, "assignee": {"id": 592}, "project": {"id": 330, "owner": {"id": 726}, "assignee": {"id": 64}}, "task": {"id": 306, "owner": {"id": 977}, "assignee": {"id": 1090}}, "job": {"id": 325, "assignee": {"id": 1184}}, "organization": {"id": 1233}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 336, "owner": {"id": 692}, "assignee": {"id": 574}, "project": {"id": 373, "owner": {"id": 770}, "assignee": {"id": 18}}, "task": {"id": 303, "owner": {"id": 926}, "assignee": {"id": 1051}}, "job": {"id": 379, "assignee": {"id": 1133}}, "organization": {"id": 168}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 376, "owner": {"id": 615}, "assignee": {"id": 506}, "project": {"id": 345, "owner": {"id": 769}, "assignee": {"id": 51}}, "task": {"id": 374, "owner": {"id": 971}, "assignee": {"id": 1041}}, "job": {"id": 388, "assignee": {"id": 1177}}, "organization": {"id": 1289}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "owner": {"id": 681}, "assignee": {"id": 504}, "project": {"id": 308, "owner": {"id": 776}, "assignee": {"id": 86}}, "task": {"id": 323, "owner": {"id": 948}, "assignee": {"id": 1000}}, "job": {"id": 383, "assignee": {"id": 1112}}, "organization": {"id": 168}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "owner": {"id": 662}, "assignee": {"id": 580}, "project": {"id": 326, "owner": {"id": 782}, "assignee": {"id": 40}}, "task": {"id": 332, "owner": {"id": 973}, "assignee": {"id": 1046}}, "job": {"id": 391, "assignee": {"id": 1138}}, "organization": {"id": 1244}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "owner": {"id": 637}, "assignee": {"id": 585}, "project": {"id": 333, "owner": {"id": 745}, "assignee": {"id": 4}}, "task": {"id": 358, "owner": {"id": 917}, "assignee": {"id": 1052}}, "job": {"id": 399, "assignee": {"id": 1155}}, "organization": {"id": 155}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 640}, "assignee": {"id": 577}, "project": {"id": 335, "owner": {"id": 764}, "assignee": {"id": 78}}, "task": {"id": 343, "owner": {"id": 998}, "assignee": {"id": 1096}}, "job": {"id": 391, "assignee": {"id": 1128}}, "organization": {"id": 1200}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 317, "owner": {"id": 636}, "assignee": {"id": 595}, "project": {"id": 353, "owner": {"id": 712}, "assignee": {"id": 37}}, "task": {"id": 345, "owner": {"id": 963}, "assignee": {"id": 1043}}, "job": {"id": 342, "assignee": {"id": 1158}}, "organization": {"id": 111}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 366, "owner": {"id": 664}, "assignee": {"id": 573}, "project": {"id": 360, "owner": {"id": 766}, "assignee": {"id": 83}}, "task": {"id": 302, "owner": {"id": 998}, "assignee": {"id": 1029}}, "job": {"id": 315, "assignee": {"id": 1137}}, "organization": {"id": 1215}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 674}, "assignee": {"id": 581}, "project": {"id": 304, "owner": {"id": 782}, "assignee": {"id": 69}}, "task": {"id": 313, "owner": {"id": 955}, "assignee": {"id": 1004}}, "job": {"id": 331, "assignee": {"id": 1178}}, "organization": {"id": 134}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 338, "owner": {"id": 607}, "assignee": {"id": 543}, "project": {"id": 395, "owner": {"id": 707}, "assignee": {"id": 60}}, "task": {"id": 364, "owner": {"id": 951}, "assignee": {"id": 1026}}, "job": {"id": 308, "assignee": {"id": 1188}}, "organization": {"id": 1268}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 362, "owner": {"id": 617}, "assignee": {"id": 547}, "project": {"id": 384, "owner": {"id": 773}, "assignee": {"id": 47}}, "task": {"id": 353, "owner": {"id": 900}, "assignee": {"id": 1054}}, "job": {"id": 385, "assignee": {"id": 1189}}, "organization": {"id": 190}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 673}, "assignee": {"id": 563}, "project": {"id": 347, "owner": {"id": 703}, "assignee": {"id": 27}}, "task": {"id": 317, "owner": {"id": 949}, "assignee": {"id": 1013}}, "job": {"id": 316, "assignee": {"id": 1116}}, "organization": {"id": 1220}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "owner": {"id": 651}, "assignee": {"id": 574}, "project": {"id": 346, "owner": {"id": 737}, "assignee": {"id": 89}}, "task": {"id": 317, "owner": {"id": 928}, "assignee": {"id": 1066}}, "job": {"id": 342, "assignee": {"id": 1184}}, "organization": {"id": 127}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "owner": {"id": 666}, "assignee": {"id": 532}, "project": {"id": 367, "owner": {"id": 718}, "assignee": {"id": 12}}, "task": {"id": 393, "owner": {"id": 971}, "assignee": {"id": 1076}}, "job": {"id": 367, "assignee": {"id": 1198}}, "organization": {"id": 1270}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "owner": {"id": 678}, "assignee": {"id": 584}, "project": {"id": 352, "owner": {"id": 785}, "assignee": {"id": 30}}, "task": {"id": 348, "owner": {"id": 978}, "assignee": {"id": 1033}}, "job": {"id": 361, "assignee": {"id": 1103}}, "organization": {"id": 141}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "owner": {"id": 645}, "assignee": {"id": 593}, "project": {"id": 332, "owner": {"id": 745}, "assignee": {"id": 73}}, "task": {"id": 395, "owner": {"id": 979}, "assignee": {"id": 1055}}, "job": {"id": 364, "assignee": {"id": 1132}}, "organization": {"id": 1234}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 398, "owner": {"id": 610}, "assignee": {"id": 515}, "project": {"id": 320, "owner": {"id": 777}, "assignee": {"id": 11}}, "task": {"id": 384, "owner": {"id": 949}, "assignee": {"id": 1015}}, "job": {"id": 341, "assignee": {"id": 1156}}, "organization": {"id": 184}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 396, "owner": {"id": 611}, "assignee": {"id": 570}, "project": {"id": 358, "owner": {"id": 787}, "assignee": {"id": 68}}, "task": {"id": 339, "owner": {"id": 979}, "assignee": {"id": 1083}}, "job": {"id": 350, "assignee": {"id": 1127}}, "organization": {"id": 1203}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 357, "owner": {"id": 619}, "assignee": {"id": 565}, "project": {"id": 397, "owner": {"id": 748}, "assignee": {"id": 28}}, "task": {"id": 365, "owner": {"id": 933}, "assignee": {"id": 1034}}, "job": {"id": 370, "assignee": {"id": 1103}}, "organization": {"id": 190}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 301, "owner": {"id": 617}, "assignee": {"id": 572}, "project": {"id": 309, "owner": {"id": 795}, "assignee": {"id": 97}}, "task": {"id": 353, "owner": {"id": 924}, "assignee": {"id": 1031}}, "job": {"id": 352, "assignee": {"id": 1136}}, "organization": {"id": 1281}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 392, "owner": {"id": 644}, "assignee": {"id": 501}, "project": {"id": 364, "owner": {"id": 712}, "assignee": {"id": 85}}, "task": {"id": 351, "owner": {"id": 974}, "assignee": {"id": 1065}}, "job": {"id": 310, "assignee": {"id": 1174}}, "organization": {"id": 160}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 317, "owner": {"id": 654}, "assignee": {"id": 562}, "project": {"id": 306, "owner": {"id": 787}, "assignee": {"id": 57}}, "task": {"id": 365, "owner": {"id": 944}, "assignee": {"id": 1050}}, "job": {"id": 334, "assignee": {"id": 1128}}, "organization": {"id": 1222}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 609}, "assignee": {"id": 534}, "project": {"id": 327, "owner": {"id": 780}, "assignee": {"id": 23}}, "task": {"id": 357, "owner": {"id": 973}, "assignee": {"id": 1051}}, "job": {"id": 349, "assignee": {"id": 1113}}, "organization": {"id": 173}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "owner": {"id": 660}, "assignee": {"id": 513}, "project": {"id": 371, "owner": {"id": 735}, "assignee": {"id": 60}}, "task": {"id": 334, "owner": {"id": 958}, "assignee": {"id": 1018}}, "job": {"id": 382, "assignee": {"id": 1120}}, "organization": {"id": 1258}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "owner": {"id": 692}, "assignee": {"id": 563}, "project": {"id": 387, "owner": {"id": 707}, "assignee": {"id": 86}}, "task": {"id": 384, "owner": {"id": 921}, "assignee": {"id": 1041}}, "job": {"id": 390, "assignee": {"id": 1117}}, "organization": {"id": 145}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "owner": {"id": 647}, "assignee": {"id": 558}, "project": {"id": 320, "owner": {"id": 720}, "assignee": {"id": 69}}, "task": {"id": 308, "owner": {"id": 911}, "assignee": {"id": 1014}}, "job": {"id": 365, "assignee": {"id": 1137}}, "organization": {"id": 1295}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 50, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 367, "owner": {"id": 609}, "assignee": {"id": 538}, "project": {"id": 354, "owner": {"id": 786}, "assignee": {"id": 50}}, "task": {"id": 382, "owner": {"id": 975}, "assignee": {"id": 1014}}, "job": {"id": 368, "assignee": {"id": 1175}}, "organization": {"id": 132}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 365, "owner": {"id": 697}, "assignee": {"id": 527}, "project": {"id": 351, "owner": {"id": 726}, "assignee": {"id": 73}}, "task": {"id": 347, "owner": {"id": 906}, "assignee": {"id": 1039}}, "job": {"id": 396, "assignee": {"id": 1171}}, "organization": {"id": 1246}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 668}, "assignee": {"id": 591}, "project": {"id": 300, "owner": {"id": 709}, "assignee": {"id": 81}}, "task": {"id": 312, "owner": {"id": 945}, "assignee": {"id": 1093}}, "job": {"id": 312, "assignee": {"id": 1111}}, "organization": {"id": 133}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 363, "owner": {"id": 672}, "assignee": {"id": 538}, "project": {"id": 353, "owner": {"id": 768}, "assignee": {"id": 82}}, "task": {"id": 376, "owner": {"id": 944}, "assignee": {"id": 1064}}, "job": {"id": 304, "assignee": {"id": 1122}}, "organization": {"id": 1202}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 348, "owner": {"id": 627}, "assignee": {"id": 598}, "project": {"id": 309, "owner": {"id": 756}, "assignee": {"id": 820}}, "task": {"id": 324, "owner": {"id": 22}, "assignee": {"id": 1049}}, "job": {"id": 335, "assignee": {"id": 1113}}, "organization": {"id": 188}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 608}, "assignee": {"id": 586}, "project": {"id": 372, "owner": {"id": 737}, "assignee": {"id": 878}}, "task": {"id": 352, "owner": {"id": 18}, "assignee": {"id": 1089}}, "job": {"id": 352, "assignee": {"id": 1168}}, "organization": {"id": 115}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 684}, "assignee": {"id": 574}, "project": {"id": 391, "owner": {"id": 765}, "assignee": {"id": 804}}, "task": {"id": 365, "owner": {"id": 98}, "assignee": {"id": 1028}}, "job": {"id": 382, "assignee": {"id": 1136}}, "organization": {"id": 1218}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 380, "owner": {"id": 683}, "assignee": {"id": 577}, "project": {"id": 344, "owner": {"id": 720}, "assignee": {"id": 884}}, "task": {"id": 344, "owner": {"id": 61}, "assignee": {"id": 1016}}, "job": {"id": 381, "assignee": {"id": 1133}}, "organization": {"id": 1267}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "owner": {"id": 614}, "assignee": {"id": 591}, "project": {"id": 395, "owner": {"id": 715}, "assignee": {"id": 894}}, "task": {"id": 326, "owner": {"id": 68}, "assignee": {"id": 1082}}, "job": {"id": 346, "assignee": {"id": 1122}}, "organization": {"id": 196}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 699}, "assignee": {"id": 570}, "project": {"id": 343, "owner": {"id": 719}, "assignee": {"id": 874}}, "task": {"id": 385, "owner": {"id": 97}, "assignee": {"id": 1061}}, "job": {"id": 361, "assignee": {"id": 1154}}, "organization": {"id": 120}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "owner": {"id": 625}, "assignee": {"id": 526}, "project": {"id": 310, "owner": {"id": 740}, "assignee": {"id": 818}}, "task": {"id": 371, "owner": {"id": 76}, "assignee": {"id": 1091}}, "job": {"id": 335, "assignee": {"id": 1171}}, "organization": {"id": 1255}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "owner": {"id": 638}, "assignee": {"id": 587}, "project": {"id": 308, "owner": {"id": 726}, "assignee": {"id": 802}}, "task": {"id": 359, "owner": {"id": 44}, "assignee": {"id": 1072}}, "job": {"id": 356, "assignee": {"id": 1117}}, "organization": {"id": 1251}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "owner": {"id": 647}, "assignee": {"id": 501}, "project": {"id": 399, "owner": {"id": 790}, "assignee": {"id": 805}}, "task": {"id": 387, "owner": {"id": 77}, "assignee": {"id": 1084}}, "job": {"id": 397, "assignee": {"id": 1112}}, "organization": {"id": 105}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "owner": {"id": 627}, "assignee": {"id": 553}, "project": {"id": 332, "owner": {"id": 725}, "assignee": {"id": 881}}, "task": {"id": 349, "owner": {"id": 75}, "assignee": {"id": 1019}}, "job": {"id": 384, "assignee": {"id": 1135}}, "organization": {"id": 178}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "owner": {"id": 672}, "assignee": {"id": 537}, "project": {"id": 378, "owner": {"id": 791}, "assignee": {"id": 852}}, "task": {"id": 365, "owner": {"id": 52}, "assignee": {"id": 1049}}, "job": {"id": 307, "assignee": {"id": 1194}}, "organization": {"id": 1234}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "owner": {"id": 640}, "assignee": {"id": 507}, "project": {"id": 329, "owner": {"id": 786}, "assignee": {"id": 898}}, "task": {"id": 393, "owner": {"id": 59}, "assignee": {"id": 1012}}, "job": {"id": 352, "assignee": {"id": 1121}}, "organization": {"id": 1204}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 370, "owner": {"id": 603}, "assignee": {"id": 581}, "project": {"id": 347, "owner": {"id": 758}, "assignee": {"id": 876}}, "task": {"id": 331, "owner": {"id": 29}, "assignee": {"id": 1084}}, "job": {"id": 341, "assignee": {"id": 1108}}, "organization": {"id": 138}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 327, "owner": {"id": 634}, "assignee": {"id": 597}, "project": {"id": 317, "owner": {"id": 701}, "assignee": {"id": 830}}, "task": {"id": 373, "owner": {"id": 74}, "assignee": {"id": 1027}}, "job": {"id": 375, "assignee": {"id": 1141}}, "organization": {"id": 187}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 391, "owner": {"id": 671}, "assignee": {"id": 591}, "project": {"id": 370, "owner": {"id": 726}, "assignee": {"id": 841}}, "task": {"id": 317, "owner": {"id": 60}, "assignee": {"id": 1002}}, "job": {"id": 310, "assignee": {"id": 1177}}, "organization": {"id": 1287}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 682}, "assignee": {"id": 568}, "project": {"id": 394, "owner": {"id": 703}, "assignee": {"id": 855}}, "task": {"id": 356, "owner": {"id": 72}, "assignee": {"id": 1086}}, "job": {"id": 338, "assignee": {"id": 1190}}, "organization": {"id": 1215}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 363, "owner": {"id": 642}, "assignee": {"id": 595}, "project": {"id": 336, "owner": {"id": 790}, "assignee": {"id": 811}}, "task": {"id": 379, "owner": {"id": 47}, "assignee": {"id": 1054}}, "job": {"id": 377, "assignee": {"id": 1155}}, "organization": {"id": 122}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 671}, "assignee": {"id": 560}, "project": {"id": 352, "owner": {"id": 756}, "assignee": {"id": 889}}, "task": {"id": 336, "owner": {"id": 27}, "assignee": {"id": 1021}}, "job": {"id": 301, "assignee": {"id": 1107}}, "organization": {"id": 111}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 612}, "assignee": {"id": 577}, "project": {"id": 360, "owner": {"id": 724}, "assignee": {"id": 893}}, "task": {"id": 350, "owner": {"id": 26}, "assignee": {"id": 1055}}, "job": {"id": 312, "assignee": {"id": 1139}}, "organization": {"id": 1240}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"id": 333, "owner": {"id": 648}, "assignee": {"id": 551}, "project": {"id": 318, "owner": {"id": 708}, "assignee": {"id": 873}}, "task": {"id": 399, "owner": {"id": 85}, "assignee": {"id": 1006}}, "job": {"id": 312, "assignee": {"id": 1182}}, "organization": {"id": 1274}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 383, "owner": {"id": 635}, "assignee": {"id": 530}, "project": {"id": 339, "owner": {"id": 751}, "assignee": {"id": 801}}, "task": {"id": 338, "owner": {"id": 21}, "assignee": {"id": 1092}}, "job": {"id": 393, "assignee": {"id": 1110}}, "organization": {"id": 101}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 307, "owner": {"id": 672}, "assignee": {"id": 555}, "project": {"id": 349, "owner": {"id": 704}, "assignee": {"id": 887}}, "task": {"id": 343, "owner": {"id": 99}, "assignee": {"id": 1074}}, "job": {"id": 340, "assignee": {"id": 1133}}, "organization": {"id": 117}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 328, "owner": {"id": 694}, "assignee": {"id": 537}, "project": {"id": 372, "owner": {"id": 768}, "assignee": {"id": 834}}, "task": {"id": 301, "owner": {"id": 5}, "assignee": {"id": 1017}}, "job": {"id": 342, "assignee": {"id": 1155}}, "organization": {"id": 1222}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 617}, "assignee": {"id": 582}, "project": {"id": 318, "owner": {"id": 742}, "assignee": {"id": 835}}, "task": {"id": 321, "owner": {"id": 50}, "assignee": {"id": 1090}}, "job": {"id": 356, "assignee": {"id": 1186}}, "organization": {"id": 1214}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 687}, "assignee": {"id": 506}, "project": {"id": 327, "owner": {"id": 752}, "assignee": {"id": 803}}, "task": {"id": 328, "owner": {"id": 82}, "assignee": {"id": 1025}}, "job": {"id": 374, "assignee": {"id": 1134}}, "organization": {"id": 167}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "owner": {"id": 632}, "assignee": {"id": 512}, "project": {"id": 327, "owner": {"id": 758}, "assignee": {"id": 835}}, "task": {"id": 307, "owner": {"id": 18}, "assignee": {"id": 1008}}, "job": {"id": 339, "assignee": {"id": 1157}}, "organization": {"id": 114}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "owner": {"id": 611}, "assignee": {"id": 563}, "project": {"id": 369, "owner": {"id": 744}, "assignee": {"id": 801}}, "task": {"id": 364, "owner": {"id": 58}, "assignee": {"id": 1026}}, "job": {"id": 386, "assignee": {"id": 1195}}, "organization": {"id": 1230}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "owner": {"id": 690}, "assignee": {"id": 558}, "project": {"id": 337, "owner": {"id": 779}, "assignee": {"id": 838}}, "task": {"id": 303, "owner": {"id": 77}, "assignee": {"id": 1078}}, "job": {"id": 308, "assignee": {"id": 1193}}, "organization": {"id": 1234}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 324, "owner": {"id": 606}, "assignee": {"id": 519}, "project": {"id": 372, "owner": {"id": 721}, "assignee": {"id": 890}}, "task": {"id": 345, "owner": {"id": 86}, "assignee": {"id": 1020}}, "job": {"id": 340, "assignee": {"id": 1151}}, "organization": {"id": 113}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "owner": {"id": 648}, "assignee": {"id": 565}, "project": {"id": 376, "owner": {"id": 753}, "assignee": {"id": 816}}, "task": {"id": 321, "owner": {"id": 64}, "assignee": {"id": 1074}}, "job": {"id": 335, "assignee": {"id": 1178}}, "organization": {"id": 169}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "owner": {"id": 660}, "assignee": {"id": 546}, "project": {"id": 379, "owner": {"id": 716}, "assignee": {"id": 815}}, "task": {"id": 395, "owner": {"id": 95}, "assignee": {"id": 1050}}, "job": {"id": 391, "assignee": {"id": 1104}}, "organization": {"id": 1243}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "owner": {"id": 668}, "assignee": {"id": 578}, "project": {"id": 386, "owner": {"id": 718}, "assignee": {"id": 843}}, "task": {"id": 335, "owner": {"id": 66}, "assignee": {"id": 1031}}, "job": {"id": 316, "assignee": {"id": 1197}}, "organization": {"id": 1248}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 325, "owner": {"id": 684}, "assignee": {"id": 581}, "project": {"id": 324, "owner": {"id": 726}, "assignee": {"id": 823}}, "task": {"id": 304, "owner": {"id": 98}, "assignee": {"id": 1070}}, "job": {"id": 331, "assignee": {"id": 1103}}, "organization": {"id": 164}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 309, "owner": {"id": 620}, "assignee": {"id": 578}, "project": {"id": 398, "owner": {"id": 723}, "assignee": {"id": 887}}, "task": {"id": 394, "owner": {"id": 8}, "assignee": {"id": 1025}}, "job": {"id": 374, "assignee": {"id": 1101}}, "organization": {"id": 120}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 309, "owner": {"id": 619}, "assignee": {"id": 528}, "project": {"id": 355, "owner": {"id": 759}, "assignee": {"id": 807}}, "task": {"id": 390, "owner": {"id": 39}, "assignee": {"id": 1037}}, "job": {"id": 381, "assignee": {"id": 1187}}, "organization": {"id": 1209}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 384, "owner": {"id": 666}, "assignee": {"id": 579}, "project": {"id": 360, "owner": {"id": 761}, "assignee": {"id": 806}}, "task": {"id": 310, "owner": {"id": 37}, "assignee": {"id": 1061}}, "job": {"id": 342, "assignee": {"id": 1196}}, "organization": {"id": 1247}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 666}, "assignee": {"id": 541}, "project": {"id": 370, "owner": {"id": 754}, "assignee": {"id": 875}}, "task": {"id": 327, "owner": {"id": 2}, "assignee": {"id": 1054}}, "job": {"id": 367, "assignee": {"id": 1181}}, "organization": {"id": 161}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"id": 394, "owner": {"id": 668}, "assignee": {"id": 519}, "project": {"id": 399, "owner": {"id": 766}, "assignee": {"id": 804}}, "task": {"id": 315, "owner": {"id": 52}, "assignee": {"id": 1052}}, "job": {"id": 394, "assignee": {"id": 1133}}, "organization": {"id": 177}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 362, "owner": {"id": 682}, "assignee": {"id": 545}, "project": {"id": 343, "owner": {"id": 724}, "assignee": {"id": 867}}, "task": {"id": 314, "owner": {"id": 8}, "assignee": {"id": 1089}}, "job": {"id": 327, "assignee": {"id": 1154}}, "organization": {"id": 1264}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 628}, "assignee": {"id": 552}, "project": {"id": 379, "owner": {"id": 730}, "assignee": {"id": 872}}, "task": {"id": 375, "owner": {"id": 33}, "assignee": {"id": 1062}}, "job": {"id": 364, "assignee": {"id": 1106}}, "organization": {"id": 1268}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 337, "owner": {"id": 625}, "assignee": {"id": 599}, "project": {"id": 385, "owner": {"id": 751}, "assignee": {"id": 854}}, "task": {"id": 312, "owner": {"id": 15}, "assignee": {"id": 1009}}, "job": {"id": 377, "assignee": {"id": 1122}}, "organization": {"id": 164}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 362, "owner": {"id": 604}, "assignee": {"id": 572}, "project": {"id": 362, "owner": {"id": 777}, "assignee": {"id": 837}}, "task": {"id": 399, "owner": {"id": 81}, "assignee": {"id": 1070}}, "job": {"id": 329, "assignee": {"id": 1139}}, "organization": {"id": 113}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 351, "owner": {"id": 633}, "assignee": {"id": 515}, "project": {"id": 369, "owner": {"id": 771}, "assignee": {"id": 803}}, "task": {"id": 399, "owner": {"id": 93}, "assignee": {"id": 1053}}, "job": {"id": 393, "assignee": {"id": 1110}}, "organization": {"id": 1250}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 670}, "assignee": {"id": 517}, "project": {"id": 336, "owner": {"id": 784}, "assignee": {"id": 887}}, "task": {"id": 386, "owner": {"id": 72}, "assignee": {"id": 1020}}, "job": {"id": 350, "assignee": {"id": 1174}}, "organization": {"id": 1234}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 638}, "assignee": {"id": 502}, "project": {"id": 354, "owner": {"id": 765}, "assignee": {"id": 894}}, "task": {"id": 356, "owner": {"id": 80}, "assignee": {"id": 1068}}, "job": {"id": 309, "assignee": {"id": 1117}}, "organization": {"id": 184}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 604}, "assignee": {"id": 541}, "project": {"id": 399, "owner": {"id": 760}, "assignee": {"id": 863}}, "task": {"id": 394, "owner": {"id": 99}, "assignee": {"id": 1096}}, "job": {"id": 360, "assignee": {"id": 1158}}, "organization": {"id": 166}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 667}, "assignee": {"id": 549}, "project": {"id": 382, "owner": {"id": 724}, "assignee": {"id": 812}}, "task": {"id": 316, "owner": {"id": 49}, "assignee": {"id": 1075}}, "job": {"id": 300, "assignee": {"id": 1166}}, "organization": {"id": 1211}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 691}, "assignee": {"id": 555}, "project": {"id": 372, "owner": {"id": 725}, "assignee": {"id": 800}}, "task": {"id": 328, "owner": {"id": 63}, "assignee": {"id": 1044}}, "job": {"id": 392, "assignee": {"id": 1187}}, "organization": {"id": 1200}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 650}, "assignee": {"id": 557}, "project": {"id": 381, "owner": {"id": 757}, "assignee": {"id": 818}}, "task": {"id": 359, "owner": {"id": 67}, "assignee": {"id": 1034}}, "job": {"id": 383, "assignee": {"id": 1147}}, "organization": {"id": 140}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "owner": {"id": 681}, "assignee": {"id": 516}, "project": {"id": 323, "owner": {"id": 737}, "assignee": {"id": 800}}, "task": {"id": 367, "owner": {"id": 46}, "assignee": {"id": 1040}}, "job": {"id": 350, "assignee": {"id": 1129}}, "organization": {"id": 172}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "owner": {"id": 698}, "assignee": {"id": 515}, "project": {"id": 367, "owner": {"id": 783}, "assignee": {"id": 818}}, "task": {"id": 370, "owner": {"id": 9}, "assignee": {"id": 1053}}, "job": {"id": 341, "assignee": {"id": 1106}}, "organization": {"id": 1223}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "owner": {"id": 608}, "assignee": {"id": 568}, "project": {"id": 377, "owner": {"id": 746}, "assignee": {"id": 807}}, "task": {"id": 345, "owner": {"id": 23}, "assignee": {"id": 1023}}, "job": {"id": 374, "assignee": {"id": 1194}}, "organization": {"id": 1213}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 627}, "assignee": {"id": 543}, "project": {"id": 321, "owner": {"id": 795}, "assignee": {"id": 861}}, "task": {"id": 385, "owner": {"id": 98}, "assignee": {"id": 1096}}, "job": {"id": 357, "assignee": {"id": 1148}}, "organization": {"id": 160}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 319, "owner": {"id": 667}, "assignee": {"id": 562}, "project": {"id": 327, "owner": {"id": 755}, "assignee": {"id": 855}}, "task": {"id": 368, "owner": {"id": 33}, "assignee": {"id": 1015}}, "job": {"id": 327, "assignee": {"id": 1157}}, "organization": {"id": 172}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 389, "owner": {"id": 600}, "assignee": {"id": 578}, "project": {"id": 355, "owner": {"id": 772}, "assignee": {"id": 886}}, "task": {"id": 381, "owner": {"id": 55}, "assignee": {"id": 1091}}, "job": {"id": 365, "assignee": {"id": 1170}}, "organization": {"id": 1281}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 660}, "assignee": {"id": 565}, "project": {"id": 368, "owner": {"id": 731}, "assignee": {"id": 884}}, "task": {"id": 300, "owner": {"id": 69}, "assignee": {"id": 1004}}, "job": {"id": 353, "assignee": {"id": 1141}}, "organization": {"id": 1268}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 333, "owner": {"id": 636}, "assignee": {"id": 568}, "project": {"id": 375, "owner": {"id": 769}, "assignee": {"id": 859}}, "task": {"id": 366, "owner": {"id": 85}, "assignee": {"id": 1054}}, "job": {"id": 317, "assignee": {"id": 1124}}, "organization": {"id": 113}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 322, "owner": {"id": 605}, "assignee": {"id": 517}, "project": {"id": 346, "owner": {"id": 708}, "assignee": {"id": 836}}, "task": {"id": 361, "owner": {"id": 11}, "assignee": {"id": 1005}}, "job": {"id": 386, "assignee": {"id": 1121}}, "organization": {"id": 157}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 666}, "assignee": {"id": 511}, "project": {"id": 367, "owner": {"id": 717}, "assignee": {"id": 804}}, "task": {"id": 319, "owner": {"id": 11}, "assignee": {"id": 1022}}, "job": {"id": 329, "assignee": {"id": 1140}}, "organization": {"id": 1239}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 605}, "assignee": {"id": 566}, "project": {"id": 326, "owner": {"id": 782}, "assignee": {"id": 843}}, "task": {"id": 328, "owner": {"id": 54}, "assignee": {"id": 1056}}, "job": {"id": 337, "assignee": {"id": 1195}}, "organization": {"id": 1253}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 623}, "assignee": {"id": 541}, "project": {"id": 356, "owner": {"id": 773}, "assignee": {"id": 806}}, "task": {"id": 367, "owner": {"id": 75}, "assignee": {"id": 1024}}, "job": {"id": 320, "assignee": {"id": 1100}}, "organization": {"id": 133}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 327, "owner": {"id": 636}, "assignee": {"id": 527}, "project": {"id": 375, "owner": {"id": 759}, "assignee": {"id": 827}}, "task": {"id": 372, "owner": {"id": 33}, "assignee": {"id": 1053}}, "job": {"id": 343, "assignee": {"id": 1157}}, "organization": {"id": 185}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 356, "owner": {"id": 681}, "assignee": {"id": 528}, "project": {"id": 357, "owner": {"id": 727}, "assignee": {"id": 863}}, "task": {"id": 378, "owner": {"id": 61}, "assignee": {"id": 1022}}, "job": {"id": 366, "assignee": {"id": 1149}}, "organization": {"id": 1281}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 323, "owner": {"id": 698}, "assignee": {"id": 538}, "project": {"id": 336, "owner": {"id": 753}, "assignee": {"id": 819}}, "task": {"id": 303, "owner": {"id": 42}, "assignee": {"id": 1014}}, "job": {"id": 387, "assignee": {"id": 1151}}, "organization": {"id": 1211}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 321, "owner": {"id": 675}, "assignee": {"id": 501}, "project": {"id": 355, "owner": {"id": 752}, "assignee": {"id": 834}}, "task": {"id": 347, "owner": {"id": 3}, "assignee": {"id": 1031}}, "job": {"id": 306, "assignee": {"id": 1142}}, "organization": {"id": 120}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "owner": {"id": 632}, "assignee": {"id": 588}, "project": {"id": 309, "owner": {"id": 796}, "assignee": {"id": 833}}, "task": {"id": 348, "owner": {"id": 36}, "assignee": {"id": 1028}}, "job": {"id": 302, "assignee": {"id": 1182}}, "organization": {"id": 170}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "owner": {"id": 663}, "assignee": {"id": 506}, "project": {"id": 335, "owner": {"id": 749}, "assignee": {"id": 816}}, "task": {"id": 390, "owner": {"id": 19}, "assignee": {"id": 1051}}, "job": {"id": 353, "assignee": {"id": 1193}}, "organization": {"id": 1226}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 657}, "assignee": {"id": 503}, "project": {"id": 310, "owner": {"id": 714}, "assignee": {"id": 816}}, "task": {"id": 370, "owner": {"id": 78}, "assignee": {"id": 1086}}, "job": {"id": 350, "assignee": {"id": 1170}}, "organization": {"id": 1269}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 646}, "assignee": {"id": 533}, "project": {"id": 338, "owner": {"id": 784}, "assignee": {"id": 872}}, "task": {"id": 315, "owner": {"id": 63}, "assignee": {"id": 1005}}, "job": {"id": 331, "assignee": {"id": 1143}}, "organization": {"id": 184}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 629}, "assignee": {"id": 558}, "project": {"id": 327, "owner": {"id": 720}, "assignee": {"id": 820}}, "task": {"id": 337, "owner": {"id": 99}, "assignee": {"id": 1033}}, "job": {"id": 363, "assignee": {"id": 1193}}, "organization": {"id": 147}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "owner": {"id": 656}, "assignee": {"id": 522}, "project": {"id": 397, "owner": {"id": 763}, "assignee": {"id": 811}}, "task": {"id": 366, "owner": {"id": 74}, "assignee": {"id": 1004}}, "job": {"id": 331, "assignee": {"id": 1186}}, "organization": {"id": 1252}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "owner": {"id": 639}, "assignee": {"id": 513}, "project": {"id": 379, "owner": {"id": 750}, "assignee": {"id": 884}}, "task": {"id": 363, "owner": {"id": 4}, "assignee": {"id": 1003}}, "job": {"id": 322, "assignee": {"id": 1185}}, "organization": {"id": 1215}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 316, "owner": {"id": 682}, "assignee": {"id": 520}, "project": {"id": 329, "owner": {"id": 729}, "assignee": {"id": 852}}, "task": {"id": 312, "owner": {"id": 89}, "assignee": {"id": 1073}}, "job": {"id": 344, "assignee": {"id": 1180}}, "organization": {"id": 184}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 600}, "assignee": {"id": 572}, "project": {"id": 345, "owner": {"id": 754}, "assignee": {"id": 805}}, "task": {"id": 334, "owner": {"id": 80}, "assignee": {"id": 1057}}, "job": {"id": 305, "assignee": {"id": 1118}}, "organization": {"id": 130}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 384, "owner": {"id": 628}, "assignee": {"id": 518}, "project": {"id": 308, "owner": {"id": 742}, "assignee": {"id": 815}}, "task": {"id": 322, "owner": {"id": 18}, "assignee": {"id": 1045}}, "job": {"id": 381, "assignee": {"id": 1193}}, "organization": {"id": 1265}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 311, "owner": {"id": 612}, "assignee": {"id": 524}, "project": {"id": 352, "owner": {"id": 786}, "assignee": {"id": 858}}, "task": {"id": 373, "owner": {"id": 54}, "assignee": {"id": 1063}}, "job": {"id": 376, "assignee": {"id": 1179}}, "organization": {"id": 1240}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 301, "owner": {"id": 659}, "assignee": {"id": 562}, "project": {"id": 314, "owner": {"id": 736}, "assignee": {"id": 803}}, "task": {"id": 310, "owner": {"id": 45}, "assignee": {"id": 1000}}, "job": {"id": 342, "assignee": {"id": 1178}}, "organization": {"id": 106}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 372, "owner": {"id": 634}, "assignee": {"id": 536}, "project": {"id": 348, "owner": {"id": 764}, "assignee": {"id": 804}}, "task": {"id": 335, "owner": {"id": 36}, "assignee": {"id": 1011}}, "job": {"id": 379, "assignee": {"id": 1145}}, "organization": {"id": 192}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"id": 387, "owner": {"id": 614}, "assignee": {"id": 550}, "project": {"id": 313, "owner": {"id": 720}, "assignee": {"id": 805}}, "task": {"id": 392, "owner": {"id": 21}, "assignee": {"id": 1058}}, "job": {"id": 348, "assignee": {"id": 1181}}, "organization": {"id": 1231}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 352, "owner": {"id": 694}, "assignee": {"id": 547}, "project": {"id": 362, "owner": {"id": 728}, "assignee": {"id": 840}}, "task": {"id": 306, "owner": {"id": 74}, "assignee": {"id": 1059}}, "job": {"id": 314, "assignee": {"id": 1185}}, "organization": {"id": 1204}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 607}, "assignee": {"id": 520}, "project": {"id": 326, "owner": {"id": 780}, "assignee": {"id": 886}}, "task": {"id": 326, "owner": {"id": 97}, "assignee": {"id": 1007}}, "job": {"id": 367, "assignee": {"id": 1149}}, "organization": {"id": 194}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 316, "owner": {"id": 601}, "assignee": {"id": 552}, "project": {"id": 332, "owner": {"id": 795}, "assignee": {"id": 840}}, "task": {"id": 308, "owner": {"id": 35}, "assignee": {"id": 1081}}, "job": {"id": 317, "assignee": {"id": 1154}}, "organization": {"id": 159}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 397, "owner": {"id": 658}, "assignee": {"id": 530}, "project": {"id": 313, "owner": {"id": 704}, "assignee": {"id": 832}}, "task": {"id": 348, "owner": {"id": 16}, "assignee": {"id": 1049}}, "job": {"id": 328, "assignee": {"id": 1171}}, "organization": {"id": 1297}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 381, "owner": {"id": 624}, "assignee": {"id": 537}, "project": {"id": 396, "owner": {"id": 796}, "assignee": {"id": 830}}, "task": {"id": 380, "owner": {"id": 85}, "assignee": {"id": 1037}}, "job": {"id": 315, "assignee": {"id": 1187}}, "organization": {"id": 1246}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "owner": {"id": 698}, "assignee": {"id": 535}, "project": {"id": 379, "owner": {"id": 726}, "assignee": {"id": 865}}, "task": {"id": 313, "owner": {"id": 35}, "assignee": {"id": 1035}}, "job": {"id": 387, "assignee": {"id": 1119}}, "organization": {"id": 163}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 654}, "assignee": {"id": 587}, "project": {"id": 355, "owner": {"id": 745}, "assignee": {"id": 853}}, "task": {"id": 323, "owner": {"id": 89}, "assignee": {"id": 1056}}, "job": {"id": 377, "assignee": {"id": 1120}}, "organization": {"id": 111}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 627}, "assignee": {"id": 518}, "project": {"id": 347, "owner": {"id": 730}, "assignee": {"id": 869}}, "task": {"id": 330, "owner": {"id": 17}, "assignee": {"id": 1090}}, "job": {"id": 326, "assignee": {"id": 1178}}, "organization": {"id": 1285}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 655}, "assignee": {"id": 501}, "project": {"id": 330, "owner": {"id": 779}, "assignee": {"id": 895}}, "task": {"id": 332, "owner": {"id": 59}, "assignee": {"id": 1044}}, "job": {"id": 359, "assignee": {"id": 1169}}, "organization": {"id": 1273}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "owner": {"id": 661}, "assignee": {"id": 519}, "project": {"id": 321, "owner": {"id": 738}, "assignee": {"id": 885}}, "task": {"id": 363, "owner": {"id": 6}, "assignee": {"id": 1018}}, "job": {"id": 329, "assignee": {"id": 1195}}, "organization": {"id": 193}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "owner": {"id": 626}, "assignee": {"id": 566}, "project": {"id": 358, "owner": {"id": 766}, "assignee": {"id": 878}}, "task": {"id": 310, "owner": {"id": 41}, "assignee": {"id": 1008}}, "job": {"id": 390, "assignee": {"id": 1133}}, "organization": {"id": 103}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 664}, "assignee": {"id": 547}, "project": {"id": 397, "owner": {"id": 733}, "assignee": {"id": 837}}, "task": {"id": 387, "owner": {"id": 53}, "assignee": {"id": 1079}}, "job": {"id": 359, "assignee": {"id": 1167}}, "organization": {"id": 1264}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "owner": {"id": 663}, "assignee": {"id": 518}, "project": {"id": 335, "owner": {"id": 715}, "assignee": {"id": 843}}, "task": {"id": 387, "owner": {"id": 31}, "assignee": {"id": 1087}}, "job": {"id": 366, "assignee": {"id": 1113}}, "organization": {"id": 1246}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 388, "owner": {"id": 645}, "assignee": {"id": 563}, "project": {"id": 399, "owner": {"id": 767}, "assignee": {"id": 856}}, "task": {"id": 397, "owner": {"id": 64}, "assignee": {"id": 1042}}, "job": {"id": 330, "assignee": {"id": 1125}}, "organization": {"id": 136}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 699}, "assignee": {"id": 552}, "project": {"id": 317, "owner": {"id": 735}, "assignee": {"id": 817}}, "task": {"id": 357, "owner": {"id": 43}, "assignee": {"id": 1002}}, "job": {"id": 351, "assignee": {"id": 1110}}, "organization": {"id": 163}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 341, "owner": {"id": 692}, "assignee": {"id": 585}, "project": {"id": 364, "owner": {"id": 712}, "assignee": {"id": 851}}, "task": {"id": 339, "owner": {"id": 20}, "assignee": {"id": 1015}}, "job": {"id": 313, "assignee": {"id": 1184}}, "organization": {"id": 1250}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 312, "owner": {"id": 687}, "assignee": {"id": 599}, "project": {"id": 329, "owner": {"id": 736}, "assignee": {"id": 869}}, "task": {"id": 342, "owner": {"id": 44}, "assignee": {"id": 1095}}, "job": {"id": 377, "assignee": {"id": 1143}}, "organization": {"id": 1276}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 336, "owner": {"id": 600}, "assignee": {"id": 531}, "project": {"id": 344, "owner": {"id": 779}, "assignee": {"id": 811}}, "task": {"id": 322, "owner": {"id": 48}, "assignee": {"id": 1087}}, "job": {"id": 383, "assignee": {"id": 1160}}, "organization": {"id": 153}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 376, "owner": {"id": 617}, "assignee": {"id": 516}, "project": {"id": 379, "owner": {"id": 766}, "assignee": {"id": 841}}, "task": {"id": 308, "owner": {"id": 28}, "assignee": {"id": 1094}}, "job": {"id": 322, "assignee": {"id": 1161}}, "organization": {"id": 184}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 301, "owner": {"id": 616}, "assignee": {"id": 515}, "project": {"id": 391, "owner": {"id": 701}, "assignee": {"id": 819}}, "task": {"id": 343, "owner": {"id": 5}, "assignee": {"id": 1016}}, "job": {"id": 350, "assignee": {"id": 1106}}, "organization": {"id": 1225}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 398, "owner": {"id": 672}, "assignee": {"id": 593}, "project": {"id": 373, "owner": {"id": 789}, "assignee": {"id": 895}}, "task": {"id": 327, "owner": {"id": 82}, "assignee": {"id": 1091}}, "job": {"id": 331, "assignee": {"id": 1156}}, "organization": {"id": 1254}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 651}, "assignee": {"id": 507}, "project": {"id": 327, "owner": {"id": 792}, "assignee": {"id": 855}}, "task": {"id": 342, "owner": {"id": 980}, "assignee": {"id": 63}}, "job": {"id": 343, "assignee": {"id": 1161}}, "organization": {"id": 158}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 318, "owner": {"id": 661}, "assignee": {"id": 501}, "project": {"id": 386, "owner": {"id": 729}, "assignee": {"id": 845}}, "task": {"id": 315, "owner": {"id": 996}, "assignee": {"id": 92}}, "job": {"id": 377, "assignee": {"id": 1188}}, "organization": {"id": 173}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 606}, "assignee": {"id": 506}, "project": {"id": 322, "owner": {"id": 721}, "assignee": {"id": 856}}, "task": {"id": 324, "owner": {"id": 975}, "assignee": {"id": 82}}, "job": {"id": 303, "assignee": {"id": 1199}}, "organization": {"id": 1222}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 611}, "assignee": {"id": 534}, "project": {"id": 301, "owner": {"id": 755}, "assignee": {"id": 826}}, "task": {"id": 332, "owner": {"id": 949}, "assignee": {"id": 76}}, "job": {"id": 384, "assignee": {"id": 1171}}, "organization": {"id": 1269}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "owner": {"id": 600}, "assignee": {"id": 584}, "project": {"id": 362, "owner": {"id": 748}, "assignee": {"id": 885}}, "task": {"id": 336, "owner": {"id": 922}, "assignee": {"id": 55}}, "job": {"id": 389, "assignee": {"id": 1156}}, "organization": {"id": 150}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "owner": {"id": 634}, "assignee": {"id": 537}, "project": {"id": 335, "owner": {"id": 764}, "assignee": {"id": 883}}, "task": {"id": 347, "owner": {"id": 951}, "assignee": {"id": 34}}, "job": {"id": 307, "assignee": {"id": 1105}}, "organization": {"id": 180}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "owner": {"id": 664}, "assignee": {"id": 577}, "project": {"id": 335, "owner": {"id": 798}, "assignee": {"id": 897}}, "task": {"id": 348, "owner": {"id": 936}, "assignee": {"id": 97}}, "job": {"id": 332, "assignee": {"id": 1164}}, "organization": {"id": 1205}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 611}, "assignee": {"id": 574}, "project": {"id": 393, "owner": {"id": 711}, "assignee": {"id": 848}}, "task": {"id": 368, "owner": {"id": 983}, "assignee": {"id": 71}}, "job": {"id": 350, "assignee": {"id": 1103}}, "organization": {"id": 1211}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 678}, "assignee": {"id": 524}, "project": {"id": 326, "owner": {"id": 774}, "assignee": {"id": 843}}, "task": {"id": 303, "owner": {"id": 988}, "assignee": {"id": 57}}, "job": {"id": 344, "assignee": {"id": 1142}}, "organization": {"id": 168}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "owner": {"id": 650}, "assignee": {"id": 547}, "project": {"id": 378, "owner": {"id": 734}, "assignee": {"id": 813}}, "task": {"id": 367, "owner": {"id": 981}, "assignee": {"id": 99}}, "job": {"id": 384, "assignee": {"id": 1172}}, "organization": {"id": 166}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 633}, "assignee": {"id": 545}, "project": {"id": 372, "owner": {"id": 797}, "assignee": {"id": 887}}, "task": {"id": 346, "owner": {"id": 963}, "assignee": {"id": 0}}, "job": {"id": 373, "assignee": {"id": 1148}}, "organization": {"id": 1257}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 658}, "assignee": {"id": 543}, "project": {"id": 346, "owner": {"id": 745}, "assignee": {"id": 866}}, "task": {"id": 301, "owner": {"id": 988}, "assignee": {"id": 58}}, "job": {"id": 395, "assignee": {"id": 1154}}, "organization": {"id": 1261}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 315, "owner": {"id": 659}, "assignee": {"id": 502}, "project": {"id": 377, "owner": {"id": 780}, "assignee": {"id": 857}}, "task": {"id": 349, "owner": {"id": 990}, "assignee": {"id": 52}}, "job": {"id": 391, "assignee": {"id": 1148}}, "organization": {"id": 197}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 370, "owner": {"id": 637}, "assignee": {"id": 588}, "project": {"id": 310, "owner": {"id": 786}, "assignee": {"id": 833}}, "task": {"id": 351, "owner": {"id": 977}, "assignee": {"id": 73}}, "job": {"id": 315, "assignee": {"id": 1147}}, "organization": {"id": 113}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 368, "owner": {"id": 683}, "assignee": {"id": 514}, "project": {"id": 340, "owner": {"id": 799}, "assignee": {"id": 802}}, "task": {"id": 325, "owner": {"id": 998}, "assignee": {"id": 44}}, "job": {"id": 360, "assignee": {"id": 1173}}, "organization": {"id": 1283}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 379, "owner": {"id": 664}, "assignee": {"id": 552}, "project": {"id": 398, "owner": {"id": 787}, "assignee": {"id": 849}}, "task": {"id": 390, "owner": {"id": 901}, "assignee": {"id": 68}}, "job": {"id": 379, "assignee": {"id": 1131}}, "organization": {"id": 1268}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 345, "owner": {"id": 681}, "assignee": {"id": 519}, "project": {"id": 359, "owner": {"id": 735}, "assignee": {"id": 840}}, "task": {"id": 365, "owner": {"id": 985}, "assignee": {"id": 0}}, "job": {"id": 308, "assignee": {"id": 1153}}, "organization": {"id": 113}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 301, "owner": {"id": 691}, "assignee": {"id": 513}, "project": {"id": 302, "owner": {"id": 790}, "assignee": {"id": 858}}, "task": {"id": 333, "owner": {"id": 915}, "assignee": {"id": 55}}, "job": {"id": 379, "assignee": {"id": 1124}}, "organization": {"id": 168}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 305, "owner": {"id": 604}, "assignee": {"id": 500}, "project": {"id": 375, "owner": {"id": 716}, "assignee": {"id": 858}}, "task": {"id": 311, "owner": {"id": 914}, "assignee": {"id": 55}}, "job": {"id": 321, "assignee": {"id": 1160}}, "organization": {"id": 1247}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 381, "owner": {"id": 693}, "assignee": {"id": 507}, "project": {"id": 321, "owner": {"id": 779}, "assignee": {"id": 898}}, "task": {"id": 316, "owner": {"id": 941}, "assignee": {"id": 53}}, "job": {"id": 369, "assignee": {"id": 1172}}, "organization": {"id": 1291}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 366, "owner": {"id": 630}, "assignee": {"id": 592}, "project": {"id": 385, "owner": {"id": 721}, "assignee": {"id": 815}}, "task": {"id": 397, "owner": {"id": 910}, "assignee": {"id": 37}}, "job": {"id": 328, "assignee": {"id": 1128}}, "organization": {"id": 100}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 390, "owner": {"id": 681}, "assignee": {"id": 578}, "project": {"id": 399, "owner": {"id": 705}, "assignee": {"id": 898}}, "task": {"id": 397, "owner": {"id": 946}, "assignee": {"id": 77}}, "job": {"id": 366, "assignee": {"id": 1132}}, "organization": {"id": 146}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 696}, "assignee": {"id": 580}, "project": {"id": 333, "owner": {"id": 788}, "assignee": {"id": 886}}, "task": {"id": 397, "owner": {"id": 951}, "assignee": {"id": 91}}, "job": {"id": 383, "assignee": {"id": 1157}}, "organization": {"id": 1284}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 357, "owner": {"id": 649}, "assignee": {"id": 586}, "project": {"id": 318, "owner": {"id": 774}, "assignee": {"id": 854}}, "task": {"id": 389, "owner": {"id": 948}, "assignee": {"id": 65}}, "job": {"id": 392, "assignee": {"id": 1162}}, "organization": {"id": 1226}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "owner": {"id": 621}, "assignee": {"id": 541}, "project": {"id": 300, "owner": {"id": 745}, "assignee": {"id": 833}}, "task": {"id": 363, "owner": {"id": 970}, "assignee": {"id": 61}}, "job": {"id": 346, "assignee": {"id": 1146}}, "organization": {"id": 164}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "owner": {"id": 694}, "assignee": {"id": 532}, "project": {"id": 342, "owner": {"id": 767}, "assignee": {"id": 802}}, "task": {"id": 382, "owner": {"id": 961}, "assignee": {"id": 63}}, "job": {"id": 358, "assignee": {"id": 1191}}, "organization": {"id": 170}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "owner": {"id": 670}, "assignee": {"id": 515}, "project": {"id": 312, "owner": {"id": 797}, "assignee": {"id": 852}}, "task": {"id": 346, "owner": {"id": 928}, "assignee": {"id": 91}}, "job": {"id": 329, "assignee": {"id": 1125}}, "organization": {"id": 1243}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "owner": {"id": 685}, "assignee": {"id": 533}, "project": {"id": 391, "owner": {"id": 703}, "assignee": {"id": 855}}, "task": {"id": 312, "owner": {"id": 908}, "assignee": {"id": 1}}, "job": {"id": 334, "assignee": {"id": 1159}}, "organization": {"id": 1259}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 369, "owner": {"id": 648}, "assignee": {"id": 581}, "project": {"id": 363, "owner": {"id": 714}, "assignee": {"id": 817}}, "task": {"id": 353, "owner": {"id": 997}, "assignee": {"id": 82}}, "job": {"id": 317, "assignee": {"id": 1190}}, "organization": {"id": 158}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "owner": {"id": 686}, "assignee": {"id": 516}, "project": {"id": 374, "owner": {"id": 770}, "assignee": {"id": 853}}, "task": {"id": 393, "owner": {"id": 951}, "assignee": {"id": 49}}, "job": {"id": 381, "assignee": {"id": 1162}}, "organization": {"id": 165}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "owner": {"id": 636}, "assignee": {"id": 559}, "project": {"id": 327, "owner": {"id": 792}, "assignee": {"id": 841}}, "task": {"id": 316, "owner": {"id": 957}, "assignee": {"id": 67}}, "job": {"id": 332, "assignee": {"id": 1188}}, "organization": {"id": 1269}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "owner": {"id": 696}, "assignee": {"id": 505}, "project": {"id": 397, "owner": {"id": 743}, "assignee": {"id": 854}}, "task": {"id": 376, "owner": {"id": 986}, "assignee": {"id": 37}}, "job": {"id": 357, "assignee": {"id": 1168}}, "organization": {"id": 1221}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 305, "owner": {"id": 653}, "assignee": {"id": 577}, "project": {"id": 302, "owner": {"id": 746}, "assignee": {"id": 849}}, "task": {"id": 347, "owner": {"id": 938}, "assignee": {"id": 19}}, "job": {"id": 316, "assignee": {"id": 1134}}, "organization": {"id": 180}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 620}, "assignee": {"id": 527}, "project": {"id": 313, "owner": {"id": 728}, "assignee": {"id": 827}}, "task": {"id": 379, "owner": {"id": 976}, "assignee": {"id": 38}}, "job": {"id": 381, "assignee": {"id": 1197}}, "organization": {"id": 136}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 384, "owner": {"id": 681}, "assignee": {"id": 503}, "project": {"id": 334, "owner": {"id": 718}, "assignee": {"id": 883}}, "task": {"id": 366, "owner": {"id": 954}, "assignee": {"id": 83}}, "job": {"id": 328, "assignee": {"id": 1191}}, "organization": {"id": 1268}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 675}, "assignee": {"id": 565}, "project": {"id": 327, "owner": {"id": 707}, "assignee": {"id": 857}}, "task": {"id": 395, "owner": {"id": 996}, "assignee": {"id": 38}}, "job": {"id": 315, "assignee": {"id": 1112}}, "organization": {"id": 1299}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 369, "owner": {"id": 643}, "assignee": {"id": 554}, "project": {"id": 394, "owner": {"id": 720}, "assignee": {"id": 847}}, "task": {"id": 373, "owner": {"id": 907}, "assignee": {"id": 64}}, "job": {"id": 385, "assignee": {"id": 1129}}, "organization": {"id": 167}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 639}, "assignee": {"id": 578}, "project": {"id": 387, "owner": {"id": 751}, "assignee": {"id": 870}}, "task": {"id": 376, "owner": {"id": 952}, "assignee": {"id": 78}}, "job": {"id": 328, "assignee": {"id": 1139}}, "organization": {"id": 192}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 94, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 365, "owner": {"id": 609}, "assignee": {"id": 573}, "project": {"id": 325, "owner": {"id": 791}, "assignee": {"id": 835}}, "task": {"id": 316, "owner": {"id": 902}, "assignee": {"id": 94}}, "job": {"id": 376, "assignee": {"id": 1183}}, "organization": {"id": 1277}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 653}, "assignee": {"id": 562}, "project": {"id": 354, "owner": {"id": 768}, "assignee": {"id": 868}}, "task": {"id": 313, "owner": {"id": 962}, "assignee": {"id": 55}}, "job": {"id": 316, "assignee": {"id": 1128}}, "organization": {"id": 1228}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 327, "owner": {"id": 653}, "assignee": {"id": 524}, "project": {"id": 323, "owner": {"id": 779}, "assignee": {"id": 816}}, "task": {"id": 378, "owner": {"id": 968}, "assignee": {"id": 31}}, "job": {"id": 381, "assignee": {"id": 1105}}, "organization": {"id": 171}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 318, "owner": {"id": 638}, "assignee": {"id": 567}, "project": {"id": 338, "owner": {"id": 781}, "assignee": {"id": 853}}, "task": {"id": 390, "owner": {"id": 982}, "assignee": {"id": 16}}, "job": {"id": 325, "assignee": {"id": 1114}}, "organization": {"id": 174}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 645}, "assignee": {"id": 572}, "project": {"id": 361, "owner": {"id": 736}, "assignee": {"id": 830}}, "task": {"id": 346, "owner": {"id": 905}, "assignee": {"id": 58}}, "job": {"id": 334, "assignee": {"id": 1197}}, "organization": {"id": 1262}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 326, "owner": {"id": 629}, "assignee": {"id": 587}, "project": {"id": 370, "owner": {"id": 716}, "assignee": {"id": 865}}, "task": {"id": 385, "owner": {"id": 978}, "assignee": {"id": 29}}, "job": {"id": 387, "assignee": {"id": 1194}}, "organization": {"id": 1247}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 627}, "assignee": {"id": 515}, "project": {"id": 340, "owner": {"id": 727}, "assignee": {"id": 828}}, "task": {"id": 392, "owner": {"id": 945}, "assignee": {"id": 40}}, "job": {"id": 321, "assignee": {"id": 1179}}, "organization": {"id": 182}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "owner": {"id": 691}, "assignee": {"id": 551}, "project": {"id": 349, "owner": {"id": 724}, "assignee": {"id": 882}}, "task": {"id": 383, "owner": {"id": 994}, "assignee": {"id": 58}}, "job": {"id": 390, "assignee": {"id": 1152}}, "organization": {"id": 185}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "owner": {"id": 675}, "assignee": {"id": 595}, "project": {"id": 334, "owner": {"id": 794}, "assignee": {"id": 869}}, "task": {"id": 367, "owner": {"id": 943}, "assignee": {"id": 79}}, "job": {"id": 327, "assignee": {"id": 1123}}, "organization": {"id": 1223}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 602}, "assignee": {"id": 560}, "project": {"id": 383, "owner": {"id": 713}, "assignee": {"id": 857}}, "task": {"id": 372, "owner": {"id": 929}, "assignee": {"id": 15}}, "job": {"id": 306, "assignee": {"id": 1189}}, "organization": {"id": 1203}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 625}, "assignee": {"id": 580}, "project": {"id": 322, "owner": {"id": 737}, "assignee": {"id": 813}}, "task": {"id": 343, "owner": {"id": 973}, "assignee": {"id": 94}}, "job": {"id": 341, "assignee": {"id": 1147}}, "organization": {"id": 171}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "owner": {"id": 606}, "assignee": {"id": 500}, "project": {"id": 347, "owner": {"id": 777}, "assignee": {"id": 889}}, "task": {"id": 366, "owner": {"id": 956}, "assignee": {"id": 4}}, "job": {"id": 316, "assignee": {"id": 1111}}, "organization": {"id": 128}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "owner": {"id": 602}, "assignee": {"id": 591}, "project": {"id": 366, "owner": {"id": 738}, "assignee": {"id": 813}}, "task": {"id": 399, "owner": {"id": 928}, "assignee": {"id": 42}}, "job": {"id": 374, "assignee": {"id": 1180}}, "organization": {"id": 1286}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "owner": {"id": 650}, "assignee": {"id": 598}, "project": {"id": 363, "owner": {"id": 712}, "assignee": {"id": 824}}, "task": {"id": 316, "owner": {"id": 997}, "assignee": {"id": 15}}, "job": {"id": 313, "assignee": {"id": 1132}}, "organization": {"id": 1212}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 337, "owner": {"id": 657}, "assignee": {"id": 515}, "project": {"id": 303, "owner": {"id": 708}, "assignee": {"id": 825}}, "task": {"id": 345, "owner": {"id": 975}, "assignee": {"id": 74}}, "job": {"id": 399, "assignee": {"id": 1184}}, "organization": {"id": 127}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 348, "owner": {"id": 603}, "assignee": {"id": 527}, "project": {"id": 397, "owner": {"id": 799}, "assignee": {"id": 864}}, "task": {"id": 359, "owner": {"id": 910}, "assignee": {"id": 36}}, "job": {"id": 329, "assignee": {"id": 1146}}, "organization": {"id": 146}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 614}, "assignee": {"id": 531}, "project": {"id": 364, "owner": {"id": 785}, "assignee": {"id": 858}}, "task": {"id": 347, "owner": {"id": 994}, "assignee": {"id": 81}}, "job": {"id": 322, "assignee": {"id": 1151}}, "organization": {"id": 1258}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 621}, "assignee": {"id": 547}, "project": {"id": 374, "owner": {"id": 798}, "assignee": {"id": 846}}, "task": {"id": 371, "owner": {"id": 927}, "assignee": {"id": 42}}, "job": {"id": 367, "assignee": {"id": 1102}}, "organization": {"id": 1279}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 661}, "assignee": {"id": 526}, "project": {"id": 347, "owner": {"id": 701}, "assignee": {"id": 875}}, "task": {"id": 317, "owner": {"id": 973}, "assignee": {"id": 15}}, "job": {"id": 318, "assignee": {"id": 1104}}, "organization": {"id": 111}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 357, "owner": {"id": 620}, "assignee": {"id": 593}, "project": {"id": 390, "owner": {"id": 749}, "assignee": {"id": 847}}, "task": {"id": 333, "owner": {"id": 983}, "assignee": {"id": 55}}, "job": {"id": 348, "assignee": {"id": 1106}}, "organization": {"id": 185}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"id": 393, "owner": {"id": 684}, "assignee": {"id": 576}, "project": {"id": 379, "owner": {"id": 793}, "assignee": {"id": 873}}, "task": {"id": 310, "owner": {"id": 958}, "assignee": {"id": 56}}, "job": {"id": 349, "assignee": {"id": 1116}}, "organization": {"id": 1287}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 391, "owner": {"id": 696}, "assignee": {"id": 576}, "project": {"id": 310, "owner": {"id": 749}, "assignee": {"id": 866}}, "task": {"id": 347, "owner": {"id": 929}, "assignee": {"id": 0}}, "job": {"id": 303, "assignee": {"id": 1122}}, "organization": {"id": 1230}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 682}, "assignee": {"id": 562}, "project": {"id": 387, "owner": {"id": 703}, "assignee": {"id": 808}}, "task": {"id": 326, "owner": {"id": 950}, "assignee": {"id": 95}}, "job": {"id": 356, "assignee": {"id": 1112}}, "organization": {"id": 199}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 377, "owner": {"id": 615}, "assignee": {"id": 566}, "project": {"id": 392, "owner": {"id": 732}, "assignee": {"id": 875}}, "task": {"id": 332, "owner": {"id": 921}, "assignee": {"id": 37}}, "job": {"id": 317, "assignee": {"id": 1167}}, "organization": {"id": 156}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 688}, "assignee": {"id": 575}, "project": {"id": 324, "owner": {"id": 768}, "assignee": {"id": 829}}, "task": {"id": 324, "owner": {"id": 974}, "assignee": {"id": 76}}, "job": {"id": 377, "assignee": {"id": 1148}}, "organization": {"id": 1205}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 335, "owner": {"id": 621}, "assignee": {"id": 517}, "project": {"id": 386, "owner": {"id": 700}, "assignee": {"id": 868}}, "task": {"id": 350, "owner": {"id": 962}, "assignee": {"id": 35}}, "job": {"id": 349, "assignee": {"id": 1112}}, "organization": {"id": 1213}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "owner": {"id": 648}, "assignee": {"id": 524}, "project": {"id": 332, "owner": {"id": 707}, "assignee": {"id": 891}}, "task": {"id": 371, "owner": {"id": 964}, "assignee": {"id": 71}}, "job": {"id": 391, "assignee": {"id": 1156}}, "organization": {"id": 137}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "owner": {"id": 656}, "assignee": {"id": 586}, "project": {"id": 317, "owner": {"id": 700}, "assignee": {"id": 877}}, "task": {"id": 365, "owner": {"id": 903}, "assignee": {"id": 82}}, "job": {"id": 329, "assignee": {"id": 1125}}, "organization": {"id": 162}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "owner": {"id": 624}, "assignee": {"id": 512}, "project": {"id": 327, "owner": {"id": 738}, "assignee": {"id": 894}}, "task": {"id": 317, "owner": {"id": 947}, "assignee": {"id": 54}}, "job": {"id": 363, "assignee": {"id": 1132}}, "organization": {"id": 1268}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "owner": {"id": 671}, "assignee": {"id": 503}, "project": {"id": 387, "owner": {"id": 750}, "assignee": {"id": 829}}, "task": {"id": 326, "owner": {"id": 913}, "assignee": {"id": 85}}, "job": {"id": 310, "assignee": {"id": 1191}}, "organization": {"id": 1225}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "owner": {"id": 608}, "assignee": {"id": 596}, "project": {"id": 300, "owner": {"id": 735}, "assignee": {"id": 812}}, "task": {"id": 373, "owner": {"id": 922}, "assignee": {"id": 18}}, "job": {"id": 380, "assignee": {"id": 1170}}, "organization": {"id": 103}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "owner": {"id": 640}, "assignee": {"id": 594}, "project": {"id": 354, "owner": {"id": 751}, "assignee": {"id": 820}}, "task": {"id": 368, "owner": {"id": 965}, "assignee": {"id": 3}}, "job": {"id": 322, "assignee": {"id": 1171}}, "organization": {"id": 144}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 687}, "assignee": {"id": 521}, "project": {"id": 326, "owner": {"id": 781}, "assignee": {"id": 884}}, "task": {"id": 350, "owner": {"id": 987}, "assignee": {"id": 99}}, "job": {"id": 381, "assignee": {"id": 1145}}, "organization": {"id": 1219}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "owner": {"id": 685}, "assignee": {"id": 591}, "project": {"id": 346, "owner": {"id": 727}, "assignee": {"id": 819}}, "task": {"id": 334, "owner": {"id": 920}, "assignee": {"id": 89}}, "job": {"id": 354, "assignee": {"id": 1172}}, "organization": {"id": 1259}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 373, "owner": {"id": 681}, "assignee": {"id": 543}, "project": {"id": 376, "owner": {"id": 708}, "assignee": {"id": 831}}, "task": {"id": 306, "owner": {"id": 921}, "assignee": {"id": 86}}, "job": {"id": 372, "assignee": {"id": 1158}}, "organization": {"id": 136}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 375, "owner": {"id": 631}, "assignee": {"id": 532}, "project": {"id": 327, "owner": {"id": 733}, "assignee": {"id": 808}}, "task": {"id": 394, "owner": {"id": 933}, "assignee": {"id": 63}}, "job": {"id": 382, "assignee": {"id": 1135}}, "organization": {"id": 156}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 341, "owner": {"id": 659}, "assignee": {"id": 585}, "project": {"id": 398, "owner": {"id": 774}, "assignee": {"id": 873}}, "task": {"id": 331, "owner": {"id": 950}, "assignee": {"id": 33}}, "job": {"id": 392, "assignee": {"id": 1170}}, "organization": {"id": 1221}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 380, "owner": {"id": 658}, "assignee": {"id": 520}, "project": {"id": 338, "owner": {"id": 764}, "assignee": {"id": 886}}, "task": {"id": 317, "owner": {"id": 949}, "assignee": {"id": 66}}, "job": {"id": 323, "assignee": {"id": 1146}}, "organization": {"id": 1276}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 354, "owner": {"id": 624}, "assignee": {"id": 575}, "project": {"id": 359, "owner": {"id": 715}, "assignee": {"id": 862}}, "task": {"id": 398, "owner": {"id": 955}, "assignee": {"id": 6}}, "job": {"id": 358, "assignee": {"id": 1169}}, "organization": {"id": 173}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 345, "owner": {"id": 612}, "assignee": {"id": 554}, "project": {"id": 312, "owner": {"id": 744}, "assignee": {"id": 808}}, "task": {"id": 306, "owner": {"id": 951}, "assignee": {"id": 54}}, "job": {"id": 310, "assignee": {"id": 1187}}, "organization": {"id": 130}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 382, "owner": {"id": 622}, "assignee": {"id": 592}, "project": {"id": 352, "owner": {"id": 785}, "assignee": {"id": 813}}, "task": {"id": 320, "owner": {"id": 915}, "assignee": {"id": 75}}, "job": {"id": 387, "assignee": {"id": 1101}}, "organization": {"id": 1286}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 369, "owner": {"id": 683}, "assignee": {"id": 517}, "project": {"id": 370, "owner": {"id": 768}, "assignee": {"id": 845}}, "task": {"id": 316, "owner": {"id": 966}, "assignee": {"id": 88}}, "job": {"id": 325, "assignee": {"id": 1171}}, "organization": {"id": 1285}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 324, "owner": {"id": 649}, "assignee": {"id": 593}, "project": {"id": 352, "owner": {"id": 710}, "assignee": {"id": 880}}, "task": {"id": 366, "owner": {"id": 988}, "assignee": {"id": 16}}, "job": {"id": 333, "assignee": {"id": 1171}}, "organization": {"id": 123}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 333, "owner": {"id": 616}, "assignee": {"id": 519}, "project": {"id": 391, "owner": {"id": 777}, "assignee": {"id": 874}}, "task": {"id": 330, "owner": {"id": 949}, "assignee": {"id": 38}}, "job": {"id": 353, "assignee": {"id": 1157}}, "organization": {"id": 104}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 375, "owner": {"id": 679}, "assignee": {"id": 578}, "project": {"id": 372, "owner": {"id": 735}, "assignee": {"id": 872}}, "task": {"id": 362, "owner": {"id": 914}, "assignee": {"id": 95}}, "job": {"id": 344, "assignee": {"id": 1199}}, "organization": {"id": 1240}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 339, "owner": {"id": 678}, "assignee": {"id": 532}, "project": {"id": 322, "owner": {"id": 707}, "assignee": {"id": 861}}, "task": {"id": 338, "owner": {"id": 934}, "assignee": {"id": 67}}, "job": {"id": 378, "assignee": {"id": 1117}}, "organization": {"id": 1211}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "owner": {"id": 650}, "assignee": {"id": 574}, "project": {"id": 356, "owner": {"id": 703}, "assignee": {"id": 800}}, "task": {"id": 381, "owner": {"id": 981}, "assignee": {"id": 63}}, "job": {"id": 396, "assignee": {"id": 1167}}, "organization": {"id": 164}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 61, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "owner": {"id": 644}, "assignee": {"id": 533}, "project": {"id": 309, "owner": {"id": 717}, "assignee": {"id": 825}}, "task": {"id": 360, "owner": {"id": 944}, "assignee": {"id": 61}}, "job": {"id": 365, "assignee": {"id": 1123}}, "organization": {"id": 183}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "owner": {"id": 673}, "assignee": {"id": 586}, "project": {"id": 337, "owner": {"id": 798}, "assignee": {"id": 849}}, "task": {"id": 380, "owner": {"id": 956}, "assignee": {"id": 7}}, "job": {"id": 340, "assignee": {"id": 1147}}, "organization": {"id": 1218}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "owner": {"id": 680}, "assignee": {"id": 599}, "project": {"id": 336, "owner": {"id": 784}, "assignee": {"id": 845}}, "task": {"id": 366, "owner": {"id": 919}, "assignee": {"id": 62}}, "job": {"id": 350, "assignee": {"id": 1135}}, "organization": {"id": 1253}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "owner": {"id": 639}, "assignee": {"id": 579}, "project": {"id": 345, "owner": {"id": 761}, "assignee": {"id": 865}}, "task": {"id": 385, "owner": {"id": 917}, "assignee": {"id": 73}}, "job": {"id": 384, "assignee": {"id": 1117}}, "organization": {"id": 150}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 677}, "assignee": {"id": 539}, "project": {"id": 359, "owner": {"id": 737}, "assignee": {"id": 800}}, "task": {"id": 366, "owner": {"id": 996}, "assignee": {"id": 42}}, "job": {"id": 363, "assignee": {"id": 1165}}, "organization": {"id": 117}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "owner": {"id": 602}, "assignee": {"id": 526}, "project": {"id": 376, "owner": {"id": 767}, "assignee": {"id": 855}}, "task": {"id": 328, "owner": {"id": 916}, "assignee": {"id": 87}}, "job": {"id": 394, "assignee": {"id": 1130}}, "organization": {"id": 1246}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 622}, "assignee": {"id": 548}, "project": {"id": 360, "owner": {"id": 720}, "assignee": {"id": 842}}, "task": {"id": 397, "owner": {"id": 980}, "assignee": {"id": 7}}, "job": {"id": 381, "assignee": {"id": 1180}}, "organization": {"id": 1258}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 348, "owner": {"id": 628}, "assignee": {"id": 504}, "project": {"id": 355, "owner": {"id": 766}, "assignee": {"id": 814}}, "task": {"id": 352, "owner": {"id": 955}, "assignee": {"id": 90}}, "job": {"id": 382, "assignee": {"id": 1122}}, "organization": {"id": 152}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 384, "owner": {"id": 635}, "assignee": {"id": 502}, "project": {"id": 361, "owner": {"id": 739}, "assignee": {"id": 801}}, "task": {"id": 311, "owner": {"id": 941}, "assignee": {"id": 44}}, "job": {"id": 367, "assignee": {"id": 1149}}, "organization": {"id": 184}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 307, "owner": {"id": 621}, "assignee": {"id": 526}, "project": {"id": 331, "owner": {"id": 749}, "assignee": {"id": 844}}, "task": {"id": 352, "owner": {"id": 912}, "assignee": {"id": 43}}, "job": {"id": 358, "assignee": {"id": 1134}}, "organization": {"id": 1275}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 318, "owner": {"id": 616}, "assignee": {"id": 527}, "project": {"id": 363, "owner": {"id": 784}, "assignee": {"id": 873}}, "task": {"id": 313, "owner": {"id": 940}, "assignee": {"id": 38}}, "job": {"id": 330, "assignee": {"id": 1187}}, "organization": {"id": 1279}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 365, "owner": {"id": 602}, "assignee": {"id": 578}, "project": {"id": 393, "owner": {"id": 764}, "assignee": {"id": 894}}, "task": {"id": 395, "owner": {"id": 972}, "assignee": {"id": 64}}, "job": {"id": 369, "assignee": {"id": 1118}}, "organization": {"id": 173}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 336, "owner": {"id": 607}, "assignee": {"id": 554}, "project": {"id": 354, "owner": {"id": 717}, "assignee": {"id": 837}}, "task": {"id": 352, "owner": {"id": 903}, "assignee": {"id": 63}}, "job": {"id": 325, "assignee": {"id": 1170}}, "organization": {"id": 121}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 610}, "assignee": {"id": 542}, "project": {"id": 391, "owner": {"id": 759}, "assignee": {"id": 813}}, "task": {"id": 314, "owner": {"id": 955}, "assignee": {"id": 0}}, "job": {"id": 348, "assignee": {"id": 1182}}, "organization": {"id": 1268}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 326, "owner": {"id": 664}, "assignee": {"id": 581}, "project": {"id": 308, "owner": {"id": 722}, "assignee": {"id": 889}}, "task": {"id": 321, "owner": {"id": 967}, "assignee": {"id": 99}}, "job": {"id": 362, "assignee": {"id": 1181}}, "organization": {"id": 1277}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 374, "owner": {"id": 676}, "assignee": {"id": 517}, "project": {"id": 354, "owner": {"id": 797}, "assignee": {"id": 810}}, "task": {"id": 326, "owner": {"id": 988}, "assignee": {"id": 1053}}, "job": {"id": 366, "assignee": {"id": 31}}, "organization": {"id": 199}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 345, "owner": {"id": 607}, "assignee": {"id": 500}, "project": {"id": 306, "owner": {"id": 745}, "assignee": {"id": 894}}, "task": {"id": 342, "owner": {"id": 918}, "assignee": {"id": 1079}}, "job": {"id": 327, "assignee": {"id": 59}}, "organization": {"id": 189}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 375, "owner": {"id": 654}, "assignee": {"id": 528}, "project": {"id": 301, "owner": {"id": 792}, "assignee": {"id": 867}}, "task": {"id": 338, "owner": {"id": 977}, "assignee": {"id": 1037}}, "job": {"id": 361, "assignee": {"id": 30}}, "organization": {"id": 1235}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 371, "owner": {"id": 675}, "assignee": {"id": 596}, "project": {"id": 337, "owner": {"id": 765}, "assignee": {"id": 826}}, "task": {"id": 302, "owner": {"id": 903}, "assignee": {"id": 1003}}, "job": {"id": 312, "assignee": {"id": 1}}, "organization": {"id": 1279}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "owner": {"id": 689}, "assignee": {"id": 544}, "project": {"id": 331, "owner": {"id": 789}, "assignee": {"id": 810}}, "task": {"id": 395, "owner": {"id": 914}, "assignee": {"id": 1054}}, "job": {"id": 377, "assignee": {"id": 38}}, "organization": {"id": 184}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 696}, "assignee": {"id": 510}, "project": {"id": 393, "owner": {"id": 792}, "assignee": {"id": 826}}, "task": {"id": 372, "owner": {"id": 999}, "assignee": {"id": 1002}}, "job": {"id": 306, "assignee": {"id": 28}}, "organization": {"id": 194}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "owner": {"id": 676}, "assignee": {"id": 560}, "project": {"id": 351, "owner": {"id": 780}, "assignee": {"id": 827}}, "task": {"id": 342, "owner": {"id": 965}, "assignee": {"id": 1082}}, "job": {"id": 366, "assignee": {"id": 50}}, "organization": {"id": 1262}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 607}, "assignee": {"id": 530}, "project": {"id": 357, "owner": {"id": 768}, "assignee": {"id": 846}}, "task": {"id": 305, "owner": {"id": 912}, "assignee": {"id": 1006}}, "job": {"id": 362, "assignee": {"id": 79}}, "organization": {"id": 1224}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "owner": {"id": 641}, "assignee": {"id": 593}, "project": {"id": 311, "owner": {"id": 756}, "assignee": {"id": 804}}, "task": {"id": 311, "owner": {"id": 956}, "assignee": {"id": 1017}}, "job": {"id": 322, "assignee": {"id": 38}}, "organization": {"id": 156}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "owner": {"id": 654}, "assignee": {"id": 516}, "project": {"id": 308, "owner": {"id": 792}, "assignee": {"id": 848}}, "task": {"id": 316, "owner": {"id": 973}, "assignee": {"id": 1009}}, "job": {"id": 338, "assignee": {"id": 77}}, "organization": {"id": 138}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 609}, "assignee": {"id": 514}, "project": {"id": 347, "owner": {"id": 742}, "assignee": {"id": 824}}, "task": {"id": 391, "owner": {"id": 921}, "assignee": {"id": 1000}}, "job": {"id": 367, "assignee": {"id": 41}}, "organization": {"id": 1204}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "owner": {"id": 672}, "assignee": {"id": 535}, "project": {"id": 380, "owner": {"id": 738}, "assignee": {"id": 876}}, "task": {"id": 397, "owner": {"id": 972}, "assignee": {"id": 1044}}, "job": {"id": 305, "assignee": {"id": 35}}, "organization": {"id": 1216}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 387, "owner": {"id": 637}, "assignee": {"id": 559}, "project": {"id": 397, "owner": {"id": 779}, "assignee": {"id": 899}}, "task": {"id": 365, "owner": {"id": 922}, "assignee": {"id": 1060}}, "job": {"id": 358, "assignee": {"id": 16}}, "organization": {"id": 125}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 380, "owner": {"id": 662}, "assignee": {"id": 561}, "project": {"id": 337, "owner": {"id": 773}, "assignee": {"id": 809}}, "task": {"id": 399, "owner": {"id": 973}, "assignee": {"id": 1050}}, "job": {"id": 334, "assignee": {"id": 65}}, "organization": {"id": 186}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 600}, "assignee": {"id": 548}, "project": {"id": 374, "owner": {"id": 787}, "assignee": {"id": 873}}, "task": {"id": 303, "owner": {"id": 967}, "assignee": {"id": 1099}}, "job": {"id": 365, "assignee": {"id": 66}}, "organization": {"id": 1262}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 347, "owner": {"id": 649}, "assignee": {"id": 564}, "project": {"id": 333, "owner": {"id": 702}, "assignee": {"id": 802}}, "task": {"id": 385, "owner": {"id": 925}, "assignee": {"id": 1040}}, "job": {"id": 362, "assignee": {"id": 54}}, "organization": {"id": 1242}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 655}, "assignee": {"id": 598}, "project": {"id": 346, "owner": {"id": 705}, "assignee": {"id": 872}}, "task": {"id": 399, "owner": {"id": 926}, "assignee": {"id": 1035}}, "job": {"id": 349, "assignee": {"id": 72}}, "organization": {"id": 133}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 363, "owner": {"id": 628}, "assignee": {"id": 543}, "project": {"id": 315, "owner": {"id": 799}, "assignee": {"id": 830}}, "task": {"id": 392, "owner": {"id": 914}, "assignee": {"id": 1055}}, "job": {"id": 321, "assignee": {"id": 15}}, "organization": {"id": 127}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 647}, "assignee": {"id": 528}, "project": {"id": 352, "owner": {"id": 765}, "assignee": {"id": 854}}, "task": {"id": 352, "owner": {"id": 948}, "assignee": {"id": 1021}}, "job": {"id": 318, "assignee": {"id": 65}}, "organization": {"id": 1243}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 315, "owner": {"id": 610}, "assignee": {"id": 554}, "project": {"id": 393, "owner": {"id": 761}, "assignee": {"id": 870}}, "task": {"id": 305, "owner": {"id": 931}, "assignee": {"id": 1020}}, "job": {"id": 318, "assignee": {"id": 80}}, "organization": {"id": 1279}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 386, "owner": {"id": 660}, "assignee": {"id": 503}, "project": {"id": 315, "owner": {"id": 724}, "assignee": {"id": 867}}, "task": {"id": 378, "owner": {"id": 940}, "assignee": {"id": 1051}}, "job": {"id": 352, "assignee": {"id": 0}}, "organization": {"id": 108}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 380, "owner": {"id": 690}, "assignee": {"id": 502}, "project": {"id": 389, "owner": {"id": 748}, "assignee": {"id": 838}}, "task": {"id": 378, "owner": {"id": 906}, "assignee": {"id": 1086}}, "job": {"id": 363, "assignee": {"id": 42}}, "organization": {"id": 121}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 331, "owner": {"id": 671}, "assignee": {"id": 509}, "project": {"id": 353, "owner": {"id": 723}, "assignee": {"id": 815}}, "task": {"id": 304, "owner": {"id": 998}, "assignee": {"id": 1054}}, "job": {"id": 391, "assignee": {"id": 73}}, "organization": {"id": 1281}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 352, "owner": {"id": 642}, "assignee": {"id": 569}, "project": {"id": 348, "owner": {"id": 796}, "assignee": {"id": 866}}, "task": {"id": 343, "owner": {"id": 989}, "assignee": {"id": 1016}}, "job": {"id": 306, "assignee": {"id": 49}}, "organization": {"id": 1266}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 672}, "assignee": {"id": 586}, "project": {"id": 316, "owner": {"id": 777}, "assignee": {"id": 890}}, "task": {"id": 341, "owner": {"id": 974}, "assignee": {"id": 1028}}, "job": {"id": 396, "assignee": {"id": 17}}, "organization": {"id": 107}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "owner": {"id": 606}, "assignee": {"id": 584}, "project": {"id": 371, "owner": {"id": 719}, "assignee": {"id": 816}}, "task": {"id": 322, "owner": {"id": 970}, "assignee": {"id": 1099}}, "job": {"id": 396, "assignee": {"id": 14}}, "organization": {"id": 137}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "owner": {"id": 669}, "assignee": {"id": 533}, "project": {"id": 351, "owner": {"id": 723}, "assignee": {"id": 819}}, "task": {"id": 322, "owner": {"id": 936}, "assignee": {"id": 1021}}, "job": {"id": 316, "assignee": {"id": 12}}, "organization": {"id": 1277}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "owner": {"id": 688}, "assignee": {"id": 550}, "project": {"id": 376, "owner": {"id": 746}, "assignee": {"id": 806}}, "task": {"id": 369, "owner": {"id": 912}, "assignee": {"id": 1004}}, "job": {"id": 330, "assignee": {"id": 79}}, "organization": {"id": 1267}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 31, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "owner": {"id": 603}, "assignee": {"id": 535}, "project": {"id": 378, "owner": {"id": 775}, "assignee": {"id": 868}}, "task": {"id": 336, "owner": {"id": 923}, "assignee": {"id": 1077}}, "job": {"id": 398, "assignee": {"id": 31}}, "organization": {"id": 169}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 625}, "assignee": {"id": 527}, "project": {"id": 307, "owner": {"id": 742}, "assignee": {"id": 806}}, "task": {"id": 300, "owner": {"id": 910}, "assignee": {"id": 1009}}, "job": {"id": 313, "assignee": {"id": 68}}, "organization": {"id": 169}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 628}, "assignee": {"id": 537}, "project": {"id": 310, "owner": {"id": 776}, "assignee": {"id": 841}}, "task": {"id": 347, "owner": {"id": 969}, "assignee": {"id": 1028}}, "job": {"id": 393, "assignee": {"id": 51}}, "organization": {"id": 1291}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "owner": {"id": 625}, "assignee": {"id": 591}, "project": {"id": 372, "owner": {"id": 714}, "assignee": {"id": 815}}, "task": {"id": 352, "owner": {"id": 985}, "assignee": {"id": 1092}}, "job": {"id": 380, "assignee": {"id": 83}}, "organization": {"id": 1284}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 606}, "assignee": {"id": 540}, "project": {"id": 381, "owner": {"id": 792}, "assignee": {"id": 896}}, "task": {"id": 332, "owner": {"id": 961}, "assignee": {"id": 1091}}, "job": {"id": 358, "assignee": {"id": 68}}, "organization": {"id": 183}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 361, "owner": {"id": 670}, "assignee": {"id": 500}, "project": {"id": 326, "owner": {"id": 780}, "assignee": {"id": 834}}, "task": {"id": 352, "owner": {"id": 940}, "assignee": {"id": 1035}}, "job": {"id": 312, "assignee": {"id": 52}}, "organization": {"id": 196}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 337, "owner": {"id": 637}, "assignee": {"id": 557}, "project": {"id": 348, "owner": {"id": 790}, "assignee": {"id": 862}}, "task": {"id": 377, "owner": {"id": 978}, "assignee": {"id": 1016}}, "job": {"id": 336, "assignee": {"id": 51}}, "organization": {"id": 1272}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 613}, "assignee": {"id": 534}, "project": {"id": 308, "owner": {"id": 762}, "assignee": {"id": 853}}, "task": {"id": 319, "owner": {"id": 907}, "assignee": {"id": 1091}}, "job": {"id": 382, "assignee": {"id": 2}}, "organization": {"id": 1295}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 345, "owner": {"id": 698}, "assignee": {"id": 581}, "project": {"id": 326, "owner": {"id": 758}, "assignee": {"id": 807}}, "task": {"id": 358, "owner": {"id": 939}, "assignee": {"id": 1023}}, "job": {"id": 373, "assignee": {"id": 12}}, "organization": {"id": 137}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 391, "owner": {"id": 641}, "assignee": {"id": 561}, "project": {"id": 323, "owner": {"id": 752}, "assignee": {"id": 833}}, "task": {"id": 353, "owner": {"id": 926}, "assignee": {"id": 1093}}, "job": {"id": 341, "assignee": {"id": 21}}, "organization": {"id": 144}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 352, "owner": {"id": 691}, "assignee": {"id": 573}, "project": {"id": 347, "owner": {"id": 779}, "assignee": {"id": 855}}, "task": {"id": 337, "owner": {"id": 995}, "assignee": {"id": 1086}}, "job": {"id": 341, "assignee": {"id": 37}}, "organization": {"id": 1209}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 690}, "assignee": {"id": 529}, "project": {"id": 387, "owner": {"id": 718}, "assignee": {"id": 876}}, "task": {"id": 354, "owner": {"id": 958}, "assignee": {"id": 1015}}, "job": {"id": 377, "assignee": {"id": 45}}, "organization": {"id": 1270}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 357, "owner": {"id": 623}, "assignee": {"id": 504}, "project": {"id": 368, "owner": {"id": 764}, "assignee": {"id": 804}}, "task": {"id": 359, "owner": {"id": 939}, "assignee": {"id": 1069}}, "job": {"id": 344, "assignee": {"id": 35}}, "organization": {"id": 170}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 375, "owner": {"id": 682}, "assignee": {"id": 504}, "project": {"id": 370, "owner": {"id": 781}, "assignee": {"id": 807}}, "task": {"id": 373, "owner": {"id": 947}, "assignee": {"id": 1090}}, "job": {"id": 358, "assignee": {"id": 36}}, "organization": {"id": 119}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 374, "owner": {"id": 609}, "assignee": {"id": 512}, "project": {"id": 361, "owner": {"id": 784}, "assignee": {"id": 878}}, "task": {"id": 373, "owner": {"id": 931}, "assignee": {"id": 1062}}, "job": {"id": 305, "assignee": {"id": 62}}, "organization": {"id": 1298}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 315, "owner": {"id": 655}, "assignee": {"id": 570}, "project": {"id": 399, "owner": {"id": 735}, "assignee": {"id": 892}}, "task": {"id": 367, "owner": {"id": 958}, "assignee": {"id": 1029}}, "job": {"id": 343, "assignee": {"id": 35}}, "organization": {"id": 1285}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 616}, "assignee": {"id": 524}, "project": {"id": 320, "owner": {"id": 786}, "assignee": {"id": 862}}, "task": {"id": 348, "owner": {"id": 996}, "assignee": {"id": 1089}}, "job": {"id": 377, "assignee": {"id": 29}}, "organization": {"id": 144}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "owner": {"id": 619}, "assignee": {"id": 544}, "project": {"id": 308, "owner": {"id": 715}, "assignee": {"id": 815}}, "task": {"id": 326, "owner": {"id": 961}, "assignee": {"id": 1083}}, "job": {"id": 341, "assignee": {"id": 78}}, "organization": {"id": 185}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "owner": {"id": 663}, "assignee": {"id": 565}, "project": {"id": 319, "owner": {"id": 757}, "assignee": {"id": 839}}, "task": {"id": 337, "owner": {"id": 985}, "assignee": {"id": 1057}}, "job": {"id": 332, "assignee": {"id": 54}}, "organization": {"id": 1264}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 608}, "assignee": {"id": 547}, "project": {"id": 311, "owner": {"id": 733}, "assignee": {"id": 859}}, "task": {"id": 317, "owner": {"id": 969}, "assignee": {"id": 1003}}, "job": {"id": 367, "assignee": {"id": 83}}, "organization": {"id": 1266}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 679}, "assignee": {"id": 599}, "project": {"id": 345, "owner": {"id": 701}, "assignee": {"id": 838}}, "task": {"id": 317, "owner": {"id": 987}, "assignee": {"id": 1084}}, "job": {"id": 378, "assignee": {"id": 66}}, "organization": {"id": 170}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "owner": {"id": 628}, "assignee": {"id": 508}, "project": {"id": 352, "owner": {"id": 770}, "assignee": {"id": 852}}, "task": {"id": 383, "owner": {"id": 951}, "assignee": {"id": 1017}}, "job": {"id": 302, "assignee": {"id": 68}}, "organization": {"id": 166}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "owner": {"id": 691}, "assignee": {"id": 576}, "project": {"id": 323, "owner": {"id": 768}, "assignee": {"id": 891}}, "task": {"id": 354, "owner": {"id": 926}, "assignee": {"id": 1002}}, "job": {"id": 354, "assignee": {"id": 12}}, "organization": {"id": 1214}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 657}, "assignee": {"id": 586}, "project": {"id": 398, "owner": {"id": 779}, "assignee": {"id": 831}}, "task": {"id": 343, "owner": {"id": 970}, "assignee": {"id": 1084}}, "job": {"id": 359, "assignee": {"id": 99}}, "organization": {"id": 1287}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 355, "owner": {"id": 646}, "assignee": {"id": 567}, "project": {"id": 380, "owner": {"id": 775}, "assignee": {"id": 899}}, "task": {"id": 347, "owner": {"id": 988}, "assignee": {"id": 1099}}, "job": {"id": 380, "assignee": {"id": 99}}, "organization": {"id": 181}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 305, "owner": {"id": 650}, "assignee": {"id": 507}, "project": {"id": 362, "owner": {"id": 721}, "assignee": {"id": 810}}, "task": {"id": 355, "owner": {"id": 926}, "assignee": {"id": 1049}}, "job": {"id": 341, "assignee": {"id": 97}}, "organization": {"id": 197}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 668}, "assignee": {"id": 598}, "project": {"id": 361, "owner": {"id": 702}, "assignee": {"id": 810}}, "task": {"id": 335, "owner": {"id": 924}, "assignee": {"id": 1048}}, "job": {"id": 371, "assignee": {"id": 28}}, "organization": {"id": 1266}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 306, "owner": {"id": 693}, "assignee": {"id": 593}, "project": {"id": 335, "owner": {"id": 704}, "assignee": {"id": 830}}, "task": {"id": 385, "owner": {"id": 927}, "assignee": {"id": 1004}}, "job": {"id": 315, "assignee": {"id": 3}}, "organization": {"id": 1225}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 338, "owner": {"id": 650}, "assignee": {"id": 541}, "project": {"id": 387, "owner": {"id": 713}, "assignee": {"id": 866}}, "task": {"id": 328, "owner": {"id": 951}, "assignee": {"id": 1051}}, "job": {"id": 375, "assignee": {"id": 12}}, "organization": {"id": 108}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 692}, "assignee": {"id": 596}, "project": {"id": 354, "owner": {"id": 785}, "assignee": {"id": 848}}, "task": {"id": 398, "owner": {"id": 982}, "assignee": {"id": 1029}}, "job": {"id": 356, "assignee": {"id": 93}}, "organization": {"id": 191}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 674}, "assignee": {"id": 529}, "project": {"id": 376, "owner": {"id": 798}, "assignee": {"id": 877}}, "task": {"id": 395, "owner": {"id": 900}, "assignee": {"id": 1013}}, "job": {"id": 321, "assignee": {"id": 52}}, "organization": {"id": 1268}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 391, "owner": {"id": 639}, "assignee": {"id": 558}, "project": {"id": 336, "owner": {"id": 750}, "assignee": {"id": 866}}, "task": {"id": 380, "owner": {"id": 970}, "assignee": {"id": 1031}}, "job": {"id": 381, "assignee": {"id": 59}}, "organization": {"id": 1243}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 316, "owner": {"id": 639}, "assignee": {"id": 515}, "project": {"id": 307, "owner": {"id": 790}, "assignee": {"id": 808}}, "task": {"id": 337, "owner": {"id": 949}, "assignee": {"id": 1082}}, "job": {"id": 301, "assignee": {"id": 88}}, "organization": {"id": 171}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 604}, "assignee": {"id": 594}, "project": {"id": 349, "owner": {"id": 701}, "assignee": {"id": 879}}, "task": {"id": 306, "owner": {"id": 905}, "assignee": {"id": 1024}}, "job": {"id": 362, "assignee": {"id": 41}}, "organization": {"id": 148}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 326, "owner": {"id": 613}, "assignee": {"id": 555}, "project": {"id": 340, "owner": {"id": 789}, "assignee": {"id": 868}}, "task": {"id": 365, "owner": {"id": 936}, "assignee": {"id": 1087}}, "job": {"id": 300, "assignee": {"id": 99}}, "organization": {"id": 1262}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 351, "owner": {"id": 620}, "assignee": {"id": 593}, "project": {"id": 367, "owner": {"id": 709}, "assignee": {"id": 860}}, "task": {"id": 391, "owner": {"id": 929}, "assignee": {"id": 1020}}, "job": {"id": 315, "assignee": {"id": 70}}, "organization": {"id": 1225}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 679}, "assignee": {"id": 574}, "project": {"id": 326, "owner": {"id": 748}, "assignee": {"id": 824}}, "task": {"id": 325, "owner": {"id": 917}, "assignee": {"id": 1001}}, "job": {"id": 389, "assignee": {"id": 30}}, "organization": {"id": 134}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "owner": {"id": 615}, "assignee": {"id": 537}, "project": {"id": 367, "owner": {"id": 720}, "assignee": {"id": 842}}, "task": {"id": 306, "owner": {"id": 974}, "assignee": {"id": 1045}}, "job": {"id": 344, "assignee": {"id": 74}}, "organization": {"id": 117}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 321, "owner": {"id": 682}, "assignee": {"id": 590}, "project": {"id": 351, "owner": {"id": 772}, "assignee": {"id": 847}}, "task": {"id": 376, "owner": {"id": 932}, "assignee": {"id": 1026}}, "job": {"id": 373, "assignee": {"id": 43}}, "organization": {"id": 1227}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 681}, "assignee": {"id": 540}, "project": {"id": 381, "owner": {"id": 702}, "assignee": {"id": 833}}, "task": {"id": 366, "owner": {"id": 990}, "assignee": {"id": 1019}}, "job": {"id": 360, "assignee": {"id": 54}}, "organization": {"id": 1224}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 604}, "assignee": {"id": 557}, "project": {"id": 390, "owner": {"id": 715}, "assignee": {"id": 818}}, "task": {"id": 321, "owner": {"id": 959}, "assignee": {"id": 1016}}, "job": {"id": 320, "assignee": {"id": 8}}, "organization": {"id": 140}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "owner": {"id": 631}, "assignee": {"id": 546}, "project": {"id": 348, "owner": {"id": 717}, "assignee": {"id": 895}}, "task": {"id": 300, "owner": {"id": 902}, "assignee": {"id": 1036}}, "job": {"id": 398, "assignee": {"id": 41}}, "organization": {"id": 100}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "owner": {"id": 694}, "assignee": {"id": 506}, "project": {"id": 371, "owner": {"id": 777}, "assignee": {"id": 809}}, "task": {"id": 335, "owner": {"id": 949}, "assignee": {"id": 1078}}, "job": {"id": 355, "assignee": {"id": 70}}, "organization": {"id": 1255}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 638}, "assignee": {"id": 577}, "project": {"id": 374, "owner": {"id": 755}, "assignee": {"id": 832}}, "task": {"id": 349, "owner": {"id": 940}, "assignee": {"id": 1064}}, "job": {"id": 335, "assignee": {"id": 31}}, "organization": {"id": 1201}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 24, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 343, "owner": {"id": 620}, "assignee": {"id": 501}, "project": {"id": 330, "owner": {"id": 721}, "assignee": {"id": 845}}, "task": {"id": 390, "owner": {"id": 983}, "assignee": {"id": 1015}}, "job": {"id": 395, "assignee": {"id": 24}}, "organization": {"id": 182}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 327, "owner": {"id": 684}, "assignee": {"id": 500}, "project": {"id": 320, "owner": {"id": 784}, "assignee": {"id": 843}}, "task": {"id": 316, "owner": {"id": 927}, "assignee": {"id": 1002}}, "job": {"id": 359, "assignee": {"id": 59}}, "organization": {"id": 151}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 373, "owner": {"id": 634}, "assignee": {"id": 593}, "project": {"id": 330, "owner": {"id": 754}, "assignee": {"id": 806}}, "task": {"id": 361, "owner": {"id": 921}, "assignee": {"id": 1052}}, "job": {"id": 343, "assignee": {"id": 5}}, "organization": {"id": 1215}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 666}, "assignee": {"id": 545}, "project": {"id": 354, "owner": {"id": 764}, "assignee": {"id": 890}}, "task": {"id": 374, "owner": {"id": 933}, "assignee": {"id": 1045}}, "job": {"id": 382, "assignee": {"id": 57}}, "organization": {"id": 1225}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 696}, "assignee": {"id": 511}, "project": {"id": 328, "owner": {"id": 773}, "assignee": {"id": 814}}, "task": {"id": 317, "owner": {"id": 929}, "assignee": {"id": 1078}}, "job": {"id": 383, "assignee": {"id": 82}}, "organization": {"id": 105}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 678}, "assignee": {"id": 548}, "project": {"id": 354, "owner": {"id": 790}, "assignee": {"id": 811}}, "task": {"id": 354, "owner": {"id": 997}, "assignee": {"id": 1093}}, "job": {"id": 385, "assignee": {"id": 38}}, "organization": {"id": 184}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 301, "owner": {"id": 675}, "assignee": {"id": 591}, "project": {"id": 336, "owner": {"id": 770}, "assignee": {"id": 850}}, "task": {"id": 325, "owner": {"id": 966}, "assignee": {"id": 1052}}, "job": {"id": 395, "assignee": {"id": 9}}, "organization": {"id": 1294}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 393, "owner": {"id": 616}, "assignee": {"id": 538}, "project": {"id": 350, "owner": {"id": 740}, "assignee": {"id": 880}}, "task": {"id": 388, "owner": {"id": 967}, "assignee": {"id": 1036}}, "job": {"id": 300, "assignee": {"id": 57}}, "organization": {"id": 1291}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 329, "owner": {"id": 623}, "assignee": {"id": 508}, "project": {"id": 340, "owner": {"id": 720}, "assignee": {"id": 831}}, "task": {"id": 380, "owner": {"id": 977}, "assignee": {"id": 1047}}, "job": {"id": 312, "assignee": {"id": 80}}, "organization": {"id": 172}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 334, "owner": {"id": 677}, "assignee": {"id": 575}, "project": {"id": 343, "owner": {"id": 754}, "assignee": {"id": 869}}, "task": {"id": 305, "owner": {"id": 971}, "assignee": {"id": 1056}}, "job": {"id": 313, "assignee": {"id": 95}}, "organization": {"id": 110}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 689}, "assignee": {"id": 540}, "project": {"id": 383, "owner": {"id": 702}, "assignee": {"id": 835}}, "task": {"id": 351, "owner": {"id": 914}, "assignee": {"id": 1068}}, "job": {"id": 333, "assignee": {"id": 72}}, "organization": {"id": 1235}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 327, "owner": {"id": 677}, "assignee": {"id": 505}, "project": {"id": 388, "owner": {"id": 753}, "assignee": {"id": 894}}, "task": {"id": 337, "owner": {"id": 975}, "assignee": {"id": 1015}}, "job": {"id": 340, "assignee": {"id": 74}}, "organization": {"id": 1286}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "owner": {"id": 645}, "assignee": {"id": 549}, "project": {"id": 348, "owner": {"id": 782}, "assignee": {"id": 896}}, "task": {"id": 310, "owner": {"id": 945}, "assignee": {"id": 1007}}, "job": {"id": 314, "assignee": {"id": 35}}, "organization": {"id": 113}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 609}, "assignee": {"id": 553}, "project": {"id": 332, "owner": {"id": 710}, "assignee": {"id": 820}}, "task": {"id": 384, "owner": {"id": 908}, "assignee": {"id": 1092}}, "job": {"id": 320, "assignee": {"id": 48}}, "organization": {"id": 163}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "owner": {"id": 678}, "assignee": {"id": 534}, "project": {"id": 312, "owner": {"id": 740}, "assignee": {"id": 830}}, "task": {"id": 320, "owner": {"id": 986}, "assignee": {"id": 1054}}, "job": {"id": 317, "assignee": {"id": 26}}, "organization": {"id": 1251}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "owner": {"id": 674}, "assignee": {"id": 592}, "project": {"id": 396, "owner": {"id": 749}, "assignee": {"id": 854}}, "task": {"id": 318, "owner": {"id": 952}, "assignee": {"id": 1024}}, "job": {"id": 320, "assignee": {"id": 74}}, "organization": {"id": 1295}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 666}, "assignee": {"id": 551}, "project": {"id": 335, "owner": {"id": 762}, "assignee": {"id": 870}}, "task": {"id": 334, "owner": {"id": 990}, "assignee": {"id": 1074}}, "job": {"id": 354, "assignee": {"id": 62}}, "organization": {"id": 154}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "owner": {"id": 626}, "assignee": {"id": 512}, "project": {"id": 328, "owner": {"id": 764}, "assignee": {"id": 840}}, "task": {"id": 304, "owner": {"id": 931}, "assignee": {"id": 1066}}, "job": {"id": 396, "assignee": {"id": 12}}, "organization": {"id": 153}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "owner": {"id": 620}, "assignee": {"id": 501}, "project": {"id": 325, "owner": {"id": 743}, "assignee": {"id": 831}}, "task": {"id": 360, "owner": {"id": 967}, "assignee": {"id": 1070}}, "job": {"id": 313, "assignee": {"id": 92}}, "organization": {"id": 1260}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "owner": {"id": 684}, "assignee": {"id": 528}, "project": {"id": 328, "owner": {"id": 720}, "assignee": {"id": 828}}, "task": {"id": 349, "owner": {"id": 913}, "assignee": {"id": 1006}}, "job": {"id": 340, "assignee": {"id": 66}}, "organization": {"id": 1221}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 314, "owner": {"id": 613}, "assignee": {"id": 518}, "project": {"id": 302, "owner": {"id": 790}, "assignee": {"id": 803}}, "task": {"id": 338, "owner": {"id": 937}, "assignee": {"id": 1065}}, "job": {"id": 341, "assignee": {"id": 26}}, "organization": {"id": 152}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 682}, "assignee": {"id": 534}, "project": {"id": 315, "owner": {"id": 786}, "assignee": {"id": 843}}, "task": {"id": 390, "owner": {"id": 952}, "assignee": {"id": 1058}}, "job": {"id": 352, "assignee": {"id": 1}}, "organization": {"id": 191}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 395, "owner": {"id": 612}, "assignee": {"id": 560}, "project": {"id": 338, "owner": {"id": 768}, "assignee": {"id": 844}}, "task": {"id": 303, "owner": {"id": 951}, "assignee": {"id": 1035}}, "job": {"id": 327, "assignee": {"id": 69}}, "organization": {"id": 1270}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 325, "owner": {"id": 632}, "assignee": {"id": 546}, "project": {"id": 359, "owner": {"id": 794}, "assignee": {"id": 822}}, "task": {"id": 323, "owner": {"id": 937}, "assignee": {"id": 1037}}, "job": {"id": 329, "assignee": {"id": 43}}, "organization": {"id": 1203}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 336, "owner": {"id": 633}, "assignee": {"id": 537}, "project": {"id": 304, "owner": {"id": 723}, "assignee": {"id": 815}}, "task": {"id": 381, "owner": {"id": 967}, "assignee": {"id": 1095}}, "job": {"id": 365, "assignee": {"id": 55}}, "organization": {"id": 120}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 382, "owner": {"id": 644}, "assignee": {"id": 594}, "project": {"id": 308, "owner": {"id": 765}, "assignee": {"id": 814}}, "task": {"id": 327, "owner": {"id": 981}, "assignee": {"id": 1075}}, "job": {"id": 362, "assignee": {"id": 70}}, "organization": {"id": 192}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 352, "owner": {"id": 690}, "assignee": {"id": 582}, "project": {"id": 321, "owner": {"id": 786}, "assignee": {"id": 837}}, "task": {"id": 390, "owner": {"id": 938}, "assignee": {"id": 1064}}, "job": {"id": 309, "assignee": {"id": 35}}, "organization": {"id": 1202}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 312, "owner": {"id": 692}, "assignee": {"id": 534}, "project": {"id": 365, "owner": {"id": 769}, "assignee": {"id": 805}}, "task": {"id": 375, "owner": {"id": 990}, "assignee": {"id": 1005}}, "job": {"id": 382, "assignee": {"id": 63}}, "organization": {"id": 1264}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 685}, "assignee": {"id": 508}, "project": {"id": 389, "owner": {"id": 770}, "assignee": {"id": 864}}, "task": {"id": 319, "owner": {"id": 942}, "assignee": {"id": 1000}}, "job": {"id": 379, "assignee": {"id": 1135}}, "organization": {"id": 179}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 396, "owner": {"id": 607}, "assignee": {"id": 526}, "project": {"id": 389, "owner": {"id": 764}, "assignee": {"id": 806}}, "task": {"id": 360, "owner": {"id": 966}, "assignee": {"id": 1036}}, "job": {"id": 304, "assignee": {"id": 1168}}, "organization": {"id": 185}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 399, "owner": {"id": 609}, "assignee": {"id": 545}, "project": {"id": 365, "owner": {"id": 727}, "assignee": {"id": 813}}, "task": {"id": 369, "owner": {"id": 901}, "assignee": {"id": 1080}}, "job": {"id": 345, "assignee": {"id": 1193}}, "organization": {"id": 1226}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 654}, "assignee": {"id": 505}, "project": {"id": 357, "owner": {"id": 775}, "assignee": {"id": 853}}, "task": {"id": 316, "owner": {"id": 944}, "assignee": {"id": 1093}}, "job": {"id": 339, "assignee": {"id": 1198}}, "organization": {"id": 1200}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 604}, "assignee": {"id": 544}, "project": {"id": 328, "owner": {"id": 779}, "assignee": {"id": 898}}, "task": {"id": 333, "owner": {"id": 986}, "assignee": {"id": 1065}}, "job": {"id": 332, "assignee": {"id": 1158}}, "organization": {"id": 101}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "owner": {"id": 687}, "assignee": {"id": 595}, "project": {"id": 316, "owner": {"id": 710}, "assignee": {"id": 813}}, "task": {"id": 365, "owner": {"id": 935}, "assignee": {"id": 1085}}, "job": {"id": 393, "assignee": {"id": 1101}}, "organization": {"id": 138}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 678}, "assignee": {"id": 532}, "project": {"id": 355, "owner": {"id": 756}, "assignee": {"id": 816}}, "task": {"id": 389, "owner": {"id": 977}, "assignee": {"id": 1008}}, "job": {"id": 324, "assignee": {"id": 1183}}, "organization": {"id": 1258}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 358, "owner": {"id": 665}, "assignee": {"id": 588}, "project": {"id": 366, "owner": {"id": 772}, "assignee": {"id": 839}}, "task": {"id": 366, "owner": {"id": 913}, "assignee": {"id": 1061}}, "job": {"id": 359, "assignee": {"id": 1155}}, "organization": {"id": 1201}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "owner": {"id": 608}, "assignee": {"id": 502}, "project": {"id": 311, "owner": {"id": 738}, "assignee": {"id": 893}}, "task": {"id": 360, "owner": {"id": 972}, "assignee": {"id": 1044}}, "job": {"id": 328, "assignee": {"id": 1124}}, "organization": {"id": 167}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "owner": {"id": 682}, "assignee": {"id": 548}, "project": {"id": 325, "owner": {"id": 763}, "assignee": {"id": 800}}, "task": {"id": 317, "owner": {"id": 921}, "assignee": {"id": 1018}}, "job": {"id": 349, "assignee": {"id": 1159}}, "organization": {"id": 112}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 348, "owner": {"id": 645}, "assignee": {"id": 598}, "project": {"id": 390, "owner": {"id": 743}, "assignee": {"id": 867}}, "task": {"id": 304, "owner": {"id": 939}, "assignee": {"id": 1027}}, "job": {"id": 352, "assignee": {"id": 1101}}, "organization": {"id": 1264}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "owner": {"id": 645}, "assignee": {"id": 571}, "project": {"id": 319, "owner": {"id": 725}, "assignee": {"id": 831}}, "task": {"id": 345, "owner": {"id": 984}, "assignee": {"id": 1097}}, "job": {"id": 327, "assignee": {"id": 1105}}, "organization": {"id": 1261}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 367, "owner": {"id": 650}, "assignee": {"id": 518}, "project": {"id": 381, "owner": {"id": 731}, "assignee": {"id": 887}}, "task": {"id": 394, "owner": {"id": 993}, "assignee": {"id": 1059}}, "job": {"id": 308, "assignee": {"id": 1154}}, "organization": {"id": 156}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 377, "owner": {"id": 633}, "assignee": {"id": 545}, "project": {"id": 395, "owner": {"id": 794}, "assignee": {"id": 889}}, "task": {"id": 348, "owner": {"id": 938}, "assignee": {"id": 1049}}, "job": {"id": 333, "assignee": {"id": 1134}}, "organization": {"id": 162}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 602}, "assignee": {"id": 538}, "project": {"id": 301, "owner": {"id": 780}, "assignee": {"id": 835}}, "task": {"id": 308, "owner": {"id": 908}, "assignee": {"id": 1097}}, "job": {"id": 324, "assignee": {"id": 1121}}, "organization": {"id": 1203}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 300, "owner": {"id": 603}, "assignee": {"id": 589}, "project": {"id": 316, "owner": {"id": 700}, "assignee": {"id": 865}}, "task": {"id": 364, "owner": {"id": 998}, "assignee": {"id": 1014}}, "job": {"id": 326, "assignee": {"id": 1145}}, "organization": {"id": 1200}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 624}, "assignee": {"id": 536}, "project": {"id": 351, "owner": {"id": 740}, "assignee": {"id": 807}}, "task": {"id": 363, "owner": {"id": 925}, "assignee": {"id": 1009}}, "job": {"id": 348, "assignee": {"id": 1130}}, "organization": {"id": 165}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 601}, "assignee": {"id": 561}, "project": {"id": 343, "owner": {"id": 784}, "assignee": {"id": 830}}, "task": {"id": 374, "owner": {"id": 905}, "assignee": {"id": 1074}}, "job": {"id": 310, "assignee": {"id": 1147}}, "organization": {"id": 196}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 312, "owner": {"id": 697}, "assignee": {"id": 550}, "project": {"id": 354, "owner": {"id": 733}, "assignee": {"id": 809}}, "task": {"id": 309, "owner": {"id": 916}, "assignee": {"id": 1073}}, "job": {"id": 377, "assignee": {"id": 1192}}, "organization": {"id": 1282}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 365, "owner": {"id": 689}, "assignee": {"id": 563}, "project": {"id": 306, "owner": {"id": 742}, "assignee": {"id": 842}}, "task": {"id": 351, "owner": {"id": 955}, "assignee": {"id": 1029}}, "job": {"id": 361, "assignee": {"id": 1127}}, "organization": {"id": 1224}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 320, "owner": {"id": 619}, "assignee": {"id": 591}, "project": {"id": 393, "owner": {"id": 726}, "assignee": {"id": 864}}, "task": {"id": 395, "owner": {"id": 981}, "assignee": {"id": 1083}}, "job": {"id": 309, "assignee": {"id": 1171}}, "organization": {"id": 185}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 94, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 387, "owner": {"id": 655}, "assignee": {"id": 524}, "project": {"id": 323, "owner": {"id": 797}, "assignee": {"id": 829}}, "task": {"id": 358, "owner": {"id": 950}, "assignee": {"id": 1090}}, "job": {"id": 388, "assignee": {"id": 1162}}, "organization": {"id": 148}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 662}, "assignee": {"id": 552}, "project": {"id": 331, "owner": {"id": 792}, "assignee": {"id": 877}}, "task": {"id": 389, "owner": {"id": 927}, "assignee": {"id": 1063}}, "job": {"id": 352, "assignee": {"id": 1106}}, "organization": {"id": 1247}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 621}, "assignee": {"id": 547}, "project": {"id": 386, "owner": {"id": 741}, "assignee": {"id": 839}}, "task": {"id": 366, "owner": {"id": 939}, "assignee": {"id": 1086}}, "job": {"id": 376, "assignee": {"id": 1114}}, "organization": {"id": 1243}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "owner": {"id": 629}, "assignee": {"id": 535}, "project": {"id": 315, "owner": {"id": 705}, "assignee": {"id": 863}}, "task": {"id": 379, "owner": {"id": 949}, "assignee": {"id": 1087}}, "job": {"id": 350, "assignee": {"id": 1191}}, "organization": {"id": 148}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "owner": {"id": 698}, "assignee": {"id": 539}, "project": {"id": 353, "owner": {"id": 747}, "assignee": {"id": 885}}, "task": {"id": 366, "owner": {"id": 968}, "assignee": {"id": 1073}}, "job": {"id": 396, "assignee": {"id": 1142}}, "organization": {"id": 139}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 94, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "owner": {"id": 684}, "assignee": {"id": 524}, "project": {"id": 379, "owner": {"id": 743}, "assignee": {"id": 801}}, "task": {"id": 375, "owner": {"id": 945}, "assignee": {"id": 1060}}, "job": {"id": 359, "assignee": {"id": 1145}}, "organization": {"id": 1277}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "owner": {"id": 611}, "assignee": {"id": 546}, "project": {"id": 368, "owner": {"id": 740}, "assignee": {"id": 817}}, "task": {"id": 344, "owner": {"id": 947}, "assignee": {"id": 1037}}, "job": {"id": 341, "assignee": {"id": 1175}}, "organization": {"id": 1205}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "owner": {"id": 611}, "assignee": {"id": 598}, "project": {"id": 344, "owner": {"id": 778}, "assignee": {"id": 895}}, "task": {"id": 329, "owner": {"id": 942}, "assignee": {"id": 1005}}, "job": {"id": 359, "assignee": {"id": 1171}}, "organization": {"id": 195}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "owner": {"id": 652}, "assignee": {"id": 540}, "project": {"id": 322, "owner": {"id": 725}, "assignee": {"id": 842}}, "task": {"id": 358, "owner": {"id": 927}, "assignee": {"id": 1070}}, "job": {"id": 344, "assignee": {"id": 1122}}, "organization": {"id": 136}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "owner": {"id": 612}, "assignee": {"id": 559}, "project": {"id": 306, "owner": {"id": 764}, "assignee": {"id": 887}}, "task": {"id": 386, "owner": {"id": 971}, "assignee": {"id": 1070}}, "job": {"id": 300, "assignee": {"id": 1157}}, "organization": {"id": 1293}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 26, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "owner": {"id": 685}, "assignee": {"id": 575}, "project": {"id": 320, "owner": {"id": 790}, "assignee": {"id": 848}}, "task": {"id": 349, "owner": {"id": 992}, "assignee": {"id": 1091}}, "job": {"id": 371, "assignee": {"id": 1137}}, "organization": {"id": 1244}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 370, "owner": {"id": 650}, "assignee": {"id": 540}, "project": {"id": 327, "owner": {"id": 792}, "assignee": {"id": 893}}, "task": {"id": 386, "owner": {"id": 950}, "assignee": {"id": 1096}}, "job": {"id": 302, "assignee": {"id": 1129}}, "organization": {"id": 194}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 369, "owner": {"id": 608}, "assignee": {"id": 552}, "project": {"id": 317, "owner": {"id": 767}, "assignee": {"id": 868}}, "task": {"id": 397, "owner": {"id": 902}, "assignee": {"id": 1012}}, "job": {"id": 310, "assignee": {"id": 1142}}, "organization": {"id": 130}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 622}, "assignee": {"id": 584}, "project": {"id": 359, "owner": {"id": 749}, "assignee": {"id": 878}}, "task": {"id": 329, "owner": {"id": 920}, "assignee": {"id": 1087}}, "job": {"id": 388, "assignee": {"id": 1175}}, "organization": {"id": 1269}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 328, "owner": {"id": 600}, "assignee": {"id": 588}, "project": {"id": 308, "owner": {"id": 753}, "assignee": {"id": 892}}, "task": {"id": 329, "owner": {"id": 958}, "assignee": {"id": 1058}}, "job": {"id": 332, "assignee": {"id": 1167}}, "organization": {"id": 1291}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 319, "owner": {"id": 644}, "assignee": {"id": 537}, "project": {"id": 370, "owner": {"id": 744}, "assignee": {"id": 892}}, "task": {"id": 333, "owner": {"id": 920}, "assignee": {"id": 1093}}, "job": {"id": 323, "assignee": {"id": 1145}}, "organization": {"id": 154}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 387, "owner": {"id": 698}, "assignee": {"id": 551}, "project": {"id": 325, "owner": {"id": 752}, "assignee": {"id": 821}}, "task": {"id": 344, "owner": {"id": 949}, "assignee": {"id": 1016}}, "job": {"id": 301, "assignee": {"id": 1111}}, "organization": {"id": 135}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"id": 377, "owner": {"id": 672}, "assignee": {"id": 560}, "project": {"id": 332, "owner": {"id": 737}, "assignee": {"id": 884}}, "task": {"id": 363, "owner": {"id": 971}, "assignee": {"id": 1019}}, "job": {"id": 355, "assignee": {"id": 1155}}, "organization": {"id": 1291}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"id": 373, "owner": {"id": 638}, "assignee": {"id": 567}, "project": {"id": 354, "owner": {"id": 788}, "assignee": {"id": 839}}, "task": {"id": 394, "owner": {"id": 995}, "assignee": {"id": 1056}}, "job": {"id": 326, "assignee": {"id": 1154}}, "organization": {"id": 1209}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 337, "owner": {"id": 646}, "assignee": {"id": 518}, "project": {"id": 379, "owner": {"id": 716}, "assignee": {"id": 806}}, "task": {"id": 305, "owner": {"id": 903}, "assignee": {"id": 1025}}, "job": {"id": 347, "assignee": {"id": 1161}}, "organization": {"id": 190}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 331, "owner": {"id": 616}, "assignee": {"id": 566}, "project": {"id": 332, "owner": {"id": 747}, "assignee": {"id": 884}}, "task": {"id": 354, "owner": {"id": 987}, "assignee": {"id": 1058}}, "job": {"id": 351, "assignee": {"id": 1157}}, "organization": {"id": 186}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 311, "owner": {"id": 696}, "assignee": {"id": 540}, "project": {"id": 318, "owner": {"id": 705}, "assignee": {"id": 855}}, "task": {"id": 329, "owner": {"id": 914}, "assignee": {"id": 1013}}, "job": {"id": 360, "assignee": {"id": 1168}}, "organization": {"id": 1298}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 318, "owner": {"id": 647}, "assignee": {"id": 524}, "project": {"id": 374, "owner": {"id": 765}, "assignee": {"id": 827}}, "task": {"id": 353, "owner": {"id": 951}, "assignee": {"id": 1010}}, "job": {"id": 363, "assignee": {"id": 1120}}, "organization": {"id": 1296}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 671}, "assignee": {"id": 595}, "project": {"id": 317, "owner": {"id": 747}, "assignee": {"id": 883}}, "task": {"id": 354, "owner": {"id": 982}, "assignee": {"id": 1029}}, "job": {"id": 319, "assignee": {"id": 1103}}, "organization": {"id": 193}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "create@job", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "owner": {"id": 657}, "assignee": {"id": 552}, "project": {"id": 396, "owner": {"id": 700}, "assignee": {"id": 848}}, "task": {"id": 347, "owner": {"id": 906}, "assignee": {"id": 1015}}, "job": {"id": 312, "assignee": {"id": 1175}}, "organization": {"id": 114}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "owner": {"id": 678}, "assignee": {"id": 552}, "project": {"id": 328, "owner": {"id": 738}, "assignee": {"id": 860}}, "task": {"id": 341, "owner": {"id": 969}, "assignee": {"id": 1095}}, "job": {"id": 349, "assignee": {"id": 1106}}, "organization": {"id": 1255}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "owner": {"id": 670}, "assignee": {"id": 590}, "project": {"id": 370, "owner": {"id": 741}, "assignee": {"id": 855}}, "task": {"id": 313, "owner": {"id": 930}, "assignee": {"id": 1000}}, "job": {"id": 354, "assignee": {"id": 1102}}, "organization": {"id": 1206}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 343, "owner": {"id": 617}, "assignee": {"id": 500}, "project": {"id": 354, "owner": {"id": 786}, "assignee": {"id": 813}}, "task": {"id": 301, "owner": {"id": 963}, "assignee": {"id": 1019}}, "job": {"id": 315, "assignee": {"id": 1120}}, "organization": {"id": 109}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 604}, "assignee": {"id": 567}, "project": {"id": 306, "owner": {"id": 714}, "assignee": {"id": 801}}, "task": {"id": 302, "owner": {"id": 929}, "assignee": {"id": 1076}}, "job": {"id": 329, "assignee": {"id": 1174}}, "organization": {"id": 106}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "owner": {"id": 654}, "assignee": {"id": 523}, "project": {"id": 353, "owner": {"id": 774}, "assignee": {"id": 820}}, "task": {"id": 327, "owner": {"id": 966}, "assignee": {"id": 1073}}, "job": {"id": 343, "assignee": {"id": 1121}}, "organization": {"id": 1251}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "owner": {"id": 631}, "assignee": {"id": 594}, "project": {"id": 349, "owner": {"id": 758}, "assignee": {"id": 890}}, "task": {"id": 333, "owner": {"id": 903}, "assignee": {"id": 1095}}, "job": {"id": 353, "assignee": {"id": 1137}}, "organization": {"id": 1259}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 347, "owner": {"id": 640}, "assignee": {"id": 501}, "project": {"id": 304, "owner": {"id": 721}, "assignee": {"id": 800}}, "task": {"id": 302, "owner": {"id": 973}, "assignee": {"id": 1081}}, "job": {"id": 346, "assignee": {"id": 1167}}, "organization": {"id": 143}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 330, "owner": {"id": 604}, "assignee": {"id": 587}, "project": {"id": 307, "owner": {"id": 700}, "assignee": {"id": 837}}, "task": {"id": 320, "owner": {"id": 955}, "assignee": {"id": 1054}}, "job": {"id": 381, "assignee": {"id": 1126}}, "organization": {"id": 147}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 612}, "assignee": {"id": 547}, "project": {"id": 338, "owner": {"id": 722}, "assignee": {"id": 862}}, "task": {"id": 334, "owner": {"id": 927}, "assignee": {"id": 1014}}, "job": {"id": 358, "assignee": {"id": 1126}}, "organization": {"id": 1277}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 372, "owner": {"id": 624}, "assignee": {"id": 559}, "project": {"id": 340, "owner": {"id": 733}, "assignee": {"id": 829}}, "task": {"id": 322, "owner": {"id": 950}, "assignee": {"id": 1024}}, "job": {"id": 364, "assignee": {"id": 1118}}, "organization": {"id": 1243}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 316, "owner": {"id": 611}, "assignee": {"id": 541}, "project": {"id": 317, "owner": {"id": 781}, "assignee": {"id": 881}}, "task": {"id": 311, "owner": {"id": 967}, "assignee": {"id": 1020}}, "job": {"id": 306, "assignee": {"id": 1153}}, "organization": {"id": 139}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 334, "owner": {"id": 659}, "assignee": {"id": 594}, "project": {"id": 346, "owner": {"id": 766}, "assignee": {"id": 869}}, "task": {"id": 327, "owner": {"id": 907}, "assignee": {"id": 1083}}, "job": {"id": 333, "assignee": {"id": 1167}}, "organization": {"id": 193}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 360, "owner": {"id": 650}, "assignee": {"id": 538}, "project": {"id": 378, "owner": {"id": 768}, "assignee": {"id": 896}}, "task": {"id": 351, "owner": {"id": 916}, "assignee": {"id": 1003}}, "job": {"id": 316, "assignee": {"id": 1156}}, "organization": {"id": 1253}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"id": 388, "owner": {"id": 661}, "assignee": {"id": 580}, "project": {"id": 314, "owner": {"id": 775}, "assignee": {"id": 889}}, "task": {"id": 390, "owner": {"id": 937}, "assignee": {"id": 1042}}, "job": {"id": 343, "assignee": {"id": 1110}}, "organization": {"id": 1238}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 345, "owner": {"id": 695}, "assignee": {"id": 547}, "project": {"id": 300, "owner": {"id": 703}, "assignee": {"id": 821}}, "task": {"id": 312, "owner": {"id": 968}, "assignee": {"id": 1021}}, "job": {"id": 323, "assignee": {"id": 1192}}, "organization": {"id": 130}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 387, "owner": {"id": 652}, "assignee": {"id": 516}, "project": {"id": 317, "owner": {"id": 755}, "assignee": {"id": 826}}, "task": {"id": 367, "owner": {"id": 951}, "assignee": {"id": 1040}}, "job": {"id": 335, "assignee": {"id": 1125}}, "organization": {"id": 199}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 341, "owner": {"id": 663}, "assignee": {"id": 502}, "project": {"id": 328, "owner": {"id": 726}, "assignee": {"id": 887}}, "task": {"id": 359, "owner": {"id": 920}, "assignee": {"id": 1064}}, "job": {"id": 342, "assignee": {"id": 1131}}, "organization": {"id": 1241}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 621}, "assignee": {"id": 504}, "project": {"id": 317, "owner": {"id": 778}, "assignee": {"id": 827}}, "task": {"id": 394, "owner": {"id": 977}, "assignee": {"id": 1059}}, "job": {"id": 393, "assignee": {"id": 1162}}, "organization": {"id": 1217}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 648}, "assignee": {"id": 501}, "project": {"id": 387, "owner": {"id": 762}, "assignee": {"id": 825}}, "task": {"id": 347, "owner": {"id": 963}, "assignee": {"id": 1051}}, "job": {"id": 361, "assignee": {"id": 1155}}, "organization": {"id": 197}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 673}, "assignee": {"id": 513}, "project": {"id": 337, "owner": {"id": 762}, "assignee": {"id": 877}}, "task": {"id": 317, "owner": {"id": 981}, "assignee": {"id": 1004}}, "job": {"id": 372, "assignee": {"id": 1146}}, "organization": {"id": 171}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 609}, "assignee": {"id": 508}, "project": {"id": 332, "owner": {"id": 747}, "assignee": {"id": 842}}, "task": {"id": 376, "owner": {"id": 968}, "assignee": {"id": 1091}}, "job": {"id": 300, "assignee": {"id": 1195}}, "organization": {"id": 1209}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "owner": {"id": 618}, "assignee": {"id": 575}, "project": {"id": 398, "owner": {"id": 779}, "assignee": {"id": 829}}, "task": {"id": 384, "owner": {"id": 981}, "assignee": {"id": 1023}}, "job": {"id": 315, "assignee": {"id": 1146}}, "organization": {"id": 1266}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "owner": {"id": 666}, "assignee": {"id": 559}, "project": {"id": 317, "owner": {"id": 782}, "assignee": {"id": 828}}, "task": {"id": 366, "owner": {"id": 930}, "assignee": {"id": 1099}}, "job": {"id": 318, "assignee": {"id": 1182}}, "organization": {"id": 166}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 390, "owner": {"id": 623}, "assignee": {"id": 576}, "project": {"id": 373, "owner": {"id": 777}, "assignee": {"id": 808}}, "task": {"id": 308, "owner": {"id": 978}, "assignee": {"id": 1092}}, "job": {"id": 315, "assignee": {"id": 1122}}, "organization": {"id": 186}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "owner": {"id": 609}, "assignee": {"id": 509}, "project": {"id": 335, "owner": {"id": 736}, "assignee": {"id": 820}}, "task": {"id": 300, "owner": {"id": 943}, "assignee": {"id": 1069}}, "job": {"id": 311, "assignee": {"id": 1159}}, "organization": {"id": 1225}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "owner": {"id": 639}, "assignee": {"id": 544}, "project": {"id": 360, "owner": {"id": 776}, "assignee": {"id": 890}}, "task": {"id": 351, "owner": {"id": 954}, "assignee": {"id": 1069}}, "job": {"id": 307, "assignee": {"id": 1103}}, "organization": {"id": 1213}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 652}, "assignee": {"id": 596}, "project": {"id": 352, "owner": {"id": 735}, "assignee": {"id": 822}}, "task": {"id": 377, "owner": {"id": 917}, "assignee": {"id": 1055}}, "job": {"id": 397, "assignee": {"id": 1187}}, "organization": {"id": 137}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 644}, "assignee": {"id": 584}, "project": {"id": 388, "owner": {"id": 772}, "assignee": {"id": 860}}, "task": {"id": 335, "owner": {"id": 926}, "assignee": {"id": 1060}}, "job": {"id": 367, "assignee": {"id": 1138}}, "organization": {"id": 179}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 656}, "assignee": {"id": 583}, "project": {"id": 304, "owner": {"id": 700}, "assignee": {"id": 812}}, "task": {"id": 369, "owner": {"id": 924}, "assignee": {"id": 1000}}, "job": {"id": 393, "assignee": {"id": 1182}}, "organization": {"id": 1208}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 611}, "assignee": {"id": 590}, "project": {"id": 354, "owner": {"id": 736}, "assignee": {"id": 810}}, "task": {"id": 363, "owner": {"id": 932}, "assignee": {"id": 1045}}, "job": {"id": 306, "assignee": {"id": 1163}}, "organization": {"id": 1230}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 366, "owner": {"id": 682}, "assignee": {"id": 546}, "project": {"id": 342, "owner": {"id": 796}, "assignee": {"id": 814}}, "task": {"id": 361, "owner": {"id": 943}, "assignee": {"id": 1093}}, "job": {"id": 307, "assignee": {"id": 1123}}, "organization": {"id": 164}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 363, "owner": {"id": 630}, "assignee": {"id": 549}, "project": {"id": 365, "owner": {"id": 711}, "assignee": {"id": 898}}, "task": {"id": 359, "owner": {"id": 949}, "assignee": {"id": 1059}}, "job": {"id": 326, "assignee": {"id": 1108}}, "organization": {"id": 134}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 669}, "assignee": {"id": 542}, "project": {"id": 324, "owner": {"id": 737}, "assignee": {"id": 826}}, "task": {"id": 376, "owner": {"id": 984}, "assignee": {"id": 1013}}, "job": {"id": 378, "assignee": {"id": 1137}}, "organization": {"id": 1235}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 373, "owner": {"id": 645}, "assignee": {"id": 573}, "project": {"id": 389, "owner": {"id": 736}, "assignee": {"id": 860}}, "task": {"id": 358, "owner": {"id": 964}, "assignee": {"id": 1051}}, "job": {"id": 347, "assignee": {"id": 1177}}, "organization": {"id": 1275}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 302, "owner": {"id": 631}, "assignee": {"id": 554}, "project": {"id": 334, "owner": {"id": 733}, "assignee": {"id": 878}}, "task": {"id": 324, "owner": {"id": 928}, "assignee": {"id": 1028}}, "job": {"id": 368, "assignee": {"id": 1152}}, "organization": {"id": 109}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 300, "owner": {"id": 611}, "assignee": {"id": 549}, "project": {"id": 309, "owner": {"id": 795}, "assignee": {"id": 868}}, "task": {"id": 305, "owner": {"id": 964}, "assignee": {"id": 1040}}, "job": {"id": 365, "assignee": {"id": 1173}}, "organization": {"id": 116}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 363, "owner": {"id": 618}, "assignee": {"id": 556}, "project": {"id": 370, "owner": {"id": 705}, "assignee": {"id": 885}}, "task": {"id": 386, "owner": {"id": 951}, "assignee": {"id": 1091}}, "job": {"id": 317, "assignee": {"id": 1102}}, "organization": {"id": 1214}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 323, "owner": {"id": 609}, "assignee": {"id": 510}, "project": {"id": 343, "owner": {"id": 777}, "assignee": {"id": 838}}, "task": {"id": 376, "owner": {"id": 980}, "assignee": {"id": 1079}}, "job": {"id": 343, "assignee": {"id": 1174}}, "organization": {"id": 1222}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 654}, "assignee": {"id": 585}, "project": {"id": 345, "owner": {"id": 713}, "assignee": {"id": 819}}, "task": {"id": 377, "owner": {"id": 907}, "assignee": {"id": 1091}}, "job": {"id": 315, "assignee": {"id": 1189}}, "organization": {"id": 146}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "owner": {"id": 606}, "assignee": {"id": 554}, "project": {"id": 301, "owner": {"id": 756}, "assignee": {"id": 801}}, "task": {"id": 302, "owner": {"id": 974}, "assignee": {"id": 1003}}, "job": {"id": 315, "assignee": {"id": 1143}}, "organization": {"id": 143}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "owner": {"id": 666}, "assignee": {"id": 559}, "project": {"id": 334, "owner": {"id": 780}, "assignee": {"id": 853}}, "task": {"id": 360, "owner": {"id": 904}, "assignee": {"id": 1020}}, "job": {"id": 319, "assignee": {"id": 1178}}, "organization": {"id": 1280}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "owner": {"id": 644}, "assignee": {"id": 551}, "project": {"id": 354, "owner": {"id": 733}, "assignee": {"id": 845}}, "task": {"id": 353, "owner": {"id": 948}, "assignee": {"id": 1017}}, "job": {"id": 316, "assignee": {"id": 1196}}, "organization": {"id": 1258}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 673}, "assignee": {"id": 511}, "project": {"id": 374, "owner": {"id": 744}, "assignee": {"id": 846}}, "task": {"id": 312, "owner": {"id": 998}, "assignee": {"id": 1033}}, "job": {"id": 326, "assignee": {"id": 1182}}, "organization": {"id": 168}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "owner": {"id": 659}, "assignee": {"id": 577}, "project": {"id": 382, "owner": {"id": 764}, "assignee": {"id": 847}}, "task": {"id": 377, "owner": {"id": 966}, "assignee": {"id": 1047}}, "job": {"id": 306, "assignee": {"id": 1150}}, "organization": {"id": 184}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 653}, "assignee": {"id": 588}, "project": {"id": 341, "owner": {"id": 778}, "assignee": {"id": 865}}, "task": {"id": 307, "owner": {"id": 989}, "assignee": {"id": 1040}}, "job": {"id": 317, "assignee": {"id": 1167}}, "organization": {"id": 1213}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 623}, "assignee": {"id": 586}, "project": {"id": 362, "owner": {"id": 713}, "assignee": {"id": 852}}, "task": {"id": 364, "owner": {"id": 997}, "assignee": {"id": 1093}}, "job": {"id": 327, "assignee": {"id": 1192}}, "organization": {"id": 1289}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 389, "owner": {"id": 619}, "assignee": {"id": 516}, "project": {"id": 344, "owner": {"id": 794}, "assignee": {"id": 822}}, "task": {"id": 340, "owner": {"id": 927}, "assignee": {"id": 1070}}, "job": {"id": 393, "assignee": {"id": 1137}}, "organization": {"id": 120}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 384, "owner": {"id": 677}, "assignee": {"id": 535}, "project": {"id": 321, "owner": {"id": 798}, "assignee": {"id": 883}}, "task": {"id": 377, "owner": {"id": 939}, "assignee": {"id": 1033}}, "job": {"id": 362, "assignee": {"id": 1100}}, "organization": {"id": 180}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 691}, "assignee": {"id": 567}, "project": {"id": 390, "owner": {"id": 754}, "assignee": {"id": 876}}, "task": {"id": 362, "owner": {"id": 991}, "assignee": {"id": 1023}}, "job": {"id": 303, "assignee": {"id": 1175}}, "organization": {"id": 1240}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 390, "owner": {"id": 620}, "assignee": {"id": 585}, "project": {"id": 337, "owner": {"id": 745}, "assignee": {"id": 862}}, "task": {"id": 329, "owner": {"id": 974}, "assignee": {"id": 1028}}, "job": {"id": 381, "assignee": {"id": 1108}}, "organization": {"id": 1219}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 363, "owner": {"id": 631}, "assignee": {"id": 575}, "project": {"id": 359, "owner": {"id": 792}, "assignee": {"id": 849}}, "task": {"id": 327, "owner": {"id": 979}, "assignee": {"id": 1023}}, "job": {"id": 372, "assignee": {"id": 1179}}, "organization": {"id": 120}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"id": 347, "owner": {"id": 678}, "assignee": {"id": 539}, "project": {"id": 398, "owner": {"id": 772}, "assignee": {"id": 857}}, "task": {"id": 347, "owner": {"id": 990}, "assignee": {"id": 1081}}, "job": {"id": 379, "assignee": {"id": 1141}}, "organization": {"id": 120}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 636}, "assignee": {"id": 542}, "project": {"id": 372, "owner": {"id": 790}, "assignee": {"id": 858}}, "task": {"id": 385, "owner": {"id": 945}, "assignee": {"id": 1042}}, "job": {"id": 381, "assignee": {"id": 1143}}, "organization": {"id": 1218}}} -} - -test_scope_CREATE_IN_JOB_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "create@job", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"id": 333, "owner": {"id": 657}, "assignee": {"id": 587}, "project": {"id": 303, "owner": {"id": 776}, "assignee": {"id": 838}}, "task": {"id": 302, "owner": {"id": 926}, "assignee": {"id": 1002}}, "job": {"id": 346, "assignee": {"id": 1127}}, "organization": {"id": 1211}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": null}, "resource": {"id": 336, "owner": {"id": 695}, "assignee": {"id": 536}, "project": {"id": 332, "owner": {"id": 13}, "assignee": {"id": 824}}, "task": {"id": 354, "owner": {"id": 988}, "assignee": {"id": 1063}}, "job": {"id": 338, "assignee": {"id": 1196}}, "organization": {"id": 1231}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": null}, "resource": {"id": 339, "owner": {"id": 675}, "assignee": {"id": 570}, "project": {"id": 344, "owner": {"id": 92}, "assignee": {"id": 893}}, "task": {"id": 324, "owner": {"id": 902}, "assignee": {"id": 1064}}, "job": {"id": 372, "assignee": {"id": 1184}}, "organization": {"id": 1254}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": null}, "resource": {"id": 351, "owner": {"id": 687}, "assignee": {"id": 511}, "project": {"id": 361, "owner": {"id": 67}, "assignee": {"id": 853}}, "task": {"id": 353, "owner": {"id": 997}, "assignee": {"id": 1056}}, "job": {"id": 341, "assignee": {"id": 1152}}, "organization": {"id": 1216}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": null}, "resource": {"id": 355, "owner": {"id": 652}, "assignee": {"id": 560}, "project": {"id": 345, "owner": {"id": 22}, "assignee": {"id": 821}}, "task": {"id": 385, "owner": {"id": 940}, "assignee": {"id": 1023}}, "job": {"id": 382, "assignee": {"id": 1171}}, "organization": {"id": 1224}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": null}, "resource": {"id": 318, "owner": {"id": 639}, "assignee": {"id": 594}, "project": {"id": 316, "owner": {"id": 29}, "assignee": {"id": 806}}, "task": {"id": 304, "owner": {"id": 998}, "assignee": {"id": 1065}}, "job": {"id": 372, "assignee": {"id": 1198}}, "organization": {"id": 1203}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": null}, "resource": {"id": 352, "owner": {"id": 624}, "assignee": {"id": 590}, "project": {"id": 353, "owner": {"id": 721}, "assignee": {"id": 6}}, "task": {"id": 376, "owner": {"id": 931}, "assignee": {"id": 1028}}, "job": {"id": 366, "assignee": {"id": 1121}}, "organization": {"id": 1239}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": null}, "resource": {"id": 392, "owner": {"id": 653}, "assignee": {"id": 533}, "project": {"id": 312, "owner": {"id": 762}, "assignee": {"id": 2}}, "task": {"id": 320, "owner": {"id": 997}, "assignee": {"id": 1062}}, "job": {"id": 391, "assignee": {"id": 1164}}, "organization": {"id": 1260}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": null}, "resource": {"id": 375, "owner": {"id": 641}, "assignee": {"id": 572}, "project": {"id": 322, "owner": {"id": 720}, "assignee": {"id": 93}}, "task": {"id": 366, "owner": {"id": 959}, "assignee": {"id": 1092}}, "job": {"id": 349, "assignee": {"id": 1154}}, "organization": {"id": 1279}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": null}, "resource": {"id": 337, "owner": {"id": 673}, "assignee": {"id": 595}, "project": {"id": 378, "owner": {"id": 778}, "assignee": {"id": 9}}, "task": {"id": 329, "owner": {"id": 941}, "assignee": {"id": 1085}}, "job": {"id": 383, "assignee": {"id": 1104}}, "organization": {"id": 1250}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": null}, "resource": {"id": 302, "owner": {"id": 686}, "assignee": {"id": 540}, "project": {"id": 365, "owner": {"id": 705}, "assignee": {"id": 20}}, "task": {"id": 338, "owner": {"id": 957}, "assignee": {"id": 1003}}, "job": {"id": 378, "assignee": {"id": 1165}}, "organization": {"id": 1264}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": null}, "resource": {"id": 371, "owner": {"id": 659}, "assignee": {"id": 528}, "project": {"id": 370, "owner": {"id": 727}, "assignee": {"id": 899}}, "task": {"id": 371, "owner": {"id": 93}, "assignee": {"id": 1005}}, "job": {"id": 310, "assignee": {"id": 1168}}, "organization": {"id": 1297}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": null}, "resource": {"id": 393, "owner": {"id": 621}, "assignee": {"id": 586}, "project": {"id": 314, "owner": {"id": 783}, "assignee": {"id": 815}}, "task": {"id": 392, "owner": {"id": 48}, "assignee": {"id": 1069}}, "job": {"id": 336, "assignee": {"id": 1166}}, "organization": {"id": 1293}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": null}, "resource": {"id": 390, "owner": {"id": 630}, "assignee": {"id": 567}, "project": {"id": 348, "owner": {"id": 787}, "assignee": {"id": 845}}, "task": {"id": 399, "owner": {"id": 59}, "assignee": {"id": 1085}}, "job": {"id": 398, "assignee": {"id": 1161}}, "organization": {"id": 1266}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": null}, "resource": {"id": 322, "owner": {"id": 680}, "assignee": {"id": 510}, "project": {"id": 346, "owner": {"id": 749}, "assignee": {"id": 860}}, "task": {"id": 380, "owner": {"id": 93}, "assignee": {"id": 1095}}, "job": {"id": 314, "assignee": {"id": 1145}}, "organization": {"id": 1238}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": null}, "resource": {"id": 391, "owner": {"id": 692}, "assignee": {"id": 515}, "project": {"id": 343, "owner": {"id": 740}, "assignee": {"id": 848}}, "task": {"id": 383, "owner": {"id": 14}, "assignee": {"id": 1009}}, "job": {"id": 328, "assignee": {"id": 1122}}, "organization": {"id": 1255}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": null}, "resource": {"id": 388, "owner": {"id": 606}, "assignee": {"id": 576}, "project": {"id": 325, "owner": {"id": 724}, "assignee": {"id": 837}}, "task": {"id": 300, "owner": {"id": 0}, "assignee": {"id": 1074}}, "job": {"id": 345, "assignee": {"id": 1144}}, "organization": {"id": 1252}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": null}, "resource": {"id": 313, "owner": {"id": 658}, "assignee": {"id": 580}, "project": {"id": 366, "owner": {"id": 739}, "assignee": {"id": 849}}, "task": {"id": 302, "owner": {"id": 7}, "assignee": {"id": 1089}}, "job": {"id": 319, "assignee": {"id": 1184}}, "organization": {"id": 1259}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": null}, "resource": {"id": 367, "owner": {"id": 692}, "assignee": {"id": 524}, "project": {"id": 301, "owner": {"id": 757}, "assignee": {"id": 895}}, "task": {"id": 374, "owner": {"id": 32}, "assignee": {"id": 1062}}, "job": {"id": 361, "assignee": {"id": 1132}}, "organization": {"id": 1249}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": null}, "resource": {"id": 360, "owner": {"id": 629}, "assignee": {"id": 542}, "project": {"id": 399, "owner": {"id": 787}, "assignee": {"id": 847}}, "task": {"id": 344, "owner": {"id": 4}, "assignee": {"id": 1083}}, "job": {"id": 317, "assignee": {"id": 1139}}, "organization": {"id": 1200}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": null}, "resource": {"id": 393, "owner": {"id": 689}, "assignee": {"id": 524}, "project": {"id": 318, "owner": {"id": 738}, "assignee": {"id": 833}}, "task": {"id": 307, "owner": {"id": 22}, "assignee": {"id": 1065}}, "job": {"id": 315, "assignee": {"id": 1139}}, "organization": {"id": 1230}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": null}, "resource": {"id": 318, "owner": {"id": 611}, "assignee": {"id": 562}, "project": {"id": 360, "owner": {"id": 719}, "assignee": {"id": 894}}, "task": {"id": 311, "owner": {"id": 929}, "assignee": {"id": 14}}, "job": {"id": 339, "assignee": {"id": 1185}}, "organization": {"id": 1263}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": null}, "resource": {"id": 341, "owner": {"id": 615}, "assignee": {"id": 511}, "project": {"id": 351, "owner": {"id": 771}, "assignee": {"id": 886}}, "task": {"id": 312, "owner": {"id": 915}, "assignee": {"id": 20}}, "job": {"id": 387, "assignee": {"id": 1168}}, "organization": {"id": 1279}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": null}, "resource": {"id": 347, "owner": {"id": 637}, "assignee": {"id": 597}, "project": {"id": 365, "owner": {"id": 704}, "assignee": {"id": 850}}, "task": {"id": 348, "owner": {"id": 977}, "assignee": {"id": 84}}, "job": {"id": 336, "assignee": {"id": 1157}}, "organization": {"id": 1259}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": null}, "resource": {"id": 355, "owner": {"id": 622}, "assignee": {"id": 560}, "project": {"id": 348, "owner": {"id": 702}, "assignee": {"id": 885}}, "task": {"id": 369, "owner": {"id": 987}, "assignee": {"id": 21}}, "job": {"id": 389, "assignee": {"id": 1177}}, "organization": {"id": 1235}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": null}, "resource": {"id": 305, "owner": {"id": 634}, "assignee": {"id": 586}, "project": {"id": 383, "owner": {"id": 781}, "assignee": {"id": 860}}, "task": {"id": 377, "owner": {"id": 912}, "assignee": {"id": 18}}, "job": {"id": 347, "assignee": {"id": 1134}}, "organization": {"id": 1267}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": null}, "resource": {"id": 335, "owner": {"id": 657}, "assignee": {"id": 579}, "project": {"id": 346, "owner": {"id": 723}, "assignee": {"id": 819}}, "task": {"id": 368, "owner": {"id": 935}, "assignee": {"id": 9}}, "job": {"id": 300, "assignee": {"id": 1118}}, "organization": {"id": 1293}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": null}, "resource": {"id": 352, "owner": {"id": 691}, "assignee": {"id": 527}, "project": {"id": 384, "owner": {"id": 792}, "assignee": {"id": 815}}, "task": {"id": 360, "owner": {"id": 963}, "assignee": {"id": 48}}, "job": {"id": 361, "assignee": {"id": 1124}}, "organization": {"id": 1202}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": null}, "resource": {"id": 342, "owner": {"id": 645}, "assignee": {"id": 512}, "project": {"id": 384, "owner": {"id": 728}, "assignee": {"id": 838}}, "task": {"id": 301, "owner": {"id": 944}, "assignee": {"id": 79}}, "job": {"id": 331, "assignee": {"id": 1142}}, "organization": {"id": 1267}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": null}, "resource": {"id": 357, "owner": {"id": 673}, "assignee": {"id": 542}, "project": {"id": 311, "owner": {"id": 756}, "assignee": {"id": 854}}, "task": {"id": 398, "owner": {"id": 993}, "assignee": {"id": 21}}, "job": {"id": 315, "assignee": {"id": 1152}}, "organization": {"id": 1248}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": null}, "resource": {"id": 326, "owner": {"id": 691}, "assignee": {"id": 512}, "project": {"id": 365, "owner": {"id": 715}, "assignee": {"id": 801}}, "task": {"id": 390, "owner": {"id": 928}, "assignee": {"id": 2}}, "job": {"id": 310, "assignee": {"id": 1189}}, "organization": {"id": 1298}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": null}, "resource": {"id": 337, "owner": {"id": 645}, "assignee": {"id": 557}, "project": {"id": 338, "owner": {"id": 758}, "assignee": {"id": 855}}, "task": {"id": 347, "owner": {"id": 943}, "assignee": {"id": 1040}}, "job": {"id": 365, "assignee": {"id": 90}}, "organization": {"id": 1213}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": null}, "resource": {"id": 328, "owner": {"id": 626}, "assignee": {"id": 585}, "project": {"id": 393, "owner": {"id": 749}, "assignee": {"id": 887}}, "task": {"id": 344, "owner": {"id": 948}, "assignee": {"id": 1013}}, "job": {"id": 362, "assignee": {"id": 58}}, "organization": {"id": 1280}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": null}, "resource": {"id": 321, "owner": {"id": 683}, "assignee": {"id": 548}, "project": {"id": 334, "owner": {"id": 703}, "assignee": {"id": 815}}, "task": {"id": 329, "owner": {"id": 939}, "assignee": {"id": 1090}}, "job": {"id": 324, "assignee": {"id": 80}}, "organization": {"id": 1200}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 94, "privilege": "business"}, "organization": null}, "resource": {"id": 354, "owner": {"id": 691}, "assignee": {"id": 556}, "project": {"id": 394, "owner": {"id": 768}, "assignee": {"id": 896}}, "task": {"id": 382, "owner": {"id": 909}, "assignee": {"id": 1016}}, "job": {"id": 353, "assignee": {"id": 94}}, "organization": {"id": 1200}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": null}, "resource": {"id": 310, "owner": {"id": 655}, "assignee": {"id": 589}, "project": {"id": 312, "owner": {"id": 711}, "assignee": {"id": 867}}, "task": {"id": 396, "owner": {"id": 930}, "assignee": {"id": 1063}}, "job": {"id": 361, "assignee": {"id": 67}}, "organization": {"id": 1233}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": null}, "resource": {"id": 399, "owner": {"id": 684}, "assignee": {"id": 534}, "project": {"id": 313, "owner": {"id": 774}, "assignee": {"id": 897}}, "task": {"id": 366, "owner": {"id": 906}, "assignee": {"id": 1090}}, "job": {"id": 322, "assignee": {"id": 18}}, "organization": {"id": 1258}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": null}, "resource": {"id": 321, "owner": {"id": 611}, "assignee": {"id": 544}, "project": {"id": 387, "owner": {"id": 755}, "assignee": {"id": 865}}, "task": {"id": 313, "owner": {"id": 988}, "assignee": {"id": 1082}}, "job": {"id": 312, "assignee": {"id": 93}}, "organization": {"id": 1274}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": null}, "resource": {"id": 355, "owner": {"id": 675}, "assignee": {"id": 500}, "project": {"id": 305, "owner": {"id": 796}, "assignee": {"id": 835}}, "task": {"id": 356, "owner": {"id": 951}, "assignee": {"id": 1096}}, "job": {"id": 350, "assignee": {"id": 21}}, "organization": {"id": 1236}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": null}, "resource": {"id": 368, "owner": {"id": 685}, "assignee": {"id": 554}, "project": {"id": 368, "owner": {"id": 719}, "assignee": {"id": 809}}, "task": {"id": 366, "owner": {"id": 955}, "assignee": {"id": 1030}}, "job": {"id": 351, "assignee": {"id": 22}}, "organization": {"id": 1268}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": null}, "resource": {"id": 392, "owner": {"id": 651}, "assignee": {"id": 557}, "project": {"id": 377, "owner": {"id": 770}, "assignee": {"id": 843}}, "task": {"id": 370, "owner": {"id": 915}, "assignee": {"id": 1081}}, "job": {"id": 347, "assignee": {"id": 44}}, "organization": {"id": 1268}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": null}, "resource": {"id": 362, "owner": {"id": 2}, "assignee": {"id": 593}, "project": {"id": 330, "owner": {"id": 708}, "assignee": {"id": 814}}, "task": {"id": 301, "owner": {"id": 998}, "assignee": {"id": 1019}}, "job": {"id": 398, "assignee": {"id": 1160}}, "organization": {"id": 1208}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": null}, "resource": {"id": 371, "owner": {"id": 51}, "assignee": {"id": 594}, "project": {"id": 348, "owner": {"id": 709}, "assignee": {"id": 819}}, "task": {"id": 382, "owner": {"id": 952}, "assignee": {"id": 1022}}, "job": {"id": 368, "assignee": {"id": 1109}}, "organization": {"id": 1216}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": null}, "resource": {"id": 363, "owner": {"id": 58}, "assignee": {"id": 586}, "project": {"id": 382, "owner": {"id": 735}, "assignee": {"id": 856}}, "task": {"id": 302, "owner": {"id": 901}, "assignee": {"id": 1082}}, "job": {"id": 344, "assignee": {"id": 1129}}, "organization": {"id": 1282}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 31, "privilege": "business"}, "organization": null}, "resource": {"id": 398, "owner": {"id": 31}, "assignee": {"id": 596}, "project": {"id": 364, "owner": {"id": 705}, "assignee": {"id": 852}}, "task": {"id": 362, "owner": {"id": 949}, "assignee": {"id": 1043}}, "job": {"id": 333, "assignee": {"id": 1148}}, "organization": {"id": 1259}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": null}, "resource": {"id": 345, "owner": {"id": 76}, "assignee": {"id": 504}, "project": {"id": 321, "owner": {"id": 758}, "assignee": {"id": 848}}, "task": {"id": 307, "owner": {"id": 999}, "assignee": {"id": 1034}}, "job": {"id": 345, "assignee": {"id": 1133}}, "organization": {"id": 1261}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": null}, "resource": {"id": 376, "owner": {"id": 21}, "assignee": {"id": 519}, "project": {"id": 316, "owner": {"id": 716}, "assignee": {"id": 802}}, "task": {"id": 387, "owner": {"id": 999}, "assignee": {"id": 1014}}, "job": {"id": 339, "assignee": {"id": 1147}}, "organization": {"id": 1230}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": null}, "resource": {"id": 353, "owner": {"id": 94}, "assignee": {"id": 539}, "project": {"id": 303, "owner": {"id": 799}, "assignee": {"id": 838}}, "task": {"id": 302, "owner": {"id": 909}, "assignee": {"id": 1067}}, "job": {"id": 312, "assignee": {"id": 1150}}, "organization": {"id": 1276}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": null}, "resource": {"id": 379, "owner": {"id": 5}, "assignee": {"id": 575}, "project": {"id": 323, "owner": {"id": 724}, "assignee": {"id": 846}}, "task": {"id": 301, "owner": {"id": 956}, "assignee": {"id": 1028}}, "job": {"id": 381, "assignee": {"id": 1188}}, "organization": {"id": 1280}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": null}, "resource": {"id": 317, "owner": {"id": 59}, "assignee": {"id": 582}, "project": {"id": 368, "owner": {"id": 771}, "assignee": {"id": 803}}, "task": {"id": 374, "owner": {"id": 967}, "assignee": {"id": 1063}}, "job": {"id": 351, "assignee": {"id": 1189}}, "organization": {"id": 1209}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": null}, "resource": {"id": 384, "owner": {"id": 36}, "assignee": {"id": 558}, "project": {"id": 350, "owner": {"id": 717}, "assignee": {"id": 867}}, "task": {"id": 364, "owner": {"id": 932}, "assignee": {"id": 1072}}, "job": {"id": 334, "assignee": {"id": 1129}}, "organization": {"id": 1284}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": null}, "resource": {"id": 313, "owner": {"id": 628}, "assignee": {"id": 21}, "project": {"id": 337, "owner": {"id": 794}, "assignee": {"id": 821}}, "task": {"id": 364, "owner": {"id": 996}, "assignee": {"id": 1067}}, "job": {"id": 314, "assignee": {"id": 1179}}, "organization": {"id": 1295}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": null}, "resource": {"id": 353, "owner": {"id": 660}, "assignee": {"id": 17}, "project": {"id": 373, "owner": {"id": 726}, "assignee": {"id": 850}}, "task": {"id": 371, "owner": {"id": 936}, "assignee": {"id": 1007}}, "job": {"id": 329, "assignee": {"id": 1110}}, "organization": {"id": 1285}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": null}, "resource": {"id": 394, "owner": {"id": 609}, "assignee": {"id": 13}, "project": {"id": 372, "owner": {"id": 786}, "assignee": {"id": 820}}, "task": {"id": 351, "owner": {"id": 920}, "assignee": {"id": 1006}}, "job": {"id": 362, "assignee": {"id": 1157}}, "organization": {"id": 1293}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": null}, "resource": {"id": 302, "owner": {"id": 655}, "assignee": {"id": 84}, "project": {"id": 303, "owner": {"id": 791}, "assignee": {"id": 802}}, "task": {"id": 322, "owner": {"id": 940}, "assignee": {"id": 1050}}, "job": {"id": 345, "assignee": {"id": 1118}}, "organization": {"id": 1203}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": null}, "resource": {"id": 385, "owner": {"id": 644}, "assignee": {"id": 61}, "project": {"id": 373, "owner": {"id": 798}, "assignee": {"id": 839}}, "task": {"id": 386, "owner": {"id": 914}, "assignee": {"id": 1037}}, "job": {"id": 397, "assignee": {"id": 1181}}, "organization": {"id": 1241}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": null}, "resource": {"id": 329, "owner": {"id": 674}, "assignee": {"id": 49}, "project": {"id": 314, "owner": {"id": 788}, "assignee": {"id": 805}}, "task": {"id": 302, "owner": {"id": 906}, "assignee": {"id": 1044}}, "job": {"id": 320, "assignee": {"id": 1195}}, "organization": {"id": 1228}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": null}, "resource": {"id": 300, "owner": {"id": 641}, "assignee": {"id": 40}, "project": {"id": 306, "owner": {"id": 745}, "assignee": {"id": 894}}, "task": {"id": 362, "owner": {"id": 928}, "assignee": {"id": 1046}}, "job": {"id": 325, "assignee": {"id": 1124}}, "organization": {"id": 1201}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": null}, "resource": {"id": 340, "owner": {"id": 639}, "assignee": {"id": 22}, "project": {"id": 358, "owner": {"id": 707}, "assignee": {"id": 889}}, "task": {"id": 393, "owner": {"id": 948}, "assignee": {"id": 1053}}, "job": {"id": 334, "assignee": {"id": 1148}}, "organization": {"id": 1282}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": null}, "resource": {"id": 347, "owner": {"id": 631}, "assignee": {"id": 77}, "project": {"id": 332, "owner": {"id": 785}, "assignee": {"id": 890}}, "task": {"id": 337, "owner": {"id": 947}, "assignee": {"id": 1060}}, "job": {"id": 357, "assignee": {"id": 1172}}, "organization": {"id": 1280}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": null}, "resource": {"id": 300, "owner": {"id": 631}, "assignee": {"id": 69}, "project": {"id": 398, "owner": {"id": 778}, "assignee": {"id": 808}}, "task": {"id": 350, "owner": {"id": 985}, "assignee": {"id": 1030}}, "job": {"id": 300, "assignee": {"id": 1152}}, "organization": {"id": 1259}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 7, "privilege": "admin"}, "organization": null}, "resource": {"id": 392, "owner": {"id": 670}, "assignee": {"id": 550}, "project": {"id": 342, "owner": {"id": 719}, "assignee": {"id": 896}}, "task": {"id": 363, "owner": {"id": 982}, "assignee": {"id": 1006}}, "job": {"id": 344, "assignee": {"id": 1115}}, "organization": {"id": 1201}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": null}, "resource": {"id": 348, "owner": {"id": 658}, "assignee": {"id": 507}, "project": {"id": 308, "owner": {"id": 726}, "assignee": {"id": 895}}, "task": {"id": 305, "owner": {"id": 913}, "assignee": {"id": 1084}}, "job": {"id": 317, "assignee": {"id": 1106}}, "organization": {"id": 1213}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": null}, "resource": {"id": 334, "owner": {"id": 648}, "assignee": {"id": 599}, "project": {"id": 310, "owner": {"id": 711}, "assignee": {"id": 871}}, "task": {"id": 362, "owner": {"id": 963}, "assignee": {"id": 1004}}, "job": {"id": 336, "assignee": {"id": 1116}}, "organization": {"id": 1297}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": null}, "resource": {"id": 366, "owner": {"id": 666}, "assignee": {"id": 530}, "project": {"id": 322, "owner": {"id": 773}, "assignee": {"id": 869}}, "task": {"id": 330, "owner": {"id": 970}, "assignee": {"id": 1023}}, "job": {"id": 304, "assignee": {"id": 1119}}, "organization": {"id": 1211}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": null}, "resource": {"id": 304, "owner": {"id": 688}, "assignee": {"id": 588}, "project": {"id": 382, "owner": {"id": 773}, "assignee": {"id": 818}}, "task": {"id": 384, "owner": {"id": 934}, "assignee": {"id": 1099}}, "job": {"id": 366, "assignee": {"id": 1123}}, "organization": {"id": 1277}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": null}, "resource": {"id": 379, "owner": {"id": 643}, "assignee": {"id": 559}, "project": {"id": 398, "owner": {"id": 703}, "assignee": {"id": 872}}, "task": {"id": 336, "owner": {"id": 967}, "assignee": {"id": 1019}}, "job": {"id": 326, "assignee": {"id": 1157}}, "organization": {"id": 1224}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": null}, "resource": {"id": 324, "owner": {"id": 657}, "assignee": {"id": 561}, "project": {"id": 340, "owner": {"id": 733}, "assignee": {"id": 865}}, "task": {"id": 352, "owner": {"id": 988}, "assignee": {"id": 1085}}, "job": {"id": 368, "assignee": {"id": 1192}}, "organization": {"id": 1261}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": null}, "resource": {"id": 353, "owner": {"id": 611}, "assignee": {"id": 567}, "project": {"id": 316, "owner": {"id": 735}, "assignee": {"id": 840}}, "task": {"id": 317, "owner": {"id": 921}, "assignee": {"id": 1018}}, "job": {"id": 312, "assignee": {"id": 1138}}, "organization": {"id": 1201}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": null}, "resource": {"id": 307, "owner": {"id": 677}, "assignee": {"id": 515}, "project": {"id": 305, "owner": {"id": 798}, "assignee": {"id": 836}}, "task": {"id": 348, "owner": {"id": 918}, "assignee": {"id": 1036}}, "job": {"id": 376, "assignee": {"id": 1137}}, "organization": {"id": 1285}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": null}, "resource": {"id": 382, "owner": {"id": 681}, "assignee": {"id": 531}, "project": {"id": 354, "owner": {"id": 705}, "assignee": {"id": 861}}, "task": {"id": 308, "owner": {"id": 961}, "assignee": {"id": 1088}}, "job": {"id": 308, "assignee": {"id": 1154}}, "organization": {"id": 1255}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 352, "owner": {"id": 679}, "assignee": {"id": 513}, "project": {"id": 324, "owner": {"id": 90}, "assignee": {"id": 899}}, "task": {"id": 397, "owner": {"id": 952}, "assignee": {"id": 1095}}, "job": {"id": 318, "assignee": {"id": 1138}}, "organization": {"id": 146}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 317, "owner": {"id": 639}, "assignee": {"id": 593}, "project": {"id": 367, "owner": {"id": 30}, "assignee": {"id": 803}}, "task": {"id": 362, "owner": {"id": 967}, "assignee": {"id": 1012}}, "job": {"id": 332, "assignee": {"id": 1131}}, "organization": {"id": 1242}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "owner": {"id": 690}, "assignee": {"id": 521}, "project": {"id": 335, "owner": {"id": 40}, "assignee": {"id": 899}}, "task": {"id": 311, "owner": {"id": 980}, "assignee": {"id": 1023}}, "job": {"id": 312, "assignee": {"id": 1135}}, "organization": {"id": 101}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "owner": {"id": 614}, "assignee": {"id": 571}, "project": {"id": 391, "owner": {"id": 57}, "assignee": {"id": 844}}, "task": {"id": 384, "owner": {"id": 941}, "assignee": {"id": 1061}}, "job": {"id": 361, "assignee": {"id": 1107}}, "organization": {"id": 1299}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 624}, "assignee": {"id": 513}, "project": {"id": 339, "owner": {"id": 28}, "assignee": {"id": 808}}, "task": {"id": 346, "owner": {"id": 996}, "assignee": {"id": 1098}}, "job": {"id": 302, "assignee": {"id": 1189}}, "organization": {"id": 131}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "owner": {"id": 668}, "assignee": {"id": 549}, "project": {"id": 342, "owner": {"id": 99}, "assignee": {"id": 894}}, "task": {"id": 386, "owner": {"id": 978}, "assignee": {"id": 1015}}, "job": {"id": 353, "assignee": {"id": 1197}}, "organization": {"id": 1230}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 354, "owner": {"id": 662}, "assignee": {"id": 575}, "project": {"id": 392, "owner": {"id": 39}, "assignee": {"id": 807}}, "task": {"id": 346, "owner": {"id": 943}, "assignee": {"id": 1089}}, "job": {"id": 326, "assignee": {"id": 1143}}, "organization": {"id": 165}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 307, "owner": {"id": 694}, "assignee": {"id": 516}, "project": {"id": 346, "owner": {"id": 3}, "assignee": {"id": 841}}, "task": {"id": 319, "owner": {"id": 916}, "assignee": {"id": 1058}}, "job": {"id": 365, "assignee": {"id": 1105}}, "organization": {"id": 1258}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 311, "owner": {"id": 602}, "assignee": {"id": 596}, "project": {"id": 333, "owner": {"id": 33}, "assignee": {"id": 837}}, "task": {"id": 359, "owner": {"id": 989}, "assignee": {"id": 1029}}, "job": {"id": 338, "assignee": {"id": 1103}}, "organization": {"id": 187}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 332, "owner": {"id": 639}, "assignee": {"id": 525}, "project": {"id": 328, "owner": {"id": 10}, "assignee": {"id": 811}}, "task": {"id": 317, "owner": {"id": 977}, "assignee": {"id": 1036}}, "job": {"id": 379, "assignee": {"id": 1174}}, "organization": {"id": 1224}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 366, "owner": {"id": 651}, "assignee": {"id": 519}, "project": {"id": 371, "owner": {"id": 79}, "assignee": {"id": 871}}, "task": {"id": 347, "owner": {"id": 927}, "assignee": {"id": 1028}}, "job": {"id": 339, "assignee": {"id": 1100}}, "organization": {"id": 123}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 318, "owner": {"id": 646}, "assignee": {"id": 593}, "project": {"id": 365, "owner": {"id": 82}, "assignee": {"id": 817}}, "task": {"id": 384, "owner": {"id": 986}, "assignee": {"id": 1074}}, "job": {"id": 349, "assignee": {"id": 1110}}, "organization": {"id": 1229}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "owner": {"id": 604}, "assignee": {"id": 526}, "project": {"id": 329, "owner": {"id": 9}, "assignee": {"id": 817}}, "task": {"id": 369, "owner": {"id": 996}, "assignee": {"id": 1023}}, "job": {"id": 374, "assignee": {"id": 1140}}, "organization": {"id": 161}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 665}, "assignee": {"id": 589}, "project": {"id": 328, "owner": {"id": 83}, "assignee": {"id": 898}}, "task": {"id": 344, "owner": {"id": 902}, "assignee": {"id": 1074}}, "job": {"id": 361, "assignee": {"id": 1198}}, "organization": {"id": 1267}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "owner": {"id": 630}, "assignee": {"id": 579}, "project": {"id": 392, "owner": {"id": 18}, "assignee": {"id": 850}}, "task": {"id": 341, "owner": {"id": 938}, "assignee": {"id": 1049}}, "job": {"id": 326, "assignee": {"id": 1150}}, "organization": {"id": 176}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 670}, "assignee": {"id": 519}, "project": {"id": 358, "owner": {"id": 6}, "assignee": {"id": 889}}, "task": {"id": 367, "owner": {"id": 944}, "assignee": {"id": 1054}}, "job": {"id": 367, "assignee": {"id": 1194}}, "organization": {"id": 1287}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 607}, "assignee": {"id": 548}, "project": {"id": 319, "owner": {"id": 88}, "assignee": {"id": 836}}, "task": {"id": 389, "owner": {"id": 947}, "assignee": {"id": 1093}}, "job": {"id": 384, "assignee": {"id": 1117}}, "organization": {"id": 153}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 389, "owner": {"id": 686}, "assignee": {"id": 507}, "project": {"id": 327, "owner": {"id": 51}, "assignee": {"id": 804}}, "task": {"id": 363, "owner": {"id": 976}, "assignee": {"id": 1018}}, "job": {"id": 352, "assignee": {"id": 1175}}, "organization": {"id": 1271}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 646}, "assignee": {"id": 587}, "project": {"id": 377, "owner": {"id": 61}, "assignee": {"id": 874}}, "task": {"id": 357, "owner": {"id": 951}, "assignee": {"id": 1063}}, "job": {"id": 309, "assignee": {"id": 1192}}, "organization": {"id": 164}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 691}, "assignee": {"id": 591}, "project": {"id": 324, "owner": {"id": 61}, "assignee": {"id": 805}}, "task": {"id": 311, "owner": {"id": 968}, "assignee": {"id": 1074}}, "job": {"id": 314, "assignee": {"id": 1130}}, "organization": {"id": 1208}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 383, "owner": {"id": 601}, "assignee": {"id": 557}, "project": {"id": 376, "owner": {"id": 98}, "assignee": {"id": 897}}, "task": {"id": 311, "owner": {"id": 935}, "assignee": {"id": 1061}}, "job": {"id": 348, "assignee": {"id": 1180}}, "organization": {"id": 147}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 374, "owner": {"id": 698}, "assignee": {"id": 573}, "project": {"id": 317, "owner": {"id": 69}, "assignee": {"id": 822}}, "task": {"id": 315, "owner": {"id": 926}, "assignee": {"id": 1057}}, "job": {"id": 376, "assignee": {"id": 1107}}, "organization": {"id": 1284}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 664}, "assignee": {"id": 599}, "project": {"id": 394, "owner": {"id": 9}, "assignee": {"id": 889}}, "task": {"id": 304, "owner": {"id": 945}, "assignee": {"id": 1086}}, "job": {"id": 323, "assignee": {"id": 1184}}, "organization": {"id": 192}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 657}, "assignee": {"id": 524}, "project": {"id": 324, "owner": {"id": 73}, "assignee": {"id": 841}}, "task": {"id": 332, "owner": {"id": 932}, "assignee": {"id": 1016}}, "job": {"id": 349, "assignee": {"id": 1156}}, "organization": {"id": 1245}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 650}, "assignee": {"id": 583}, "project": {"id": 314, "owner": {"id": 59}, "assignee": {"id": 800}}, "task": {"id": 327, "owner": {"id": 938}, "assignee": {"id": 1015}}, "job": {"id": 397, "assignee": {"id": 1142}}, "organization": {"id": 105}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "owner": {"id": 606}, "assignee": {"id": 568}, "project": {"id": 339, "owner": {"id": 51}, "assignee": {"id": 870}}, "task": {"id": 317, "owner": {"id": 976}, "assignee": {"id": 1090}}, "job": {"id": 330, "assignee": {"id": 1177}}, "organization": {"id": 1224}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 336, "owner": {"id": 658}, "assignee": {"id": 500}, "project": {"id": 340, "owner": {"id": 0}, "assignee": {"id": 838}}, "task": {"id": 392, "owner": {"id": 927}, "assignee": {"id": 1042}}, "job": {"id": 302, "assignee": {"id": 1118}}, "organization": {"id": 164}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 653}, "assignee": {"id": 574}, "project": {"id": 314, "owner": {"id": 3}, "assignee": {"id": 880}}, "task": {"id": 396, "owner": {"id": 945}, "assignee": {"id": 1068}}, "job": {"id": 334, "assignee": {"id": 1169}}, "organization": {"id": 1250}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 632}, "assignee": {"id": 558}, "project": {"id": 397, "owner": {"id": 2}, "assignee": {"id": 839}}, "task": {"id": 329, "owner": {"id": 972}, "assignee": {"id": 1072}}, "job": {"id": 329, "assignee": {"id": 1136}}, "organization": {"id": 155}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 657}, "assignee": {"id": 566}, "project": {"id": 330, "owner": {"id": 4}, "assignee": {"id": 860}}, "task": {"id": 359, "owner": {"id": 965}, "assignee": {"id": 1010}}, "job": {"id": 386, "assignee": {"id": 1141}}, "organization": {"id": 1245}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 306, "owner": {"id": 649}, "assignee": {"id": 558}, "project": {"id": 373, "owner": {"id": 54}, "assignee": {"id": 898}}, "task": {"id": 363, "owner": {"id": 926}, "assignee": {"id": 1090}}, "job": {"id": 369, "assignee": {"id": 1104}}, "organization": {"id": 106}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 625}, "assignee": {"id": 566}, "project": {"id": 304, "owner": {"id": 92}, "assignee": {"id": 882}}, "task": {"id": 379, "owner": {"id": 985}, "assignee": {"id": 1061}}, "job": {"id": 369, "assignee": {"id": 1122}}, "organization": {"id": 1208}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "owner": {"id": 632}, "assignee": {"id": 570}, "project": {"id": 397, "owner": {"id": 80}, "assignee": {"id": 802}}, "task": {"id": 307, "owner": {"id": 944}, "assignee": {"id": 1023}}, "job": {"id": 345, "assignee": {"id": 1103}}, "organization": {"id": 170}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "owner": {"id": 623}, "assignee": {"id": 595}, "project": {"id": 323, "owner": {"id": 6}, "assignee": {"id": 881}}, "task": {"id": 383, "owner": {"id": 998}, "assignee": {"id": 1035}}, "job": {"id": 353, "assignee": {"id": 1124}}, "organization": {"id": 1230}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 67, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "owner": {"id": 633}, "assignee": {"id": 576}, "project": {"id": 339, "owner": {"id": 67}, "assignee": {"id": 848}}, "task": {"id": 370, "owner": {"id": 968}, "assignee": {"id": 1032}}, "job": {"id": 362, "assignee": {"id": 1182}}, "organization": {"id": 160}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "owner": {"id": 695}, "assignee": {"id": 558}, "project": {"id": 377, "owner": {"id": 37}, "assignee": {"id": 872}}, "task": {"id": 314, "owner": {"id": 952}, "assignee": {"id": 1098}}, "job": {"id": 338, "assignee": {"id": 1195}}, "organization": {"id": 1272}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 310, "owner": {"id": 609}, "assignee": {"id": 530}, "project": {"id": 397, "owner": {"id": 65}, "assignee": {"id": 805}}, "task": {"id": 311, "owner": {"id": 908}, "assignee": {"id": 1088}}, "job": {"id": 312, "assignee": {"id": 1142}}, "organization": {"id": 195}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 363, "owner": {"id": 674}, "assignee": {"id": 572}, "project": {"id": 313, "owner": {"id": 58}, "assignee": {"id": 804}}, "task": {"id": 333, "owner": {"id": 962}, "assignee": {"id": 1049}}, "job": {"id": 345, "assignee": {"id": 1144}}, "organization": {"id": 1272}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"id": 334, "owner": {"id": 648}, "assignee": {"id": 544}, "project": {"id": 316, "owner": {"id": 22}, "assignee": {"id": 826}}, "task": {"id": 311, "owner": {"id": 908}, "assignee": {"id": 1041}}, "job": {"id": 347, "assignee": {"id": 1123}}, "organization": {"id": 112}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 670}, "assignee": {"id": 524}, "project": {"id": 312, "owner": {"id": 78}, "assignee": {"id": 868}}, "task": {"id": 356, "owner": {"id": 988}, "assignee": {"id": 1040}}, "job": {"id": 352, "assignee": {"id": 1121}}, "organization": {"id": 1285}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 684}, "assignee": {"id": 533}, "project": {"id": 353, "owner": {"id": 95}, "assignee": {"id": 810}}, "task": {"id": 313, "owner": {"id": 900}, "assignee": {"id": 1021}}, "job": {"id": 334, "assignee": {"id": 1198}}, "organization": {"id": 116}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 339, "owner": {"id": 642}, "assignee": {"id": 554}, "project": {"id": 350, "owner": {"id": 73}, "assignee": {"id": 841}}, "task": {"id": 372, "owner": {"id": 978}, "assignee": {"id": 1063}}, "job": {"id": 351, "assignee": {"id": 1104}}, "organization": {"id": 1289}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 667}, "assignee": {"id": 512}, "project": {"id": 315, "owner": {"id": 44}, "assignee": {"id": 829}}, "task": {"id": 384, "owner": {"id": 905}, "assignee": {"id": 1017}}, "job": {"id": 313, "assignee": {"id": 1141}}, "organization": {"id": 122}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 603}, "assignee": {"id": 517}, "project": {"id": 330, "owner": {"id": 6}, "assignee": {"id": 811}}, "task": {"id": 311, "owner": {"id": 976}, "assignee": {"id": 1018}}, "job": {"id": 352, "assignee": {"id": 1100}}, "organization": {"id": 1225}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "owner": {"id": 673}, "assignee": {"id": 594}, "project": {"id": 379, "owner": {"id": 93}, "assignee": {"id": 811}}, "task": {"id": 379, "owner": {"id": 970}, "assignee": {"id": 1084}}, "job": {"id": 351, "assignee": {"id": 1148}}, "organization": {"id": 134}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "owner": {"id": 637}, "assignee": {"id": 546}, "project": {"id": 391, "owner": {"id": 27}, "assignee": {"id": 888}}, "task": {"id": 333, "owner": {"id": 925}, "assignee": {"id": 1000}}, "job": {"id": 320, "assignee": {"id": 1164}}, "organization": {"id": 1260}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 392, "owner": {"id": 660}, "assignee": {"id": 513}, "project": {"id": 380, "owner": {"id": 93}, "assignee": {"id": 823}}, "task": {"id": 399, "owner": {"id": 923}, "assignee": {"id": 1091}}, "job": {"id": 360, "assignee": {"id": 1197}}, "organization": {"id": 197}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 337, "owner": {"id": 629}, "assignee": {"id": 588}, "project": {"id": 312, "owner": {"id": 5}, "assignee": {"id": 878}}, "task": {"id": 369, "owner": {"id": 999}, "assignee": {"id": 1085}}, "job": {"id": 384, "assignee": {"id": 1186}}, "organization": {"id": 1214}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 390, "owner": {"id": 639}, "assignee": {"id": 547}, "project": {"id": 301, "owner": {"id": 54}, "assignee": {"id": 867}}, "task": {"id": 382, "owner": {"id": 984}, "assignee": {"id": 1009}}, "job": {"id": 393, "assignee": {"id": 1116}}, "organization": {"id": 120}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 326, "owner": {"id": 681}, "assignee": {"id": 530}, "project": {"id": 331, "owner": {"id": 31}, "assignee": {"id": 877}}, "task": {"id": 321, "owner": {"id": 954}, "assignee": {"id": 1020}}, "job": {"id": 358, "assignee": {"id": 1156}}, "organization": {"id": 1291}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 359, "owner": {"id": 617}, "assignee": {"id": 589}, "project": {"id": 387, "owner": {"id": 773}, "assignee": {"id": 22}}, "task": {"id": 387, "owner": {"id": 960}, "assignee": {"id": 1006}}, "job": {"id": 383, "assignee": {"id": 1116}}, "organization": {"id": 110}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 358, "owner": {"id": 651}, "assignee": {"id": 515}, "project": {"id": 385, "owner": {"id": 723}, "assignee": {"id": 43}}, "task": {"id": 338, "owner": {"id": 910}, "assignee": {"id": 1077}}, "job": {"id": 301, "assignee": {"id": 1136}}, "organization": {"id": 1240}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "owner": {"id": 605}, "assignee": {"id": 589}, "project": {"id": 369, "owner": {"id": 771}, "assignee": {"id": 19}}, "task": {"id": 371, "owner": {"id": 994}, "assignee": {"id": 1056}}, "job": {"id": 388, "assignee": {"id": 1181}}, "organization": {"id": 187}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "owner": {"id": 619}, "assignee": {"id": 555}, "project": {"id": 394, "owner": {"id": 719}, "assignee": {"id": 16}}, "task": {"id": 348, "owner": {"id": 900}, "assignee": {"id": 1097}}, "job": {"id": 303, "assignee": {"id": 1176}}, "organization": {"id": 1230}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 613}, "assignee": {"id": 519}, "project": {"id": 358, "owner": {"id": 752}, "assignee": {"id": 99}}, "task": {"id": 382, "owner": {"id": 938}, "assignee": {"id": 1030}}, "job": {"id": 389, "assignee": {"id": 1186}}, "organization": {"id": 119}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "owner": {"id": 628}, "assignee": {"id": 590}, "project": {"id": 373, "owner": {"id": 727}, "assignee": {"id": 32}}, "task": {"id": 386, "owner": {"id": 962}, "assignee": {"id": 1093}}, "job": {"id": 336, "assignee": {"id": 1119}}, "organization": {"id": 1229}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 397, "owner": {"id": 679}, "assignee": {"id": 519}, "project": {"id": 347, "owner": {"id": 777}, "assignee": {"id": 23}}, "task": {"id": 353, "owner": {"id": 952}, "assignee": {"id": 1067}}, "job": {"id": 340, "assignee": {"id": 1189}}, "organization": {"id": 190}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 619}, "assignee": {"id": 534}, "project": {"id": 391, "owner": {"id": 764}, "assignee": {"id": 38}}, "task": {"id": 319, "owner": {"id": 976}, "assignee": {"id": 1010}}, "job": {"id": 326, "assignee": {"id": 1192}}, "organization": {"id": 1218}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 655}, "assignee": {"id": 500}, "project": {"id": 365, "owner": {"id": 759}, "assignee": {"id": 88}}, "task": {"id": 309, "owner": {"id": 988}, "assignee": {"id": 1058}}, "job": {"id": 372, "assignee": {"id": 1192}}, "organization": {"id": 123}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 387, "owner": {"id": 604}, "assignee": {"id": 588}, "project": {"id": 333, "owner": {"id": 724}, "assignee": {"id": 93}}, "task": {"id": 389, "owner": {"id": 981}, "assignee": {"id": 1066}}, "job": {"id": 302, "assignee": {"id": 1135}}, "organization": {"id": 1256}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 386, "owner": {"id": 639}, "assignee": {"id": 551}, "project": {"id": 362, "owner": {"id": 784}, "assignee": {"id": 37}}, "task": {"id": 396, "owner": {"id": 907}, "assignee": {"id": 1059}}, "job": {"id": 320, "assignee": {"id": 1109}}, "organization": {"id": 152}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 679}, "assignee": {"id": 582}, "project": {"id": 356, "owner": {"id": 709}, "assignee": {"id": 56}}, "task": {"id": 344, "owner": {"id": 979}, "assignee": {"id": 1012}}, "job": {"id": 368, "assignee": {"id": 1178}}, "organization": {"id": 1276}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "owner": {"id": 635}, "assignee": {"id": 503}, "project": {"id": 320, "owner": {"id": 761}, "assignee": {"id": 56}}, "task": {"id": 391, "owner": {"id": 921}, "assignee": {"id": 1044}}, "job": {"id": 329, "assignee": {"id": 1123}}, "organization": {"id": 158}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "owner": {"id": 698}, "assignee": {"id": 533}, "project": {"id": 322, "owner": {"id": 720}, "assignee": {"id": 86}}, "task": {"id": 300, "owner": {"id": 927}, "assignee": {"id": 1051}}, "job": {"id": 341, "assignee": {"id": 1153}}, "organization": {"id": 1212}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 602}, "assignee": {"id": 501}, "project": {"id": 382, "owner": {"id": 742}, "assignee": {"id": 48}}, "task": {"id": 363, "owner": {"id": 936}, "assignee": {"id": 1098}}, "job": {"id": 361, "assignee": {"id": 1155}}, "organization": {"id": 151}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "owner": {"id": 608}, "assignee": {"id": 506}, "project": {"id": 358, "owner": {"id": 708}, "assignee": {"id": 51}}, "task": {"id": 364, "owner": {"id": 971}, "assignee": {"id": 1015}}, "job": {"id": 369, "assignee": {"id": 1199}}, "organization": {"id": 1278}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 373, "owner": {"id": 674}, "assignee": {"id": 546}, "project": {"id": 318, "owner": {"id": 766}, "assignee": {"id": 95}}, "task": {"id": 377, "owner": {"id": 954}, "assignee": {"id": 1009}}, "job": {"id": 394, "assignee": {"id": 1190}}, "organization": {"id": 145}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 363, "owner": {"id": 641}, "assignee": {"id": 563}, "project": {"id": 362, "owner": {"id": 772}, "assignee": {"id": 95}}, "task": {"id": 344, "owner": {"id": 908}, "assignee": {"id": 1070}}, "job": {"id": 351, "assignee": {"id": 1172}}, "organization": {"id": 1268}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 81, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 365, "owner": {"id": 678}, "assignee": {"id": 569}, "project": {"id": 389, "owner": {"id": 746}, "assignee": {"id": 81}}, "task": {"id": 332, "owner": {"id": 956}, "assignee": {"id": 1020}}, "job": {"id": 386, "assignee": {"id": 1124}}, "organization": {"id": 104}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 384, "owner": {"id": 695}, "assignee": {"id": 565}, "project": {"id": 341, "owner": {"id": 781}, "assignee": {"id": 80}}, "task": {"id": 325, "owner": {"id": 937}, "assignee": {"id": 1022}}, "job": {"id": 314, "assignee": {"id": 1160}}, "organization": {"id": 1251}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 331, "owner": {"id": 631}, "assignee": {"id": 535}, "project": {"id": 335, "owner": {"id": 710}, "assignee": {"id": 75}}, "task": {"id": 333, "owner": {"id": 955}, "assignee": {"id": 1011}}, "job": {"id": 337, "assignee": {"id": 1179}}, "organization": {"id": 190}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 302, "owner": {"id": 600}, "assignee": {"id": 539}, "project": {"id": 357, "owner": {"id": 701}, "assignee": {"id": 15}}, "task": {"id": 357, "owner": {"id": 937}, "assignee": {"id": 1051}}, "job": {"id": 304, "assignee": {"id": 1168}}, "organization": {"id": 1262}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "owner": {"id": 601}, "assignee": {"id": 522}, "project": {"id": 354, "owner": {"id": 785}, "assignee": {"id": 44}}, "task": {"id": 309, "owner": {"id": 997}, "assignee": {"id": 1066}}, "job": {"id": 315, "assignee": {"id": 1148}}, "organization": {"id": 185}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 642}, "assignee": {"id": 515}, "project": {"id": 300, "owner": {"id": 733}, "assignee": {"id": 23}}, "task": {"id": 397, "owner": {"id": 999}, "assignee": {"id": 1032}}, "job": {"id": 355, "assignee": {"id": 1118}}, "organization": {"id": 1267}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "owner": {"id": 683}, "assignee": {"id": 584}, "project": {"id": 379, "owner": {"id": 731}, "assignee": {"id": 77}}, "task": {"id": 311, "owner": {"id": 963}, "assignee": {"id": 1095}}, "job": {"id": 388, "assignee": {"id": 1120}}, "organization": {"id": 142}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "owner": {"id": 698}, "assignee": {"id": 557}, "project": {"id": 358, "owner": {"id": 723}, "assignee": {"id": 87}}, "task": {"id": 323, "owner": {"id": 956}, "assignee": {"id": 1017}}, "job": {"id": 345, "assignee": {"id": 1162}}, "organization": {"id": 1200}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 658}, "assignee": {"id": 523}, "project": {"id": 393, "owner": {"id": 726}, "assignee": {"id": 67}}, "task": {"id": 306, "owner": {"id": 950}, "assignee": {"id": 1047}}, "job": {"id": 373, "assignee": {"id": 1108}}, "organization": {"id": 176}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 306, "owner": {"id": 615}, "assignee": {"id": 523}, "project": {"id": 363, "owner": {"id": 749}, "assignee": {"id": 33}}, "task": {"id": 386, "owner": {"id": 962}, "assignee": {"id": 1000}}, "job": {"id": 398, "assignee": {"id": 1125}}, "organization": {"id": 1276}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 360, "owner": {"id": 650}, "assignee": {"id": 547}, "project": {"id": 316, "owner": {"id": 729}, "assignee": {"id": 84}}, "task": {"id": 372, "owner": {"id": 900}, "assignee": {"id": 1062}}, "job": {"id": 309, "assignee": {"id": 1119}}, "organization": {"id": 198}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 666}, "assignee": {"id": 529}, "project": {"id": 325, "owner": {"id": 730}, "assignee": {"id": 58}}, "task": {"id": 326, "owner": {"id": 996}, "assignee": {"id": 1014}}, "job": {"id": 340, "assignee": {"id": 1121}}, "organization": {"id": 1292}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 330, "owner": {"id": 660}, "assignee": {"id": 573}, "project": {"id": 330, "owner": {"id": 786}, "assignee": {"id": 16}}, "task": {"id": 323, "owner": {"id": 968}, "assignee": {"id": 1070}}, "job": {"id": 320, "assignee": {"id": 1189}}, "organization": {"id": 179}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 359, "owner": {"id": 674}, "assignee": {"id": 555}, "project": {"id": 333, "owner": {"id": 744}, "assignee": {"id": 73}}, "task": {"id": 384, "owner": {"id": 911}, "assignee": {"id": 1062}}, "job": {"id": 332, "assignee": {"id": 1143}}, "organization": {"id": 1282}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 607}, "assignee": {"id": 596}, "project": {"id": 374, "owner": {"id": 772}, "assignee": {"id": 18}}, "task": {"id": 382, "owner": {"id": 944}, "assignee": {"id": 1082}}, "job": {"id": 336, "assignee": {"id": 1164}}, "organization": {"id": 137}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "owner": {"id": 667}, "assignee": {"id": 599}, "project": {"id": 375, "owner": {"id": 748}, "assignee": {"id": 98}}, "task": {"id": 380, "owner": {"id": 963}, "assignee": {"id": 1077}}, "job": {"id": 356, "assignee": {"id": 1168}}, "organization": {"id": 1287}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 634}, "assignee": {"id": 556}, "project": {"id": 324, "owner": {"id": 787}, "assignee": {"id": 64}}, "task": {"id": 348, "owner": {"id": 974}, "assignee": {"id": 1001}}, "job": {"id": 341, "assignee": {"id": 1100}}, "organization": {"id": 135}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 343, "owner": {"id": 678}, "assignee": {"id": 594}, "project": {"id": 305, "owner": {"id": 769}, "assignee": {"id": 1}}, "task": {"id": 372, "owner": {"id": 985}, "assignee": {"id": 1005}}, "job": {"id": 319, "assignee": {"id": 1119}}, "organization": {"id": 1266}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 666}, "assignee": {"id": 516}, "project": {"id": 373, "owner": {"id": 739}, "assignee": {"id": 8}}, "task": {"id": 328, "owner": {"id": 963}, "assignee": {"id": 1016}}, "job": {"id": 344, "assignee": {"id": 1155}}, "organization": {"id": 125}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 300, "owner": {"id": 673}, "assignee": {"id": 582}, "project": {"id": 364, "owner": {"id": 752}, "assignee": {"id": 99}}, "task": {"id": 349, "owner": {"id": 942}, "assignee": {"id": 1038}}, "job": {"id": 385, "assignee": {"id": 1112}}, "organization": {"id": 1250}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 361, "owner": {"id": 677}, "assignee": {"id": 597}, "project": {"id": 382, "owner": {"id": 790}, "assignee": {"id": 49}}, "task": {"id": 390, "owner": {"id": 955}, "assignee": {"id": 1003}}, "job": {"id": 396, "assignee": {"id": 1155}}, "organization": {"id": 115}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 606}, "assignee": {"id": 502}, "project": {"id": 333, "owner": {"id": 706}, "assignee": {"id": 6}}, "task": {"id": 303, "owner": {"id": 919}, "assignee": {"id": 1060}}, "job": {"id": 388, "assignee": {"id": 1187}}, "organization": {"id": 1273}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 397, "owner": {"id": 640}, "assignee": {"id": 544}, "project": {"id": 366, "owner": {"id": 767}, "assignee": {"id": 4}}, "task": {"id": 375, "owner": {"id": 916}, "assignee": {"id": 1097}}, "job": {"id": 313, "assignee": {"id": 1175}}, "organization": {"id": 141}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 358, "owner": {"id": 626}, "assignee": {"id": 592}, "project": {"id": 367, "owner": {"id": 755}, "assignee": {"id": 17}}, "task": {"id": 324, "owner": {"id": 982}, "assignee": {"id": 1008}}, "job": {"id": 358, "assignee": {"id": 1166}}, "organization": {"id": 1253}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 649}, "assignee": {"id": 545}, "project": {"id": 367, "owner": {"id": 728}, "assignee": {"id": 42}}, "task": {"id": 398, "owner": {"id": 963}, "assignee": {"id": 1089}}, "job": {"id": 389, "assignee": {"id": 1127}}, "organization": {"id": 197}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "owner": {"id": 652}, "assignee": {"id": 570}, "project": {"id": 311, "owner": {"id": 796}, "assignee": {"id": 25}}, "task": {"id": 304, "owner": {"id": 965}, "assignee": {"id": 1079}}, "job": {"id": 320, "assignee": {"id": 1174}}, "organization": {"id": 1276}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "owner": {"id": 606}, "assignee": {"id": 585}, "project": {"id": 361, "owner": {"id": 761}, "assignee": {"id": 4}}, "task": {"id": 389, "owner": {"id": 918}, "assignee": {"id": 1048}}, "job": {"id": 308, "assignee": {"id": 1171}}, "organization": {"id": 194}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 605}, "assignee": {"id": 556}, "project": {"id": 307, "owner": {"id": 733}, "assignee": {"id": 42}}, "task": {"id": 302, "owner": {"id": 978}, "assignee": {"id": 1061}}, "job": {"id": 310, "assignee": {"id": 1187}}, "organization": {"id": 1279}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 642}, "assignee": {"id": 536}, "project": {"id": 344, "owner": {"id": 791}, "assignee": {"id": 96}}, "task": {"id": 363, "owner": {"id": 927}, "assignee": {"id": 1000}}, "job": {"id": 356, "assignee": {"id": 1152}}, "organization": {"id": 156}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 615}, "assignee": {"id": 553}, "project": {"id": 301, "owner": {"id": 771}, "assignee": {"id": 69}}, "task": {"id": 373, "owner": {"id": 920}, "assignee": {"id": 1093}}, "job": {"id": 325, "assignee": {"id": 1175}}, "organization": {"id": 1217}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 329, "owner": {"id": 633}, "assignee": {"id": 540}, "project": {"id": 316, "owner": {"id": 782}, "assignee": {"id": 45}}, "task": {"id": 384, "owner": {"id": 902}, "assignee": {"id": 1035}}, "job": {"id": 317, "assignee": {"id": 1158}}, "organization": {"id": 112}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 315, "owner": {"id": 665}, "assignee": {"id": 573}, "project": {"id": 308, "owner": {"id": 748}, "assignee": {"id": 83}}, "task": {"id": 319, "owner": {"id": 963}, "assignee": {"id": 1059}}, "job": {"id": 301, "assignee": {"id": 1119}}, "organization": {"id": 1225}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 312, "owner": {"id": 691}, "assignee": {"id": 506}, "project": {"id": 374, "owner": {"id": 727}, "assignee": {"id": 845}}, "task": {"id": 331, "owner": {"id": 52}, "assignee": {"id": 1038}}, "job": {"id": 320, "assignee": {"id": 1153}}, "organization": {"id": 113}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 324, "owner": {"id": 646}, "assignee": {"id": 582}, "project": {"id": 321, "owner": {"id": 785}, "assignee": {"id": 818}}, "task": {"id": 320, "owner": {"id": 86}, "assignee": {"id": 1071}}, "job": {"id": 362, "assignee": {"id": 1177}}, "organization": {"id": 143}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 345, "owner": {"id": 604}, "assignee": {"id": 586}, "project": {"id": 329, "owner": {"id": 797}, "assignee": {"id": 832}}, "task": {"id": 385, "owner": {"id": 35}, "assignee": {"id": 1023}}, "job": {"id": 358, "assignee": {"id": 1173}}, "organization": {"id": 1296}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 602}, "assignee": {"id": 525}, "project": {"id": 333, "owner": {"id": 794}, "assignee": {"id": 870}}, "task": {"id": 330, "owner": {"id": 45}, "assignee": {"id": 1063}}, "job": {"id": 379, "assignee": {"id": 1150}}, "organization": {"id": 1217}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "owner": {"id": 624}, "assignee": {"id": 540}, "project": {"id": 375, "owner": {"id": 780}, "assignee": {"id": 864}}, "task": {"id": 362, "owner": {"id": 48}, "assignee": {"id": 1057}}, "job": {"id": 311, "assignee": {"id": 1176}}, "organization": {"id": 100}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 389, "owner": {"id": 654}, "assignee": {"id": 521}, "project": {"id": 368, "owner": {"id": 748}, "assignee": {"id": 818}}, "task": {"id": 302, "owner": {"id": 30}, "assignee": {"id": 1081}}, "job": {"id": 328, "assignee": {"id": 1118}}, "organization": {"id": 176}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 698}, "assignee": {"id": 587}, "project": {"id": 369, "owner": {"id": 785}, "assignee": {"id": 850}}, "task": {"id": 333, "owner": {"id": 63}, "assignee": {"id": 1092}}, "job": {"id": 384, "assignee": {"id": 1176}}, "organization": {"id": 1257}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "owner": {"id": 676}, "assignee": {"id": 569}, "project": {"id": 335, "owner": {"id": 719}, "assignee": {"id": 800}}, "task": {"id": 395, "owner": {"id": 87}, "assignee": {"id": 1047}}, "job": {"id": 327, "assignee": {"id": 1138}}, "organization": {"id": 1299}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"id": 348, "owner": {"id": 627}, "assignee": {"id": 595}, "project": {"id": 389, "owner": {"id": 710}, "assignee": {"id": 870}}, "task": {"id": 332, "owner": {"id": 29}, "assignee": {"id": 1077}}, "job": {"id": 341, "assignee": {"id": 1117}}, "organization": {"id": 192}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "owner": {"id": 663}, "assignee": {"id": 522}, "project": {"id": 304, "owner": {"id": 719}, "assignee": {"id": 852}}, "task": {"id": 322, "owner": {"id": 43}, "assignee": {"id": 1015}}, "job": {"id": 365, "assignee": {"id": 1194}}, "organization": {"id": 152}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "owner": {"id": 600}, "assignee": {"id": 575}, "project": {"id": 351, "owner": {"id": 794}, "assignee": {"id": 854}}, "task": {"id": 359, "owner": {"id": 1}, "assignee": {"id": 1047}}, "job": {"id": 354, "assignee": {"id": 1190}}, "organization": {"id": 1201}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "owner": {"id": 636}, "assignee": {"id": 504}, "project": {"id": 383, "owner": {"id": 791}, "assignee": {"id": 801}}, "task": {"id": 318, "owner": {"id": 73}, "assignee": {"id": 1018}}, "job": {"id": 391, "assignee": {"id": 1159}}, "organization": {"id": 1217}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 677}, "assignee": {"id": 557}, "project": {"id": 331, "owner": {"id": 769}, "assignee": {"id": 826}}, "task": {"id": 393, "owner": {"id": 69}, "assignee": {"id": 1014}}, "job": {"id": 361, "assignee": {"id": 1198}}, "organization": {"id": 144}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 372, "owner": {"id": 680}, "assignee": {"id": 543}, "project": {"id": 390, "owner": {"id": 736}, "assignee": {"id": 839}}, "task": {"id": 388, "owner": {"id": 86}, "assignee": {"id": 1060}}, "job": {"id": 304, "assignee": {"id": 1136}}, "organization": {"id": 120}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 380, "owner": {"id": 674}, "assignee": {"id": 545}, "project": {"id": 318, "owner": {"id": 742}, "assignee": {"id": 811}}, "task": {"id": 384, "owner": {"id": 32}, "assignee": {"id": 1038}}, "job": {"id": 350, "assignee": {"id": 1103}}, "organization": {"id": 1242}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 383, "owner": {"id": 617}, "assignee": {"id": 549}, "project": {"id": 395, "owner": {"id": 784}, "assignee": {"id": 837}}, "task": {"id": 388, "owner": {"id": 28}, "assignee": {"id": 1060}}, "job": {"id": 397, "assignee": {"id": 1152}}, "organization": {"id": 1271}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 372, "owner": {"id": 638}, "assignee": {"id": 559}, "project": {"id": 331, "owner": {"id": 713}, "assignee": {"id": 869}}, "task": {"id": 346, "owner": {"id": 20}, "assignee": {"id": 1024}}, "job": {"id": 331, "assignee": {"id": 1170}}, "organization": {"id": 140}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 361, "owner": {"id": 654}, "assignee": {"id": 578}, "project": {"id": 339, "owner": {"id": 722}, "assignee": {"id": 816}}, "task": {"id": 360, "owner": {"id": 71}, "assignee": {"id": 1066}}, "job": {"id": 351, "assignee": {"id": 1134}}, "organization": {"id": 133}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 395, "owner": {"id": 658}, "assignee": {"id": 540}, "project": {"id": 307, "owner": {"id": 777}, "assignee": {"id": 847}}, "task": {"id": 328, "owner": {"id": 25}, "assignee": {"id": 1008}}, "job": {"id": 323, "assignee": {"id": 1145}}, "organization": {"id": 1255}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 330, "owner": {"id": 666}, "assignee": {"id": 501}, "project": {"id": 372, "owner": {"id": 722}, "assignee": {"id": 843}}, "task": {"id": 370, "owner": {"id": 75}, "assignee": {"id": 1008}}, "job": {"id": 300, "assignee": {"id": 1119}}, "organization": {"id": 1218}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 331, "owner": {"id": 685}, "assignee": {"id": 542}, "project": {"id": 304, "owner": {"id": 749}, "assignee": {"id": 828}}, "task": {"id": 366, "owner": {"id": 73}, "assignee": {"id": 1000}}, "job": {"id": 384, "assignee": {"id": 1139}}, "organization": {"id": 136}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 368, "owner": {"id": 688}, "assignee": {"id": 588}, "project": {"id": 332, "owner": {"id": 785}, "assignee": {"id": 897}}, "task": {"id": 342, "owner": {"id": 27}, "assignee": {"id": 1009}}, "job": {"id": 395, "assignee": {"id": 1116}}, "organization": {"id": 185}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 348, "owner": {"id": 640}, "assignee": {"id": 584}, "project": {"id": 311, "owner": {"id": 746}, "assignee": {"id": 830}}, "task": {"id": 364, "owner": {"id": 24}, "assignee": {"id": 1049}}, "job": {"id": 329, "assignee": {"id": 1105}}, "organization": {"id": 1243}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 639}, "assignee": {"id": 586}, "project": {"id": 316, "owner": {"id": 798}, "assignee": {"id": 849}}, "task": {"id": 372, "owner": {"id": 37}, "assignee": {"id": 1024}}, "job": {"id": 351, "assignee": {"id": 1188}}, "organization": {"id": 1285}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "owner": {"id": 653}, "assignee": {"id": 535}, "project": {"id": 326, "owner": {"id": 762}, "assignee": {"id": 887}}, "task": {"id": 327, "owner": {"id": 55}, "assignee": {"id": 1014}}, "job": {"id": 351, "assignee": {"id": 1150}}, "organization": {"id": 120}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 612}, "assignee": {"id": 511}, "project": {"id": 307, "owner": {"id": 757}, "assignee": {"id": 869}}, "task": {"id": 330, "owner": {"id": 12}, "assignee": {"id": 1043}}, "job": {"id": 358, "assignee": {"id": 1136}}, "organization": {"id": 196}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "owner": {"id": 648}, "assignee": {"id": 504}, "project": {"id": 303, "owner": {"id": 717}, "assignee": {"id": 890}}, "task": {"id": 340, "owner": {"id": 15}, "assignee": {"id": 1055}}, "job": {"id": 311, "assignee": {"id": 1103}}, "organization": {"id": 1246}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "owner": {"id": 662}, "assignee": {"id": 552}, "project": {"id": 373, "owner": {"id": 738}, "assignee": {"id": 815}}, "task": {"id": 301, "owner": {"id": 95}, "assignee": {"id": 1042}}, "job": {"id": 334, "assignee": {"id": 1176}}, "organization": {"id": 1232}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "owner": {"id": 687}, "assignee": {"id": 508}, "project": {"id": 307, "owner": {"id": 739}, "assignee": {"id": 865}}, "task": {"id": 367, "owner": {"id": 55}, "assignee": {"id": 1045}}, "job": {"id": 388, "assignee": {"id": 1110}}, "organization": {"id": 123}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "owner": {"id": 683}, "assignee": {"id": 585}, "project": {"id": 337, "owner": {"id": 794}, "assignee": {"id": 880}}, "task": {"id": 386, "owner": {"id": 17}, "assignee": {"id": 1006}}, "job": {"id": 377, "assignee": {"id": 1120}}, "organization": {"id": 175}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 663}, "assignee": {"id": 581}, "project": {"id": 353, "owner": {"id": 770}, "assignee": {"id": 842}}, "task": {"id": 364, "owner": {"id": 53}, "assignee": {"id": 1088}}, "job": {"id": 351, "assignee": {"id": 1187}}, "organization": {"id": 1208}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 369, "owner": {"id": 667}, "assignee": {"id": 546}, "project": {"id": 399, "owner": {"id": 731}, "assignee": {"id": 809}}, "task": {"id": 370, "owner": {"id": 72}, "assignee": {"id": 1030}}, "job": {"id": 367, "assignee": {"id": 1116}}, "organization": {"id": 1226}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 324, "owner": {"id": 651}, "assignee": {"id": 507}, "project": {"id": 371, "owner": {"id": 794}, "assignee": {"id": 855}}, "task": {"id": 335, "owner": {"id": 58}, "assignee": {"id": 1043}}, "job": {"id": 393, "assignee": {"id": 1116}}, "organization": {"id": 195}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 333, "owner": {"id": 690}, "assignee": {"id": 540}, "project": {"id": 344, "owner": {"id": 700}, "assignee": {"id": 848}}, "task": {"id": 386, "owner": {"id": 6}, "assignee": {"id": 1092}}, "job": {"id": 349, "assignee": {"id": 1120}}, "organization": {"id": 132}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 327, "owner": {"id": 651}, "assignee": {"id": 545}, "project": {"id": 379, "owner": {"id": 767}, "assignee": {"id": 893}}, "task": {"id": 374, "owner": {"id": 96}, "assignee": {"id": 1034}}, "job": {"id": 340, "assignee": {"id": 1139}}, "organization": {"id": 1212}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 397, "owner": {"id": 633}, "assignee": {"id": 549}, "project": {"id": 369, "owner": {"id": 752}, "assignee": {"id": 868}}, "task": {"id": 341, "owner": {"id": 38}, "assignee": {"id": 1068}}, "job": {"id": 392, "assignee": {"id": 1179}}, "organization": {"id": 1285}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 362, "owner": {"id": 663}, "assignee": {"id": 568}, "project": {"id": 383, "owner": {"id": 761}, "assignee": {"id": 889}}, "task": {"id": 397, "owner": {"id": 8}, "assignee": {"id": 1062}}, "job": {"id": 371, "assignee": {"id": 1138}}, "organization": {"id": 104}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 600}, "assignee": {"id": 562}, "project": {"id": 372, "owner": {"id": 718}, "assignee": {"id": 854}}, "task": {"id": 387, "owner": {"id": 96}, "assignee": {"id": 1012}}, "job": {"id": 334, "assignee": {"id": 1182}}, "organization": {"id": 162}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 680}, "assignee": {"id": 562}, "project": {"id": 301, "owner": {"id": 795}, "assignee": {"id": 874}}, "task": {"id": 352, "owner": {"id": 15}, "assignee": {"id": 1093}}, "job": {"id": 325, "assignee": {"id": 1131}}, "organization": {"id": 1252}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 94, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 383, "owner": {"id": 636}, "assignee": {"id": 506}, "project": {"id": 345, "owner": {"id": 762}, "assignee": {"id": 862}}, "task": {"id": 340, "owner": {"id": 94}, "assignee": {"id": 1076}}, "job": {"id": 319, "assignee": {"id": 1141}}, "organization": {"id": 1210}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 300, "owner": {"id": 678}, "assignee": {"id": 573}, "project": {"id": 319, "owner": {"id": 722}, "assignee": {"id": 885}}, "task": {"id": 398, "owner": {"id": 92}, "assignee": {"id": 1050}}, "job": {"id": 322, "assignee": {"id": 1116}}, "organization": {"id": 161}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 663}, "assignee": {"id": 589}, "project": {"id": 388, "owner": {"id": 779}, "assignee": {"id": 864}}, "task": {"id": 320, "owner": {"id": 13}, "assignee": {"id": 1090}}, "job": {"id": 346, "assignee": {"id": 1145}}, "organization": {"id": 105}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 393, "owner": {"id": 632}, "assignee": {"id": 507}, "project": {"id": 344, "owner": {"id": 747}, "assignee": {"id": 873}}, "task": {"id": 316, "owner": {"id": 80}, "assignee": {"id": 1055}}, "job": {"id": 306, "assignee": {"id": 1122}}, "organization": {"id": 1222}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 305, "owner": {"id": 687}, "assignee": {"id": 547}, "project": {"id": 356, "owner": {"id": 749}, "assignee": {"id": 880}}, "task": {"id": 377, "owner": {"id": 65}, "assignee": {"id": 1024}}, "job": {"id": 389, "assignee": {"id": 1166}}, "organization": {"id": 1230}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 614}, "assignee": {"id": 564}, "project": {"id": 390, "owner": {"id": 731}, "assignee": {"id": 880}}, "task": {"id": 339, "owner": {"id": 74}, "assignee": {"id": 1028}}, "job": {"id": 322, "assignee": {"id": 1121}}, "organization": {"id": 101}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 605}, "assignee": {"id": 547}, "project": {"id": 395, "owner": {"id": 745}, "assignee": {"id": 822}}, "task": {"id": 352, "owner": {"id": 13}, "assignee": {"id": 1056}}, "job": {"id": 312, "assignee": {"id": 1147}}, "organization": {"id": 125}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 692}, "assignee": {"id": 518}, "project": {"id": 383, "owner": {"id": 787}, "assignee": {"id": 889}}, "task": {"id": 314, "owner": {"id": 32}, "assignee": {"id": 1002}}, "job": {"id": 396, "assignee": {"id": 1130}}, "organization": {"id": 1231}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "owner": {"id": 672}, "assignee": {"id": 523}, "project": {"id": 349, "owner": {"id": 725}, "assignee": {"id": 884}}, "task": {"id": 309, "owner": {"id": 29}, "assignee": {"id": 1040}}, "job": {"id": 354, "assignee": {"id": 1102}}, "organization": {"id": 1209}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "owner": {"id": 673}, "assignee": {"id": 506}, "project": {"id": 366, "owner": {"id": 719}, "assignee": {"id": 834}}, "task": {"id": 322, "owner": {"id": 20}, "assignee": {"id": 1014}}, "job": {"id": 388, "assignee": {"id": 1148}}, "organization": {"id": 149}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "owner": {"id": 682}, "assignee": {"id": 500}, "project": {"id": 351, "owner": {"id": 784}, "assignee": {"id": 821}}, "task": {"id": 308, "owner": {"id": 87}, "assignee": {"id": 1092}}, "job": {"id": 306, "assignee": {"id": 1143}}, "organization": {"id": 152}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "owner": {"id": 608}, "assignee": {"id": 556}, "project": {"id": 326, "owner": {"id": 786}, "assignee": {"id": 820}}, "task": {"id": 370, "owner": {"id": 78}, "assignee": {"id": 1039}}, "job": {"id": 365, "assignee": {"id": 1185}}, "organization": {"id": 1217}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 640}, "assignee": {"id": 560}, "project": {"id": 346, "owner": {"id": 707}, "assignee": {"id": 851}}, "task": {"id": 375, "owner": {"id": 68}, "assignee": {"id": 1097}}, "job": {"id": 313, "assignee": {"id": 1173}}, "organization": {"id": 1228}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 686}, "assignee": {"id": 578}, "project": {"id": 330, "owner": {"id": 701}, "assignee": {"id": 877}}, "task": {"id": 343, "owner": {"id": 33}, "assignee": {"id": 1066}}, "job": {"id": 305, "assignee": {"id": 1180}}, "organization": {"id": 160}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 307, "owner": {"id": 605}, "assignee": {"id": 516}, "project": {"id": 343, "owner": {"id": 711}, "assignee": {"id": 811}}, "task": {"id": 306, "owner": {"id": 29}, "assignee": {"id": 1026}}, "job": {"id": 329, "assignee": {"id": 1160}}, "organization": {"id": 105}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 354, "owner": {"id": 621}, "assignee": {"id": 533}, "project": {"id": 315, "owner": {"id": 772}, "assignee": {"id": 896}}, "task": {"id": 332, "owner": {"id": 2}, "assignee": {"id": 1043}}, "job": {"id": 362, "assignee": {"id": 1123}}, "organization": {"id": 1264}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 372, "owner": {"id": 620}, "assignee": {"id": 579}, "project": {"id": 357, "owner": {"id": 795}, "assignee": {"id": 893}}, "task": {"id": 304, "owner": {"id": 32}, "assignee": {"id": 1002}}, "job": {"id": 361, "assignee": {"id": 1178}}, "organization": {"id": 1201}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 374, "owner": {"id": 622}, "assignee": {"id": 599}, "project": {"id": 392, "owner": {"id": 768}, "assignee": {"id": 801}}, "task": {"id": 335, "owner": {"id": 34}, "assignee": {"id": 1041}}, "job": {"id": 377, "assignee": {"id": 1143}}, "organization": {"id": 106}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 603}, "assignee": {"id": 588}, "project": {"id": 390, "owner": {"id": 782}, "assignee": {"id": 824}}, "task": {"id": 379, "owner": {"id": 55}, "assignee": {"id": 1013}}, "job": {"id": 345, "assignee": {"id": 1196}}, "organization": {"id": 185}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 345, "owner": {"id": 649}, "assignee": {"id": 520}, "project": {"id": 329, "owner": {"id": 705}, "assignee": {"id": 831}}, "task": {"id": 356, "owner": {"id": 78}, "assignee": {"id": 1002}}, "job": {"id": 380, "assignee": {"id": 1132}}, "organization": {"id": 1270}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 327, "owner": {"id": 684}, "assignee": {"id": 572}, "project": {"id": 371, "owner": {"id": 739}, "assignee": {"id": 853}}, "task": {"id": 361, "owner": {"id": 22}, "assignee": {"id": 1009}}, "job": {"id": 307, "assignee": {"id": 1136}}, "organization": {"id": 1284}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 307, "owner": {"id": 686}, "assignee": {"id": 560}, "project": {"id": 346, "owner": {"id": 711}, "assignee": {"id": 811}}, "task": {"id": 374, "owner": {"id": 9}, "assignee": {"id": 1055}}, "job": {"id": 363, "assignee": {"id": 1146}}, "organization": {"id": 145}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 353, "owner": {"id": 630}, "assignee": {"id": 526}, "project": {"id": 385, "owner": {"id": 767}, "assignee": {"id": 891}}, "task": {"id": 314, "owner": {"id": 31}, "assignee": {"id": 1080}}, "job": {"id": 359, "assignee": {"id": 1178}}, "organization": {"id": 195}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 307, "owner": {"id": 609}, "assignee": {"id": 519}, "project": {"id": 324, "owner": {"id": 779}, "assignee": {"id": 847}}, "task": {"id": 327, "owner": {"id": 68}, "assignee": {"id": 1072}}, "job": {"id": 387, "assignee": {"id": 1115}}, "organization": {"id": 1243}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 323, "owner": {"id": 631}, "assignee": {"id": 591}, "project": {"id": 301, "owner": {"id": 759}, "assignee": {"id": 867}}, "task": {"id": 387, "owner": {"id": 10}, "assignee": {"id": 1094}}, "job": {"id": 379, "assignee": {"id": 1149}}, "organization": {"id": 1243}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "owner": {"id": 613}, "assignee": {"id": 517}, "project": {"id": 360, "owner": {"id": 721}, "assignee": {"id": 881}}, "task": {"id": 349, "owner": {"id": 38}, "assignee": {"id": 1049}}, "job": {"id": 363, "assignee": {"id": 1124}}, "organization": {"id": 187}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 652}, "assignee": {"id": 582}, "project": {"id": 364, "owner": {"id": 711}, "assignee": {"id": 877}}, "task": {"id": 312, "owner": {"id": 57}, "assignee": {"id": 1037}}, "job": {"id": 386, "assignee": {"id": 1115}}, "organization": {"id": 105}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 29, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "owner": {"id": 649}, "assignee": {"id": 540}, "project": {"id": 313, "owner": {"id": 737}, "assignee": {"id": 819}}, "task": {"id": 378, "owner": {"id": 29}, "assignee": {"id": 1006}}, "job": {"id": 384, "assignee": {"id": 1180}}, "organization": {"id": 1277}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "owner": {"id": 676}, "assignee": {"id": 577}, "project": {"id": 391, "owner": {"id": 764}, "assignee": {"id": 820}}, "task": {"id": 324, "owner": {"id": 6}, "assignee": {"id": 1079}}, "job": {"id": 329, "assignee": {"id": 1186}}, "organization": {"id": 1204}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "owner": {"id": 612}, "assignee": {"id": 564}, "project": {"id": 379, "owner": {"id": 793}, "assignee": {"id": 819}}, "task": {"id": 399, "owner": {"id": 58}, "assignee": {"id": 1026}}, "job": {"id": 367, "assignee": {"id": 1191}}, "organization": {"id": 175}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "owner": {"id": 622}, "assignee": {"id": 584}, "project": {"id": 381, "owner": {"id": 719}, "assignee": {"id": 832}}, "task": {"id": 312, "owner": {"id": 57}, "assignee": {"id": 1011}}, "job": {"id": 336, "assignee": {"id": 1141}}, "organization": {"id": 140}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 29, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 619}, "assignee": {"id": 521}, "project": {"id": 355, "owner": {"id": 793}, "assignee": {"id": 818}}, "task": {"id": 368, "owner": {"id": 29}, "assignee": {"id": 1082}}, "job": {"id": 307, "assignee": {"id": 1156}}, "organization": {"id": 1260}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "owner": {"id": 625}, "assignee": {"id": 528}, "project": {"id": 357, "owner": {"id": 708}, "assignee": {"id": 892}}, "task": {"id": 337, "owner": {"id": 26}, "assignee": {"id": 1018}}, "job": {"id": 350, "assignee": {"id": 1100}}, "organization": {"id": 1215}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 696}, "assignee": {"id": 543}, "project": {"id": 376, "owner": {"id": 772}, "assignee": {"id": 853}}, "task": {"id": 323, "owner": {"id": 30}, "assignee": {"id": 1075}}, "job": {"id": 382, "assignee": {"id": 1122}}, "organization": {"id": 184}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 642}, "assignee": {"id": 518}, "project": {"id": 333, "owner": {"id": 742}, "assignee": {"id": 859}}, "task": {"id": 381, "owner": {"id": 25}, "assignee": {"id": 1093}}, "job": {"id": 347, "assignee": {"id": 1135}}, "organization": {"id": 124}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 342, "owner": {"id": 677}, "assignee": {"id": 592}, "project": {"id": 356, "owner": {"id": 761}, "assignee": {"id": 847}}, "task": {"id": 373, "owner": {"id": 14}, "assignee": {"id": 1061}}, "job": {"id": 349, "assignee": {"id": 1176}}, "organization": {"id": 1203}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 311, "owner": {"id": 689}, "assignee": {"id": 503}, "project": {"id": 309, "owner": {"id": 786}, "assignee": {"id": 811}}, "task": {"id": 389, "owner": {"id": 45}, "assignee": {"id": 1081}}, "job": {"id": 343, "assignee": {"id": 1176}}, "organization": {"id": 1247}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 612}, "assignee": {"id": 545}, "project": {"id": 374, "owner": {"id": 790}, "assignee": {"id": 812}}, "task": {"id": 317, "owner": {"id": 28}, "assignee": {"id": 1095}}, "job": {"id": 312, "assignee": {"id": 1162}}, "organization": {"id": 157}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 698}, "assignee": {"id": 510}, "project": {"id": 304, "owner": {"id": 731}, "assignee": {"id": 867}}, "task": {"id": 353, "owner": {"id": 57}, "assignee": {"id": 1007}}, "job": {"id": 365, "assignee": {"id": 1119}}, "organization": {"id": 115}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 315, "owner": {"id": 621}, "assignee": {"id": 541}, "project": {"id": 342, "owner": {"id": 794}, "assignee": {"id": 869}}, "task": {"id": 371, "owner": {"id": 1}, "assignee": {"id": 1027}}, "job": {"id": 356, "assignee": {"id": 1113}}, "organization": {"id": 1275}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 651}, "assignee": {"id": 567}, "project": {"id": 359, "owner": {"id": 754}, "assignee": {"id": 814}}, "task": {"id": 365, "owner": {"id": 49}, "assignee": {"id": 1087}}, "job": {"id": 317, "assignee": {"id": 1172}}, "organization": {"id": 1230}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 611}, "assignee": {"id": 590}, "project": {"id": 348, "owner": {"id": 717}, "assignee": {"id": 854}}, "task": {"id": 378, "owner": {"id": 87}, "assignee": {"id": 1044}}, "job": {"id": 330, "assignee": {"id": 1131}}, "organization": {"id": 110}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 622}, "assignee": {"id": 510}, "project": {"id": 311, "owner": {"id": 723}, "assignee": {"id": 844}}, "task": {"id": 356, "owner": {"id": 68}, "assignee": {"id": 1070}}, "job": {"id": 351, "assignee": {"id": 1147}}, "organization": {"id": 150}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 320, "owner": {"id": 639}, "assignee": {"id": 574}, "project": {"id": 353, "owner": {"id": 791}, "assignee": {"id": 814}}, "task": {"id": 372, "owner": {"id": 9}, "assignee": {"id": 1063}}, "job": {"id": 341, "assignee": {"id": 1185}}, "organization": {"id": 1203}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 383, "owner": {"id": 668}, "assignee": {"id": 560}, "project": {"id": 364, "owner": {"id": 793}, "assignee": {"id": 802}}, "task": {"id": 351, "owner": {"id": 59}, "assignee": {"id": 1014}}, "job": {"id": 335, "assignee": {"id": 1131}}, "organization": {"id": 1216}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "owner": {"id": 601}, "assignee": {"id": 552}, "project": {"id": 348, "owner": {"id": 725}, "assignee": {"id": 847}}, "task": {"id": 304, "owner": {"id": 60}, "assignee": {"id": 1078}}, "job": {"id": 316, "assignee": {"id": 1151}}, "organization": {"id": 167}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "owner": {"id": 677}, "assignee": {"id": 506}, "project": {"id": 366, "owner": {"id": 799}, "assignee": {"id": 870}}, "task": {"id": 376, "owner": {"id": 3}, "assignee": {"id": 1015}}, "job": {"id": 398, "assignee": {"id": 1162}}, "organization": {"id": 183}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "owner": {"id": 663}, "assignee": {"id": 540}, "project": {"id": 330, "owner": {"id": 795}, "assignee": {"id": 866}}, "task": {"id": 319, "owner": {"id": 83}, "assignee": {"id": 1039}}, "job": {"id": 318, "assignee": {"id": 1160}}, "organization": {"id": 1257}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "owner": {"id": 641}, "assignee": {"id": 555}, "project": {"id": 398, "owner": {"id": 778}, "assignee": {"id": 840}}, "task": {"id": 345, "owner": {"id": 13}, "assignee": {"id": 1011}}, "job": {"id": 369, "assignee": {"id": 1139}}, "organization": {"id": 1285}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 324, "owner": {"id": 654}, "assignee": {"id": 563}, "project": {"id": 318, "owner": {"id": 777}, "assignee": {"id": 807}}, "task": {"id": 391, "owner": {"id": 89}, "assignee": {"id": 1051}}, "job": {"id": 302, "assignee": {"id": 1141}}, "organization": {"id": 101}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "owner": {"id": 658}, "assignee": {"id": 561}, "project": {"id": 315, "owner": {"id": 756}, "assignee": {"id": 828}}, "task": {"id": 325, "owner": {"id": 45}, "assignee": {"id": 1030}}, "job": {"id": 335, "assignee": {"id": 1132}}, "organization": {"id": 175}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "owner": {"id": 685}, "assignee": {"id": 538}, "project": {"id": 388, "owner": {"id": 742}, "assignee": {"id": 826}}, "task": {"id": 308, "owner": {"id": 9}, "assignee": {"id": 1074}}, "job": {"id": 346, "assignee": {"id": 1134}}, "organization": {"id": 1223}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "owner": {"id": 609}, "assignee": {"id": 586}, "project": {"id": 384, "owner": {"id": 785}, "assignee": {"id": 883}}, "task": {"id": 390, "owner": {"id": 53}, "assignee": {"id": 1026}}, "job": {"id": 336, "assignee": {"id": 1124}}, "organization": {"id": 1204}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 637}, "assignee": {"id": 576}, "project": {"id": 339, "owner": {"id": 771}, "assignee": {"id": 811}}, "task": {"id": 394, "owner": {"id": 37}, "assignee": {"id": 1091}}, "job": {"id": 335, "assignee": {"id": 1179}}, "organization": {"id": 124}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 324, "owner": {"id": 600}, "assignee": {"id": 518}, "project": {"id": 368, "owner": {"id": 709}, "assignee": {"id": 806}}, "task": {"id": 325, "owner": {"id": 28}, "assignee": {"id": 1068}}, "job": {"id": 398, "assignee": {"id": 1195}}, "organization": {"id": 125}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 347, "owner": {"id": 662}, "assignee": {"id": 558}, "project": {"id": 378, "owner": {"id": 730}, "assignee": {"id": 813}}, "task": {"id": 367, "owner": {"id": 32}, "assignee": {"id": 1069}}, "job": {"id": 348, "assignee": {"id": 1168}}, "organization": {"id": 1204}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 606}, "assignee": {"id": 542}, "project": {"id": 328, "owner": {"id": 703}, "assignee": {"id": 842}}, "task": {"id": 307, "owner": {"id": 24}, "assignee": {"id": 1070}}, "job": {"id": 311, "assignee": {"id": 1136}}, "organization": {"id": 1286}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 331, "owner": {"id": 653}, "assignee": {"id": 550}, "project": {"id": 398, "owner": {"id": 731}, "assignee": {"id": 810}}, "task": {"id": 394, "owner": {"id": 36}, "assignee": {"id": 1026}}, "job": {"id": 328, "assignee": {"id": 1198}}, "organization": {"id": 107}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 346, "owner": {"id": 653}, "assignee": {"id": 509}, "project": {"id": 339, "owner": {"id": 749}, "assignee": {"id": 825}}, "task": {"id": 383, "owner": {"id": 65}, "assignee": {"id": 1039}}, "job": {"id": 322, "assignee": {"id": 1173}}, "organization": {"id": 107}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"id": 357, "owner": {"id": 677}, "assignee": {"id": 591}, "project": {"id": 378, "owner": {"id": 756}, "assignee": {"id": 804}}, "task": {"id": 395, "owner": {"id": 56}, "assignee": {"id": 1090}}, "job": {"id": 332, "assignee": {"id": 1173}}, "organization": {"id": 1279}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 391, "owner": {"id": 611}, "assignee": {"id": 581}, "project": {"id": 315, "owner": {"id": 758}, "assignee": {"id": 836}}, "task": {"id": 338, "owner": {"id": 75}, "assignee": {"id": 1079}}, "job": {"id": 367, "assignee": {"id": 1183}}, "organization": {"id": 1203}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 636}, "assignee": {"id": 574}, "project": {"id": 348, "owner": {"id": 778}, "assignee": {"id": 859}}, "task": {"id": 338, "owner": {"id": 965}, "assignee": {"id": 21}}, "job": {"id": 301, "assignee": {"id": 1123}}, "organization": {"id": 113}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 395, "owner": {"id": 633}, "assignee": {"id": 535}, "project": {"id": 384, "owner": {"id": 703}, "assignee": {"id": 842}}, "task": {"id": 367, "owner": {"id": 997}, "assignee": {"id": 78}}, "job": {"id": 384, "assignee": {"id": 1103}}, "organization": {"id": 188}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 36, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 324, "owner": {"id": 643}, "assignee": {"id": 589}, "project": {"id": 337, "owner": {"id": 766}, "assignee": {"id": 853}}, "task": {"id": 391, "owner": {"id": 919}, "assignee": {"id": 36}}, "job": {"id": 330, "assignee": {"id": 1121}}, "organization": {"id": 1220}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 390, "owner": {"id": 627}, "assignee": {"id": 532}, "project": {"id": 328, "owner": {"id": 765}, "assignee": {"id": 845}}, "task": {"id": 356, "owner": {"id": 961}, "assignee": {"id": 95}}, "job": {"id": 316, "assignee": {"id": 1187}}, "organization": {"id": 1203}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "owner": {"id": 631}, "assignee": {"id": 595}, "project": {"id": 357, "owner": {"id": 782}, "assignee": {"id": 837}}, "task": {"id": 323, "owner": {"id": 957}, "assignee": {"id": 74}}, "job": {"id": 377, "assignee": {"id": 1135}}, "organization": {"id": 124}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 656}, "assignee": {"id": 592}, "project": {"id": 337, "owner": {"id": 748}, "assignee": {"id": 893}}, "task": {"id": 333, "owner": {"id": 912}, "assignee": {"id": 46}}, "job": {"id": 361, "assignee": {"id": 1179}}, "organization": {"id": 193}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "owner": {"id": 617}, "assignee": {"id": 578}, "project": {"id": 370, "owner": {"id": 759}, "assignee": {"id": 835}}, "task": {"id": 346, "owner": {"id": 961}, "assignee": {"id": 10}}, "job": {"id": 342, "assignee": {"id": 1178}}, "organization": {"id": 1240}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "owner": {"id": 643}, "assignee": {"id": 519}, "project": {"id": 355, "owner": {"id": 786}, "assignee": {"id": 826}}, "task": {"id": 358, "owner": {"id": 926}, "assignee": {"id": 76}}, "job": {"id": 323, "assignee": {"id": 1164}}, "organization": {"id": 1264}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "owner": {"id": 650}, "assignee": {"id": 536}, "project": {"id": 371, "owner": {"id": 774}, "assignee": {"id": 827}}, "task": {"id": 385, "owner": {"id": 967}, "assignee": {"id": 52}}, "job": {"id": 350, "assignee": {"id": 1103}}, "organization": {"id": 186}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 340, "owner": {"id": 662}, "assignee": {"id": 510}, "project": {"id": 361, "owner": {"id": 730}, "assignee": {"id": 885}}, "task": {"id": 302, "owner": {"id": 986}, "assignee": {"id": 97}}, "job": {"id": 397, "assignee": {"id": 1172}}, "organization": {"id": 125}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 690}, "assignee": {"id": 575}, "project": {"id": 373, "owner": {"id": 755}, "assignee": {"id": 865}}, "task": {"id": 388, "owner": {"id": 995}, "assignee": {"id": 28}}, "job": {"id": 314, "assignee": {"id": 1130}}, "organization": {"id": 1207}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 689}, "assignee": {"id": 575}, "project": {"id": 367, "owner": {"id": 747}, "assignee": {"id": 851}}, "task": {"id": 317, "owner": {"id": 969}, "assignee": {"id": 60}}, "job": {"id": 336, "assignee": {"id": 1158}}, "organization": {"id": 1248}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 627}, "assignee": {"id": 512}, "project": {"id": 351, "owner": {"id": 739}, "assignee": {"id": 813}}, "task": {"id": 344, "owner": {"id": 925}, "assignee": {"id": 30}}, "job": {"id": 350, "assignee": {"id": 1146}}, "organization": {"id": 131}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 387, "owner": {"id": 603}, "assignee": {"id": 549}, "project": {"id": 334, "owner": {"id": 731}, "assignee": {"id": 812}}, "task": {"id": 361, "owner": {"id": 927}, "assignee": {"id": 42}}, "job": {"id": 367, "assignee": {"id": 1108}}, "organization": {"id": 164}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 304, "owner": {"id": 637}, "assignee": {"id": 594}, "project": {"id": 303, "owner": {"id": 763}, "assignee": {"id": 840}}, "task": {"id": 366, "owner": {"id": 912}, "assignee": {"id": 60}}, "job": {"id": 324, "assignee": {"id": 1179}}, "organization": {"id": 1214}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 305, "owner": {"id": 608}, "assignee": {"id": 570}, "project": {"id": 319, "owner": {"id": 716}, "assignee": {"id": 886}}, "task": {"id": 359, "owner": {"id": 941}, "assignee": {"id": 60}}, "job": {"id": 378, "assignee": {"id": 1186}}, "organization": {"id": 1298}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 329, "owner": {"id": 646}, "assignee": {"id": 536}, "project": {"id": 353, "owner": {"id": 716}, "assignee": {"id": 825}}, "task": {"id": 303, "owner": {"id": 962}, "assignee": {"id": 99}}, "job": {"id": 322, "assignee": {"id": 1136}}, "organization": {"id": 187}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 337, "owner": {"id": 631}, "assignee": {"id": 564}, "project": {"id": 373, "owner": {"id": 788}, "assignee": {"id": 877}}, "task": {"id": 368, "owner": {"id": 952}, "assignee": {"id": 48}}, "job": {"id": 354, "assignee": {"id": 1104}}, "organization": {"id": 163}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 380, "owner": {"id": 680}, "assignee": {"id": 511}, "project": {"id": 311, "owner": {"id": 780}, "assignee": {"id": 867}}, "task": {"id": 345, "owner": {"id": 979}, "assignee": {"id": 87}}, "job": {"id": 360, "assignee": {"id": 1140}}, "organization": {"id": 1285}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 687}, "assignee": {"id": 503}, "project": {"id": 394, "owner": {"id": 709}, "assignee": {"id": 896}}, "task": {"id": 306, "owner": {"id": 909}, "assignee": {"id": 30}}, "job": {"id": 303, "assignee": {"id": 1115}}, "organization": {"id": 1245}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 393, "owner": {"id": 660}, "assignee": {"id": 563}, "project": {"id": 391, "owner": {"id": 700}, "assignee": {"id": 899}}, "task": {"id": 316, "owner": {"id": 944}, "assignee": {"id": 69}}, "job": {"id": 310, "assignee": {"id": 1112}}, "organization": {"id": 177}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 309, "owner": {"id": 623}, "assignee": {"id": 526}, "project": {"id": 321, "owner": {"id": 725}, "assignee": {"id": 800}}, "task": {"id": 361, "owner": {"id": 918}, "assignee": {"id": 38}}, "job": {"id": 301, "assignee": {"id": 1116}}, "organization": {"id": 173}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 362, "owner": {"id": 609}, "assignee": {"id": 550}, "project": {"id": 303, "owner": {"id": 714}, "assignee": {"id": 824}}, "task": {"id": 340, "owner": {"id": 942}, "assignee": {"id": 86}}, "job": {"id": 321, "assignee": {"id": 1168}}, "organization": {"id": 1264}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 356, "owner": {"id": 670}, "assignee": {"id": 549}, "project": {"id": 393, "owner": {"id": 783}, "assignee": {"id": 858}}, "task": {"id": 350, "owner": {"id": 906}, "assignee": {"id": 3}}, "job": {"id": 341, "assignee": {"id": 1194}}, "organization": {"id": 1299}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "owner": {"id": 691}, "assignee": {"id": 588}, "project": {"id": 353, "owner": {"id": 780}, "assignee": {"id": 845}}, "task": {"id": 372, "owner": {"id": 958}, "assignee": {"id": 35}}, "job": {"id": 367, "assignee": {"id": 1103}}, "organization": {"id": 167}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "owner": {"id": 615}, "assignee": {"id": 520}, "project": {"id": 341, "owner": {"id": 795}, "assignee": {"id": 840}}, "task": {"id": 302, "owner": {"id": 992}, "assignee": {"id": 16}}, "job": {"id": 373, "assignee": {"id": 1141}}, "organization": {"id": 144}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "owner": {"id": 611}, "assignee": {"id": 562}, "project": {"id": 308, "owner": {"id": 755}, "assignee": {"id": 874}}, "task": {"id": 347, "owner": {"id": 941}, "assignee": {"id": 36}}, "job": {"id": 307, "assignee": {"id": 1140}}, "organization": {"id": 1228}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "owner": {"id": 655}, "assignee": {"id": 578}, "project": {"id": 309, "owner": {"id": 770}, "assignee": {"id": 805}}, "task": {"id": 348, "owner": {"id": 980}, "assignee": {"id": 29}}, "job": {"id": 301, "assignee": {"id": 1174}}, "organization": {"id": 1228}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "owner": {"id": 600}, "assignee": {"id": 577}, "project": {"id": 387, "owner": {"id": 708}, "assignee": {"id": 845}}, "task": {"id": 352, "owner": {"id": 958}, "assignee": {"id": 17}}, "job": {"id": 311, "assignee": {"id": 1166}}, "organization": {"id": 113}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 683}, "assignee": {"id": 587}, "project": {"id": 377, "owner": {"id": 706}, "assignee": {"id": 847}}, "task": {"id": 325, "owner": {"id": 976}, "assignee": {"id": 20}}, "job": {"id": 394, "assignee": {"id": 1130}}, "organization": {"id": 177}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "owner": {"id": 632}, "assignee": {"id": 539}, "project": {"id": 301, "owner": {"id": 716}, "assignee": {"id": 832}}, "task": {"id": 354, "owner": {"id": 998}, "assignee": {"id": 45}}, "job": {"id": 344, "assignee": {"id": 1178}}, "organization": {"id": 1219}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "owner": {"id": 653}, "assignee": {"id": 599}, "project": {"id": 388, "owner": {"id": 729}, "assignee": {"id": 823}}, "task": {"id": 330, "owner": {"id": 934}, "assignee": {"id": 46}}, "job": {"id": 361, "assignee": {"id": 1150}}, "organization": {"id": 1292}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 375, "owner": {"id": 655}, "assignee": {"id": 533}, "project": {"id": 373, "owner": {"id": 770}, "assignee": {"id": 849}}, "task": {"id": 335, "owner": {"id": 980}, "assignee": {"id": 99}}, "job": {"id": 348, "assignee": {"id": 1127}}, "organization": {"id": 180}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 333, "owner": {"id": 668}, "assignee": {"id": 553}, "project": {"id": 306, "owner": {"id": 709}, "assignee": {"id": 871}}, "task": {"id": 386, "owner": {"id": 968}, "assignee": {"id": 43}}, "job": {"id": 385, "assignee": {"id": 1156}}, "organization": {"id": 173}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 368, "owner": {"id": 665}, "assignee": {"id": 534}, "project": {"id": 304, "owner": {"id": 767}, "assignee": {"id": 859}}, "task": {"id": 307, "owner": {"id": 984}, "assignee": {"id": 54}}, "job": {"id": 333, "assignee": {"id": 1180}}, "organization": {"id": 1248}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 341, "owner": {"id": 688}, "assignee": {"id": 577}, "project": {"id": 358, "owner": {"id": 777}, "assignee": {"id": 895}}, "task": {"id": 340, "owner": {"id": 955}, "assignee": {"id": 5}}, "job": {"id": 321, "assignee": {"id": 1152}}, "organization": {"id": 1211}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 679}, "assignee": {"id": 534}, "project": {"id": 348, "owner": {"id": 729}, "assignee": {"id": 831}}, "task": {"id": 310, "owner": {"id": 940}, "assignee": {"id": 65}}, "job": {"id": 344, "assignee": {"id": 1145}}, "organization": {"id": 148}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 313, "owner": {"id": 625}, "assignee": {"id": 526}, "project": {"id": 383, "owner": {"id": 703}, "assignee": {"id": 858}}, "task": {"id": 365, "owner": {"id": 993}, "assignee": {"id": 92}}, "job": {"id": 350, "assignee": {"id": 1150}}, "organization": {"id": 159}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 608}, "assignee": {"id": 539}, "project": {"id": 338, "owner": {"id": 778}, "assignee": {"id": 860}}, "task": {"id": 312, "owner": {"id": 934}, "assignee": {"id": 60}}, "job": {"id": 368, "assignee": {"id": 1108}}, "organization": {"id": 1265}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 356, "owner": {"id": 683}, "assignee": {"id": 552}, "project": {"id": 344, "owner": {"id": 727}, "assignee": {"id": 838}}, "task": {"id": 311, "owner": {"id": 983}, "assignee": {"id": 97}}, "job": {"id": 394, "assignee": {"id": 1137}}, "organization": {"id": 1204}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 384, "owner": {"id": 682}, "assignee": {"id": 593}, "project": {"id": 383, "owner": {"id": 713}, "assignee": {"id": 816}}, "task": {"id": 323, "owner": {"id": 961}, "assignee": {"id": 44}}, "job": {"id": 342, "assignee": {"id": 1153}}, "organization": {"id": 119}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 386, "owner": {"id": 647}, "assignee": {"id": 586}, "project": {"id": 313, "owner": {"id": 798}, "assignee": {"id": 816}}, "task": {"id": 321, "owner": {"id": 947}, "assignee": {"id": 94}}, "job": {"id": 342, "assignee": {"id": 1106}}, "organization": {"id": 186}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 666}, "assignee": {"id": 542}, "project": {"id": 387, "owner": {"id": 782}, "assignee": {"id": 854}}, "task": {"id": 355, "owner": {"id": 931}, "assignee": {"id": 40}}, "job": {"id": 347, "assignee": {"id": 1124}}, "organization": {"id": 1243}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 377, "owner": {"id": 694}, "assignee": {"id": 531}, "project": {"id": 340, "owner": {"id": 775}, "assignee": {"id": 880}}, "task": {"id": 359, "owner": {"id": 904}, "assignee": {"id": 14}}, "job": {"id": 306, "assignee": {"id": 1128}}, "organization": {"id": 1271}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 358, "owner": {"id": 655}, "assignee": {"id": 538}, "project": {"id": 326, "owner": {"id": 723}, "assignee": {"id": 863}}, "task": {"id": 326, "owner": {"id": 906}, "assignee": {"id": 16}}, "job": {"id": 360, "assignee": {"id": 1182}}, "organization": {"id": 181}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "owner": {"id": 652}, "assignee": {"id": 515}, "project": {"id": 323, "owner": {"id": 700}, "assignee": {"id": 876}}, "task": {"id": 325, "owner": {"id": 938}, "assignee": {"id": 62}}, "job": {"id": 394, "assignee": {"id": 1147}}, "organization": {"id": 119}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "owner": {"id": 657}, "assignee": {"id": 588}, "project": {"id": 375, "owner": {"id": 756}, "assignee": {"id": 829}}, "task": {"id": 390, "owner": {"id": 994}, "assignee": {"id": 57}}, "job": {"id": 354, "assignee": {"id": 1199}}, "organization": {"id": 1295}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "owner": {"id": 629}, "assignee": {"id": 575}, "project": {"id": 332, "owner": {"id": 790}, "assignee": {"id": 840}}, "task": {"id": 303, "owner": {"id": 985}, "assignee": {"id": 21}}, "job": {"id": 366, "assignee": {"id": 1135}}, "organization": {"id": 1249}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 603}, "assignee": {"id": 507}, "project": {"id": 399, "owner": {"id": 779}, "assignee": {"id": 889}}, "task": {"id": 341, "owner": {"id": 906}, "assignee": {"id": 50}}, "job": {"id": 304, "assignee": {"id": 1193}}, "organization": {"id": 145}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "owner": {"id": 612}, "assignee": {"id": 540}, "project": {"id": 344, "owner": {"id": 789}, "assignee": {"id": 841}}, "task": {"id": 368, "owner": {"id": 951}, "assignee": {"id": 11}}, "job": {"id": 316, "assignee": {"id": 1183}}, "organization": {"id": 194}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "owner": {"id": 689}, "assignee": {"id": 563}, "project": {"id": 316, "owner": {"id": 732}, "assignee": {"id": 860}}, "task": {"id": 389, "owner": {"id": 916}, "assignee": {"id": 48}}, "job": {"id": 327, "assignee": {"id": 1143}}, "organization": {"id": 1231}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "owner": {"id": 657}, "assignee": {"id": 541}, "project": {"id": 330, "owner": {"id": 749}, "assignee": {"id": 869}}, "task": {"id": 300, "owner": {"id": 953}, "assignee": {"id": 21}}, "job": {"id": 374, "assignee": {"id": 1132}}, "organization": {"id": 1295}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 306, "owner": {"id": 626}, "assignee": {"id": 590}, "project": {"id": 391, "owner": {"id": 750}, "assignee": {"id": 871}}, "task": {"id": 343, "owner": {"id": 958}, "assignee": {"id": 38}}, "job": {"id": 367, "assignee": {"id": 1144}}, "organization": {"id": 142}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 340, "owner": {"id": 677}, "assignee": {"id": 569}, "project": {"id": 358, "owner": {"id": 746}, "assignee": {"id": 847}}, "task": {"id": 332, "owner": {"id": 987}, "assignee": {"id": 57}}, "job": {"id": 356, "assignee": {"id": 1148}}, "organization": {"id": 165}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 321, "owner": {"id": 609}, "assignee": {"id": 545}, "project": {"id": 312, "owner": {"id": 710}, "assignee": {"id": 872}}, "task": {"id": 339, "owner": {"id": 978}, "assignee": {"id": 66}}, "job": {"id": 352, "assignee": {"id": 1186}}, "organization": {"id": 1292}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 354, "owner": {"id": 627}, "assignee": {"id": 588}, "project": {"id": 314, "owner": {"id": 733}, "assignee": {"id": 808}}, "task": {"id": 367, "owner": {"id": 947}, "assignee": {"id": 67}}, "job": {"id": 377, "assignee": {"id": 1184}}, "organization": {"id": 1244}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 609}, "assignee": {"id": 517}, "project": {"id": 312, "owner": {"id": 700}, "assignee": {"id": 809}}, "task": {"id": 353, "owner": {"id": 910}, "assignee": {"id": 21}}, "job": {"id": 359, "assignee": {"id": 1183}}, "organization": {"id": 173}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 357, "owner": {"id": 693}, "assignee": {"id": 585}, "project": {"id": 361, "owner": {"id": 791}, "assignee": {"id": 885}}, "task": {"id": 332, "owner": {"id": 990}, "assignee": {"id": 82}}, "job": {"id": 340, "assignee": {"id": 1151}}, "organization": {"id": 121}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 326, "owner": {"id": 682}, "assignee": {"id": 528}, "project": {"id": 340, "owner": {"id": 720}, "assignee": {"id": 877}}, "task": {"id": 305, "owner": {"id": 973}, "assignee": {"id": 42}}, "job": {"id": 327, "assignee": {"id": 1191}}, "organization": {"id": 1235}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 365, "owner": {"id": 612}, "assignee": {"id": 522}, "project": {"id": 367, "owner": {"id": 771}, "assignee": {"id": 890}}, "task": {"id": 385, "owner": {"id": 904}, "assignee": {"id": 24}}, "job": {"id": 321, "assignee": {"id": 1132}}, "organization": {"id": 1257}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 327, "owner": {"id": 693}, "assignee": {"id": 501}, "project": {"id": 349, "owner": {"id": 763}, "assignee": {"id": 820}}, "task": {"id": 343, "owner": {"id": 932}, "assignee": {"id": 88}}, "job": {"id": 391, "assignee": {"id": 1181}}, "organization": {"id": 132}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 623}, "assignee": {"id": 573}, "project": {"id": 330, "owner": {"id": 715}, "assignee": {"id": 814}}, "task": {"id": 321, "owner": {"id": 918}, "assignee": {"id": 59}}, "job": {"id": 341, "assignee": {"id": 1113}}, "organization": {"id": 166}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 367, "owner": {"id": 661}, "assignee": {"id": 564}, "project": {"id": 357, "owner": {"id": 735}, "assignee": {"id": 893}}, "task": {"id": 398, "owner": {"id": 910}, "assignee": {"id": 6}}, "job": {"id": 374, "assignee": {"id": 1166}}, "organization": {"id": 1236}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 315, "owner": {"id": 657}, "assignee": {"id": 544}, "project": {"id": 396, "owner": {"id": 770}, "assignee": {"id": 838}}, "task": {"id": 395, "owner": {"id": 991}, "assignee": {"id": 80}}, "job": {"id": 349, "assignee": {"id": 1156}}, "organization": {"id": 1233}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "owner": {"id": 617}, "assignee": {"id": 534}, "project": {"id": 375, "owner": {"id": 722}, "assignee": {"id": 837}}, "task": {"id": 368, "owner": {"id": 909}, "assignee": {"id": 31}}, "job": {"id": 300, "assignee": {"id": 1118}}, "organization": {"id": 183}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "owner": {"id": 620}, "assignee": {"id": 548}, "project": {"id": 302, "owner": {"id": 752}, "assignee": {"id": 818}}, "task": {"id": 327, "owner": {"id": 977}, "assignee": {"id": 12}}, "job": {"id": 386, "assignee": {"id": 1151}}, "organization": {"id": 199}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "owner": {"id": 608}, "assignee": {"id": 599}, "project": {"id": 391, "owner": {"id": 774}, "assignee": {"id": 874}}, "task": {"id": 311, "owner": {"id": 930}, "assignee": {"id": 40}}, "job": {"id": 332, "assignee": {"id": 1185}}, "organization": {"id": 1216}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "owner": {"id": 607}, "assignee": {"id": 572}, "project": {"id": 362, "owner": {"id": 720}, "assignee": {"id": 823}}, "task": {"id": 394, "owner": {"id": 963}, "assignee": {"id": 8}}, "job": {"id": 348, "assignee": {"id": 1169}}, "organization": {"id": 1295}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 343, "owner": {"id": 627}, "assignee": {"id": 513}, "project": {"id": 316, "owner": {"id": 755}, "assignee": {"id": 844}}, "task": {"id": 313, "owner": {"id": 928}, "assignee": {"id": 26}}, "job": {"id": 347, "assignee": {"id": 1132}}, "organization": {"id": 171}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "owner": {"id": 672}, "assignee": {"id": 562}, "project": {"id": 367, "owner": {"id": 780}, "assignee": {"id": 880}}, "task": {"id": 310, "owner": {"id": 941}, "assignee": {"id": 80}}, "job": {"id": 391, "assignee": {"id": 1121}}, "organization": {"id": 115}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "owner": {"id": 691}, "assignee": {"id": 553}, "project": {"id": 325, "owner": {"id": 771}, "assignee": {"id": 816}}, "task": {"id": 318, "owner": {"id": 951}, "assignee": {"id": 22}}, "job": {"id": 315, "assignee": {"id": 1142}}, "organization": {"id": 1224}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "owner": {"id": 640}, "assignee": {"id": 525}, "project": {"id": 320, "owner": {"id": 780}, "assignee": {"id": 800}}, "task": {"id": 356, "owner": {"id": 923}, "assignee": {"id": 83}}, "job": {"id": 368, "assignee": {"id": 1194}}, "organization": {"id": 1230}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 340, "owner": {"id": 641}, "assignee": {"id": 581}, "project": {"id": 347, "owner": {"id": 725}, "assignee": {"id": 869}}, "task": {"id": 330, "owner": {"id": 992}, "assignee": {"id": 58}}, "job": {"id": 347, "assignee": {"id": 1161}}, "organization": {"id": 104}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 661}, "assignee": {"id": 525}, "project": {"id": 373, "owner": {"id": 770}, "assignee": {"id": 832}}, "task": {"id": 322, "owner": {"id": 976}, "assignee": {"id": 2}}, "job": {"id": 353, "assignee": {"id": 1116}}, "organization": {"id": 116}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 326, "owner": {"id": 648}, "assignee": {"id": 542}, "project": {"id": 356, "owner": {"id": 725}, "assignee": {"id": 837}}, "task": {"id": 354, "owner": {"id": 928}, "assignee": {"id": 25}}, "job": {"id": 371, "assignee": {"id": 1138}}, "organization": {"id": 1215}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 364, "owner": {"id": 696}, "assignee": {"id": 564}, "project": {"id": 302, "owner": {"id": 799}, "assignee": {"id": 812}}, "task": {"id": 374, "owner": {"id": 908}, "assignee": {"id": 15}}, "job": {"id": 334, "assignee": {"id": 1137}}, "organization": {"id": 1269}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"id": 397, "owner": {"id": 644}, "assignee": {"id": 512}, "project": {"id": 365, "owner": {"id": 724}, "assignee": {"id": 875}}, "task": {"id": 376, "owner": {"id": 920}, "assignee": {"id": 31}}, "job": {"id": 311, "assignee": {"id": 1126}}, "organization": {"id": 160}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 321, "owner": {"id": 694}, "assignee": {"id": 555}, "project": {"id": 372, "owner": {"id": 718}, "assignee": {"id": 820}}, "task": {"id": 352, "owner": {"id": 925}, "assignee": {"id": 89}}, "job": {"id": 346, "assignee": {"id": 1124}}, "organization": {"id": 158}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 626}, "assignee": {"id": 509}, "project": {"id": 304, "owner": {"id": 738}, "assignee": {"id": 872}}, "task": {"id": 342, "owner": {"id": 968}, "assignee": {"id": 69}}, "job": {"id": 380, "assignee": {"id": 1177}}, "organization": {"id": 1239}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 664}, "assignee": {"id": 521}, "project": {"id": 389, "owner": {"id": 755}, "assignee": {"id": 829}}, "task": {"id": 308, "owner": {"id": 909}, "assignee": {"id": 2}}, "job": {"id": 374, "assignee": {"id": 1124}}, "organization": {"id": 1203}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 376, "owner": {"id": 688}, "assignee": {"id": 531}, "project": {"id": 354, "owner": {"id": 747}, "assignee": {"id": 860}}, "task": {"id": 374, "owner": {"id": 981}, "assignee": {"id": 84}}, "job": {"id": 386, "assignee": {"id": 1194}}, "organization": {"id": 133}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 383, "owner": {"id": 607}, "assignee": {"id": 571}, "project": {"id": 308, "owner": {"id": 703}, "assignee": {"id": 826}}, "task": {"id": 390, "owner": {"id": 959}, "assignee": {"id": 92}}, "job": {"id": 332, "assignee": {"id": 1127}}, "organization": {"id": 168}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 623}, "assignee": {"id": 580}, "project": {"id": 378, "owner": {"id": 754}, "assignee": {"id": 899}}, "task": {"id": 369, "owner": {"id": 969}, "assignee": {"id": 44}}, "job": {"id": 340, "assignee": {"id": 1151}}, "organization": {"id": 1242}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 349, "owner": {"id": 643}, "assignee": {"id": 581}, "project": {"id": 305, "owner": {"id": 708}, "assignee": {"id": 831}}, "task": {"id": 367, "owner": {"id": 952}, "assignee": {"id": 40}}, "job": {"id": 361, "assignee": {"id": 1146}}, "organization": {"id": 1237}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 643}, "assignee": {"id": 569}, "project": {"id": 348, "owner": {"id": 763}, "assignee": {"id": 863}}, "task": {"id": 315, "owner": {"id": 903}, "assignee": {"id": 1}}, "job": {"id": 389, "assignee": {"id": 1160}}, "organization": {"id": 139}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "owner": {"id": 655}, "assignee": {"id": 546}, "project": {"id": 352, "owner": {"id": 728}, "assignee": {"id": 895}}, "task": {"id": 352, "owner": {"id": 939}, "assignee": {"id": 34}}, "job": {"id": 376, "assignee": {"id": 1128}}, "organization": {"id": 156}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 611}, "assignee": {"id": 527}, "project": {"id": 337, "owner": {"id": 724}, "assignee": {"id": 812}}, "task": {"id": 301, "owner": {"id": 904}, "assignee": {"id": 4}}, "job": {"id": 303, "assignee": {"id": 1126}}, "organization": {"id": 1222}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 680}, "assignee": {"id": 533}, "project": {"id": 371, "owner": {"id": 786}, "assignee": {"id": 816}}, "task": {"id": 345, "owner": {"id": 956}, "assignee": {"id": 12}}, "job": {"id": 307, "assignee": {"id": 1140}}, "organization": {"id": 1218}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "owner": {"id": 656}, "assignee": {"id": 503}, "project": {"id": 305, "owner": {"id": 797}, "assignee": {"id": 817}}, "task": {"id": 329, "owner": {"id": 978}, "assignee": {"id": 92}}, "job": {"id": 367, "assignee": {"id": 1108}}, "organization": {"id": 158}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "owner": {"id": 645}, "assignee": {"id": 508}, "project": {"id": 307, "owner": {"id": 799}, "assignee": {"id": 857}}, "task": {"id": 383, "owner": {"id": 961}, "assignee": {"id": 84}}, "job": {"id": 357, "assignee": {"id": 1145}}, "organization": {"id": 111}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 699}, "assignee": {"id": 517}, "project": {"id": 321, "owner": {"id": 709}, "assignee": {"id": 819}}, "task": {"id": 337, "owner": {"id": 930}, "assignee": {"id": 96}}, "job": {"id": 342, "assignee": {"id": 1145}}, "organization": {"id": 1202}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 390, "owner": {"id": 668}, "assignee": {"id": 573}, "project": {"id": 390, "owner": {"id": 765}, "assignee": {"id": 839}}, "task": {"id": 344, "owner": {"id": 944}, "assignee": {"id": 91}}, "job": {"id": 360, "assignee": {"id": 1111}}, "organization": {"id": 1203}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"id": 307, "owner": {"id": 646}, "assignee": {"id": 551}, "project": {"id": 334, "owner": {"id": 767}, "assignee": {"id": 831}}, "task": {"id": 312, "owner": {"id": 945}, "assignee": {"id": 9}}, "job": {"id": 320, "assignee": {"id": 1182}}, "organization": {"id": 175}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 650}, "assignee": {"id": 554}, "project": {"id": 323, "owner": {"id": 718}, "assignee": {"id": 870}}, "task": {"id": 342, "owner": {"id": 974}, "assignee": {"id": 65}}, "job": {"id": 356, "assignee": {"id": 1117}}, "organization": {"id": 199}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 389, "owner": {"id": 693}, "assignee": {"id": 572}, "project": {"id": 344, "owner": {"id": 727}, "assignee": {"id": 832}}, "task": {"id": 369, "owner": {"id": 909}, "assignee": {"id": 9}}, "job": {"id": 341, "assignee": {"id": 1117}}, "organization": {"id": 1275}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 659}, "assignee": {"id": 564}, "project": {"id": 307, "owner": {"id": 759}, "assignee": {"id": 844}}, "task": {"id": 358, "owner": {"id": 991}, "assignee": {"id": 20}}, "job": {"id": 366, "assignee": {"id": 1171}}, "organization": {"id": 1253}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 370, "owner": {"id": 689}, "assignee": {"id": 557}, "project": {"id": 367, "owner": {"id": 789}, "assignee": {"id": 819}}, "task": {"id": 364, "owner": {"id": 968}, "assignee": {"id": 13}}, "job": {"id": 397, "assignee": {"id": 1160}}, "organization": {"id": 151}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 345, "owner": {"id": 694}, "assignee": {"id": 594}, "project": {"id": 328, "owner": {"id": 756}, "assignee": {"id": 812}}, "task": {"id": 367, "owner": {"id": 905}, "assignee": {"id": 94}}, "job": {"id": 340, "assignee": {"id": 1196}}, "organization": {"id": 155}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"id": 370, "owner": {"id": 696}, "assignee": {"id": 564}, "project": {"id": 309, "owner": {"id": 762}, "assignee": {"id": 817}}, "task": {"id": 389, "owner": {"id": 972}, "assignee": {"id": 10}}, "job": {"id": 320, "assignee": {"id": 1145}}, "organization": {"id": 1238}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 320, "owner": {"id": 683}, "assignee": {"id": 589}, "project": {"id": 387, "owner": {"id": 709}, "assignee": {"id": 838}}, "task": {"id": 319, "owner": {"id": 955}, "assignee": {"id": 12}}, "job": {"id": 387, "assignee": {"id": 1119}}, "organization": {"id": 1299}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 343, "owner": {"id": 622}, "assignee": {"id": 572}, "project": {"id": 388, "owner": {"id": 717}, "assignee": {"id": 877}}, "task": {"id": 350, "owner": {"id": 973}, "assignee": {"id": 1017}}, "job": {"id": 334, "assignee": {"id": 49}}, "organization": {"id": 164}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 685}, "assignee": {"id": 553}, "project": {"id": 350, "owner": {"id": 774}, "assignee": {"id": 866}}, "task": {"id": 341, "owner": {"id": 952}, "assignee": {"id": 1076}}, "job": {"id": 315, "assignee": {"id": 47}}, "organization": {"id": 132}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 699}, "assignee": {"id": 529}, "project": {"id": 351, "owner": {"id": 735}, "assignee": {"id": 807}}, "task": {"id": 372, "owner": {"id": 919}, "assignee": {"id": 1052}}, "job": {"id": 381, "assignee": {"id": 97}}, "organization": {"id": 1223}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 616}, "assignee": {"id": 517}, "project": {"id": 393, "owner": {"id": 757}, "assignee": {"id": 810}}, "task": {"id": 361, "owner": {"id": 979}, "assignee": {"id": 1007}}, "job": {"id": 308, "assignee": {"id": 83}}, "organization": {"id": 1256}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "owner": {"id": 681}, "assignee": {"id": 506}, "project": {"id": 365, "owner": {"id": 743}, "assignee": {"id": 832}}, "task": {"id": 398, "owner": {"id": 955}, "assignee": {"id": 1043}}, "job": {"id": 327, "assignee": {"id": 73}}, "organization": {"id": 182}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "owner": {"id": 670}, "assignee": {"id": 556}, "project": {"id": 326, "owner": {"id": 763}, "assignee": {"id": 893}}, "task": {"id": 300, "owner": {"id": 917}, "assignee": {"id": 1039}}, "job": {"id": 339, "assignee": {"id": 65}}, "organization": {"id": 120}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 623}, "assignee": {"id": 542}, "project": {"id": 381, "owner": {"id": 712}, "assignee": {"id": 883}}, "task": {"id": 395, "owner": {"id": 910}, "assignee": {"id": 1083}}, "job": {"id": 374, "assignee": {"id": 53}}, "organization": {"id": 1217}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 610}, "assignee": {"id": 545}, "project": {"id": 351, "owner": {"id": 718}, "assignee": {"id": 850}}, "task": {"id": 327, "owner": {"id": 912}, "assignee": {"id": 1091}}, "job": {"id": 370, "assignee": {"id": 68}}, "organization": {"id": 1223}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "owner": {"id": 684}, "assignee": {"id": 537}, "project": {"id": 319, "owner": {"id": 792}, "assignee": {"id": 896}}, "task": {"id": 392, "owner": {"id": 975}, "assignee": {"id": 1069}}, "job": {"id": 374, "assignee": {"id": 84}}, "organization": {"id": 141}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 387, "owner": {"id": 600}, "assignee": {"id": 538}, "project": {"id": 394, "owner": {"id": 737}, "assignee": {"id": 862}}, "task": {"id": 300, "owner": {"id": 974}, "assignee": {"id": 1040}}, "job": {"id": 315, "assignee": {"id": 13}}, "organization": {"id": 193}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "owner": {"id": 650}, "assignee": {"id": 579}, "project": {"id": 307, "owner": {"id": 769}, "assignee": {"id": 810}}, "task": {"id": 333, "owner": {"id": 933}, "assignee": {"id": 1014}}, "job": {"id": 387, "assignee": {"id": 90}}, "organization": {"id": 1248}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "owner": {"id": 656}, "assignee": {"id": 547}, "project": {"id": 376, "owner": {"id": 706}, "assignee": {"id": 867}}, "task": {"id": 383, "owner": {"id": 923}, "assignee": {"id": 1091}}, "job": {"id": 369, "assignee": {"id": 27}}, "organization": {"id": 1225}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 646}, "assignee": {"id": 505}, "project": {"id": 355, "owner": {"id": 744}, "assignee": {"id": 861}}, "task": {"id": 388, "owner": {"id": 964}, "assignee": {"id": 1083}}, "job": {"id": 380, "assignee": {"id": 68}}, "organization": {"id": 119}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 696}, "assignee": {"id": 533}, "project": {"id": 396, "owner": {"id": 787}, "assignee": {"id": 838}}, "task": {"id": 345, "owner": {"id": 957}, "assignee": {"id": 1087}}, "job": {"id": 351, "assignee": {"id": 84}}, "organization": {"id": 109}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 301, "owner": {"id": 688}, "assignee": {"id": 597}, "project": {"id": 394, "owner": {"id": 736}, "assignee": {"id": 837}}, "task": {"id": 338, "owner": {"id": 951}, "assignee": {"id": 1078}}, "job": {"id": 304, "assignee": {"id": 2}}, "organization": {"id": 1277}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 639}, "assignee": {"id": 563}, "project": {"id": 354, "owner": {"id": 747}, "assignee": {"id": 896}}, "task": {"id": 395, "owner": {"id": 974}, "assignee": {"id": 1047}}, "job": {"id": 399, "assignee": {"id": 57}}, "organization": {"id": 1213}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 384, "owner": {"id": 672}, "assignee": {"id": 578}, "project": {"id": 395, "owner": {"id": 746}, "assignee": {"id": 867}}, "task": {"id": 357, "owner": {"id": 947}, "assignee": {"id": 1006}}, "job": {"id": 361, "assignee": {"id": 73}}, "organization": {"id": 101}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 694}, "assignee": {"id": 592}, "project": {"id": 333, "owner": {"id": 792}, "assignee": {"id": 816}}, "task": {"id": 301, "owner": {"id": 949}, "assignee": {"id": 1099}}, "job": {"id": 355, "assignee": {"id": 50}}, "organization": {"id": 140}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 326, "owner": {"id": 600}, "assignee": {"id": 583}, "project": {"id": 341, "owner": {"id": 768}, "assignee": {"id": 804}}, "task": {"id": 348, "owner": {"id": 973}, "assignee": {"id": 1051}}, "job": {"id": 301, "assignee": {"id": 4}}, "organization": {"id": 1255}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 345, "owner": {"id": 604}, "assignee": {"id": 514}, "project": {"id": 329, "owner": {"id": 798}, "assignee": {"id": 879}}, "task": {"id": 376, "owner": {"id": 926}, "assignee": {"id": 1018}}, "job": {"id": 372, "assignee": {"id": 1}}, "organization": {"id": 1236}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 387, "owner": {"id": 655}, "assignee": {"id": 597}, "project": {"id": 355, "owner": {"id": 752}, "assignee": {"id": 864}}, "task": {"id": 396, "owner": {"id": 961}, "assignee": {"id": 1005}}, "job": {"id": 378, "assignee": {"id": 0}}, "organization": {"id": 150}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 350, "owner": {"id": 652}, "assignee": {"id": 566}, "project": {"id": 336, "owner": {"id": 738}, "assignee": {"id": 874}}, "task": {"id": 334, "owner": {"id": 938}, "assignee": {"id": 1001}}, "job": {"id": 372, "assignee": {"id": 74}}, "organization": {"id": 133}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 322, "owner": {"id": 656}, "assignee": {"id": 597}, "project": {"id": 321, "owner": {"id": 718}, "assignee": {"id": 844}}, "task": {"id": 320, "owner": {"id": 995}, "assignee": {"id": 1097}}, "job": {"id": 349, "assignee": {"id": 39}}, "organization": {"id": 1275}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 681}, "assignee": {"id": 583}, "project": {"id": 305, "owner": {"id": 794}, "assignee": {"id": 874}}, "task": {"id": 384, "owner": {"id": 986}, "assignee": {"id": 1064}}, "job": {"id": 300, "assignee": {"id": 29}}, "organization": {"id": 1270}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "owner": {"id": 681}, "assignee": {"id": 589}, "project": {"id": 323, "owner": {"id": 731}, "assignee": {"id": 853}}, "task": {"id": 317, "owner": {"id": 919}, "assignee": {"id": 1038}}, "job": {"id": 303, "assignee": {"id": 49}}, "organization": {"id": 149}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "owner": {"id": 691}, "assignee": {"id": 545}, "project": {"id": 344, "owner": {"id": 707}, "assignee": {"id": 842}}, "task": {"id": 364, "owner": {"id": 940}, "assignee": {"id": 1055}}, "job": {"id": 338, "assignee": {"id": 6}}, "organization": {"id": 134}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 686}, "assignee": {"id": 581}, "project": {"id": 396, "owner": {"id": 735}, "assignee": {"id": 857}}, "task": {"id": 368, "owner": {"id": 907}, "assignee": {"id": 1063}}, "job": {"id": 353, "assignee": {"id": 13}}, "organization": {"id": 1267}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 330, "owner": {"id": 620}, "assignee": {"id": 544}, "project": {"id": 327, "owner": {"id": 754}, "assignee": {"id": 844}}, "task": {"id": 364, "owner": {"id": 988}, "assignee": {"id": 1010}}, "job": {"id": 364, "assignee": {"id": 66}}, "organization": {"id": 1259}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 644}, "assignee": {"id": 596}, "project": {"id": 386, "owner": {"id": 755}, "assignee": {"id": 866}}, "task": {"id": 373, "owner": {"id": 985}, "assignee": {"id": 1036}}, "job": {"id": 389, "assignee": {"id": 84}}, "organization": {"id": 145}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 607}, "assignee": {"id": 542}, "project": {"id": 399, "owner": {"id": 767}, "assignee": {"id": 896}}, "task": {"id": 365, "owner": {"id": 938}, "assignee": {"id": 1003}}, "job": {"id": 394, "assignee": {"id": 0}}, "organization": {"id": 142}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "owner": {"id": 661}, "assignee": {"id": 546}, "project": {"id": 349, "owner": {"id": 711}, "assignee": {"id": 878}}, "task": {"id": 388, "owner": {"id": 961}, "assignee": {"id": 1098}}, "job": {"id": 317, "assignee": {"id": 97}}, "organization": {"id": 1273}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "owner": {"id": 674}, "assignee": {"id": 549}, "project": {"id": 338, "owner": {"id": 775}, "assignee": {"id": 868}}, "task": {"id": 390, "owner": {"id": 994}, "assignee": {"id": 1091}}, "job": {"id": 305, "assignee": {"id": 38}}, "organization": {"id": 1252}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 301, "owner": {"id": 660}, "assignee": {"id": 511}, "project": {"id": 372, "owner": {"id": 791}, "assignee": {"id": 894}}, "task": {"id": 338, "owner": {"id": 905}, "assignee": {"id": 1087}}, "job": {"id": 328, "assignee": {"id": 12}}, "organization": {"id": 114}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 377, "owner": {"id": 694}, "assignee": {"id": 548}, "project": {"id": 359, "owner": {"id": 714}, "assignee": {"id": 840}}, "task": {"id": 367, "owner": {"id": 996}, "assignee": {"id": 1078}}, "job": {"id": 334, "assignee": {"id": 7}}, "organization": {"id": 107}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 372, "owner": {"id": 673}, "assignee": {"id": 536}, "project": {"id": 313, "owner": {"id": 794}, "assignee": {"id": 806}}, "task": {"id": 397, "owner": {"id": 910}, "assignee": {"id": 1028}}, "job": {"id": 336, "assignee": {"id": 48}}, "organization": {"id": 1235}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 31, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 370, "owner": {"id": 682}, "assignee": {"id": 591}, "project": {"id": 379, "owner": {"id": 728}, "assignee": {"id": 882}}, "task": {"id": 334, "owner": {"id": 997}, "assignee": {"id": 1045}}, "job": {"id": 312, "assignee": {"id": 31}}, "organization": {"id": 1290}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 328, "owner": {"id": 653}, "assignee": {"id": 532}, "project": {"id": 379, "owner": {"id": 747}, "assignee": {"id": 852}}, "task": {"id": 362, "owner": {"id": 979}, "assignee": {"id": 1038}}, "job": {"id": 302, "assignee": {"id": 9}}, "organization": {"id": 105}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 365, "owner": {"id": 665}, "assignee": {"id": 577}, "project": {"id": 344, "owner": {"id": 707}, "assignee": {"id": 867}}, "task": {"id": 315, "owner": {"id": 922}, "assignee": {"id": 1016}}, "job": {"id": 370, "assignee": {"id": 84}}, "organization": {"id": 159}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 383, "owner": {"id": 667}, "assignee": {"id": 585}, "project": {"id": 318, "owner": {"id": 756}, "assignee": {"id": 882}}, "task": {"id": 327, "owner": {"id": 927}, "assignee": {"id": 1097}}, "job": {"id": 366, "assignee": {"id": 19}}, "organization": {"id": 1251}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 388, "owner": {"id": 668}, "assignee": {"id": 553}, "project": {"id": 314, "owner": {"id": 715}, "assignee": {"id": 884}}, "task": {"id": 356, "owner": {"id": 995}, "assignee": {"id": 1065}}, "job": {"id": 333, "assignee": {"id": 6}}, "organization": {"id": 1239}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 316, "owner": {"id": 642}, "assignee": {"id": 549}, "project": {"id": 307, "owner": {"id": 786}, "assignee": {"id": 855}}, "task": {"id": 399, "owner": {"id": 927}, "assignee": {"id": 1030}}, "job": {"id": 360, "assignee": {"id": 38}}, "organization": {"id": 194}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 321, "owner": {"id": 678}, "assignee": {"id": 529}, "project": {"id": 337, "owner": {"id": 793}, "assignee": {"id": 863}}, "task": {"id": 302, "owner": {"id": 976}, "assignee": {"id": 1023}}, "job": {"id": 321, "assignee": {"id": 26}}, "organization": {"id": 161}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 315, "owner": {"id": 642}, "assignee": {"id": 570}, "project": {"id": 385, "owner": {"id": 739}, "assignee": {"id": 801}}, "task": {"id": 388, "owner": {"id": 998}, "assignee": {"id": 1048}}, "job": {"id": 378, "assignee": {"id": 26}}, "organization": {"id": 1286}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 634}, "assignee": {"id": 580}, "project": {"id": 333, "owner": {"id": 754}, "assignee": {"id": 870}}, "task": {"id": 345, "owner": {"id": 913}, "assignee": {"id": 1040}}, "job": {"id": 370, "assignee": {"id": 45}}, "organization": {"id": 1273}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "owner": {"id": 630}, "assignee": {"id": 538}, "project": {"id": 386, "owner": {"id": 750}, "assignee": {"id": 822}}, "task": {"id": 311, "owner": {"id": 989}, "assignee": {"id": 1032}}, "job": {"id": 382, "assignee": {"id": 86}}, "organization": {"id": 100}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "owner": {"id": 622}, "assignee": {"id": 515}, "project": {"id": 375, "owner": {"id": 757}, "assignee": {"id": 830}}, "task": {"id": 348, "owner": {"id": 909}, "assignee": {"id": 1019}}, "job": {"id": 346, "assignee": {"id": 50}}, "organization": {"id": 181}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "owner": {"id": 680}, "assignee": {"id": 579}, "project": {"id": 339, "owner": {"id": 720}, "assignee": {"id": 872}}, "task": {"id": 356, "owner": {"id": 929}, "assignee": {"id": 1073}}, "job": {"id": 374, "assignee": {"id": 97}}, "organization": {"id": 1239}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "owner": {"id": 626}, "assignee": {"id": 559}, "project": {"id": 354, "owner": {"id": 780}, "assignee": {"id": 804}}, "task": {"id": 352, "owner": {"id": 915}, "assignee": {"id": 1046}}, "job": {"id": 360, "assignee": {"id": 25}}, "organization": {"id": 1264}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 634}, "assignee": {"id": 505}, "project": {"id": 334, "owner": {"id": 785}, "assignee": {"id": 826}}, "task": {"id": 376, "owner": {"id": 979}, "assignee": {"id": 1094}}, "job": {"id": 316, "assignee": {"id": 79}}, "organization": {"id": 144}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 605}, "assignee": {"id": 545}, "project": {"id": 360, "owner": {"id": 738}, "assignee": {"id": 857}}, "task": {"id": 329, "owner": {"id": 997}, "assignee": {"id": 1071}}, "job": {"id": 334, "assignee": {"id": 3}}, "organization": {"id": 172}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "owner": {"id": 684}, "assignee": {"id": 546}, "project": {"id": 357, "owner": {"id": 707}, "assignee": {"id": 840}}, "task": {"id": 321, "owner": {"id": 991}, "assignee": {"id": 1063}}, "job": {"id": 369, "assignee": {"id": 94}}, "organization": {"id": 1285}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 340, "owner": {"id": 652}, "assignee": {"id": 590}, "project": {"id": 362, "owner": {"id": 747}, "assignee": {"id": 852}}, "task": {"id": 397, "owner": {"id": 926}, "assignee": {"id": 1048}}, "job": {"id": 360, "assignee": {"id": 95}}, "organization": {"id": 1222}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 348, "owner": {"id": 623}, "assignee": {"id": 570}, "project": {"id": 311, "owner": {"id": 733}, "assignee": {"id": 810}}, "task": {"id": 351, "owner": {"id": 955}, "assignee": {"id": 1059}}, "job": {"id": 360, "assignee": {"id": 42}}, "organization": {"id": 103}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 373, "owner": {"id": 638}, "assignee": {"id": 552}, "project": {"id": 323, "owner": {"id": 708}, "assignee": {"id": 867}}, "task": {"id": 395, "owner": {"id": 975}, "assignee": {"id": 1035}}, "job": {"id": 312, "assignee": {"id": 51}}, "organization": {"id": 104}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 392, "owner": {"id": 657}, "assignee": {"id": 530}, "project": {"id": 378, "owner": {"id": 702}, "assignee": {"id": 866}}, "task": {"id": 327, "owner": {"id": 900}, "assignee": {"id": 1087}}, "job": {"id": 306, "assignee": {"id": 75}}, "organization": {"id": 1259}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 656}, "assignee": {"id": 585}, "project": {"id": 320, "owner": {"id": 775}, "assignee": {"id": 889}}, "task": {"id": 363, "owner": {"id": 939}, "assignee": {"id": 1081}}, "job": {"id": 366, "assignee": {"id": 73}}, "organization": {"id": 1246}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 384, "owner": {"id": 693}, "assignee": {"id": 514}, "project": {"id": 380, "owner": {"id": 733}, "assignee": {"id": 879}}, "task": {"id": 358, "owner": {"id": 959}, "assignee": {"id": 1035}}, "job": {"id": 341, "assignee": {"id": 99}}, "organization": {"id": 177}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 387, "owner": {"id": 658}, "assignee": {"id": 535}, "project": {"id": 388, "owner": {"id": 724}, "assignee": {"id": 843}}, "task": {"id": 353, "owner": {"id": 940}, "assignee": {"id": 1068}}, "job": {"id": 302, "assignee": {"id": 59}}, "organization": {"id": 183}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 647}, "assignee": {"id": 517}, "project": {"id": 306, "owner": {"id": 748}, "assignee": {"id": 862}}, "task": {"id": 368, "owner": {"id": 953}, "assignee": {"id": 1002}}, "job": {"id": 353, "assignee": {"id": 35}}, "organization": {"id": 1276}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 624}, "assignee": {"id": 599}, "project": {"id": 334, "owner": {"id": 780}, "assignee": {"id": 844}}, "task": {"id": 332, "owner": {"id": 944}, "assignee": {"id": 1010}}, "job": {"id": 364, "assignee": {"id": 63}}, "organization": {"id": 1276}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 686}, "assignee": {"id": 581}, "project": {"id": 331, "owner": {"id": 792}, "assignee": {"id": 856}}, "task": {"id": 302, "owner": {"id": 969}, "assignee": {"id": 1059}}, "job": {"id": 361, "assignee": {"id": 99}}, "organization": {"id": 114}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 375, "owner": {"id": 624}, "assignee": {"id": 564}, "project": {"id": 378, "owner": {"id": 742}, "assignee": {"id": 872}}, "task": {"id": 301, "owner": {"id": 977}, "assignee": {"id": 1075}}, "job": {"id": 334, "assignee": {"id": 84}}, "organization": {"id": 126}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 358, "owner": {"id": 689}, "assignee": {"id": 514}, "project": {"id": 307, "owner": {"id": 730}, "assignee": {"id": 883}}, "task": {"id": 393, "owner": {"id": 914}, "assignee": {"id": 1003}}, "job": {"id": 314, "assignee": {"id": 70}}, "organization": {"id": 1239}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 667}, "assignee": {"id": 551}, "project": {"id": 343, "owner": {"id": 743}, "assignee": {"id": 824}}, "task": {"id": 384, "owner": {"id": 935}, "assignee": {"id": 1042}}, "job": {"id": 384, "assignee": {"id": 86}}, "organization": {"id": 1282}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "owner": {"id": 656}, "assignee": {"id": 539}, "project": {"id": 356, "owner": {"id": 744}, "assignee": {"id": 843}}, "task": {"id": 365, "owner": {"id": 935}, "assignee": {"id": 1030}}, "job": {"id": 397, "assignee": {"id": 33}}, "organization": {"id": 190}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "owner": {"id": 682}, "assignee": {"id": 531}, "project": {"id": 375, "owner": {"id": 718}, "assignee": {"id": 899}}, "task": {"id": 301, "owner": {"id": 920}, "assignee": {"id": 1096}}, "job": {"id": 395, "assignee": {"id": 13}}, "organization": {"id": 157}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "owner": {"id": 623}, "assignee": {"id": 537}, "project": {"id": 375, "owner": {"id": 726}, "assignee": {"id": 878}}, "task": {"id": 311, "owner": {"id": 947}, "assignee": {"id": 1046}}, "job": {"id": 385, "assignee": {"id": 98}}, "organization": {"id": 1293}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 301, "owner": {"id": 672}, "assignee": {"id": 507}, "project": {"id": 320, "owner": {"id": 707}, "assignee": {"id": 837}}, "task": {"id": 354, "owner": {"id": 953}, "assignee": {"id": 1007}}, "job": {"id": 357, "assignee": {"id": 66}}, "organization": {"id": 1247}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "owner": {"id": 651}, "assignee": {"id": 529}, "project": {"id": 342, "owner": {"id": 795}, "assignee": {"id": 835}}, "task": {"id": 342, "owner": {"id": 917}, "assignee": {"id": 1010}}, "job": {"id": 362, "assignee": {"id": 14}}, "organization": {"id": 124}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "owner": {"id": 640}, "assignee": {"id": 563}, "project": {"id": 305, "owner": {"id": 752}, "assignee": {"id": 806}}, "task": {"id": 367, "owner": {"id": 911}, "assignee": {"id": 1086}}, "job": {"id": 331, "assignee": {"id": 3}}, "organization": {"id": 126}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "owner": {"id": 634}, "assignee": {"id": 535}, "project": {"id": 369, "owner": {"id": 754}, "assignee": {"id": 867}}, "task": {"id": 373, "owner": {"id": 981}, "assignee": {"id": 1026}}, "job": {"id": 396, "assignee": {"id": 34}}, "organization": {"id": 1247}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "owner": {"id": 632}, "assignee": {"id": 511}, "project": {"id": 304, "owner": {"id": 799}, "assignee": {"id": 850}}, "task": {"id": 369, "owner": {"id": 964}, "assignee": {"id": 1035}}, "job": {"id": 311, "assignee": {"id": 47}}, "organization": {"id": 1205}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 339, "owner": {"id": 609}, "assignee": {"id": 550}, "project": {"id": 369, "owner": {"id": 703}, "assignee": {"id": 854}}, "task": {"id": 395, "owner": {"id": 927}, "assignee": {"id": 1074}}, "job": {"id": 306, "assignee": {"id": 3}}, "organization": {"id": 171}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 355, "owner": {"id": 627}, "assignee": {"id": 531}, "project": {"id": 328, "owner": {"id": 725}, "assignee": {"id": 847}}, "task": {"id": 312, "owner": {"id": 938}, "assignee": {"id": 1065}}, "job": {"id": 329, "assignee": {"id": 97}}, "organization": {"id": 199}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 379, "owner": {"id": 617}, "assignee": {"id": 598}, "project": {"id": 386, "owner": {"id": 771}, "assignee": {"id": 801}}, "task": {"id": 367, "owner": {"id": 950}, "assignee": {"id": 1050}}, "job": {"id": 310, "assignee": {"id": 11}}, "organization": {"id": 1271}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 380, "owner": {"id": 676}, "assignee": {"id": 565}, "project": {"id": 332, "owner": {"id": 733}, "assignee": {"id": 831}}, "task": {"id": 339, "owner": {"id": 901}, "assignee": {"id": 1003}}, "job": {"id": 302, "assignee": {"id": 2}}, "organization": {"id": 1252}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 661}, "assignee": {"id": 543}, "project": {"id": 365, "owner": {"id": 750}, "assignee": {"id": 806}}, "task": {"id": 301, "owner": {"id": 977}, "assignee": {"id": 1066}}, "job": {"id": 369, "assignee": {"id": 52}}, "organization": {"id": 102}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 620}, "assignee": {"id": 527}, "project": {"id": 358, "owner": {"id": 764}, "assignee": {"id": 804}}, "task": {"id": 313, "owner": {"id": 931}, "assignee": {"id": 1073}}, "job": {"id": 323, "assignee": {"id": 63}}, "organization": {"id": 114}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 382, "owner": {"id": 641}, "assignee": {"id": 586}, "project": {"id": 395, "owner": {"id": 758}, "assignee": {"id": 855}}, "task": {"id": 371, "owner": {"id": 968}, "assignee": {"id": 1028}}, "job": {"id": 315, "assignee": {"id": 97}}, "organization": {"id": 1285}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 356, "owner": {"id": 600}, "assignee": {"id": 522}, "project": {"id": 308, "owner": {"id": 712}, "assignee": {"id": 801}}, "task": {"id": 375, "owner": {"id": 922}, "assignee": {"id": 1073}}, "job": {"id": 359, "assignee": {"id": 63}}, "organization": {"id": 1254}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 356, "owner": {"id": 617}, "assignee": {"id": 514}, "project": {"id": 342, "owner": {"id": 714}, "assignee": {"id": 824}}, "task": {"id": 375, "owner": {"id": 913}, "assignee": {"id": 1087}}, "job": {"id": 364, "assignee": {"id": 55}}, "organization": {"id": 183}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 300, "owner": {"id": 675}, "assignee": {"id": 599}, "project": {"id": 352, "owner": {"id": 768}, "assignee": {"id": 801}}, "task": {"id": 340, "owner": {"id": 958}, "assignee": {"id": 1011}}, "job": {"id": 380, "assignee": {"id": 11}}, "organization": {"id": 126}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 608}, "assignee": {"id": 527}, "project": {"id": 382, "owner": {"id": 787}, "assignee": {"id": 808}}, "task": {"id": 364, "owner": {"id": 988}, "assignee": {"id": 1079}}, "job": {"id": 388, "assignee": {"id": 21}}, "organization": {"id": 1289}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 50, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 307, "owner": {"id": 680}, "assignee": {"id": 517}, "project": {"id": 390, "owner": {"id": 791}, "assignee": {"id": 846}}, "task": {"id": 362, "owner": {"id": 903}, "assignee": {"id": 1013}}, "job": {"id": 321, "assignee": {"id": 50}}, "organization": {"id": 1278}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 674}, "assignee": {"id": 534}, "project": {"id": 329, "owner": {"id": 712}, "assignee": {"id": 886}}, "task": {"id": 372, "owner": {"id": 991}, "assignee": {"id": 1044}}, "job": {"id": 346, "assignee": {"id": 84}}, "organization": {"id": 197}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "owner": {"id": 698}, "assignee": {"id": 585}, "project": {"id": 374, "owner": {"id": 788}, "assignee": {"id": 869}}, "task": {"id": 382, "owner": {"id": 992}, "assignee": {"id": 1085}}, "job": {"id": 384, "assignee": {"id": 84}}, "organization": {"id": 120}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 61, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "owner": {"id": 628}, "assignee": {"id": 588}, "project": {"id": 348, "owner": {"id": 774}, "assignee": {"id": 844}}, "task": {"id": 384, "owner": {"id": 997}, "assignee": {"id": 1079}}, "job": {"id": 367, "assignee": {"id": 61}}, "organization": {"id": 1212}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "owner": {"id": 662}, "assignee": {"id": 503}, "project": {"id": 385, "owner": {"id": 714}, "assignee": {"id": 833}}, "task": {"id": 355, "owner": {"id": 919}, "assignee": {"id": 1005}}, "job": {"id": 376, "assignee": {"id": 91}}, "organization": {"id": 1206}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "owner": {"id": 683}, "assignee": {"id": 527}, "project": {"id": 370, "owner": {"id": 723}, "assignee": {"id": 884}}, "task": {"id": 351, "owner": {"id": 914}, "assignee": {"id": 1018}}, "job": {"id": 339, "assignee": {"id": 43}}, "organization": {"id": 136}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "owner": {"id": 600}, "assignee": {"id": 527}, "project": {"id": 370, "owner": {"id": 714}, "assignee": {"id": 849}}, "task": {"id": 324, "owner": {"id": 920}, "assignee": {"id": 1027}}, "job": {"id": 341, "assignee": {"id": 87}}, "organization": {"id": 112}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "owner": {"id": 604}, "assignee": {"id": 541}, "project": {"id": 347, "owner": {"id": 770}, "assignee": {"id": 854}}, "task": {"id": 340, "owner": {"id": 904}, "assignee": {"id": 1084}}, "job": {"id": 375, "assignee": {"id": 37}}, "organization": {"id": 1289}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 656}, "assignee": {"id": 577}, "project": {"id": 312, "owner": {"id": 735}, "assignee": {"id": 804}}, "task": {"id": 328, "owner": {"id": 949}, "assignee": {"id": 1086}}, "job": {"id": 387, "assignee": {"id": 87}}, "organization": {"id": 1275}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 380, "owner": {"id": 643}, "assignee": {"id": 511}, "project": {"id": 387, "owner": {"id": 739}, "assignee": {"id": 815}}, "task": {"id": 331, "owner": {"id": 936}, "assignee": {"id": 1002}}, "job": {"id": 333, "assignee": {"id": 22}}, "organization": {"id": 181}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 391, "owner": {"id": 611}, "assignee": {"id": 501}, "project": {"id": 395, "owner": {"id": 733}, "assignee": {"id": 864}}, "task": {"id": 312, "owner": {"id": 978}, "assignee": {"id": 1046}}, "job": {"id": 339, "assignee": {"id": 20}}, "organization": {"id": 185}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 326, "owner": {"id": 686}, "assignee": {"id": 526}, "project": {"id": 312, "owner": {"id": 720}, "assignee": {"id": 828}}, "task": {"id": 375, "owner": {"id": 999}, "assignee": {"id": 1042}}, "job": {"id": 384, "assignee": {"id": 59}}, "organization": {"id": 1250}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 645}, "assignee": {"id": 594}, "project": {"id": 382, "owner": {"id": 780}, "assignee": {"id": 888}}, "task": {"id": 333, "owner": {"id": 981}, "assignee": {"id": 1042}}, "job": {"id": 307, "assignee": {"id": 93}}, "organization": {"id": 1260}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 394, "owner": {"id": 607}, "assignee": {"id": 581}, "project": {"id": 388, "owner": {"id": 736}, "assignee": {"id": 845}}, "task": {"id": 391, "owner": {"id": 930}, "assignee": {"id": 1022}}, "job": {"id": 315, "assignee": {"id": 91}}, "organization": {"id": 192}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 392, "owner": {"id": 603}, "assignee": {"id": 551}, "project": {"id": 354, "owner": {"id": 703}, "assignee": {"id": 877}}, "task": {"id": 370, "owner": {"id": 939}, "assignee": {"id": 1092}}, "job": {"id": 396, "assignee": {"id": 74}}, "organization": {"id": 146}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 19, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 676}, "assignee": {"id": 569}, "project": {"id": 385, "owner": {"id": 774}, "assignee": {"id": 880}}, "task": {"id": 368, "owner": {"id": 959}, "assignee": {"id": 1086}}, "job": {"id": 330, "assignee": {"id": 19}}, "organization": {"id": 1256}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 625}, "assignee": {"id": 584}, "project": {"id": 368, "owner": {"id": 714}, "assignee": {"id": 896}}, "task": {"id": 385, "owner": {"id": 974}, "assignee": {"id": 1095}}, "job": {"id": 315, "assignee": {"id": 65}}, "organization": {"id": 1200}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 312, "owner": {"id": 25}, "assignee": {"id": 543}, "project": {"id": 341, "owner": {"id": 706}, "assignee": {"id": 889}}, "task": {"id": 350, "owner": {"id": 991}, "assignee": {"id": 1097}}, "job": {"id": 351, "assignee": {"id": 1134}}, "organization": {"id": 127}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 308, "owner": {"id": 65}, "assignee": {"id": 565}, "project": {"id": 391, "owner": {"id": 777}, "assignee": {"id": 805}}, "task": {"id": 342, "owner": {"id": 925}, "assignee": {"id": 1099}}, "job": {"id": 334, "assignee": {"id": 1118}}, "organization": {"id": 190}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 322, "owner": {"id": 26}, "assignee": {"id": 544}, "project": {"id": 327, "owner": {"id": 790}, "assignee": {"id": 899}}, "task": {"id": 394, "owner": {"id": 940}, "assignee": {"id": 1036}}, "job": {"id": 336, "assignee": {"id": 1176}}, "organization": {"id": 1279}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 390, "owner": {"id": 45}, "assignee": {"id": 523}, "project": {"id": 335, "owner": {"id": 705}, "assignee": {"id": 856}}, "task": {"id": 387, "owner": {"id": 953}, "assignee": {"id": 1061}}, "job": {"id": 369, "assignee": {"id": 1126}}, "organization": {"id": 1285}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "owner": {"id": 91}, "assignee": {"id": 570}, "project": {"id": 384, "owner": {"id": 716}, "assignee": {"id": 866}}, "task": {"id": 398, "owner": {"id": 961}, "assignee": {"id": 1005}}, "job": {"id": 392, "assignee": {"id": 1114}}, "organization": {"id": 110}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "owner": {"id": 39}, "assignee": {"id": 547}, "project": {"id": 319, "owner": {"id": 717}, "assignee": {"id": 815}}, "task": {"id": 302, "owner": {"id": 978}, "assignee": {"id": 1049}}, "job": {"id": 303, "assignee": {"id": 1148}}, "organization": {"id": 195}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "owner": {"id": 48}, "assignee": {"id": 537}, "project": {"id": 327, "owner": {"id": 782}, "assignee": {"id": 882}}, "task": {"id": 323, "owner": {"id": 919}, "assignee": {"id": 1066}}, "job": {"id": 309, "assignee": {"id": 1185}}, "organization": {"id": 1203}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "owner": {"id": 99}, "assignee": {"id": 528}, "project": {"id": 309, "owner": {"id": 779}, "assignee": {"id": 841}}, "task": {"id": 324, "owner": {"id": 932}, "assignee": {"id": 1011}}, "job": {"id": 351, "assignee": {"id": 1121}}, "organization": {"id": 1236}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "owner": {"id": 76}, "assignee": {"id": 593}, "project": {"id": 350, "owner": {"id": 772}, "assignee": {"id": 835}}, "task": {"id": 373, "owner": {"id": 911}, "assignee": {"id": 1043}}, "job": {"id": 301, "assignee": {"id": 1125}}, "organization": {"id": 137}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "owner": {"id": 23}, "assignee": {"id": 514}, "project": {"id": 370, "owner": {"id": 781}, "assignee": {"id": 850}}, "task": {"id": 304, "owner": {"id": 914}, "assignee": {"id": 1084}}, "job": {"id": 387, "assignee": {"id": 1123}}, "organization": {"id": 179}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "owner": {"id": 76}, "assignee": {"id": 560}, "project": {"id": 372, "owner": {"id": 754}, "assignee": {"id": 872}}, "task": {"id": 330, "owner": {"id": 913}, "assignee": {"id": 1077}}, "job": {"id": 320, "assignee": {"id": 1192}}, "organization": {"id": 1221}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "owner": {"id": 6}, "assignee": {"id": 558}, "project": {"id": 357, "owner": {"id": 753}, "assignee": {"id": 856}}, "task": {"id": 310, "owner": {"id": 919}, "assignee": {"id": 1052}}, "job": {"id": 311, "assignee": {"id": 1120}}, "organization": {"id": 1262}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 302, "owner": {"id": 83}, "assignee": {"id": 568}, "project": {"id": 331, "owner": {"id": 741}, "assignee": {"id": 839}}, "task": {"id": 349, "owner": {"id": 954}, "assignee": {"id": 1023}}, "job": {"id": 306, "assignee": {"id": 1125}}, "organization": {"id": 126}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 91}, "assignee": {"id": 571}, "project": {"id": 325, "owner": {"id": 701}, "assignee": {"id": 830}}, "task": {"id": 377, "owner": {"id": 979}, "assignee": {"id": 1081}}, "job": {"id": 391, "assignee": {"id": 1179}}, "organization": {"id": 145}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 300, "owner": {"id": 93}, "assignee": {"id": 507}, "project": {"id": 367, "owner": {"id": 752}, "assignee": {"id": 832}}, "task": {"id": 304, "owner": {"id": 928}, "assignee": {"id": 1048}}, "job": {"id": 336, "assignee": {"id": 1181}}, "organization": {"id": 1266}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 367, "owner": {"id": 57}, "assignee": {"id": 558}, "project": {"id": 397, "owner": {"id": 793}, "assignee": {"id": 838}}, "task": {"id": 322, "owner": {"id": 918}, "assignee": {"id": 1013}}, "job": {"id": 382, "assignee": {"id": 1127}}, "organization": {"id": 1261}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 43}, "assignee": {"id": 512}, "project": {"id": 378, "owner": {"id": 748}, "assignee": {"id": 802}}, "task": {"id": 333, "owner": {"id": 948}, "assignee": {"id": 1074}}, "job": {"id": 393, "assignee": {"id": 1106}}, "organization": {"id": 163}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 393, "owner": {"id": 93}, "assignee": {"id": 592}, "project": {"id": 326, "owner": {"id": 763}, "assignee": {"id": 895}}, "task": {"id": 308, "owner": {"id": 968}, "assignee": {"id": 1016}}, "job": {"id": 332, "assignee": {"id": 1139}}, "organization": {"id": 102}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 311, "owner": {"id": 29}, "assignee": {"id": 553}, "project": {"id": 366, "owner": {"id": 749}, "assignee": {"id": 861}}, "task": {"id": 319, "owner": {"id": 920}, "assignee": {"id": 1040}}, "job": {"id": 340, "assignee": {"id": 1106}}, "organization": {"id": 1236}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 333, "owner": {"id": 68}, "assignee": {"id": 588}, "project": {"id": 315, "owner": {"id": 707}, "assignee": {"id": 898}}, "task": {"id": 316, "owner": {"id": 913}, "assignee": {"id": 1052}}, "job": {"id": 351, "assignee": {"id": 1130}}, "organization": {"id": 1203}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 97}, "assignee": {"id": 564}, "project": {"id": 387, "owner": {"id": 713}, "assignee": {"id": 805}}, "task": {"id": 366, "owner": {"id": 968}, "assignee": {"id": 1021}}, "job": {"id": 349, "assignee": {"id": 1107}}, "organization": {"id": 167}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 300, "owner": {"id": 16}, "assignee": {"id": 542}, "project": {"id": 306, "owner": {"id": 766}, "assignee": {"id": 896}}, "task": {"id": 300, "owner": {"id": 962}, "assignee": {"id": 1033}}, "job": {"id": 339, "assignee": {"id": 1163}}, "organization": {"id": 152}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 393, "owner": {"id": 6}, "assignee": {"id": 545}, "project": {"id": 328, "owner": {"id": 799}, "assignee": {"id": 884}}, "task": {"id": 385, "owner": {"id": 908}, "assignee": {"id": 1015}}, "job": {"id": 358, "assignee": {"id": 1161}}, "organization": {"id": 1290}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 386, "owner": {"id": 21}, "assignee": {"id": 544}, "project": {"id": 339, "owner": {"id": 746}, "assignee": {"id": 801}}, "task": {"id": 313, "owner": {"id": 959}, "assignee": {"id": 1085}}, "job": {"id": 313, "assignee": {"id": 1194}}, "organization": {"id": 1214}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 26, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "owner": {"id": 26}, "assignee": {"id": 527}, "project": {"id": 337, "owner": {"id": 740}, "assignee": {"id": 882}}, "task": {"id": 368, "owner": {"id": 922}, "assignee": {"id": 1090}}, "job": {"id": 375, "assignee": {"id": 1149}}, "organization": {"id": 182}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "owner": {"id": 14}, "assignee": {"id": 553}, "project": {"id": 386, "owner": {"id": 783}, "assignee": {"id": 807}}, "task": {"id": 324, "owner": {"id": 993}, "assignee": {"id": 1089}}, "job": {"id": 332, "assignee": {"id": 1178}}, "organization": {"id": 152}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "owner": {"id": 75}, "assignee": {"id": 555}, "project": {"id": 358, "owner": {"id": 768}, "assignee": {"id": 865}}, "task": {"id": 364, "owner": {"id": 999}, "assignee": {"id": 1050}}, "job": {"id": 363, "assignee": {"id": 1104}}, "organization": {"id": 1221}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 95}, "assignee": {"id": 539}, "project": {"id": 371, "owner": {"id": 798}, "assignee": {"id": 838}}, "task": {"id": 333, "owner": {"id": 955}, "assignee": {"id": 1039}}, "job": {"id": 375, "assignee": {"id": 1181}}, "organization": {"id": 1203}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 13}, "assignee": {"id": 555}, "project": {"id": 311, "owner": {"id": 738}, "assignee": {"id": 895}}, "task": {"id": 327, "owner": {"id": 957}, "assignee": {"id": 1027}}, "job": {"id": 328, "assignee": {"id": 1158}}, "organization": {"id": 163}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "owner": {"id": 24}, "assignee": {"id": 549}, "project": {"id": 367, "owner": {"id": 711}, "assignee": {"id": 815}}, "task": {"id": 305, "owner": {"id": 900}, "assignee": {"id": 1000}}, "job": {"id": 342, "assignee": {"id": 1126}}, "organization": {"id": 114}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "owner": {"id": 57}, "assignee": {"id": 558}, "project": {"id": 307, "owner": {"id": 770}, "assignee": {"id": 866}}, "task": {"id": 385, "owner": {"id": 935}, "assignee": {"id": 1024}}, "job": {"id": 357, "assignee": {"id": 1181}}, "organization": {"id": 1209}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "owner": {"id": 91}, "assignee": {"id": 562}, "project": {"id": 302, "owner": {"id": 707}, "assignee": {"id": 829}}, "task": {"id": 368, "owner": {"id": 942}, "assignee": {"id": 1020}}, "job": {"id": 316, "assignee": {"id": 1120}}, "organization": {"id": 1279}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 18}, "assignee": {"id": 502}, "project": {"id": 318, "owner": {"id": 710}, "assignee": {"id": 888}}, "task": {"id": 361, "owner": {"id": 936}, "assignee": {"id": 1007}}, "job": {"id": 341, "assignee": {"id": 1106}}, "organization": {"id": 179}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 312, "owner": {"id": 9}, "assignee": {"id": 577}, "project": {"id": 342, "owner": {"id": 701}, "assignee": {"id": 882}}, "task": {"id": 306, "owner": {"id": 936}, "assignee": {"id": 1085}}, "job": {"id": 304, "assignee": {"id": 1139}}, "organization": {"id": 182}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 377, "owner": {"id": 2}, "assignee": {"id": 517}, "project": {"id": 320, "owner": {"id": 727}, "assignee": {"id": 828}}, "task": {"id": 309, "owner": {"id": 985}, "assignee": {"id": 1046}}, "job": {"id": 361, "assignee": {"id": 1194}}, "organization": {"id": 1252}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 42}, "assignee": {"id": 552}, "project": {"id": 312, "owner": {"id": 749}, "assignee": {"id": 814}}, "task": {"id": 361, "owner": {"id": 986}, "assignee": {"id": 1087}}, "job": {"id": 316, "assignee": {"id": 1132}}, "organization": {"id": 1222}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 16}, "assignee": {"id": 554}, "project": {"id": 351, "owner": {"id": 798}, "assignee": {"id": 884}}, "task": {"id": 308, "owner": {"id": 974}, "assignee": {"id": 1082}}, "job": {"id": 330, "assignee": {"id": 1182}}, "organization": {"id": 147}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 69}, "assignee": {"id": 567}, "project": {"id": 332, "owner": {"id": 740}, "assignee": {"id": 841}}, "task": {"id": 324, "owner": {"id": 952}, "assignee": {"id": 1049}}, "job": {"id": 366, "assignee": {"id": 1173}}, "organization": {"id": 178}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 373, "owner": {"id": 28}, "assignee": {"id": 586}, "project": {"id": 384, "owner": {"id": 734}, "assignee": {"id": 860}}, "task": {"id": 308, "owner": {"id": 928}, "assignee": {"id": 1001}}, "job": {"id": 340, "assignee": {"id": 1150}}, "organization": {"id": 1208}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 313, "owner": {"id": 88}, "assignee": {"id": 511}, "project": {"id": 337, "owner": {"id": 716}, "assignee": {"id": 848}}, "task": {"id": 346, "owner": {"id": 909}, "assignee": {"id": 1014}}, "job": {"id": 389, "assignee": {"id": 1184}}, "organization": {"id": 1271}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 78}, "assignee": {"id": 530}, "project": {"id": 305, "owner": {"id": 743}, "assignee": {"id": 802}}, "task": {"id": 354, "owner": {"id": 997}, "assignee": {"id": 1057}}, "job": {"id": 389, "assignee": {"id": 1126}}, "organization": {"id": 194}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 351, "owner": {"id": 72}, "assignee": {"id": 525}, "project": {"id": 345, "owner": {"id": 741}, "assignee": {"id": 875}}, "task": {"id": 307, "owner": {"id": 929}, "assignee": {"id": 1032}}, "job": {"id": 340, "assignee": {"id": 1147}}, "organization": {"id": 189}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 45}, "assignee": {"id": 516}, "project": {"id": 318, "owner": {"id": 761}, "assignee": {"id": 877}}, "task": {"id": 342, "owner": {"id": 983}, "assignee": {"id": 1094}}, "job": {"id": 380, "assignee": {"id": 1123}}, "organization": {"id": 1255}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 308, "owner": {"id": 40}, "assignee": {"id": 515}, "project": {"id": 328, "owner": {"id": 708}, "assignee": {"id": 853}}, "task": {"id": 380, "owner": {"id": 933}, "assignee": {"id": 1034}}, "job": {"id": 349, "assignee": {"id": 1141}}, "organization": {"id": 1232}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "owner": {"id": 25}, "assignee": {"id": 516}, "project": {"id": 375, "owner": {"id": 747}, "assignee": {"id": 824}}, "task": {"id": 360, "owner": {"id": 920}, "assignee": {"id": 1014}}, "job": {"id": 309, "assignee": {"id": 1197}}, "organization": {"id": 153}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "owner": {"id": 15}, "assignee": {"id": 589}, "project": {"id": 396, "owner": {"id": 721}, "assignee": {"id": 848}}, "task": {"id": 384, "owner": {"id": 979}, "assignee": {"id": 1015}}, "job": {"id": 376, "assignee": {"id": 1166}}, "organization": {"id": 135}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "owner": {"id": 13}, "assignee": {"id": 596}, "project": {"id": 376, "owner": {"id": 789}, "assignee": {"id": 821}}, "task": {"id": 376, "owner": {"id": 948}, "assignee": {"id": 1074}}, "job": {"id": 387, "assignee": {"id": 1129}}, "organization": {"id": 1286}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "owner": {"id": 26}, "assignee": {"id": 531}, "project": {"id": 386, "owner": {"id": 779}, "assignee": {"id": 816}}, "task": {"id": 364, "owner": {"id": 985}, "assignee": {"id": 1034}}, "job": {"id": 324, "assignee": {"id": 1189}}, "organization": {"id": 1238}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "owner": {"id": 68}, "assignee": {"id": 594}, "project": {"id": 334, "owner": {"id": 739}, "assignee": {"id": 865}}, "task": {"id": 303, "owner": {"id": 981}, "assignee": {"id": 1076}}, "job": {"id": 308, "assignee": {"id": 1111}}, "organization": {"id": 135}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 96}, "assignee": {"id": 528}, "project": {"id": 337, "owner": {"id": 738}, "assignee": {"id": 863}}, "task": {"id": 351, "owner": {"id": 980}, "assignee": {"id": 1005}}, "job": {"id": 307, "assignee": {"id": 1105}}, "organization": {"id": 179}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "owner": {"id": 72}, "assignee": {"id": 534}, "project": {"id": 326, "owner": {"id": 721}, "assignee": {"id": 844}}, "task": {"id": 324, "owner": {"id": 998}, "assignee": {"id": 1011}}, "job": {"id": 327, "assignee": {"id": 1178}}, "organization": {"id": 1286}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "owner": {"id": 51}, "assignee": {"id": 532}, "project": {"id": 309, "owner": {"id": 759}, "assignee": {"id": 880}}, "task": {"id": 362, "owner": {"id": 948}, "assignee": {"id": 1071}}, "job": {"id": 399, "assignee": {"id": 1117}}, "organization": {"id": 1290}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 365, "owner": {"id": 86}, "assignee": {"id": 502}, "project": {"id": 393, "owner": {"id": 736}, "assignee": {"id": 815}}, "task": {"id": 337, "owner": {"id": 967}, "assignee": {"id": 1013}}, "job": {"id": 351, "assignee": {"id": 1146}}, "organization": {"id": 131}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 90, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 90}, "assignee": {"id": 524}, "project": {"id": 395, "owner": {"id": 733}, "assignee": {"id": 878}}, "task": {"id": 394, "owner": {"id": 924}, "assignee": {"id": 1084}}, "job": {"id": 304, "assignee": {"id": 1194}}, "organization": {"id": 143}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"id": 312, "owner": {"id": 65}, "assignee": {"id": 530}, "project": {"id": 369, "owner": {"id": 709}, "assignee": {"id": 818}}, "task": {"id": 315, "owner": {"id": 921}, "assignee": {"id": 1030}}, "job": {"id": 336, "assignee": {"id": 1136}}, "organization": {"id": 1225}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 381, "owner": {"id": 36}, "assignee": {"id": 579}, "project": {"id": 377, "owner": {"id": 763}, "assignee": {"id": 849}}, "task": {"id": 348, "owner": {"id": 973}, "assignee": {"id": 1001}}, "job": {"id": 302, "assignee": {"id": 1118}}, "organization": {"id": 1275}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 28}, "assignee": {"id": 580}, "project": {"id": 359, "owner": {"id": 782}, "assignee": {"id": 816}}, "task": {"id": 393, "owner": {"id": 962}, "assignee": {"id": 1083}}, "job": {"id": 327, "assignee": {"id": 1139}}, "organization": {"id": 188}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 357, "owner": {"id": 46}, "assignee": {"id": 553}, "project": {"id": 337, "owner": {"id": 744}, "assignee": {"id": 869}}, "task": {"id": 378, "owner": {"id": 980}, "assignee": {"id": 1068}}, "job": {"id": 392, "assignee": {"id": 1159}}, "organization": {"id": 161}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 68}, "assignee": {"id": 532}, "project": {"id": 309, "owner": {"id": 797}, "assignee": {"id": 806}}, "task": {"id": 348, "owner": {"id": 952}, "assignee": {"id": 1064}}, "job": {"id": 320, "assignee": {"id": 1169}}, "organization": {"id": 1206}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 87}, "assignee": {"id": 546}, "project": {"id": 318, "owner": {"id": 703}, "assignee": {"id": 801}}, "task": {"id": 388, "owner": {"id": 911}, "assignee": {"id": 1076}}, "job": {"id": 387, "assignee": {"id": 1136}}, "organization": {"id": 1209}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 351, "owner": {"id": 53}, "assignee": {"id": 552}, "project": {"id": 314, "owner": {"id": 703}, "assignee": {"id": 890}}, "task": {"id": 387, "owner": {"id": 997}, "assignee": {"id": 1026}}, "job": {"id": 350, "assignee": {"id": 1147}}, "organization": {"id": 134}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 399, "owner": {"id": 80}, "assignee": {"id": 555}, "project": {"id": 330, "owner": {"id": 764}, "assignee": {"id": 895}}, "task": {"id": 317, "owner": {"id": 940}, "assignee": {"id": 1067}}, "job": {"id": 323, "assignee": {"id": 1196}}, "organization": {"id": 111}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 350, "owner": {"id": 64}, "assignee": {"id": 590}, "project": {"id": 365, "owner": {"id": 775}, "assignee": {"id": 814}}, "task": {"id": 307, "owner": {"id": 947}, "assignee": {"id": 1049}}, "job": {"id": 371, "assignee": {"id": 1194}}, "organization": {"id": 1204}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 313, "owner": {"id": 65}, "assignee": {"id": 549}, "project": {"id": 306, "owner": {"id": 746}, "assignee": {"id": 806}}, "task": {"id": 305, "owner": {"id": 939}, "assignee": {"id": 1008}}, "job": {"id": 369, "assignee": {"id": 1132}}, "organization": {"id": 1263}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "owner": {"id": 96}, "assignee": {"id": 564}, "project": {"id": 313, "owner": {"id": 769}, "assignee": {"id": 816}}, "task": {"id": 326, "owner": {"id": 972}, "assignee": {"id": 1036}}, "job": {"id": 382, "assignee": {"id": 1116}}, "organization": {"id": 136}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "owner": {"id": 13}, "assignee": {"id": 522}, "project": {"id": 398, "owner": {"id": 710}, "assignee": {"id": 863}}, "task": {"id": 367, "owner": {"id": 999}, "assignee": {"id": 1008}}, "job": {"id": 375, "assignee": {"id": 1112}}, "organization": {"id": 197}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 31}, "assignee": {"id": 534}, "project": {"id": 364, "owner": {"id": 786}, "assignee": {"id": 827}}, "task": {"id": 382, "owner": {"id": 927}, "assignee": {"id": 1098}}, "job": {"id": 384, "assignee": {"id": 1138}}, "organization": {"id": 1291}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "owner": {"id": 92}, "assignee": {"id": 562}, "project": {"id": 356, "owner": {"id": 709}, "assignee": {"id": 825}}, "task": {"id": 367, "owner": {"id": 997}, "assignee": {"id": 1049}}, "job": {"id": 350, "assignee": {"id": 1192}}, "organization": {"id": 1246}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "owner": {"id": 99}, "assignee": {"id": 535}, "project": {"id": 325, "owner": {"id": 780}, "assignee": {"id": 859}}, "task": {"id": 352, "owner": {"id": 961}, "assignee": {"id": 1069}}, "job": {"id": 386, "assignee": {"id": 1187}}, "organization": {"id": 142}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "owner": {"id": 84}, "assignee": {"id": 585}, "project": {"id": 391, "owner": {"id": 717}, "assignee": {"id": 849}}, "task": {"id": 308, "owner": {"id": 958}, "assignee": {"id": 1041}}, "job": {"id": 357, "assignee": {"id": 1195}}, "organization": {"id": 176}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "owner": {"id": 45}, "assignee": {"id": 506}, "project": {"id": 301, "owner": {"id": 730}, "assignee": {"id": 842}}, "task": {"id": 321, "owner": {"id": 987}, "assignee": {"id": 1050}}, "job": {"id": 388, "assignee": {"id": 1189}}, "organization": {"id": 1271}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 2}, "assignee": {"id": 528}, "project": {"id": 385, "owner": {"id": 729}, "assignee": {"id": 870}}, "task": {"id": 306, "owner": {"id": 992}, "assignee": {"id": 1029}}, "job": {"id": 325, "assignee": {"id": 1183}}, "organization": {"id": 1282}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 67, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 314, "owner": {"id": 67}, "assignee": {"id": 536}, "project": {"id": 369, "owner": {"id": 766}, "assignee": {"id": 898}}, "task": {"id": 376, "owner": {"id": 903}, "assignee": {"id": 1094}}, "job": {"id": 343, "assignee": {"id": 1144}}, "organization": {"id": 171}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 70}, "assignee": {"id": 581}, "project": {"id": 304, "owner": {"id": 778}, "assignee": {"id": 860}}, "task": {"id": 301, "owner": {"id": 919}, "assignee": {"id": 1021}}, "job": {"id": 349, "assignee": {"id": 1121}}, "organization": {"id": 168}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"id": 391, "owner": {"id": 85}, "assignee": {"id": 506}, "project": {"id": 388, "owner": {"id": 789}, "assignee": {"id": 895}}, "task": {"id": 354, "owner": {"id": 941}, "assignee": {"id": 1041}}, "job": {"id": 355, "assignee": {"id": 1175}}, "organization": {"id": 1275}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 372, "owner": {"id": 13}, "assignee": {"id": 524}, "project": {"id": 305, "owner": {"id": 753}, "assignee": {"id": 819}}, "task": {"id": 340, "owner": {"id": 979}, "assignee": {"id": 1043}}, "job": {"id": 395, "assignee": {"id": 1109}}, "organization": {"id": 1263}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 97}, "assignee": {"id": 578}, "project": {"id": 370, "owner": {"id": 701}, "assignee": {"id": 850}}, "task": {"id": 395, "owner": {"id": 934}, "assignee": {"id": 1062}}, "job": {"id": 390, "assignee": {"id": 1103}}, "organization": {"id": 190}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 5}, "assignee": {"id": 579}, "project": {"id": 364, "owner": {"id": 783}, "assignee": {"id": 857}}, "task": {"id": 363, "owner": {"id": 957}, "assignee": {"id": 1041}}, "job": {"id": 335, "assignee": {"id": 1102}}, "organization": {"id": 127}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 354, "owner": {"id": 62}, "assignee": {"id": 555}, "project": {"id": 332, "owner": {"id": 768}, "assignee": {"id": 809}}, "task": {"id": 312, "owner": {"id": 900}, "assignee": {"id": 1064}}, "job": {"id": 312, "assignee": {"id": 1115}}, "organization": {"id": 1264}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 312, "owner": {"id": 48}, "assignee": {"id": 519}, "project": {"id": 368, "owner": {"id": 712}, "assignee": {"id": 871}}, "task": {"id": 328, "owner": {"id": 907}, "assignee": {"id": 1058}}, "job": {"id": 344, "assignee": {"id": 1185}}, "organization": {"id": 1280}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 56}, "assignee": {"id": 548}, "project": {"id": 371, "owner": {"id": 700}, "assignee": {"id": 852}}, "task": {"id": 337, "owner": {"id": 955}, "assignee": {"id": 1028}}, "job": {"id": 344, "assignee": {"id": 1101}}, "organization": {"id": 128}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 334, "owner": {"id": 6}, "assignee": {"id": 557}, "project": {"id": 360, "owner": {"id": 734}, "assignee": {"id": 870}}, "task": {"id": 334, "owner": {"id": 954}, "assignee": {"id": 1023}}, "job": {"id": 363, "assignee": {"id": 1179}}, "organization": {"id": 170}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 339, "owner": {"id": 0}, "assignee": {"id": 574}, "project": {"id": 326, "owner": {"id": 734}, "assignee": {"id": 807}}, "task": {"id": 356, "owner": {"id": 944}, "assignee": {"id": 1016}}, "job": {"id": 396, "assignee": {"id": 1187}}, "organization": {"id": 1290}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 319, "owner": {"id": 27}, "assignee": {"id": 530}, "project": {"id": 342, "owner": {"id": 795}, "assignee": {"id": 882}}, "task": {"id": 318, "owner": {"id": 971}, "assignee": {"id": 1049}}, "job": {"id": 324, "assignee": {"id": 1162}}, "organization": {"id": 1224}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "owner": {"id": 81}, "assignee": {"id": 516}, "project": {"id": 343, "owner": {"id": 745}, "assignee": {"id": 836}}, "task": {"id": 380, "owner": {"id": 980}, "assignee": {"id": 1092}}, "job": {"id": 308, "assignee": {"id": 1175}}, "organization": {"id": 161}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 320, "owner": {"id": 12}, "assignee": {"id": 547}, "project": {"id": 359, "owner": {"id": 764}, "assignee": {"id": 826}}, "task": {"id": 367, "owner": {"id": 960}, "assignee": {"id": 1007}}, "job": {"id": 369, "assignee": {"id": 1180}}, "organization": {"id": 123}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 26}, "assignee": {"id": 528}, "project": {"id": 329, "owner": {"id": 719}, "assignee": {"id": 853}}, "task": {"id": 302, "owner": {"id": 952}, "assignee": {"id": 1029}}, "job": {"id": 340, "assignee": {"id": 1105}}, "organization": {"id": 1220}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "owner": {"id": 90}, "assignee": {"id": 567}, "project": {"id": 364, "owner": {"id": 706}, "assignee": {"id": 854}}, "task": {"id": 350, "owner": {"id": 956}, "assignee": {"id": 1015}}, "job": {"id": 320, "assignee": {"id": 1135}}, "organization": {"id": 1297}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "owner": {"id": 6}, "assignee": {"id": 566}, "project": {"id": 357, "owner": {"id": 795}, "assignee": {"id": 803}}, "task": {"id": 365, "owner": {"id": 926}, "assignee": {"id": 1048}}, "job": {"id": 383, "assignee": {"id": 1134}}, "organization": {"id": 148}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "owner": {"id": 20}, "assignee": {"id": 543}, "project": {"id": 300, "owner": {"id": 703}, "assignee": {"id": 823}}, "task": {"id": 368, "owner": {"id": 976}, "assignee": {"id": 1081}}, "job": {"id": 341, "assignee": {"id": 1188}}, "organization": {"id": 193}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "owner": {"id": 79}, "assignee": {"id": 531}, "project": {"id": 319, "owner": {"id": 739}, "assignee": {"id": 885}}, "task": {"id": 367, "owner": {"id": 985}, "assignee": {"id": 1089}}, "job": {"id": 385, "assignee": {"id": 1105}}, "organization": {"id": 1244}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "owner": {"id": 93}, "assignee": {"id": 527}, "project": {"id": 373, "owner": {"id": 758}, "assignee": {"id": 823}}, "task": {"id": 371, "owner": {"id": 913}, "assignee": {"id": 1000}}, "job": {"id": 395, "assignee": {"id": 1180}}, "organization": {"id": 1223}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 75}, "assignee": {"id": 581}, "project": {"id": 361, "owner": {"id": 716}, "assignee": {"id": 843}}, "task": {"id": 388, "owner": {"id": 931}, "assignee": {"id": 1060}}, "job": {"id": 337, "assignee": {"id": 1165}}, "organization": {"id": 193}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 366, "owner": {"id": 23}, "assignee": {"id": 578}, "project": {"id": 337, "owner": {"id": 762}, "assignee": {"id": 879}}, "task": {"id": 308, "owner": {"id": 957}, "assignee": {"id": 1070}}, "job": {"id": 384, "assignee": {"id": 1149}}, "organization": {"id": 174}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 366, "owner": {"id": 24}, "assignee": {"id": 540}, "project": {"id": 395, "owner": {"id": 787}, "assignee": {"id": 863}}, "task": {"id": 340, "owner": {"id": 987}, "assignee": {"id": 1058}}, "job": {"id": 320, "assignee": {"id": 1147}}, "organization": {"id": 1255}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 92}, "assignee": {"id": 542}, "project": {"id": 312, "owner": {"id": 772}, "assignee": {"id": 847}}, "task": {"id": 397, "owner": {"id": 981}, "assignee": {"id": 1049}}, "job": {"id": 321, "assignee": {"id": 1198}}, "organization": {"id": 1210}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 327, "owner": {"id": 55}, "assignee": {"id": 501}, "project": {"id": 377, "owner": {"id": 790}, "assignee": {"id": 802}}, "task": {"id": 325, "owner": {"id": 903}, "assignee": {"id": 1072}}, "job": {"id": 326, "assignee": {"id": 1152}}, "organization": {"id": 186}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 395, "owner": {"id": 10}, "assignee": {"id": 525}, "project": {"id": 328, "owner": {"id": 754}, "assignee": {"id": 873}}, "task": {"id": 306, "owner": {"id": 965}, "assignee": {"id": 1062}}, "job": {"id": 341, "assignee": {"id": 1157}}, "organization": {"id": 121}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 62}, "assignee": {"id": 522}, "project": {"id": 388, "owner": {"id": 742}, "assignee": {"id": 826}}, "task": {"id": 359, "owner": {"id": 921}, "assignee": {"id": 1062}}, "job": {"id": 321, "assignee": {"id": 1197}}, "organization": {"id": 1293}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 68}, "assignee": {"id": 560}, "project": {"id": 326, "owner": {"id": 784}, "assignee": {"id": 876}}, "task": {"id": 338, "owner": {"id": 917}, "assignee": {"id": 1038}}, "job": {"id": 371, "assignee": {"id": 1145}}, "organization": {"id": 1281}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 310, "owner": {"id": 659}, "assignee": {"id": 77}, "project": {"id": 387, "owner": {"id": 776}, "assignee": {"id": 800}}, "task": {"id": 384, "owner": {"id": 986}, "assignee": {"id": 1099}}, "job": {"id": 361, "assignee": {"id": 1125}}, "organization": {"id": 115}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 386, "owner": {"id": 608}, "assignee": {"id": 51}, "project": {"id": 397, "owner": {"id": 787}, "assignee": {"id": 890}}, "task": {"id": 349, "owner": {"id": 904}, "assignee": {"id": 1071}}, "job": {"id": 346, "assignee": {"id": 1156}}, "organization": {"id": 141}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 392, "owner": {"id": 661}, "assignee": {"id": 13}, "project": {"id": 375, "owner": {"id": 700}, "assignee": {"id": 838}}, "task": {"id": 380, "owner": {"id": 943}, "assignee": {"id": 1017}}, "job": {"id": 383, "assignee": {"id": 1101}}, "organization": {"id": 1228}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 386, "owner": {"id": 673}, "assignee": {"id": 38}, "project": {"id": 394, "owner": {"id": 731}, "assignee": {"id": 839}}, "task": {"id": 389, "owner": {"id": 905}, "assignee": {"id": 1096}}, "job": {"id": 380, "assignee": {"id": 1119}}, "organization": {"id": 1269}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "owner": {"id": 676}, "assignee": {"id": 21}, "project": {"id": 304, "owner": {"id": 711}, "assignee": {"id": 866}}, "task": {"id": 387, "owner": {"id": 940}, "assignee": {"id": 1004}}, "job": {"id": 399, "assignee": {"id": 1142}}, "organization": {"id": 120}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 611}, "assignee": {"id": 69}, "project": {"id": 340, "owner": {"id": 787}, "assignee": {"id": 872}}, "task": {"id": 311, "owner": {"id": 912}, "assignee": {"id": 1006}}, "job": {"id": 366, "assignee": {"id": 1144}}, "organization": {"id": 170}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "owner": {"id": 661}, "assignee": {"id": 50}, "project": {"id": 360, "owner": {"id": 729}, "assignee": {"id": 857}}, "task": {"id": 309, "owner": {"id": 915}, "assignee": {"id": 1099}}, "job": {"id": 355, "assignee": {"id": 1117}}, "organization": {"id": 1237}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "owner": {"id": 600}, "assignee": {"id": 17}, "project": {"id": 308, "owner": {"id": 706}, "assignee": {"id": 833}}, "task": {"id": 316, "owner": {"id": 976}, "assignee": {"id": 1082}}, "job": {"id": 371, "assignee": {"id": 1161}}, "organization": {"id": 1203}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "owner": {"id": 606}, "assignee": {"id": 61}, "project": {"id": 362, "owner": {"id": 730}, "assignee": {"id": 805}}, "task": {"id": 369, "owner": {"id": 970}, "assignee": {"id": 1076}}, "job": {"id": 331, "assignee": {"id": 1110}}, "organization": {"id": 145}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 623}, "assignee": {"id": 70}, "project": {"id": 331, "owner": {"id": 758}, "assignee": {"id": 831}}, "task": {"id": 347, "owner": {"id": 989}, "assignee": {"id": 1004}}, "job": {"id": 319, "assignee": {"id": 1101}}, "organization": {"id": 113}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 657}, "assignee": {"id": 40}, "project": {"id": 325, "owner": {"id": 772}, "assignee": {"id": 869}}, "task": {"id": 315, "owner": {"id": 911}, "assignee": {"id": 1063}}, "job": {"id": 354, "assignee": {"id": 1169}}, "organization": {"id": 1291}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "owner": {"id": 646}, "assignee": {"id": 34}, "project": {"id": 364, "owner": {"id": 762}, "assignee": {"id": 814}}, "task": {"id": 303, "owner": {"id": 995}, "assignee": {"id": 1034}}, "job": {"id": 354, "assignee": {"id": 1124}}, "organization": {"id": 1236}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 396, "owner": {"id": 664}, "assignee": {"id": 33}, "project": {"id": 329, "owner": {"id": 731}, "assignee": {"id": 845}}, "task": {"id": 363, "owner": {"id": 975}, "assignee": {"id": 1039}}, "job": {"id": 308, "assignee": {"id": 1142}}, "organization": {"id": 146}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 312, "owner": {"id": 647}, "assignee": {"id": 15}, "project": {"id": 384, "owner": {"id": 707}, "assignee": {"id": 857}}, "task": {"id": 313, "owner": {"id": 911}, "assignee": {"id": 1005}}, "job": {"id": 311, "assignee": {"id": 1100}}, "organization": {"id": 147}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 378, "owner": {"id": 646}, "assignee": {"id": 42}, "project": {"id": 340, "owner": {"id": 781}, "assignee": {"id": 830}}, "task": {"id": 351, "owner": {"id": 924}, "assignee": {"id": 1054}}, "job": {"id": 317, "assignee": {"id": 1143}}, "organization": {"id": 1223}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 379, "owner": {"id": 679}, "assignee": {"id": 75}, "project": {"id": 358, "owner": {"id": 765}, "assignee": {"id": 890}}, "task": {"id": 347, "owner": {"id": 930}, "assignee": {"id": 1024}}, "job": {"id": 322, "assignee": {"id": 1179}}, "organization": {"id": 1211}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 667}, "assignee": {"id": 90}, "project": {"id": 394, "owner": {"id": 784}, "assignee": {"id": 811}}, "task": {"id": 355, "owner": {"id": 918}, "assignee": {"id": 1000}}, "job": {"id": 336, "assignee": {"id": 1160}}, "organization": {"id": 198}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 681}, "assignee": {"id": 22}, "project": {"id": 381, "owner": {"id": 790}, "assignee": {"id": 826}}, "task": {"id": 338, "owner": {"id": 990}, "assignee": {"id": 1022}}, "job": {"id": 302, "assignee": {"id": 1179}}, "organization": {"id": 169}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 391, "owner": {"id": 626}, "assignee": {"id": 80}, "project": {"id": 333, "owner": {"id": 712}, "assignee": {"id": 874}}, "task": {"id": 328, "owner": {"id": 977}, "assignee": {"id": 1018}}, "job": {"id": 375, "assignee": {"id": 1121}}, "organization": {"id": 1202}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 369, "owner": {"id": 693}, "assignee": {"id": 73}, "project": {"id": 363, "owner": {"id": 740}, "assignee": {"id": 864}}, "task": {"id": 308, "owner": {"id": 981}, "assignee": {"id": 1074}}, "job": {"id": 396, "assignee": {"id": 1169}}, "organization": {"id": 1252}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 81, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 318, "owner": {"id": 673}, "assignee": {"id": 81}, "project": {"id": 369, "owner": {"id": 763}, "assignee": {"id": 802}}, "task": {"id": 364, "owner": {"id": 916}, "assignee": {"id": 1064}}, "job": {"id": 338, "assignee": {"id": 1187}}, "organization": {"id": 114}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 678}, "assignee": {"id": 34}, "project": {"id": 346, "owner": {"id": 714}, "assignee": {"id": 813}}, "task": {"id": 323, "owner": {"id": 953}, "assignee": {"id": 1026}}, "job": {"id": 365, "assignee": {"id": 1169}}, "organization": {"id": 195}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 621}, "assignee": {"id": 3}, "project": {"id": 306, "owner": {"id": 775}, "assignee": {"id": 844}}, "task": {"id": 396, "owner": {"id": 959}, "assignee": {"id": 1017}}, "job": {"id": 301, "assignee": {"id": 1163}}, "organization": {"id": 1288}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 321, "owner": {"id": 635}, "assignee": {"id": 98}, "project": {"id": 327, "owner": {"id": 710}, "assignee": {"id": 832}}, "task": {"id": 369, "owner": {"id": 999}, "assignee": {"id": 1077}}, "job": {"id": 321, "assignee": {"id": 1141}}, "organization": {"id": 1283}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 671}, "assignee": {"id": 91}, "project": {"id": 345, "owner": {"id": 718}, "assignee": {"id": 846}}, "task": {"id": 366, "owner": {"id": 998}, "assignee": {"id": 1039}}, "job": {"id": 388, "assignee": {"id": 1166}}, "organization": {"id": 117}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "owner": {"id": 655}, "assignee": {"id": 97}, "project": {"id": 333, "owner": {"id": 766}, "assignee": {"id": 860}}, "task": {"id": 397, "owner": {"id": 947}, "assignee": {"id": 1096}}, "job": {"id": 348, "assignee": {"id": 1142}}, "organization": {"id": 137}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 694}, "assignee": {"id": 45}, "project": {"id": 303, "owner": {"id": 747}, "assignee": {"id": 830}}, "task": {"id": 336, "owner": {"id": 992}, "assignee": {"id": 1027}}, "job": {"id": 374, "assignee": {"id": 1173}}, "organization": {"id": 1270}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "owner": {"id": 651}, "assignee": {"id": 82}, "project": {"id": 347, "owner": {"id": 782}, "assignee": {"id": 855}}, "task": {"id": 355, "owner": {"id": 977}, "assignee": {"id": 1056}}, "job": {"id": 363, "assignee": {"id": 1107}}, "organization": {"id": 1222}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "owner": {"id": 662}, "assignee": {"id": 73}, "project": {"id": 394, "owner": {"id": 777}, "assignee": {"id": 874}}, "task": {"id": 383, "owner": {"id": 994}, "assignee": {"id": 1012}}, "job": {"id": 367, "assignee": {"id": 1177}}, "organization": {"id": 123}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 648}, "assignee": {"id": 87}, "project": {"id": 381, "owner": {"id": 710}, "assignee": {"id": 871}}, "task": {"id": 340, "owner": {"id": 911}, "assignee": {"id": 1010}}, "job": {"id": 396, "assignee": {"id": 1187}}, "organization": {"id": 186}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "owner": {"id": 604}, "assignee": {"id": 44}, "project": {"id": 391, "owner": {"id": 770}, "assignee": {"id": 864}}, "task": {"id": 330, "owner": {"id": 905}, "assignee": {"id": 1074}}, "job": {"id": 312, "assignee": {"id": 1142}}, "organization": {"id": 1203}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 663}, "assignee": {"id": 39}, "project": {"id": 392, "owner": {"id": 737}, "assignee": {"id": 810}}, "task": {"id": 319, "owner": {"id": 953}, "assignee": {"id": 1099}}, "job": {"id": 345, "assignee": {"id": 1177}}, "organization": {"id": 1239}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 384, "owner": {"id": 613}, "assignee": {"id": 48}, "project": {"id": 344, "owner": {"id": 752}, "assignee": {"id": 898}}, "task": {"id": 319, "owner": {"id": 971}, "assignee": {"id": 1041}}, "job": {"id": 395, "assignee": {"id": 1105}}, "organization": {"id": 178}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 668}, "assignee": {"id": 52}, "project": {"id": 377, "owner": {"id": 717}, "assignee": {"id": 854}}, "task": {"id": 316, "owner": {"id": 909}, "assignee": {"id": 1009}}, "job": {"id": 391, "assignee": {"id": 1153}}, "organization": {"id": 132}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 343, "owner": {"id": 633}, "assignee": {"id": 79}, "project": {"id": 385, "owner": {"id": 780}, "assignee": {"id": 884}}, "task": {"id": 302, "owner": {"id": 966}, "assignee": {"id": 1073}}, "job": {"id": 317, "assignee": {"id": 1135}}, "organization": {"id": 1270}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 318, "owner": {"id": 608}, "assignee": {"id": 83}, "project": {"id": 378, "owner": {"id": 771}, "assignee": {"id": 807}}, "task": {"id": 373, "owner": {"id": 988}, "assignee": {"id": 1047}}, "job": {"id": 313, "assignee": {"id": 1120}}, "organization": {"id": 1255}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 398, "owner": {"id": 658}, "assignee": {"id": 14}, "project": {"id": 357, "owner": {"id": 736}, "assignee": {"id": 879}}, "task": {"id": 360, "owner": {"id": 930}, "assignee": {"id": 1083}}, "job": {"id": 316, "assignee": {"id": 1133}}, "organization": {"id": 198}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 326, "owner": {"id": 660}, "assignee": {"id": 5}, "project": {"id": 398, "owner": {"id": 791}, "assignee": {"id": 883}}, "task": {"id": 300, "owner": {"id": 963}, "assignee": {"id": 1076}}, "job": {"id": 309, "assignee": {"id": 1166}}, "organization": {"id": 147}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 345, "owner": {"id": 610}, "assignee": {"id": 64}, "project": {"id": 349, "owner": {"id": 756}, "assignee": {"id": 849}}, "task": {"id": 311, "owner": {"id": 999}, "assignee": {"id": 1085}}, "job": {"id": 300, "assignee": {"id": 1179}}, "organization": {"id": 1227}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 686}, "assignee": {"id": 60}, "project": {"id": 314, "owner": {"id": 719}, "assignee": {"id": 874}}, "task": {"id": 349, "owner": {"id": 917}, "assignee": {"id": 1092}}, "job": {"id": 361, "assignee": {"id": 1112}}, "organization": {"id": 1250}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 365, "owner": {"id": 603}, "assignee": {"id": 37}, "project": {"id": 365, "owner": {"id": 740}, "assignee": {"id": 833}}, "task": {"id": 359, "owner": {"id": 935}, "assignee": {"id": 1002}}, "job": {"id": 338, "assignee": {"id": 1198}}, "organization": {"id": 108}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 324, "owner": {"id": 628}, "assignee": {"id": 89}, "project": {"id": 300, "owner": {"id": 716}, "assignee": {"id": 896}}, "task": {"id": 302, "owner": {"id": 972}, "assignee": {"id": 1023}}, "job": {"id": 325, "assignee": {"id": 1106}}, "organization": {"id": 121}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 678}, "assignee": {"id": 20}, "project": {"id": 305, "owner": {"id": 752}, "assignee": {"id": 829}}, "task": {"id": 337, "owner": {"id": 996}, "assignee": {"id": 1060}}, "job": {"id": 386, "assignee": {"id": 1128}}, "organization": {"id": 1282}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 357, "owner": {"id": 665}, "assignee": {"id": 6}, "project": {"id": 357, "owner": {"id": 781}, "assignee": {"id": 876}}, "task": {"id": 362, "owner": {"id": 968}, "assignee": {"id": 1083}}, "job": {"id": 342, "assignee": {"id": 1104}}, "organization": {"id": 1222}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "owner": {"id": 614}, "assignee": {"id": 21}, "project": {"id": 318, "owner": {"id": 753}, "assignee": {"id": 845}}, "task": {"id": 382, "owner": {"id": 992}, "assignee": {"id": 1093}}, "job": {"id": 310, "assignee": {"id": 1198}}, "organization": {"id": 154}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "owner": {"id": 610}, "assignee": {"id": 47}, "project": {"id": 302, "owner": {"id": 700}, "assignee": {"id": 869}}, "task": {"id": 321, "owner": {"id": 902}, "assignee": {"id": 1053}}, "job": {"id": 329, "assignee": {"id": 1164}}, "organization": {"id": 123}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "owner": {"id": 617}, "assignee": {"id": 29}, "project": {"id": 341, "owner": {"id": 713}, "assignee": {"id": 841}}, "task": {"id": 369, "owner": {"id": 926}, "assignee": {"id": 1025}}, "job": {"id": 387, "assignee": {"id": 1109}}, "organization": {"id": 1204}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "owner": {"id": 696}, "assignee": {"id": 60}, "project": {"id": 311, "owner": {"id": 759}, "assignee": {"id": 867}}, "task": {"id": 332, "owner": {"id": 956}, "assignee": {"id": 1009}}, "job": {"id": 303, "assignee": {"id": 1118}}, "organization": {"id": 1236}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "owner": {"id": 604}, "assignee": {"id": 53}, "project": {"id": 352, "owner": {"id": 710}, "assignee": {"id": 848}}, "task": {"id": 329, "owner": {"id": 947}, "assignee": {"id": 1050}}, "job": {"id": 376, "assignee": {"id": 1152}}, "organization": {"id": 121}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "owner": {"id": 627}, "assignee": {"id": 68}, "project": {"id": 361, "owner": {"id": 794}, "assignee": {"id": 828}}, "task": {"id": 392, "owner": {"id": 965}, "assignee": {"id": 1075}}, "job": {"id": 373, "assignee": {"id": 1136}}, "organization": {"id": 154}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "owner": {"id": 693}, "assignee": {"id": 48}, "project": {"id": 335, "owner": {"id": 772}, "assignee": {"id": 826}}, "task": {"id": 345, "owner": {"id": 911}, "assignee": {"id": 1032}}, "job": {"id": 304, "assignee": {"id": 1135}}, "organization": {"id": 1275}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 631}, "assignee": {"id": 45}, "project": {"id": 310, "owner": {"id": 756}, "assignee": {"id": 899}}, "task": {"id": 334, "owner": {"id": 998}, "assignee": {"id": 1033}}, "job": {"id": 379, "assignee": {"id": 1108}}, "organization": {"id": 1282}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 390, "owner": {"id": 606}, "assignee": {"id": 61}, "project": {"id": 343, "owner": {"id": 737}, "assignee": {"id": 886}}, "task": {"id": 377, "owner": {"id": 954}, "assignee": {"id": 1081}}, "job": {"id": 333, "assignee": {"id": 1127}}, "organization": {"id": 154}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 395, "owner": {"id": 698}, "assignee": {"id": 87}, "project": {"id": 379, "owner": {"id": 709}, "assignee": {"id": 814}}, "task": {"id": 309, "owner": {"id": 927}, "assignee": {"id": 1026}}, "job": {"id": 324, "assignee": {"id": 1129}}, "organization": {"id": 134}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 348, "owner": {"id": 628}, "assignee": {"id": 16}, "project": {"id": 364, "owner": {"id": 773}, "assignee": {"id": 890}}, "task": {"id": 303, "owner": {"id": 989}, "assignee": {"id": 1022}}, "job": {"id": 305, "assignee": {"id": 1143}}, "organization": {"id": 1215}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 368, "owner": {"id": 672}, "assignee": {"id": 59}, "project": {"id": 398, "owner": {"id": 710}, "assignee": {"id": 888}}, "task": {"id": 309, "owner": {"id": 941}, "assignee": {"id": 1004}}, "job": {"id": 344, "assignee": {"id": 1173}}, "organization": {"id": 1256}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 325, "owner": {"id": 632}, "assignee": {"id": 75}, "project": {"id": 355, "owner": {"id": 758}, "assignee": {"id": 805}}, "task": {"id": 372, "owner": {"id": 990}, "assignee": {"id": 1092}}, "job": {"id": 360, "assignee": {"id": 1186}}, "organization": {"id": 117}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 352, "owner": {"id": 680}, "assignee": {"id": 22}, "project": {"id": 324, "owner": {"id": 701}, "assignee": {"id": 823}}, "task": {"id": 328, "owner": {"id": 947}, "assignee": {"id": 1092}}, "job": {"id": 322, "assignee": {"id": 1177}}, "organization": {"id": 195}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 71, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 340, "owner": {"id": 637}, "assignee": {"id": 71}, "project": {"id": 373, "owner": {"id": 721}, "assignee": {"id": 817}}, "task": {"id": 327, "owner": {"id": 985}, "assignee": {"id": 1013}}, "job": {"id": 380, "assignee": {"id": 1155}}, "organization": {"id": 1240}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 347, "owner": {"id": 612}, "assignee": {"id": 34}, "project": {"id": 312, "owner": {"id": 725}, "assignee": {"id": 896}}, "task": {"id": 393, "owner": {"id": 967}, "assignee": {"id": 1078}}, "job": {"id": 332, "assignee": {"id": 1173}}, "organization": {"id": 1279}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 337, "owner": {"id": 649}, "assignee": {"id": 6}, "project": {"id": 376, "owner": {"id": 758}, "assignee": {"id": 834}}, "task": {"id": 351, "owner": {"id": 909}, "assignee": {"id": 1064}}, "job": {"id": 360, "assignee": {"id": 1179}}, "organization": {"id": 194}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 395, "owner": {"id": 629}, "assignee": {"id": 9}, "project": {"id": 368, "owner": {"id": 762}, "assignee": {"id": 816}}, "task": {"id": 352, "owner": {"id": 941}, "assignee": {"id": 1074}}, "job": {"id": 354, "assignee": {"id": 1119}}, "organization": {"id": 138}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 348, "owner": {"id": 660}, "assignee": {"id": 74}, "project": {"id": 396, "owner": {"id": 765}, "assignee": {"id": 840}}, "task": {"id": 330, "owner": {"id": 942}, "assignee": {"id": 1048}}, "job": {"id": 314, "assignee": {"id": 1170}}, "organization": {"id": 1214}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 362, "owner": {"id": 600}, "assignee": {"id": 21}, "project": {"id": 390, "owner": {"id": 732}, "assignee": {"id": 830}}, "task": {"id": 348, "owner": {"id": 956}, "assignee": {"id": 1015}}, "job": {"id": 362, "assignee": {"id": 1155}}, "organization": {"id": 1203}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 692}, "assignee": {"id": 40}, "project": {"id": 324, "owner": {"id": 716}, "assignee": {"id": 874}}, "task": {"id": 391, "owner": {"id": 904}, "assignee": {"id": 1034}}, "job": {"id": 358, "assignee": {"id": 1188}}, "organization": {"id": 119}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "owner": {"id": 642}, "assignee": {"id": 62}, "project": {"id": 395, "owner": {"id": 750}, "assignee": {"id": 841}}, "task": {"id": 389, "owner": {"id": 984}, "assignee": {"id": 1058}}, "job": {"id": 392, "assignee": {"id": 1178}}, "organization": {"id": 120}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "owner": {"id": 631}, "assignee": {"id": 35}, "project": {"id": 307, "owner": {"id": 707}, "assignee": {"id": 890}}, "task": {"id": 397, "owner": {"id": 918}, "assignee": {"id": 1038}}, "job": {"id": 320, "assignee": {"id": 1186}}, "organization": {"id": 1296}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "owner": {"id": 688}, "assignee": {"id": 72}, "project": {"id": 390, "owner": {"id": 792}, "assignee": {"id": 882}}, "task": {"id": 399, "owner": {"id": 944}, "assignee": {"id": 1093}}, "job": {"id": 335, "assignee": {"id": 1169}}, "organization": {"id": 1219}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "owner": {"id": 656}, "assignee": {"id": 33}, "project": {"id": 358, "owner": {"id": 790}, "assignee": {"id": 897}}, "task": {"id": 300, "owner": {"id": 949}, "assignee": {"id": 1097}}, "job": {"id": 304, "assignee": {"id": 1110}}, "organization": {"id": 166}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 616}, "assignee": {"id": 69}, "project": {"id": 334, "owner": {"id": 717}, "assignee": {"id": 871}}, "task": {"id": 344, "owner": {"id": 990}, "assignee": {"id": 1051}}, "job": {"id": 380, "assignee": {"id": 1132}}, "organization": {"id": 141}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "owner": {"id": 638}, "assignee": {"id": 95}, "project": {"id": 352, "owner": {"id": 712}, "assignee": {"id": 830}}, "task": {"id": 333, "owner": {"id": 957}, "assignee": {"id": 1097}}, "job": {"id": 309, "assignee": {"id": 1120}}, "organization": {"id": 1274}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "owner": {"id": 694}, "assignee": {"id": 15}, "project": {"id": 387, "owner": {"id": 715}, "assignee": {"id": 811}}, "task": {"id": 347, "owner": {"id": 958}, "assignee": {"id": 1075}}, "job": {"id": 380, "assignee": {"id": 1197}}, "organization": {"id": 1253}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 317, "owner": {"id": 600}, "assignee": {"id": 10}, "project": {"id": 341, "owner": {"id": 743}, "assignee": {"id": 856}}, "task": {"id": 357, "owner": {"id": 918}, "assignee": {"id": 1037}}, "job": {"id": 377, "assignee": {"id": 1103}}, "organization": {"id": 136}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 391, "owner": {"id": 600}, "assignee": {"id": 31}, "project": {"id": 349, "owner": {"id": 711}, "assignee": {"id": 825}}, "task": {"id": 330, "owner": {"id": 982}, "assignee": {"id": 1008}}, "job": {"id": 392, "assignee": {"id": 1131}}, "organization": {"id": 101}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 315, "owner": {"id": 663}, "assignee": {"id": 43}, "project": {"id": 327, "owner": {"id": 776}, "assignee": {"id": 845}}, "task": {"id": 366, "owner": {"id": 955}, "assignee": {"id": 1081}}, "job": {"id": 361, "assignee": {"id": 1172}}, "organization": {"id": 1240}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 300, "owner": {"id": 687}, "assignee": {"id": 95}, "project": {"id": 375, "owner": {"id": 783}, "assignee": {"id": 811}}, "task": {"id": 335, "owner": {"id": 922}, "assignee": {"id": 1099}}, "job": {"id": 314, "assignee": {"id": 1100}}, "organization": {"id": 1285}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 331, "owner": {"id": 662}, "assignee": {"id": 69}, "project": {"id": 388, "owner": {"id": 741}, "assignee": {"id": 805}}, "task": {"id": 360, "owner": {"id": 959}, "assignee": {"id": 1065}}, "job": {"id": 322, "assignee": {"id": 1187}}, "organization": {"id": 177}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 363, "owner": {"id": 622}, "assignee": {"id": 61}, "project": {"id": 366, "owner": {"id": 726}, "assignee": {"id": 858}}, "task": {"id": 366, "owner": {"id": 904}, "assignee": {"id": 1084}}, "job": {"id": 393, "assignee": {"id": 1112}}, "organization": {"id": 184}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 309, "owner": {"id": 645}, "assignee": {"id": 8}, "project": {"id": 360, "owner": {"id": 773}, "assignee": {"id": 849}}, "task": {"id": 326, "owner": {"id": 940}, "assignee": {"id": 1016}}, "job": {"id": 375, "assignee": {"id": 1172}}, "organization": {"id": 1257}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 322, "owner": {"id": 614}, "assignee": {"id": 8}, "project": {"id": 373, "owner": {"id": 734}, "assignee": {"id": 803}}, "task": {"id": 323, "owner": {"id": 901}, "assignee": {"id": 1030}}, "job": {"id": 390, "assignee": {"id": 1161}}, "organization": {"id": 1292}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 397, "owner": {"id": 661}, "assignee": {"id": 54}, "project": {"id": 317, "owner": {"id": 788}, "assignee": {"id": 866}}, "task": {"id": 393, "owner": {"id": 945}, "assignee": {"id": 1077}}, "job": {"id": 375, "assignee": {"id": 1135}}, "organization": {"id": 112}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 329, "owner": {"id": 634}, "assignee": {"id": 49}, "project": {"id": 336, "owner": {"id": 770}, "assignee": {"id": 811}}, "task": {"id": 352, "owner": {"id": 965}, "assignee": {"id": 1021}}, "job": {"id": 336, "assignee": {"id": 1190}}, "organization": {"id": 134}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 371, "owner": {"id": 648}, "assignee": {"id": 48}, "project": {"id": 319, "owner": {"id": 714}, "assignee": {"id": 847}}, "task": {"id": 366, "owner": {"id": 978}, "assignee": {"id": 1022}}, "job": {"id": 310, "assignee": {"id": 1153}}, "organization": {"id": 1278}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"id": 316, "owner": {"id": 644}, "assignee": {"id": 8}, "project": {"id": 346, "owner": {"id": 751}, "assignee": {"id": 840}}, "task": {"id": 362, "owner": {"id": 979}, "assignee": {"id": 1018}}, "job": {"id": 369, "assignee": {"id": 1103}}, "organization": {"id": 1215}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "owner": {"id": 648}, "assignee": {"id": 5}, "project": {"id": 327, "owner": {"id": 766}, "assignee": {"id": 859}}, "task": {"id": 360, "owner": {"id": 912}, "assignee": {"id": 1079}}, "job": {"id": 354, "assignee": {"id": 1121}}, "organization": {"id": 173}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "owner": {"id": 630}, "assignee": {"id": 36}, "project": {"id": 350, "owner": {"id": 721}, "assignee": {"id": 822}}, "task": {"id": 340, "owner": {"id": 950}, "assignee": {"id": 1049}}, "job": {"id": 317, "assignee": {"id": 1136}}, "organization": {"id": 157}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "owner": {"id": 681}, "assignee": {"id": 56}, "project": {"id": 399, "owner": {"id": 778}, "assignee": {"id": 892}}, "task": {"id": 358, "owner": {"id": 987}, "assignee": {"id": 1091}}, "job": {"id": 327, "assignee": {"id": 1152}}, "organization": {"id": 1238}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "owner": {"id": 643}, "assignee": {"id": 89}, "project": {"id": 318, "owner": {"id": 786}, "assignee": {"id": 867}}, "task": {"id": 341, "owner": {"id": 990}, "assignee": {"id": 1009}}, "job": {"id": 339, "assignee": {"id": 1115}}, "organization": {"id": 1260}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "owner": {"id": 626}, "assignee": {"id": 84}, "project": {"id": 346, "owner": {"id": 758}, "assignee": {"id": 806}}, "task": {"id": 396, "owner": {"id": 919}, "assignee": {"id": 1034}}, "job": {"id": 396, "assignee": {"id": 1189}}, "organization": {"id": 189}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "owner": {"id": 639}, "assignee": {"id": 12}, "project": {"id": 374, "owner": {"id": 780}, "assignee": {"id": 864}}, "task": {"id": 337, "owner": {"id": 975}, "assignee": {"id": 1017}}, "job": {"id": 318, "assignee": {"id": 1164}}, "organization": {"id": 195}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "owner": {"id": 692}, "assignee": {"id": 55}, "project": {"id": 380, "owner": {"id": 780}, "assignee": {"id": 876}}, "task": {"id": 358, "owner": {"id": 958}, "assignee": {"id": 1097}}, "job": {"id": 381, "assignee": {"id": 1130}}, "organization": {"id": 1270}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "owner": {"id": 670}, "assignee": {"id": 6}, "project": {"id": 314, "owner": {"id": 777}, "assignee": {"id": 813}}, "task": {"id": 386, "owner": {"id": 964}, "assignee": {"id": 1024}}, "job": {"id": 365, "assignee": {"id": 1108}}, "organization": {"id": 1206}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 302, "owner": {"id": 685}, "assignee": {"id": 72}, "project": {"id": 321, "owner": {"id": 709}, "assignee": {"id": 898}}, "task": {"id": 355, "owner": {"id": 984}, "assignee": {"id": 1058}}, "job": {"id": 310, "assignee": {"id": 1131}}, "organization": {"id": 189}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 347, "owner": {"id": 627}, "assignee": {"id": 17}, "project": {"id": 317, "owner": {"id": 721}, "assignee": {"id": 862}}, "task": {"id": 314, "owner": {"id": 924}, "assignee": {"id": 1063}}, "job": {"id": 331, "assignee": {"id": 1187}}, "organization": {"id": 182}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 336, "owner": {"id": 641}, "assignee": {"id": 93}, "project": {"id": 345, "owner": {"id": 767}, "assignee": {"id": 825}}, "task": {"id": 337, "owner": {"id": 900}, "assignee": {"id": 1098}}, "job": {"id": 398, "assignee": {"id": 1184}}, "organization": {"id": 1249}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 622}, "assignee": {"id": 15}, "project": {"id": 314, "owner": {"id": 717}, "assignee": {"id": 817}}, "task": {"id": 367, "owner": {"id": 983}, "assignee": {"id": 1074}}, "job": {"id": 360, "assignee": {"id": 1196}}, "organization": {"id": 1221}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 617}, "assignee": {"id": 58}, "project": {"id": 356, "owner": {"id": 721}, "assignee": {"id": 893}}, "task": {"id": 351, "owner": {"id": 943}, "assignee": {"id": 1072}}, "job": {"id": 390, "assignee": {"id": 1180}}, "organization": {"id": 170}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 388, "owner": {"id": 683}, "assignee": {"id": 90}, "project": {"id": 310, "owner": {"id": 753}, "assignee": {"id": 834}}, "task": {"id": 331, "owner": {"id": 972}, "assignee": {"id": 1007}}, "job": {"id": 361, "assignee": {"id": 1170}}, "organization": {"id": 115}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 315, "owner": {"id": 699}, "assignee": {"id": 62}, "project": {"id": 353, "owner": {"id": 792}, "assignee": {"id": 807}}, "task": {"id": 398, "owner": {"id": 979}, "assignee": {"id": 1062}}, "job": {"id": 333, "assignee": {"id": 1140}}, "organization": {"id": 1285}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 374, "owner": {"id": 602}, "assignee": {"id": 21}, "project": {"id": 373, "owner": {"id": 780}, "assignee": {"id": 847}}, "task": {"id": 381, "owner": {"id": 961}, "assignee": {"id": 1059}}, "job": {"id": 331, "assignee": {"id": 1100}}, "organization": {"id": 1291}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 318, "owner": {"id": 619}, "assignee": {"id": 530}, "project": {"id": 323, "owner": {"id": 748}, "assignee": {"id": 844}}, "task": {"id": 302, "owner": {"id": 909}, "assignee": {"id": 1047}}, "job": {"id": 340, "assignee": {"id": 1163}}, "organization": {"id": 199}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 644}, "assignee": {"id": 533}, "project": {"id": 309, "owner": {"id": 724}, "assignee": {"id": 883}}, "task": {"id": 352, "owner": {"id": 982}, "assignee": {"id": 1035}}, "job": {"id": 382, "assignee": {"id": 1108}}, "organization": {"id": 133}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"id": 370, "owner": {"id": 630}, "assignee": {"id": 527}, "project": {"id": 363, "owner": {"id": 706}, "assignee": {"id": 833}}, "task": {"id": 318, "owner": {"id": 964}, "assignee": {"id": 1012}}, "job": {"id": 341, "assignee": {"id": 1146}}, "organization": {"id": 1214}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 312, "owner": {"id": 632}, "assignee": {"id": 584}, "project": {"id": 313, "owner": {"id": 747}, "assignee": {"id": 889}}, "task": {"id": 358, "owner": {"id": 991}, "assignee": {"id": 1096}}, "job": {"id": 380, "assignee": {"id": 1114}}, "organization": {"id": 1208}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "owner": {"id": 633}, "assignee": {"id": 573}, "project": {"id": 306, "owner": {"id": 792}, "assignee": {"id": 821}}, "task": {"id": 394, "owner": {"id": 914}, "assignee": {"id": 1074}}, "job": {"id": 332, "assignee": {"id": 1151}}, "organization": {"id": 102}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "owner": {"id": 610}, "assignee": {"id": 587}, "project": {"id": 355, "owner": {"id": 780}, "assignee": {"id": 811}}, "task": {"id": 384, "owner": {"id": 991}, "assignee": {"id": 1075}}, "job": {"id": 344, "assignee": {"id": 1143}}, "organization": {"id": 136}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "owner": {"id": 606}, "assignee": {"id": 513}, "project": {"id": 353, "owner": {"id": 706}, "assignee": {"id": 839}}, "task": {"id": 369, "owner": {"id": 902}, "assignee": {"id": 1000}}, "job": {"id": 348, "assignee": {"id": 1142}}, "organization": {"id": 1267}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "owner": {"id": 693}, "assignee": {"id": 513}, "project": {"id": 357, "owner": {"id": 708}, "assignee": {"id": 886}}, "task": {"id": 362, "owner": {"id": 935}, "assignee": {"id": 1049}}, "job": {"id": 356, "assignee": {"id": 1121}}, "organization": {"id": 1213}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "owner": {"id": 615}, "assignee": {"id": 514}, "project": {"id": 352, "owner": {"id": 768}, "assignee": {"id": 861}}, "task": {"id": 320, "owner": {"id": 936}, "assignee": {"id": 1066}}, "job": {"id": 315, "assignee": {"id": 1132}}, "organization": {"id": 170}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 648}, "assignee": {"id": 509}, "project": {"id": 318, "owner": {"id": 760}, "assignee": {"id": 804}}, "task": {"id": 377, "owner": {"id": 971}, "assignee": {"id": 1022}}, "job": {"id": 323, "assignee": {"id": 1129}}, "organization": {"id": 183}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "owner": {"id": 677}, "assignee": {"id": 505}, "project": {"id": 310, "owner": {"id": 754}, "assignee": {"id": 859}}, "task": {"id": 358, "owner": {"id": 995}, "assignee": {"id": 1053}}, "job": {"id": 399, "assignee": {"id": 1101}}, "organization": {"id": 1241}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 662}, "assignee": {"id": 517}, "project": {"id": 380, "owner": {"id": 793}, "assignee": {"id": 857}}, "task": {"id": 363, "owner": {"id": 913}, "assignee": {"id": 1096}}, "job": {"id": 325, "assignee": {"id": 1151}}, "organization": {"id": 1252}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 325, "owner": {"id": 681}, "assignee": {"id": 586}, "project": {"id": 399, "owner": {"id": 730}, "assignee": {"id": 818}}, "task": {"id": 333, "owner": {"id": 965}, "assignee": {"id": 1033}}, "job": {"id": 345, "assignee": {"id": 1153}}, "organization": {"id": 147}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 328, "owner": {"id": 650}, "assignee": {"id": 553}, "project": {"id": 387, "owner": {"id": 778}, "assignee": {"id": 853}}, "task": {"id": 384, "owner": {"id": 925}, "assignee": {"id": 1019}}, "job": {"id": 344, "assignee": {"id": 1192}}, "organization": {"id": 129}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 343, "owner": {"id": 678}, "assignee": {"id": 586}, "project": {"id": 339, "owner": {"id": 753}, "assignee": {"id": 855}}, "task": {"id": 310, "owner": {"id": 971}, "assignee": {"id": 1009}}, "job": {"id": 342, "assignee": {"id": 1113}}, "organization": {"id": 1226}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 309, "owner": {"id": 637}, "assignee": {"id": 525}, "project": {"id": 360, "owner": {"id": 796}, "assignee": {"id": 835}}, "task": {"id": 394, "owner": {"id": 961}, "assignee": {"id": 1073}}, "job": {"id": 312, "assignee": {"id": 1157}}, "organization": {"id": 1237}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 609}, "assignee": {"id": 551}, "project": {"id": 319, "owner": {"id": 755}, "assignee": {"id": 874}}, "task": {"id": 365, "owner": {"id": 978}, "assignee": {"id": 1077}}, "job": {"id": 366, "assignee": {"id": 1153}}, "organization": {"id": 198}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 360, "owner": {"id": 616}, "assignee": {"id": 590}, "project": {"id": 357, "owner": {"id": 731}, "assignee": {"id": 875}}, "task": {"id": 378, "owner": {"id": 974}, "assignee": {"id": 1091}}, "job": {"id": 325, "assignee": {"id": 1194}}, "organization": {"id": 134}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 620}, "assignee": {"id": 563}, "project": {"id": 357, "owner": {"id": 732}, "assignee": {"id": 820}}, "task": {"id": 398, "owner": {"id": 972}, "assignee": {"id": 1081}}, "job": {"id": 378, "assignee": {"id": 1188}}, "organization": {"id": 1239}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 694}, "assignee": {"id": 568}, "project": {"id": 329, "owner": {"id": 764}, "assignee": {"id": 800}}, "task": {"id": 345, "owner": {"id": 955}, "assignee": {"id": 1058}}, "job": {"id": 381, "assignee": {"id": 1135}}, "organization": {"id": 1294}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 31, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 334, "owner": {"id": 638}, "assignee": {"id": 568}, "project": {"id": 312, "owner": {"id": 729}, "assignee": {"id": 874}}, "task": {"id": 356, "owner": {"id": 928}, "assignee": {"id": 1017}}, "job": {"id": 334, "assignee": {"id": 1160}}, "organization": {"id": 177}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 368, "owner": {"id": 677}, "assignee": {"id": 593}, "project": {"id": 365, "owner": {"id": 755}, "assignee": {"id": 801}}, "task": {"id": 335, "owner": {"id": 920}, "assignee": {"id": 1056}}, "job": {"id": 370, "assignee": {"id": 1180}}, "organization": {"id": 177}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 336, "owner": {"id": 672}, "assignee": {"id": 522}, "project": {"id": 357, "owner": {"id": 745}, "assignee": {"id": 872}}, "task": {"id": 360, "owner": {"id": 911}, "assignee": {"id": 1022}}, "job": {"id": 322, "assignee": {"id": 1125}}, "organization": {"id": 1269}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 328, "owner": {"id": 658}, "assignee": {"id": 532}, "project": {"id": 376, "owner": {"id": 782}, "assignee": {"id": 864}}, "task": {"id": 384, "owner": {"id": 965}, "assignee": {"id": 1030}}, "job": {"id": 369, "assignee": {"id": 1197}}, "organization": {"id": 1252}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "owner": {"id": 681}, "assignee": {"id": 589}, "project": {"id": 328, "owner": {"id": 734}, "assignee": {"id": 838}}, "task": {"id": 318, "owner": {"id": 975}, "assignee": {"id": 1081}}, "job": {"id": 334, "assignee": {"id": 1191}}, "organization": {"id": 150}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "owner": {"id": 670}, "assignee": {"id": 502}, "project": {"id": 390, "owner": {"id": 732}, "assignee": {"id": 840}}, "task": {"id": 357, "owner": {"id": 977}, "assignee": {"id": 1091}}, "job": {"id": 306, "assignee": {"id": 1192}}, "organization": {"id": 144}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "owner": {"id": 632}, "assignee": {"id": 587}, "project": {"id": 389, "owner": {"id": 751}, "assignee": {"id": 801}}, "task": {"id": 337, "owner": {"id": 917}, "assignee": {"id": 1073}}, "job": {"id": 382, "assignee": {"id": 1104}}, "organization": {"id": 1256}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "owner": {"id": 661}, "assignee": {"id": 556}, "project": {"id": 358, "owner": {"id": 769}, "assignee": {"id": 834}}, "task": {"id": 357, "owner": {"id": 995}, "assignee": {"id": 1094}}, "job": {"id": 360, "assignee": {"id": 1119}}, "organization": {"id": 1208}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 686}, "assignee": {"id": 571}, "project": {"id": 327, "owner": {"id": 702}, "assignee": {"id": 824}}, "task": {"id": 393, "owner": {"id": 914}, "assignee": {"id": 1077}}, "job": {"id": 347, "assignee": {"id": 1105}}, "organization": {"id": 120}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "owner": {"id": 620}, "assignee": {"id": 562}, "project": {"id": 322, "owner": {"id": 705}, "assignee": {"id": 823}}, "task": {"id": 331, "owner": {"id": 975}, "assignee": {"id": 1074}}, "job": {"id": 399, "assignee": {"id": 1171}}, "organization": {"id": 112}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 660}, "assignee": {"id": 588}, "project": {"id": 347, "owner": {"id": 792}, "assignee": {"id": 875}}, "task": {"id": 355, "owner": {"id": 993}, "assignee": {"id": 1037}}, "job": {"id": 352, "assignee": {"id": 1133}}, "organization": {"id": 1297}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "owner": {"id": 601}, "assignee": {"id": 592}, "project": {"id": 396, "owner": {"id": 722}, "assignee": {"id": 854}}, "task": {"id": 386, "owner": {"id": 961}, "assignee": {"id": 1008}}, "job": {"id": 387, "assignee": {"id": 1170}}, "organization": {"id": 1261}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 657}, "assignee": {"id": 553}, "project": {"id": 375, "owner": {"id": 753}, "assignee": {"id": 838}}, "task": {"id": 316, "owner": {"id": 930}, "assignee": {"id": 1039}}, "job": {"id": 326, "assignee": {"id": 1180}}, "organization": {"id": 104}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 611}, "assignee": {"id": 579}, "project": {"id": 317, "owner": {"id": 725}, "assignee": {"id": 815}}, "task": {"id": 301, "owner": {"id": 987}, "assignee": {"id": 1006}}, "job": {"id": 365, "assignee": {"id": 1126}}, "organization": {"id": 196}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 387, "owner": {"id": 640}, "assignee": {"id": 582}, "project": {"id": 383, "owner": {"id": 740}, "assignee": {"id": 838}}, "task": {"id": 395, "owner": {"id": 968}, "assignee": {"id": 1061}}, "job": {"id": 326, "assignee": {"id": 1136}}, "organization": {"id": 1204}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 377, "owner": {"id": 612}, "assignee": {"id": 517}, "project": {"id": 363, "owner": {"id": 745}, "assignee": {"id": 822}}, "task": {"id": 390, "owner": {"id": 971}, "assignee": {"id": 1063}}, "job": {"id": 322, "assignee": {"id": 1111}}, "organization": {"id": 1234}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 636}, "assignee": {"id": 529}, "project": {"id": 356, "owner": {"id": 739}, "assignee": {"id": 895}}, "task": {"id": 343, "owner": {"id": 925}, "assignee": {"id": 1014}}, "job": {"id": 301, "assignee": {"id": 1114}}, "organization": {"id": 118}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 312, "owner": {"id": 606}, "assignee": {"id": 512}, "project": {"id": 322, "owner": {"id": 709}, "assignee": {"id": 827}}, "task": {"id": 374, "owner": {"id": 980}, "assignee": {"id": 1062}}, "job": {"id": 332, "assignee": {"id": 1173}}, "organization": {"id": 173}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 657}, "assignee": {"id": 585}, "project": {"id": 360, "owner": {"id": 770}, "assignee": {"id": 853}}, "task": {"id": 373, "owner": {"id": 930}, "assignee": {"id": 1086}}, "job": {"id": 354, "assignee": {"id": 1113}}, "organization": {"id": 1294}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 690}, "assignee": {"id": 516}, "project": {"id": 338, "owner": {"id": 720}, "assignee": {"id": 833}}, "task": {"id": 384, "owner": {"id": 969}, "assignee": {"id": 1045}}, "job": {"id": 327, "assignee": {"id": 1173}}, "organization": {"id": 1266}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 369, "owner": {"id": 614}, "assignee": {"id": 573}, "project": {"id": 330, "owner": {"id": 737}, "assignee": {"id": 859}}, "task": {"id": 332, "owner": {"id": 986}, "assignee": {"id": 1026}}, "job": {"id": 320, "assignee": {"id": 1104}}, "organization": {"id": 110}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 306, "owner": {"id": 669}, "assignee": {"id": 585}, "project": {"id": 371, "owner": {"id": 772}, "assignee": {"id": 847}}, "task": {"id": 334, "owner": {"id": 904}, "assignee": {"id": 1078}}, "job": {"id": 355, "assignee": {"id": 1132}}, "organization": {"id": 186}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 362, "owner": {"id": 673}, "assignee": {"id": 547}, "project": {"id": 375, "owner": {"id": 750}, "assignee": {"id": 877}}, "task": {"id": 303, "owner": {"id": 987}, "assignee": {"id": 1089}}, "job": {"id": 352, "assignee": {"id": 1126}}, "organization": {"id": 1265}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 358, "owner": {"id": 623}, "assignee": {"id": 515}, "project": {"id": 332, "owner": {"id": 761}, "assignee": {"id": 876}}, "task": {"id": 322, "owner": {"id": 904}, "assignee": {"id": 1058}}, "job": {"id": 393, "assignee": {"id": 1188}}, "organization": {"id": 1298}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "owner": {"id": 612}, "assignee": {"id": 538}, "project": {"id": 367, "owner": {"id": 700}, "assignee": {"id": 846}}, "task": {"id": 334, "owner": {"id": 918}, "assignee": {"id": 1053}}, "job": {"id": 384, "assignee": {"id": 1157}}, "organization": {"id": 170}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 646}, "assignee": {"id": 581}, "project": {"id": 356, "owner": {"id": 760}, "assignee": {"id": 804}}, "task": {"id": 360, "owner": {"id": 988}, "assignee": {"id": 1089}}, "job": {"id": 396, "assignee": {"id": 1196}}, "organization": {"id": 153}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 634}, "assignee": {"id": 552}, "project": {"id": 353, "owner": {"id": 754}, "assignee": {"id": 849}}, "task": {"id": 338, "owner": {"id": 956}, "assignee": {"id": 1087}}, "job": {"id": 384, "assignee": {"id": 1107}}, "organization": {"id": 1201}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "owner": {"id": 613}, "assignee": {"id": 547}, "project": {"id": 301, "owner": {"id": 768}, "assignee": {"id": 898}}, "task": {"id": 380, "owner": {"id": 979}, "assignee": {"id": 1098}}, "job": {"id": 372, "assignee": {"id": 1161}}, "organization": {"id": 1252}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 678}, "assignee": {"id": 581}, "project": {"id": 356, "owner": {"id": 726}, "assignee": {"id": 870}}, "task": {"id": 352, "owner": {"id": 908}, "assignee": {"id": 1092}}, "job": {"id": 382, "assignee": {"id": 1166}}, "organization": {"id": 138}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 689}, "assignee": {"id": 521}, "project": {"id": 359, "owner": {"id": 755}, "assignee": {"id": 802}}, "task": {"id": 334, "owner": {"id": 937}, "assignee": {"id": 1030}}, "job": {"id": 337, "assignee": {"id": 1142}}, "organization": {"id": 162}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 683}, "assignee": {"id": 559}, "project": {"id": 304, "owner": {"id": 729}, "assignee": {"id": 887}}, "task": {"id": 392, "owner": {"id": 941}, "assignee": {"id": 1082}}, "job": {"id": 306, "assignee": {"id": 1116}}, "organization": {"id": 1213}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 621}, "assignee": {"id": 528}, "project": {"id": 359, "owner": {"id": 706}, "assignee": {"id": 878}}, "task": {"id": 317, "owner": {"id": 914}, "assignee": {"id": 1050}}, "job": {"id": 302, "assignee": {"id": 1124}}, "organization": {"id": 1270}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 389, "owner": {"id": 694}, "assignee": {"id": 592}, "project": {"id": 319, "owner": {"id": 736}, "assignee": {"id": 811}}, "task": {"id": 324, "owner": {"id": 998}, "assignee": {"id": 1098}}, "job": {"id": 321, "assignee": {"id": 1109}}, "organization": {"id": 114}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 698}, "assignee": {"id": 572}, "project": {"id": 379, "owner": {"id": 762}, "assignee": {"id": 838}}, "task": {"id": 389, "owner": {"id": 928}, "assignee": {"id": 1048}}, "job": {"id": 374, "assignee": {"id": 1118}}, "organization": {"id": 197}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 90, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 319, "owner": {"id": 687}, "assignee": {"id": 574}, "project": {"id": 384, "owner": {"id": 731}, "assignee": {"id": 811}}, "task": {"id": 382, "owner": {"id": 946}, "assignee": {"id": 1007}}, "job": {"id": 346, "assignee": {"id": 1130}}, "organization": {"id": 1268}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 318, "owner": {"id": 669}, "assignee": {"id": 577}, "project": {"id": 367, "owner": {"id": 714}, "assignee": {"id": 809}}, "task": {"id": 341, "owner": {"id": 983}, "assignee": {"id": 1011}}, "job": {"id": 342, "assignee": {"id": 1171}}, "organization": {"id": 1269}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 682}, "assignee": {"id": 541}, "project": {"id": 320, "owner": {"id": 797}, "assignee": {"id": 806}}, "task": {"id": 355, "owner": {"id": 989}, "assignee": {"id": 1009}}, "job": {"id": 361, "assignee": {"id": 1140}}, "organization": {"id": 131}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 689}, "assignee": {"id": 517}, "project": {"id": 350, "owner": {"id": 755}, "assignee": {"id": 880}}, "task": {"id": 342, "owner": {"id": 951}, "assignee": {"id": 1027}}, "job": {"id": 396, "assignee": {"id": 1172}}, "organization": {"id": 100}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 304, "owner": {"id": 679}, "assignee": {"id": 527}, "project": {"id": 361, "owner": {"id": 763}, "assignee": {"id": 847}}, "task": {"id": 343, "owner": {"id": 904}, "assignee": {"id": 1069}}, "job": {"id": 318, "assignee": {"id": 1199}}, "organization": {"id": 1219}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 320, "owner": {"id": 616}, "assignee": {"id": 592}, "project": {"id": 349, "owner": {"id": 752}, "assignee": {"id": 838}}, "task": {"id": 316, "owner": {"id": 971}, "assignee": {"id": 1040}}, "job": {"id": 366, "assignee": {"id": 1151}}, "organization": {"id": 1263}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 359, "owner": {"id": 637}, "assignee": {"id": 527}, "project": {"id": 362, "owner": {"id": 774}, "assignee": {"id": 856}}, "task": {"id": 304, "owner": {"id": 922}, "assignee": {"id": 1052}}, "job": {"id": 375, "assignee": {"id": 1180}}, "organization": {"id": 141}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 383, "owner": {"id": 642}, "assignee": {"id": 516}, "project": {"id": 306, "owner": {"id": 784}, "assignee": {"id": 814}}, "task": {"id": 355, "owner": {"id": 924}, "assignee": {"id": 1026}}, "job": {"id": 300, "assignee": {"id": 1110}}, "organization": {"id": 119}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 325, "owner": {"id": 664}, "assignee": {"id": 561}, "project": {"id": 307, "owner": {"id": 789}, "assignee": {"id": 859}}, "task": {"id": 333, "owner": {"id": 998}, "assignee": {"id": 1069}}, "job": {"id": 340, "assignee": {"id": 1175}}, "organization": {"id": 1258}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 393, "owner": {"id": 694}, "assignee": {"id": 581}, "project": {"id": 373, "owner": {"id": 748}, "assignee": {"id": 861}}, "task": {"id": 333, "owner": {"id": 983}, "assignee": {"id": 1043}}, "job": {"id": 385, "assignee": {"id": 1137}}, "organization": {"id": 1248}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 29, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "owner": {"id": 617}, "assignee": {"id": 561}, "project": {"id": 360, "owner": {"id": 727}, "assignee": {"id": 820}}, "task": {"id": 361, "owner": {"id": 933}, "assignee": {"id": 1056}}, "job": {"id": 332, "assignee": {"id": 1105}}, "organization": {"id": 133}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "owner": {"id": 667}, "assignee": {"id": 552}, "project": {"id": 339, "owner": {"id": 768}, "assignee": {"id": 863}}, "task": {"id": 302, "owner": {"id": 936}, "assignee": {"id": 1064}}, "job": {"id": 309, "assignee": {"id": 1132}}, "organization": {"id": 184}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "owner": {"id": 666}, "assignee": {"id": 583}, "project": {"id": 301, "owner": {"id": 709}, "assignee": {"id": 892}}, "task": {"id": 312, "owner": {"id": 978}, "assignee": {"id": 1073}}, "job": {"id": 368, "assignee": {"id": 1147}}, "organization": {"id": 1269}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "owner": {"id": 624}, "assignee": {"id": 581}, "project": {"id": 396, "owner": {"id": 792}, "assignee": {"id": 881}}, "task": {"id": 364, "owner": {"id": 925}, "assignee": {"id": 1070}}, "job": {"id": 340, "assignee": {"id": 1153}}, "organization": {"id": 1234}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 669}, "assignee": {"id": 550}, "project": {"id": 388, "owner": {"id": 774}, "assignee": {"id": 805}}, "task": {"id": 322, "owner": {"id": 956}, "assignee": {"id": 1081}}, "job": {"id": 312, "assignee": {"id": 1181}}, "organization": {"id": 147}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "owner": {"id": 636}, "assignee": {"id": 507}, "project": {"id": 320, "owner": {"id": 729}, "assignee": {"id": 819}}, "task": {"id": 362, "owner": {"id": 952}, "assignee": {"id": 1039}}, "job": {"id": 338, "assignee": {"id": 1124}}, "organization": {"id": 183}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 618}, "assignee": {"id": 514}, "project": {"id": 351, "owner": {"id": 781}, "assignee": {"id": 888}}, "task": {"id": 332, "owner": {"id": 918}, "assignee": {"id": 1003}}, "job": {"id": 362, "assignee": {"id": 1114}}, "organization": {"id": 1296}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "owner": {"id": 681}, "assignee": {"id": 567}, "project": {"id": 329, "owner": {"id": 789}, "assignee": {"id": 882}}, "task": {"id": 381, "owner": {"id": 974}, "assignee": {"id": 1059}}, "job": {"id": 301, "assignee": {"id": 1175}}, "organization": {"id": 1243}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 370, "owner": {"id": 637}, "assignee": {"id": 504}, "project": {"id": 392, "owner": {"id": 742}, "assignee": {"id": 800}}, "task": {"id": 385, "owner": {"id": 900}, "assignee": {"id": 1091}}, "job": {"id": 337, "assignee": {"id": 1160}}, "organization": {"id": 186}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 677}, "assignee": {"id": 552}, "project": {"id": 326, "owner": {"id": 790}, "assignee": {"id": 862}}, "task": {"id": 390, "owner": {"id": 905}, "assignee": {"id": 1025}}, "job": {"id": 353, "assignee": {"id": 1119}}, "organization": {"id": 183}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 670}, "assignee": {"id": 579}, "project": {"id": 371, "owner": {"id": 796}, "assignee": {"id": 869}}, "task": {"id": 311, "owner": {"id": 941}, "assignee": {"id": 1019}}, "job": {"id": 324, "assignee": {"id": 1184}}, "organization": {"id": 1273}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 302, "owner": {"id": 600}, "assignee": {"id": 539}, "project": {"id": 303, "owner": {"id": 787}, "assignee": {"id": 800}}, "task": {"id": 338, "owner": {"id": 965}, "assignee": {"id": 1037}}, "job": {"id": 377, "assignee": {"id": 1191}}, "organization": {"id": 1248}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"id": 370, "owner": {"id": 666}, "assignee": {"id": 595}, "project": {"id": 344, "owner": {"id": 797}, "assignee": {"id": 844}}, "task": {"id": 388, "owner": {"id": 907}, "assignee": {"id": 1039}}, "job": {"id": 325, "assignee": {"id": 1141}}, "organization": {"id": 141}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 637}, "assignee": {"id": 575}, "project": {"id": 358, "owner": {"id": 777}, "assignee": {"id": 870}}, "task": {"id": 311, "owner": {"id": 954}, "assignee": {"id": 1071}}, "job": {"id": 382, "assignee": {"id": 1138}}, "organization": {"id": 136}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 393, "owner": {"id": 677}, "assignee": {"id": 509}, "project": {"id": 309, "owner": {"id": 711}, "assignee": {"id": 804}}, "task": {"id": 382, "owner": {"id": 955}, "assignee": {"id": 1018}}, "job": {"id": 304, "assignee": {"id": 1185}}, "organization": {"id": 1278}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 618}, "assignee": {"id": 534}, "project": {"id": 341, "owner": {"id": 729}, "assignee": {"id": 818}}, "task": {"id": 310, "owner": {"id": 933}, "assignee": {"id": 1042}}, "job": {"id": 392, "assignee": {"id": 1195}}, "organization": {"id": 1276}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 660}, "assignee": {"id": 588}, "project": {"id": 355, "owner": {"id": 739}, "assignee": {"id": 811}}, "task": {"id": 341, "owner": {"id": 996}, "assignee": {"id": 1098}}, "job": {"id": 385, "assignee": {"id": 1167}}, "organization": {"id": 149}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 327, "owner": {"id": 666}, "assignee": {"id": 561}, "project": {"id": 358, "owner": {"id": 754}, "assignee": {"id": 845}}, "task": {"id": 320, "owner": {"id": 938}, "assignee": {"id": 1019}}, "job": {"id": 371, "assignee": {"id": 1199}}, "organization": {"id": 180}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 680}, "assignee": {"id": 532}, "project": {"id": 346, "owner": {"id": 750}, "assignee": {"id": 817}}, "task": {"id": 374, "owner": {"id": 998}, "assignee": {"id": 1083}}, "job": {"id": 387, "assignee": {"id": 1157}}, "organization": {"id": 1218}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 628}, "assignee": {"id": 548}, "project": {"id": 394, "owner": {"id": 733}, "assignee": {"id": 830}}, "task": {"id": 388, "owner": {"id": 946}, "assignee": {"id": 1078}}, "job": {"id": 333, "assignee": {"id": 1170}}, "organization": {"id": 1214}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 641}, "assignee": {"id": 522}, "project": {"id": 392, "owner": {"id": 704}, "assignee": {"id": 850}}, "task": {"id": 335, "owner": {"id": 906}, "assignee": {"id": 1029}}, "job": {"id": 361, "assignee": {"id": 1179}}, "organization": {"id": 152}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "owner": {"id": 692}, "assignee": {"id": 599}, "project": {"id": 337, "owner": {"id": 763}, "assignee": {"id": 814}}, "task": {"id": 320, "owner": {"id": 995}, "assignee": {"id": 1058}}, "job": {"id": 353, "assignee": {"id": 1144}}, "organization": {"id": 135}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "owner": {"id": 664}, "assignee": {"id": 581}, "project": {"id": 349, "owner": {"id": 797}, "assignee": {"id": 880}}, "task": {"id": 382, "owner": {"id": 903}, "assignee": {"id": 1044}}, "job": {"id": 348, "assignee": {"id": 1120}}, "organization": {"id": 1231}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "owner": {"id": 662}, "assignee": {"id": 596}, "project": {"id": 318, "owner": {"id": 717}, "assignee": {"id": 854}}, "task": {"id": 319, "owner": {"id": 962}, "assignee": {"id": 1090}}, "job": {"id": 323, "assignee": {"id": 1148}}, "organization": {"id": 1255}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "owner": {"id": 616}, "assignee": {"id": 592}, "project": {"id": 392, "owner": {"id": 705}, "assignee": {"id": 827}}, "task": {"id": 353, "owner": {"id": 979}, "assignee": {"id": 1060}}, "job": {"id": 331, "assignee": {"id": 1132}}, "organization": {"id": 193}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "owner": {"id": 628}, "assignee": {"id": 534}, "project": {"id": 333, "owner": {"id": 720}, "assignee": {"id": 811}}, "task": {"id": 327, "owner": {"id": 971}, "assignee": {"id": 1033}}, "job": {"id": 369, "assignee": {"id": 1142}}, "organization": {"id": 136}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 605}, "assignee": {"id": 581}, "project": {"id": 350, "owner": {"id": 719}, "assignee": {"id": 805}}, "task": {"id": 346, "owner": {"id": 910}, "assignee": {"id": 1078}}, "job": {"id": 307, "assignee": {"id": 1110}}, "organization": {"id": 1242}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 661}, "assignee": {"id": 501}, "project": {"id": 314, "owner": {"id": 732}, "assignee": {"id": 807}}, "task": {"id": 381, "owner": {"id": 933}, "assignee": {"id": 1012}}, "job": {"id": 319, "assignee": {"id": 1127}}, "organization": {"id": 1286}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 365, "owner": {"id": 676}, "assignee": {"id": 519}, "project": {"id": 389, "owner": {"id": 790}, "assignee": {"id": 897}}, "task": {"id": 371, "owner": {"id": 990}, "assignee": {"id": 1021}}, "job": {"id": 354, "assignee": {"id": 1152}}, "organization": {"id": 190}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 630}, "assignee": {"id": 546}, "project": {"id": 341, "owner": {"id": 772}, "assignee": {"id": 836}}, "task": {"id": 369, "owner": {"id": 947}, "assignee": {"id": 1092}}, "job": {"id": 364, "assignee": {"id": 1134}}, "organization": {"id": 148}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 318, "owner": {"id": 689}, "assignee": {"id": 515}, "project": {"id": 326, "owner": {"id": 706}, "assignee": {"id": 801}}, "task": {"id": 378, "owner": {"id": 950}, "assignee": {"id": 1017}}, "job": {"id": 385, "assignee": {"id": 1108}}, "organization": {"id": 1283}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 628}, "assignee": {"id": 583}, "project": {"id": 312, "owner": {"id": 771}, "assignee": {"id": 829}}, "task": {"id": 328, "owner": {"id": 905}, "assignee": {"id": 1018}}, "job": {"id": 304, "assignee": {"id": 1130}}, "organization": {"id": 1221}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 316, "owner": {"id": 680}, "assignee": {"id": 507}, "project": {"id": 337, "owner": {"id": 703}, "assignee": {"id": 892}}, "task": {"id": 349, "owner": {"id": 931}, "assignee": {"id": 1042}}, "job": {"id": 323, "assignee": {"id": 1179}}, "organization": {"id": 119}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 387, "owner": {"id": 640}, "assignee": {"id": 568}, "project": {"id": 307, "owner": {"id": 768}, "assignee": {"id": 861}}, "task": {"id": 378, "owner": {"id": 900}, "assignee": {"id": 1028}}, "job": {"id": 374, "assignee": {"id": 1120}}, "organization": {"id": 148}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 336, "owner": {"id": 663}, "assignee": {"id": 503}, "project": {"id": 364, "owner": {"id": 709}, "assignee": {"id": 817}}, "task": {"id": 348, "owner": {"id": 914}, "assignee": {"id": 1013}}, "job": {"id": 382, "assignee": {"id": 1124}}, "organization": {"id": 1286}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 615}, "assignee": {"id": 530}, "project": {"id": 382, "owner": {"id": 723}, "assignee": {"id": 834}}, "task": {"id": 341, "owner": {"id": 930}, "assignee": {"id": 1071}}, "job": {"id": 313, "assignee": {"id": 1188}}, "organization": {"id": 1281}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": null}, "resource": {"id": 361, "owner": {"id": 617}, "assignee": {"id": 569}, "project": {"id": 366, "owner": {"id": 1}, "assignee": {"id": 847}}, "task": {"id": 361, "owner": {"id": 921}, "assignee": {"id": 1013}}, "job": {"id": 372, "assignee": {"id": 1113}}, "organization": {"id": 1280}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": null}, "resource": {"id": 375, "owner": {"id": 651}, "assignee": {"id": 560}, "project": {"id": 308, "owner": {"id": 24}, "assignee": {"id": 856}}, "task": {"id": 306, "owner": {"id": 981}, "assignee": {"id": 1057}}, "job": {"id": 329, "assignee": {"id": 1188}}, "organization": {"id": 1262}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": null}, "resource": {"id": 375, "owner": {"id": 672}, "assignee": {"id": 561}, "project": {"id": 351, "owner": {"id": 21}, "assignee": {"id": 874}}, "task": {"id": 305, "owner": {"id": 937}, "assignee": {"id": 1002}}, "job": {"id": 356, "assignee": {"id": 1194}}, "organization": {"id": 1275}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": null}, "resource": {"id": 353, "owner": {"id": 680}, "assignee": {"id": 526}, "project": {"id": 339, "owner": {"id": 89}, "assignee": {"id": 880}}, "task": {"id": 357, "owner": {"id": 954}, "assignee": {"id": 1026}}, "job": {"id": 344, "assignee": {"id": 1129}}, "organization": {"id": 1297}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": null}, "resource": {"id": 378, "owner": {"id": 627}, "assignee": {"id": 517}, "project": {"id": 395, "owner": {"id": 80}, "assignee": {"id": 884}}, "task": {"id": 321, "owner": {"id": 987}, "assignee": {"id": 1018}}, "job": {"id": 371, "assignee": {"id": 1119}}, "organization": {"id": 1297}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": null}, "resource": {"id": 306, "owner": {"id": 602}, "assignee": {"id": 564}, "project": {"id": 366, "owner": {"id": 703}, "assignee": {"id": 11}}, "task": {"id": 386, "owner": {"id": 990}, "assignee": {"id": 1052}}, "job": {"id": 312, "assignee": {"id": 1117}}, "organization": {"id": 1208}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": null}, "resource": {"id": 312, "owner": {"id": 653}, "assignee": {"id": 562}, "project": {"id": 338, "owner": {"id": 703}, "assignee": {"id": 85}}, "task": {"id": 348, "owner": {"id": 931}, "assignee": {"id": 1064}}, "job": {"id": 311, "assignee": {"id": 1187}}, "organization": {"id": 1224}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": null}, "resource": {"id": 331, "owner": {"id": 628}, "assignee": {"id": 539}, "project": {"id": 341, "owner": {"id": 796}, "assignee": {"id": 98}}, "task": {"id": 348, "owner": {"id": 990}, "assignee": {"id": 1016}}, "job": {"id": 324, "assignee": {"id": 1129}}, "organization": {"id": 1288}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": null}, "resource": {"id": 320, "owner": {"id": 698}, "assignee": {"id": 556}, "project": {"id": 330, "owner": {"id": 780}, "assignee": {"id": 60}}, "task": {"id": 344, "owner": {"id": 957}, "assignee": {"id": 1078}}, "job": {"id": 363, "assignee": {"id": 1110}}, "organization": {"id": 1273}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": null}, "resource": {"id": 369, "owner": {"id": 664}, "assignee": {"id": 560}, "project": {"id": 343, "owner": {"id": 774}, "assignee": {"id": 0}}, "task": {"id": 309, "owner": {"id": 992}, "assignee": {"id": 1050}}, "job": {"id": 373, "assignee": {"id": 1174}}, "organization": {"id": 1237}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": null}, "resource": {"id": 347, "owner": {"id": 684}, "assignee": {"id": 577}, "project": {"id": 358, "owner": {"id": 713}, "assignee": {"id": 830}}, "task": {"id": 364, "owner": {"id": 28}, "assignee": {"id": 1009}}, "job": {"id": 339, "assignee": {"id": 1165}}, "organization": {"id": 1202}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": null}, "resource": {"id": 386, "owner": {"id": 662}, "assignee": {"id": 509}, "project": {"id": 378, "owner": {"id": 750}, "assignee": {"id": 838}}, "task": {"id": 378, "owner": {"id": 63}, "assignee": {"id": 1038}}, "job": {"id": 352, "assignee": {"id": 1102}}, "organization": {"id": 1266}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": null}, "resource": {"id": 393, "owner": {"id": 653}, "assignee": {"id": 591}, "project": {"id": 359, "owner": {"id": 725}, "assignee": {"id": 852}}, "task": {"id": 337, "owner": {"id": 27}, "assignee": {"id": 1059}}, "job": {"id": 347, "assignee": {"id": 1117}}, "organization": {"id": 1229}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": null}, "resource": {"id": 307, "owner": {"id": 657}, "assignee": {"id": 582}, "project": {"id": 375, "owner": {"id": 761}, "assignee": {"id": 837}}, "task": {"id": 350, "owner": {"id": 44}, "assignee": {"id": 1010}}, "job": {"id": 325, "assignee": {"id": 1171}}, "organization": {"id": 1222}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": null}, "resource": {"id": 390, "owner": {"id": 694}, "assignee": {"id": 524}, "project": {"id": 389, "owner": {"id": 789}, "assignee": {"id": 891}}, "task": {"id": 383, "owner": {"id": 89}, "assignee": {"id": 1044}}, "job": {"id": 388, "assignee": {"id": 1163}}, "organization": {"id": 1212}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": null}, "resource": {"id": 321, "owner": {"id": 694}, "assignee": {"id": 525}, "project": {"id": 372, "owner": {"id": 717}, "assignee": {"id": 872}}, "task": {"id": 366, "owner": {"id": 3}, "assignee": {"id": 1004}}, "job": {"id": 312, "assignee": {"id": 1189}}, "organization": {"id": 1242}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": null}, "resource": {"id": 395, "owner": {"id": 646}, "assignee": {"id": 552}, "project": {"id": 357, "owner": {"id": 766}, "assignee": {"id": 867}}, "task": {"id": 394, "owner": {"id": 41}, "assignee": {"id": 1082}}, "job": {"id": 317, "assignee": {"id": 1138}}, "organization": {"id": 1267}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": null}, "resource": {"id": 355, "owner": {"id": 670}, "assignee": {"id": 518}, "project": {"id": 346, "owner": {"id": 779}, "assignee": {"id": 810}}, "task": {"id": 308, "owner": {"id": 42}, "assignee": {"id": 1068}}, "job": {"id": 387, "assignee": {"id": 1182}}, "organization": {"id": 1287}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": null}, "resource": {"id": 366, "owner": {"id": 680}, "assignee": {"id": 519}, "project": {"id": 380, "owner": {"id": 791}, "assignee": {"id": 840}}, "task": {"id": 315, "owner": {"id": 80}, "assignee": {"id": 1091}}, "job": {"id": 373, "assignee": {"id": 1121}}, "organization": {"id": 1292}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": null}, "resource": {"id": 320, "owner": {"id": 635}, "assignee": {"id": 548}, "project": {"id": 378, "owner": {"id": 731}, "assignee": {"id": 835}}, "task": {"id": 384, "owner": {"id": 37}, "assignee": {"id": 1076}}, "job": {"id": 315, "assignee": {"id": 1156}}, "organization": {"id": 1291}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": null}, "resource": {"id": 365, "owner": {"id": 613}, "assignee": {"id": 566}, "project": {"id": 315, "owner": {"id": 790}, "assignee": {"id": 824}}, "task": {"id": 385, "owner": {"id": 975}, "assignee": {"id": 8}}, "job": {"id": 389, "assignee": {"id": 1175}}, "organization": {"id": 1273}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": null}, "resource": {"id": 310, "owner": {"id": 646}, "assignee": {"id": 518}, "project": {"id": 385, "owner": {"id": 749}, "assignee": {"id": 875}}, "task": {"id": 388, "owner": {"id": 912}, "assignee": {"id": 53}}, "job": {"id": 372, "assignee": {"id": 1179}}, "organization": {"id": 1223}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": null}, "resource": {"id": 395, "owner": {"id": 637}, "assignee": {"id": 548}, "project": {"id": 314, "owner": {"id": 703}, "assignee": {"id": 871}}, "task": {"id": 379, "owner": {"id": 919}, "assignee": {"id": 66}}, "job": {"id": 325, "assignee": {"id": 1157}}, "organization": {"id": 1253}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": null}, "resource": {"id": 350, "owner": {"id": 671}, "assignee": {"id": 522}, "project": {"id": 340, "owner": {"id": 778}, "assignee": {"id": 803}}, "task": {"id": 332, "owner": {"id": 959}, "assignee": {"id": 74}}, "job": {"id": 397, "assignee": {"id": 1181}}, "organization": {"id": 1211}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": null}, "resource": {"id": 350, "owner": {"id": 608}, "assignee": {"id": 565}, "project": {"id": 393, "owner": {"id": 703}, "assignee": {"id": 845}}, "task": {"id": 375, "owner": {"id": 946}, "assignee": {"id": 62}}, "job": {"id": 331, "assignee": {"id": 1158}}, "organization": {"id": 1224}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": null}, "resource": {"id": 358, "owner": {"id": 631}, "assignee": {"id": 516}, "project": {"id": 343, "owner": {"id": 713}, "assignee": {"id": 821}}, "task": {"id": 387, "owner": {"id": 984}, "assignee": {"id": 5}}, "job": {"id": 349, "assignee": {"id": 1114}}, "organization": {"id": 1292}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": null}, "resource": {"id": 377, "owner": {"id": 641}, "assignee": {"id": 528}, "project": {"id": 336, "owner": {"id": 776}, "assignee": {"id": 840}}, "task": {"id": 349, "owner": {"id": 952}, "assignee": {"id": 0}}, "job": {"id": 342, "assignee": {"id": 1148}}, "organization": {"id": 1230}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": null}, "resource": {"id": 322, "owner": {"id": 660}, "assignee": {"id": 537}, "project": {"id": 337, "owner": {"id": 765}, "assignee": {"id": 884}}, "task": {"id": 324, "owner": {"id": 935}, "assignee": {"id": 19}}, "job": {"id": 311, "assignee": {"id": 1177}}, "organization": {"id": 1247}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": null}, "resource": {"id": 348, "owner": {"id": 666}, "assignee": {"id": 536}, "project": {"id": 388, "owner": {"id": 779}, "assignee": {"id": 840}}, "task": {"id": 352, "owner": {"id": 928}, "assignee": {"id": 53}}, "job": {"id": 394, "assignee": {"id": 1159}}, "organization": {"id": 1270}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": null}, "resource": {"id": 339, "owner": {"id": 696}, "assignee": {"id": 560}, "project": {"id": 358, "owner": {"id": 775}, "assignee": {"id": 893}}, "task": {"id": 360, "owner": {"id": 927}, "assignee": {"id": 3}}, "job": {"id": 360, "assignee": {"id": 1133}}, "organization": {"id": 1263}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": null}, "resource": {"id": 366, "owner": {"id": 620}, "assignee": {"id": 556}, "project": {"id": 392, "owner": {"id": 730}, "assignee": {"id": 827}}, "task": {"id": 378, "owner": {"id": 914}, "assignee": {"id": 1058}}, "job": {"id": 306, "assignee": {"id": 56}}, "organization": {"id": 1243}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": null}, "resource": {"id": 343, "owner": {"id": 612}, "assignee": {"id": 561}, "project": {"id": 319, "owner": {"id": 774}, "assignee": {"id": 875}}, "task": {"id": 306, "owner": {"id": 930}, "assignee": {"id": 1077}}, "job": {"id": 364, "assignee": {"id": 11}}, "organization": {"id": 1213}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": null}, "resource": {"id": 335, "owner": {"id": 644}, "assignee": {"id": 574}, "project": {"id": 398, "owner": {"id": 785}, "assignee": {"id": 856}}, "task": {"id": 327, "owner": {"id": 998}, "assignee": {"id": 1002}}, "job": {"id": 309, "assignee": {"id": 90}}, "organization": {"id": 1258}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": null}, "resource": {"id": 337, "owner": {"id": 658}, "assignee": {"id": 573}, "project": {"id": 388, "owner": {"id": 714}, "assignee": {"id": 860}}, "task": {"id": 353, "owner": {"id": 939}, "assignee": {"id": 1094}}, "job": {"id": 350, "assignee": {"id": 60}}, "organization": {"id": 1287}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": null}, "resource": {"id": 337, "owner": {"id": 610}, "assignee": {"id": 517}, "project": {"id": 386, "owner": {"id": 773}, "assignee": {"id": 877}}, "task": {"id": 360, "owner": {"id": 994}, "assignee": {"id": 1041}}, "job": {"id": 302, "assignee": {"id": 94}}, "organization": {"id": 1286}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": null}, "resource": {"id": 321, "owner": {"id": 649}, "assignee": {"id": 550}, "project": {"id": 379, "owner": {"id": 778}, "assignee": {"id": 856}}, "task": {"id": 339, "owner": {"id": 991}, "assignee": {"id": 1083}}, "job": {"id": 396, "assignee": {"id": 78}}, "organization": {"id": 1237}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": null}, "resource": {"id": 319, "owner": {"id": 634}, "assignee": {"id": 527}, "project": {"id": 378, "owner": {"id": 768}, "assignee": {"id": 846}}, "task": {"id": 368, "owner": {"id": 976}, "assignee": {"id": 1050}}, "job": {"id": 351, "assignee": {"id": 56}}, "organization": {"id": 1236}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": null}, "resource": {"id": 389, "owner": {"id": 641}, "assignee": {"id": 513}, "project": {"id": 326, "owner": {"id": 760}, "assignee": {"id": 835}}, "task": {"id": 383, "owner": {"id": 905}, "assignee": {"id": 1009}}, "job": {"id": 368, "assignee": {"id": 54}}, "organization": {"id": 1201}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": null}, "resource": {"id": 329, "owner": {"id": 647}, "assignee": {"id": 536}, "project": {"id": 310, "owner": {"id": 714}, "assignee": {"id": 869}}, "task": {"id": 337, "owner": {"id": 943}, "assignee": {"id": 1095}}, "job": {"id": 391, "assignee": {"id": 35}}, "organization": {"id": 1270}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": null}, "resource": {"id": 319, "owner": {"id": 643}, "assignee": {"id": 564}, "project": {"id": 373, "owner": {"id": 704}, "assignee": {"id": 894}}, "task": {"id": 366, "owner": {"id": 958}, "assignee": {"id": 1063}}, "job": {"id": 355, "assignee": {"id": 12}}, "organization": {"id": 1250}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": null}, "resource": {"id": 316, "owner": {"id": 47}, "assignee": {"id": 561}, "project": {"id": 374, "owner": {"id": 700}, "assignee": {"id": 889}}, "task": {"id": 350, "owner": {"id": 965}, "assignee": {"id": 1019}}, "job": {"id": 333, "assignee": {"id": 1129}}, "organization": {"id": 1221}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": null}, "resource": {"id": 381, "owner": {"id": 65}, "assignee": {"id": 523}, "project": {"id": 341, "owner": {"id": 739}, "assignee": {"id": 872}}, "task": {"id": 348, "owner": {"id": 952}, "assignee": {"id": 1037}}, "job": {"id": 348, "assignee": {"id": 1193}}, "organization": {"id": 1256}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": null}, "resource": {"id": 369, "owner": {"id": 39}, "assignee": {"id": 521}, "project": {"id": 396, "owner": {"id": 729}, "assignee": {"id": 833}}, "task": {"id": 330, "owner": {"id": 942}, "assignee": {"id": 1032}}, "job": {"id": 338, "assignee": {"id": 1190}}, "organization": {"id": 1289}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": null}, "resource": {"id": 393, "owner": {"id": 74}, "assignee": {"id": 551}, "project": {"id": 387, "owner": {"id": 776}, "assignee": {"id": 802}}, "task": {"id": 303, "owner": {"id": 912}, "assignee": {"id": 1034}}, "job": {"id": 342, "assignee": {"id": 1157}}, "organization": {"id": 1221}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": null}, "resource": {"id": 338, "owner": {"id": 79}, "assignee": {"id": 536}, "project": {"id": 311, "owner": {"id": 781}, "assignee": {"id": 815}}, "task": {"id": 336, "owner": {"id": 945}, "assignee": {"id": 1038}}, "job": {"id": 315, "assignee": {"id": 1182}}, "organization": {"id": 1227}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": null}, "resource": {"id": 363, "owner": {"id": 91}, "assignee": {"id": 522}, "project": {"id": 344, "owner": {"id": 749}, "assignee": {"id": 811}}, "task": {"id": 386, "owner": {"id": 956}, "assignee": {"id": 1003}}, "job": {"id": 386, "assignee": {"id": 1149}}, "organization": {"id": 1200}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": null}, "resource": {"id": 325, "owner": {"id": 33}, "assignee": {"id": 503}, "project": {"id": 304, "owner": {"id": 741}, "assignee": {"id": 840}}, "task": {"id": 341, "owner": {"id": 923}, "assignee": {"id": 1027}}, "job": {"id": 307, "assignee": {"id": 1120}}, "organization": {"id": 1219}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": null}, "resource": {"id": 369, "owner": {"id": 89}, "assignee": {"id": 590}, "project": {"id": 385, "owner": {"id": 787}, "assignee": {"id": 880}}, "task": {"id": 347, "owner": {"id": 956}, "assignee": {"id": 1008}}, "job": {"id": 397, "assignee": {"id": 1177}}, "organization": {"id": 1204}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": null}, "resource": {"id": 386, "owner": {"id": 40}, "assignee": {"id": 523}, "project": {"id": 334, "owner": {"id": 766}, "assignee": {"id": 861}}, "task": {"id": 331, "owner": {"id": 925}, "assignee": {"id": 1025}}, "job": {"id": 303, "assignee": {"id": 1112}}, "organization": {"id": 1253}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": null}, "resource": {"id": 343, "owner": {"id": 38}, "assignee": {"id": 513}, "project": {"id": 320, "owner": {"id": 720}, "assignee": {"id": 818}}, "task": {"id": 375, "owner": {"id": 946}, "assignee": {"id": 1031}}, "job": {"id": 307, "assignee": {"id": 1103}}, "organization": {"id": 1256}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": null}, "resource": {"id": 325, "owner": {"id": 627}, "assignee": {"id": 10}, "project": {"id": 344, "owner": {"id": 703}, "assignee": {"id": 801}}, "task": {"id": 360, "owner": {"id": 939}, "assignee": {"id": 1005}}, "job": {"id": 390, "assignee": {"id": 1166}}, "organization": {"id": 1212}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": null}, "resource": {"id": 320, "owner": {"id": 637}, "assignee": {"id": 60}, "project": {"id": 368, "owner": {"id": 737}, "assignee": {"id": 837}}, "task": {"id": 327, "owner": {"id": 910}, "assignee": {"id": 1042}}, "job": {"id": 311, "assignee": {"id": 1102}}, "organization": {"id": 1298}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": null}, "resource": {"id": 327, "owner": {"id": 647}, "assignee": {"id": 63}, "project": {"id": 337, "owner": {"id": 767}, "assignee": {"id": 854}}, "task": {"id": 345, "owner": {"id": 937}, "assignee": {"id": 1096}}, "job": {"id": 356, "assignee": {"id": 1178}}, "organization": {"id": 1269}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": null}, "resource": {"id": 314, "owner": {"id": 668}, "assignee": {"id": 6}, "project": {"id": 359, "owner": {"id": 761}, "assignee": {"id": 855}}, "task": {"id": 372, "owner": {"id": 992}, "assignee": {"id": 1032}}, "job": {"id": 360, "assignee": {"id": 1115}}, "organization": {"id": 1248}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": null}, "resource": {"id": 318, "owner": {"id": 643}, "assignee": {"id": 96}, "project": {"id": 386, "owner": {"id": 702}, "assignee": {"id": 835}}, "task": {"id": 354, "owner": {"id": 999}, "assignee": {"id": 1006}}, "job": {"id": 365, "assignee": {"id": 1121}}, "organization": {"id": 1289}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": null}, "resource": {"id": 321, "owner": {"id": 663}, "assignee": {"id": 55}, "project": {"id": 380, "owner": {"id": 746}, "assignee": {"id": 874}}, "task": {"id": 398, "owner": {"id": 984}, "assignee": {"id": 1062}}, "job": {"id": 330, "assignee": {"id": 1183}}, "organization": {"id": 1216}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": null}, "resource": {"id": 368, "owner": {"id": 667}, "assignee": {"id": 37}, "project": {"id": 375, "owner": {"id": 780}, "assignee": {"id": 854}}, "task": {"id": 352, "owner": {"id": 973}, "assignee": {"id": 1063}}, "job": {"id": 325, "assignee": {"id": 1171}}, "organization": {"id": 1234}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": null}, "resource": {"id": 365, "owner": {"id": 659}, "assignee": {"id": 61}, "project": {"id": 308, "owner": {"id": 707}, "assignee": {"id": 842}}, "task": {"id": 324, "owner": {"id": 974}, "assignee": {"id": 1076}}, "job": {"id": 388, "assignee": {"id": 1166}}, "organization": {"id": 1232}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": null}, "resource": {"id": 308, "owner": {"id": 619}, "assignee": {"id": 46}, "project": {"id": 336, "owner": {"id": 721}, "assignee": {"id": 861}}, "task": {"id": 307, "owner": {"id": 922}, "assignee": {"id": 1008}}, "job": {"id": 316, "assignee": {"id": 1126}}, "organization": {"id": 1212}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": null}, "resource": {"id": 384, "owner": {"id": 618}, "assignee": {"id": 85}, "project": {"id": 344, "owner": {"id": 782}, "assignee": {"id": 810}}, "task": {"id": 336, "owner": {"id": 959}, "assignee": {"id": 1037}}, "job": {"id": 302, "assignee": {"id": 1178}}, "organization": {"id": 1233}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": null}, "resource": {"id": 350, "owner": {"id": 619}, "assignee": {"id": 591}, "project": {"id": 362, "owner": {"id": 722}, "assignee": {"id": 875}}, "task": {"id": 319, "owner": {"id": 947}, "assignee": {"id": 1043}}, "job": {"id": 350, "assignee": {"id": 1164}}, "organization": {"id": 1295}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": null}, "resource": {"id": 373, "owner": {"id": 616}, "assignee": {"id": 578}, "project": {"id": 309, "owner": {"id": 725}, "assignee": {"id": 878}}, "task": {"id": 378, "owner": {"id": 970}, "assignee": {"id": 1015}}, "job": {"id": 333, "assignee": {"id": 1158}}, "organization": {"id": 1204}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": null}, "resource": {"id": 385, "owner": {"id": 679}, "assignee": {"id": 554}, "project": {"id": 377, "owner": {"id": 769}, "assignee": {"id": 802}}, "task": {"id": 363, "owner": {"id": 972}, "assignee": {"id": 1095}}, "job": {"id": 369, "assignee": {"id": 1158}}, "organization": {"id": 1224}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": null}, "resource": {"id": 334, "owner": {"id": 637}, "assignee": {"id": 515}, "project": {"id": 359, "owner": {"id": 721}, "assignee": {"id": 837}}, "task": {"id": 340, "owner": {"id": 920}, "assignee": {"id": 1010}}, "job": {"id": 390, "assignee": {"id": 1101}}, "organization": {"id": 1274}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": null}, "resource": {"id": 333, "owner": {"id": 682}, "assignee": {"id": 528}, "project": {"id": 323, "owner": {"id": 761}, "assignee": {"id": 872}}, "task": {"id": 305, "owner": {"id": 935}, "assignee": {"id": 1019}}, "job": {"id": 304, "assignee": {"id": 1187}}, "organization": {"id": 1214}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": null}, "resource": {"id": 330, "owner": {"id": 620}, "assignee": {"id": 523}, "project": {"id": 328, "owner": {"id": 765}, "assignee": {"id": 815}}, "task": {"id": 346, "owner": {"id": 948}, "assignee": {"id": 1006}}, "job": {"id": 381, "assignee": {"id": 1123}}, "organization": {"id": 1243}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": null}, "resource": {"id": 364, "owner": {"id": 646}, "assignee": {"id": 532}, "project": {"id": 371, "owner": {"id": 700}, "assignee": {"id": 840}}, "task": {"id": 375, "owner": {"id": 948}, "assignee": {"id": 1034}}, "job": {"id": 393, "assignee": {"id": 1125}}, "organization": {"id": 1226}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": null}, "resource": {"id": 393, "owner": {"id": 624}, "assignee": {"id": 598}, "project": {"id": 368, "owner": {"id": 786}, "assignee": {"id": 886}}, "task": {"id": 303, "owner": {"id": 987}, "assignee": {"id": 1089}}, "job": {"id": 333, "assignee": {"id": 1179}}, "organization": {"id": 1217}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": null}, "resource": {"id": 344, "owner": {"id": 603}, "assignee": {"id": 570}, "project": {"id": 338, "owner": {"id": 758}, "assignee": {"id": 827}}, "task": {"id": 308, "owner": {"id": 938}, "assignee": {"id": 1088}}, "job": {"id": 376, "assignee": {"id": 1149}}, "organization": {"id": 1276}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": null}, "resource": {"id": 371, "owner": {"id": 611}, "assignee": {"id": 520}, "project": {"id": 314, "owner": {"id": 799}, "assignee": {"id": 832}}, "task": {"id": 346, "owner": {"id": 961}, "assignee": {"id": 1057}}, "job": {"id": 357, "assignee": {"id": 1180}}, "organization": {"id": 1281}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 331, "owner": {"id": 637}, "assignee": {"id": 579}, "project": {"id": 316, "owner": {"id": 23}, "assignee": {"id": 843}}, "task": {"id": 349, "owner": {"id": 908}, "assignee": {"id": 1028}}, "job": {"id": 344, "assignee": {"id": 1143}}, "organization": {"id": 118}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 375, "owner": {"id": 689}, "assignee": {"id": 546}, "project": {"id": 306, "owner": {"id": 42}, "assignee": {"id": 852}}, "task": {"id": 333, "owner": {"id": 985}, "assignee": {"id": 1097}}, "job": {"id": 364, "assignee": {"id": 1101}}, "organization": {"id": 1264}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "owner": {"id": 695}, "assignee": {"id": 559}, "project": {"id": 346, "owner": {"id": 8}, "assignee": {"id": 811}}, "task": {"id": 341, "owner": {"id": 997}, "assignee": {"id": 1034}}, "job": {"id": 340, "assignee": {"id": 1148}}, "organization": {"id": 172}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 657}, "assignee": {"id": 572}, "project": {"id": 310, "owner": {"id": 39}, "assignee": {"id": 868}}, "task": {"id": 338, "owner": {"id": 966}, "assignee": {"id": 1024}}, "job": {"id": 358, "assignee": {"id": 1189}}, "organization": {"id": 1222}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "owner": {"id": 627}, "assignee": {"id": 538}, "project": {"id": 322, "owner": {"id": 89}, "assignee": {"id": 898}}, "task": {"id": 316, "owner": {"id": 949}, "assignee": {"id": 1071}}, "job": {"id": 389, "assignee": {"id": 1195}}, "organization": {"id": 159}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "owner": {"id": 697}, "assignee": {"id": 556}, "project": {"id": 375, "owner": {"id": 83}, "assignee": {"id": 867}}, "task": {"id": 342, "owner": {"id": 942}, "assignee": {"id": 1069}}, "job": {"id": 353, "assignee": {"id": 1138}}, "organization": {"id": 1239}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 389, "owner": {"id": 630}, "assignee": {"id": 587}, "project": {"id": 312, "owner": {"id": 74}, "assignee": {"id": 873}}, "task": {"id": 310, "owner": {"id": 974}, "assignee": {"id": 1099}}, "job": {"id": 321, "assignee": {"id": 1147}}, "organization": {"id": 112}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 675}, "assignee": {"id": 517}, "project": {"id": 363, "owner": {"id": 65}, "assignee": {"id": 872}}, "task": {"id": 319, "owner": {"id": 905}, "assignee": {"id": 1051}}, "job": {"id": 335, "assignee": {"id": 1132}}, "organization": {"id": 1256}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 329, "owner": {"id": 644}, "assignee": {"id": 527}, "project": {"id": 328, "owner": {"id": 70}, "assignee": {"id": 894}}, "task": {"id": 348, "owner": {"id": 932}, "assignee": {"id": 1087}}, "job": {"id": 325, "assignee": {"id": 1197}}, "organization": {"id": 103}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"id": 300, "owner": {"id": 676}, "assignee": {"id": 520}, "project": {"id": 370, "owner": {"id": 52}, "assignee": {"id": 835}}, "task": {"id": 368, "owner": {"id": 947}, "assignee": {"id": 1011}}, "job": {"id": 369, "assignee": {"id": 1161}}, "organization": {"id": 1242}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 334, "owner": {"id": 693}, "assignee": {"id": 520}, "project": {"id": 341, "owner": {"id": 30}, "assignee": {"id": 884}}, "task": {"id": 370, "owner": {"id": 946}, "assignee": {"id": 1027}}, "job": {"id": 357, "assignee": {"id": 1145}}, "organization": {"id": 149}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 314, "owner": {"id": 628}, "assignee": {"id": 564}, "project": {"id": 377, "owner": {"id": 12}, "assignee": {"id": 874}}, "task": {"id": 346, "owner": {"id": 921}, "assignee": {"id": 1061}}, "job": {"id": 360, "assignee": {"id": 1136}}, "organization": {"id": 1289}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "owner": {"id": 689}, "assignee": {"id": 598}, "project": {"id": 395, "owner": {"id": 53}, "assignee": {"id": 816}}, "task": {"id": 393, "owner": {"id": 942}, "assignee": {"id": 1017}}, "job": {"id": 301, "assignee": {"id": 1114}}, "organization": {"id": 130}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "owner": {"id": 695}, "assignee": {"id": 527}, "project": {"id": 300, "owner": {"id": 46}, "assignee": {"id": 888}}, "task": {"id": 335, "owner": {"id": 988}, "assignee": {"id": 1014}}, "job": {"id": 374, "assignee": {"id": 1150}}, "organization": {"id": 1239}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "owner": {"id": 652}, "assignee": {"id": 550}, "project": {"id": 387, "owner": {"id": 52}, "assignee": {"id": 855}}, "task": {"id": 343, "owner": {"id": 994}, "assignee": {"id": 1081}}, "job": {"id": 395, "assignee": {"id": 1192}}, "organization": {"id": 102}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 651}, "assignee": {"id": 574}, "project": {"id": 376, "owner": {"id": 15}, "assignee": {"id": 883}}, "task": {"id": 320, "owner": {"id": 905}, "assignee": {"id": 1087}}, "job": {"id": 303, "assignee": {"id": 1186}}, "organization": {"id": 1272}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 338, "owner": {"id": 654}, "assignee": {"id": 514}, "project": {"id": 368, "owner": {"id": 35}, "assignee": {"id": 886}}, "task": {"id": 354, "owner": {"id": 912}, "assignee": {"id": 1085}}, "job": {"id": 327, "assignee": {"id": 1178}}, "organization": {"id": 170}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 348, "owner": {"id": 631}, "assignee": {"id": 556}, "project": {"id": 301, "owner": {"id": 68}, "assignee": {"id": 818}}, "task": {"id": 301, "owner": {"id": 993}, "assignee": {"id": 1021}}, "job": {"id": 341, "assignee": {"id": 1142}}, "organization": {"id": 1206}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 660}, "assignee": {"id": 548}, "project": {"id": 382, "owner": {"id": 61}, "assignee": {"id": 878}}, "task": {"id": 368, "owner": {"id": 957}, "assignee": {"id": 1049}}, "job": {"id": 315, "assignee": {"id": 1131}}, "organization": {"id": 178}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 697}, "assignee": {"id": 546}, "project": {"id": 327, "owner": {"id": 55}, "assignee": {"id": 854}}, "task": {"id": 335, "owner": {"id": 976}, "assignee": {"id": 1077}}, "job": {"id": 351, "assignee": {"id": 1152}}, "organization": {"id": 1213}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 623}, "assignee": {"id": 541}, "project": {"id": 311, "owner": {"id": 65}, "assignee": {"id": 860}}, "task": {"id": 389, "owner": {"id": 931}, "assignee": {"id": 1002}}, "job": {"id": 384, "assignee": {"id": 1113}}, "organization": {"id": 185}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 370, "owner": {"id": 615}, "assignee": {"id": 548}, "project": {"id": 301, "owner": {"id": 88}, "assignee": {"id": 854}}, "task": {"id": 304, "owner": {"id": 924}, "assignee": {"id": 1036}}, "job": {"id": 347, "assignee": {"id": 1140}}, "organization": {"id": 1250}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "owner": {"id": 669}, "assignee": {"id": 544}, "project": {"id": 343, "owner": {"id": 54}, "assignee": {"id": 851}}, "task": {"id": 363, "owner": {"id": 991}, "assignee": {"id": 1068}}, "job": {"id": 322, "assignee": {"id": 1199}}, "organization": {"id": 180}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "owner": {"id": 667}, "assignee": {"id": 569}, "project": {"id": 346, "owner": {"id": 97}, "assignee": {"id": 842}}, "task": {"id": 357, "owner": {"id": 961}, "assignee": {"id": 1089}}, "job": {"id": 368, "assignee": {"id": 1137}}, "organization": {"id": 1209}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "owner": {"id": 604}, "assignee": {"id": 562}, "project": {"id": 398, "owner": {"id": 67}, "assignee": {"id": 872}}, "task": {"id": 330, "owner": {"id": 993}, "assignee": {"id": 1090}}, "job": {"id": 341, "assignee": {"id": 1125}}, "organization": {"id": 116}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "owner": {"id": 670}, "assignee": {"id": 546}, "project": {"id": 363, "owner": {"id": 11}, "assignee": {"id": 835}}, "task": {"id": 331, "owner": {"id": 975}, "assignee": {"id": 1021}}, "job": {"id": 380, "assignee": {"id": 1124}}, "organization": {"id": 1238}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 613}, "assignee": {"id": 543}, "project": {"id": 320, "owner": {"id": 59}, "assignee": {"id": 858}}, "task": {"id": 356, "owner": {"id": 926}, "assignee": {"id": 1066}}, "job": {"id": 310, "assignee": {"id": 1145}}, "organization": {"id": 144}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 391, "owner": {"id": 638}, "assignee": {"id": 516}, "project": {"id": 375, "owner": {"id": 95}, "assignee": {"id": 828}}, "task": {"id": 371, "owner": {"id": 934}, "assignee": {"id": 1057}}, "job": {"id": 352, "assignee": {"id": 1120}}, "organization": {"id": 1225}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 309, "owner": {"id": 604}, "assignee": {"id": 543}, "project": {"id": 352, "owner": {"id": 8}, "assignee": {"id": 899}}, "task": {"id": 398, "owner": {"id": 939}, "assignee": {"id": 1091}}, "job": {"id": 355, "assignee": {"id": 1107}}, "organization": {"id": 148}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 341, "owner": {"id": 658}, "assignee": {"id": 525}, "project": {"id": 386, "owner": {"id": 75}, "assignee": {"id": 898}}, "task": {"id": 396, "owner": {"id": 987}, "assignee": {"id": 1094}}, "job": {"id": 331, "assignee": {"id": 1143}}, "organization": {"id": 1209}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 314, "owner": {"id": 624}, "assignee": {"id": 548}, "project": {"id": 377, "owner": {"id": 91}, "assignee": {"id": 853}}, "task": {"id": 373, "owner": {"id": 993}, "assignee": {"id": 1000}}, "job": {"id": 328, "assignee": {"id": 1181}}, "organization": {"id": 141}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 311, "owner": {"id": 627}, "assignee": {"id": 541}, "project": {"id": 375, "owner": {"id": 28}, "assignee": {"id": 870}}, "task": {"id": 381, "owner": {"id": 977}, "assignee": {"id": 1013}}, "job": {"id": 392, "assignee": {"id": 1108}}, "organization": {"id": 1298}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 696}, "assignee": {"id": 541}, "project": {"id": 357, "owner": {"id": 49}, "assignee": {"id": 886}}, "task": {"id": 332, "owner": {"id": 943}, "assignee": {"id": 1047}}, "job": {"id": 359, "assignee": {"id": 1195}}, "organization": {"id": 151}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 640}, "assignee": {"id": 553}, "project": {"id": 303, "owner": {"id": 84}, "assignee": {"id": 845}}, "task": {"id": 395, "owner": {"id": 961}, "assignee": {"id": 1076}}, "job": {"id": 311, "assignee": {"id": 1129}}, "organization": {"id": 1287}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "owner": {"id": 663}, "assignee": {"id": 598}, "project": {"id": 396, "owner": {"id": 88}, "assignee": {"id": 899}}, "task": {"id": 365, "owner": {"id": 901}, "assignee": {"id": 1037}}, "job": {"id": 344, "assignee": {"id": 1148}}, "organization": {"id": 168}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 611}, "assignee": {"id": 581}, "project": {"id": 351, "owner": {"id": 69}, "assignee": {"id": 874}}, "task": {"id": 311, "owner": {"id": 960}, "assignee": {"id": 1081}}, "job": {"id": 372, "assignee": {"id": 1137}}, "organization": {"id": 1201}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 337, "owner": {"id": 676}, "assignee": {"id": 506}, "project": {"id": 369, "owner": {"id": 22}, "assignee": {"id": 837}}, "task": {"id": 359, "owner": {"id": 936}, "assignee": {"id": 1057}}, "job": {"id": 324, "assignee": {"id": 1100}}, "organization": {"id": 158}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 620}, "assignee": {"id": 511}, "project": {"id": 302, "owner": {"id": 55}, "assignee": {"id": 866}}, "task": {"id": 399, "owner": {"id": 920}, "assignee": {"id": 1076}}, "job": {"id": 304, "assignee": {"id": 1118}}, "organization": {"id": 1235}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 313, "owner": {"id": 670}, "assignee": {"id": 562}, "project": {"id": 306, "owner": {"id": 21}, "assignee": {"id": 887}}, "task": {"id": 318, "owner": {"id": 910}, "assignee": {"id": 1007}}, "job": {"id": 321, "assignee": {"id": 1171}}, "organization": {"id": 182}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 303, "owner": {"id": 631}, "assignee": {"id": 502}, "project": {"id": 339, "owner": {"id": 88}, "assignee": {"id": 803}}, "task": {"id": 311, "owner": {"id": 999}, "assignee": {"id": 1089}}, "job": {"id": 360, "assignee": {"id": 1135}}, "organization": {"id": 1284}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 319, "owner": {"id": 672}, "assignee": {"id": 568}, "project": {"id": 326, "owner": {"id": 65}, "assignee": {"id": 824}}, "task": {"id": 393, "owner": {"id": 987}, "assignee": {"id": 1027}}, "job": {"id": 321, "assignee": {"id": 1126}}, "organization": {"id": 188}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 383, "owner": {"id": 698}, "assignee": {"id": 598}, "project": {"id": 395, "owner": {"id": 29}, "assignee": {"id": 873}}, "task": {"id": 319, "owner": {"id": 962}, "assignee": {"id": 1088}}, "job": {"id": 348, "assignee": {"id": 1110}}, "organization": {"id": 1261}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 618}, "assignee": {"id": 560}, "project": {"id": 305, "owner": {"id": 18}, "assignee": {"id": 882}}, "task": {"id": 327, "owner": {"id": 995}, "assignee": {"id": 1046}}, "job": {"id": 383, "assignee": {"id": 1128}}, "organization": {"id": 189}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "owner": {"id": 674}, "assignee": {"id": 500}, "project": {"id": 376, "owner": {"id": 51}, "assignee": {"id": 836}}, "task": {"id": 391, "owner": {"id": 908}, "assignee": {"id": 1028}}, "job": {"id": 329, "assignee": {"id": 1101}}, "organization": {"id": 1223}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 626}, "assignee": {"id": 558}, "project": {"id": 314, "owner": {"id": 11}, "assignee": {"id": 844}}, "task": {"id": 379, "owner": {"id": 932}, "assignee": {"id": 1020}}, "job": {"id": 365, "assignee": {"id": 1198}}, "organization": {"id": 149}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "owner": {"id": 636}, "assignee": {"id": 536}, "project": {"id": 323, "owner": {"id": 62}, "assignee": {"id": 851}}, "task": {"id": 319, "owner": {"id": 939}, "assignee": {"id": 1079}}, "job": {"id": 380, "assignee": {"id": 1169}}, "organization": {"id": 1235}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 61, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 390, "owner": {"id": 660}, "assignee": {"id": 512}, "project": {"id": 393, "owner": {"id": 61}, "assignee": {"id": 879}}, "task": {"id": 378, "owner": {"id": 945}, "assignee": {"id": 1099}}, "job": {"id": 316, "assignee": {"id": 1117}}, "organization": {"id": 143}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 696}, "assignee": {"id": 598}, "project": {"id": 390, "owner": {"id": 38}, "assignee": {"id": 868}}, "task": {"id": 361, "owner": {"id": 960}, "assignee": {"id": 1005}}, "job": {"id": 397, "assignee": {"id": 1158}}, "organization": {"id": 1287}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 357, "owner": {"id": 685}, "assignee": {"id": 566}, "project": {"id": 337, "owner": {"id": 25}, "assignee": {"id": 842}}, "task": {"id": 313, "owner": {"id": 924}, "assignee": {"id": 1081}}, "job": {"id": 348, "assignee": {"id": 1154}}, "organization": {"id": 111}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 678}, "assignee": {"id": 571}, "project": {"id": 337, "owner": {"id": 92}, "assignee": {"id": 860}}, "task": {"id": 367, "owner": {"id": 981}, "assignee": {"id": 1029}}, "job": {"id": 339, "assignee": {"id": 1157}}, "organization": {"id": 1210}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 397, "owner": {"id": 691}, "assignee": {"id": 567}, "project": {"id": 397, "owner": {"id": 792}, "assignee": {"id": 6}}, "task": {"id": 389, "owner": {"id": 958}, "assignee": {"id": 1093}}, "job": {"id": 369, "assignee": {"id": 1120}}, "organization": {"id": 161}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 311, "owner": {"id": 627}, "assignee": {"id": 552}, "project": {"id": 313, "owner": {"id": 740}, "assignee": {"id": 44}}, "task": {"id": 346, "owner": {"id": 999}, "assignee": {"id": 1084}}, "job": {"id": 320, "assignee": {"id": 1147}}, "organization": {"id": 1204}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "owner": {"id": 685}, "assignee": {"id": 583}, "project": {"id": 312, "owner": {"id": 792}, "assignee": {"id": 38}}, "task": {"id": 304, "owner": {"id": 977}, "assignee": {"id": 1061}}, "job": {"id": 306, "assignee": {"id": 1197}}, "organization": {"id": 112}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "owner": {"id": 628}, "assignee": {"id": 565}, "project": {"id": 362, "owner": {"id": 785}, "assignee": {"id": 68}}, "task": {"id": 372, "owner": {"id": 916}, "assignee": {"id": 1028}}, "job": {"id": 383, "assignee": {"id": 1128}}, "organization": {"id": 1267}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "owner": {"id": 652}, "assignee": {"id": 550}, "project": {"id": 358, "owner": {"id": 743}, "assignee": {"id": 74}}, "task": {"id": 368, "owner": {"id": 948}, "assignee": {"id": 1066}}, "job": {"id": 376, "assignee": {"id": 1101}}, "organization": {"id": 113}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "owner": {"id": 656}, "assignee": {"id": 537}, "project": {"id": 378, "owner": {"id": 762}, "assignee": {"id": 94}}, "task": {"id": 329, "owner": {"id": 917}, "assignee": {"id": 1048}}, "job": {"id": 328, "assignee": {"id": 1131}}, "organization": {"id": 1264}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 678}, "assignee": {"id": 574}, "project": {"id": 381, "owner": {"id": 779}, "assignee": {"id": 90}}, "task": {"id": 307, "owner": {"id": 940}, "assignee": {"id": 1043}}, "job": {"id": 321, "assignee": {"id": 1190}}, "organization": {"id": 129}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 397, "owner": {"id": 656}, "assignee": {"id": 533}, "project": {"id": 333, "owner": {"id": 772}, "assignee": {"id": 47}}, "task": {"id": 309, "owner": {"id": 955}, "assignee": {"id": 1039}}, "job": {"id": 326, "assignee": {"id": 1175}}, "organization": {"id": 1279}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 399, "owner": {"id": 670}, "assignee": {"id": 530}, "project": {"id": 319, "owner": {"id": 770}, "assignee": {"id": 20}}, "task": {"id": 342, "owner": {"id": 999}, "assignee": {"id": 1062}}, "job": {"id": 361, "assignee": {"id": 1181}}, "organization": {"id": 184}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 325, "owner": {"id": 611}, "assignee": {"id": 538}, "project": {"id": 304, "owner": {"id": 794}, "assignee": {"id": 69}}, "task": {"id": 336, "owner": {"id": 986}, "assignee": {"id": 1023}}, "job": {"id": 319, "assignee": {"id": 1140}}, "organization": {"id": 1216}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 382, "owner": {"id": 684}, "assignee": {"id": 563}, "project": {"id": 354, "owner": {"id": 737}, "assignee": {"id": 61}}, "task": {"id": 388, "owner": {"id": 945}, "assignee": {"id": 1022}}, "job": {"id": 386, "assignee": {"id": 1124}}, "organization": {"id": 191}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 357, "owner": {"id": 625}, "assignee": {"id": 583}, "project": {"id": 328, "owner": {"id": 770}, "assignee": {"id": 29}}, "task": {"id": 353, "owner": {"id": 994}, "assignee": {"id": 1045}}, "job": {"id": 331, "assignee": {"id": 1150}}, "organization": {"id": 1262}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "owner": {"id": 622}, "assignee": {"id": 539}, "project": {"id": 320, "owner": {"id": 782}, "assignee": {"id": 58}}, "task": {"id": 360, "owner": {"id": 930}, "assignee": {"id": 1055}}, "job": {"id": 392, "assignee": {"id": 1128}}, "organization": {"id": 134}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "owner": {"id": 695}, "assignee": {"id": 593}, "project": {"id": 340, "owner": {"id": 763}, "assignee": {"id": 77}}, "task": {"id": 367, "owner": {"id": 913}, "assignee": {"id": 1054}}, "job": {"id": 347, "assignee": {"id": 1143}}, "organization": {"id": 1225}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "owner": {"id": 611}, "assignee": {"id": 576}, "project": {"id": 397, "owner": {"id": 748}, "assignee": {"id": 27}}, "task": {"id": 300, "owner": {"id": 987}, "assignee": {"id": 1083}}, "job": {"id": 361, "assignee": {"id": 1140}}, "organization": {"id": 168}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 616}, "assignee": {"id": 539}, "project": {"id": 322, "owner": {"id": 732}, "assignee": {"id": 42}}, "task": {"id": 342, "owner": {"id": 972}, "assignee": {"id": 1040}}, "job": {"id": 316, "assignee": {"id": 1169}}, "organization": {"id": 1262}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 389, "owner": {"id": 677}, "assignee": {"id": 599}, "project": {"id": 327, "owner": {"id": 718}, "assignee": {"id": 1}}, "task": {"id": 348, "owner": {"id": 971}, "assignee": {"id": 1079}}, "job": {"id": 316, "assignee": {"id": 1127}}, "organization": {"id": 140}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 346, "owner": {"id": 651}, "assignee": {"id": 526}, "project": {"id": 342, "owner": {"id": 739}, "assignee": {"id": 6}}, "task": {"id": 330, "owner": {"id": 982}, "assignee": {"id": 1086}}, "job": {"id": 331, "assignee": {"id": 1197}}, "organization": {"id": 1227}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 305, "owner": {"id": 614}, "assignee": {"id": 585}, "project": {"id": 316, "owner": {"id": 776}, "assignee": {"id": 17}}, "task": {"id": 363, "owner": {"id": 905}, "assignee": {"id": 1048}}, "job": {"id": 335, "assignee": {"id": 1180}}, "organization": {"id": 113}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 329, "owner": {"id": 680}, "assignee": {"id": 511}, "project": {"id": 327, "owner": {"id": 712}, "assignee": {"id": 92}}, "task": {"id": 381, "owner": {"id": 914}, "assignee": {"id": 1076}}, "job": {"id": 335, "assignee": {"id": 1184}}, "organization": {"id": 1208}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 362, "owner": {"id": 619}, "assignee": {"id": 546}, "project": {"id": 381, "owner": {"id": 726}, "assignee": {"id": 0}}, "task": {"id": 362, "owner": {"id": 978}, "assignee": {"id": 1088}}, "job": {"id": 336, "assignee": {"id": 1193}}, "organization": {"id": 146}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 625}, "assignee": {"id": 551}, "project": {"id": 358, "owner": {"id": 746}, "assignee": {"id": 65}}, "task": {"id": 396, "owner": {"id": 987}, "assignee": {"id": 1000}}, "job": {"id": 339, "assignee": {"id": 1159}}, "organization": {"id": 1254}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 607}, "assignee": {"id": 591}, "project": {"id": 345, "owner": {"id": 736}, "assignee": {"id": 51}}, "task": {"id": 367, "owner": {"id": 924}, "assignee": {"id": 1031}}, "job": {"id": 320, "assignee": {"id": 1168}}, "organization": {"id": 144}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 650}, "assignee": {"id": 509}, "project": {"id": 393, "owner": {"id": 778}, "assignee": {"id": 14}}, "task": {"id": 376, "owner": {"id": 979}, "assignee": {"id": 1000}}, "job": {"id": 354, "assignee": {"id": 1186}}, "organization": {"id": 1220}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "owner": {"id": 670}, "assignee": {"id": 589}, "project": {"id": 387, "owner": {"id": 774}, "assignee": {"id": 71}}, "task": {"id": 374, "owner": {"id": 917}, "assignee": {"id": 1055}}, "job": {"id": 368, "assignee": {"id": 1158}}, "organization": {"id": 111}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "owner": {"id": 640}, "assignee": {"id": 577}, "project": {"id": 347, "owner": {"id": 727}, "assignee": {"id": 4}}, "task": {"id": 395, "owner": {"id": 983}, "assignee": {"id": 1033}}, "job": {"id": 337, "assignee": {"id": 1178}}, "organization": {"id": 1259}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 346, "owner": {"id": 684}, "assignee": {"id": 511}, "project": {"id": 332, "owner": {"id": 757}, "assignee": {"id": 30}}, "task": {"id": 397, "owner": {"id": 928}, "assignee": {"id": 1013}}, "job": {"id": 367, "assignee": {"id": 1142}}, "organization": {"id": 183}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 330, "owner": {"id": 617}, "assignee": {"id": 559}, "project": {"id": 380, "owner": {"id": 749}, "assignee": {"id": 73}}, "task": {"id": 312, "owner": {"id": 946}, "assignee": {"id": 1019}}, "job": {"id": 365, "assignee": {"id": 1110}}, "organization": {"id": 1236}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 678}, "assignee": {"id": 558}, "project": {"id": 327, "owner": {"id": 755}, "assignee": {"id": 69}}, "task": {"id": 347, "owner": {"id": 938}, "assignee": {"id": 1010}}, "job": {"id": 384, "assignee": {"id": 1183}}, "organization": {"id": 144}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 681}, "assignee": {"id": 574}, "project": {"id": 373, "owner": {"id": 712}, "assignee": {"id": 12}}, "task": {"id": 342, "owner": {"id": 973}, "assignee": {"id": 1048}}, "job": {"id": 379, "assignee": {"id": 1107}}, "organization": {"id": 1242}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 357, "owner": {"id": 684}, "assignee": {"id": 552}, "project": {"id": 393, "owner": {"id": 749}, "assignee": {"id": 39}}, "task": {"id": 375, "owner": {"id": 941}, "assignee": {"id": 1039}}, "job": {"id": 310, "assignee": {"id": 1155}}, "organization": {"id": 179}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 687}, "assignee": {"id": 506}, "project": {"id": 359, "owner": {"id": 788}, "assignee": {"id": 19}}, "task": {"id": 338, "owner": {"id": 914}, "assignee": {"id": 1010}}, "job": {"id": 363, "assignee": {"id": 1128}}, "organization": {"id": 1261}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 654}, "assignee": {"id": 561}, "project": {"id": 341, "owner": {"id": 710}, "assignee": {"id": 69}}, "task": {"id": 334, "owner": {"id": 901}, "assignee": {"id": 1083}}, "job": {"id": 348, "assignee": {"id": 1198}}, "organization": {"id": 129}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 649}, "assignee": {"id": 526}, "project": {"id": 336, "owner": {"id": 729}, "assignee": {"id": 57}}, "task": {"id": 361, "owner": {"id": 938}, "assignee": {"id": 1054}}, "job": {"id": 380, "assignee": {"id": 1151}}, "organization": {"id": 1202}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 621}, "assignee": {"id": 527}, "project": {"id": 309, "owner": {"id": 772}, "assignee": {"id": 51}}, "task": {"id": 343, "owner": {"id": 917}, "assignee": {"id": 1035}}, "job": {"id": 369, "assignee": {"id": 1111}}, "organization": {"id": 182}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "owner": {"id": 651}, "assignee": {"id": 516}, "project": {"id": 397, "owner": {"id": 757}, "assignee": {"id": 68}}, "task": {"id": 333, "owner": {"id": 908}, "assignee": {"id": 1047}}, "job": {"id": 377, "assignee": {"id": 1131}}, "organization": {"id": 1299}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 316, "owner": {"id": 693}, "assignee": {"id": 586}, "project": {"id": 386, "owner": {"id": 730}, "assignee": {"id": 72}}, "task": {"id": 372, "owner": {"id": 996}, "assignee": {"id": 1033}}, "job": {"id": 362, "assignee": {"id": 1109}}, "organization": {"id": 164}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 347, "owner": {"id": 610}, "assignee": {"id": 514}, "project": {"id": 395, "owner": {"id": 748}, "assignee": {"id": 22}}, "task": {"id": 331, "owner": {"id": 939}, "assignee": {"id": 1012}}, "job": {"id": 324, "assignee": {"id": 1141}}, "organization": {"id": 1226}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 369, "owner": {"id": 659}, "assignee": {"id": 511}, "project": {"id": 307, "owner": {"id": 754}, "assignee": {"id": 74}}, "task": {"id": 392, "owner": {"id": 989}, "assignee": {"id": 1065}}, "job": {"id": 349, "assignee": {"id": 1170}}, "organization": {"id": 108}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 322, "owner": {"id": 616}, "assignee": {"id": 517}, "project": {"id": 354, "owner": {"id": 739}, "assignee": {"id": 8}}, "task": {"id": 313, "owner": {"id": 922}, "assignee": {"id": 1050}}, "job": {"id": 334, "assignee": {"id": 1190}}, "organization": {"id": 1261}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 300, "owner": {"id": 680}, "assignee": {"id": 537}, "project": {"id": 319, "owner": {"id": 765}, "assignee": {"id": 11}}, "task": {"id": 313, "owner": {"id": 938}, "assignee": {"id": 1075}}, "job": {"id": 339, "assignee": {"id": 1192}}, "organization": {"id": 129}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 312, "owner": {"id": 643}, "assignee": {"id": 519}, "project": {"id": 310, "owner": {"id": 712}, "assignee": {"id": 28}}, "task": {"id": 381, "owner": {"id": 947}, "assignee": {"id": 1072}}, "job": {"id": 381, "assignee": {"id": 1150}}, "organization": {"id": 1292}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 644}, "assignee": {"id": 545}, "project": {"id": 344, "owner": {"id": 774}, "assignee": {"id": 32}}, "task": {"id": 308, "owner": {"id": 937}, "assignee": {"id": 1031}}, "job": {"id": 398, "assignee": {"id": 1160}}, "organization": {"id": 123}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 692}, "assignee": {"id": 552}, "project": {"id": 396, "owner": {"id": 797}, "assignee": {"id": 45}}, "task": {"id": 387, "owner": {"id": 938}, "assignee": {"id": 1003}}, "job": {"id": 343, "assignee": {"id": 1170}}, "organization": {"id": 1273}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 639}, "assignee": {"id": 588}, "project": {"id": 347, "owner": {"id": 719}, "assignee": {"id": 66}}, "task": {"id": 375, "owner": {"id": 924}, "assignee": {"id": 1063}}, "job": {"id": 306, "assignee": {"id": 1195}}, "organization": {"id": 197}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 605}, "assignee": {"id": 558}, "project": {"id": 354, "owner": {"id": 759}, "assignee": {"id": 95}}, "task": {"id": 388, "owner": {"id": 904}, "assignee": {"id": 1069}}, "job": {"id": 373, "assignee": {"id": 1100}}, "organization": {"id": 1268}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 301, "owner": {"id": 611}, "assignee": {"id": 535}, "project": {"id": 384, "owner": {"id": 793}, "assignee": {"id": 98}}, "task": {"id": 360, "owner": {"id": 954}, "assignee": {"id": 1059}}, "job": {"id": 315, "assignee": {"id": 1189}}, "organization": {"id": 156}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 315, "owner": {"id": 632}, "assignee": {"id": 589}, "project": {"id": 346, "owner": {"id": 703}, "assignee": {"id": 74}}, "task": {"id": 359, "owner": {"id": 965}, "assignee": {"id": 1057}}, "job": {"id": 347, "assignee": {"id": 1110}}, "organization": {"id": 1242}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 356, "owner": {"id": 698}, "assignee": {"id": 548}, "project": {"id": 356, "owner": {"id": 739}, "assignee": {"id": 18}}, "task": {"id": 316, "owner": {"id": 934}, "assignee": {"id": 1092}}, "job": {"id": 326, "assignee": {"id": 1140}}, "organization": {"id": 112}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 304, "owner": {"id": 642}, "assignee": {"id": 528}, "project": {"id": 385, "owner": {"id": 705}, "assignee": {"id": 18}}, "task": {"id": 330, "owner": {"id": 931}, "assignee": {"id": 1022}}, "job": {"id": 387, "assignee": {"id": 1172}}, "organization": {"id": 1287}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 349, "owner": {"id": 612}, "assignee": {"id": 575}, "project": {"id": 379, "owner": {"id": 707}, "assignee": {"id": 879}}, "task": {"id": 359, "owner": {"id": 0}, "assignee": {"id": 1093}}, "job": {"id": 339, "assignee": {"id": 1157}}, "organization": {"id": 133}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 362, "owner": {"id": 667}, "assignee": {"id": 584}, "project": {"id": 318, "owner": {"id": 759}, "assignee": {"id": 872}}, "task": {"id": 355, "owner": {"id": 74}, "assignee": {"id": 1068}}, "job": {"id": 323, "assignee": {"id": 1186}}, "organization": {"id": 144}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 690}, "assignee": {"id": 504}, "project": {"id": 361, "owner": {"id": 747}, "assignee": {"id": 870}}, "task": {"id": 373, "owner": {"id": 98}, "assignee": {"id": 1050}}, "job": {"id": 351, "assignee": {"id": 1133}}, "organization": {"id": 1202}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 381, "owner": {"id": 689}, "assignee": {"id": 519}, "project": {"id": 320, "owner": {"id": 707}, "assignee": {"id": 840}}, "task": {"id": 362, "owner": {"id": 73}, "assignee": {"id": 1021}}, "job": {"id": 399, "assignee": {"id": 1149}}, "organization": {"id": 1282}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "owner": {"id": 631}, "assignee": {"id": 540}, "project": {"id": 337, "owner": {"id": 728}, "assignee": {"id": 861}}, "task": {"id": 308, "owner": {"id": 37}, "assignee": {"id": 1022}}, "job": {"id": 302, "assignee": {"id": 1186}}, "organization": {"id": 182}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "owner": {"id": 627}, "assignee": {"id": 586}, "project": {"id": 360, "owner": {"id": 722}, "assignee": {"id": 810}}, "task": {"id": 397, "owner": {"id": 2}, "assignee": {"id": 1032}}, "job": {"id": 384, "assignee": {"id": 1130}}, "organization": {"id": 118}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "owner": {"id": 677}, "assignee": {"id": 579}, "project": {"id": 348, "owner": {"id": 793}, "assignee": {"id": 868}}, "task": {"id": 326, "owner": {"id": 32}, "assignee": {"id": 1092}}, "job": {"id": 300, "assignee": {"id": 1113}}, "organization": {"id": 1210}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 636}, "assignee": {"id": 581}, "project": {"id": 331, "owner": {"id": 739}, "assignee": {"id": 814}}, "task": {"id": 398, "owner": {"id": 18}, "assignee": {"id": 1086}}, "job": {"id": 347, "assignee": {"id": 1140}}, "organization": {"id": 1209}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "owner": {"id": 683}, "assignee": {"id": 510}, "project": {"id": 334, "owner": {"id": 762}, "assignee": {"id": 881}}, "task": {"id": 327, "owner": {"id": 5}, "assignee": {"id": 1090}}, "job": {"id": 343, "assignee": {"id": 1104}}, "organization": {"id": 169}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 699}, "assignee": {"id": 506}, "project": {"id": 384, "owner": {"id": 755}, "assignee": {"id": 846}}, "task": {"id": 382, "owner": {"id": 72}, "assignee": {"id": 1080}}, "job": {"id": 379, "assignee": {"id": 1194}}, "organization": {"id": 190}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 683}, "assignee": {"id": 595}, "project": {"id": 300, "owner": {"id": 770}, "assignee": {"id": 842}}, "task": {"id": 329, "owner": {"id": 67}, "assignee": {"id": 1018}}, "job": {"id": 335, "assignee": {"id": 1172}}, "organization": {"id": 1233}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "owner": {"id": 660}, "assignee": {"id": 512}, "project": {"id": 306, "owner": {"id": 750}, "assignee": {"id": 800}}, "task": {"id": 306, "owner": {"id": 55}, "assignee": {"id": 1019}}, "job": {"id": 386, "assignee": {"id": 1120}}, "organization": {"id": 1260}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 699}, "assignee": {"id": 505}, "project": {"id": 314, "owner": {"id": 741}, "assignee": {"id": 829}}, "task": {"id": 330, "owner": {"id": 68}, "assignee": {"id": 1085}}, "job": {"id": 336, "assignee": {"id": 1163}}, "organization": {"id": 105}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 314, "owner": {"id": 619}, "assignee": {"id": 552}, "project": {"id": 359, "owner": {"id": 798}, "assignee": {"id": 811}}, "task": {"id": 329, "owner": {"id": 30}, "assignee": {"id": 1092}}, "job": {"id": 367, "assignee": {"id": 1165}}, "organization": {"id": 148}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 323, "owner": {"id": 675}, "assignee": {"id": 505}, "project": {"id": 337, "owner": {"id": 795}, "assignee": {"id": 865}}, "task": {"id": 376, "owner": {"id": 16}, "assignee": {"id": 1074}}, "job": {"id": 369, "assignee": {"id": 1171}}, "organization": {"id": 1244}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 341, "owner": {"id": 692}, "assignee": {"id": 533}, "project": {"id": 322, "owner": {"id": 778}, "assignee": {"id": 877}}, "task": {"id": 388, "owner": {"id": 75}, "assignee": {"id": 1039}}, "job": {"id": 315, "assignee": {"id": 1107}}, "organization": {"id": 1297}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 320, "owner": {"id": 634}, "assignee": {"id": 556}, "project": {"id": 363, "owner": {"id": 720}, "assignee": {"id": 814}}, "task": {"id": 360, "owner": {"id": 47}, "assignee": {"id": 1082}}, "job": {"id": 305, "assignee": {"id": 1184}}, "organization": {"id": 191}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 383, "owner": {"id": 654}, "assignee": {"id": 588}, "project": {"id": 376, "owner": {"id": 788}, "assignee": {"id": 839}}, "task": {"id": 312, "owner": {"id": 1}, "assignee": {"id": 1054}}, "job": {"id": 318, "assignee": {"id": 1189}}, "organization": {"id": 198}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 332, "owner": {"id": 655}, "assignee": {"id": 575}, "project": {"id": 347, "owner": {"id": 705}, "assignee": {"id": 880}}, "task": {"id": 359, "owner": {"id": 70}, "assignee": {"id": 1074}}, "job": {"id": 329, "assignee": {"id": 1198}}, "organization": {"id": 1235}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 399, "owner": {"id": 699}, "assignee": {"id": 572}, "project": {"id": 323, "owner": {"id": 748}, "assignee": {"id": 892}}, "task": {"id": 383, "owner": {"id": 27}, "assignee": {"id": 1015}}, "job": {"id": 301, "assignee": {"id": 1180}}, "organization": {"id": 1280}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 689}, "assignee": {"id": 596}, "project": {"id": 344, "owner": {"id": 714}, "assignee": {"id": 836}}, "task": {"id": 320, "owner": {"id": 88}, "assignee": {"id": 1033}}, "job": {"id": 396, "assignee": {"id": 1192}}, "organization": {"id": 108}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 607}, "assignee": {"id": 526}, "project": {"id": 306, "owner": {"id": 760}, "assignee": {"id": 847}}, "task": {"id": 395, "owner": {"id": 74}, "assignee": {"id": 1083}}, "job": {"id": 341, "assignee": {"id": 1166}}, "organization": {"id": 128}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 302, "owner": {"id": 676}, "assignee": {"id": 527}, "project": {"id": 333, "owner": {"id": 710}, "assignee": {"id": 895}}, "task": {"id": 364, "owner": {"id": 86}, "assignee": {"id": 1066}}, "job": {"id": 305, "assignee": {"id": 1180}}, "organization": {"id": 1242}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 618}, "assignee": {"id": 593}, "project": {"id": 331, "owner": {"id": 756}, "assignee": {"id": 813}}, "task": {"id": 384, "owner": {"id": 7}, "assignee": {"id": 1096}}, "job": {"id": 305, "assignee": {"id": 1159}}, "organization": {"id": 1212}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 683}, "assignee": {"id": 569}, "project": {"id": 375, "owner": {"id": 789}, "assignee": {"id": 808}}, "task": {"id": 390, "owner": {"id": 57}, "assignee": {"id": 1084}}, "job": {"id": 372, "assignee": {"id": 1136}}, "organization": {"id": 172}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "owner": {"id": 613}, "assignee": {"id": 567}, "project": {"id": 314, "owner": {"id": 743}, "assignee": {"id": 824}}, "task": {"id": 338, "owner": {"id": 96}, "assignee": {"id": 1044}}, "job": {"id": 383, "assignee": {"id": 1161}}, "organization": {"id": 198}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "owner": {"id": 633}, "assignee": {"id": 543}, "project": {"id": 374, "owner": {"id": 709}, "assignee": {"id": 860}}, "task": {"id": 309, "owner": {"id": 71}, "assignee": {"id": 1087}}, "job": {"id": 356, "assignee": {"id": 1171}}, "organization": {"id": 1276}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "owner": {"id": 664}, "assignee": {"id": 556}, "project": {"id": 395, "owner": {"id": 793}, "assignee": {"id": 831}}, "task": {"id": 312, "owner": {"id": 82}, "assignee": {"id": 1030}}, "job": {"id": 390, "assignee": {"id": 1194}}, "organization": {"id": 1288}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "owner": {"id": 667}, "assignee": {"id": 534}, "project": {"id": 368, "owner": {"id": 789}, "assignee": {"id": 858}}, "task": {"id": 340, "owner": {"id": 60}, "assignee": {"id": 1070}}, "job": {"id": 304, "assignee": {"id": 1196}}, "organization": {"id": 163}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "owner": {"id": 654}, "assignee": {"id": 564}, "project": {"id": 317, "owner": {"id": 778}, "assignee": {"id": 817}}, "task": {"id": 384, "owner": {"id": 65}, "assignee": {"id": 1007}}, "job": {"id": 306, "assignee": {"id": 1190}}, "organization": {"id": 192}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "owner": {"id": 619}, "assignee": {"id": 550}, "project": {"id": 392, "owner": {"id": 795}, "assignee": {"id": 841}}, "task": {"id": 355, "owner": {"id": 0}, "assignee": {"id": 1017}}, "job": {"id": 359, "assignee": {"id": 1161}}, "organization": {"id": 1200}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 602}, "assignee": {"id": 543}, "project": {"id": 308, "owner": {"id": 751}, "assignee": {"id": 848}}, "task": {"id": 399, "owner": {"id": 35}, "assignee": {"id": 1082}}, "job": {"id": 347, "assignee": {"id": 1152}}, "organization": {"id": 1210}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 370, "owner": {"id": 676}, "assignee": {"id": 500}, "project": {"id": 347, "owner": {"id": 738}, "assignee": {"id": 894}}, "task": {"id": 311, "owner": {"id": 9}, "assignee": {"id": 1044}}, "job": {"id": 377, "assignee": {"id": 1146}}, "organization": {"id": 184}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 324, "owner": {"id": 636}, "assignee": {"id": 504}, "project": {"id": 326, "owner": {"id": 735}, "assignee": {"id": 821}}, "task": {"id": 349, "owner": {"id": 36}, "assignee": {"id": 1038}}, "job": {"id": 313, "assignee": {"id": 1139}}, "organization": {"id": 159}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 347, "owner": {"id": 685}, "assignee": {"id": 548}, "project": {"id": 380, "owner": {"id": 798}, "assignee": {"id": 872}}, "task": {"id": 381, "owner": {"id": 92}, "assignee": {"id": 1090}}, "job": {"id": 361, "assignee": {"id": 1171}}, "organization": {"id": 1272}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 346, "owner": {"id": 681}, "assignee": {"id": 568}, "project": {"id": 304, "owner": {"id": 744}, "assignee": {"id": 821}}, "task": {"id": 399, "owner": {"id": 95}, "assignee": {"id": 1076}}, "job": {"id": 325, "assignee": {"id": 1103}}, "organization": {"id": 1248}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 377, "owner": {"id": 617}, "assignee": {"id": 523}, "project": {"id": 347, "owner": {"id": 742}, "assignee": {"id": 846}}, "task": {"id": 376, "owner": {"id": 93}, "assignee": {"id": 1003}}, "job": {"id": 314, "assignee": {"id": 1159}}, "organization": {"id": 154}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 638}, "assignee": {"id": 529}, "project": {"id": 309, "owner": {"id": 706}, "assignee": {"id": 891}}, "task": {"id": 328, "owner": {"id": 29}, "assignee": {"id": 1012}}, "job": {"id": 306, "assignee": {"id": 1178}}, "organization": {"id": 186}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 393, "owner": {"id": 651}, "assignee": {"id": 509}, "project": {"id": 329, "owner": {"id": 785}, "assignee": {"id": 888}}, "task": {"id": 391, "owner": {"id": 67}, "assignee": {"id": 1016}}, "job": {"id": 372, "assignee": {"id": 1181}}, "organization": {"id": 1203}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 360, "owner": {"id": 611}, "assignee": {"id": 527}, "project": {"id": 334, "owner": {"id": 730}, "assignee": {"id": 865}}, "task": {"id": 310, "owner": {"id": 19}, "assignee": {"id": 1009}}, "job": {"id": 346, "assignee": {"id": 1145}}, "organization": {"id": 1292}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 314, "owner": {"id": 658}, "assignee": {"id": 557}, "project": {"id": 318, "owner": {"id": 789}, "assignee": {"id": 865}}, "task": {"id": 347, "owner": {"id": 48}, "assignee": {"id": 1058}}, "job": {"id": 327, "assignee": {"id": 1180}}, "organization": {"id": 199}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 672}, "assignee": {"id": 584}, "project": {"id": 364, "owner": {"id": 796}, "assignee": {"id": 832}}, "task": {"id": 337, "owner": {"id": 80}, "assignee": {"id": 1032}}, "job": {"id": 364, "assignee": {"id": 1127}}, "organization": {"id": 133}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 333, "owner": {"id": 688}, "assignee": {"id": 524}, "project": {"id": 332, "owner": {"id": 715}, "assignee": {"id": 863}}, "task": {"id": 362, "owner": {"id": 4}, "assignee": {"id": 1039}}, "job": {"id": 309, "assignee": {"id": 1124}}, "organization": {"id": 1256}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 350, "owner": {"id": 686}, "assignee": {"id": 545}, "project": {"id": 332, "owner": {"id": 718}, "assignee": {"id": 815}}, "task": {"id": 327, "owner": {"id": 56}, "assignee": {"id": 1044}}, "job": {"id": 307, "assignee": {"id": 1166}}, "organization": {"id": 1285}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 695}, "assignee": {"id": 590}, "project": {"id": 371, "owner": {"id": 743}, "assignee": {"id": 833}}, "task": {"id": 366, "owner": {"id": 42}, "assignee": {"id": 1076}}, "job": {"id": 368, "assignee": {"id": 1130}}, "organization": {"id": 141}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 652}, "assignee": {"id": 583}, "project": {"id": 340, "owner": {"id": 757}, "assignee": {"id": 872}}, "task": {"id": 336, "owner": {"id": 27}, "assignee": {"id": 1018}}, "job": {"id": 367, "assignee": {"id": 1108}}, "organization": {"id": 165}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 644}, "assignee": {"id": 593}, "project": {"id": 336, "owner": {"id": 714}, "assignee": {"id": 891}}, "task": {"id": 332, "owner": {"id": 14}, "assignee": {"id": 1059}}, "job": {"id": 371, "assignee": {"id": 1133}}, "organization": {"id": 1253}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "owner": {"id": 669}, "assignee": {"id": 529}, "project": {"id": 386, "owner": {"id": 724}, "assignee": {"id": 833}}, "task": {"id": 353, "owner": {"id": 36}, "assignee": {"id": 1026}}, "job": {"id": 396, "assignee": {"id": 1194}}, "organization": {"id": 1240}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 663}, "assignee": {"id": 559}, "project": {"id": 364, "owner": {"id": 703}, "assignee": {"id": 893}}, "task": {"id": 371, "owner": {"id": 1}, "assignee": {"id": 1038}}, "job": {"id": 327, "assignee": {"id": 1105}}, "organization": {"id": 164}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "owner": {"id": 615}, "assignee": {"id": 567}, "project": {"id": 305, "owner": {"id": 729}, "assignee": {"id": 835}}, "task": {"id": 353, "owner": {"id": 77}, "assignee": {"id": 1026}}, "job": {"id": 313, "assignee": {"id": 1109}}, "organization": {"id": 199}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "owner": {"id": 679}, "assignee": {"id": 527}, "project": {"id": 338, "owner": {"id": 700}, "assignee": {"id": 813}}, "task": {"id": 315, "owner": {"id": 97}, "assignee": {"id": 1023}}, "job": {"id": 375, "assignee": {"id": 1185}}, "organization": {"id": 1267}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "owner": {"id": 646}, "assignee": {"id": 509}, "project": {"id": 312, "owner": {"id": 731}, "assignee": {"id": 894}}, "task": {"id": 378, "owner": {"id": 26}, "assignee": {"id": 1074}}, "job": {"id": 389, "assignee": {"id": 1178}}, "organization": {"id": 1249}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 355, "owner": {"id": 634}, "assignee": {"id": 514}, "project": {"id": 361, "owner": {"id": 738}, "assignee": {"id": 861}}, "task": {"id": 328, "owner": {"id": 26}, "assignee": {"id": 1074}}, "job": {"id": 382, "assignee": {"id": 1140}}, "organization": {"id": 100}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 637}, "assignee": {"id": 547}, "project": {"id": 385, "owner": {"id": 751}, "assignee": {"id": 815}}, "task": {"id": 379, "owner": {"id": 12}, "assignee": {"id": 1070}}, "job": {"id": 324, "assignee": {"id": 1199}}, "organization": {"id": 149}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 326, "owner": {"id": 608}, "assignee": {"id": 598}, "project": {"id": 374, "owner": {"id": 720}, "assignee": {"id": 834}}, "task": {"id": 380, "owner": {"id": 41}, "assignee": {"id": 1070}}, "job": {"id": 308, "assignee": {"id": 1160}}, "organization": {"id": 1268}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 341, "owner": {"id": 648}, "assignee": {"id": 588}, "project": {"id": 335, "owner": {"id": 736}, "assignee": {"id": 820}}, "task": {"id": 389, "owner": {"id": 66}, "assignee": {"id": 1098}}, "job": {"id": 329, "assignee": {"id": 1108}}, "organization": {"id": 1210}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 313, "owner": {"id": 620}, "assignee": {"id": 508}, "project": {"id": 375, "owner": {"id": 767}, "assignee": {"id": 882}}, "task": {"id": 329, "owner": {"id": 74}, "assignee": {"id": 1077}}, "job": {"id": 392, "assignee": {"id": 1194}}, "organization": {"id": 185}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 373, "owner": {"id": 687}, "assignee": {"id": 569}, "project": {"id": 303, "owner": {"id": 720}, "assignee": {"id": 849}}, "task": {"id": 328, "owner": {"id": 1}, "assignee": {"id": 1090}}, "job": {"id": 349, "assignee": {"id": 1188}}, "organization": {"id": 152}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 677}, "assignee": {"id": 518}, "project": {"id": 397, "owner": {"id": 717}, "assignee": {"id": 869}}, "task": {"id": 360, "owner": {"id": 60}, "assignee": {"id": 1062}}, "job": {"id": 306, "assignee": {"id": 1186}}, "organization": {"id": 1250}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 646}, "assignee": {"id": 521}, "project": {"id": 368, "owner": {"id": 718}, "assignee": {"id": 808}}, "task": {"id": 317, "owner": {"id": 43}, "assignee": {"id": 1043}}, "job": {"id": 375, "assignee": {"id": 1185}}, "organization": {"id": 1297}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 333, "owner": {"id": 655}, "assignee": {"id": 525}, "project": {"id": 334, "owner": {"id": 767}, "assignee": {"id": 891}}, "task": {"id": 370, "owner": {"id": 43}, "assignee": {"id": 1039}}, "job": {"id": 346, "assignee": {"id": 1142}}, "organization": {"id": 188}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 351, "owner": {"id": 663}, "assignee": {"id": 510}, "project": {"id": 335, "owner": {"id": 738}, "assignee": {"id": 873}}, "task": {"id": 335, "owner": {"id": 26}, "assignee": {"id": 1000}}, "job": {"id": 322, "assignee": {"id": 1163}}, "organization": {"id": 143}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 656}, "assignee": {"id": 594}, "project": {"id": 340, "owner": {"id": 760}, "assignee": {"id": 803}}, "task": {"id": 329, "owner": {"id": 47}, "assignee": {"id": 1074}}, "job": {"id": 370, "assignee": {"id": 1161}}, "organization": {"id": 1247}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 377, "owner": {"id": 616}, "assignee": {"id": 587}, "project": {"id": 383, "owner": {"id": 782}, "assignee": {"id": 825}}, "task": {"id": 319, "owner": {"id": 19}, "assignee": {"id": 1085}}, "job": {"id": 332, "assignee": {"id": 1196}}, "organization": {"id": 1277}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "owner": {"id": 603}, "assignee": {"id": 504}, "project": {"id": 398, "owner": {"id": 756}, "assignee": {"id": 876}}, "task": {"id": 316, "owner": {"id": 16}, "assignee": {"id": 1070}}, "job": {"id": 301, "assignee": {"id": 1193}}, "organization": {"id": 156}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "owner": {"id": 637}, "assignee": {"id": 572}, "project": {"id": 329, "owner": {"id": 725}, "assignee": {"id": 849}}, "task": {"id": 309, "owner": {"id": 58}, "assignee": {"id": 1068}}, "job": {"id": 368, "assignee": {"id": 1104}}, "organization": {"id": 177}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "owner": {"id": 626}, "assignee": {"id": 547}, "project": {"id": 300, "owner": {"id": 702}, "assignee": {"id": 852}}, "task": {"id": 395, "owner": {"id": 55}, "assignee": {"id": 1078}}, "job": {"id": 307, "assignee": {"id": 1197}}, "organization": {"id": 1220}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 684}, "assignee": {"id": 591}, "project": {"id": 323, "owner": {"id": 739}, "assignee": {"id": 866}}, "task": {"id": 354, "owner": {"id": 50}, "assignee": {"id": 1001}}, "job": {"id": 343, "assignee": {"id": 1116}}, "organization": {"id": 1286}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"id": 369, "owner": {"id": 605}, "assignee": {"id": 545}, "project": {"id": 393, "owner": {"id": 785}, "assignee": {"id": 842}}, "task": {"id": 346, "owner": {"id": 24}, "assignee": {"id": 1026}}, "job": {"id": 353, "assignee": {"id": 1179}}, "organization": {"id": 148}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "owner": {"id": 639}, "assignee": {"id": 519}, "project": {"id": 371, "owner": {"id": 730}, "assignee": {"id": 805}}, "task": {"id": 359, "owner": {"id": 88}, "assignee": {"id": 1083}}, "job": {"id": 374, "assignee": {"id": 1190}}, "organization": {"id": 118}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "owner": {"id": 660}, "assignee": {"id": 533}, "project": {"id": 373, "owner": {"id": 703}, "assignee": {"id": 885}}, "task": {"id": 310, "owner": {"id": 8}, "assignee": {"id": 1077}}, "job": {"id": 305, "assignee": {"id": 1172}}, "organization": {"id": 1224}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 620}, "assignee": {"id": 512}, "project": {"id": 399, "owner": {"id": 752}, "assignee": {"id": 831}}, "task": {"id": 320, "owner": {"id": 0}, "assignee": {"id": 1032}}, "job": {"id": 346, "assignee": {"id": 1198}}, "organization": {"id": 1266}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 333, "owner": {"id": 614}, "assignee": {"id": 555}, "project": {"id": 393, "owner": {"id": 736}, "assignee": {"id": 801}}, "task": {"id": 359, "owner": {"id": 41}, "assignee": {"id": 1062}}, "job": {"id": 346, "assignee": {"id": 1148}}, "organization": {"id": 174}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 629}, "assignee": {"id": 500}, "project": {"id": 336, "owner": {"id": 752}, "assignee": {"id": 860}}, "task": {"id": 326, "owner": {"id": 76}, "assignee": {"id": 1011}}, "job": {"id": 399, "assignee": {"id": 1150}}, "organization": {"id": 146}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 672}, "assignee": {"id": 535}, "project": {"id": 324, "owner": {"id": 750}, "assignee": {"id": 830}}, "task": {"id": 390, "owner": {"id": 75}, "assignee": {"id": 1010}}, "job": {"id": 320, "assignee": {"id": 1117}}, "organization": {"id": 1259}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 614}, "assignee": {"id": 597}, "project": {"id": 358, "owner": {"id": 735}, "assignee": {"id": 825}}, "task": {"id": 330, "owner": {"id": 34}, "assignee": {"id": 1067}}, "job": {"id": 314, "assignee": {"id": 1134}}, "organization": {"id": 1269}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 372, "owner": {"id": 611}, "assignee": {"id": 590}, "project": {"id": 312, "owner": {"id": 752}, "assignee": {"id": 890}}, "task": {"id": 384, "owner": {"id": 76}, "assignee": {"id": 1017}}, "job": {"id": 382, "assignee": {"id": 1134}}, "organization": {"id": 176}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 383, "owner": {"id": 663}, "assignee": {"id": 512}, "project": {"id": 325, "owner": {"id": 760}, "assignee": {"id": 820}}, "task": {"id": 347, "owner": {"id": 32}, "assignee": {"id": 1010}}, "job": {"id": 343, "assignee": {"id": 1152}}, "organization": {"id": 139}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 319, "owner": {"id": 652}, "assignee": {"id": 561}, "project": {"id": 389, "owner": {"id": 786}, "assignee": {"id": 892}}, "task": {"id": 399, "owner": {"id": 13}, "assignee": {"id": 1073}}, "job": {"id": 379, "assignee": {"id": 1101}}, "organization": {"id": 1200}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 347, "owner": {"id": 613}, "assignee": {"id": 594}, "project": {"id": 374, "owner": {"id": 718}, "assignee": {"id": 850}}, "task": {"id": 344, "owner": {"id": 65}, "assignee": {"id": 1040}}, "job": {"id": 388, "assignee": {"id": 1145}}, "organization": {"id": 1206}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 300, "owner": {"id": 629}, "assignee": {"id": 531}, "project": {"id": 352, "owner": {"id": 799}, "assignee": {"id": 805}}, "task": {"id": 318, "owner": {"id": 25}, "assignee": {"id": 1033}}, "job": {"id": 312, "assignee": {"id": 1184}}, "organization": {"id": 183}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 399, "owner": {"id": 631}, "assignee": {"id": 524}, "project": {"id": 386, "owner": {"id": 785}, "assignee": {"id": 866}}, "task": {"id": 344, "owner": {"id": 70}, "assignee": {"id": 1060}}, "job": {"id": 383, "assignee": {"id": 1124}}, "organization": {"id": 172}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 609}, "assignee": {"id": 554}, "project": {"id": 389, "owner": {"id": 711}, "assignee": {"id": 883}}, "task": {"id": 343, "owner": {"id": 82}, "assignee": {"id": 1012}}, "job": {"id": 304, "assignee": {"id": 1112}}, "organization": {"id": 1232}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 684}, "assignee": {"id": 579}, "project": {"id": 329, "owner": {"id": 720}, "assignee": {"id": 851}}, "task": {"id": 306, "owner": {"id": 25}, "assignee": {"id": 1066}}, "job": {"id": 357, "assignee": {"id": 1106}}, "organization": {"id": 1239}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "owner": {"id": 612}, "assignee": {"id": 527}, "project": {"id": 398, "owner": {"id": 757}, "assignee": {"id": 850}}, "task": {"id": 327, "owner": {"id": 26}, "assignee": {"id": 1018}}, "job": {"id": 327, "assignee": {"id": 1115}}, "organization": {"id": 182}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "owner": {"id": 661}, "assignee": {"id": 508}, "project": {"id": 304, "owner": {"id": 767}, "assignee": {"id": 864}}, "task": {"id": 394, "owner": {"id": 81}, "assignee": {"id": 1064}}, "job": {"id": 351, "assignee": {"id": 1186}}, "organization": {"id": 165}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 321, "owner": {"id": 624}, "assignee": {"id": 511}, "project": {"id": 308, "owner": {"id": 748}, "assignee": {"id": 840}}, "task": {"id": 313, "owner": {"id": 28}, "assignee": {"id": 1003}}, "job": {"id": 358, "assignee": {"id": 1172}}, "organization": {"id": 1249}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "owner": {"id": 622}, "assignee": {"id": 542}, "project": {"id": 372, "owner": {"id": 767}, "assignee": {"id": 845}}, "task": {"id": 330, "owner": {"id": 22}, "assignee": {"id": 1027}}, "job": {"id": 312, "assignee": {"id": 1155}}, "organization": {"id": 1236}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 601}, "assignee": {"id": 564}, "project": {"id": 350, "owner": {"id": 787}, "assignee": {"id": 859}}, "task": {"id": 336, "owner": {"id": 21}, "assignee": {"id": 1027}}, "job": {"id": 381, "assignee": {"id": 1173}}, "organization": {"id": 131}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 647}, "assignee": {"id": 515}, "project": {"id": 317, "owner": {"id": 749}, "assignee": {"id": 888}}, "task": {"id": 304, "owner": {"id": 97}, "assignee": {"id": 1016}}, "job": {"id": 360, "assignee": {"id": 1146}}, "organization": {"id": 181}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 340, "owner": {"id": 629}, "assignee": {"id": 526}, "project": {"id": 392, "owner": {"id": 759}, "assignee": {"id": 850}}, "task": {"id": 386, "owner": {"id": 54}, "assignee": {"id": 1008}}, "job": {"id": 351, "assignee": {"id": 1188}}, "organization": {"id": 1227}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "owner": {"id": 699}, "assignee": {"id": 598}, "project": {"id": 327, "owner": {"id": 765}, "assignee": {"id": 856}}, "task": {"id": 303, "owner": {"id": 55}, "assignee": {"id": 1086}}, "job": {"id": 393, "assignee": {"id": 1116}}, "organization": {"id": 1279}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 341, "owner": {"id": 698}, "assignee": {"id": 536}, "project": {"id": 359, "owner": {"id": 766}, "assignee": {"id": 878}}, "task": {"id": 370, "owner": {"id": 52}, "assignee": {"id": 1027}}, "job": {"id": 319, "assignee": {"id": 1129}}, "organization": {"id": 160}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 371, "owner": {"id": 699}, "assignee": {"id": 587}, "project": {"id": 346, "owner": {"id": 732}, "assignee": {"id": 876}}, "task": {"id": 395, "owner": {"id": 35}, "assignee": {"id": 1071}}, "job": {"id": 371, "assignee": {"id": 1110}}, "organization": {"id": 127}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 373, "owner": {"id": 657}, "assignee": {"id": 508}, "project": {"id": 325, "owner": {"id": 703}, "assignee": {"id": 849}}, "task": {"id": 348, "owner": {"id": 10}, "assignee": {"id": 1088}}, "job": {"id": 365, "assignee": {"id": 1149}}, "organization": {"id": 1252}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 387, "owner": {"id": 690}, "assignee": {"id": 590}, "project": {"id": 397, "owner": {"id": 752}, "assignee": {"id": 812}}, "task": {"id": 309, "owner": {"id": 72}, "assignee": {"id": 1059}}, "job": {"id": 323, "assignee": {"id": 1104}}, "organization": {"id": 1225}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 336, "owner": {"id": 668}, "assignee": {"id": 596}, "project": {"id": 338, "owner": {"id": 744}, "assignee": {"id": 807}}, "task": {"id": 396, "owner": {"id": 95}, "assignee": {"id": 1099}}, "job": {"id": 385, "assignee": {"id": 1172}}, "organization": {"id": 100}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 629}, "assignee": {"id": 588}, "project": {"id": 361, "owner": {"id": 746}, "assignee": {"id": 850}}, "task": {"id": 391, "owner": {"id": 44}, "assignee": {"id": 1086}}, "job": {"id": 305, "assignee": {"id": 1136}}, "organization": {"id": 110}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 616}, "assignee": {"id": 503}, "project": {"id": 374, "owner": {"id": 766}, "assignee": {"id": 897}}, "task": {"id": 375, "owner": {"id": 84}, "assignee": {"id": 1042}}, "job": {"id": 383, "assignee": {"id": 1147}}, "organization": {"id": 1248}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 362, "owner": {"id": 627}, "assignee": {"id": 559}, "project": {"id": 347, "owner": {"id": 759}, "assignee": {"id": 821}}, "task": {"id": 365, "owner": {"id": 25}, "assignee": {"id": 1084}}, "job": {"id": 369, "assignee": {"id": 1111}}, "organization": {"id": 1218}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 319, "owner": {"id": 644}, "assignee": {"id": 541}, "project": {"id": 323, "owner": {"id": 727}, "assignee": {"id": 855}}, "task": {"id": 399, "owner": {"id": 995}, "assignee": {"id": 11}}, "job": {"id": 368, "assignee": {"id": 1147}}, "organization": {"id": 124}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 343, "owner": {"id": 685}, "assignee": {"id": 576}, "project": {"id": 370, "owner": {"id": 725}, "assignee": {"id": 837}}, "task": {"id": 372, "owner": {"id": 943}, "assignee": {"id": 34}}, "job": {"id": 365, "assignee": {"id": 1135}}, "organization": {"id": 144}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 374, "owner": {"id": 659}, "assignee": {"id": 554}, "project": {"id": 353, "owner": {"id": 790}, "assignee": {"id": 865}}, "task": {"id": 391, "owner": {"id": 954}, "assignee": {"id": 15}}, "job": {"id": 349, "assignee": {"id": 1129}}, "organization": {"id": 1283}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 337, "owner": {"id": 624}, "assignee": {"id": 506}, "project": {"id": 378, "owner": {"id": 771}, "assignee": {"id": 887}}, "task": {"id": 328, "owner": {"id": 913}, "assignee": {"id": 79}}, "job": {"id": 336, "assignee": {"id": 1175}}, "organization": {"id": 1209}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 683}, "assignee": {"id": 544}, "project": {"id": 324, "owner": {"id": 755}, "assignee": {"id": 837}}, "task": {"id": 345, "owner": {"id": 951}, "assignee": {"id": 95}}, "job": {"id": 358, "assignee": {"id": 1104}}, "organization": {"id": 141}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "owner": {"id": 622}, "assignee": {"id": 537}, "project": {"id": 307, "owner": {"id": 720}, "assignee": {"id": 837}}, "task": {"id": 381, "owner": {"id": 904}, "assignee": {"id": 59}}, "job": {"id": 388, "assignee": {"id": 1189}}, "organization": {"id": 148}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "owner": {"id": 699}, "assignee": {"id": 538}, "project": {"id": 322, "owner": {"id": 760}, "assignee": {"id": 870}}, "task": {"id": 353, "owner": {"id": 913}, "assignee": {"id": 36}}, "job": {"id": 368, "assignee": {"id": 1130}}, "organization": {"id": 1223}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 681}, "assignee": {"id": 564}, "project": {"id": 368, "owner": {"id": 731}, "assignee": {"id": 846}}, "task": {"id": 391, "owner": {"id": 982}, "assignee": {"id": 23}}, "job": {"id": 335, "assignee": {"id": 1133}}, "organization": {"id": 1210}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "owner": {"id": 620}, "assignee": {"id": 560}, "project": {"id": 363, "owner": {"id": 757}, "assignee": {"id": 818}}, "task": {"id": 372, "owner": {"id": 968}, "assignee": {"id": 37}}, "job": {"id": 320, "assignee": {"id": 1162}}, "organization": {"id": 156}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 621}, "assignee": {"id": 542}, "project": {"id": 344, "owner": {"id": 790}, "assignee": {"id": 845}}, "task": {"id": 333, "owner": {"id": 948}, "assignee": {"id": 70}}, "job": {"id": 319, "assignee": {"id": 1166}}, "organization": {"id": 168}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "owner": {"id": 648}, "assignee": {"id": 579}, "project": {"id": 394, "owner": {"id": 763}, "assignee": {"id": 824}}, "task": {"id": 311, "owner": {"id": 934}, "assignee": {"id": 8}}, "job": {"id": 302, "assignee": {"id": 1191}}, "organization": {"id": 1264}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 670}, "assignee": {"id": 530}, "project": {"id": 301, "owner": {"id": 764}, "assignee": {"id": 809}}, "task": {"id": 335, "owner": {"id": 925}, "assignee": {"id": 48}}, "job": {"id": 345, "assignee": {"id": 1155}}, "organization": {"id": 1254}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 329, "owner": {"id": 694}, "assignee": {"id": 594}, "project": {"id": 396, "owner": {"id": 785}, "assignee": {"id": 832}}, "task": {"id": 378, "owner": {"id": 922}, "assignee": {"id": 62}}, "job": {"id": 335, "assignee": {"id": 1110}}, "organization": {"id": 108}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 319, "owner": {"id": 654}, "assignee": {"id": 507}, "project": {"id": 343, "owner": {"id": 759}, "assignee": {"id": 893}}, "task": {"id": 377, "owner": {"id": 930}, "assignee": {"id": 83}}, "job": {"id": 391, "assignee": {"id": 1162}}, "organization": {"id": 129}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 371, "owner": {"id": 678}, "assignee": {"id": 590}, "project": {"id": 347, "owner": {"id": 752}, "assignee": {"id": 852}}, "task": {"id": 343, "owner": {"id": 946}, "assignee": {"id": 39}}, "job": {"id": 368, "assignee": {"id": 1198}}, "organization": {"id": 1295}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 354, "owner": {"id": 653}, "assignee": {"id": 546}, "project": {"id": 303, "owner": {"id": 703}, "assignee": {"id": 842}}, "task": {"id": 346, "owner": {"id": 923}, "assignee": {"id": 19}}, "job": {"id": 311, "assignee": {"id": 1139}}, "organization": {"id": 1251}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 693}, "assignee": {"id": 580}, "project": {"id": 300, "owner": {"id": 765}, "assignee": {"id": 821}}, "task": {"id": 335, "owner": {"id": 999}, "assignee": {"id": 57}}, "job": {"id": 340, "assignee": {"id": 1183}}, "organization": {"id": 182}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 316, "owner": {"id": 673}, "assignee": {"id": 519}, "project": {"id": 393, "owner": {"id": 710}, "assignee": {"id": 885}}, "task": {"id": 367, "owner": {"id": 967}, "assignee": {"id": 51}}, "job": {"id": 372, "assignee": {"id": 1124}}, "organization": {"id": 145}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 600}, "assignee": {"id": 592}, "project": {"id": 366, "owner": {"id": 775}, "assignee": {"id": 881}}, "task": {"id": 392, "owner": {"id": 979}, "assignee": {"id": 70}}, "job": {"id": 314, "assignee": {"id": 1110}}, "organization": {"id": 1292}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 646}, "assignee": {"id": 533}, "project": {"id": 353, "owner": {"id": 755}, "assignee": {"id": 881}}, "task": {"id": 394, "owner": {"id": 939}, "assignee": {"id": 19}}, "job": {"id": 368, "assignee": {"id": 1109}}, "organization": {"id": 1205}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 684}, "assignee": {"id": 531}, "project": {"id": 339, "owner": {"id": 775}, "assignee": {"id": 883}}, "task": {"id": 367, "owner": {"id": 902}, "assignee": {"id": 10}}, "job": {"id": 328, "assignee": {"id": 1179}}, "organization": {"id": 147}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 375, "owner": {"id": 631}, "assignee": {"id": 573}, "project": {"id": 385, "owner": {"id": 796}, "assignee": {"id": 817}}, "task": {"id": 313, "owner": {"id": 913}, "assignee": {"id": 63}}, "job": {"id": 350, "assignee": {"id": 1126}}, "organization": {"id": 135}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 323, "owner": {"id": 679}, "assignee": {"id": 526}, "project": {"id": 326, "owner": {"id": 707}, "assignee": {"id": 815}}, "task": {"id": 364, "owner": {"id": 929}, "assignee": {"id": 56}}, "job": {"id": 365, "assignee": {"id": 1171}}, "organization": {"id": 1262}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 632}, "assignee": {"id": 580}, "project": {"id": 319, "owner": {"id": 733}, "assignee": {"id": 829}}, "task": {"id": 394, "owner": {"id": 932}, "assignee": {"id": 92}}, "job": {"id": 347, "assignee": {"id": 1100}}, "organization": {"id": 1240}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "owner": {"id": 630}, "assignee": {"id": 537}, "project": {"id": 359, "owner": {"id": 731}, "assignee": {"id": 839}}, "task": {"id": 388, "owner": {"id": 924}, "assignee": {"id": 18}}, "job": {"id": 342, "assignee": {"id": 1111}}, "organization": {"id": 198}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 605}, "assignee": {"id": 592}, "project": {"id": 326, "owner": {"id": 760}, "assignee": {"id": 884}}, "task": {"id": 379, "owner": {"id": 952}, "assignee": {"id": 4}}, "job": {"id": 395, "assignee": {"id": 1199}}, "organization": {"id": 151}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 681}, "assignee": {"id": 500}, "project": {"id": 363, "owner": {"id": 707}, "assignee": {"id": 897}}, "task": {"id": 388, "owner": {"id": 924}, "assignee": {"id": 76}}, "job": {"id": 303, "assignee": {"id": 1145}}, "organization": {"id": 1213}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "owner": {"id": 646}, "assignee": {"id": 570}, "project": {"id": 398, "owner": {"id": 719}, "assignee": {"id": 831}}, "task": {"id": 318, "owner": {"id": 908}, "assignee": {"id": 8}}, "job": {"id": 393, "assignee": {"id": 1184}}, "organization": {"id": 1229}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "owner": {"id": 620}, "assignee": {"id": 505}, "project": {"id": 385, "owner": {"id": 700}, "assignee": {"id": 817}}, "task": {"id": 383, "owner": {"id": 966}, "assignee": {"id": 14}}, "job": {"id": 397, "assignee": {"id": 1161}}, "organization": {"id": 102}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 661}, "assignee": {"id": 529}, "project": {"id": 363, "owner": {"id": 724}, "assignee": {"id": 819}}, "task": {"id": 322, "owner": {"id": 997}, "assignee": {"id": 49}}, "job": {"id": 350, "assignee": {"id": 1190}}, "organization": {"id": 153}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 81, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 643}, "assignee": {"id": 566}, "project": {"id": 306, "owner": {"id": 750}, "assignee": {"id": 806}}, "task": {"id": 346, "owner": {"id": 987}, "assignee": {"id": 81}}, "job": {"id": 371, "assignee": {"id": 1155}}, "organization": {"id": 1246}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 642}, "assignee": {"id": 565}, "project": {"id": 359, "owner": {"id": 786}, "assignee": {"id": 868}}, "task": {"id": 388, "owner": {"id": 912}, "assignee": {"id": 62}}, "job": {"id": 346, "assignee": {"id": 1194}}, "organization": {"id": 1267}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 641}, "assignee": {"id": 516}, "project": {"id": 371, "owner": {"id": 700}, "assignee": {"id": 839}}, "task": {"id": 361, "owner": {"id": 921}, "assignee": {"id": 21}}, "job": {"id": 316, "assignee": {"id": 1122}}, "organization": {"id": 107}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 673}, "assignee": {"id": 594}, "project": {"id": 309, "owner": {"id": 789}, "assignee": {"id": 803}}, "task": {"id": 353, "owner": {"id": 997}, "assignee": {"id": 29}}, "job": {"id": 346, "assignee": {"id": 1193}}, "organization": {"id": 138}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 693}, "assignee": {"id": 545}, "project": {"id": 301, "owner": {"id": 725}, "assignee": {"id": 871}}, "task": {"id": 359, "owner": {"id": 992}, "assignee": {"id": 45}}, "job": {"id": 310, "assignee": {"id": 1163}}, "organization": {"id": 1247}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 330, "owner": {"id": 654}, "assignee": {"id": 576}, "project": {"id": 348, "owner": {"id": 752}, "assignee": {"id": 844}}, "task": {"id": 328, "owner": {"id": 901}, "assignee": {"id": 14}}, "job": {"id": 330, "assignee": {"id": 1155}}, "organization": {"id": 1228}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 362, "owner": {"id": 663}, "assignee": {"id": 566}, "project": {"id": 346, "owner": {"id": 786}, "assignee": {"id": 838}}, "task": {"id": 373, "owner": {"id": 935}, "assignee": {"id": 14}}, "job": {"id": 337, "assignee": {"id": 1123}}, "organization": {"id": 148}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 354, "owner": {"id": 617}, "assignee": {"id": 599}, "project": {"id": 353, "owner": {"id": 775}, "assignee": {"id": 870}}, "task": {"id": 326, "owner": {"id": 902}, "assignee": {"id": 50}}, "job": {"id": 395, "assignee": {"id": 1103}}, "organization": {"id": 177}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 322, "owner": {"id": 684}, "assignee": {"id": 517}, "project": {"id": 396, "owner": {"id": 765}, "assignee": {"id": 859}}, "task": {"id": 351, "owner": {"id": 939}, "assignee": {"id": 73}}, "job": {"id": 379, "assignee": {"id": 1102}}, "organization": {"id": 1278}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 688}, "assignee": {"id": 581}, "project": {"id": 351, "owner": {"id": 721}, "assignee": {"id": 835}}, "task": {"id": 388, "owner": {"id": 958}, "assignee": {"id": 1}}, "job": {"id": 333, "assignee": {"id": 1122}}, "organization": {"id": 1250}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 343, "owner": {"id": 627}, "assignee": {"id": 540}, "project": {"id": 367, "owner": {"id": 734}, "assignee": {"id": 856}}, "task": {"id": 370, "owner": {"id": 907}, "assignee": {"id": 11}}, "job": {"id": 303, "assignee": {"id": 1141}}, "organization": {"id": 182}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 390, "owner": {"id": 658}, "assignee": {"id": 595}, "project": {"id": 318, "owner": {"id": 719}, "assignee": {"id": 854}}, "task": {"id": 380, "owner": {"id": 961}, "assignee": {"id": 88}}, "job": {"id": 335, "assignee": {"id": 1102}}, "organization": {"id": 129}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 659}, "assignee": {"id": 530}, "project": {"id": 331, "owner": {"id": 722}, "assignee": {"id": 859}}, "task": {"id": 347, "owner": {"id": 954}, "assignee": {"id": 82}}, "job": {"id": 308, "assignee": {"id": 1157}}, "organization": {"id": 1270}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 647}, "assignee": {"id": 535}, "project": {"id": 385, "owner": {"id": 730}, "assignee": {"id": 877}}, "task": {"id": 346, "owner": {"id": 970}, "assignee": {"id": 34}}, "job": {"id": 361, "assignee": {"id": 1147}}, "organization": {"id": 1275}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 651}, "assignee": {"id": 586}, "project": {"id": 310, "owner": {"id": 723}, "assignee": {"id": 809}}, "task": {"id": 306, "owner": {"id": 984}, "assignee": {"id": 48}}, "job": {"id": 313, "assignee": {"id": 1107}}, "organization": {"id": 192}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "owner": {"id": 677}, "assignee": {"id": 586}, "project": {"id": 333, "owner": {"id": 795}, "assignee": {"id": 826}}, "task": {"id": 374, "owner": {"id": 904}, "assignee": {"id": 31}}, "job": {"id": 345, "assignee": {"id": 1181}}, "organization": {"id": 103}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "owner": {"id": 602}, "assignee": {"id": 509}, "project": {"id": 336, "owner": {"id": 761}, "assignee": {"id": 888}}, "task": {"id": 361, "owner": {"id": 968}, "assignee": {"id": 90}}, "job": {"id": 310, "assignee": {"id": 1161}}, "organization": {"id": 1215}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 696}, "assignee": {"id": 598}, "project": {"id": 375, "owner": {"id": 705}, "assignee": {"id": 882}}, "task": {"id": 391, "owner": {"id": 963}, "assignee": {"id": 88}}, "job": {"id": 395, "assignee": {"id": 1125}}, "organization": {"id": 1283}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 387, "owner": {"id": 684}, "assignee": {"id": 518}, "project": {"id": 352, "owner": {"id": 720}, "assignee": {"id": 843}}, "task": {"id": 371, "owner": {"id": 991}, "assignee": {"id": 6}}, "job": {"id": 380, "assignee": {"id": 1139}}, "organization": {"id": 145}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 690}, "assignee": {"id": 585}, "project": {"id": 357, "owner": {"id": 736}, "assignee": {"id": 838}}, "task": {"id": 328, "owner": {"id": 984}, "assignee": {"id": 34}}, "job": {"id": 346, "assignee": {"id": 1161}}, "organization": {"id": 126}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 633}, "assignee": {"id": 546}, "project": {"id": 372, "owner": {"id": 734}, "assignee": {"id": 865}}, "task": {"id": 383, "owner": {"id": 958}, "assignee": {"id": 75}}, "job": {"id": 333, "assignee": {"id": 1168}}, "organization": {"id": 1202}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 19, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "owner": {"id": 606}, "assignee": {"id": 507}, "project": {"id": 341, "owner": {"id": 715}, "assignee": {"id": 878}}, "task": {"id": 302, "owner": {"id": 979}, "assignee": {"id": 19}}, "job": {"id": 397, "assignee": {"id": 1136}}, "organization": {"id": 1226}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 390, "owner": {"id": 644}, "assignee": {"id": 580}, "project": {"id": 306, "owner": {"id": 761}, "assignee": {"id": 880}}, "task": {"id": 317, "owner": {"id": 964}, "assignee": {"id": 20}}, "job": {"id": 361, "assignee": {"id": 1138}}, "organization": {"id": 173}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 698}, "assignee": {"id": 520}, "project": {"id": 377, "owner": {"id": 799}, "assignee": {"id": 823}}, "task": {"id": 300, "owner": {"id": 922}, "assignee": {"id": 44}}, "job": {"id": 309, "assignee": {"id": 1174}}, "organization": {"id": 106}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 692}, "assignee": {"id": 568}, "project": {"id": 327, "owner": {"id": 786}, "assignee": {"id": 884}}, "task": {"id": 341, "owner": {"id": 913}, "assignee": {"id": 54}}, "job": {"id": 365, "assignee": {"id": 1121}}, "organization": {"id": 1241}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 606}, "assignee": {"id": 513}, "project": {"id": 304, "owner": {"id": 731}, "assignee": {"id": 879}}, "task": {"id": 379, "owner": {"id": 916}, "assignee": {"id": 92}}, "job": {"id": 319, "assignee": {"id": 1103}}, "organization": {"id": 1286}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 656}, "assignee": {"id": 572}, "project": {"id": 396, "owner": {"id": 704}, "assignee": {"id": 886}}, "task": {"id": 358, "owner": {"id": 920}, "assignee": {"id": 37}}, "job": {"id": 370, "assignee": {"id": 1126}}, "organization": {"id": 155}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 305, "owner": {"id": 641}, "assignee": {"id": 556}, "project": {"id": 375, "owner": {"id": 770}, "assignee": {"id": 831}}, "task": {"id": 333, "owner": {"id": 952}, "assignee": {"id": 94}}, "job": {"id": 366, "assignee": {"id": 1198}}, "organization": {"id": 180}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 333, "owner": {"id": 639}, "assignee": {"id": 523}, "project": {"id": 394, "owner": {"id": 756}, "assignee": {"id": 872}}, "task": {"id": 318, "owner": {"id": 960}, "assignee": {"id": 70}}, "job": {"id": 378, "assignee": {"id": 1177}}, "organization": {"id": 1228}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 670}, "assignee": {"id": 591}, "project": {"id": 358, "owner": {"id": 743}, "assignee": {"id": 890}}, "task": {"id": 335, "owner": {"id": 923}, "assignee": {"id": 27}}, "job": {"id": 300, "assignee": {"id": 1175}}, "organization": {"id": 1288}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 370, "owner": {"id": 636}, "assignee": {"id": 529}, "project": {"id": 395, "owner": {"id": 745}, "assignee": {"id": 865}}, "task": {"id": 349, "owner": {"id": 971}, "assignee": {"id": 52}}, "job": {"id": 355, "assignee": {"id": 1156}}, "organization": {"id": 195}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 369, "owner": {"id": 611}, "assignee": {"id": 518}, "project": {"id": 373, "owner": {"id": 727}, "assignee": {"id": 867}}, "task": {"id": 310, "owner": {"id": 965}, "assignee": {"id": 33}}, "job": {"id": 324, "assignee": {"id": 1124}}, "organization": {"id": 102}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 308, "owner": {"id": 619}, "assignee": {"id": 500}, "project": {"id": 319, "owner": {"id": 718}, "assignee": {"id": 800}}, "task": {"id": 388, "owner": {"id": 942}, "assignee": {"id": 12}}, "job": {"id": 380, "assignee": {"id": 1138}}, "organization": {"id": 1255}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 366, "owner": {"id": 624}, "assignee": {"id": 532}, "project": {"id": 335, "owner": {"id": 721}, "assignee": {"id": 896}}, "task": {"id": 337, "owner": {"id": 948}, "assignee": {"id": 97}}, "job": {"id": 390, "assignee": {"id": 1108}}, "organization": {"id": 1263}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 690}, "assignee": {"id": 593}, "project": {"id": 393, "owner": {"id": 785}, "assignee": {"id": 830}}, "task": {"id": 351, "owner": {"id": 977}, "assignee": {"id": 71}}, "job": {"id": 366, "assignee": {"id": 1167}}, "organization": {"id": 114}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 659}, "assignee": {"id": 500}, "project": {"id": 321, "owner": {"id": 751}, "assignee": {"id": 843}}, "task": {"id": 353, "owner": {"id": 961}, "assignee": {"id": 5}}, "job": {"id": 393, "assignee": {"id": 1114}}, "organization": {"id": 129}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 602}, "assignee": {"id": 568}, "project": {"id": 314, "owner": {"id": 793}, "assignee": {"id": 871}}, "task": {"id": 362, "owner": {"id": 984}, "assignee": {"id": 49}}, "job": {"id": 380, "assignee": {"id": 1119}}, "organization": {"id": 1207}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 622}, "assignee": {"id": 562}, "project": {"id": 389, "owner": {"id": 770}, "assignee": {"id": 865}}, "task": {"id": 330, "owner": {"id": 955}, "assignee": {"id": 44}}, "job": {"id": 372, "assignee": {"id": 1197}}, "organization": {"id": 1260}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 673}, "assignee": {"id": 541}, "project": {"id": 342, "owner": {"id": 726}, "assignee": {"id": 871}}, "task": {"id": 371, "owner": {"id": 901}, "assignee": {"id": 89}}, "job": {"id": 385, "assignee": {"id": 1161}}, "organization": {"id": 120}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 619}, "assignee": {"id": 589}, "project": {"id": 373, "owner": {"id": 701}, "assignee": {"id": 889}}, "task": {"id": 377, "owner": {"id": 942}, "assignee": {"id": 13}}, "job": {"id": 322, "assignee": {"id": 1179}}, "organization": {"id": 141}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 602}, "assignee": {"id": 571}, "project": {"id": 382, "owner": {"id": 787}, "assignee": {"id": 801}}, "task": {"id": 310, "owner": {"id": 969}, "assignee": {"id": 29}}, "job": {"id": 380, "assignee": {"id": 1181}}, "organization": {"id": 1295}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 675}, "assignee": {"id": 518}, "project": {"id": 376, "owner": {"id": 743}, "assignee": {"id": 859}}, "task": {"id": 382, "owner": {"id": 907}, "assignee": {"id": 48}}, "job": {"id": 306, "assignee": {"id": 1122}}, "organization": {"id": 1202}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 324, "owner": {"id": 629}, "assignee": {"id": 577}, "project": {"id": 310, "owner": {"id": 777}, "assignee": {"id": 859}}, "task": {"id": 306, "owner": {"id": 979}, "assignee": {"id": 36}}, "job": {"id": 330, "assignee": {"id": 1140}}, "organization": {"id": 189}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 392, "owner": {"id": 695}, "assignee": {"id": 555}, "project": {"id": 311, "owner": {"id": 732}, "assignee": {"id": 881}}, "task": {"id": 378, "owner": {"id": 923}, "assignee": {"id": 80}}, "job": {"id": 381, "assignee": {"id": 1164}}, "organization": {"id": 186}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 375, "owner": {"id": 689}, "assignee": {"id": 514}, "project": {"id": 353, "owner": {"id": 717}, "assignee": {"id": 811}}, "task": {"id": 377, "owner": {"id": 932}, "assignee": {"id": 72}}, "job": {"id": 375, "assignee": {"id": 1180}}, "organization": {"id": 1266}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 334, "owner": {"id": 657}, "assignee": {"id": 506}, "project": {"id": 301, "owner": {"id": 740}, "assignee": {"id": 875}}, "task": {"id": 344, "owner": {"id": 976}, "assignee": {"id": 56}}, "job": {"id": 302, "assignee": {"id": 1170}}, "organization": {"id": 1262}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 361, "owner": {"id": 667}, "assignee": {"id": 541}, "project": {"id": 374, "owner": {"id": 791}, "assignee": {"id": 832}}, "task": {"id": 387, "owner": {"id": 971}, "assignee": {"id": 39}}, "job": {"id": 362, "assignee": {"id": 1111}}, "organization": {"id": 128}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 609}, "assignee": {"id": 538}, "project": {"id": 384, "owner": {"id": 741}, "assignee": {"id": 854}}, "task": {"id": 356, "owner": {"id": 976}, "assignee": {"id": 47}}, "job": {"id": 333, "assignee": {"id": 1183}}, "organization": {"id": 160}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"id": 378, "owner": {"id": 669}, "assignee": {"id": 513}, "project": {"id": 316, "owner": {"id": 786}, "assignee": {"id": 851}}, "task": {"id": 380, "owner": {"id": 908}, "assignee": {"id": 12}}, "job": {"id": 352, "assignee": {"id": 1117}}, "organization": {"id": 1225}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 641}, "assignee": {"id": 569}, "project": {"id": 334, "owner": {"id": 765}, "assignee": {"id": 882}}, "task": {"id": 396, "owner": {"id": 988}, "assignee": {"id": 37}}, "job": {"id": 315, "assignee": {"id": 1125}}, "organization": {"id": 1220}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 321, "owner": {"id": 629}, "assignee": {"id": 541}, "project": {"id": 374, "owner": {"id": 793}, "assignee": {"id": 862}}, "task": {"id": 348, "owner": {"id": 937}, "assignee": {"id": 29}}, "job": {"id": 358, "assignee": {"id": 1177}}, "organization": {"id": 108}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 696}, "assignee": {"id": 584}, "project": {"id": 383, "owner": {"id": 755}, "assignee": {"id": 826}}, "task": {"id": 302, "owner": {"id": 923}, "assignee": {"id": 39}}, "job": {"id": 333, "assignee": {"id": 1130}}, "organization": {"id": 148}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 311, "owner": {"id": 640}, "assignee": {"id": 514}, "project": {"id": 358, "owner": {"id": 730}, "assignee": {"id": 856}}, "task": {"id": 360, "owner": {"id": 999}, "assignee": {"id": 86}}, "job": {"id": 387, "assignee": {"id": 1194}}, "organization": {"id": 1283}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 314, "owner": {"id": 610}, "assignee": {"id": 588}, "project": {"id": 384, "owner": {"id": 737}, "assignee": {"id": 838}}, "task": {"id": 341, "owner": {"id": 935}, "assignee": {"id": 40}}, "job": {"id": 390, "assignee": {"id": 1146}}, "organization": {"id": 1204}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "owner": {"id": 638}, "assignee": {"id": 550}, "project": {"id": 304, "owner": {"id": 764}, "assignee": {"id": 842}}, "task": {"id": 381, "owner": {"id": 924}, "assignee": {"id": 79}}, "job": {"id": 307, "assignee": {"id": 1128}}, "organization": {"id": 198}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "owner": {"id": 605}, "assignee": {"id": 525}, "project": {"id": 344, "owner": {"id": 792}, "assignee": {"id": 847}}, "task": {"id": 399, "owner": {"id": 969}, "assignee": {"id": 55}}, "job": {"id": 308, "assignee": {"id": 1135}}, "organization": {"id": 164}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "owner": {"id": 641}, "assignee": {"id": 523}, "project": {"id": 334, "owner": {"id": 721}, "assignee": {"id": 838}}, "task": {"id": 301, "owner": {"id": 977}, "assignee": {"id": 9}}, "job": {"id": 324, "assignee": {"id": 1107}}, "organization": {"id": 1232}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 61, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 301, "owner": {"id": 677}, "assignee": {"id": 576}, "project": {"id": 384, "owner": {"id": 747}, "assignee": {"id": 860}}, "task": {"id": 353, "owner": {"id": 928}, "assignee": {"id": 61}}, "job": {"id": 376, "assignee": {"id": 1116}}, "organization": {"id": 1278}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 602}, "assignee": {"id": 535}, "project": {"id": 325, "owner": {"id": 778}, "assignee": {"id": 866}}, "task": {"id": 308, "owner": {"id": 934}, "assignee": {"id": 81}}, "job": {"id": 300, "assignee": {"id": 1103}}, "organization": {"id": 173}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 641}, "assignee": {"id": 561}, "project": {"id": 365, "owner": {"id": 781}, "assignee": {"id": 898}}, "task": {"id": 362, "owner": {"id": 992}, "assignee": {"id": 97}}, "job": {"id": 390, "assignee": {"id": 1138}}, "organization": {"id": 132}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 380, "owner": {"id": 644}, "assignee": {"id": 530}, "project": {"id": 357, "owner": {"id": 760}, "assignee": {"id": 818}}, "task": {"id": 371, "owner": {"id": 925}, "assignee": {"id": 66}}, "job": {"id": 310, "assignee": {"id": 1195}}, "organization": {"id": 1229}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "owner": {"id": 684}, "assignee": {"id": 577}, "project": {"id": 393, "owner": {"id": 768}, "assignee": {"id": 861}}, "task": {"id": 383, "owner": {"id": 946}, "assignee": {"id": 72}}, "job": {"id": 316, "assignee": {"id": 1193}}, "organization": {"id": 1214}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 379, "owner": {"id": 625}, "assignee": {"id": 522}, "project": {"id": 321, "owner": {"id": 706}, "assignee": {"id": 880}}, "task": {"id": 371, "owner": {"id": 972}, "assignee": {"id": 63}}, "job": {"id": 314, "assignee": {"id": 1125}}, "organization": {"id": 173}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 661}, "assignee": {"id": 534}, "project": {"id": 352, "owner": {"id": 767}, "assignee": {"id": 889}}, "task": {"id": 350, "owner": {"id": 945}, "assignee": {"id": 8}}, "job": {"id": 316, "assignee": {"id": 1128}}, "organization": {"id": 103}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 396, "owner": {"id": 689}, "assignee": {"id": 510}, "project": {"id": 371, "owner": {"id": 760}, "assignee": {"id": 827}}, "task": {"id": 335, "owner": {"id": 966}, "assignee": {"id": 36}}, "job": {"id": 381, "assignee": {"id": 1120}}, "organization": {"id": 1205}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 394, "owner": {"id": 648}, "assignee": {"id": 568}, "project": {"id": 394, "owner": {"id": 766}, "assignee": {"id": 862}}, "task": {"id": 348, "owner": {"id": 960}, "assignee": {"id": 32}}, "job": {"id": 301, "assignee": {"id": 1139}}, "organization": {"id": 1235}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 345, "owner": {"id": 697}, "assignee": {"id": 579}, "project": {"id": 398, "owner": {"id": 737}, "assignee": {"id": 880}}, "task": {"id": 357, "owner": {"id": 944}, "assignee": {"id": 28}}, "job": {"id": 300, "assignee": {"id": 1102}}, "organization": {"id": 179}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 344, "owner": {"id": 672}, "assignee": {"id": 559}, "project": {"id": 375, "owner": {"id": 751}, "assignee": {"id": 849}}, "task": {"id": 346, "owner": {"id": 977}, "assignee": {"id": 93}}, "job": {"id": 356, "assignee": {"id": 1143}}, "organization": {"id": 136}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 647}, "assignee": {"id": 507}, "project": {"id": 321, "owner": {"id": 705}, "assignee": {"id": 848}}, "task": {"id": 367, "owner": {"id": 934}, "assignee": {"id": 29}}, "job": {"id": 314, "assignee": {"id": 1196}}, "organization": {"id": 1269}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 325, "owner": {"id": 609}, "assignee": {"id": 593}, "project": {"id": 366, "owner": {"id": 733}, "assignee": {"id": 820}}, "task": {"id": 348, "owner": {"id": 963}, "assignee": {"id": 34}}, "job": {"id": 362, "assignee": {"id": 1151}}, "organization": {"id": 1227}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 603}, "assignee": {"id": 514}, "project": {"id": 309, "owner": {"id": 745}, "assignee": {"id": 840}}, "task": {"id": 339, "owner": {"id": 971}, "assignee": {"id": 1000}}, "job": {"id": 370, "assignee": {"id": 44}}, "organization": {"id": 197}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 359, "owner": {"id": 694}, "assignee": {"id": 599}, "project": {"id": 333, "owner": {"id": 767}, "assignee": {"id": 832}}, "task": {"id": 332, "owner": {"id": 973}, "assignee": {"id": 1092}}, "job": {"id": 389, "assignee": {"id": 85}}, "organization": {"id": 189}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 617}, "assignee": {"id": 599}, "project": {"id": 304, "owner": {"id": 720}, "assignee": {"id": 810}}, "task": {"id": 384, "owner": {"id": 982}, "assignee": {"id": 1021}}, "job": {"id": 396, "assignee": {"id": 20}}, "organization": {"id": 1291}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 661}, "assignee": {"id": 534}, "project": {"id": 386, "owner": {"id": 774}, "assignee": {"id": 882}}, "task": {"id": 330, "owner": {"id": 936}, "assignee": {"id": 1031}}, "job": {"id": 342, "assignee": {"id": 8}}, "organization": {"id": 1295}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "owner": {"id": 683}, "assignee": {"id": 557}, "project": {"id": 306, "owner": {"id": 766}, "assignee": {"id": 801}}, "task": {"id": 323, "owner": {"id": 997}, "assignee": {"id": 1060}}, "job": {"id": 352, "assignee": {"id": 53}}, "organization": {"id": 154}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "owner": {"id": 620}, "assignee": {"id": 543}, "project": {"id": 361, "owner": {"id": 722}, "assignee": {"id": 821}}, "task": {"id": 370, "owner": {"id": 956}, "assignee": {"id": 1085}}, "job": {"id": 362, "assignee": {"id": 12}}, "organization": {"id": 139}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 640}, "assignee": {"id": 561}, "project": {"id": 309, "owner": {"id": 722}, "assignee": {"id": 857}}, "task": {"id": 326, "owner": {"id": 903}, "assignee": {"id": 1039}}, "job": {"id": 356, "assignee": {"id": 36}}, "organization": {"id": 1271}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "owner": {"id": 653}, "assignee": {"id": 516}, "project": {"id": 344, "owner": {"id": 762}, "assignee": {"id": 865}}, "task": {"id": 376, "owner": {"id": 946}, "assignee": {"id": 1001}}, "job": {"id": 330, "assignee": {"id": 23}}, "organization": {"id": 1250}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 683}, "assignee": {"id": 534}, "project": {"id": 379, "owner": {"id": 740}, "assignee": {"id": 824}}, "task": {"id": 310, "owner": {"id": 922}, "assignee": {"id": 1043}}, "job": {"id": 394, "assignee": {"id": 25}}, "organization": {"id": 144}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "owner": {"id": 691}, "assignee": {"id": 513}, "project": {"id": 317, "owner": {"id": 706}, "assignee": {"id": 806}}, "task": {"id": 381, "owner": {"id": 974}, "assignee": {"id": 1087}}, "job": {"id": 339, "assignee": {"id": 21}}, "organization": {"id": 152}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "owner": {"id": 602}, "assignee": {"id": 543}, "project": {"id": 356, "owner": {"id": 796}, "assignee": {"id": 830}}, "task": {"id": 326, "owner": {"id": 903}, "assignee": {"id": 1057}}, "job": {"id": 367, "assignee": {"id": 88}}, "organization": {"id": 1245}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 641}, "assignee": {"id": 514}, "project": {"id": 389, "owner": {"id": 744}, "assignee": {"id": 881}}, "task": {"id": 344, "owner": {"id": 940}, "assignee": {"id": 1092}}, "job": {"id": 390, "assignee": {"id": 95}}, "organization": {"id": 1212}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 334, "owner": {"id": 680}, "assignee": {"id": 576}, "project": {"id": 347, "owner": {"id": 739}, "assignee": {"id": 846}}, "task": {"id": 331, "owner": {"id": 946}, "assignee": {"id": 1090}}, "job": {"id": 382, "assignee": {"id": 94}}, "organization": {"id": 184}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 397, "owner": {"id": 634}, "assignee": {"id": 554}, "project": {"id": 357, "owner": {"id": 736}, "assignee": {"id": 880}}, "task": {"id": 345, "owner": {"id": 934}, "assignee": {"id": 1055}}, "job": {"id": 304, "assignee": {"id": 27}}, "organization": {"id": 152}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 343, "owner": {"id": 642}, "assignee": {"id": 502}, "project": {"id": 369, "owner": {"id": 711}, "assignee": {"id": 818}}, "task": {"id": 391, "owner": {"id": 940}, "assignee": {"id": 1010}}, "job": {"id": 389, "assignee": {"id": 78}}, "organization": {"id": 1286}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 395, "owner": {"id": 619}, "assignee": {"id": 528}, "project": {"id": 319, "owner": {"id": 723}, "assignee": {"id": 876}}, "task": {"id": 355, "owner": {"id": 901}, "assignee": {"id": 1029}}, "job": {"id": 374, "assignee": {"id": 67}}, "organization": {"id": 1285}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 641}, "assignee": {"id": 588}, "project": {"id": 371, "owner": {"id": 721}, "assignee": {"id": 829}}, "task": {"id": 309, "owner": {"id": 907}, "assignee": {"id": 1030}}, "job": {"id": 394, "assignee": {"id": 55}}, "organization": {"id": 170}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 650}, "assignee": {"id": 517}, "project": {"id": 359, "owner": {"id": 755}, "assignee": {"id": 808}}, "task": {"id": 340, "owner": {"id": 980}, "assignee": {"id": 1042}}, "job": {"id": 322, "assignee": {"id": 24}}, "organization": {"id": 141}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 662}, "assignee": {"id": 543}, "project": {"id": 391, "owner": {"id": 711}, "assignee": {"id": 890}}, "task": {"id": 376, "owner": {"id": 968}, "assignee": {"id": 1011}}, "job": {"id": 382, "assignee": {"id": 70}}, "organization": {"id": 1203}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 323, "owner": {"id": 668}, "assignee": {"id": 524}, "project": {"id": 365, "owner": {"id": 765}, "assignee": {"id": 881}}, "task": {"id": 331, "owner": {"id": 963}, "assignee": {"id": 1060}}, "job": {"id": 323, "assignee": {"id": 58}}, "organization": {"id": 1255}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 345, "owner": {"id": 608}, "assignee": {"id": 527}, "project": {"id": 313, "owner": {"id": 728}, "assignee": {"id": 861}}, "task": {"id": 367, "owner": {"id": 902}, "assignee": {"id": 1044}}, "job": {"id": 363, "assignee": {"id": 11}}, "organization": {"id": 199}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 315, "owner": {"id": 620}, "assignee": {"id": 513}, "project": {"id": 304, "owner": {"id": 768}, "assignee": {"id": 885}}, "task": {"id": 391, "owner": {"id": 931}, "assignee": {"id": 1003}}, "job": {"id": 385, "assignee": {"id": 53}}, "organization": {"id": 169}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 317, "owner": {"id": 670}, "assignee": {"id": 596}, "project": {"id": 322, "owner": {"id": 710}, "assignee": {"id": 826}}, "task": {"id": 312, "owner": {"id": 984}, "assignee": {"id": 1052}}, "job": {"id": 396, "assignee": {"id": 50}}, "organization": {"id": 1233}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 314, "owner": {"id": 641}, "assignee": {"id": 542}, "project": {"id": 360, "owner": {"id": 715}, "assignee": {"id": 808}}, "task": {"id": 331, "owner": {"id": 968}, "assignee": {"id": 1062}}, "job": {"id": 324, "assignee": {"id": 32}}, "organization": {"id": 1205}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "owner": {"id": 618}, "assignee": {"id": 534}, "project": {"id": 318, "owner": {"id": 744}, "assignee": {"id": 818}}, "task": {"id": 392, "owner": {"id": 976}, "assignee": {"id": 1089}}, "job": {"id": 361, "assignee": {"id": 18}}, "organization": {"id": 116}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "owner": {"id": 634}, "assignee": {"id": 566}, "project": {"id": 347, "owner": {"id": 769}, "assignee": {"id": 831}}, "task": {"id": 334, "owner": {"id": 903}, "assignee": {"id": 1060}}, "job": {"id": 367, "assignee": {"id": 21}}, "organization": {"id": 192}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "owner": {"id": 698}, "assignee": {"id": 587}, "project": {"id": 315, "owner": {"id": 767}, "assignee": {"id": 804}}, "task": {"id": 382, "owner": {"id": 980}, "assignee": {"id": 1084}}, "job": {"id": 304, "assignee": {"id": 37}}, "organization": {"id": 1262}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "owner": {"id": 674}, "assignee": {"id": 546}, "project": {"id": 380, "owner": {"id": 788}, "assignee": {"id": 899}}, "task": {"id": 340, "owner": {"id": 969}, "assignee": {"id": 1022}}, "job": {"id": 358, "assignee": {"id": 50}}, "organization": {"id": 1263}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 324, "owner": {"id": 649}, "assignee": {"id": 577}, "project": {"id": 396, "owner": {"id": 720}, "assignee": {"id": 850}}, "task": {"id": 342, "owner": {"id": 901}, "assignee": {"id": 1035}}, "job": {"id": 362, "assignee": {"id": 22}}, "organization": {"id": 193}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "owner": {"id": 638}, "assignee": {"id": 503}, "project": {"id": 357, "owner": {"id": 749}, "assignee": {"id": 895}}, "task": {"id": 375, "owner": {"id": 935}, "assignee": {"id": 1093}}, "job": {"id": 392, "assignee": {"id": 91}}, "organization": {"id": 189}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "owner": {"id": 617}, "assignee": {"id": 597}, "project": {"id": 363, "owner": {"id": 748}, "assignee": {"id": 874}}, "task": {"id": 325, "owner": {"id": 901}, "assignee": {"id": 1000}}, "job": {"id": 319, "assignee": {"id": 98}}, "organization": {"id": 1255}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 694}, "assignee": {"id": 595}, "project": {"id": 323, "owner": {"id": 756}, "assignee": {"id": 848}}, "task": {"id": 395, "owner": {"id": 922}, "assignee": {"id": 1062}}, "job": {"id": 387, "assignee": {"id": 95}}, "organization": {"id": 1267}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 332, "owner": {"id": 633}, "assignee": {"id": 553}, "project": {"id": 311, "owner": {"id": 776}, "assignee": {"id": 883}}, "task": {"id": 392, "owner": {"id": 953}, "assignee": {"id": 1075}}, "job": {"id": 323, "assignee": {"id": 29}}, "organization": {"id": 161}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 332, "owner": {"id": 605}, "assignee": {"id": 566}, "project": {"id": 329, "owner": {"id": 754}, "assignee": {"id": 818}}, "task": {"id": 304, "owner": {"id": 973}, "assignee": {"id": 1074}}, "job": {"id": 375, "assignee": {"id": 88}}, "organization": {"id": 167}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 310, "owner": {"id": 696}, "assignee": {"id": 502}, "project": {"id": 394, "owner": {"id": 707}, "assignee": {"id": 828}}, "task": {"id": 300, "owner": {"id": 977}, "assignee": {"id": 1032}}, "job": {"id": 361, "assignee": {"id": 53}}, "organization": {"id": 1291}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"id": 311, "owner": {"id": 632}, "assignee": {"id": 550}, "project": {"id": 307, "owner": {"id": 745}, "assignee": {"id": 811}}, "task": {"id": 330, "owner": {"id": 970}, "assignee": {"id": 1028}}, "job": {"id": 328, "assignee": {"id": 75}}, "organization": {"id": 1273}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 648}, "assignee": {"id": 541}, "project": {"id": 301, "owner": {"id": 766}, "assignee": {"id": 889}}, "task": {"id": 390, "owner": {"id": 948}, "assignee": {"id": 1037}}, "job": {"id": 339, "assignee": {"id": 24}}, "organization": {"id": 103}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 379, "owner": {"id": 676}, "assignee": {"id": 509}, "project": {"id": 347, "owner": {"id": 722}, "assignee": {"id": 830}}, "task": {"id": 387, "owner": {"id": 958}, "assignee": {"id": 1003}}, "job": {"id": 354, "assignee": {"id": 23}}, "organization": {"id": 129}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 336, "owner": {"id": 609}, "assignee": {"id": 522}, "project": {"id": 308, "owner": {"id": 789}, "assignee": {"id": 813}}, "task": {"id": 349, "owner": {"id": 961}, "assignee": {"id": 1077}}, "job": {"id": 335, "assignee": {"id": 38}}, "organization": {"id": 1258}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 328, "owner": {"id": 634}, "assignee": {"id": 596}, "project": {"id": 365, "owner": {"id": 733}, "assignee": {"id": 878}}, "task": {"id": 369, "owner": {"id": 923}, "assignee": {"id": 1068}}, "job": {"id": 387, "assignee": {"id": 75}}, "organization": {"id": 1288}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 381, "owner": {"id": 666}, "assignee": {"id": 598}, "project": {"id": 351, "owner": {"id": 711}, "assignee": {"id": 811}}, "task": {"id": 382, "owner": {"id": 976}, "assignee": {"id": 1099}}, "job": {"id": 375, "assignee": {"id": 17}}, "organization": {"id": 199}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 308, "owner": {"id": 655}, "assignee": {"id": 571}, "project": {"id": 358, "owner": {"id": 722}, "assignee": {"id": 878}}, "task": {"id": 335, "owner": {"id": 900}, "assignee": {"id": 1051}}, "job": {"id": 301, "assignee": {"id": 34}}, "organization": {"id": 122}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 668}, "assignee": {"id": 500}, "project": {"id": 386, "owner": {"id": 731}, "assignee": {"id": 839}}, "task": {"id": 379, "owner": {"id": 990}, "assignee": {"id": 1020}}, "job": {"id": 324, "assignee": {"id": 5}}, "organization": {"id": 1206}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 313, "owner": {"id": 611}, "assignee": {"id": 566}, "project": {"id": 323, "owner": {"id": 732}, "assignee": {"id": 801}}, "task": {"id": 300, "owner": {"id": 980}, "assignee": {"id": 1096}}, "job": {"id": 385, "assignee": {"id": 4}}, "organization": {"id": 1279}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "owner": {"id": 697}, "assignee": {"id": 537}, "project": {"id": 391, "owner": {"id": 791}, "assignee": {"id": 887}}, "task": {"id": 332, "owner": {"id": 967}, "assignee": {"id": 1051}}, "job": {"id": 325, "assignee": {"id": 68}}, "organization": {"id": 195}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "owner": {"id": 677}, "assignee": {"id": 575}, "project": {"id": 391, "owner": {"id": 782}, "assignee": {"id": 805}}, "task": {"id": 311, "owner": {"id": 936}, "assignee": {"id": 1026}}, "job": {"id": 301, "assignee": {"id": 82}}, "organization": {"id": 166}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "owner": {"id": 670}, "assignee": {"id": 599}, "project": {"id": 306, "owner": {"id": 710}, "assignee": {"id": 840}}, "task": {"id": 337, "owner": {"id": 987}, "assignee": {"id": 1028}}, "job": {"id": 395, "assignee": {"id": 13}}, "organization": {"id": 1223}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "owner": {"id": 685}, "assignee": {"id": 505}, "project": {"id": 347, "owner": {"id": 739}, "assignee": {"id": 871}}, "task": {"id": 309, "owner": {"id": 913}, "assignee": {"id": 1083}}, "job": {"id": 341, "assignee": {"id": 33}}, "organization": {"id": 1292}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "owner": {"id": 676}, "assignee": {"id": 502}, "project": {"id": 388, "owner": {"id": 727}, "assignee": {"id": 823}}, "task": {"id": 377, "owner": {"id": 968}, "assignee": {"id": 1034}}, "job": {"id": 317, "assignee": {"id": 96}}, "organization": {"id": 171}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "owner": {"id": 627}, "assignee": {"id": 546}, "project": {"id": 345, "owner": {"id": 735}, "assignee": {"id": 867}}, "task": {"id": 322, "owner": {"id": 917}, "assignee": {"id": 1071}}, "job": {"id": 337, "assignee": {"id": 79}}, "organization": {"id": 118}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 668}, "assignee": {"id": 550}, "project": {"id": 342, "owner": {"id": 732}, "assignee": {"id": 868}}, "task": {"id": 365, "owner": {"id": 959}, "assignee": {"id": 1081}}, "job": {"id": 327, "assignee": {"id": 32}}, "organization": {"id": 1285}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "owner": {"id": 689}, "assignee": {"id": 507}, "project": {"id": 336, "owner": {"id": 770}, "assignee": {"id": 825}}, "task": {"id": 392, "owner": {"id": 934}, "assignee": {"id": 1083}}, "job": {"id": 358, "assignee": {"id": 24}}, "organization": {"id": 1280}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 366, "owner": {"id": 632}, "assignee": {"id": 536}, "project": {"id": 320, "owner": {"id": 706}, "assignee": {"id": 894}}, "task": {"id": 306, "owner": {"id": 924}, "assignee": {"id": 1096}}, "job": {"id": 303, "assignee": {"id": 92}}, "organization": {"id": 149}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 318, "owner": {"id": 623}, "assignee": {"id": 593}, "project": {"id": 312, "owner": {"id": 736}, "assignee": {"id": 836}}, "task": {"id": 329, "owner": {"id": 980}, "assignee": {"id": 1029}}, "job": {"id": 393, "assignee": {"id": 64}}, "organization": {"id": 145}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 621}, "assignee": {"id": 533}, "project": {"id": 324, "owner": {"id": 721}, "assignee": {"id": 804}}, "task": {"id": 358, "owner": {"id": 952}, "assignee": {"id": 1008}}, "job": {"id": 356, "assignee": {"id": 55}}, "organization": {"id": 1276}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 340, "owner": {"id": 643}, "assignee": {"id": 574}, "project": {"id": 384, "owner": {"id": 732}, "assignee": {"id": 822}}, "task": {"id": 383, "owner": {"id": 977}, "assignee": {"id": 1091}}, "job": {"id": 336, "assignee": {"id": 87}}, "organization": {"id": 1235}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 381, "owner": {"id": 601}, "assignee": {"id": 554}, "project": {"id": 381, "owner": {"id": 728}, "assignee": {"id": 809}}, "task": {"id": 311, "owner": {"id": 920}, "assignee": {"id": 1043}}, "job": {"id": 306, "assignee": {"id": 80}}, "organization": {"id": 184}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 379, "owner": {"id": 667}, "assignee": {"id": 568}, "project": {"id": 381, "owner": {"id": 722}, "assignee": {"id": 837}}, "task": {"id": 301, "owner": {"id": 977}, "assignee": {"id": 1058}}, "job": {"id": 342, "assignee": {"id": 36}}, "organization": {"id": 127}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 341, "owner": {"id": 607}, "assignee": {"id": 531}, "project": {"id": 342, "owner": {"id": 739}, "assignee": {"id": 883}}, "task": {"id": 304, "owner": {"id": 912}, "assignee": {"id": 1071}}, "job": {"id": 367, "assignee": {"id": 3}}, "organization": {"id": 1269}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 360, "owner": {"id": 673}, "assignee": {"id": 533}, "project": {"id": 353, "owner": {"id": 744}, "assignee": {"id": 805}}, "task": {"id": 325, "owner": {"id": 901}, "assignee": {"id": 1002}}, "job": {"id": 305, "assignee": {"id": 16}}, "organization": {"id": 1296}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 383, "owner": {"id": 657}, "assignee": {"id": 520}, "project": {"id": 319, "owner": {"id": 718}, "assignee": {"id": 835}}, "task": {"id": 320, "owner": {"id": 994}, "assignee": {"id": 1058}}, "job": {"id": 390, "assignee": {"id": 92}}, "organization": {"id": 117}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 306, "owner": {"id": 676}, "assignee": {"id": 589}, "project": {"id": 303, "owner": {"id": 794}, "assignee": {"id": 828}}, "task": {"id": 353, "owner": {"id": 931}, "assignee": {"id": 1046}}, "job": {"id": 305, "assignee": {"id": 50}}, "organization": {"id": 177}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 367, "owner": {"id": 671}, "assignee": {"id": 596}, "project": {"id": 359, "owner": {"id": 717}, "assignee": {"id": 841}}, "task": {"id": 310, "owner": {"id": 913}, "assignee": {"id": 1075}}, "job": {"id": 337, "assignee": {"id": 6}}, "organization": {"id": 1256}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 302, "owner": {"id": 650}, "assignee": {"id": 503}, "project": {"id": 364, "owner": {"id": 722}, "assignee": {"id": 802}}, "task": {"id": 382, "owner": {"id": 935}, "assignee": {"id": 1006}}, "job": {"id": 380, "assignee": {"id": 0}}, "organization": {"id": 1292}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "owner": {"id": 659}, "assignee": {"id": 522}, "project": {"id": 327, "owner": {"id": 753}, "assignee": {"id": 806}}, "task": {"id": 349, "owner": {"id": 942}, "assignee": {"id": 1015}}, "job": {"id": 316, "assignee": {"id": 21}}, "organization": {"id": 106}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "owner": {"id": 689}, "assignee": {"id": 594}, "project": {"id": 337, "owner": {"id": 768}, "assignee": {"id": 884}}, "task": {"id": 315, "owner": {"id": 979}, "assignee": {"id": 1022}}, "job": {"id": 341, "assignee": {"id": 48}}, "organization": {"id": 163}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "owner": {"id": 644}, "assignee": {"id": 521}, "project": {"id": 314, "owner": {"id": 735}, "assignee": {"id": 899}}, "task": {"id": 314, "owner": {"id": 932}, "assignee": {"id": 1037}}, "job": {"id": 366, "assignee": {"id": 82}}, "organization": {"id": 1223}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 656}, "assignee": {"id": 560}, "project": {"id": 339, "owner": {"id": 765}, "assignee": {"id": 880}}, "task": {"id": 348, "owner": {"id": 915}, "assignee": {"id": 1029}}, "job": {"id": 317, "assignee": {"id": 39}}, "organization": {"id": 1208}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "owner": {"id": 687}, "assignee": {"id": 528}, "project": {"id": 361, "owner": {"id": 735}, "assignee": {"id": 850}}, "task": {"id": 359, "owner": {"id": 962}, "assignee": {"id": 1049}}, "job": {"id": 330, "assignee": {"id": 85}}, "organization": {"id": 147}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 638}, "assignee": {"id": 576}, "project": {"id": 341, "owner": {"id": 735}, "assignee": {"id": 838}}, "task": {"id": 318, "owner": {"id": 959}, "assignee": {"id": 1074}}, "job": {"id": 363, "assignee": {"id": 20}}, "organization": {"id": 173}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "owner": {"id": 628}, "assignee": {"id": 526}, "project": {"id": 385, "owner": {"id": 756}, "assignee": {"id": 882}}, "task": {"id": 376, "owner": {"id": 925}, "assignee": {"id": 1017}}, "job": {"id": 307, "assignee": {"id": 78}}, "organization": {"id": 1280}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "owner": {"id": 642}, "assignee": {"id": 509}, "project": {"id": 336, "owner": {"id": 716}, "assignee": {"id": 856}}, "task": {"id": 370, "owner": {"id": 906}, "assignee": {"id": 1047}}, "job": {"id": 352, "assignee": {"id": 60}}, "organization": {"id": 1265}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 355, "owner": {"id": 643}, "assignee": {"id": 575}, "project": {"id": 381, "owner": {"id": 789}, "assignee": {"id": 897}}, "task": {"id": 361, "owner": {"id": 951}, "assignee": {"id": 1015}}, "job": {"id": 355, "assignee": {"id": 54}}, "organization": {"id": 182}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 377, "owner": {"id": 696}, "assignee": {"id": 587}, "project": {"id": 336, "owner": {"id": 710}, "assignee": {"id": 871}}, "task": {"id": 343, "owner": {"id": 901}, "assignee": {"id": 1003}}, "job": {"id": 320, "assignee": {"id": 1}}, "organization": {"id": 139}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 346, "owner": {"id": 603}, "assignee": {"id": 515}, "project": {"id": 333, "owner": {"id": 766}, "assignee": {"id": 870}}, "task": {"id": 357, "owner": {"id": 905}, "assignee": {"id": 1053}}, "job": {"id": 375, "assignee": {"id": 7}}, "organization": {"id": 1263}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 351, "owner": {"id": 638}, "assignee": {"id": 528}, "project": {"id": 371, "owner": {"id": 725}, "assignee": {"id": 879}}, "task": {"id": 312, "owner": {"id": 905}, "assignee": {"id": 1096}}, "job": {"id": 334, "assignee": {"id": 21}}, "organization": {"id": 1246}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 687}, "assignee": {"id": 536}, "project": {"id": 353, "owner": {"id": 714}, "assignee": {"id": 801}}, "task": {"id": 378, "owner": {"id": 988}, "assignee": {"id": 1004}}, "job": {"id": 303, "assignee": {"id": 31}}, "organization": {"id": 133}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 361, "owner": {"id": 625}, "assignee": {"id": 512}, "project": {"id": 311, "owner": {"id": 744}, "assignee": {"id": 869}}, "task": {"id": 351, "owner": {"id": 969}, "assignee": {"id": 1038}}, "job": {"id": 369, "assignee": {"id": 28}}, "organization": {"id": 115}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 303, "owner": {"id": 606}, "assignee": {"id": 573}, "project": {"id": 390, "owner": {"id": 722}, "assignee": {"id": 858}}, "task": {"id": 337, "owner": {"id": 929}, "assignee": {"id": 1038}}, "job": {"id": 348, "assignee": {"id": 45}}, "organization": {"id": 1216}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 612}, "assignee": {"id": 541}, "project": {"id": 307, "owner": {"id": 788}, "assignee": {"id": 800}}, "task": {"id": 311, "owner": {"id": 945}, "assignee": {"id": 1085}}, "job": {"id": 377, "assignee": {"id": 93}}, "organization": {"id": 1261}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 308, "owner": {"id": 655}, "assignee": {"id": 529}, "project": {"id": 330, "owner": {"id": 740}, "assignee": {"id": 832}}, "task": {"id": 382, "owner": {"id": 932}, "assignee": {"id": 1028}}, "job": {"id": 308, "assignee": {"id": 4}}, "organization": {"id": 177}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 306, "owner": {"id": 689}, "assignee": {"id": 526}, "project": {"id": 356, "owner": {"id": 730}, "assignee": {"id": 829}}, "task": {"id": 332, "owner": {"id": 950}, "assignee": {"id": 1033}}, "job": {"id": 339, "assignee": {"id": 70}}, "organization": {"id": 140}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 691}, "assignee": {"id": 599}, "project": {"id": 350, "owner": {"id": 717}, "assignee": {"id": 875}}, "task": {"id": 378, "owner": {"id": 906}, "assignee": {"id": 1088}}, "job": {"id": 393, "assignee": {"id": 57}}, "organization": {"id": 1284}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 382, "owner": {"id": 661}, "assignee": {"id": 599}, "project": {"id": 320, "owner": {"id": 768}, "assignee": {"id": 883}}, "task": {"id": 351, "owner": {"id": 955}, "assignee": {"id": 1062}}, "job": {"id": 331, "assignee": {"id": 31}}, "organization": {"id": 1263}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "owner": {"id": 616}, "assignee": {"id": 543}, "project": {"id": 332, "owner": {"id": 780}, "assignee": {"id": 869}}, "task": {"id": 335, "owner": {"id": 946}, "assignee": {"id": 1005}}, "job": {"id": 367, "assignee": {"id": 67}}, "organization": {"id": 105}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 616}, "assignee": {"id": 583}, "project": {"id": 377, "owner": {"id": 763}, "assignee": {"id": 864}}, "task": {"id": 369, "owner": {"id": 996}, "assignee": {"id": 1029}}, "job": {"id": 344, "assignee": {"id": 29}}, "organization": {"id": 170}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 633}, "assignee": {"id": 577}, "project": {"id": 354, "owner": {"id": 731}, "assignee": {"id": 849}}, "task": {"id": 356, "owner": {"id": 967}, "assignee": {"id": 1026}}, "job": {"id": 351, "assignee": {"id": 54}}, "organization": {"id": 1229}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "owner": {"id": 633}, "assignee": {"id": 596}, "project": {"id": 374, "owner": {"id": 781}, "assignee": {"id": 828}}, "task": {"id": 339, "owner": {"id": 999}, "assignee": {"id": 1040}}, "job": {"id": 321, "assignee": {"id": 40}}, "organization": {"id": 1229}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "owner": {"id": 673}, "assignee": {"id": 561}, "project": {"id": 367, "owner": {"id": 771}, "assignee": {"id": 864}}, "task": {"id": 380, "owner": {"id": 930}, "assignee": {"id": 1094}}, "job": {"id": 376, "assignee": {"id": 38}}, "organization": {"id": 187}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "owner": {"id": 653}, "assignee": {"id": 543}, "project": {"id": 339, "owner": {"id": 722}, "assignee": {"id": 810}}, "task": {"id": 355, "owner": {"id": 944}, "assignee": {"id": 1031}}, "job": {"id": 336, "assignee": {"id": 45}}, "organization": {"id": 169}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 694}, "assignee": {"id": 597}, "project": {"id": 302, "owner": {"id": 764}, "assignee": {"id": 805}}, "task": {"id": 303, "owner": {"id": 958}, "assignee": {"id": 1005}}, "job": {"id": 382, "assignee": {"id": 77}}, "organization": {"id": 1279}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "owner": {"id": 650}, "assignee": {"id": 504}, "project": {"id": 309, "owner": {"id": 706}, "assignee": {"id": 853}}, "task": {"id": 381, "owner": {"id": 977}, "assignee": {"id": 1060}}, "job": {"id": 392, "assignee": {"id": 72}}, "organization": {"id": 1272}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 665}, "assignee": {"id": 557}, "project": {"id": 377, "owner": {"id": 778}, "assignee": {"id": 823}}, "task": {"id": 385, "owner": {"id": 916}, "assignee": {"id": 1061}}, "job": {"id": 357, "assignee": {"id": 25}}, "organization": {"id": 175}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 378, "owner": {"id": 620}, "assignee": {"id": 513}, "project": {"id": 334, "owner": {"id": 741}, "assignee": {"id": 827}}, "task": {"id": 390, "owner": {"id": 929}, "assignee": {"id": 1011}}, "job": {"id": 384, "assignee": {"id": 70}}, "organization": {"id": 122}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 384, "owner": {"id": 644}, "assignee": {"id": 587}, "project": {"id": 390, "owner": {"id": 792}, "assignee": {"id": 885}}, "task": {"id": 328, "owner": {"id": 913}, "assignee": {"id": 1032}}, "job": {"id": 384, "assignee": {"id": 52}}, "organization": {"id": 1277}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 330, "owner": {"id": 645}, "assignee": {"id": 578}, "project": {"id": 396, "owner": {"id": 794}, "assignee": {"id": 859}}, "task": {"id": 316, "owner": {"id": 954}, "assignee": {"id": 1038}}, "job": {"id": 324, "assignee": {"id": 7}}, "organization": {"id": 1268}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 684}, "assignee": {"id": 531}, "project": {"id": 377, "owner": {"id": 746}, "assignee": {"id": 895}}, "task": {"id": 335, "owner": {"id": 924}, "assignee": {"id": 1060}}, "job": {"id": 373, "assignee": {"id": 38}}, "organization": {"id": 107}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 667}, "assignee": {"id": 549}, "project": {"id": 328, "owner": {"id": 767}, "assignee": {"id": 884}}, "task": {"id": 386, "owner": {"id": 993}, "assignee": {"id": 1040}}, "job": {"id": 329, "assignee": {"id": 75}}, "organization": {"id": 133}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 663}, "assignee": {"id": 593}, "project": {"id": 388, "owner": {"id": 769}, "assignee": {"id": 811}}, "task": {"id": 359, "owner": {"id": 919}, "assignee": {"id": 1007}}, "job": {"id": 372, "assignee": {"id": 3}}, "organization": {"id": 1257}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_JOB_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 342, "owner": {"id": 605}, "assignee": {"id": 564}, "project": {"id": 382, "owner": {"id": 724}, "assignee": {"id": 842}}, "task": {"id": 311, "owner": {"id": 995}, "assignee": {"id": 1066}}, "job": {"id": 340, "assignee": {"id": 99}}, "organization": {"id": 1249}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 327, "owner": {"id": 6}, "assignee": {"id": 540}, "project": {"id": 340, "owner": {"id": 754}, "assignee": {"id": 879}}, "task": {"id": 373, "owner": {"id": 957}, "assignee": {"id": 1091}}, "job": {"id": 382, "assignee": {"id": 1196}}, "organization": {"id": 194}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 315, "owner": {"id": 29}, "assignee": {"id": 548}, "project": {"id": 389, "owner": {"id": 799}, "assignee": {"id": 846}}, "task": {"id": 360, "owner": {"id": 912}, "assignee": {"id": 1064}}, "job": {"id": 341, "assignee": {"id": 1167}}, "organization": {"id": 198}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 322, "owner": {"id": 51}, "assignee": {"id": 523}, "project": {"id": 323, "owner": {"id": 726}, "assignee": {"id": 873}}, "task": {"id": 363, "owner": {"id": 911}, "assignee": {"id": 1008}}, "job": {"id": 347, "assignee": {"id": 1155}}, "organization": {"id": 1259}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 339, "owner": {"id": 41}, "assignee": {"id": 542}, "project": {"id": 329, "owner": {"id": 794}, "assignee": {"id": 829}}, "task": {"id": 332, "owner": {"id": 940}, "assignee": {"id": 1000}}, "job": {"id": 319, "assignee": {"id": 1104}}, "organization": {"id": 1277}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "owner": {"id": 30}, "assignee": {"id": 562}, "project": {"id": 340, "owner": {"id": 729}, "assignee": {"id": 862}}, "task": {"id": 364, "owner": {"id": 995}, "assignee": {"id": 1044}}, "job": {"id": 369, "assignee": {"id": 1182}}, "organization": {"id": 181}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 58}, "assignee": {"id": 529}, "project": {"id": 340, "owner": {"id": 704}, "assignee": {"id": 823}}, "task": {"id": 308, "owner": {"id": 995}, "assignee": {"id": 1019}}, "job": {"id": 309, "assignee": {"id": 1126}}, "organization": {"id": 156}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 56}, "assignee": {"id": 551}, "project": {"id": 394, "owner": {"id": 775}, "assignee": {"id": 856}}, "task": {"id": 344, "owner": {"id": 958}, "assignee": {"id": 1021}}, "job": {"id": 325, "assignee": {"id": 1199}}, "organization": {"id": 1237}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 1}, "assignee": {"id": 586}, "project": {"id": 322, "owner": {"id": 761}, "assignee": {"id": 825}}, "task": {"id": 371, "owner": {"id": 960}, "assignee": {"id": 1027}}, "job": {"id": 310, "assignee": {"id": 1126}}, "organization": {"id": 1251}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "owner": {"id": 2}, "assignee": {"id": 596}, "project": {"id": 375, "owner": {"id": 728}, "assignee": {"id": 819}}, "task": {"id": 357, "owner": {"id": 922}, "assignee": {"id": 1024}}, "job": {"id": 374, "assignee": {"id": 1178}}, "organization": {"id": 174}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 5}, "assignee": {"id": 500}, "project": {"id": 375, "owner": {"id": 717}, "assignee": {"id": 816}}, "task": {"id": 390, "owner": {"id": 958}, "assignee": {"id": 1027}}, "job": {"id": 366, "assignee": {"id": 1159}}, "organization": {"id": 133}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "owner": {"id": 99}, "assignee": {"id": 546}, "project": {"id": 363, "owner": {"id": 776}, "assignee": {"id": 841}}, "task": {"id": 379, "owner": {"id": 951}, "assignee": {"id": 1066}}, "job": {"id": 396, "assignee": {"id": 1195}}, "organization": {"id": 1292}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "owner": {"id": 94}, "assignee": {"id": 508}, "project": {"id": 303, "owner": {"id": 799}, "assignee": {"id": 873}}, "task": {"id": 359, "owner": {"id": 946}, "assignee": {"id": 1013}}, "job": {"id": 388, "assignee": {"id": 1102}}, "organization": {"id": 1240}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 88}, "assignee": {"id": 545}, "project": {"id": 341, "owner": {"id": 790}, "assignee": {"id": 835}}, "task": {"id": 363, "owner": {"id": 928}, "assignee": {"id": 1056}}, "job": {"id": 365, "assignee": {"id": 1141}}, "organization": {"id": 121}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 97}, "assignee": {"id": 589}, "project": {"id": 331, "owner": {"id": 719}, "assignee": {"id": 857}}, "task": {"id": 353, "owner": {"id": 983}, "assignee": {"id": 1008}}, "job": {"id": 347, "assignee": {"id": 1104}}, "organization": {"id": 122}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 317, "owner": {"id": 13}, "assignee": {"id": 510}, "project": {"id": 314, "owner": {"id": 757}, "assignee": {"id": 865}}, "task": {"id": 325, "owner": {"id": 996}, "assignee": {"id": 1043}}, "job": {"id": 324, "assignee": {"id": 1125}}, "organization": {"id": 1289}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 355, "owner": {"id": 91}, "assignee": {"id": 543}, "project": {"id": 348, "owner": {"id": 738}, "assignee": {"id": 838}}, "task": {"id": 355, "owner": {"id": 979}, "assignee": {"id": 1044}}, "job": {"id": 314, "assignee": {"id": 1118}}, "organization": {"id": 1247}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 336, "owner": {"id": 16}, "assignee": {"id": 533}, "project": {"id": 327, "owner": {"id": 766}, "assignee": {"id": 882}}, "task": {"id": 389, "owner": {"id": 993}, "assignee": {"id": 1010}}, "job": {"id": 355, "assignee": {"id": 1134}}, "organization": {"id": 134}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 7, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 356, "owner": {"id": 7}, "assignee": {"id": 551}, "project": {"id": 381, "owner": {"id": 755}, "assignee": {"id": 892}}, "task": {"id": 326, "owner": {"id": 985}, "assignee": {"id": 1053}}, "job": {"id": 308, "assignee": {"id": 1188}}, "organization": {"id": 117}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 323, "owner": {"id": 42}, "assignee": {"id": 546}, "project": {"id": 378, "owner": {"id": 722}, "assignee": {"id": 856}}, "task": {"id": 397, "owner": {"id": 948}, "assignee": {"id": 1084}}, "job": {"id": 398, "assignee": {"id": 1113}}, "organization": {"id": 1241}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 30}, "assignee": {"id": 512}, "project": {"id": 327, "owner": {"id": 723}, "assignee": {"id": 838}}, "task": {"id": 391, "owner": {"id": 936}, "assignee": {"id": 1040}}, "job": {"id": 322, "assignee": {"id": 1199}}, "organization": {"id": 1271}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 97}, "assignee": {"id": 511}, "project": {"id": 328, "owner": {"id": 783}, "assignee": {"id": 830}}, "task": {"id": 344, "owner": {"id": 999}, "assignee": {"id": 1081}}, "job": {"id": 382, "assignee": {"id": 1124}}, "organization": {"id": 187}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 349, "owner": {"id": 58}, "assignee": {"id": 567}, "project": {"id": 301, "owner": {"id": 732}, "assignee": {"id": 801}}, "task": {"id": 330, "owner": {"id": 946}, "assignee": {"id": 1047}}, "job": {"id": 383, "assignee": {"id": 1181}}, "organization": {"id": 101}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 79}, "assignee": {"id": 586}, "project": {"id": 341, "owner": {"id": 764}, "assignee": {"id": 854}}, "task": {"id": 388, "owner": {"id": 902}, "assignee": {"id": 1042}}, "job": {"id": 398, "assignee": {"id": 1195}}, "organization": {"id": 1251}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 307, "owner": {"id": 99}, "assignee": {"id": 506}, "project": {"id": 359, "owner": {"id": 714}, "assignee": {"id": 880}}, "task": {"id": 362, "owner": {"id": 927}, "assignee": {"id": 1052}}, "job": {"id": 392, "assignee": {"id": 1171}}, "organization": {"id": 1242}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "owner": {"id": 28}, "assignee": {"id": 585}, "project": {"id": 373, "owner": {"id": 746}, "assignee": {"id": 850}}, "task": {"id": 322, "owner": {"id": 975}, "assignee": {"id": 1012}}, "job": {"id": 393, "assignee": {"id": 1151}}, "organization": {"id": 100}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "owner": {"id": 51}, "assignee": {"id": 555}, "project": {"id": 322, "owner": {"id": 726}, "assignee": {"id": 891}}, "task": {"id": 376, "owner": {"id": 915}, "assignee": {"id": 1069}}, "job": {"id": 311, "assignee": {"id": 1102}}, "organization": {"id": 199}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 358, "owner": {"id": 65}, "assignee": {"id": 545}, "project": {"id": 300, "owner": {"id": 796}, "assignee": {"id": 853}}, "task": {"id": 317, "owner": {"id": 955}, "assignee": {"id": 1067}}, "job": {"id": 386, "assignee": {"id": 1196}}, "organization": {"id": 1277}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "owner": {"id": 26}, "assignee": {"id": 595}, "project": {"id": 387, "owner": {"id": 759}, "assignee": {"id": 877}}, "task": {"id": 313, "owner": {"id": 913}, "assignee": {"id": 1001}}, "job": {"id": 301, "assignee": {"id": 1176}}, "organization": {"id": 1256}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 84}, "assignee": {"id": 575}, "project": {"id": 394, "owner": {"id": 775}, "assignee": {"id": 821}}, "task": {"id": 300, "owner": {"id": 976}, "assignee": {"id": 1047}}, "job": {"id": 397, "assignee": {"id": 1135}}, "organization": {"id": 137}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "owner": {"id": 33}, "assignee": {"id": 545}, "project": {"id": 388, "owner": {"id": 782}, "assignee": {"id": 880}}, "task": {"id": 325, "owner": {"id": 900}, "assignee": {"id": 1059}}, "job": {"id": 383, "assignee": {"id": 1188}}, "organization": {"id": 138}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 31, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "owner": {"id": 31}, "assignee": {"id": 557}, "project": {"id": 325, "owner": {"id": 749}, "assignee": {"id": 801}}, "task": {"id": 312, "owner": {"id": 978}, "assignee": {"id": 1085}}, "job": {"id": 328, "assignee": {"id": 1181}}, "organization": {"id": 1284}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "owner": {"id": 12}, "assignee": {"id": 527}, "project": {"id": 367, "owner": {"id": 742}, "assignee": {"id": 866}}, "task": {"id": 327, "owner": {"id": 902}, "assignee": {"id": 1032}}, "job": {"id": 375, "assignee": {"id": 1156}}, "organization": {"id": 1204}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 325, "owner": {"id": 3}, "assignee": {"id": 532}, "project": {"id": 335, "owner": {"id": 772}, "assignee": {"id": 863}}, "task": {"id": 386, "owner": {"id": 958}, "assignee": {"id": 1085}}, "job": {"id": 309, "assignee": {"id": 1197}}, "organization": {"id": 106}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 340, "owner": {"id": 66}, "assignee": {"id": 531}, "project": {"id": 317, "owner": {"id": 727}, "assignee": {"id": 815}}, "task": {"id": 351, "owner": {"id": 957}, "assignee": {"id": 1082}}, "job": {"id": 308, "assignee": {"id": 1108}}, "organization": {"id": 179}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 338, "owner": {"id": 36}, "assignee": {"id": 573}, "project": {"id": 375, "owner": {"id": 750}, "assignee": {"id": 861}}, "task": {"id": 327, "owner": {"id": 924}, "assignee": {"id": 1099}}, "job": {"id": 383, "assignee": {"id": 1157}}, "organization": {"id": 1217}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 322, "owner": {"id": 44}, "assignee": {"id": 597}, "project": {"id": 392, "owner": {"id": 716}, "assignee": {"id": 870}}, "task": {"id": 324, "owner": {"id": 922}, "assignee": {"id": 1048}}, "job": {"id": 352, "assignee": {"id": 1108}}, "organization": {"id": 1266}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 374, "owner": {"id": 86}, "assignee": {"id": 542}, "project": {"id": 388, "owner": {"id": 707}, "assignee": {"id": 879}}, "task": {"id": 386, "owner": {"id": 981}, "assignee": {"id": 1003}}, "job": {"id": 322, "assignee": {"id": 1183}}, "organization": {"id": 145}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 62}, "assignee": {"id": 545}, "project": {"id": 380, "owner": {"id": 705}, "assignee": {"id": 884}}, "task": {"id": 387, "owner": {"id": 938}, "assignee": {"id": 1034}}, "job": {"id": 364, "assignee": {"id": 1102}}, "organization": {"id": 193}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 338, "owner": {"id": 93}, "assignee": {"id": 543}, "project": {"id": 367, "owner": {"id": 710}, "assignee": {"id": 823}}, "task": {"id": 380, "owner": {"id": 953}, "assignee": {"id": 1093}}, "job": {"id": 308, "assignee": {"id": 1191}}, "organization": {"id": 1248}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 330, "owner": {"id": 21}, "assignee": {"id": 511}, "project": {"id": 357, "owner": {"id": 757}, "assignee": {"id": 830}}, "task": {"id": 311, "owner": {"id": 902}, "assignee": {"id": 1036}}, "job": {"id": 363, "assignee": {"id": 1155}}, "organization": {"id": 1272}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 47}, "assignee": {"id": 559}, "project": {"id": 382, "owner": {"id": 707}, "assignee": {"id": 878}}, "task": {"id": 376, "owner": {"id": 946}, "assignee": {"id": 1096}}, "job": {"id": 384, "assignee": {"id": 1180}}, "organization": {"id": 180}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 381, "owner": {"id": 75}, "assignee": {"id": 576}, "project": {"id": 327, "owner": {"id": 747}, "assignee": {"id": 875}}, "task": {"id": 349, "owner": {"id": 984}, "assignee": {"id": 1072}}, "job": {"id": 341, "assignee": {"id": 1168}}, "organization": {"id": 161}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 27}, "assignee": {"id": 571}, "project": {"id": 372, "owner": {"id": 773}, "assignee": {"id": 807}}, "task": {"id": 395, "owner": {"id": 999}, "assignee": {"id": 1099}}, "job": {"id": 391, "assignee": {"id": 1175}}, "organization": {"id": 1200}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 393, "owner": {"id": 32}, "assignee": {"id": 543}, "project": {"id": 392, "owner": {"id": 703}, "assignee": {"id": 873}}, "task": {"id": 312, "owner": {"id": 973}, "assignee": {"id": 1023}}, "job": {"id": 357, "assignee": {"id": 1104}}, "organization": {"id": 1238}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 7}, "assignee": {"id": 554}, "project": {"id": 374, "owner": {"id": 749}, "assignee": {"id": 851}}, "task": {"id": 302, "owner": {"id": 947}, "assignee": {"id": 1075}}, "job": {"id": 354, "assignee": {"id": 1173}}, "organization": {"id": 136}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "owner": {"id": 60}, "assignee": {"id": 546}, "project": {"id": 389, "owner": {"id": 796}, "assignee": {"id": 803}}, "task": {"id": 300, "owner": {"id": 940}, "assignee": {"id": 1015}}, "job": {"id": 310, "assignee": {"id": 1151}}, "organization": {"id": 143}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 85}, "assignee": {"id": 564}, "project": {"id": 314, "owner": {"id": 701}, "assignee": {"id": 802}}, "task": {"id": 313, "owner": {"id": 956}, "assignee": {"id": 1096}}, "job": {"id": 347, "assignee": {"id": 1149}}, "organization": {"id": 1257}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "owner": {"id": 64}, "assignee": {"id": 589}, "project": {"id": 375, "owner": {"id": 755}, "assignee": {"id": 844}}, "task": {"id": 346, "owner": {"id": 967}, "assignee": {"id": 1046}}, "job": {"id": 345, "assignee": {"id": 1197}}, "organization": {"id": 1243}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "owner": {"id": 71}, "assignee": {"id": 566}, "project": {"id": 303, "owner": {"id": 743}, "assignee": {"id": 854}}, "task": {"id": 342, "owner": {"id": 949}, "assignee": {"id": 1024}}, "job": {"id": 366, "assignee": {"id": 1116}}, "organization": {"id": 190}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "owner": {"id": 3}, "assignee": {"id": 501}, "project": {"id": 382, "owner": {"id": 750}, "assignee": {"id": 869}}, "task": {"id": 344, "owner": {"id": 958}, "assignee": {"id": 1021}}, "job": {"id": 327, "assignee": {"id": 1153}}, "organization": {"id": 172}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 21}, "assignee": {"id": 509}, "project": {"id": 302, "owner": {"id": 767}, "assignee": {"id": 808}}, "task": {"id": 392, "owner": {"id": 901}, "assignee": {"id": 1027}}, "job": {"id": 313, "assignee": {"id": 1134}}, "organization": {"id": 1234}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 92}, "assignee": {"id": 595}, "project": {"id": 363, "owner": {"id": 790}, "assignee": {"id": 875}}, "task": {"id": 349, "owner": {"id": 950}, "assignee": {"id": 1058}}, "job": {"id": 396, "assignee": {"id": 1127}}, "organization": {"id": 1214}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 338, "owner": {"id": 92}, "assignee": {"id": 572}, "project": {"id": 362, "owner": {"id": 791}, "assignee": {"id": 873}}, "task": {"id": 355, "owner": {"id": 980}, "assignee": {"id": 1065}}, "job": {"id": 319, "assignee": {"id": 1123}}, "organization": {"id": 138}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 371, "owner": {"id": 48}, "assignee": {"id": 588}, "project": {"id": 371, "owner": {"id": 767}, "assignee": {"id": 834}}, "task": {"id": 302, "owner": {"id": 972}, "assignee": {"id": 1098}}, "job": {"id": 384, "assignee": {"id": 1187}}, "organization": {"id": 148}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 17}, "assignee": {"id": 587}, "project": {"id": 385, "owner": {"id": 759}, "assignee": {"id": 831}}, "task": {"id": 373, "owner": {"id": 984}, "assignee": {"id": 1069}}, "job": {"id": 369, "assignee": {"id": 1196}}, "organization": {"id": 1239}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 333, "owner": {"id": 23}, "assignee": {"id": 552}, "project": {"id": 355, "owner": {"id": 788}, "assignee": {"id": 864}}, "task": {"id": 369, "owner": {"id": 997}, "assignee": {"id": 1088}}, "job": {"id": 325, "assignee": {"id": 1187}}, "organization": {"id": 1276}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 366, "owner": {"id": 22}, "assignee": {"id": 553}, "project": {"id": 374, "owner": {"id": 715}, "assignee": {"id": 812}}, "task": {"id": 346, "owner": {"id": 975}, "assignee": {"id": 1013}}, "job": {"id": 358, "assignee": {"id": 1134}}, "organization": {"id": 190}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 360, "owner": {"id": 90}, "assignee": {"id": 566}, "project": {"id": 341, "owner": {"id": 724}, "assignee": {"id": 802}}, "task": {"id": 373, "owner": {"id": 940}, "assignee": {"id": 1044}}, "job": {"id": 335, "assignee": {"id": 1183}}, "organization": {"id": 197}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 384, "owner": {"id": 12}, "assignee": {"id": 592}, "project": {"id": 338, "owner": {"id": 749}, "assignee": {"id": 812}}, "task": {"id": 329, "owner": {"id": 961}, "assignee": {"id": 1065}}, "job": {"id": 361, "assignee": {"id": 1123}}, "organization": {"id": 1268}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 56}, "assignee": {"id": 502}, "project": {"id": 386, "owner": {"id": 740}, "assignee": {"id": 808}}, "task": {"id": 354, "owner": {"id": 916}, "assignee": {"id": 1000}}, "job": {"id": 351, "assignee": {"id": 1169}}, "organization": {"id": 1240}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 310, "owner": {"id": 0}, "assignee": {"id": 556}, "project": {"id": 353, "owner": {"id": 757}, "assignee": {"id": 892}}, "task": {"id": 397, "owner": {"id": 977}, "assignee": {"id": 1067}}, "job": {"id": 391, "assignee": {"id": 1191}}, "organization": {"id": 161}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 333, "owner": {"id": 80}, "assignee": {"id": 598}, "project": {"id": 372, "owner": {"id": 795}, "assignee": {"id": 867}}, "task": {"id": 316, "owner": {"id": 985}, "assignee": {"id": 1027}}, "job": {"id": 394, "assignee": {"id": 1130}}, "organization": {"id": 197}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 362, "owner": {"id": 32}, "assignee": {"id": 584}, "project": {"id": 342, "owner": {"id": 752}, "assignee": {"id": 821}}, "task": {"id": 364, "owner": {"id": 996}, "assignee": {"id": 1066}}, "job": {"id": 351, "assignee": {"id": 1124}}, "organization": {"id": 1221}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 386, "owner": {"id": 40}, "assignee": {"id": 505}, "project": {"id": 331, "owner": {"id": 742}, "assignee": {"id": 875}}, "task": {"id": 346, "owner": {"id": 932}, "assignee": {"id": 1070}}, "job": {"id": 376, "assignee": {"id": 1196}}, "organization": {"id": 1214}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 301, "owner": {"id": 15}, "assignee": {"id": 579}, "project": {"id": 340, "owner": {"id": 789}, "assignee": {"id": 895}}, "task": {"id": 311, "owner": {"id": 993}, "assignee": {"id": 1045}}, "job": {"id": 311, "assignee": {"id": 1173}}, "organization": {"id": 135}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 62}, "assignee": {"id": 556}, "project": {"id": 387, "owner": {"id": 742}, "assignee": {"id": 899}}, "task": {"id": 315, "owner": {"id": 929}, "assignee": {"id": 1043}}, "job": {"id": 332, "assignee": {"id": 1190}}, "organization": {"id": 149}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "owner": {"id": 44}, "assignee": {"id": 572}, "project": {"id": 343, "owner": {"id": 793}, "assignee": {"id": 815}}, "task": {"id": 337, "owner": {"id": 935}, "assignee": {"id": 1080}}, "job": {"id": 304, "assignee": {"id": 1173}}, "organization": {"id": 1210}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 69}, "assignee": {"id": 529}, "project": {"id": 377, "owner": {"id": 710}, "assignee": {"id": 870}}, "task": {"id": 377, "owner": {"id": 961}, "assignee": {"id": 1071}}, "job": {"id": 349, "assignee": {"id": 1156}}, "organization": {"id": 1261}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 73}, "assignee": {"id": 583}, "project": {"id": 351, "owner": {"id": 794}, "assignee": {"id": 834}}, "task": {"id": 387, "owner": {"id": 912}, "assignee": {"id": 1017}}, "job": {"id": 394, "assignee": {"id": 1147}}, "organization": {"id": 183}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 64}, "assignee": {"id": 598}, "project": {"id": 350, "owner": {"id": 795}, "assignee": {"id": 882}}, "task": {"id": 313, "owner": {"id": 902}, "assignee": {"id": 1041}}, "job": {"id": 337, "assignee": {"id": 1130}}, "organization": {"id": 118}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "owner": {"id": 7}, "assignee": {"id": 575}, "project": {"id": 311, "owner": {"id": 703}, "assignee": {"id": 830}}, "task": {"id": 382, "owner": {"id": 900}, "assignee": {"id": 1052}}, "job": {"id": 364, "assignee": {"id": 1100}}, "organization": {"id": 1296}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "owner": {"id": 14}, "assignee": {"id": 587}, "project": {"id": 325, "owner": {"id": 767}, "assignee": {"id": 872}}, "task": {"id": 369, "owner": {"id": 994}, "assignee": {"id": 1032}}, "job": {"id": 307, "assignee": {"id": 1158}}, "organization": {"id": 1251}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 319, "owner": {"id": 92}, "assignee": {"id": 559}, "project": {"id": 386, "owner": {"id": 711}, "assignee": {"id": 894}}, "task": {"id": 332, "owner": {"id": 945}, "assignee": {"id": 1023}}, "job": {"id": 309, "assignee": {"id": 1178}}, "organization": {"id": 180}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 300, "owner": {"id": 79}, "assignee": {"id": 509}, "project": {"id": 320, "owner": {"id": 712}, "assignee": {"id": 825}}, "task": {"id": 338, "owner": {"id": 958}, "assignee": {"id": 1079}}, "job": {"id": 357, "assignee": {"id": 1178}}, "organization": {"id": 176}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 77}, "assignee": {"id": 543}, "project": {"id": 346, "owner": {"id": 780}, "assignee": {"id": 825}}, "task": {"id": 336, "owner": {"id": 987}, "assignee": {"id": 1086}}, "job": {"id": 384, "assignee": {"id": 1184}}, "organization": {"id": 1237}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 389, "owner": {"id": 49}, "assignee": {"id": 550}, "project": {"id": 396, "owner": {"id": 716}, "assignee": {"id": 802}}, "task": {"id": 356, "owner": {"id": 954}, "assignee": {"id": 1046}}, "job": {"id": 343, "assignee": {"id": 1128}}, "organization": {"id": 1256}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 383, "owner": {"id": 22}, "assignee": {"id": 552}, "project": {"id": 397, "owner": {"id": 764}, "assignee": {"id": 862}}, "task": {"id": 378, "owner": {"id": 967}, "assignee": {"id": 1059}}, "job": {"id": 305, "assignee": {"id": 1180}}, "organization": {"id": 154}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 371, "owner": {"id": 56}, "assignee": {"id": 515}, "project": {"id": 330, "owner": {"id": 789}, "assignee": {"id": 824}}, "task": {"id": 326, "owner": {"id": 902}, "assignee": {"id": 1055}}, "job": {"id": 339, "assignee": {"id": 1122}}, "organization": {"id": 185}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 96}, "assignee": {"id": 502}, "project": {"id": 356, "owner": {"id": 750}, "assignee": {"id": 800}}, "task": {"id": 317, "owner": {"id": 977}, "assignee": {"id": 1030}}, "job": {"id": 340, "assignee": {"id": 1181}}, "organization": {"id": 1287}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 71}, "assignee": {"id": 531}, "project": {"id": 352, "owner": {"id": 701}, "assignee": {"id": 800}}, "task": {"id": 332, "owner": {"id": 946}, "assignee": {"id": 1032}}, "job": {"id": 317, "assignee": {"id": 1164}}, "organization": {"id": 1295}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 78}, "assignee": {"id": 587}, "project": {"id": 353, "owner": {"id": 700}, "assignee": {"id": 814}}, "task": {"id": 331, "owner": {"id": 945}, "assignee": {"id": 1047}}, "job": {"id": 304, "assignee": {"id": 1124}}, "organization": {"id": 174}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 300, "owner": {"id": 84}, "assignee": {"id": 537}, "project": {"id": 337, "owner": {"id": 788}, "assignee": {"id": 873}}, "task": {"id": 301, "owner": {"id": 956}, "assignee": {"id": 1098}}, "job": {"id": 333, "assignee": {"id": 1144}}, "organization": {"id": 115}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 380, "owner": {"id": 71}, "assignee": {"id": 554}, "project": {"id": 345, "owner": {"id": 702}, "assignee": {"id": 810}}, "task": {"id": 316, "owner": {"id": 972}, "assignee": {"id": 1073}}, "job": {"id": 384, "assignee": {"id": 1172}}, "organization": {"id": 1267}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 387, "owner": {"id": 52}, "assignee": {"id": 577}, "project": {"id": 380, "owner": {"id": 748}, "assignee": {"id": 860}}, "task": {"id": 368, "owner": {"id": 960}, "assignee": {"id": 1089}}, "job": {"id": 346, "assignee": {"id": 1152}}, "organization": {"id": 1296}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 55}, "assignee": {"id": 523}, "project": {"id": 321, "owner": {"id": 798}, "assignee": {"id": 810}}, "task": {"id": 372, "owner": {"id": 925}, "assignee": {"id": 1046}}, "job": {"id": 300, "assignee": {"id": 1181}}, "organization": {"id": 185}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "owner": {"id": 6}, "assignee": {"id": 503}, "project": {"id": 349, "owner": {"id": 708}, "assignee": {"id": 837}}, "task": {"id": 333, "owner": {"id": 950}, "assignee": {"id": 1087}}, "job": {"id": 380, "assignee": {"id": 1193}}, "organization": {"id": 150}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 93}, "assignee": {"id": 531}, "project": {"id": 309, "owner": {"id": 722}, "assignee": {"id": 835}}, "task": {"id": 301, "owner": {"id": 920}, "assignee": {"id": 1030}}, "job": {"id": 313, "assignee": {"id": 1190}}, "organization": {"id": 1285}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "owner": {"id": 56}, "assignee": {"id": 533}, "project": {"id": 309, "owner": {"id": 712}, "assignee": {"id": 828}}, "task": {"id": 334, "owner": {"id": 958}, "assignee": {"id": 1025}}, "job": {"id": 343, "assignee": {"id": 1187}}, "organization": {"id": 1244}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "owner": {"id": 51}, "assignee": {"id": 592}, "project": {"id": 322, "owner": {"id": 767}, "assignee": {"id": 878}}, "task": {"id": 395, "owner": {"id": 944}, "assignee": {"id": 1006}}, "job": {"id": 341, "assignee": {"id": 1172}}, "organization": {"id": 148}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "owner": {"id": 74}, "assignee": {"id": 559}, "project": {"id": 313, "owner": {"id": 723}, "assignee": {"id": 811}}, "task": {"id": 356, "owner": {"id": 942}, "assignee": {"id": 1005}}, "job": {"id": 309, "assignee": {"id": 1180}}, "organization": {"id": 124}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 387, "owner": {"id": 28}, "assignee": {"id": 570}, "project": {"id": 387, "owner": {"id": 702}, "assignee": {"id": 884}}, "task": {"id": 385, "owner": {"id": 926}, "assignee": {"id": 1020}}, "job": {"id": 376, "assignee": {"id": 1138}}, "organization": {"id": 1207}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "owner": {"id": 34}, "assignee": {"id": 552}, "project": {"id": 379, "owner": {"id": 741}, "assignee": {"id": 878}}, "task": {"id": 351, "owner": {"id": 997}, "assignee": {"id": 1003}}, "job": {"id": 335, "assignee": {"id": 1159}}, "organization": {"id": 1238}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 368, "owner": {"id": 55}, "assignee": {"id": 531}, "project": {"id": 395, "owner": {"id": 759}, "assignee": {"id": 871}}, "task": {"id": 343, "owner": {"id": 964}, "assignee": {"id": 1035}}, "job": {"id": 356, "assignee": {"id": 1175}}, "organization": {"id": 100}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 80}, "assignee": {"id": 521}, "project": {"id": 325, "owner": {"id": 787}, "assignee": {"id": 835}}, "task": {"id": 343, "owner": {"id": 953}, "assignee": {"id": 1044}}, "job": {"id": 361, "assignee": {"id": 1192}}, "organization": {"id": 169}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 389, "owner": {"id": 5}, "assignee": {"id": 555}, "project": {"id": 301, "owner": {"id": 716}, "assignee": {"id": 813}}, "task": {"id": 354, "owner": {"id": 976}, "assignee": {"id": 1051}}, "job": {"id": 302, "assignee": {"id": 1169}}, "organization": {"id": 1205}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 39}, "assignee": {"id": 567}, "project": {"id": 361, "owner": {"id": 774}, "assignee": {"id": 895}}, "task": {"id": 396, "owner": {"id": 922}, "assignee": {"id": 1056}}, "job": {"id": 377, "assignee": {"id": 1130}}, "organization": {"id": 1251}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 302, "owner": {"id": 14}, "assignee": {"id": 563}, "project": {"id": 374, "owner": {"id": 784}, "assignee": {"id": 808}}, "task": {"id": 389, "owner": {"id": 912}, "assignee": {"id": 1043}}, "job": {"id": 305, "assignee": {"id": 1148}}, "organization": {"id": 147}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 362, "owner": {"id": 17}, "assignee": {"id": 594}, "project": {"id": 342, "owner": {"id": 744}, "assignee": {"id": 853}}, "task": {"id": 393, "owner": {"id": 988}, "assignee": {"id": 1075}}, "job": {"id": 374, "assignee": {"id": 1179}}, "organization": {"id": 143}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 57}, "assignee": {"id": 587}, "project": {"id": 370, "owner": {"id": 777}, "assignee": {"id": 882}}, "task": {"id": 398, "owner": {"id": 919}, "assignee": {"id": 1036}}, "job": {"id": 326, "assignee": {"id": 1154}}, "organization": {"id": 1251}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 377, "owner": {"id": 35}, "assignee": {"id": 587}, "project": {"id": 311, "owner": {"id": 704}, "assignee": {"id": 864}}, "task": {"id": 383, "owner": {"id": 961}, "assignee": {"id": 1093}}, "job": {"id": 393, "assignee": {"id": 1139}}, "organization": {"id": 1272}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 362, "owner": {"id": 641}, "assignee": {"id": 35}, "project": {"id": 394, "owner": {"id": 703}, "assignee": {"id": 816}}, "task": {"id": 378, "owner": {"id": 962}, "assignee": {"id": 1085}}, "job": {"id": 397, "assignee": {"id": 1176}}, "organization": {"id": 111}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 357, "owner": {"id": 681}, "assignee": {"id": 70}, "project": {"id": 343, "owner": {"id": 778}, "assignee": {"id": 806}}, "task": {"id": 395, "owner": {"id": 965}, "assignee": {"id": 1031}}, "job": {"id": 304, "assignee": {"id": 1185}}, "organization": {"id": 152}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 7, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 674}, "assignee": {"id": 7}, "project": {"id": 341, "owner": {"id": 703}, "assignee": {"id": 819}}, "task": {"id": 331, "owner": {"id": 901}, "assignee": {"id": 1064}}, "job": {"id": 389, "assignee": {"id": 1109}}, "organization": {"id": 1219}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 643}, "assignee": {"id": 14}, "project": {"id": 338, "owner": {"id": 770}, "assignee": {"id": 874}}, "task": {"id": 399, "owner": {"id": 981}, "assignee": {"id": 1035}}, "job": {"id": 345, "assignee": {"id": 1188}}, "organization": {"id": 1257}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 612}, "assignee": {"id": 47}, "project": {"id": 324, "owner": {"id": 765}, "assignee": {"id": 898}}, "task": {"id": 371, "owner": {"id": 970}, "assignee": {"id": 1019}}, "job": {"id": 385, "assignee": {"id": 1141}}, "organization": {"id": 104}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "owner": {"id": 638}, "assignee": {"id": 84}, "project": {"id": 346, "owner": {"id": 792}, "assignee": {"id": 890}}, "task": {"id": 378, "owner": {"id": 954}, "assignee": {"id": 1042}}, "job": {"id": 362, "assignee": {"id": 1198}}, "organization": {"id": 183}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "owner": {"id": 674}, "assignee": {"id": 80}, "project": {"id": 350, "owner": {"id": 706}, "assignee": {"id": 896}}, "task": {"id": 307, "owner": {"id": 979}, "assignee": {"id": 1043}}, "job": {"id": 387, "assignee": {"id": 1185}}, "organization": {"id": 1292}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "owner": {"id": 693}, "assignee": {"id": 56}, "project": {"id": 335, "owner": {"id": 745}, "assignee": {"id": 800}}, "task": {"id": 347, "owner": {"id": 919}, "assignee": {"id": 1000}}, "job": {"id": 342, "assignee": {"id": 1151}}, "organization": {"id": 1286}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "owner": {"id": 654}, "assignee": {"id": 25}, "project": {"id": 324, "owner": {"id": 768}, "assignee": {"id": 841}}, "task": {"id": 301, "owner": {"id": 938}, "assignee": {"id": 1011}}, "job": {"id": 338, "assignee": {"id": 1107}}, "organization": {"id": 133}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "owner": {"id": 677}, "assignee": {"id": 43}, "project": {"id": 334, "owner": {"id": 718}, "assignee": {"id": 882}}, "task": {"id": 381, "owner": {"id": 968}, "assignee": {"id": 1064}}, "job": {"id": 321, "assignee": {"id": 1178}}, "organization": {"id": 146}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "owner": {"id": 619}, "assignee": {"id": 5}, "project": {"id": 336, "owner": {"id": 753}, "assignee": {"id": 867}}, "task": {"id": 379, "owner": {"id": 965}, "assignee": {"id": 1099}}, "job": {"id": 387, "assignee": {"id": 1163}}, "organization": {"id": 1217}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "owner": {"id": 612}, "assignee": {"id": 81}, "project": {"id": 364, "owner": {"id": 739}, "assignee": {"id": 837}}, "task": {"id": 351, "owner": {"id": 975}, "assignee": {"id": 1031}}, "job": {"id": 365, "assignee": {"id": 1113}}, "organization": {"id": 1223}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 381, "owner": {"id": 672}, "assignee": {"id": 18}, "project": {"id": 335, "owner": {"id": 778}, "assignee": {"id": 887}}, "task": {"id": 358, "owner": {"id": 991}, "assignee": {"id": 1087}}, "job": {"id": 337, "assignee": {"id": 1192}}, "organization": {"id": 197}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 338, "owner": {"id": 658}, "assignee": {"id": 97}, "project": {"id": 316, "owner": {"id": 711}, "assignee": {"id": 827}}, "task": {"id": 384, "owner": {"id": 924}, "assignee": {"id": 1020}}, "job": {"id": 399, "assignee": {"id": 1160}}, "organization": {"id": 195}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 311, "owner": {"id": 688}, "assignee": {"id": 3}, "project": {"id": 358, "owner": {"id": 708}, "assignee": {"id": 868}}, "task": {"id": 349, "owner": {"id": 994}, "assignee": {"id": 1043}}, "job": {"id": 305, "assignee": {"id": 1153}}, "organization": {"id": 1220}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 302, "owner": {"id": 647}, "assignee": {"id": 37}, "project": {"id": 381, "owner": {"id": 768}, "assignee": {"id": 821}}, "task": {"id": 343, "owner": {"id": 999}, "assignee": {"id": 1012}}, "job": {"id": 336, "assignee": {"id": 1144}}, "organization": {"id": 1283}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 697}, "assignee": {"id": 9}, "project": {"id": 319, "owner": {"id": 788}, "assignee": {"id": 872}}, "task": {"id": 324, "owner": {"id": 986}, "assignee": {"id": 1024}}, "job": {"id": 327, "assignee": {"id": 1130}}, "organization": {"id": 160}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 328, "owner": {"id": 640}, "assignee": {"id": 77}, "project": {"id": 357, "owner": {"id": 766}, "assignee": {"id": 814}}, "task": {"id": 349, "owner": {"id": 991}, "assignee": {"id": 1022}}, "job": {"id": 330, "assignee": {"id": 1147}}, "organization": {"id": 128}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 394, "owner": {"id": 684}, "assignee": {"id": 12}, "project": {"id": 328, "owner": {"id": 719}, "assignee": {"id": 896}}, "task": {"id": 364, "owner": {"id": 904}, "assignee": {"id": 1076}}, "job": {"id": 331, "assignee": {"id": 1142}}, "organization": {"id": 1285}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 356, "owner": {"id": 641}, "assignee": {"id": 82}, "project": {"id": 339, "owner": {"id": 795}, "assignee": {"id": 882}}, "task": {"id": 316, "owner": {"id": 926}, "assignee": {"id": 1038}}, "job": {"id": 304, "assignee": {"id": 1138}}, "organization": {"id": 1261}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 319, "owner": {"id": 665}, "assignee": {"id": 47}, "project": {"id": 347, "owner": {"id": 741}, "assignee": {"id": 844}}, "task": {"id": 381, "owner": {"id": 920}, "assignee": {"id": 1073}}, "job": {"id": 347, "assignee": {"id": 1110}}, "organization": {"id": 126}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 348, "owner": {"id": 688}, "assignee": {"id": 0}, "project": {"id": 313, "owner": {"id": 768}, "assignee": {"id": 882}}, "task": {"id": 347, "owner": {"id": 908}, "assignee": {"id": 1032}}, "job": {"id": 352, "assignee": {"id": 1161}}, "organization": {"id": 156}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 320, "owner": {"id": 609}, "assignee": {"id": 72}, "project": {"id": 356, "owner": {"id": 781}, "assignee": {"id": 870}}, "task": {"id": 336, "owner": {"id": 963}, "assignee": {"id": 1080}}, "job": {"id": 396, "assignee": {"id": 1196}}, "organization": {"id": 1224}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 390, "owner": {"id": 683}, "assignee": {"id": 40}, "project": {"id": 310, "owner": {"id": 730}, "assignee": {"id": 886}}, "task": {"id": 373, "owner": {"id": 936}, "assignee": {"id": 1051}}, "job": {"id": 374, "assignee": {"id": 1181}}, "organization": {"id": 1287}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 372, "owner": {"id": 623}, "assignee": {"id": 71}, "project": {"id": 311, "owner": {"id": 762}, "assignee": {"id": 835}}, "task": {"id": 376, "owner": {"id": 995}, "assignee": {"id": 1032}}, "job": {"id": 394, "assignee": {"id": 1139}}, "organization": {"id": 184}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "owner": {"id": 643}, "assignee": {"id": 20}, "project": {"id": 360, "owner": {"id": 726}, "assignee": {"id": 848}}, "task": {"id": 341, "owner": {"id": 940}, "assignee": {"id": 1039}}, "job": {"id": 398, "assignee": {"id": 1182}}, "organization": {"id": 197}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 675}, "assignee": {"id": 12}, "project": {"id": 390, "owner": {"id": 704}, "assignee": {"id": 808}}, "task": {"id": 386, "owner": {"id": 946}, "assignee": {"id": 1010}}, "job": {"id": 398, "assignee": {"id": 1164}}, "organization": {"id": 1259}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "owner": {"id": 648}, "assignee": {"id": 97}, "project": {"id": 354, "owner": {"id": 725}, "assignee": {"id": 801}}, "task": {"id": 347, "owner": {"id": 995}, "assignee": {"id": 1023}}, "job": {"id": 328, "assignee": {"id": 1141}}, "organization": {"id": 1235}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "owner": {"id": 682}, "assignee": {"id": 18}, "project": {"id": 333, "owner": {"id": 730}, "assignee": {"id": 898}}, "task": {"id": 334, "owner": {"id": 985}, "assignee": {"id": 1019}}, "job": {"id": 324, "assignee": {"id": 1112}}, "organization": {"id": 192}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 340, "owner": {"id": 665}, "assignee": {"id": 41}, "project": {"id": 399, "owner": {"id": 746}, "assignee": {"id": 815}}, "task": {"id": 395, "owner": {"id": 968}, "assignee": {"id": 1080}}, "job": {"id": 392, "assignee": {"id": 1194}}, "organization": {"id": 101}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "owner": {"id": 639}, "assignee": {"id": 35}, "project": {"id": 350, "owner": {"id": 779}, "assignee": {"id": 857}}, "task": {"id": 370, "owner": {"id": 923}, "assignee": {"id": 1027}}, "job": {"id": 306, "assignee": {"id": 1167}}, "organization": {"id": 1226}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 380, "owner": {"id": 640}, "assignee": {"id": 3}, "project": {"id": 392, "owner": {"id": 756}, "assignee": {"id": 899}}, "task": {"id": 371, "owner": {"id": 982}, "assignee": {"id": 1038}}, "job": {"id": 306, "assignee": {"id": 1127}}, "organization": {"id": 1295}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 328, "owner": {"id": 659}, "assignee": {"id": 55}, "project": {"id": 305, "owner": {"id": 750}, "assignee": {"id": 884}}, "task": {"id": 329, "owner": {"id": 908}, "assignee": {"id": 1038}}, "job": {"id": 360, "assignee": {"id": 1150}}, "organization": {"id": 195}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 329, "owner": {"id": 600}, "assignee": {"id": 58}, "project": {"id": 376, "owner": {"id": 735}, "assignee": {"id": 832}}, "task": {"id": 337, "owner": {"id": 999}, "assignee": {"id": 1080}}, "job": {"id": 380, "assignee": {"id": 1109}}, "organization": {"id": 198}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 652}, "assignee": {"id": 37}, "project": {"id": 336, "owner": {"id": 708}, "assignee": {"id": 832}}, "task": {"id": 388, "owner": {"id": 974}, "assignee": {"id": 1094}}, "job": {"id": 362, "assignee": {"id": 1149}}, "organization": {"id": 1234}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 343, "owner": {"id": 673}, "assignee": {"id": 1}, "project": {"id": 365, "owner": {"id": 747}, "assignee": {"id": 811}}, "task": {"id": 392, "owner": {"id": 904}, "assignee": {"id": 1042}}, "job": {"id": 328, "assignee": {"id": 1112}}, "organization": {"id": 1247}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 360, "owner": {"id": 633}, "assignee": {"id": 32}, "project": {"id": 365, "owner": {"id": 788}, "assignee": {"id": 830}}, "task": {"id": 351, "owner": {"id": 921}, "assignee": {"id": 1038}}, "job": {"id": 361, "assignee": {"id": 1192}}, "organization": {"id": 144}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 313, "owner": {"id": 643}, "assignee": {"id": 61}, "project": {"id": 380, "owner": {"id": 762}, "assignee": {"id": 861}}, "task": {"id": 364, "owner": {"id": 998}, "assignee": {"id": 1089}}, "job": {"id": 307, "assignee": {"id": 1114}}, "organization": {"id": 176}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 328, "owner": {"id": 638}, "assignee": {"id": 64}, "project": {"id": 310, "owner": {"id": 716}, "assignee": {"id": 892}}, "task": {"id": 314, "owner": {"id": 906}, "assignee": {"id": 1062}}, "job": {"id": 326, "assignee": {"id": 1122}}, "organization": {"id": 1297}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 308, "owner": {"id": 689}, "assignee": {"id": 90}, "project": {"id": 378, "owner": {"id": 771}, "assignee": {"id": 802}}, "task": {"id": 373, "owner": {"id": 946}, "assignee": {"id": 1057}}, "job": {"id": 393, "assignee": {"id": 1134}}, "organization": {"id": 1219}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 334, "owner": {"id": 658}, "assignee": {"id": 53}, "project": {"id": 397, "owner": {"id": 770}, "assignee": {"id": 800}}, "task": {"id": 326, "owner": {"id": 997}, "assignee": {"id": 1042}}, "job": {"id": 370, "assignee": {"id": 1129}}, "organization": {"id": 123}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 395, "owner": {"id": 621}, "assignee": {"id": 85}, "project": {"id": 330, "owner": {"id": 771}, "assignee": {"id": 871}}, "task": {"id": 385, "owner": {"id": 949}, "assignee": {"id": 1044}}, "job": {"id": 338, "assignee": {"id": 1179}}, "organization": {"id": 146}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 323, "owner": {"id": 640}, "assignee": {"id": 93}, "project": {"id": 367, "owner": {"id": 760}, "assignee": {"id": 886}}, "task": {"id": 378, "owner": {"id": 990}, "assignee": {"id": 1075}}, "job": {"id": 322, "assignee": {"id": 1160}}, "organization": {"id": 1243}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 304, "owner": {"id": 663}, "assignee": {"id": 91}, "project": {"id": 386, "owner": {"id": 797}, "assignee": {"id": 844}}, "task": {"id": 351, "owner": {"id": 964}, "assignee": {"id": 1008}}, "job": {"id": 379, "assignee": {"id": 1168}}, "organization": {"id": 1233}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "owner": {"id": 636}, "assignee": {"id": 44}, "project": {"id": 329, "owner": {"id": 789}, "assignee": {"id": 825}}, "task": {"id": 306, "owner": {"id": 949}, "assignee": {"id": 1032}}, "job": {"id": 373, "assignee": {"id": 1141}}, "organization": {"id": 169}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 602}, "assignee": {"id": 26}, "project": {"id": 389, "owner": {"id": 759}, "assignee": {"id": 885}}, "task": {"id": 305, "owner": {"id": 967}, "assignee": {"id": 1016}}, "job": {"id": 326, "assignee": {"id": 1160}}, "organization": {"id": 137}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 663}, "assignee": {"id": 46}, "project": {"id": 397, "owner": {"id": 724}, "assignee": {"id": 857}}, "task": {"id": 312, "owner": {"id": 970}, "assignee": {"id": 1092}}, "job": {"id": 338, "assignee": {"id": 1158}}, "organization": {"id": 1288}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 689}, "assignee": {"id": 36}, "project": {"id": 353, "owner": {"id": 743}, "assignee": {"id": 899}}, "task": {"id": 327, "owner": {"id": 915}, "assignee": {"id": 1094}}, "job": {"id": 323, "assignee": {"id": 1107}}, "organization": {"id": 1263}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "owner": {"id": 653}, "assignee": {"id": 2}, "project": {"id": 329, "owner": {"id": 781}, "assignee": {"id": 857}}, "task": {"id": 370, "owner": {"id": 998}, "assignee": {"id": 1025}}, "job": {"id": 376, "assignee": {"id": 1104}}, "organization": {"id": 155}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 387, "owner": {"id": 694}, "assignee": {"id": 2}, "project": {"id": 326, "owner": {"id": 758}, "assignee": {"id": 833}}, "task": {"id": 343, "owner": {"id": 901}, "assignee": {"id": 1069}}, "job": {"id": 305, "assignee": {"id": 1166}}, "organization": {"id": 128}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "owner": {"id": 679}, "assignee": {"id": 50}, "project": {"id": 354, "owner": {"id": 701}, "assignee": {"id": 875}}, "task": {"id": 390, "owner": {"id": 983}, "assignee": {"id": 1099}}, "job": {"id": 359, "assignee": {"id": 1191}}, "organization": {"id": 1238}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "owner": {"id": 669}, "assignee": {"id": 95}, "project": {"id": 355, "owner": {"id": 789}, "assignee": {"id": 819}}, "task": {"id": 321, "owner": {"id": 991}, "assignee": {"id": 1003}}, "job": {"id": 312, "assignee": {"id": 1183}}, "organization": {"id": 1224}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 396, "owner": {"id": 605}, "assignee": {"id": 87}, "project": {"id": 392, "owner": {"id": 791}, "assignee": {"id": 807}}, "task": {"id": 316, "owner": {"id": 952}, "assignee": {"id": 1013}}, "job": {"id": 353, "assignee": {"id": 1151}}, "organization": {"id": 176}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 317, "owner": {"id": 656}, "assignee": {"id": 81}, "project": {"id": 322, "owner": {"id": 707}, "assignee": {"id": 842}}, "task": {"id": 306, "owner": {"id": 925}, "assignee": {"id": 1079}}, "job": {"id": 354, "assignee": {"id": 1172}}, "organization": {"id": 175}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 19, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 329, "owner": {"id": 674}, "assignee": {"id": 19}, "project": {"id": 337, "owner": {"id": 710}, "assignee": {"id": 850}}, "task": {"id": 357, "owner": {"id": 957}, "assignee": {"id": 1030}}, "job": {"id": 322, "assignee": {"id": 1114}}, "organization": {"id": 1221}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 334, "owner": {"id": 600}, "assignee": {"id": 63}, "project": {"id": 311, "owner": {"id": 737}, "assignee": {"id": 860}}, "task": {"id": 326, "owner": {"id": 958}, "assignee": {"id": 1035}}, "job": {"id": 388, "assignee": {"id": 1191}}, "organization": {"id": 1259}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 383, "owner": {"id": 613}, "assignee": {"id": 96}, "project": {"id": 341, "owner": {"id": 722}, "assignee": {"id": 830}}, "task": {"id": 347, "owner": {"id": 927}, "assignee": {"id": 1046}}, "job": {"id": 348, "assignee": {"id": 1111}}, "organization": {"id": 181}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 383, "owner": {"id": 647}, "assignee": {"id": 66}, "project": {"id": 392, "owner": {"id": 761}, "assignee": {"id": 839}}, "task": {"id": 303, "owner": {"id": 919}, "assignee": {"id": 1034}}, "job": {"id": 393, "assignee": {"id": 1149}}, "organization": {"id": 192}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 326, "owner": {"id": 686}, "assignee": {"id": 64}, "project": {"id": 308, "owner": {"id": 777}, "assignee": {"id": 878}}, "task": {"id": 392, "owner": {"id": 922}, "assignee": {"id": 1043}}, "job": {"id": 374, "assignee": {"id": 1137}}, "organization": {"id": 1287}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 397, "owner": {"id": 636}, "assignee": {"id": 7}, "project": {"id": 336, "owner": {"id": 729}, "assignee": {"id": 848}}, "task": {"id": 335, "owner": {"id": 920}, "assignee": {"id": 1072}}, "job": {"id": 300, "assignee": {"id": 1168}}, "organization": {"id": 1272}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 669}, "assignee": {"id": 93}, "project": {"id": 332, "owner": {"id": 796}, "assignee": {"id": 809}}, "task": {"id": 320, "owner": {"id": 962}, "assignee": {"id": 1025}}, "job": {"id": 382, "assignee": {"id": 1110}}, "organization": {"id": 119}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 330, "owner": {"id": 674}, "assignee": {"id": 68}, "project": {"id": 398, "owner": {"id": 793}, "assignee": {"id": 886}}, "task": {"id": 358, "owner": {"id": 929}, "assignee": {"id": 1085}}, "job": {"id": 329, "assignee": {"id": 1160}}, "organization": {"id": 157}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 662}, "assignee": {"id": 1}, "project": {"id": 382, "owner": {"id": 771}, "assignee": {"id": 896}}, "task": {"id": 357, "owner": {"id": 943}, "assignee": {"id": 1040}}, "job": {"id": 319, "assignee": {"id": 1179}}, "organization": {"id": 1264}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 396, "owner": {"id": 693}, "assignee": {"id": 71}, "project": {"id": 334, "owner": {"id": 777}, "assignee": {"id": 803}}, "task": {"id": 311, "owner": {"id": 981}, "assignee": {"id": 1066}}, "job": {"id": 339, "assignee": {"id": 1163}}, "organization": {"id": 1237}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "owner": {"id": 649}, "assignee": {"id": 73}, "project": {"id": 363, "owner": {"id": 747}, "assignee": {"id": 865}}, "task": {"id": 378, "owner": {"id": 989}, "assignee": {"id": 1004}}, "job": {"id": 326, "assignee": {"id": 1108}}, "organization": {"id": 135}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "owner": {"id": 668}, "assignee": {"id": 30}, "project": {"id": 342, "owner": {"id": 705}, "assignee": {"id": 869}}, "task": {"id": 336, "owner": {"id": 924}, "assignee": {"id": 1034}}, "job": {"id": 346, "assignee": {"id": 1148}}, "organization": {"id": 181}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "owner": {"id": 600}, "assignee": {"id": 98}, "project": {"id": 300, "owner": {"id": 778}, "assignee": {"id": 828}}, "task": {"id": 378, "owner": {"id": 946}, "assignee": {"id": 1021}}, "job": {"id": 352, "assignee": {"id": 1121}}, "organization": {"id": 1260}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "owner": {"id": 616}, "assignee": {"id": 4}, "project": {"id": 333, "owner": {"id": 728}, "assignee": {"id": 870}}, "task": {"id": 396, "owner": {"id": 960}, "assignee": {"id": 1090}}, "job": {"id": 302, "assignee": {"id": 1152}}, "organization": {"id": 1271}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "owner": {"id": 653}, "assignee": {"id": 34}, "project": {"id": 364, "owner": {"id": 745}, "assignee": {"id": 843}}, "task": {"id": 362, "owner": {"id": 944}, "assignee": {"id": 1037}}, "job": {"id": 386, "assignee": {"id": 1110}}, "organization": {"id": 125}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "owner": {"id": 601}, "assignee": {"id": 10}, "project": {"id": 341, "owner": {"id": 764}, "assignee": {"id": 836}}, "task": {"id": 307, "owner": {"id": 902}, "assignee": {"id": 1026}}, "job": {"id": 333, "assignee": {"id": 1120}}, "organization": {"id": 109}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "owner": {"id": 686}, "assignee": {"id": 19}, "project": {"id": 329, "owner": {"id": 750}, "assignee": {"id": 820}}, "task": {"id": 322, "owner": {"id": 965}, "assignee": {"id": 1000}}, "job": {"id": 383, "assignee": {"id": 1176}}, "organization": {"id": 1251}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "owner": {"id": 696}, "assignee": {"id": 63}, "project": {"id": 360, "owner": {"id": 713}, "assignee": {"id": 819}}, "task": {"id": 339, "owner": {"id": 951}, "assignee": {"id": 1017}}, "job": {"id": 381, "assignee": {"id": 1148}}, "organization": {"id": 1207}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 361, "owner": {"id": 616}, "assignee": {"id": 14}, "project": {"id": 324, "owner": {"id": 745}, "assignee": {"id": 811}}, "task": {"id": 394, "owner": {"id": 936}, "assignee": {"id": 1003}}, "job": {"id": 376, "assignee": {"id": 1197}}, "organization": {"id": 153}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 304, "owner": {"id": 677}, "assignee": {"id": 99}, "project": {"id": 388, "owner": {"id": 732}, "assignee": {"id": 869}}, "task": {"id": 307, "owner": {"id": 948}, "assignee": {"id": 1030}}, "job": {"id": 328, "assignee": {"id": 1187}}, "organization": {"id": 111}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 301, "owner": {"id": 628}, "assignee": {"id": 42}, "project": {"id": 387, "owner": {"id": 761}, "assignee": {"id": 814}}, "task": {"id": 348, "owner": {"id": 957}, "assignee": {"id": 1019}}, "job": {"id": 312, "assignee": {"id": 1110}}, "organization": {"id": 1243}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 311, "owner": {"id": 660}, "assignee": {"id": 23}, "project": {"id": 302, "owner": {"id": 751}, "assignee": {"id": 868}}, "task": {"id": 320, "owner": {"id": 905}, "assignee": {"id": 1034}}, "job": {"id": 346, "assignee": {"id": 1149}}, "organization": {"id": 1298}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 337, "owner": {"id": 672}, "assignee": {"id": 11}, "project": {"id": 326, "owner": {"id": 789}, "assignee": {"id": 829}}, "task": {"id": 327, "owner": {"id": 908}, "assignee": {"id": 1007}}, "job": {"id": 327, "assignee": {"id": 1184}}, "organization": {"id": 139}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 347, "owner": {"id": 670}, "assignee": {"id": 81}, "project": {"id": 370, "owner": {"id": 702}, "assignee": {"id": 801}}, "task": {"id": 380, "owner": {"id": 948}, "assignee": {"id": 1018}}, "job": {"id": 372, "assignee": {"id": 1101}}, "organization": {"id": 147}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 614}, "assignee": {"id": 70}, "project": {"id": 380, "owner": {"id": 702}, "assignee": {"id": 822}}, "task": {"id": 351, "owner": {"id": 987}, "assignee": {"id": 1076}}, "job": {"id": 314, "assignee": {"id": 1147}}, "organization": {"id": 1263}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 628}, "assignee": {"id": 85}, "project": {"id": 378, "owner": {"id": 752}, "assignee": {"id": 881}}, "task": {"id": 356, "owner": {"id": 935}, "assignee": {"id": 1076}}, "job": {"id": 330, "assignee": {"id": 1187}}, "organization": {"id": 1246}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 679}, "assignee": {"id": 4}, "project": {"id": 338, "owner": {"id": 709}, "assignee": {"id": 837}}, "task": {"id": 317, "owner": {"id": 929}, "assignee": {"id": 1065}}, "job": {"id": 342, "assignee": {"id": 1177}}, "organization": {"id": 196}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 331, "owner": {"id": 628}, "assignee": {"id": 64}, "project": {"id": 398, "owner": {"id": 762}, "assignee": {"id": 834}}, "task": {"id": 338, "owner": {"id": 985}, "assignee": {"id": 1027}}, "job": {"id": 384, "assignee": {"id": 1172}}, "organization": {"id": 194}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 343, "owner": {"id": 680}, "assignee": {"id": 77}, "project": {"id": 390, "owner": {"id": 759}, "assignee": {"id": 838}}, "task": {"id": 305, "owner": {"id": 979}, "assignee": {"id": 1020}}, "job": {"id": 301, "assignee": {"id": 1178}}, "organization": {"id": 1215}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 680}, "assignee": {"id": 48}, "project": {"id": 382, "owner": {"id": 794}, "assignee": {"id": 826}}, "task": {"id": 376, "owner": {"id": 969}, "assignee": {"id": 1003}}, "job": {"id": 342, "assignee": {"id": 1180}}, "organization": {"id": 1267}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "owner": {"id": 681}, "assignee": {"id": 97}, "project": {"id": 369, "owner": {"id": 700}, "assignee": {"id": 804}}, "task": {"id": 316, "owner": {"id": 947}, "assignee": {"id": 1004}}, "job": {"id": 390, "assignee": {"id": 1187}}, "organization": {"id": 188}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "owner": {"id": 675}, "assignee": {"id": 24}, "project": {"id": 367, "owner": {"id": 778}, "assignee": {"id": 848}}, "task": {"id": 351, "owner": {"id": 934}, "assignee": {"id": 1026}}, "job": {"id": 324, "assignee": {"id": 1173}}, "organization": {"id": 121}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "owner": {"id": 687}, "assignee": {"id": 16}, "project": {"id": 357, "owner": {"id": 774}, "assignee": {"id": 844}}, "task": {"id": 383, "owner": {"id": 958}, "assignee": {"id": 1039}}, "job": {"id": 377, "assignee": {"id": 1108}}, "organization": {"id": 1284}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 647}, "assignee": {"id": 75}, "project": {"id": 319, "owner": {"id": 714}, "assignee": {"id": 816}}, "task": {"id": 303, "owner": {"id": 982}, "assignee": {"id": 1001}}, "job": {"id": 339, "assignee": {"id": 1103}}, "organization": {"id": 1268}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 387, "owner": {"id": 689}, "assignee": {"id": 44}, "project": {"id": 328, "owner": {"id": 779}, "assignee": {"id": 833}}, "task": {"id": 384, "owner": {"id": 934}, "assignee": {"id": 1059}}, "job": {"id": 361, "assignee": {"id": 1154}}, "organization": {"id": 134}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 633}, "assignee": {"id": 71}, "project": {"id": 396, "owner": {"id": 757}, "assignee": {"id": 813}}, "task": {"id": 385, "owner": {"id": 956}, "assignee": {"id": 1080}}, "job": {"id": 324, "assignee": {"id": 1167}}, "organization": {"id": 130}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 698}, "assignee": {"id": 87}, "project": {"id": 358, "owner": {"id": 725}, "assignee": {"id": 863}}, "task": {"id": 349, "owner": {"id": 926}, "assignee": {"id": 1091}}, "job": {"id": 379, "assignee": {"id": 1185}}, "organization": {"id": 1288}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "owner": {"id": 692}, "assignee": {"id": 89}, "project": {"id": 334, "owner": {"id": 733}, "assignee": {"id": 876}}, "task": {"id": 354, "owner": {"id": 964}, "assignee": {"id": 1039}}, "job": {"id": 381, "assignee": {"id": 1139}}, "organization": {"id": 1240}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 664}, "assignee": {"id": 38}, "project": {"id": 302, "owner": {"id": 751}, "assignee": {"id": 879}}, "task": {"id": 302, "owner": {"id": 915}, "assignee": {"id": 1046}}, "job": {"id": 381, "assignee": {"id": 1130}}, "organization": {"id": 168}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 305, "owner": {"id": 639}, "assignee": {"id": 32}, "project": {"id": 338, "owner": {"id": 721}, "assignee": {"id": 864}}, "task": {"id": 388, "owner": {"id": 986}, "assignee": {"id": 1049}}, "job": {"id": 383, "assignee": {"id": 1191}}, "organization": {"id": 134}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 341, "owner": {"id": 679}, "assignee": {"id": 58}, "project": {"id": 358, "owner": {"id": 722}, "assignee": {"id": 845}}, "task": {"id": 345, "owner": {"id": 984}, "assignee": {"id": 1079}}, "job": {"id": 360, "assignee": {"id": 1198}}, "organization": {"id": 1221}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 367, "owner": {"id": 647}, "assignee": {"id": 77}, "project": {"id": 383, "owner": {"id": 798}, "assignee": {"id": 861}}, "task": {"id": 397, "owner": {"id": 905}, "assignee": {"id": 1006}}, "job": {"id": 304, "assignee": {"id": 1120}}, "organization": {"id": 1264}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 19, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 386, "owner": {"id": 616}, "assignee": {"id": 19}, "project": {"id": 351, "owner": {"id": 726}, "assignee": {"id": 861}}, "task": {"id": 319, "owner": {"id": 981}, "assignee": {"id": 1061}}, "job": {"id": 341, "assignee": {"id": 1123}}, "organization": {"id": 101}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 628}, "assignee": {"id": 94}, "project": {"id": 375, "owner": {"id": 700}, "assignee": {"id": 899}}, "task": {"id": 362, "owner": {"id": 974}, "assignee": {"id": 1081}}, "job": {"id": 389, "assignee": {"id": 1157}}, "organization": {"id": 107}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 602}, "assignee": {"id": 44}, "project": {"id": 333, "owner": {"id": 701}, "assignee": {"id": 891}}, "task": {"id": 355, "owner": {"id": 956}, "assignee": {"id": 1042}}, "job": {"id": 338, "assignee": {"id": 1103}}, "organization": {"id": 1204}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 632}, "assignee": {"id": 14}, "project": {"id": 306, "owner": {"id": 765}, "assignee": {"id": 815}}, "task": {"id": 388, "owner": {"id": 975}, "assignee": {"id": 1020}}, "job": {"id": 374, "assignee": {"id": 1176}}, "organization": {"id": 1247}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 327, "owner": {"id": 609}, "assignee": {"id": 551}, "project": {"id": 360, "owner": {"id": 790}, "assignee": {"id": 833}}, "task": {"id": 310, "owner": {"id": 973}, "assignee": {"id": 1020}}, "job": {"id": 315, "assignee": {"id": 1100}}, "organization": {"id": 165}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 682}, "assignee": {"id": 529}, "project": {"id": 311, "owner": {"id": 744}, "assignee": {"id": 808}}, "task": {"id": 344, "owner": {"id": 917}, "assignee": {"id": 1032}}, "job": {"id": 305, "assignee": {"id": 1169}}, "organization": {"id": 111}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 636}, "assignee": {"id": 530}, "project": {"id": 378, "owner": {"id": 791}, "assignee": {"id": 892}}, "task": {"id": 364, "owner": {"id": 976}, "assignee": {"id": 1002}}, "job": {"id": 377, "assignee": {"id": 1153}}, "organization": {"id": 1256}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 310, "owner": {"id": 611}, "assignee": {"id": 573}, "project": {"id": 309, "owner": {"id": 729}, "assignee": {"id": 853}}, "task": {"id": 340, "owner": {"id": 900}, "assignee": {"id": 1005}}, "job": {"id": 300, "assignee": {"id": 1199}}, "organization": {"id": 1232}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 358, "owner": {"id": 631}, "assignee": {"id": 587}, "project": {"id": 310, "owner": {"id": 706}, "assignee": {"id": 851}}, "task": {"id": 309, "owner": {"id": 976}, "assignee": {"id": 1064}}, "job": {"id": 346, "assignee": {"id": 1113}}, "organization": {"id": 132}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "owner": {"id": 688}, "assignee": {"id": 500}, "project": {"id": 322, "owner": {"id": 745}, "assignee": {"id": 871}}, "task": {"id": 388, "owner": {"id": 940}, "assignee": {"id": 1055}}, "job": {"id": 309, "assignee": {"id": 1110}}, "organization": {"id": 158}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 625}, "assignee": {"id": 587}, "project": {"id": 307, "owner": {"id": 799}, "assignee": {"id": 889}}, "task": {"id": 303, "owner": {"id": 950}, "assignee": {"id": 1046}}, "job": {"id": 361, "assignee": {"id": 1183}}, "organization": {"id": 1235}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 638}, "assignee": {"id": 577}, "project": {"id": 368, "owner": {"id": 706}, "assignee": {"id": 829}}, "task": {"id": 384, "owner": {"id": 946}, "assignee": {"id": 1026}}, "job": {"id": 308, "assignee": {"id": 1162}}, "organization": {"id": 1241}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "owner": {"id": 692}, "assignee": {"id": 587}, "project": {"id": 359, "owner": {"id": 728}, "assignee": {"id": 809}}, "task": {"id": 336, "owner": {"id": 912}, "assignee": {"id": 1079}}, "job": {"id": 332, "assignee": {"id": 1190}}, "organization": {"id": 171}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 633}, "assignee": {"id": 583}, "project": {"id": 345, "owner": {"id": 774}, "assignee": {"id": 852}}, "task": {"id": 360, "owner": {"id": 992}, "assignee": {"id": 1075}}, "job": {"id": 311, "assignee": {"id": 1119}}, "organization": {"id": 144}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "owner": {"id": 636}, "assignee": {"id": 542}, "project": {"id": 395, "owner": {"id": 733}, "assignee": {"id": 868}}, "task": {"id": 325, "owner": {"id": 978}, "assignee": {"id": 1074}}, "job": {"id": 319, "assignee": {"id": 1193}}, "organization": {"id": 1224}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "owner": {"id": 623}, "assignee": {"id": 568}, "project": {"id": 358, "owner": {"id": 716}, "assignee": {"id": 832}}, "task": {"id": 347, "owner": {"id": 979}, "assignee": {"id": 1066}}, "job": {"id": 358, "assignee": {"id": 1113}}, "organization": {"id": 1202}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 339, "owner": {"id": 627}, "assignee": {"id": 511}, "project": {"id": 352, "owner": {"id": 766}, "assignee": {"id": 895}}, "task": {"id": 321, "owner": {"id": 907}, "assignee": {"id": 1062}}, "job": {"id": 386, "assignee": {"id": 1135}}, "organization": {"id": 132}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 378, "owner": {"id": 649}, "assignee": {"id": 513}, "project": {"id": 357, "owner": {"id": 719}, "assignee": {"id": 847}}, "task": {"id": 381, "owner": {"id": 963}, "assignee": {"id": 1055}}, "job": {"id": 368, "assignee": {"id": 1100}}, "organization": {"id": 121}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 336, "owner": {"id": 648}, "assignee": {"id": 523}, "project": {"id": 300, "owner": {"id": 754}, "assignee": {"id": 807}}, "task": {"id": 350, "owner": {"id": 911}, "assignee": {"id": 1040}}, "job": {"id": 301, "assignee": {"id": 1166}}, "organization": {"id": 1200}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 394, "owner": {"id": 614}, "assignee": {"id": 518}, "project": {"id": 336, "owner": {"id": 741}, "assignee": {"id": 819}}, "task": {"id": 368, "owner": {"id": 957}, "assignee": {"id": 1002}}, "job": {"id": 368, "assignee": {"id": 1119}}, "organization": {"id": 1244}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 304, "owner": {"id": 667}, "assignee": {"id": 511}, "project": {"id": 333, "owner": {"id": 760}, "assignee": {"id": 827}}, "task": {"id": 360, "owner": {"id": 988}, "assignee": {"id": 1040}}, "job": {"id": 374, "assignee": {"id": 1146}}, "organization": {"id": 184}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 690}, "assignee": {"id": 548}, "project": {"id": 357, "owner": {"id": 784}, "assignee": {"id": 813}}, "task": {"id": 356, "owner": {"id": 981}, "assignee": {"id": 1032}}, "job": {"id": 329, "assignee": {"id": 1113}}, "organization": {"id": 108}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 608}, "assignee": {"id": 523}, "project": {"id": 391, "owner": {"id": 733}, "assignee": {"id": 882}}, "task": {"id": 330, "owner": {"id": 968}, "assignee": {"id": 1056}}, "job": {"id": 304, "assignee": {"id": 1189}}, "organization": {"id": 1238}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_FALSE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 329, "owner": {"id": 604}, "assignee": {"id": 569}, "project": {"id": 389, "owner": {"id": 722}, "assignee": {"id": 830}}, "task": {"id": 399, "owner": {"id": 953}, "assignee": {"id": 1003}}, "job": {"id": 344, "assignee": {"id": 1147}}, "organization": {"id": 1286}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 348, "owner": {"id": 673}, "assignee": {"id": 599}, "project": {"id": 392, "owner": {"id": 717}, "assignee": {"id": 875}}, "task": {"id": 365, "owner": {"id": 943}, "assignee": {"id": 1006}}, "job": {"id": 393, "assignee": {"id": 1196}}, "organization": {"id": 150}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 379, "owner": {"id": 658}, "assignee": {"id": 579}, "project": {"id": 341, "owner": {"id": 752}, "assignee": {"id": 830}}, "task": {"id": 325, "owner": {"id": 933}, "assignee": {"id": 1050}}, "job": {"id": 325, "assignee": {"id": 1177}}, "organization": {"id": 128}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 324, "owner": {"id": 684}, "assignee": {"id": 527}, "project": {"id": 317, "owner": {"id": 715}, "assignee": {"id": 810}}, "task": {"id": 398, "owner": {"id": 931}, "assignee": {"id": 1060}}, "job": {"id": 364, "assignee": {"id": 1183}}, "organization": {"id": 1227}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 350, "owner": {"id": 693}, "assignee": {"id": 553}, "project": {"id": 320, "owner": {"id": 738}, "assignee": {"id": 801}}, "task": {"id": 359, "owner": {"id": 961}, "assignee": {"id": 1078}}, "job": {"id": 392, "assignee": {"id": 1114}}, "organization": {"id": 1211}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 660}, "assignee": {"id": 571}, "project": {"id": 373, "owner": {"id": 767}, "assignee": {"id": 824}}, "task": {"id": 302, "owner": {"id": 902}, "assignee": {"id": 1024}}, "job": {"id": 381, "assignee": {"id": 1155}}, "organization": {"id": 178}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 642}, "assignee": {"id": 523}, "project": {"id": 321, "owner": {"id": 790}, "assignee": {"id": 823}}, "task": {"id": 332, "owner": {"id": 954}, "assignee": {"id": 1066}}, "job": {"id": 381, "assignee": {"id": 1126}}, "organization": {"id": 189}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "owner": {"id": 633}, "assignee": {"id": 590}, "project": {"id": 398, "owner": {"id": 782}, "assignee": {"id": 802}}, "task": {"id": 395, "owner": {"id": 953}, "assignee": {"id": 1029}}, "job": {"id": 359, "assignee": {"id": 1188}}, "organization": {"id": 1208}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "owner": {"id": 654}, "assignee": {"id": 512}, "project": {"id": 345, "owner": {"id": 799}, "assignee": {"id": 859}}, "task": {"id": 388, "owner": {"id": 970}, "assignee": {"id": 1029}}, "job": {"id": 390, "assignee": {"id": 1102}}, "organization": {"id": 1254}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "owner": {"id": 664}, "assignee": {"id": 513}, "project": {"id": 302, "owner": {"id": 749}, "assignee": {"id": 898}}, "task": {"id": 381, "owner": {"id": 929}, "assignee": {"id": 1057}}, "job": {"id": 352, "assignee": {"id": 1173}}, "organization": {"id": 119}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "owner": {"id": 675}, "assignee": {"id": 555}, "project": {"id": 355, "owner": {"id": 796}, "assignee": {"id": 828}}, "task": {"id": 308, "owner": {"id": 972}, "assignee": {"id": 1071}}, "job": {"id": 385, "assignee": {"id": 1109}}, "organization": {"id": 187}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "owner": {"id": 698}, "assignee": {"id": 537}, "project": {"id": 372, "owner": {"id": 709}, "assignee": {"id": 893}}, "task": {"id": 300, "owner": {"id": 999}, "assignee": {"id": 1014}}, "job": {"id": 320, "assignee": {"id": 1134}}, "organization": {"id": 1296}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "owner": {"id": 638}, "assignee": {"id": 586}, "project": {"id": 348, "owner": {"id": 743}, "assignee": {"id": 805}}, "task": {"id": 395, "owner": {"id": 939}, "assignee": {"id": 1050}}, "job": {"id": 370, "assignee": {"id": 1109}}, "organization": {"id": 1271}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 371, "owner": {"id": 672}, "assignee": {"id": 587}, "project": {"id": 398, "owner": {"id": 745}, "assignee": {"id": 872}}, "task": {"id": 317, "owner": {"id": 916}, "assignee": {"id": 1090}}, "job": {"id": 341, "assignee": {"id": 1130}}, "organization": {"id": 122}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 676}, "assignee": {"id": 503}, "project": {"id": 342, "owner": {"id": 712}, "assignee": {"id": 855}}, "task": {"id": 354, "owner": {"id": 934}, "assignee": {"id": 1082}}, "job": {"id": 390, "assignee": {"id": 1188}}, "organization": {"id": 171}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 395, "owner": {"id": 648}, "assignee": {"id": 547}, "project": {"id": 300, "owner": {"id": 716}, "assignee": {"id": 862}}, "task": {"id": 308, "owner": {"id": 997}, "assignee": {"id": 1061}}, "job": {"id": 323, "assignee": {"id": 1171}}, "organization": {"id": 1276}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 306, "owner": {"id": 671}, "assignee": {"id": 589}, "project": {"id": 357, "owner": {"id": 713}, "assignee": {"id": 813}}, "task": {"id": 358, "owner": {"id": 918}, "assignee": {"id": 1025}}, "job": {"id": 399, "assignee": {"id": 1104}}, "organization": {"id": 1236}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 672}, "assignee": {"id": 577}, "project": {"id": 343, "owner": {"id": 774}, "assignee": {"id": 865}}, "task": {"id": 321, "owner": {"id": 978}, "assignee": {"id": 1027}}, "job": {"id": 377, "assignee": {"id": 1187}}, "organization": {"id": 135}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 395, "owner": {"id": 659}, "assignee": {"id": 594}, "project": {"id": 364, "owner": {"id": 720}, "assignee": {"id": 879}}, "task": {"id": 305, "owner": {"id": 978}, "assignee": {"id": 1039}}, "job": {"id": 376, "assignee": {"id": 1111}}, "organization": {"id": 168}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 691}, "assignee": {"id": 591}, "project": {"id": 359, "owner": {"id": 789}, "assignee": {"id": 882}}, "task": {"id": 356, "owner": {"id": 921}, "assignee": {"id": 1075}}, "job": {"id": 322, "assignee": {"id": 1134}}, "organization": {"id": 1291}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 309, "owner": {"id": 685}, "assignee": {"id": 565}, "project": {"id": 326, "owner": {"id": 788}, "assignee": {"id": 853}}, "task": {"id": 333, "owner": {"id": 927}, "assignee": {"id": 1006}}, "job": {"id": 374, "assignee": {"id": 1145}}, "organization": {"id": 1217}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 306, "owner": {"id": 605}, "assignee": {"id": 571}, "project": {"id": 362, "owner": {"id": 742}, "assignee": {"id": 898}}, "task": {"id": 306, "owner": {"id": 996}, "assignee": {"id": 1009}}, "job": {"id": 321, "assignee": {"id": 1152}}, "organization": {"id": 107}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 316, "owner": {"id": 675}, "assignee": {"id": 596}, "project": {"id": 379, "owner": {"id": 728}, "assignee": {"id": 838}}, "task": {"id": 385, "owner": {"id": 982}, "assignee": {"id": 1072}}, "job": {"id": 366, "assignee": {"id": 1142}}, "organization": {"id": 199}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 334, "owner": {"id": 633}, "assignee": {"id": 555}, "project": {"id": 362, "owner": {"id": 742}, "assignee": {"id": 844}}, "task": {"id": 313, "owner": {"id": 975}, "assignee": {"id": 1062}}, "job": {"id": 366, "assignee": {"id": 1124}}, "organization": {"id": 1284}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 683}, "assignee": {"id": 586}, "project": {"id": 352, "owner": {"id": 767}, "assignee": {"id": 880}}, "task": {"id": 304, "owner": {"id": 956}, "assignee": {"id": 1034}}, "job": {"id": 339, "assignee": {"id": 1100}}, "organization": {"id": 1283}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "owner": {"id": 673}, "assignee": {"id": 595}, "project": {"id": 362, "owner": {"id": 778}, "assignee": {"id": 816}}, "task": {"id": 322, "owner": {"id": 909}, "assignee": {"id": 1005}}, "job": {"id": 356, "assignee": {"id": 1175}}, "organization": {"id": 195}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 636}, "assignee": {"id": 521}, "project": {"id": 350, "owner": {"id": 759}, "assignee": {"id": 833}}, "task": {"id": 333, "owner": {"id": 968}, "assignee": {"id": 1093}}, "job": {"id": 311, "assignee": {"id": 1135}}, "organization": {"id": 120}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "owner": {"id": 667}, "assignee": {"id": 577}, "project": {"id": 386, "owner": {"id": 764}, "assignee": {"id": 822}}, "task": {"id": 397, "owner": {"id": 988}, "assignee": {"id": 1084}}, "job": {"id": 322, "assignee": {"id": 1100}}, "organization": {"id": 1210}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 684}, "assignee": {"id": 528}, "project": {"id": 308, "owner": {"id": 724}, "assignee": {"id": 825}}, "task": {"id": 315, "owner": {"id": 995}, "assignee": {"id": 1014}}, "job": {"id": 349, "assignee": {"id": 1158}}, "organization": {"id": 1253}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "owner": {"id": 615}, "assignee": {"id": 548}, "project": {"id": 334, "owner": {"id": 725}, "assignee": {"id": 833}}, "task": {"id": 305, "owner": {"id": 907}, "assignee": {"id": 1087}}, "job": {"id": 323, "assignee": {"id": 1146}}, "organization": {"id": 188}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "owner": {"id": 637}, "assignee": {"id": 511}, "project": {"id": 393, "owner": {"id": 707}, "assignee": {"id": 863}}, "task": {"id": 379, "owner": {"id": 963}, "assignee": {"id": 1022}}, "job": {"id": 318, "assignee": {"id": 1109}}, "organization": {"id": 181}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 631}, "assignee": {"id": 558}, "project": {"id": 303, "owner": {"id": 751}, "assignee": {"id": 858}}, "task": {"id": 317, "owner": {"id": 968}, "assignee": {"id": 1035}}, "job": {"id": 388, "assignee": {"id": 1193}}, "organization": {"id": 1213}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "owner": {"id": 633}, "assignee": {"id": 574}, "project": {"id": 398, "owner": {"id": 773}, "assignee": {"id": 868}}, "task": {"id": 377, "owner": {"id": 955}, "assignee": {"id": 1041}}, "job": {"id": 324, "assignee": {"id": 1195}}, "organization": {"id": 1211}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 361, "owner": {"id": 643}, "assignee": {"id": 526}, "project": {"id": 323, "owner": {"id": 763}, "assignee": {"id": 822}}, "task": {"id": 329, "owner": {"id": 913}, "assignee": {"id": 1052}}, "job": {"id": 349, "assignee": {"id": 1154}}, "organization": {"id": 148}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 396, "owner": {"id": 616}, "assignee": {"id": 539}, "project": {"id": 328, "owner": {"id": 723}, "assignee": {"id": 883}}, "task": {"id": 328, "owner": {"id": 905}, "assignee": {"id": 1083}}, "job": {"id": 323, "assignee": {"id": 1100}}, "organization": {"id": 145}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 351, "owner": {"id": 642}, "assignee": {"id": 504}, "project": {"id": 377, "owner": {"id": 760}, "assignee": {"id": 842}}, "task": {"id": 396, "owner": {"id": 939}, "assignee": {"id": 1059}}, "job": {"id": 378, "assignee": {"id": 1147}}, "organization": {"id": 1274}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 302, "owner": {"id": 640}, "assignee": {"id": 584}, "project": {"id": 329, "owner": {"id": 793}, "assignee": {"id": 855}}, "task": {"id": 385, "owner": {"id": 947}, "assignee": {"id": 1035}}, "job": {"id": 337, "assignee": {"id": 1130}}, "organization": {"id": 1206}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 604}, "assignee": {"id": 512}, "project": {"id": 326, "owner": {"id": 792}, "assignee": {"id": 836}}, "task": {"id": 391, "owner": {"id": 965}, "assignee": {"id": 1028}}, "job": {"id": 383, "assignee": {"id": 1134}}, "organization": {"id": 182}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 398, "owner": {"id": 612}, "assignee": {"id": 534}, "project": {"id": 348, "owner": {"id": 702}, "assignee": {"id": 854}}, "task": {"id": 302, "owner": {"id": 954}, "assignee": {"id": 1077}}, "job": {"id": 372, "assignee": {"id": 1183}}, "organization": {"id": 173}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 317, "owner": {"id": 671}, "assignee": {"id": 529}, "project": {"id": 326, "owner": {"id": 722}, "assignee": {"id": 850}}, "task": {"id": 386, "owner": {"id": 948}, "assignee": {"id": 1055}}, "job": {"id": 392, "assignee": {"id": 1120}}, "organization": {"id": 1210}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 391, "owner": {"id": 643}, "assignee": {"id": 512}, "project": {"id": 386, "owner": {"id": 739}, "assignee": {"id": 838}}, "task": {"id": 343, "owner": {"id": 979}, "assignee": {"id": 1086}}, "job": {"id": 308, "assignee": {"id": 1179}}, "organization": {"id": 1276}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 386, "owner": {"id": 662}, "assignee": {"id": 519}, "project": {"id": 350, "owner": {"id": 788}, "assignee": {"id": 818}}, "task": {"id": 383, "owner": {"id": 967}, "assignee": {"id": 1090}}, "job": {"id": 331, "assignee": {"id": 1136}}, "organization": {"id": 168}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 341, "owner": {"id": 683}, "assignee": {"id": 566}, "project": {"id": 373, "owner": {"id": 707}, "assignee": {"id": 815}}, "task": {"id": 396, "owner": {"id": 988}, "assignee": {"id": 1003}}, "job": {"id": 376, "assignee": {"id": 1150}}, "organization": {"id": 107}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 319, "owner": {"id": 681}, "assignee": {"id": 562}, "project": {"id": 322, "owner": {"id": 769}, "assignee": {"id": 866}}, "task": {"id": 367, "owner": {"id": 936}, "assignee": {"id": 1009}}, "job": {"id": 361, "assignee": {"id": 1100}}, "organization": {"id": 1254}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 376, "owner": {"id": 685}, "assignee": {"id": 556}, "project": {"id": 379, "owner": {"id": 708}, "assignee": {"id": 835}}, "task": {"id": 348, "owner": {"id": 907}, "assignee": {"id": 1010}}, "job": {"id": 344, "assignee": {"id": 1156}}, "organization": {"id": 1284}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 639}, "assignee": {"id": 558}, "project": {"id": 312, "owner": {"id": 799}, "assignee": {"id": 800}}, "task": {"id": 383, "owner": {"id": 977}, "assignee": {"id": 1004}}, "job": {"id": 300, "assignee": {"id": 1109}}, "organization": {"id": 172}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "owner": {"id": 620}, "assignee": {"id": 510}, "project": {"id": 366, "owner": {"id": 710}, "assignee": {"id": 825}}, "task": {"id": 306, "owner": {"id": 982}, "assignee": {"id": 1089}}, "job": {"id": 384, "assignee": {"id": 1169}}, "organization": {"id": 120}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "owner": {"id": 655}, "assignee": {"id": 565}, "project": {"id": 360, "owner": {"id": 728}, "assignee": {"id": 864}}, "task": {"id": 377, "owner": {"id": 939}, "assignee": {"id": 1051}}, "job": {"id": 378, "assignee": {"id": 1137}}, "organization": {"id": 1293}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"id": 372, "owner": {"id": 616}, "assignee": {"id": 539}, "project": {"id": 313, "owner": {"id": 744}, "assignee": {"id": 823}}, "task": {"id": 358, "owner": {"id": 982}, "assignee": {"id": 1035}}, "job": {"id": 398, "assignee": {"id": 1142}}, "organization": {"id": 1255}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 369, "owner": {"id": 664}, "assignee": {"id": 564}, "project": {"id": 346, "owner": {"id": 760}, "assignee": {"id": 811}}, "task": {"id": 353, "owner": {"id": 927}, "assignee": {"id": 1097}}, "job": {"id": 397, "assignee": {"id": 1133}}, "organization": {"id": 150}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 691}, "assignee": {"id": 540}, "project": {"id": 341, "owner": {"id": 723}, "assignee": {"id": 881}}, "task": {"id": 326, "owner": {"id": 962}, "assignee": {"id": 1063}}, "job": {"id": 356, "assignee": {"id": 1169}}, "organization": {"id": 158}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "owner": {"id": 645}, "assignee": {"id": 574}, "project": {"id": 307, "owner": {"id": 756}, "assignee": {"id": 875}}, "task": {"id": 336, "owner": {"id": 964}, "assignee": {"id": 1097}}, "job": {"id": 355, "assignee": {"id": 1111}}, "organization": {"id": 1264}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "owner": {"id": 680}, "assignee": {"id": 526}, "project": {"id": 357, "owner": {"id": 740}, "assignee": {"id": 856}}, "task": {"id": 392, "owner": {"id": 984}, "assignee": {"id": 1012}}, "job": {"id": 347, "assignee": {"id": 1141}}, "organization": {"id": 1295}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 388, "owner": {"id": 693}, "assignee": {"id": 561}, "project": {"id": 396, "owner": {"id": 765}, "assignee": {"id": 886}}, "task": {"id": 374, "owner": {"id": 967}, "assignee": {"id": 1048}}, "job": {"id": 308, "assignee": {"id": 1103}}, "organization": {"id": 192}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 394, "owner": {"id": 679}, "assignee": {"id": 583}, "project": {"id": 335, "owner": {"id": 756}, "assignee": {"id": 867}}, "task": {"id": 374, "owner": {"id": 970}, "assignee": {"id": 1015}}, "job": {"id": 345, "assignee": {"id": 1180}}, "organization": {"id": 104}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 389, "owner": {"id": 602}, "assignee": {"id": 521}, "project": {"id": 391, "owner": {"id": 777}, "assignee": {"id": 881}}, "task": {"id": 358, "owner": {"id": 937}, "assignee": {"id": 1077}}, "job": {"id": 362, "assignee": {"id": 1191}}, "organization": {"id": 1253}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 669}, "assignee": {"id": 578}, "project": {"id": 383, "owner": {"id": 780}, "assignee": {"id": 876}}, "task": {"id": 382, "owner": {"id": 997}, "assignee": {"id": 1099}}, "job": {"id": 306, "assignee": {"id": 1199}}, "organization": {"id": 1244}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 356, "owner": {"id": 653}, "assignee": {"id": 575}, "project": {"id": 341, "owner": {"id": 759}, "assignee": {"id": 885}}, "task": {"id": 322, "owner": {"id": 910}, "assignee": {"id": 1088}}, "job": {"id": 397, "assignee": {"id": 1181}}, "organization": {"id": 199}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 352, "owner": {"id": 661}, "assignee": {"id": 583}, "project": {"id": 390, "owner": {"id": 766}, "assignee": {"id": 872}}, "task": {"id": 335, "owner": {"id": 943}, "assignee": {"id": 1092}}, "job": {"id": 321, "assignee": {"id": 1154}}, "organization": {"id": 143}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 655}, "assignee": {"id": 564}, "project": {"id": 326, "owner": {"id": 775}, "assignee": {"id": 893}}, "task": {"id": 360, "owner": {"id": 933}, "assignee": {"id": 1094}}, "job": {"id": 335, "assignee": {"id": 1103}}, "organization": {"id": 1227}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 378, "owner": {"id": 614}, "assignee": {"id": 510}, "project": {"id": 396, "owner": {"id": 716}, "assignee": {"id": 898}}, "task": {"id": 317, "owner": {"id": 966}, "assignee": {"id": 1058}}, "job": {"id": 316, "assignee": {"id": 1118}}, "organization": {"id": 1239}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 349, "owner": {"id": 693}, "assignee": {"id": 518}, "project": {"id": 323, "owner": {"id": 701}, "assignee": {"id": 832}}, "task": {"id": 325, "owner": {"id": 975}, "assignee": {"id": 1081}}, "job": {"id": 328, "assignee": {"id": 1135}}, "organization": {"id": 171}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 327, "owner": {"id": 620}, "assignee": {"id": 559}, "project": {"id": 397, "owner": {"id": 740}, "assignee": {"id": 895}}, "task": {"id": 348, "owner": {"id": 952}, "assignee": {"id": 1008}}, "job": {"id": 364, "assignee": {"id": 1134}}, "organization": {"id": 154}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 363, "owner": {"id": 663}, "assignee": {"id": 537}, "project": {"id": 395, "owner": {"id": 728}, "assignee": {"id": 808}}, "task": {"id": 382, "owner": {"id": 940}, "assignee": {"id": 1096}}, "job": {"id": 368, "assignee": {"id": 1164}}, "organization": {"id": 1238}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 365, "owner": {"id": 683}, "assignee": {"id": 505}, "project": {"id": 343, "owner": {"id": 768}, "assignee": {"id": 852}}, "task": {"id": 317, "owner": {"id": 902}, "assignee": {"id": 1035}}, "job": {"id": 356, "assignee": {"id": 1189}}, "organization": {"id": 1230}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "owner": {"id": 610}, "assignee": {"id": 572}, "project": {"id": 388, "owner": {"id": 774}, "assignee": {"id": 805}}, "task": {"id": 368, "owner": {"id": 921}, "assignee": {"id": 1077}}, "job": {"id": 364, "assignee": {"id": 1131}}, "organization": {"id": 169}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "owner": {"id": 667}, "assignee": {"id": 536}, "project": {"id": 343, "owner": {"id": 751}, "assignee": {"id": 891}}, "task": {"id": 359, "owner": {"id": 945}, "assignee": {"id": 1054}}, "job": {"id": 355, "assignee": {"id": 1148}}, "organization": {"id": 183}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "owner": {"id": 665}, "assignee": {"id": 595}, "project": {"id": 317, "owner": {"id": 783}, "assignee": {"id": 884}}, "task": {"id": 393, "owner": {"id": 906}, "assignee": {"id": 1051}}, "job": {"id": 366, "assignee": {"id": 1143}}, "organization": {"id": 1294}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "owner": {"id": 693}, "assignee": {"id": 568}, "project": {"id": 394, "owner": {"id": 714}, "assignee": {"id": 856}}, "task": {"id": 300, "owner": {"id": 969}, "assignee": {"id": 1026}}, "job": {"id": 322, "assignee": {"id": 1166}}, "organization": {"id": 1291}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 626}, "assignee": {"id": 503}, "project": {"id": 332, "owner": {"id": 721}, "assignee": {"id": 879}}, "task": {"id": 387, "owner": {"id": 996}, "assignee": {"id": 1095}}, "job": {"id": 340, "assignee": {"id": 1153}}, "organization": {"id": 190}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "owner": {"id": 602}, "assignee": {"id": 525}, "project": {"id": 320, "owner": {"id": 762}, "assignee": {"id": 846}}, "task": {"id": 300, "owner": {"id": 934}, "assignee": {"id": 1090}}, "job": {"id": 347, "assignee": {"id": 1142}}, "organization": {"id": 100}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 665}, "assignee": {"id": 539}, "project": {"id": 391, "owner": {"id": 779}, "assignee": {"id": 854}}, "task": {"id": 317, "owner": {"id": 939}, "assignee": {"id": 1055}}, "job": {"id": 323, "assignee": {"id": 1148}}, "organization": {"id": 1200}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 634}, "assignee": {"id": 549}, "project": {"id": 326, "owner": {"id": 776}, "assignee": {"id": 852}}, "task": {"id": 343, "owner": {"id": 957}, "assignee": {"id": 1018}}, "job": {"id": 354, "assignee": {"id": 1117}}, "organization": {"id": 1286}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 677}, "assignee": {"id": 556}, "project": {"id": 339, "owner": {"id": 746}, "assignee": {"id": 881}}, "task": {"id": 359, "owner": {"id": 991}, "assignee": {"id": 1098}}, "job": {"id": 336, "assignee": {"id": 1126}}, "organization": {"id": 120}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 368, "owner": {"id": 692}, "assignee": {"id": 535}, "project": {"id": 334, "owner": {"id": 737}, "assignee": {"id": 844}}, "task": {"id": 375, "owner": {"id": 919}, "assignee": {"id": 1001}}, "job": {"id": 345, "assignee": {"id": 1112}}, "organization": {"id": 176}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 380, "owner": {"id": 615}, "assignee": {"id": 555}, "project": {"id": 358, "owner": {"id": 760}, "assignee": {"id": 882}}, "task": {"id": 322, "owner": {"id": 976}, "assignee": {"id": 1085}}, "job": {"id": 316, "assignee": {"id": 1104}}, "organization": {"id": 1250}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 396, "owner": {"id": 602}, "assignee": {"id": 531}, "project": {"id": 310, "owner": {"id": 712}, "assignee": {"id": 835}}, "task": {"id": 356, "owner": {"id": 926}, "assignee": {"id": 1038}}, "job": {"id": 343, "assignee": {"id": 1151}}, "organization": {"id": 1294}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 386, "owner": {"id": 675}, "assignee": {"id": 567}, "project": {"id": 325, "owner": {"id": 794}, "assignee": {"id": 873}}, "task": {"id": 343, "owner": {"id": 954}, "assignee": {"id": 1041}}, "job": {"id": 399, "assignee": {"id": 1137}}, "organization": {"id": 112}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 398, "owner": {"id": 688}, "assignee": {"id": 560}, "project": {"id": 302, "owner": {"id": 784}, "assignee": {"id": 805}}, "task": {"id": 322, "owner": {"id": 940}, "assignee": {"id": 1015}}, "job": {"id": 346, "assignee": {"id": 1144}}, "organization": {"id": 148}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 384, "owner": {"id": 672}, "assignee": {"id": 562}, "project": {"id": 363, "owner": {"id": 776}, "assignee": {"id": 821}}, "task": {"id": 395, "owner": {"id": 928}, "assignee": {"id": 1097}}, "job": {"id": 352, "assignee": {"id": 1149}}, "organization": {"id": 1286}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_FALSE_has_proj_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 383, "owner": {"id": 699}, "assignee": {"id": 562}, "project": {"id": 396, "owner": {"id": 776}, "assignee": {"id": 879}}, "task": {"id": 385, "owner": {"id": 923}, "assignee": {"id": 1050}}, "job": {"id": 371, "assignee": {"id": 1157}}, "organization": {"id": 1267}}} -} - - - -# generate.py -# -# import csv -# import json -# import random -# import sys -# import os -# from itertools import product -# -# -# NAME = 'issues' -# -# def read_rules(name): -# rules = [] -# with open(os.path.join(sys.argv[1], f'{name}.csv')) as f: -# reader = csv.DictReader(f) -# for row in reader: -# row = {k.lower():v.lower().replace('n/a','na') for k,v in row.items()} -# row['limit'] = row['limit'].replace('none', 'None') -# found = False -# for col,val in row.items(): -# if col in ["limit", "method", "url", "resource"]: -# continue -# complex_val = [v.strip() for v in val.split(',')] -# if len(complex_val) > 1: -# found = True -# for item in complex_val: -# new_row = row.copy() -# new_row[col] = item -# rules.append(new_row) -# if not found: -# rules.append(row) -# -# return rules -# -# simple_rules = read_rules(NAME) -# -# SCOPES = list({rule['scope'] for rule in simple_rules}) -# CONTEXTS = ['sandbox', 'organization'] -# OWNERSHIPS = ['project:owner', 'project:assignee', 'task:owner', 'task:assignee', -# 'job:assignee', 'owner', 'assignee', 'none'] -# GROUPS = ['admin', 'business', 'user', 'worker', 'none'] -# ORG_ROLES = ['owner', 'maintainer', 'supervisor', 'worker', None] -# SAME_ORG = [True, False] -# HAS_PROJ = [True, False] -# -# def RESOURCES(scope): -# if scope == 'list': -# return [None] -# else: -# return [{ -# "id": random.randrange(300, 400), -# "owner": { "id": random.randrange(600, 700) }, -# "assignee": { "id": random.randrange(500, 600) }, -# "project": { -# "id": random.randrange(300, 400), -# "owner": { "id": random.randrange(700, 800) }, -# "assignee": { "id": random.randrange(800, 900) } -# }, -# "task": { -# "id": random.randrange(300, 400), -# "owner": { "id": random.randrange(900, 1000) }, -# "assignee": { "id": random.randrange(1000, 1100) } -# }, -# "job": { -# "id": random.randrange(300, 400), -# "assignee": { "id": random.randrange(1100, 1200) } -# }, -# "organization": { -# "id": random.randrange(1200, 1300) -# } -# }] -# -# def is_same_org(org1, org2): -# if org1 != None and org2 != None: -# return org1['id'] == org2['id'] -# elif org1 == None and org2 == None: -# return True -# else: -# return False -# -# def eval_rule(scope, context, ownership, privilege, membership, data): -# if privilege == 'admin': -# return True -# -# rules = list(filter(lambda r: scope == r['scope'], simple_rules)) -# rules = list(filter(lambda r: r['context'] == 'na' or context == r['context'], rules)) -# rules = list(filter(lambda r: r['ownership'] == 'na' or ownership == r['ownership'], rules)) -# rules = list(filter(lambda r: r['membership'] == 'na' or -# ORG_ROLES.index(membership) <= ORG_ROLES.index(r['membership']), rules)) -# rules = list(filter(lambda r: GROUPS.index(privilege) <= GROUPS.index(r['privilege']), rules)) -# resource = data['resource'] -# rules = list(filter(lambda r: not r['limit'] or eval(r['limit'], {'resource': resource}), rules)) -# if not is_same_org(data['auth']['organization'], data['resource']['organization']) and context != 'sandbox': -# return False -# -# return bool(rules) -# -# def get_data(scope, context, ownership, privilege, membership, resource, same_org): -# data = { -# "scope": scope, -# "auth": { -# "user": { "id": random.randrange(0,100), "privilege": privilege }, -# "organization": { -# "id": random.randrange(100,200), -# "owner": { "id": random.randrange(200, 300) }, -# "user": { "role": membership } -# } if context == 'organization' else None -# }, -# "resource": resource -# } -# -# user_id = data['auth']['user']['id'] -# if context == 'organization': -# org_id = data['auth']['organization']['id'] -# if data['auth']['organization']['user']['role'] == 'owner': -# data['auth']['organization']['owner']['id'] = user_id -# -# if same_org: -# data['resource']['organization']['id'] = org_id -# -# if ownership == 'owner': -# data['resource']['owner']['id'] = user_id -# -# if ownership == 'assignee': -# data['resource']['assignee']['id'] = user_id -# -# if ownership == 'project:owner': -# data['resource']['project']['owner']['id'] = user_id -# -# if ownership == 'project:assignee': -# data['resource']['project']['assignee']['id'] = user_id -# -# if ownership == 'task:owner': -# data['resource']['task']['owner']['id'] = user_id -# -# if ownership == 'task:assignee': -# data['resource']['task']['assignee']['id'] = user_id -# -# if ownership == 'job:assignee': -# data['resource']['job']['assignee']['id'] = user_id -# -# return data -# -# def _get_name(prefix, **kwargs): -# name = prefix -# for k,v in kwargs.items(): -# if k == 'resource': -# continue -# prefix = '_' + str(k) -# if isinstance(v, dict): -# if 'id' in v: -# v = v.copy() -# v.pop('id') -# if v: -# name += _get_name(prefix, **v) -# else: -# name += ''.join(map(lambda c: c if c.isalnum() else {'@':'_IN_'}.get(c, '_'), -# f'{prefix}_{str(v).upper()}')) -# -# return name -# -# def get_name(scope, context, ownership, privilege, membership, resource, same_org, has_proj): -# return _get_name('test', **locals()) -# -# def is_valid(scope, context, ownership, privilege, membership, resource, same_org, has_proj): -# if context == "sandbox" and membership: -# return False -# if scope == 'list' and ownership != 'None': -# return False -# if context == 'sandbox' and same_org == False: -# return False -# if not has_proj and ownership.startswith('project'): -# return False -# if scope == 'create@job' and ownership in ['owner', 'assignee']: -# return False -# -# return True -# -# def gen_test_rego(name): -# with open(f'{name}_test.gen.rego', 'wt') as f: -# f.write(f'package {name}\n\n') -# for scope, context, ownership, privilege, membership, same_org, has_proj in product( -# SCOPES, CONTEXTS, OWNERSHIPS, GROUPS, ORG_ROLES, SAME_ORG, HAS_PROJ): -# for resource in RESOURCES(scope): -# if not is_valid(scope, context, ownership, privilege, membership, resource, same_org, has_proj): -# continue -# -# data = get_data(scope, context, ownership, privilege, membership, resource, same_org) -# test_name = get_name(scope, context, ownership, privilege, membership, resource, same_org, has_proj) -# result = eval_rule(scope, context, ownership, privilege, membership, data) -# f.write('{test_name} {{\n {allow} with input as {data}\n}}\n\n'.format( -# test_name=test_name, allow='allow' if result else 'not allow', -# data=json.dumps(data))) -# -# # Write the script which is used to generate the file -# with open(sys.argv[0]) as this_file: -# f.write(f'\n\n# {os.path.split(sys.argv[0])[1]}\n') -# for line in this_file: -# if line.strip(): -# f.write(f'# {line}') -# else: -# f.write(f'#\n') -# -# # Write rules which are used to generate the file -# with open(os.path.join(sys.argv[1], f'{name}.csv')) as rego_file: -# f.write(f'\n\n# {name}.csv\n') -# for line in rego_file: -# if line.strip(): -# f.write(f'# {line}') -# else: -# f.write(f'#\n') -# -# gen_test_rego(NAME) - - -# issues.csv -# Scope,Resource,Context,Ownership,Limit,Method,URL,Privilege,Membership -# list,Issue,Sandbox,N/A,,GET,"/jobs/{id}/issues, /issues",None,N/A -# list,Issue,Organization,N/A,,GET,"/jobs/{id}/issues, /issues",None,Worker -# create@job,"Issue, Job",Sandbox,N/A,,POST,/issues,Admin,N/A -# create@job,"Issue, Job",Sandbox,"Project:owner, Project:assignee, Task:owner, Task:assignee, Job:assignee",,POST,/issues,Worker,N/A -# create@job,"Issue, Job",Organization,N/A,,POST,/issues,User,Maintainer -# create@job,"Issue, Job",Organization,"Project:owner, Project:assignee, Task:owner, Task:assignee, Job:assignee",,POST,/issues,Worker,Worker -# view,Issue,Sandbox,N/A,,GET,/issues/{id},Admin,N/A -# view,Issue,Sandbox,"Project:owner, Project:assignee, Task:owner, Task:assignee, Job:assignee, Owner, Assignee",,GET,/issues/{id},None,N/A -# view,Issue,Organization,N/A,,GET,/issues/{id},User,Maintainer -# view,Issue,Organization,"Project:owner, Project:assignee, Task:owner, Task:assignee, Job:assignee, Owner, Assignee",,GET,/issues/{id},None,Worker -# update,Issue,Sandbox,N/A,,PATCH,/issues/{id},Admin,N/A -# update,Issue,Sandbox,"Project:owner, Project:assignee, Task:owner, Task:assignee, Job:assignee, Owner, Assignee",,PATCH,/issues/{id},Worker,N/A -# update,Issue,Organization,N/A,,PATCH,/issues/{id},User,Maintainer -# update,Issue,Organization,"Project:owner, Project:assignee, Task:owner, Task:assignee, Job:assignee, Owner, Assignee",,PATCH,/issues/{id},Worker,Worker -# delete,Issue,Sandbox,N/A,,DELETE,/issues/{id},Admin,N/A -# delete,Issue,Sandbox,"Project:owner, Project:assignee, Task:owner, Task:assignee, Owner",,DELETE,/issues/{id},Worker,N/A -# delete,Issue,Organization,N/A,,DELETE,/issues/{id},User,Maintainer -# delete,Issue,Organization,"Project:owner, Project:assignee, Task:owner, Task:assignee, Owner",,DELETE,/issues/{id},Worker,Worker \ No newline at end of file diff --git a/cvat/apps/iam/rules/jobs_test.gen.rego b/cvat/apps/iam/rules/jobs_test.gen.rego deleted file mode 100644 index f5f41317..00000000 --- a/cvat/apps/iam/rules/jobs_test.gen.rego +++ /dev/null @@ -1,18746 +0,0 @@ -package jobs - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": null}, "resource": {"id": 329, "assignee": {"id": 598}, "organization": {"id": 637}, "project": {"id": 310, "owner": {"id": 81}, "assignee": {"id": 812}}, "task": {"id": 348, "owner": {"id": 935}, "assignee": {"id": 1058}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": null}, "resource": {"id": 370, "assignee": {"id": 501}, "organization": {"id": 687}, "project": {"id": 392, "owner": {"id": 98}, "assignee": {"id": 887}}, "task": {"id": 368, "owner": {"id": 996}, "assignee": {"id": 1034}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": null}, "resource": {"id": 370, "assignee": {"id": 529}, "organization": {"id": 675}, "project": {"id": 328, "owner": {"id": 29}, "assignee": {"id": 809}}, "task": {"id": 390, "owner": {"id": 980}, "assignee": {"id": 1007}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": null}, "resource": {"id": 362, "assignee": {"id": 519}, "organization": {"id": 624}, "project": {"id": 337, "owner": {"id": 7}, "assignee": {"id": 807}}, "task": {"id": 374, "owner": {"id": 994}, "assignee": {"id": 1069}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": null}, "resource": {"id": 314, "assignee": {"id": 513}, "organization": {"id": 695}, "project": {"id": 370, "owner": {"id": 91}, "assignee": {"id": 834}}, "task": {"id": 336, "owner": {"id": 977}, "assignee": {"id": 1026}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": null}, "resource": {"id": 329, "assignee": {"id": 528}, "organization": {"id": 603}, "project": {"id": 384, "owner": {"id": 724}, "assignee": {"id": 98}}, "task": {"id": 342, "owner": {"id": 935}, "assignee": {"id": 1008}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 94, "privilege": "business"}, "organization": null}, "resource": {"id": 383, "assignee": {"id": 541}, "organization": {"id": 659}, "project": {"id": 356, "owner": {"id": 756}, "assignee": {"id": 94}}, "task": {"id": 327, "owner": {"id": 965}, "assignee": {"id": 1060}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": null}, "resource": {"id": 362, "assignee": {"id": 580}, "organization": {"id": 630}, "project": {"id": 335, "owner": {"id": 756}, "assignee": {"id": 34}}, "task": {"id": 391, "owner": {"id": 936}, "assignee": {"id": 1030}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": null}, "resource": {"id": 348, "assignee": {"id": 535}, "organization": {"id": 696}, "project": {"id": 353, "owner": {"id": 732}, "assignee": {"id": 69}}, "task": {"id": 360, "owner": {"id": 902}, "assignee": {"id": 1095}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": null}, "resource": {"id": 393, "assignee": {"id": 566}, "organization": {"id": 683}, "project": {"id": 334, "owner": {"id": 778}, "assignee": {"id": 55}}, "task": {"id": 399, "owner": {"id": 961}, "assignee": {"id": 1059}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": null}, "resource": {"id": 388, "assignee": {"id": 523}, "organization": {"id": 624}, "project": {"id": 327, "owner": {"id": 794}, "assignee": {"id": 861}}, "task": {"id": 335, "owner": {"id": 97}, "assignee": {"id": 1075}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": null}, "resource": {"id": 320, "assignee": {"id": 530}, "organization": {"id": 622}, "project": {"id": 370, "owner": {"id": 709}, "assignee": {"id": 820}}, "task": {"id": 300, "owner": {"id": 88}, "assignee": {"id": 1057}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": null}, "resource": {"id": 344, "assignee": {"id": 552}, "organization": {"id": 642}, "project": {"id": 341, "owner": {"id": 785}, "assignee": {"id": 813}}, "task": {"id": 320, "owner": {"id": 88}, "assignee": {"id": 1052}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": null}, "resource": {"id": 353, "assignee": {"id": 543}, "organization": {"id": 664}, "project": {"id": 334, "owner": {"id": 700}, "assignee": {"id": 836}}, "task": {"id": 392, "owner": {"id": 74}, "assignee": {"id": 1075}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": null}, "resource": {"id": 381, "assignee": {"id": 590}, "organization": {"id": 612}, "project": {"id": 356, "owner": {"id": 721}, "assignee": {"id": 888}}, "task": {"id": 338, "owner": {"id": 41}, "assignee": {"id": 1005}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": null}, "resource": {"id": 332, "assignee": {"id": 586}, "organization": {"id": 696}, "project": {"id": 392, "owner": {"id": 798}, "assignee": {"id": 884}}, "task": {"id": 387, "owner": {"id": 917}, "assignee": {"id": 12}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": null}, "resource": {"id": 314, "assignee": {"id": 512}, "organization": {"id": 630}, "project": {"id": 368, "owner": {"id": 717}, "assignee": {"id": 849}}, "task": {"id": 358, "owner": {"id": 947}, "assignee": {"id": 95}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": null}, "resource": {"id": 367, "assignee": {"id": 514}, "organization": {"id": 695}, "project": {"id": 308, "owner": {"id": 760}, "assignee": {"id": 857}}, "task": {"id": 399, "owner": {"id": 946}, "assignee": {"id": 75}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": null}, "resource": {"id": 316, "assignee": {"id": 571}, "organization": {"id": 607}, "project": {"id": 375, "owner": {"id": 771}, "assignee": {"id": 871}}, "task": {"id": 342, "owner": {"id": 985}, "assignee": {"id": 52}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": null}, "resource": {"id": 306, "assignee": {"id": 586}, "organization": {"id": 610}, "project": {"id": 334, "owner": {"id": 756}, "assignee": {"id": 884}}, "task": {"id": 354, "owner": {"id": 962}, "assignee": {"id": 56}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": null}, "resource": {"id": 310, "assignee": {"id": 9}, "organization": {"id": 639}, "project": {"id": 395, "owner": {"id": 743}, "assignee": {"id": 828}}, "task": {"id": 342, "owner": {"id": 999}, "assignee": {"id": 1021}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": null}, "resource": {"id": 364, "assignee": {"id": 82}, "organization": {"id": 607}, "project": {"id": 357, "owner": {"id": 713}, "assignee": {"id": 843}}, "task": {"id": 391, "owner": {"id": 910}, "assignee": {"id": 1064}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": null}, "resource": {"id": 312, "assignee": {"id": 98}, "organization": {"id": 698}, "project": {"id": 369, "owner": {"id": 794}, "assignee": {"id": 867}}, "task": {"id": 304, "owner": {"id": 984}, "assignee": {"id": 1043}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": null}, "resource": {"id": 303, "assignee": {"id": 36}, "organization": {"id": 612}, "project": {"id": 391, "owner": {"id": 783}, "assignee": {"id": 842}}, "task": {"id": 318, "owner": {"id": 917}, "assignee": {"id": 1004}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": null}, "resource": {"id": 398, "assignee": {"id": 43}, "organization": {"id": 694}, "project": {"id": 396, "owner": {"id": 742}, "assignee": {"id": 817}}, "task": {"id": 305, "owner": {"id": 945}, "assignee": {"id": 1069}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": null}, "resource": {"id": 378, "assignee": {"id": 555}, "organization": {"id": 635}, "project": {"id": 381, "owner": {"id": 707}, "assignee": {"id": 809}}, "task": {"id": 385, "owner": {"id": 981}, "assignee": {"id": 1051}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": null}, "resource": {"id": 322, "assignee": {"id": 546}, "organization": {"id": 665}, "project": {"id": 328, "owner": {"id": 715}, "assignee": {"id": 825}}, "task": {"id": 317, "owner": {"id": 930}, "assignee": {"id": 1063}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": null}, "resource": {"id": 305, "assignee": {"id": 582}, "organization": {"id": 698}, "project": {"id": 373, "owner": {"id": 733}, "assignee": {"id": 883}}, "task": {"id": 326, "owner": {"id": 998}, "assignee": {"id": 1073}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": null}, "resource": {"id": 376, "assignee": {"id": 583}, "organization": {"id": 686}, "project": {"id": 360, "owner": {"id": 736}, "assignee": {"id": 868}}, "task": {"id": 301, "owner": {"id": 913}, "assignee": {"id": 1055}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": null}, "resource": {"id": 380, "assignee": {"id": 503}, "organization": {"id": 676}, "project": {"id": 360, "owner": {"id": 733}, "assignee": {"id": 883}}, "task": {"id": 399, "owner": {"id": 974}, "assignee": {"id": 1073}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 399, "assignee": {"id": 548}, "organization": {"id": 102}, "project": {"id": 387, "owner": {"id": 24}, "assignee": {"id": 804}}, "task": {"id": 373, "owner": {"id": 989}, "assignee": {"id": 1014}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 340, "assignee": {"id": 553}, "organization": {"id": 619}, "project": {"id": 352, "owner": {"id": 78}, "assignee": {"id": 826}}, "task": {"id": 352, "owner": {"id": 964}, "assignee": {"id": 1099}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "assignee": {"id": 507}, "organization": {"id": 167}, "project": {"id": 317, "owner": {"id": 61}, "assignee": {"id": 826}}, "task": {"id": 371, "owner": {"id": 941}, "assignee": {"id": 1084}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "assignee": {"id": 522}, "organization": {"id": 658}, "project": {"id": 368, "owner": {"id": 92}, "assignee": {"id": 869}}, "task": {"id": 345, "owner": {"id": 986}, "assignee": {"id": 1098}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "assignee": {"id": 533}, "organization": {"id": 138}, "project": {"id": 361, "owner": {"id": 28}, "assignee": {"id": 831}}, "task": {"id": 335, "owner": {"id": 971}, "assignee": {"id": 1038}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "assignee": {"id": 590}, "organization": {"id": 626}, "project": {"id": 388, "owner": {"id": 71}, "assignee": {"id": 862}}, "task": {"id": 340, "owner": {"id": 961}, "assignee": {"id": 1044}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 336, "assignee": {"id": 515}, "organization": {"id": 137}, "project": {"id": 386, "owner": {"id": 18}, "assignee": {"id": 848}}, "task": {"id": 350, "owner": {"id": 944}, "assignee": {"id": 1098}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 336, "assignee": {"id": 591}, "organization": {"id": 610}, "project": {"id": 344, "owner": {"id": 27}, "assignee": {"id": 883}}, "task": {"id": 332, "owner": {"id": 995}, "assignee": {"id": 1061}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 334, "assignee": {"id": 571}, "organization": {"id": 131}, "project": {"id": 334, "owner": {"id": 30}, "assignee": {"id": 813}}, "task": {"id": 378, "owner": {"id": 994}, "assignee": {"id": 1075}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 385, "assignee": {"id": 567}, "organization": {"id": 628}, "project": {"id": 381, "owner": {"id": 91}, "assignee": {"id": 806}}, "task": {"id": 312, "owner": {"id": 952}, "assignee": {"id": 1042}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 387, "assignee": {"id": 598}, "organization": {"id": 183}, "project": {"id": 300, "owner": {"id": 61}, "assignee": {"id": 820}}, "task": {"id": 352, "owner": {"id": 983}, "assignee": {"id": 1060}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 396, "assignee": {"id": 536}, "organization": {"id": 641}, "project": {"id": 336, "owner": {"id": 73}, "assignee": {"id": 807}}, "task": {"id": 398, "owner": {"id": 911}, "assignee": {"id": 1083}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "assignee": {"id": 592}, "organization": {"id": 195}, "project": {"id": 322, "owner": {"id": 23}, "assignee": {"id": 822}}, "task": {"id": 304, "owner": {"id": 950}, "assignee": {"id": 1063}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "assignee": {"id": 501}, "organization": {"id": 638}, "project": {"id": 372, "owner": {"id": 82}, "assignee": {"id": 813}}, "task": {"id": 342, "owner": {"id": 936}, "assignee": {"id": 1058}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "assignee": {"id": 517}, "organization": {"id": 158}, "project": {"id": 359, "owner": {"id": 93}, "assignee": {"id": 824}}, "task": {"id": 314, "owner": {"id": 942}, "assignee": {"id": 1020}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "assignee": {"id": 591}, "organization": {"id": 623}, "project": {"id": 301, "owner": {"id": 96}, "assignee": {"id": 843}}, "task": {"id": 337, "owner": {"id": 972}, "assignee": {"id": 1086}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 378, "assignee": {"id": 581}, "organization": {"id": 123}, "project": {"id": 354, "owner": {"id": 12}, "assignee": {"id": 841}}, "task": {"id": 311, "owner": {"id": 951}, "assignee": {"id": 1085}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 361, "assignee": {"id": 541}, "organization": {"id": 631}, "project": {"id": 300, "owner": {"id": 34}, "assignee": {"id": 849}}, "task": {"id": 330, "owner": {"id": 957}, "assignee": {"id": 1096}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 374, "assignee": {"id": 592}, "organization": {"id": 185}, "project": {"id": 301, "owner": {"id": 7}, "assignee": {"id": 883}}, "task": {"id": 346, "owner": {"id": 988}, "assignee": {"id": 1030}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 359, "assignee": {"id": 539}, "organization": {"id": 620}, "project": {"id": 351, "owner": {"id": 88}, "assignee": {"id": 864}}, "task": {"id": 390, "owner": {"id": 998}, "assignee": {"id": 1039}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 337, "assignee": {"id": 547}, "organization": {"id": 177}, "project": {"id": 328, "owner": {"id": 95}, "assignee": {"id": 817}}, "task": {"id": 361, "owner": {"id": 919}, "assignee": {"id": 1058}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 353, "assignee": {"id": 589}, "organization": {"id": 670}, "project": {"id": 360, "owner": {"id": 31}, "assignee": {"id": 868}}, "task": {"id": 385, "owner": {"id": 927}, "assignee": {"id": 1097}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "assignee": {"id": 510}, "organization": {"id": 107}, "project": {"id": 357, "owner": {"id": 14}, "assignee": {"id": 890}}, "task": {"id": 346, "owner": {"id": 909}, "assignee": {"id": 1072}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "assignee": {"id": 525}, "organization": {"id": 673}, "project": {"id": 368, "owner": {"id": 14}, "assignee": {"id": 821}}, "task": {"id": 341, "owner": {"id": 966}, "assignee": {"id": 1056}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "assignee": {"id": 574}, "organization": {"id": 153}, "project": {"id": 311, "owner": {"id": 65}, "assignee": {"id": 857}}, "task": {"id": 307, "owner": {"id": 958}, "assignee": {"id": 1016}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "assignee": {"id": 507}, "organization": {"id": 671}, "project": {"id": 359, "owner": {"id": 32}, "assignee": {"id": 839}}, "task": {"id": 392, "owner": {"id": 902}, "assignee": {"id": 1050}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 327, "assignee": {"id": 574}, "organization": {"id": 108}, "project": {"id": 305, "owner": {"id": 7}, "assignee": {"id": 844}}, "task": {"id": 389, "owner": {"id": 908}, "assignee": {"id": 1069}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 304, "assignee": {"id": 536}, "organization": {"id": 652}, "project": {"id": 323, "owner": {"id": 82}, "assignee": {"id": 817}}, "task": {"id": 398, "owner": {"id": 982}, "assignee": {"id": 1093}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 348, "assignee": {"id": 557}, "organization": {"id": 144}, "project": {"id": 348, "owner": {"id": 83}, "assignee": {"id": 887}}, "task": {"id": 384, "owner": {"id": 969}, "assignee": {"id": 1017}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 322, "assignee": {"id": 568}, "organization": {"id": 650}, "project": {"id": 367, "owner": {"id": 2}, "assignee": {"id": 893}}, "task": {"id": 328, "owner": {"id": 900}, "assignee": {"id": 1096}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 386, "assignee": {"id": 592}, "organization": {"id": 119}, "project": {"id": 354, "owner": {"id": 44}, "assignee": {"id": 848}}, "task": {"id": 329, "owner": {"id": 931}, "assignee": {"id": 1058}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 324, "assignee": {"id": 592}, "organization": {"id": 697}, "project": {"id": 314, "owner": {"id": 2}, "assignee": {"id": 884}}, "task": {"id": 353, "owner": {"id": 978}, "assignee": {"id": 1098}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "assignee": {"id": 512}, "organization": {"id": 194}, "project": {"id": 304, "owner": {"id": 31}, "assignee": {"id": 876}}, "task": {"id": 386, "owner": {"id": 990}, "assignee": {"id": 1006}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "assignee": {"id": 556}, "organization": {"id": 629}, "project": {"id": 369, "owner": {"id": 64}, "assignee": {"id": 896}}, "task": {"id": 399, "owner": {"id": 907}, "assignee": {"id": 1017}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "assignee": {"id": 573}, "organization": {"id": 118}, "project": {"id": 373, "owner": {"id": 38}, "assignee": {"id": 898}}, "task": {"id": 386, "owner": {"id": 941}, "assignee": {"id": 1030}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "assignee": {"id": 528}, "organization": {"id": 652}, "project": {"id": 338, "owner": {"id": 22}, "assignee": {"id": 807}}, "task": {"id": 371, "owner": {"id": 975}, "assignee": {"id": 1094}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 354, "assignee": {"id": 571}, "organization": {"id": 189}, "project": {"id": 306, "owner": {"id": 40}, "assignee": {"id": 882}}, "task": {"id": 385, "owner": {"id": 948}, "assignee": {"id": 1067}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 352, "assignee": {"id": 519}, "organization": {"id": 638}, "project": {"id": 348, "owner": {"id": 28}, "assignee": {"id": 896}}, "task": {"id": 368, "owner": {"id": 960}, "assignee": {"id": 1030}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 318, "assignee": {"id": 559}, "organization": {"id": 131}, "project": {"id": 371, "owner": {"id": 49}, "assignee": {"id": 853}}, "task": {"id": 371, "owner": {"id": 967}, "assignee": {"id": 1017}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 24, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 326, "assignee": {"id": 542}, "organization": {"id": 682}, "project": {"id": 310, "owner": {"id": 24}, "assignee": {"id": 847}}, "task": {"id": 311, "owner": {"id": 968}, "assignee": {"id": 1092}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 348, "assignee": {"id": 586}, "organization": {"id": 185}, "project": {"id": 377, "owner": {"id": 92}, "assignee": {"id": 809}}, "task": {"id": 324, "owner": {"id": 997}, "assignee": {"id": 1075}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 327, "assignee": {"id": 561}, "organization": {"id": 626}, "project": {"id": 342, "owner": {"id": 15}, "assignee": {"id": 801}}, "task": {"id": 327, "owner": {"id": 924}, "assignee": {"id": 1094}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "assignee": {"id": 531}, "organization": {"id": 199}, "project": {"id": 377, "owner": {"id": 41}, "assignee": {"id": 826}}, "task": {"id": 350, "owner": {"id": 930}, "assignee": {"id": 1070}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "assignee": {"id": 559}, "organization": {"id": 668}, "project": {"id": 383, "owner": {"id": 63}, "assignee": {"id": 839}}, "task": {"id": 333, "owner": {"id": 946}, "assignee": {"id": 1065}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "assignee": {"id": 560}, "organization": {"id": 128}, "project": {"id": 340, "owner": {"id": 72}, "assignee": {"id": 847}}, "task": {"id": 340, "owner": {"id": 952}, "assignee": {"id": 1005}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 19, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "assignee": {"id": 502}, "organization": {"id": 633}, "project": {"id": 370, "owner": {"id": 19}, "assignee": {"id": 874}}, "task": {"id": 392, "owner": {"id": 953}, "assignee": {"id": 1037}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 329, "assignee": {"id": 548}, "organization": {"id": 197}, "project": {"id": 331, "owner": {"id": 32}, "assignee": {"id": 870}}, "task": {"id": 383, "owner": {"id": 987}, "assignee": {"id": 1043}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 392, "assignee": {"id": 582}, "organization": {"id": 694}, "project": {"id": 362, "owner": {"id": 17}, "assignee": {"id": 821}}, "task": {"id": 393, "owner": {"id": 945}, "assignee": {"id": 1021}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 362, "assignee": {"id": 523}, "organization": {"id": 197}, "project": {"id": 382, "owner": {"id": 6}, "assignee": {"id": 867}}, "task": {"id": 304, "owner": {"id": 909}, "assignee": {"id": 1085}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 352, "assignee": {"id": 517}, "organization": {"id": 680}, "project": {"id": 329, "owner": {"id": 64}, "assignee": {"id": 890}}, "task": {"id": 319, "owner": {"id": 901}, "assignee": {"id": 1027}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 307, "assignee": {"id": 579}, "organization": {"id": 168}, "project": {"id": 385, "owner": {"id": 778}, "assignee": {"id": 0}}, "task": {"id": 384, "owner": {"id": 962}, "assignee": {"id": 1002}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 352, "assignee": {"id": 501}, "organization": {"id": 602}, "project": {"id": 367, "owner": {"id": 792}, "assignee": {"id": 64}}, "task": {"id": 368, "owner": {"id": 936}, "assignee": {"id": 1002}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "assignee": {"id": 522}, "organization": {"id": 132}, "project": {"id": 312, "owner": {"id": 767}, "assignee": {"id": 67}}, "task": {"id": 330, "owner": {"id": 924}, "assignee": {"id": 1079}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "assignee": {"id": 550}, "organization": {"id": 610}, "project": {"id": 347, "owner": {"id": 751}, "assignee": {"id": 28}}, "task": {"id": 372, "owner": {"id": 931}, "assignee": {"id": 1089}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "assignee": {"id": 583}, "organization": {"id": 160}, "project": {"id": 397, "owner": {"id": 704}, "assignee": {"id": 70}}, "task": {"id": 351, "owner": {"id": 948}, "assignee": {"id": 1048}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "assignee": {"id": 501}, "organization": {"id": 689}, "project": {"id": 321, "owner": {"id": 710}, "assignee": {"id": 72}}, "task": {"id": 355, "owner": {"id": 982}, "assignee": {"id": 1042}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 305, "assignee": {"id": 529}, "organization": {"id": 135}, "project": {"id": 388, "owner": {"id": 772}, "assignee": {"id": 87}}, "task": {"id": 334, "owner": {"id": 905}, "assignee": {"id": 1009}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 372, "assignee": {"id": 584}, "organization": {"id": 604}, "project": {"id": 322, "owner": {"id": 740}, "assignee": {"id": 96}}, "task": {"id": 326, "owner": {"id": 975}, "assignee": {"id": 1018}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 309, "assignee": {"id": 538}, "organization": {"id": 149}, "project": {"id": 372, "owner": {"id": 730}, "assignee": {"id": 42}}, "task": {"id": 349, "owner": {"id": 986}, "assignee": {"id": 1069}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 394, "assignee": {"id": 517}, "organization": {"id": 688}, "project": {"id": 392, "owner": {"id": 710}, "assignee": {"id": 12}}, "task": {"id": 395, "owner": {"id": 944}, "assignee": {"id": 1006}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 309, "assignee": {"id": 543}, "organization": {"id": 181}, "project": {"id": 398, "owner": {"id": 778}, "assignee": {"id": 3}}, "task": {"id": 350, "owner": {"id": 999}, "assignee": {"id": 1041}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 357, "assignee": {"id": 562}, "organization": {"id": 629}, "project": {"id": 345, "owner": {"id": 770}, "assignee": {"id": 74}}, "task": {"id": 355, "owner": {"id": 923}, "assignee": {"id": 1087}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "assignee": {"id": 598}, "organization": {"id": 148}, "project": {"id": 337, "owner": {"id": 731}, "assignee": {"id": 19}}, "task": {"id": 309, "owner": {"id": 910}, "assignee": {"id": 1034}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "assignee": {"id": 519}, "organization": {"id": 694}, "project": {"id": 349, "owner": {"id": 740}, "assignee": {"id": 39}}, "task": {"id": 313, "owner": {"id": 911}, "assignee": {"id": 1000}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "assignee": {"id": 534}, "organization": {"id": 165}, "project": {"id": 316, "owner": {"id": 711}, "assignee": {"id": 71}}, "task": {"id": 355, "owner": {"id": 957}, "assignee": {"id": 1071}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "assignee": {"id": 503}, "organization": {"id": 611}, "project": {"id": 345, "owner": {"id": 770}, "assignee": {"id": 49}}, "task": {"id": 376, "owner": {"id": 976}, "assignee": {"id": 1041}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 352, "assignee": {"id": 549}, "organization": {"id": 187}, "project": {"id": 310, "owner": {"id": 792}, "assignee": {"id": 21}}, "task": {"id": 331, "owner": {"id": 973}, "assignee": {"id": 1066}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 321, "assignee": {"id": 517}, "organization": {"id": 634}, "project": {"id": 338, "owner": {"id": 734}, "assignee": {"id": 55}}, "task": {"id": 318, "owner": {"id": 908}, "assignee": {"id": 1021}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 338, "assignee": {"id": 561}, "organization": {"id": 178}, "project": {"id": 346, "owner": {"id": 732}, "assignee": {"id": 76}}, "task": {"id": 392, "owner": {"id": 980}, "assignee": {"id": 1063}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 358, "assignee": {"id": 513}, "organization": {"id": 617}, "project": {"id": 338, "owner": {"id": 700}, "assignee": {"id": 42}}, "task": {"id": 342, "owner": {"id": 979}, "assignee": {"id": 1048}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 355, "assignee": {"id": 583}, "organization": {"id": 140}, "project": {"id": 317, "owner": {"id": 738}, "assignee": {"id": 61}}, "task": {"id": 377, "owner": {"id": 988}, "assignee": {"id": 1025}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 350, "assignee": {"id": 540}, "organization": {"id": 637}, "project": {"id": 394, "owner": {"id": 788}, "assignee": {"id": 41}}, "task": {"id": 362, "owner": {"id": 973}, "assignee": {"id": 1031}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "assignee": {"id": 546}, "organization": {"id": 170}, "project": {"id": 372, "owner": {"id": 725}, "assignee": {"id": 98}}, "task": {"id": 369, "owner": {"id": 923}, "assignee": {"id": 1087}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "assignee": {"id": 559}, "organization": {"id": 690}, "project": {"id": 326, "owner": {"id": 756}, "assignee": {"id": 86}}, "task": {"id": 388, "owner": {"id": 908}, "assignee": {"id": 1052}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "assignee": {"id": 538}, "organization": {"id": 157}, "project": {"id": 332, "owner": {"id": 784}, "assignee": {"id": 9}}, "task": {"id": 391, "owner": {"id": 954}, "assignee": {"id": 1048}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "assignee": {"id": 574}, "organization": {"id": 651}, "project": {"id": 368, "owner": {"id": 764}, "assignee": {"id": 46}}, "task": {"id": 353, "owner": {"id": 969}, "assignee": {"id": 1004}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 376, "assignee": {"id": 581}, "organization": {"id": 182}, "project": {"id": 313, "owner": {"id": 798}, "assignee": {"id": 21}}, "task": {"id": 384, "owner": {"id": 985}, "assignee": {"id": 1045}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 305, "assignee": {"id": 572}, "organization": {"id": 682}, "project": {"id": 386, "owner": {"id": 782}, "assignee": {"id": 13}}, "task": {"id": 396, "owner": {"id": 942}, "assignee": {"id": 1055}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 333, "assignee": {"id": 528}, "organization": {"id": 157}, "project": {"id": 395, "owner": {"id": 766}, "assignee": {"id": 28}}, "task": {"id": 374, "owner": {"id": 988}, "assignee": {"id": 1073}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 350, "assignee": {"id": 559}, "organization": {"id": 698}, "project": {"id": 386, "owner": {"id": 775}, "assignee": {"id": 3}}, "task": {"id": 364, "owner": {"id": 919}, "assignee": {"id": 1044}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 337, "assignee": {"id": 553}, "organization": {"id": 126}, "project": {"id": 314, "owner": {"id": 793}, "assignee": {"id": 58}}, "task": {"id": 344, "owner": {"id": 939}, "assignee": {"id": 1043}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"id": 361, "assignee": {"id": 544}, "organization": {"id": 660}, "project": {"id": 312, "owner": {"id": 756}, "assignee": {"id": 8}}, "task": {"id": 389, "owner": {"id": 957}, "assignee": {"id": 1040}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "assignee": {"id": 514}, "organization": {"id": 166}, "project": {"id": 343, "owner": {"id": 782}, "assignee": {"id": 31}}, "task": {"id": 386, "owner": {"id": 921}, "assignee": {"id": 1094}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "assignee": {"id": 520}, "organization": {"id": 642}, "project": {"id": 371, "owner": {"id": 754}, "assignee": {"id": 23}}, "task": {"id": 329, "owner": {"id": 951}, "assignee": {"id": 1080}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "assignee": {"id": 555}, "organization": {"id": 149}, "project": {"id": 303, "owner": {"id": 794}, "assignee": {"id": 54}}, "task": {"id": 325, "owner": {"id": 957}, "assignee": {"id": 1075}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 390, "assignee": {"id": 527}, "organization": {"id": 626}, "project": {"id": 335, "owner": {"id": 796}, "assignee": {"id": 68}}, "task": {"id": 308, "owner": {"id": 973}, "assignee": {"id": 1013}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 341, "assignee": {"id": 525}, "organization": {"id": 176}, "project": {"id": 314, "owner": {"id": 733}, "assignee": {"id": 40}}, "task": {"id": 362, "owner": {"id": 967}, "assignee": {"id": 1081}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 378, "assignee": {"id": 550}, "organization": {"id": 675}, "project": {"id": 314, "owner": {"id": 744}, "assignee": {"id": 86}}, "task": {"id": 358, "owner": {"id": 979}, "assignee": {"id": 1022}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 378, "assignee": {"id": 575}, "organization": {"id": 123}, "project": {"id": 386, "owner": {"id": 717}, "assignee": {"id": 14}}, "task": {"id": 315, "owner": {"id": 930}, "assignee": {"id": 1039}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 388, "assignee": {"id": 518}, "organization": {"id": 665}, "project": {"id": 349, "owner": {"id": 753}, "assignee": {"id": 54}}, "task": {"id": 317, "owner": {"id": 973}, "assignee": {"id": 1049}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 381, "assignee": {"id": 568}, "organization": {"id": 123}, "project": {"id": 382, "owner": {"id": 722}, "assignee": {"id": 17}}, "task": {"id": 321, "owner": {"id": 962}, "assignee": {"id": 1036}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 357, "assignee": {"id": 579}, "organization": {"id": 606}, "project": {"id": 345, "owner": {"id": 701}, "assignee": {"id": 71}}, "task": {"id": 317, "owner": {"id": 924}, "assignee": {"id": 1049}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "assignee": {"id": 552}, "organization": {"id": 172}, "project": {"id": 362, "owner": {"id": 753}, "assignee": {"id": 10}}, "task": {"id": 356, "owner": {"id": 962}, "assignee": {"id": 1021}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "assignee": {"id": 528}, "organization": {"id": 637}, "project": {"id": 304, "owner": {"id": 735}, "assignee": {"id": 99}}, "task": {"id": 368, "owner": {"id": 936}, "assignee": {"id": 1021}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "assignee": {"id": 598}, "organization": {"id": 199}, "project": {"id": 363, "owner": {"id": 770}, "assignee": {"id": 34}}, "task": {"id": 314, "owner": {"id": 973}, "assignee": {"id": 1014}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "assignee": {"id": 569}, "organization": {"id": 696}, "project": {"id": 305, "owner": {"id": 797}, "assignee": {"id": 54}}, "task": {"id": 356, "owner": {"id": 969}, "assignee": {"id": 1027}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 383, "assignee": {"id": 596}, "organization": {"id": 115}, "project": {"id": 338, "owner": {"id": 704}, "assignee": {"id": 56}}, "task": {"id": 333, "owner": {"id": 944}, "assignee": {"id": 1011}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 330, "assignee": {"id": 526}, "organization": {"id": 694}, "project": {"id": 375, "owner": {"id": 788}, "assignee": {"id": 54}}, "task": {"id": 390, "owner": {"id": 978}, "assignee": {"id": 1080}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 317, "assignee": {"id": 526}, "organization": {"id": 121}, "project": {"id": 307, "owner": {"id": 772}, "assignee": {"id": 68}}, "task": {"id": 368, "owner": {"id": 935}, "assignee": {"id": 1076}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 390, "assignee": {"id": 537}, "organization": {"id": 637}, "project": {"id": 373, "owner": {"id": 734}, "assignee": {"id": 96}}, "task": {"id": 386, "owner": {"id": 912}, "assignee": {"id": 1017}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 335, "assignee": {"id": 583}, "organization": {"id": 197}, "project": {"id": 389, "owner": {"id": 716}, "assignee": {"id": 831}}, "task": {"id": 318, "owner": {"id": 31}, "assignee": {"id": 1041}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 350, "assignee": {"id": 562}, "organization": {"id": 618}, "project": {"id": 373, "owner": {"id": 780}, "assignee": {"id": 834}}, "task": {"id": 380, "owner": {"id": 57}, "assignee": {"id": 1048}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "assignee": {"id": 511}, "organization": {"id": 141}, "project": {"id": 365, "owner": {"id": 795}, "assignee": {"id": 835}}, "task": {"id": 388, "owner": {"id": 62}, "assignee": {"id": 1058}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "assignee": {"id": 599}, "organization": {"id": 693}, "project": {"id": 311, "owner": {"id": 793}, "assignee": {"id": 858}}, "task": {"id": 381, "owner": {"id": 45}, "assignee": {"id": 1089}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "assignee": {"id": 527}, "organization": {"id": 173}, "project": {"id": 327, "owner": {"id": 763}, "assignee": {"id": 834}}, "task": {"id": 341, "owner": {"id": 70}, "assignee": {"id": 1043}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "assignee": {"id": 562}, "organization": {"id": 643}, "project": {"id": 387, "owner": {"id": 797}, "assignee": {"id": 806}}, "task": {"id": 305, "owner": {"id": 58}, "assignee": {"id": 1080}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 320, "assignee": {"id": 556}, "organization": {"id": 120}, "project": {"id": 300, "owner": {"id": 754}, "assignee": {"id": 825}}, "task": {"id": 388, "owner": {"id": 38}, "assignee": {"id": 1083}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 311, "assignee": {"id": 583}, "organization": {"id": 646}, "project": {"id": 332, "owner": {"id": 710}, "assignee": {"id": 847}}, "task": {"id": 385, "owner": {"id": 6}, "assignee": {"id": 1021}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"id": 339, "assignee": {"id": 592}, "organization": {"id": 100}, "project": {"id": 396, "owner": {"id": 729}, "assignee": {"id": 854}}, "task": {"id": 383, "owner": {"id": 12}, "assignee": {"id": 1090}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 361, "assignee": {"id": 509}, "organization": {"id": 616}, "project": {"id": 375, "owner": {"id": 728}, "assignee": {"id": 866}}, "task": {"id": 387, "owner": {"id": 1}, "assignee": {"id": 1001}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 315, "assignee": {"id": 554}, "organization": {"id": 113}, "project": {"id": 316, "owner": {"id": 761}, "assignee": {"id": 809}}, "task": {"id": 329, "owner": {"id": 93}, "assignee": {"id": 1011}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 340, "assignee": {"id": 547}, "organization": {"id": 638}, "project": {"id": 317, "owner": {"id": 748}, "assignee": {"id": 899}}, "task": {"id": 396, "owner": {"id": 86}, "assignee": {"id": 1082}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "assignee": {"id": 572}, "organization": {"id": 180}, "project": {"id": 378, "owner": {"id": 783}, "assignee": {"id": 821}}, "task": {"id": 356, "owner": {"id": 27}, "assignee": {"id": 1092}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "assignee": {"id": 552}, "organization": {"id": 678}, "project": {"id": 387, "owner": {"id": 756}, "assignee": {"id": 827}}, "task": {"id": 311, "owner": {"id": 96}, "assignee": {"id": 1017}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "assignee": {"id": 549}, "organization": {"id": 131}, "project": {"id": 354, "owner": {"id": 740}, "assignee": {"id": 817}}, "task": {"id": 331, "owner": {"id": 10}, "assignee": {"id": 1082}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "assignee": {"id": 576}, "organization": {"id": 692}, "project": {"id": 377, "owner": {"id": 736}, "assignee": {"id": 899}}, "task": {"id": 388, "owner": {"id": 38}, "assignee": {"id": 1084}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 377, "assignee": {"id": 565}, "organization": {"id": 149}, "project": {"id": 395, "owner": {"id": 750}, "assignee": {"id": 837}}, "task": {"id": 382, "owner": {"id": 63}, "assignee": {"id": 1030}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 330, "assignee": {"id": 563}, "organization": {"id": 681}, "project": {"id": 376, "owner": {"id": 709}, "assignee": {"id": 867}}, "task": {"id": 301, "owner": {"id": 16}, "assignee": {"id": 1040}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 353, "assignee": {"id": 546}, "organization": {"id": 175}, "project": {"id": 387, "owner": {"id": 722}, "assignee": {"id": 897}}, "task": {"id": 360, "owner": {"id": 2}, "assignee": {"id": 1009}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 301, "assignee": {"id": 533}, "organization": {"id": 627}, "project": {"id": 305, "owner": {"id": 707}, "assignee": {"id": 850}}, "task": {"id": 364, "owner": {"id": 91}, "assignee": {"id": 1080}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 19, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 353, "assignee": {"id": 554}, "organization": {"id": 135}, "project": {"id": 351, "owner": {"id": 710}, "assignee": {"id": 881}}, "task": {"id": 368, "owner": {"id": 19}, "assignee": {"id": 1078}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 339, "assignee": {"id": 510}, "organization": {"id": 665}, "project": {"id": 326, "owner": {"id": 719}, "assignee": {"id": 868}}, "task": {"id": 341, "owner": {"id": 81}, "assignee": {"id": 1075}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "assignee": {"id": 582}, "organization": {"id": 111}, "project": {"id": 339, "owner": {"id": 789}, "assignee": {"id": 855}}, "task": {"id": 393, "owner": {"id": 31}, "assignee": {"id": 1007}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "assignee": {"id": 558}, "organization": {"id": 678}, "project": {"id": 377, "owner": {"id": 707}, "assignee": {"id": 839}}, "task": {"id": 385, "owner": {"id": 94}, "assignee": {"id": 1084}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "assignee": {"id": 590}, "organization": {"id": 192}, "project": {"id": 389, "owner": {"id": 701}, "assignee": {"id": 820}}, "task": {"id": 363, "owner": {"id": 66}, "assignee": {"id": 1066}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "assignee": {"id": 547}, "organization": {"id": 616}, "project": {"id": 395, "owner": {"id": 799}, "assignee": {"id": 834}}, "task": {"id": 393, "owner": {"id": 3}, "assignee": {"id": 1098}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 334, "assignee": {"id": 567}, "organization": {"id": 165}, "project": {"id": 333, "owner": {"id": 791}, "assignee": {"id": 873}}, "task": {"id": 380, "owner": {"id": 58}, "assignee": {"id": 1063}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 307, "assignee": {"id": 563}, "organization": {"id": 672}, "project": {"id": 321, "owner": {"id": 747}, "assignee": {"id": 820}}, "task": {"id": 332, "owner": {"id": 73}, "assignee": {"id": 1013}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 314, "assignee": {"id": 529}, "organization": {"id": 146}, "project": {"id": 365, "owner": {"id": 700}, "assignee": {"id": 805}}, "task": {"id": 301, "owner": {"id": 60}, "assignee": {"id": 1005}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 319, "assignee": {"id": 522}, "organization": {"id": 604}, "project": {"id": 370, "owner": {"id": 791}, "assignee": {"id": 894}}, "task": {"id": 383, "owner": {"id": 41}, "assignee": {"id": 1028}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 392, "assignee": {"id": 540}, "organization": {"id": 122}, "project": {"id": 309, "owner": {"id": 773}, "assignee": {"id": 847}}, "task": {"id": 315, "owner": {"id": 6}, "assignee": {"id": 1086}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 366, "assignee": {"id": 505}, "organization": {"id": 651}, "project": {"id": 308, "owner": {"id": 759}, "assignee": {"id": 836}}, "task": {"id": 399, "owner": {"id": 11}, "assignee": {"id": 1041}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 301, "assignee": {"id": 547}, "organization": {"id": 147}, "project": {"id": 337, "owner": {"id": 772}, "assignee": {"id": 838}}, "task": {"id": 394, "owner": {"id": 59}, "assignee": {"id": 1031}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "assignee": {"id": 598}, "organization": {"id": 699}, "project": {"id": 325, "owner": {"id": 793}, "assignee": {"id": 869}}, "task": {"id": 397, "owner": {"id": 0}, "assignee": {"id": 1019}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "assignee": {"id": 569}, "organization": {"id": 148}, "project": {"id": 381, "owner": {"id": 788}, "assignee": {"id": 801}}, "task": {"id": 342, "owner": {"id": 84}, "assignee": {"id": 1097}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "assignee": {"id": 539}, "organization": {"id": 613}, "project": {"id": 326, "owner": {"id": 767}, "assignee": {"id": 830}}, "task": {"id": 353, "owner": {"id": 18}, "assignee": {"id": 1007}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 311, "assignee": {"id": 505}, "organization": {"id": 174}, "project": {"id": 366, "owner": {"id": 752}, "assignee": {"id": 889}}, "task": {"id": 347, "owner": {"id": 10}, "assignee": {"id": 1095}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 364, "assignee": {"id": 517}, "organization": {"id": 681}, "project": {"id": 350, "owner": {"id": 709}, "assignee": {"id": 875}}, "task": {"id": 372, "owner": {"id": 84}, "assignee": {"id": 1055}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 337, "assignee": {"id": 533}, "organization": {"id": 129}, "project": {"id": 350, "owner": {"id": 789}, "assignee": {"id": 894}}, "task": {"id": 341, "owner": {"id": 34}, "assignee": {"id": 1057}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 325, "assignee": {"id": 517}, "organization": {"id": 699}, "project": {"id": 398, "owner": {"id": 774}, "assignee": {"id": 813}}, "task": {"id": 319, "owner": {"id": 57}, "assignee": {"id": 1021}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 352, "assignee": {"id": 515}, "organization": {"id": 115}, "project": {"id": 345, "owner": {"id": 798}, "assignee": {"id": 826}}, "task": {"id": 357, "owner": {"id": 33}, "assignee": {"id": 1059}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 320, "assignee": {"id": 587}, "organization": {"id": 638}, "project": {"id": 390, "owner": {"id": 789}, "assignee": {"id": 877}}, "task": {"id": 305, "owner": {"id": 18}, "assignee": {"id": 1041}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "assignee": {"id": 545}, "organization": {"id": 151}, "project": {"id": 365, "owner": {"id": 706}, "assignee": {"id": 886}}, "task": {"id": 338, "owner": {"id": 3}, "assignee": {"id": 1022}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "assignee": {"id": 595}, "organization": {"id": 670}, "project": {"id": 331, "owner": {"id": 712}, "assignee": {"id": 859}}, "task": {"id": 313, "owner": {"id": 1}, "assignee": {"id": 1015}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "assignee": {"id": 516}, "organization": {"id": 175}, "project": {"id": 351, "owner": {"id": 747}, "assignee": {"id": 887}}, "task": {"id": 380, "owner": {"id": 74}, "assignee": {"id": 1010}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "assignee": {"id": 502}, "organization": {"id": 608}, "project": {"id": 325, "owner": {"id": 782}, "assignee": {"id": 856}}, "task": {"id": 316, "owner": {"id": 15}, "assignee": {"id": 1042}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 306, "assignee": {"id": 521}, "organization": {"id": 154}, "project": {"id": 355, "owner": {"id": 792}, "assignee": {"id": 850}}, "task": {"id": 363, "owner": {"id": 87}, "assignee": {"id": 1048}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 345, "assignee": {"id": 527}, "organization": {"id": 623}, "project": {"id": 335, "owner": {"id": 735}, "assignee": {"id": 857}}, "task": {"id": 319, "owner": {"id": 79}, "assignee": {"id": 1078}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 382, "assignee": {"id": 537}, "organization": {"id": 117}, "project": {"id": 352, "owner": {"id": 770}, "assignee": {"id": 861}}, "task": {"id": 307, "owner": {"id": 49}, "assignee": {"id": 1035}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 325, "assignee": {"id": 582}, "organization": {"id": 667}, "project": {"id": 331, "owner": {"id": 780}, "assignee": {"id": 869}}, "task": {"id": 302, "owner": {"id": 45}, "assignee": {"id": 1091}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 362, "assignee": {"id": 544}, "organization": {"id": 176}, "project": {"id": 364, "owner": {"id": 741}, "assignee": {"id": 849}}, "task": {"id": 334, "owner": {"id": 923}, "assignee": {"id": 40}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 303, "assignee": {"id": 599}, "organization": {"id": 635}, "project": {"id": 307, "owner": {"id": 760}, "assignee": {"id": 867}}, "task": {"id": 345, "owner": {"id": 998}, "assignee": {"id": 29}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "assignee": {"id": 584}, "organization": {"id": 149}, "project": {"id": 334, "owner": {"id": 768}, "assignee": {"id": 894}}, "task": {"id": 307, "owner": {"id": 997}, "assignee": {"id": 73}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "assignee": {"id": 522}, "organization": {"id": 630}, "project": {"id": 375, "owner": {"id": 740}, "assignee": {"id": 894}}, "task": {"id": 389, "owner": {"id": 945}, "assignee": {"id": 3}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "assignee": {"id": 572}, "organization": {"id": 162}, "project": {"id": 318, "owner": {"id": 772}, "assignee": {"id": 824}}, "task": {"id": 363, "owner": {"id": 969}, "assignee": {"id": 22}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "assignee": {"id": 507}, "organization": {"id": 629}, "project": {"id": 377, "owner": {"id": 728}, "assignee": {"id": 802}}, "task": {"id": 367, "owner": {"id": 961}, "assignee": {"id": 42}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 316, "assignee": {"id": 543}, "organization": {"id": 118}, "project": {"id": 322, "owner": {"id": 741}, "assignee": {"id": 807}}, "task": {"id": 302, "owner": {"id": 918}, "assignee": {"id": 90}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 314, "assignee": {"id": 567}, "organization": {"id": 646}, "project": {"id": 309, "owner": {"id": 747}, "assignee": {"id": 890}}, "task": {"id": 384, "owner": {"id": 950}, "assignee": {"id": 12}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 341, "assignee": {"id": 517}, "organization": {"id": 190}, "project": {"id": 393, "owner": {"id": 755}, "assignee": {"id": 881}}, "task": {"id": 362, "owner": {"id": 983}, "assignee": {"id": 22}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 388, "assignee": {"id": 578}, "organization": {"id": 645}, "project": {"id": 328, "owner": {"id": 785}, "assignee": {"id": 875}}, "task": {"id": 322, "owner": {"id": 948}, "assignee": {"id": 93}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 316, "assignee": {"id": 522}, "organization": {"id": 123}, "project": {"id": 300, "owner": {"id": 789}, "assignee": {"id": 873}}, "task": {"id": 350, "owner": {"id": 998}, "assignee": {"id": 4}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 340, "assignee": {"id": 578}, "organization": {"id": 628}, "project": {"id": 381, "owner": {"id": 772}, "assignee": {"id": 813}}, "task": {"id": 363, "owner": {"id": 918}, "assignee": {"id": 95}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "assignee": {"id": 540}, "organization": {"id": 157}, "project": {"id": 381, "owner": {"id": 711}, "assignee": {"id": 890}}, "task": {"id": 385, "owner": {"id": 981}, "assignee": {"id": 42}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "assignee": {"id": 526}, "organization": {"id": 631}, "project": {"id": 388, "owner": {"id": 708}, "assignee": {"id": 844}}, "task": {"id": 332, "owner": {"id": 913}, "assignee": {"id": 0}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "assignee": {"id": 593}, "organization": {"id": 112}, "project": {"id": 321, "owner": {"id": 752}, "assignee": {"id": 863}}, "task": {"id": 348, "owner": {"id": 944}, "assignee": {"id": 48}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "assignee": {"id": 583}, "organization": {"id": 697}, "project": {"id": 387, "owner": {"id": 728}, "assignee": {"id": 820}}, "task": {"id": 357, "owner": {"id": 909}, "assignee": {"id": 37}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 333, "assignee": {"id": 513}, "organization": {"id": 111}, "project": {"id": 343, "owner": {"id": 721}, "assignee": {"id": 848}}, "task": {"id": 320, "owner": {"id": 993}, "assignee": {"id": 70}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 376, "assignee": {"id": 578}, "organization": {"id": 661}, "project": {"id": 390, "owner": {"id": 703}, "assignee": {"id": 855}}, "task": {"id": 383, "owner": {"id": 921}, "assignee": {"id": 55}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 312, "assignee": {"id": 542}, "organization": {"id": 133}, "project": {"id": 324, "owner": {"id": 752}, "assignee": {"id": 889}}, "task": {"id": 370, "owner": {"id": 992}, "assignee": {"id": 69}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 336, "assignee": {"id": 538}, "organization": {"id": 630}, "project": {"id": 312, "owner": {"id": 706}, "assignee": {"id": 850}}, "task": {"id": 373, "owner": {"id": 970}, "assignee": {"id": 19}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 300, "assignee": {"id": 554}, "organization": {"id": 103}, "project": {"id": 337, "owner": {"id": 784}, "assignee": {"id": 880}}, "task": {"id": 376, "owner": {"id": 961}, "assignee": {"id": 12}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 321, "assignee": {"id": 581}, "organization": {"id": 637}, "project": {"id": 310, "owner": {"id": 760}, "assignee": {"id": 814}}, "task": {"id": 339, "owner": {"id": 950}, "assignee": {"id": 62}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "assignee": {"id": 582}, "organization": {"id": 105}, "project": {"id": 349, "owner": {"id": 723}, "assignee": {"id": 847}}, "task": {"id": 348, "owner": {"id": 947}, "assignee": {"id": 57}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "assignee": {"id": 559}, "organization": {"id": 633}, "project": {"id": 328, "owner": {"id": 734}, "assignee": {"id": 872}}, "task": {"id": 307, "owner": {"id": 919}, "assignee": {"id": 89}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "assignee": {"id": 585}, "organization": {"id": 149}, "project": {"id": 369, "owner": {"id": 752}, "assignee": {"id": 896}}, "task": {"id": 375, "owner": {"id": 929}, "assignee": {"id": 7}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "assignee": {"id": 568}, "organization": {"id": 687}, "project": {"id": 360, "owner": {"id": 773}, "assignee": {"id": 830}}, "task": {"id": 360, "owner": {"id": 938}, "assignee": {"id": 50}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 364, "assignee": {"id": 573}, "organization": {"id": 122}, "project": {"id": 373, "owner": {"id": 786}, "assignee": {"id": 879}}, "task": {"id": 318, "owner": {"id": 915}, "assignee": {"id": 57}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 327, "assignee": {"id": 524}, "organization": {"id": 616}, "project": {"id": 305, "owner": {"id": 754}, "assignee": {"id": 810}}, "task": {"id": 387, "owner": {"id": 955}, "assignee": {"id": 80}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 333, "assignee": {"id": 540}, "organization": {"id": 135}, "project": {"id": 308, "owner": {"id": 711}, "assignee": {"id": 849}}, "task": {"id": 371, "owner": {"id": 950}, "assignee": {"id": 41}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 19, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 358, "assignee": {"id": 501}, "organization": {"id": 689}, "project": {"id": 379, "owner": {"id": 775}, "assignee": {"id": 866}}, "task": {"id": 353, "owner": {"id": 914}, "assignee": {"id": 19}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 375, "assignee": {"id": 574}, "organization": {"id": 144}, "project": {"id": 312, "owner": {"id": 713}, "assignee": {"id": 872}}, "task": {"id": 399, "owner": {"id": 912}, "assignee": {"id": 68}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 333, "assignee": {"id": 549}, "organization": {"id": 683}, "project": {"id": 362, "owner": {"id": 773}, "assignee": {"id": 877}}, "task": {"id": 360, "owner": {"id": 904}, "assignee": {"id": 35}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "assignee": {"id": 577}, "organization": {"id": 106}, "project": {"id": 388, "owner": {"id": 751}, "assignee": {"id": 804}}, "task": {"id": 350, "owner": {"id": 942}, "assignee": {"id": 30}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "assignee": {"id": 534}, "organization": {"id": 647}, "project": {"id": 302, "owner": {"id": 743}, "assignee": {"id": 838}}, "task": {"id": 339, "owner": {"id": 935}, "assignee": {"id": 89}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "assignee": {"id": 517}, "organization": {"id": 177}, "project": {"id": 395, "owner": {"id": 756}, "assignee": {"id": 899}}, "task": {"id": 341, "owner": {"id": 934}, "assignee": {"id": 53}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "assignee": {"id": 524}, "organization": {"id": 656}, "project": {"id": 327, "owner": {"id": 752}, "assignee": {"id": 894}}, "task": {"id": 362, "owner": {"id": 997}, "assignee": {"id": 47}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 320, "assignee": {"id": 508}, "organization": {"id": 103}, "project": {"id": 390, "owner": {"id": 764}, "assignee": {"id": 851}}, "task": {"id": 317, "owner": {"id": 999}, "assignee": {"id": 72}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 324, "assignee": {"id": 525}, "organization": {"id": 607}, "project": {"id": 331, "owner": {"id": 704}, "assignee": {"id": 858}}, "task": {"id": 306, "owner": {"id": 946}, "assignee": {"id": 25}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 359, "assignee": {"id": 564}, "organization": {"id": 176}, "project": {"id": 381, "owner": {"id": 715}, "assignee": {"id": 887}}, "task": {"id": 303, "owner": {"id": 930}, "assignee": {"id": 62}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 322, "assignee": {"id": 560}, "organization": {"id": 675}, "project": {"id": 370, "owner": {"id": 744}, "assignee": {"id": 844}}, "task": {"id": 320, "owner": {"id": 933}, "assignee": {"id": 88}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 303, "assignee": {"id": 549}, "organization": {"id": 186}, "project": {"id": 320, "owner": {"id": 773}, "assignee": {"id": 899}}, "task": {"id": 327, "owner": {"id": 928}, "assignee": {"id": 28}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 334, "assignee": {"id": 583}, "organization": {"id": 652}, "project": {"id": 365, "owner": {"id": 702}, "assignee": {"id": 899}}, "task": {"id": 398, "owner": {"id": 987}, "assignee": {"id": 60}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "assignee": {"id": 576}, "organization": {"id": 135}, "project": {"id": 328, "owner": {"id": 732}, "assignee": {"id": 877}}, "task": {"id": 339, "owner": {"id": 991}, "assignee": {"id": 82}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "assignee": {"id": 544}, "organization": {"id": 658}, "project": {"id": 332, "owner": {"id": 727}, "assignee": {"id": 859}}, "task": {"id": 338, "owner": {"id": 986}, "assignee": {"id": 79}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "assignee": {"id": 500}, "organization": {"id": 138}, "project": {"id": 384, "owner": {"id": 747}, "assignee": {"id": 871}}, "task": {"id": 382, "owner": {"id": 976}, "assignee": {"id": 36}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "assignee": {"id": 561}, "organization": {"id": 608}, "project": {"id": 343, "owner": {"id": 735}, "assignee": {"id": 881}}, "task": {"id": 341, "owner": {"id": 935}, "assignee": {"id": 83}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 338, "assignee": {"id": 524}, "organization": {"id": 140}, "project": {"id": 366, "owner": {"id": 797}, "assignee": {"id": 830}}, "task": {"id": 307, "owner": {"id": 976}, "assignee": {"id": 84}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 317, "assignee": {"id": 592}, "organization": {"id": 603}, "project": {"id": 383, "owner": {"id": 763}, "assignee": {"id": 837}}, "task": {"id": 333, "owner": {"id": 953}, "assignee": {"id": 49}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 374, "assignee": {"id": 590}, "organization": {"id": 181}, "project": {"id": 324, "owner": {"id": 743}, "assignee": {"id": 892}}, "task": {"id": 391, "owner": {"id": 928}, "assignee": {"id": 68}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 385, "assignee": {"id": 545}, "organization": {"id": 664}, "project": {"id": 338, "owner": {"id": 721}, "assignee": {"id": 884}}, "task": {"id": 371, "owner": {"id": 923}, "assignee": {"id": 12}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 394, "assignee": {"id": 11}, "organization": {"id": 128}, "project": {"id": 371, "owner": {"id": 797}, "assignee": {"id": 823}}, "task": {"id": 387, "owner": {"id": 942}, "assignee": {"id": 1083}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 328, "assignee": {"id": 59}, "organization": {"id": 639}, "project": {"id": 353, "owner": {"id": 742}, "assignee": {"id": 847}}, "task": {"id": 333, "owner": {"id": 974}, "assignee": {"id": 1037}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "assignee": {"id": 15}, "organization": {"id": 187}, "project": {"id": 374, "owner": {"id": 779}, "assignee": {"id": 809}}, "task": {"id": 360, "owner": {"id": 924}, "assignee": {"id": 1064}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "assignee": {"id": 72}, "organization": {"id": 652}, "project": {"id": 306, "owner": {"id": 719}, "assignee": {"id": 817}}, "task": {"id": 325, "owner": {"id": 943}, "assignee": {"id": 1052}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 340, "assignee": {"id": 40}, "organization": {"id": 181}, "project": {"id": 399, "owner": {"id": 710}, "assignee": {"id": 862}}, "task": {"id": 342, "owner": {"id": 980}, "assignee": {"id": 1022}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "assignee": {"id": 20}, "organization": {"id": 635}, "project": {"id": 326, "owner": {"id": 797}, "assignee": {"id": 899}}, "task": {"id": 321, "owner": {"id": 973}, "assignee": {"id": 1097}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 399, "assignee": {"id": 61}, "organization": {"id": 149}, "project": {"id": 378, "owner": {"id": 755}, "assignee": {"id": 881}}, "task": {"id": 354, "owner": {"id": 951}, "assignee": {"id": 1054}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 304, "assignee": {"id": 24}, "organization": {"id": 625}, "project": {"id": 393, "owner": {"id": 747}, "assignee": {"id": 801}}, "task": {"id": 341, "owner": {"id": 996}, "assignee": {"id": 1067}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 300, "assignee": {"id": 13}, "organization": {"id": 149}, "project": {"id": 331, "owner": {"id": 728}, "assignee": {"id": 888}}, "task": {"id": 344, "owner": {"id": 939}, "assignee": {"id": 1016}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"id": 375, "assignee": {"id": 66}, "organization": {"id": 621}, "project": {"id": 308, "owner": {"id": 705}, "assignee": {"id": 838}}, "task": {"id": 337, "owner": {"id": 958}, "assignee": {"id": 1093}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 343, "assignee": {"id": 21}, "organization": {"id": 151}, "project": {"id": 317, "owner": {"id": 743}, "assignee": {"id": 862}}, "task": {"id": 345, "owner": {"id": 996}, "assignee": {"id": 1024}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 329, "assignee": {"id": 21}, "organization": {"id": 693}, "project": {"id": 316, "owner": {"id": 727}, "assignee": {"id": 893}}, "task": {"id": 302, "owner": {"id": 975}, "assignee": {"id": 1064}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "assignee": {"id": 6}, "organization": {"id": 176}, "project": {"id": 348, "owner": {"id": 781}, "assignee": {"id": 832}}, "task": {"id": 398, "owner": {"id": 968}, "assignee": {"id": 1079}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "assignee": {"id": 48}, "organization": {"id": 683}, "project": {"id": 302, "owner": {"id": 706}, "assignee": {"id": 888}}, "task": {"id": 314, "owner": {"id": 953}, "assignee": {"id": 1056}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "assignee": {"id": 38}, "organization": {"id": 153}, "project": {"id": 319, "owner": {"id": 726}, "assignee": {"id": 888}}, "task": {"id": 387, "owner": {"id": 980}, "assignee": {"id": 1001}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "assignee": {"id": 13}, "organization": {"id": 666}, "project": {"id": 334, "owner": {"id": 779}, "assignee": {"id": 877}}, "task": {"id": 389, "owner": {"id": 917}, "assignee": {"id": 1053}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 379, "assignee": {"id": 99}, "organization": {"id": 133}, "project": {"id": 314, "owner": {"id": 713}, "assignee": {"id": 863}}, "task": {"id": 325, "owner": {"id": 977}, "assignee": {"id": 1025}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 26, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 325, "assignee": {"id": 26}, "organization": {"id": 690}, "project": {"id": 352, "owner": {"id": 737}, "assignee": {"id": 820}}, "task": {"id": 305, "owner": {"id": 970}, "assignee": {"id": 1063}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 342, "assignee": {"id": 63}, "organization": {"id": 119}, "project": {"id": 301, "owner": {"id": 785}, "assignee": {"id": 811}}, "task": {"id": 314, "owner": {"id": 973}, "assignee": {"id": 1085}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"id": 399, "assignee": {"id": 58}, "organization": {"id": 609}, "project": {"id": 392, "owner": {"id": 792}, "assignee": {"id": 812}}, "task": {"id": 332, "owner": {"id": 982}, "assignee": {"id": 1029}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 359, "assignee": {"id": 54}, "organization": {"id": 194}, "project": {"id": 322, "owner": {"id": 705}, "assignee": {"id": 837}}, "task": {"id": 346, "owner": {"id": 986}, "assignee": {"id": 1040}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 312, "assignee": {"id": 45}, "organization": {"id": 605}, "project": {"id": 301, "owner": {"id": 717}, "assignee": {"id": 884}}, "task": {"id": 382, "owner": {"id": 921}, "assignee": {"id": 1042}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "assignee": {"id": 58}, "organization": {"id": 134}, "project": {"id": 347, "owner": {"id": 743}, "assignee": {"id": 823}}, "task": {"id": 314, "owner": {"id": 951}, "assignee": {"id": 1051}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "assignee": {"id": 7}, "organization": {"id": 653}, "project": {"id": 383, "owner": {"id": 721}, "assignee": {"id": 814}}, "task": {"id": 316, "owner": {"id": 989}, "assignee": {"id": 1092}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "assignee": {"id": 99}, "organization": {"id": 145}, "project": {"id": 372, "owner": {"id": 786}, "assignee": {"id": 856}}, "task": {"id": 323, "owner": {"id": 978}, "assignee": {"id": 1048}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "assignee": {"id": 5}, "organization": {"id": 693}, "project": {"id": 316, "owner": {"id": 761}, "assignee": {"id": 862}}, "task": {"id": 314, "owner": {"id": 952}, "assignee": {"id": 1056}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 383, "assignee": {"id": 92}, "organization": {"id": 172}, "project": {"id": 390, "owner": {"id": 786}, "assignee": {"id": 867}}, "task": {"id": 398, "owner": {"id": 995}, "assignee": {"id": 1073}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 385, "assignee": {"id": 84}, "organization": {"id": 666}, "project": {"id": 366, "owner": {"id": 788}, "assignee": {"id": 889}}, "task": {"id": 379, "owner": {"id": 912}, "assignee": {"id": 1055}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 361, "assignee": {"id": 6}, "organization": {"id": 101}, "project": {"id": 386, "owner": {"id": 782}, "assignee": {"id": 849}}, "task": {"id": 319, "owner": {"id": 971}, "assignee": {"id": 1078}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 320, "assignee": {"id": 30}, "organization": {"id": 660}, "project": {"id": 363, "owner": {"id": 721}, "assignee": {"id": 809}}, "task": {"id": 396, "owner": {"id": 962}, "assignee": {"id": 1041}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 306, "assignee": {"id": 58}, "organization": {"id": 156}, "project": {"id": 370, "owner": {"id": 782}, "assignee": {"id": 848}}, "task": {"id": 351, "owner": {"id": 930}, "assignee": {"id": 1010}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 357, "assignee": {"id": 2}, "organization": {"id": 663}, "project": {"id": 357, "owner": {"id": 740}, "assignee": {"id": 815}}, "task": {"id": 363, "owner": {"id": 995}, "assignee": {"id": 1083}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "assignee": {"id": 38}, "organization": {"id": 165}, "project": {"id": 370, "owner": {"id": 700}, "assignee": {"id": 811}}, "task": {"id": 377, "owner": {"id": 979}, "assignee": {"id": 1081}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "assignee": {"id": 42}, "organization": {"id": 685}, "project": {"id": 358, "owner": {"id": 743}, "assignee": {"id": 846}}, "task": {"id": 306, "owner": {"id": 928}, "assignee": {"id": 1058}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "assignee": {"id": 12}, "organization": {"id": 197}, "project": {"id": 391, "owner": {"id": 784}, "assignee": {"id": 846}}, "task": {"id": 391, "owner": {"id": 957}, "assignee": {"id": 1014}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "assignee": {"id": 89}, "organization": {"id": 643}, "project": {"id": 345, "owner": {"id": 781}, "assignee": {"id": 837}}, "task": {"id": 370, "owner": {"id": 966}, "assignee": {"id": 1047}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 321, "assignee": {"id": 78}, "organization": {"id": 125}, "project": {"id": 391, "owner": {"id": 795}, "assignee": {"id": 892}}, "task": {"id": 352, "owner": {"id": 913}, "assignee": {"id": 1032}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 315, "assignee": {"id": 53}, "organization": {"id": 627}, "project": {"id": 358, "owner": {"id": 724}, "assignee": {"id": 891}}, "task": {"id": 343, "owner": {"id": 913}, "assignee": {"id": 1096}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 386, "assignee": {"id": 17}, "organization": {"id": 163}, "project": {"id": 398, "owner": {"id": 757}, "assignee": {"id": 858}}, "task": {"id": 384, "owner": {"id": 975}, "assignee": {"id": 1064}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 367, "assignee": {"id": 22}, "organization": {"id": 606}, "project": {"id": 370, "owner": {"id": 755}, "assignee": {"id": 874}}, "task": {"id": 361, "owner": {"id": 965}, "assignee": {"id": 1099}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 322, "assignee": {"id": 64}, "organization": {"id": 149}, "project": {"id": 313, "owner": {"id": 749}, "assignee": {"id": 884}}, "task": {"id": 376, "owner": {"id": 977}, "assignee": {"id": 1041}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 377, "assignee": {"id": 17}, "organization": {"id": 697}, "project": {"id": 331, "owner": {"id": 735}, "assignee": {"id": 850}}, "task": {"id": 343, "owner": {"id": 937}, "assignee": {"id": 1057}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "assignee": {"id": 94}, "organization": {"id": 170}, "project": {"id": 365, "owner": {"id": 738}, "assignee": {"id": 889}}, "task": {"id": 370, "owner": {"id": 940}, "assignee": {"id": 1091}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "assignee": {"id": 16}, "organization": {"id": 626}, "project": {"id": 379, "owner": {"id": 791}, "assignee": {"id": 837}}, "task": {"id": 387, "owner": {"id": 944}, "assignee": {"id": 1086}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "assignee": {"id": 45}, "organization": {"id": 171}, "project": {"id": 388, "owner": {"id": 781}, "assignee": {"id": 841}}, "task": {"id": 390, "owner": {"id": 914}, "assignee": {"id": 1097}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "assignee": {"id": 54}, "organization": {"id": 685}, "project": {"id": 390, "owner": {"id": 753}, "assignee": {"id": 886}}, "task": {"id": 395, "owner": {"id": 968}, "assignee": {"id": 1036}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 313, "assignee": {"id": 96}, "organization": {"id": 120}, "project": {"id": 318, "owner": {"id": 706}, "assignee": {"id": 885}}, "task": {"id": 307, "owner": {"id": 925}, "assignee": {"id": 1034}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 387, "assignee": {"id": 4}, "organization": {"id": 618}, "project": {"id": 307, "owner": {"id": 788}, "assignee": {"id": 837}}, "task": {"id": 326, "owner": {"id": 996}, "assignee": {"id": 1069}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 313, "assignee": {"id": 49}, "organization": {"id": 130}, "project": {"id": 394, "owner": {"id": 771}, "assignee": {"id": 828}}, "task": {"id": 395, "owner": {"id": 982}, "assignee": {"id": 1071}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 389, "assignee": {"id": 40}, "organization": {"id": 688}, "project": {"id": 385, "owner": {"id": 706}, "assignee": {"id": 848}}, "task": {"id": 349, "owner": {"id": 953}, "assignee": {"id": 1087}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 301, "assignee": {"id": 595}, "organization": {"id": 190}, "project": {"id": 325, "owner": {"id": 779}, "assignee": {"id": 899}}, "task": {"id": 356, "owner": {"id": 928}, "assignee": {"id": 1081}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 347, "assignee": {"id": 596}, "organization": {"id": 675}, "project": {"id": 369, "owner": {"id": 794}, "assignee": {"id": 877}}, "task": {"id": 325, "owner": {"id": 999}, "assignee": {"id": 1092}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "assignee": {"id": 587}, "organization": {"id": 154}, "project": {"id": 323, "owner": {"id": 722}, "assignee": {"id": 894}}, "task": {"id": 365, "owner": {"id": 915}, "assignee": {"id": 1048}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "assignee": {"id": 533}, "organization": {"id": 616}, "project": {"id": 320, "owner": {"id": 774}, "assignee": {"id": 832}}, "task": {"id": 300, "owner": {"id": 942}, "assignee": {"id": 1059}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "assignee": {"id": 541}, "organization": {"id": 173}, "project": {"id": 306, "owner": {"id": 799}, "assignee": {"id": 880}}, "task": {"id": 378, "owner": {"id": 984}, "assignee": {"id": 1038}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "assignee": {"id": 509}, "organization": {"id": 690}, "project": {"id": 340, "owner": {"id": 767}, "assignee": {"id": 828}}, "task": {"id": 323, "owner": {"id": 966}, "assignee": {"id": 1008}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 369, "assignee": {"id": 568}, "organization": {"id": 146}, "project": {"id": 311, "owner": {"id": 744}, "assignee": {"id": 828}}, "task": {"id": 327, "owner": {"id": 984}, "assignee": {"id": 1042}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 327, "assignee": {"id": 596}, "organization": {"id": 679}, "project": {"id": 367, "owner": {"id": 760}, "assignee": {"id": 871}}, "task": {"id": 396, "owner": {"id": 983}, "assignee": {"id": 1001}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 357, "assignee": {"id": 530}, "organization": {"id": 114}, "project": {"id": 378, "owner": {"id": 779}, "assignee": {"id": 831}}, "task": {"id": 305, "owner": {"id": 987}, "assignee": {"id": 1041}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 332, "assignee": {"id": 569}, "organization": {"id": 692}, "project": {"id": 336, "owner": {"id": 703}, "assignee": {"id": 866}}, "task": {"id": 398, "owner": {"id": 947}, "assignee": {"id": 1065}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 305, "assignee": {"id": 537}, "organization": {"id": 168}, "project": {"id": 324, "owner": {"id": 741}, "assignee": {"id": 865}}, "task": {"id": 310, "owner": {"id": 912}, "assignee": {"id": 1021}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 300, "assignee": {"id": 580}, "organization": {"id": 608}, "project": {"id": 326, "owner": {"id": 785}, "assignee": {"id": 880}}, "task": {"id": 399, "owner": {"id": 927}, "assignee": {"id": 1087}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "assignee": {"id": 589}, "organization": {"id": 103}, "project": {"id": 399, "owner": {"id": 755}, "assignee": {"id": 882}}, "task": {"id": 309, "owner": {"id": 995}, "assignee": {"id": 1087}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "assignee": {"id": 542}, "organization": {"id": 604}, "project": {"id": 311, "owner": {"id": 709}, "assignee": {"id": 806}}, "task": {"id": 322, "owner": {"id": 932}, "assignee": {"id": 1071}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "assignee": {"id": 552}, "organization": {"id": 186}, "project": {"id": 357, "owner": {"id": 780}, "assignee": {"id": 851}}, "task": {"id": 355, "owner": {"id": 940}, "assignee": {"id": 1002}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "assignee": {"id": 500}, "organization": {"id": 682}, "project": {"id": 392, "owner": {"id": 779}, "assignee": {"id": 808}}, "task": {"id": 396, "owner": {"id": 995}, "assignee": {"id": 1074}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 345, "assignee": {"id": 564}, "organization": {"id": 156}, "project": {"id": 337, "owner": {"id": 787}, "assignee": {"id": 838}}, "task": {"id": 377, "owner": {"id": 911}, "assignee": {"id": 1036}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 350, "assignee": {"id": 584}, "organization": {"id": 603}, "project": {"id": 360, "owner": {"id": 720}, "assignee": {"id": 868}}, "task": {"id": 328, "owner": {"id": 917}, "assignee": {"id": 1095}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 381, "assignee": {"id": 518}, "organization": {"id": 118}, "project": {"id": 386, "owner": {"id": 793}, "assignee": {"id": 882}}, "task": {"id": 347, "owner": {"id": 901}, "assignee": {"id": 1070}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 26, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 305, "assignee": {"id": 500}, "organization": {"id": 673}, "project": {"id": 376, "owner": {"id": 750}, "assignee": {"id": 868}}, "task": {"id": 370, "owner": {"id": 910}, "assignee": {"id": 1039}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 392, "assignee": {"id": 544}, "organization": {"id": 178}, "project": {"id": 352, "owner": {"id": 782}, "assignee": {"id": 865}}, "task": {"id": 318, "owner": {"id": 920}, "assignee": {"id": 1023}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 324, "assignee": {"id": 514}, "organization": {"id": 623}, "project": {"id": 385, "owner": {"id": 772}, "assignee": {"id": 806}}, "task": {"id": 396, "owner": {"id": 970}, "assignee": {"id": 1059}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "assignee": {"id": 585}, "organization": {"id": 145}, "project": {"id": 332, "owner": {"id": 712}, "assignee": {"id": 825}}, "task": {"id": 392, "owner": {"id": 974}, "assignee": {"id": 1062}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "assignee": {"id": 583}, "organization": {"id": 630}, "project": {"id": 312, "owner": {"id": 736}, "assignee": {"id": 879}}, "task": {"id": 308, "owner": {"id": 924}, "assignee": {"id": 1040}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "assignee": {"id": 584}, "organization": {"id": 154}, "project": {"id": 388, "owner": {"id": 774}, "assignee": {"id": 819}}, "task": {"id": 372, "owner": {"id": 972}, "assignee": {"id": 1046}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "assignee": {"id": 540}, "organization": {"id": 631}, "project": {"id": 328, "owner": {"id": 791}, "assignee": {"id": 894}}, "task": {"id": 382, "owner": {"id": 955}, "assignee": {"id": 1035}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 393, "assignee": {"id": 542}, "organization": {"id": 113}, "project": {"id": 359, "owner": {"id": 757}, "assignee": {"id": 845}}, "task": {"id": 399, "owner": {"id": 939}, "assignee": {"id": 1062}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 382, "assignee": {"id": 577}, "organization": {"id": 610}, "project": {"id": 335, "owner": {"id": 717}, "assignee": {"id": 868}}, "task": {"id": 325, "owner": {"id": 933}, "assignee": {"id": 1093}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 309, "assignee": {"id": 502}, "organization": {"id": 127}, "project": {"id": 380, "owner": {"id": 703}, "assignee": {"id": 874}}, "task": {"id": 374, "owner": {"id": 951}, "assignee": {"id": 1098}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 370, "assignee": {"id": 533}, "organization": {"id": 669}, "project": {"id": 369, "owner": {"id": 760}, "assignee": {"id": 883}}, "task": {"id": 399, "owner": {"id": 919}, "assignee": {"id": 1046}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 375, "assignee": {"id": 593}, "organization": {"id": 164}, "project": {"id": 317, "owner": {"id": 759}, "assignee": {"id": 864}}, "task": {"id": 365, "owner": {"id": 911}, "assignee": {"id": 1050}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"id": 384, "assignee": {"id": 530}, "organization": {"id": 678}, "project": {"id": 387, "owner": {"id": 721}, "assignee": {"id": 896}}, "task": {"id": 365, "owner": {"id": 917}, "assignee": {"id": 1057}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 372, "assignee": {"id": 584}, "organization": {"id": 162}, "project": {"id": 394, "owner": {"id": 793}, "assignee": {"id": 861}}, "task": {"id": 345, "owner": {"id": 905}, "assignee": {"id": 1028}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "assignee": {"id": 533}, "organization": {"id": 647}, "project": {"id": 329, "owner": {"id": 705}, "assignee": {"id": 885}}, "task": {"id": 326, "owner": {"id": 966}, "assignee": {"id": 1046}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "assignee": {"id": 505}, "organization": {"id": 133}, "project": {"id": 341, "owner": {"id": 713}, "assignee": {"id": 890}}, "task": {"id": 366, "owner": {"id": 981}, "assignee": {"id": 1035}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 369, "assignee": {"id": 572}, "organization": {"id": 622}, "project": {"id": 348, "owner": {"id": 783}, "assignee": {"id": 848}}, "task": {"id": 346, "owner": {"id": 975}, "assignee": {"id": 1083}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 348, "assignee": {"id": 528}, "organization": {"id": 164}, "project": {"id": 351, "owner": {"id": 745}, "assignee": {"id": 844}}, "task": {"id": 362, "owner": {"id": 961}, "assignee": {"id": 1077}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 356, "assignee": {"id": 521}, "organization": {"id": 629}, "project": {"id": 309, "owner": {"id": 765}, "assignee": {"id": 882}}, "task": {"id": 335, "owner": {"id": 927}, "assignee": {"id": 1019}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 377, "assignee": {"id": 591}, "organization": {"id": 186}, "project": {"id": 384, "owner": {"id": 729}, "assignee": {"id": 853}}, "task": {"id": 342, "owner": {"id": 992}, "assignee": {"id": 1014}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 361, "assignee": {"id": 526}, "organization": {"id": 675}, "project": {"id": 320, "owner": {"id": 782}, "assignee": {"id": 852}}, "task": {"id": 302, "owner": {"id": 931}, "assignee": {"id": 1005}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 320, "assignee": {"id": 517}, "organization": {"id": 123}, "project": {"id": 365, "owner": {"id": 705}, "assignee": {"id": 873}}, "task": {"id": 318, "owner": {"id": 907}, "assignee": {"id": 1021}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 351, "assignee": {"id": 576}, "organization": {"id": 672}, "project": {"id": 381, "owner": {"id": 702}, "assignee": {"id": 892}}, "task": {"id": 393, "owner": {"id": 984}, "assignee": {"id": 1036}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "assignee": {"id": 560}, "organization": {"id": 123}, "project": {"id": 321, "owner": {"id": 728}, "assignee": {"id": 852}}, "task": {"id": 376, "owner": {"id": 918}, "assignee": {"id": 1074}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "assignee": {"id": 565}, "organization": {"id": 633}, "project": {"id": 321, "owner": {"id": 792}, "assignee": {"id": 887}}, "task": {"id": 343, "owner": {"id": 958}, "assignee": {"id": 1076}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 348, "assignee": {"id": 549}, "organization": {"id": 119}, "project": {"id": 313, "owner": {"id": 702}, "assignee": {"id": 825}}, "task": {"id": 366, "owner": {"id": 964}, "assignee": {"id": 1087}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "assignee": {"id": 522}, "organization": {"id": 660}, "project": {"id": 378, "owner": {"id": 776}, "assignee": {"id": 804}}, "task": {"id": 368, "owner": {"id": 964}, "assignee": {"id": 1096}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 384, "assignee": {"id": 516}, "organization": {"id": 153}, "project": {"id": 369, "owner": {"id": 700}, "assignee": {"id": 899}}, "task": {"id": 386, "owner": {"id": 983}, "assignee": {"id": 1055}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 305, "assignee": {"id": 589}, "organization": {"id": 667}, "project": {"id": 354, "owner": {"id": 729}, "assignee": {"id": 861}}, "task": {"id": 398, "owner": {"id": 948}, "assignee": {"id": 1044}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 389, "assignee": {"id": 573}, "organization": {"id": 136}, "project": {"id": 354, "owner": {"id": 717}, "assignee": {"id": 832}}, "task": {"id": 361, "owner": {"id": 998}, "assignee": {"id": 1029}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 369, "assignee": {"id": 552}, "organization": {"id": 632}, "project": {"id": 324, "owner": {"id": 700}, "assignee": {"id": 890}}, "task": {"id": 395, "owner": {"id": 900}, "assignee": {"id": 1073}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": null}, "resource": {"id": 333, "assignee": {"id": 528}, "organization": {"id": 647}, "project": {"id": 310, "owner": {"id": 78}, "assignee": {"id": 804}}, "task": {"id": 392, "owner": {"id": 949}, "assignee": {"id": 1051}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": null}, "resource": {"id": 348, "assignee": {"id": 572}, "organization": {"id": 661}, "project": {"id": 398, "owner": {"id": 87}, "assignee": {"id": 896}}, "task": {"id": 343, "owner": {"id": 999}, "assignee": {"id": 1058}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": null}, "resource": {"id": 396, "assignee": {"id": 573}, "organization": {"id": 616}, "project": {"id": 306, "owner": {"id": 64}, "assignee": {"id": 854}}, "task": {"id": 361, "owner": {"id": 969}, "assignee": {"id": 1004}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": null}, "resource": {"id": 320, "assignee": {"id": 507}, "organization": {"id": 627}, "project": {"id": 332, "owner": {"id": 42}, "assignee": {"id": 880}}, "task": {"id": 312, "owner": {"id": 957}, "assignee": {"id": 1095}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": null}, "resource": {"id": 321, "assignee": {"id": 550}, "organization": {"id": 613}, "project": {"id": 312, "owner": {"id": 98}, "assignee": {"id": 860}}, "task": {"id": 370, "owner": {"id": 906}, "assignee": {"id": 1003}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": null}, "resource": {"id": 376, "assignee": {"id": 529}, "organization": {"id": 600}, "project": {"id": 370, "owner": {"id": 747}, "assignee": {"id": 50}}, "task": {"id": 352, "owner": {"id": 971}, "assignee": {"id": 1055}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": null}, "resource": {"id": 324, "assignee": {"id": 532}, "organization": {"id": 648}, "project": {"id": 301, "owner": {"id": 715}, "assignee": {"id": 98}}, "task": {"id": 391, "owner": {"id": 931}, "assignee": {"id": 1049}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": null}, "resource": {"id": 344, "assignee": {"id": 556}, "organization": {"id": 693}, "project": {"id": 324, "owner": {"id": 702}, "assignee": {"id": 17}}, "task": {"id": 348, "owner": {"id": 945}, "assignee": {"id": 1092}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": null}, "resource": {"id": 384, "assignee": {"id": 562}, "organization": {"id": 667}, "project": {"id": 379, "owner": {"id": 789}, "assignee": {"id": 28}}, "task": {"id": 332, "owner": {"id": 906}, "assignee": {"id": 1046}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": null}, "resource": {"id": 330, "assignee": {"id": 572}, "organization": {"id": 669}, "project": {"id": 327, "owner": {"id": 748}, "assignee": {"id": 46}}, "task": {"id": 370, "owner": {"id": 995}, "assignee": {"id": 1032}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": null}, "resource": {"id": 348, "assignee": {"id": 506}, "organization": {"id": 639}, "project": {"id": 367, "owner": {"id": 705}, "assignee": {"id": 840}}, "task": {"id": 369, "owner": {"id": 41}, "assignee": {"id": 1019}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": null}, "resource": {"id": 305, "assignee": {"id": 529}, "organization": {"id": 625}, "project": {"id": 387, "owner": {"id": 747}, "assignee": {"id": 819}}, "task": {"id": 396, "owner": {"id": 14}, "assignee": {"id": 1010}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": null}, "resource": {"id": 367, "assignee": {"id": 539}, "organization": {"id": 642}, "project": {"id": 362, "owner": {"id": 750}, "assignee": {"id": 895}}, "task": {"id": 320, "owner": {"id": 87}, "assignee": {"id": 1044}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": null}, "resource": {"id": 399, "assignee": {"id": 524}, "organization": {"id": 613}, "project": {"id": 316, "owner": {"id": 723}, "assignee": {"id": 803}}, "task": {"id": 397, "owner": {"id": 34}, "assignee": {"id": 1078}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": null}, "resource": {"id": 349, "assignee": {"id": 566}, "organization": {"id": 697}, "project": {"id": 380, "owner": {"id": 706}, "assignee": {"id": 824}}, "task": {"id": 337, "owner": {"id": 38}, "assignee": {"id": 1050}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": null}, "resource": {"id": 336, "assignee": {"id": 580}, "organization": {"id": 623}, "project": {"id": 315, "owner": {"id": 716}, "assignee": {"id": 825}}, "task": {"id": 300, "owner": {"id": 979}, "assignee": {"id": 32}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": null}, "resource": {"id": 352, "assignee": {"id": 567}, "organization": {"id": 626}, "project": {"id": 389, "owner": {"id": 726}, "assignee": {"id": 878}}, "task": {"id": 307, "owner": {"id": 913}, "assignee": {"id": 93}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": null}, "resource": {"id": 317, "assignee": {"id": 561}, "organization": {"id": 619}, "project": {"id": 380, "owner": {"id": 758}, "assignee": {"id": 868}}, "task": {"id": 342, "owner": {"id": 959}, "assignee": {"id": 95}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": null}, "resource": {"id": 314, "assignee": {"id": 500}, "organization": {"id": 639}, "project": {"id": 305, "owner": {"id": 787}, "assignee": {"id": 876}}, "task": {"id": 311, "owner": {"id": 942}, "assignee": {"id": 5}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": null}, "resource": {"id": 396, "assignee": {"id": 597}, "organization": {"id": 659}, "project": {"id": 372, "owner": {"id": 716}, "assignee": {"id": 811}}, "task": {"id": 389, "owner": {"id": 959}, "assignee": {"id": 58}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": null}, "resource": {"id": 341, "assignee": {"id": 13}, "organization": {"id": 612}, "project": {"id": 356, "owner": {"id": 722}, "assignee": {"id": 839}}, "task": {"id": 351, "owner": {"id": 908}, "assignee": {"id": 1076}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": null}, "resource": {"id": 336, "assignee": {"id": 92}, "organization": {"id": 616}, "project": {"id": 317, "owner": {"id": 701}, "assignee": {"id": 809}}, "task": {"id": 382, "owner": {"id": 902}, "assignee": {"id": 1018}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": null}, "resource": {"id": 365, "assignee": {"id": 21}, "organization": {"id": 673}, "project": {"id": 393, "owner": {"id": 742}, "assignee": {"id": 853}}, "task": {"id": 345, "owner": {"id": 937}, "assignee": {"id": 1037}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": null}, "resource": {"id": 360, "assignee": {"id": 90}, "organization": {"id": 660}, "project": {"id": 395, "owner": {"id": 796}, "assignee": {"id": 868}}, "task": {"id": 329, "owner": {"id": 948}, "assignee": {"id": 1087}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": null}, "resource": {"id": 348, "assignee": {"id": 32}, "organization": {"id": 697}, "project": {"id": 382, "owner": {"id": 772}, "assignee": {"id": 823}}, "task": {"id": 314, "owner": {"id": 989}, "assignee": {"id": 1023}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": null}, "resource": {"id": 393, "assignee": {"id": 599}, "organization": {"id": 608}, "project": {"id": 369, "owner": {"id": 728}, "assignee": {"id": 800}}, "task": {"id": 349, "owner": {"id": 988}, "assignee": {"id": 1099}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": null}, "resource": {"id": 362, "assignee": {"id": 583}, "organization": {"id": 602}, "project": {"id": 360, "owner": {"id": 779}, "assignee": {"id": 805}}, "task": {"id": 331, "owner": {"id": 989}, "assignee": {"id": 1083}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": null}, "resource": {"id": 357, "assignee": {"id": 552}, "organization": {"id": 630}, "project": {"id": 322, "owner": {"id": 778}, "assignee": {"id": 888}}, "task": {"id": 304, "owner": {"id": 976}, "assignee": {"id": 1023}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": null}, "resource": {"id": 348, "assignee": {"id": 528}, "organization": {"id": 609}, "project": {"id": 360, "owner": {"id": 774}, "assignee": {"id": 862}}, "task": {"id": 306, "owner": {"id": 955}, "assignee": {"id": 1018}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": null}, "resource": {"id": 301, "assignee": {"id": 588}, "organization": {"id": 693}, "project": {"id": 352, "owner": {"id": 727}, "assignee": {"id": 816}}, "task": {"id": 345, "owner": {"id": 937}, "assignee": {"id": 1030}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 395, "assignee": {"id": 574}, "organization": {"id": 147}, "project": {"id": 358, "owner": {"id": 23}, "assignee": {"id": 898}}, "task": {"id": 317, "owner": {"id": 990}, "assignee": {"id": 1051}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 359, "assignee": {"id": 590}, "organization": {"id": 681}, "project": {"id": 300, "owner": {"id": 67}, "assignee": {"id": 809}}, "task": {"id": 349, "owner": {"id": 988}, "assignee": {"id": 1042}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "assignee": {"id": 596}, "organization": {"id": 179}, "project": {"id": 389, "owner": {"id": 10}, "assignee": {"id": 869}}, "task": {"id": 373, "owner": {"id": 926}, "assignee": {"id": 1087}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "assignee": {"id": 507}, "organization": {"id": 665}, "project": {"id": 386, "owner": {"id": 59}, "assignee": {"id": 806}}, "task": {"id": 314, "owner": {"id": 949}, "assignee": {"id": 1046}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "assignee": {"id": 546}, "organization": {"id": 126}, "project": {"id": 382, "owner": {"id": 99}, "assignee": {"id": 890}}, "task": {"id": 308, "owner": {"id": 971}, "assignee": {"id": 1090}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "assignee": {"id": 530}, "organization": {"id": 669}, "project": {"id": 314, "owner": {"id": 89}, "assignee": {"id": 861}}, "task": {"id": 394, "owner": {"id": 996}, "assignee": {"id": 1074}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 395, "assignee": {"id": 597}, "organization": {"id": 106}, "project": {"id": 341, "owner": {"id": 35}, "assignee": {"id": 834}}, "task": {"id": 364, "owner": {"id": 987}, "assignee": {"id": 1054}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 347, "assignee": {"id": 544}, "organization": {"id": 657}, "project": {"id": 362, "owner": {"id": 68}, "assignee": {"id": 867}}, "task": {"id": 315, "owner": {"id": 960}, "assignee": {"id": 1090}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 337, "assignee": {"id": 557}, "organization": {"id": 110}, "project": {"id": 347, "owner": {"id": 11}, "assignee": {"id": 888}}, "task": {"id": 308, "owner": {"id": 924}, "assignee": {"id": 1058}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 322, "assignee": {"id": 536}, "organization": {"id": 609}, "project": {"id": 313, "owner": {"id": 63}, "assignee": {"id": 835}}, "task": {"id": 314, "owner": {"id": 989}, "assignee": {"id": 1018}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 366, "assignee": {"id": 580}, "organization": {"id": 153}, "project": {"id": 337, "owner": {"id": 44}, "assignee": {"id": 887}}, "task": {"id": 369, "owner": {"id": 916}, "assignee": {"id": 1060}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 394, "assignee": {"id": 582}, "organization": {"id": 602}, "project": {"id": 337, "owner": {"id": 82}, "assignee": {"id": 808}}, "task": {"id": 302, "owner": {"id": 929}, "assignee": {"id": 1066}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "assignee": {"id": 543}, "organization": {"id": 170}, "project": {"id": 382, "owner": {"id": 67}, "assignee": {"id": 862}}, "task": {"id": 375, "owner": {"id": 985}, "assignee": {"id": 1089}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 358, "assignee": {"id": 538}, "organization": {"id": 672}, "project": {"id": 316, "owner": {"id": 47}, "assignee": {"id": 821}}, "task": {"id": 333, "owner": {"id": 929}, "assignee": {"id": 1061}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "assignee": {"id": 518}, "organization": {"id": 136}, "project": {"id": 336, "owner": {"id": 68}, "assignee": {"id": 821}}, "task": {"id": 379, "owner": {"id": 920}, "assignee": {"id": 1091}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "assignee": {"id": 590}, "organization": {"id": 688}, "project": {"id": 385, "owner": {"id": 40}, "assignee": {"id": 820}}, "task": {"id": 330, "owner": {"id": 914}, "assignee": {"id": 1005}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 356, "assignee": {"id": 533}, "organization": {"id": 144}, "project": {"id": 323, "owner": {"id": 40}, "assignee": {"id": 871}}, "task": {"id": 390, "owner": {"id": 904}, "assignee": {"id": 1085}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 347, "assignee": {"id": 557}, "organization": {"id": 669}, "project": {"id": 320, "owner": {"id": 63}, "assignee": {"id": 838}}, "task": {"id": 315, "owner": {"id": 903}, "assignee": {"id": 1051}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 358, "assignee": {"id": 540}, "organization": {"id": 137}, "project": {"id": 300, "owner": {"id": 90}, "assignee": {"id": 869}}, "task": {"id": 364, "owner": {"id": 942}, "assignee": {"id": 1082}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 337, "assignee": {"id": 596}, "organization": {"id": 673}, "project": {"id": 385, "owner": {"id": 88}, "assignee": {"id": 872}}, "task": {"id": 393, "owner": {"id": 956}, "assignee": {"id": 1043}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 361, "assignee": {"id": 505}, "organization": {"id": 128}, "project": {"id": 386, "owner": {"id": 79}, "assignee": {"id": 814}}, "task": {"id": 339, "owner": {"id": 903}, "assignee": {"id": 1051}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 345, "assignee": {"id": 511}, "organization": {"id": 641}, "project": {"id": 307, "owner": {"id": 28}, "assignee": {"id": 882}}, "task": {"id": 324, "owner": {"id": 974}, "assignee": {"id": 1067}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "assignee": {"id": 502}, "organization": {"id": 124}, "project": {"id": 368, "owner": {"id": 50}, "assignee": {"id": 886}}, "task": {"id": 385, "owner": {"id": 911}, "assignee": {"id": 1065}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "assignee": {"id": 577}, "organization": {"id": 677}, "project": {"id": 365, "owner": {"id": 91}, "assignee": {"id": 885}}, "task": {"id": 346, "owner": {"id": 950}, "assignee": {"id": 1018}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "assignee": {"id": 547}, "organization": {"id": 127}, "project": {"id": 336, "owner": {"id": 11}, "assignee": {"id": 844}}, "task": {"id": 339, "owner": {"id": 957}, "assignee": {"id": 1071}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "assignee": {"id": 594}, "organization": {"id": 653}, "project": {"id": 356, "owner": {"id": 53}, "assignee": {"id": 820}}, "task": {"id": 393, "owner": {"id": 954}, "assignee": {"id": 1093}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 376, "assignee": {"id": 511}, "organization": {"id": 196}, "project": {"id": 326, "owner": {"id": 75}, "assignee": {"id": 860}}, "task": {"id": 367, "owner": {"id": 942}, "assignee": {"id": 1008}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 90, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 311, "assignee": {"id": 500}, "organization": {"id": 652}, "project": {"id": 381, "owner": {"id": 90}, "assignee": {"id": 853}}, "task": {"id": 322, "owner": {"id": 971}, "assignee": {"id": 1059}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 317, "assignee": {"id": 525}, "organization": {"id": 138}, "project": {"id": 348, "owner": {"id": 74}, "assignee": {"id": 870}}, "task": {"id": 362, "owner": {"id": 905}, "assignee": {"id": 1038}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 371, "assignee": {"id": 594}, "organization": {"id": 659}, "project": {"id": 328, "owner": {"id": 81}, "assignee": {"id": 800}}, "task": {"id": 319, "owner": {"id": 933}, "assignee": {"id": 1038}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 315, "assignee": {"id": 583}, "organization": {"id": 103}, "project": {"id": 336, "owner": {"id": 31}, "assignee": {"id": 822}}, "task": {"id": 362, "owner": {"id": 988}, "assignee": {"id": 1082}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 397, "assignee": {"id": 535}, "organization": {"id": 663}, "project": {"id": 308, "owner": {"id": 72}, "assignee": {"id": 895}}, "task": {"id": 346, "owner": {"id": 974}, "assignee": {"id": 1061}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "assignee": {"id": 587}, "organization": {"id": 133}, "project": {"id": 388, "owner": {"id": 2}, "assignee": {"id": 847}}, "task": {"id": 365, "owner": {"id": 993}, "assignee": {"id": 1073}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "assignee": {"id": 507}, "organization": {"id": 618}, "project": {"id": 340, "owner": {"id": 6}, "assignee": {"id": 888}}, "task": {"id": 317, "owner": {"id": 945}, "assignee": {"id": 1020}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "assignee": {"id": 581}, "organization": {"id": 124}, "project": {"id": 306, "owner": {"id": 65}, "assignee": {"id": 837}}, "task": {"id": 367, "owner": {"id": 981}, "assignee": {"id": 1009}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 380, "assignee": {"id": 523}, "organization": {"id": 697}, "project": {"id": 312, "owner": {"id": 40}, "assignee": {"id": 896}}, "task": {"id": 321, "owner": {"id": 969}, "assignee": {"id": 1041}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 334, "assignee": {"id": 587}, "organization": {"id": 101}, "project": {"id": 388, "owner": {"id": 18}, "assignee": {"id": 812}}, "task": {"id": 368, "owner": {"id": 974}, "assignee": {"id": 1045}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 366, "assignee": {"id": 536}, "organization": {"id": 647}, "project": {"id": 399, "owner": {"id": 27}, "assignee": {"id": 852}}, "task": {"id": 343, "owner": {"id": 920}, "assignee": {"id": 1013}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"id": 328, "assignee": {"id": 524}, "organization": {"id": 196}, "project": {"id": 378, "owner": {"id": 89}, "assignee": {"id": 867}}, "task": {"id": 368, "owner": {"id": 991}, "assignee": {"id": 1070}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 353, "assignee": {"id": 558}, "organization": {"id": 609}, "project": {"id": 314, "owner": {"id": 88}, "assignee": {"id": 802}}, "task": {"id": 361, "owner": {"id": 944}, "assignee": {"id": 1039}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 356, "assignee": {"id": 576}, "organization": {"id": 115}, "project": {"id": 397, "owner": {"id": 95}, "assignee": {"id": 822}}, "task": {"id": 390, "owner": {"id": 938}, "assignee": {"id": 1003}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 316, "assignee": {"id": 588}, "organization": {"id": 618}, "project": {"id": 388, "owner": {"id": 10}, "assignee": {"id": 839}}, "task": {"id": 316, "owner": {"id": 926}, "assignee": {"id": 1016}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "assignee": {"id": 514}, "organization": {"id": 113}, "project": {"id": 302, "owner": {"id": 25}, "assignee": {"id": 861}}, "task": {"id": 396, "owner": {"id": 955}, "assignee": {"id": 1005}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "assignee": {"id": 565}, "organization": {"id": 675}, "project": {"id": 307, "owner": {"id": 38}, "assignee": {"id": 815}}, "task": {"id": 332, "owner": {"id": 905}, "assignee": {"id": 1008}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "assignee": {"id": 512}, "organization": {"id": 103}, "project": {"id": 377, "owner": {"id": 44}, "assignee": {"id": 875}}, "task": {"id": 325, "owner": {"id": 923}, "assignee": {"id": 1085}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "assignee": {"id": 595}, "organization": {"id": 635}, "project": {"id": 374, "owner": {"id": 93}, "assignee": {"id": 845}}, "task": {"id": 320, "owner": {"id": 964}, "assignee": {"id": 1099}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 364, "assignee": {"id": 572}, "organization": {"id": 124}, "project": {"id": 312, "owner": {"id": 91}, "assignee": {"id": 897}}, "task": {"id": 301, "owner": {"id": 967}, "assignee": {"id": 1027}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 321, "assignee": {"id": 596}, "organization": {"id": 668}, "project": {"id": 300, "owner": {"id": 60}, "assignee": {"id": 812}}, "task": {"id": 327, "owner": {"id": 964}, "assignee": {"id": 1090}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 375, "assignee": {"id": 523}, "organization": {"id": 165}, "project": {"id": 386, "owner": {"id": 27}, "assignee": {"id": 823}}, "task": {"id": 345, "owner": {"id": 948}, "assignee": {"id": 1054}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 352, "assignee": {"id": 514}, "organization": {"id": 697}, "project": {"id": 340, "owner": {"id": 63}, "assignee": {"id": 859}}, "task": {"id": 314, "owner": {"id": 966}, "assignee": {"id": 1017}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 390, "assignee": {"id": 536}, "organization": {"id": 136}, "project": {"id": 392, "owner": {"id": 705}, "assignee": {"id": 49}}, "task": {"id": 341, "owner": {"id": 963}, "assignee": {"id": 1014}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 376, "assignee": {"id": 594}, "organization": {"id": 639}, "project": {"id": 387, "owner": {"id": 756}, "assignee": {"id": 54}}, "task": {"id": 370, "owner": {"id": 952}, "assignee": {"id": 1037}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "assignee": {"id": 586}, "organization": {"id": 156}, "project": {"id": 322, "owner": {"id": 701}, "assignee": {"id": 50}}, "task": {"id": 362, "owner": {"id": 986}, "assignee": {"id": 1013}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "assignee": {"id": 586}, "organization": {"id": 610}, "project": {"id": 315, "owner": {"id": 718}, "assignee": {"id": 13}}, "task": {"id": 351, "owner": {"id": 988}, "assignee": {"id": 1075}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "assignee": {"id": 546}, "organization": {"id": 192}, "project": {"id": 343, "owner": {"id": 725}, "assignee": {"id": 54}}, "task": {"id": 351, "owner": {"id": 915}, "assignee": {"id": 1029}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "assignee": {"id": 597}, "organization": {"id": 691}, "project": {"id": 398, "owner": {"id": 774}, "assignee": {"id": 51}}, "task": {"id": 334, "owner": {"id": 996}, "assignee": {"id": 1082}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 385, "assignee": {"id": 577}, "organization": {"id": 115}, "project": {"id": 362, "owner": {"id": 765}, "assignee": {"id": 13}}, "task": {"id": 318, "owner": {"id": 998}, "assignee": {"id": 1058}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 362, "assignee": {"id": 563}, "organization": {"id": 629}, "project": {"id": 380, "owner": {"id": 717}, "assignee": {"id": 8}}, "task": {"id": 312, "owner": {"id": 994}, "assignee": {"id": 1006}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 303, "assignee": {"id": 522}, "organization": {"id": 112}, "project": {"id": 377, "owner": {"id": 786}, "assignee": {"id": 79}}, "task": {"id": 319, "owner": {"id": 938}, "assignee": {"id": 1079}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 309, "assignee": {"id": 584}, "organization": {"id": 696}, "project": {"id": 366, "owner": {"id": 798}, "assignee": {"id": 84}}, "task": {"id": 359, "owner": {"id": 925}, "assignee": {"id": 1037}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 364, "assignee": {"id": 533}, "organization": {"id": 115}, "project": {"id": 343, "owner": {"id": 769}, "assignee": {"id": 55}}, "task": {"id": 302, "owner": {"id": 997}, "assignee": {"id": 1004}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 357, "assignee": {"id": 540}, "organization": {"id": 648}, "project": {"id": 356, "owner": {"id": 758}, "assignee": {"id": 84}}, "task": {"id": 304, "owner": {"id": 922}, "assignee": {"id": 1071}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "assignee": {"id": 521}, "organization": {"id": 114}, "project": {"id": 355, "owner": {"id": 717}, "assignee": {"id": 97}}, "task": {"id": 391, "owner": {"id": 949}, "assignee": {"id": 1062}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "assignee": {"id": 562}, "organization": {"id": 684}, "project": {"id": 370, "owner": {"id": 787}, "assignee": {"id": 71}}, "task": {"id": 373, "owner": {"id": 960}, "assignee": {"id": 1060}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "assignee": {"id": 550}, "organization": {"id": 136}, "project": {"id": 363, "owner": {"id": 775}, "assignee": {"id": 98}}, "task": {"id": 378, "owner": {"id": 986}, "assignee": {"id": 1045}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "assignee": {"id": 503}, "organization": {"id": 675}, "project": {"id": 305, "owner": {"id": 716}, "assignee": {"id": 3}}, "task": {"id": 344, "owner": {"id": 994}, "assignee": {"id": 1074}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 343, "assignee": {"id": 548}, "organization": {"id": 131}, "project": {"id": 354, "owner": {"id": 744}, "assignee": {"id": 84}}, "task": {"id": 352, "owner": {"id": 944}, "assignee": {"id": 1007}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 330, "assignee": {"id": 582}, "organization": {"id": 639}, "project": {"id": 375, "owner": {"id": 710}, "assignee": {"id": 43}}, "task": {"id": 308, "owner": {"id": 939}, "assignee": {"id": 1014}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 368, "assignee": {"id": 541}, "organization": {"id": 102}, "project": {"id": 358, "owner": {"id": 784}, "assignee": {"id": 34}}, "task": {"id": 372, "owner": {"id": 965}, "assignee": {"id": 1053}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 360, "assignee": {"id": 575}, "organization": {"id": 602}, "project": {"id": 340, "owner": {"id": 748}, "assignee": {"id": 12}}, "task": {"id": 349, "owner": {"id": 941}, "assignee": {"id": 1073}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 388, "assignee": {"id": 586}, "organization": {"id": 178}, "project": {"id": 343, "owner": {"id": 763}, "assignee": {"id": 21}}, "task": {"id": 397, "owner": {"id": 985}, "assignee": {"id": 1043}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 346, "assignee": {"id": 555}, "organization": {"id": 625}, "project": {"id": 363, "owner": {"id": 781}, "assignee": {"id": 33}}, "task": {"id": 368, "owner": {"id": 927}, "assignee": {"id": 1036}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "assignee": {"id": 551}, "organization": {"id": 143}, "project": {"id": 379, "owner": {"id": 795}, "assignee": {"id": 75}}, "task": {"id": 391, "owner": {"id": 974}, "assignee": {"id": 1012}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "assignee": {"id": 572}, "organization": {"id": 667}, "project": {"id": 360, "owner": {"id": 754}, "assignee": {"id": 38}}, "task": {"id": 344, "owner": {"id": 909}, "assignee": {"id": 1083}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "assignee": {"id": 584}, "organization": {"id": 158}, "project": {"id": 340, "owner": {"id": 725}, "assignee": {"id": 65}}, "task": {"id": 351, "owner": {"id": 932}, "assignee": {"id": 1079}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "assignee": {"id": 570}, "organization": {"id": 623}, "project": {"id": 302, "owner": {"id": 780}, "assignee": {"id": 63}}, "task": {"id": 366, "owner": {"id": 923}, "assignee": {"id": 1073}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 395, "assignee": {"id": 559}, "organization": {"id": 180}, "project": {"id": 381, "owner": {"id": 768}, "assignee": {"id": 93}}, "task": {"id": 398, "owner": {"id": 955}, "assignee": {"id": 1072}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 366, "assignee": {"id": 525}, "organization": {"id": 646}, "project": {"id": 359, "owner": {"id": 718}, "assignee": {"id": 97}}, "task": {"id": 319, "owner": {"id": 995}, "assignee": {"id": 1087}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 352, "assignee": {"id": 540}, "organization": {"id": 132}, "project": {"id": 381, "owner": {"id": 726}, "assignee": {"id": 20}}, "task": {"id": 334, "owner": {"id": 936}, "assignee": {"id": 1082}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 376, "assignee": {"id": 530}, "organization": {"id": 651}, "project": {"id": 330, "owner": {"id": 714}, "assignee": {"id": 39}}, "task": {"id": 324, "owner": {"id": 903}, "assignee": {"id": 1031}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 371, "assignee": {"id": 555}, "organization": {"id": 133}, "project": {"id": 382, "owner": {"id": 704}, "assignee": {"id": 3}}, "task": {"id": 320, "owner": {"id": 934}, "assignee": {"id": 1017}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 384, "assignee": {"id": 570}, "organization": {"id": 622}, "project": {"id": 382, "owner": {"id": 705}, "assignee": {"id": 10}}, "task": {"id": 362, "owner": {"id": 902}, "assignee": {"id": 1007}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "assignee": {"id": 508}, "organization": {"id": 130}, "project": {"id": 346, "owner": {"id": 785}, "assignee": {"id": 17}}, "task": {"id": 311, "owner": {"id": 950}, "assignee": {"id": 1092}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "assignee": {"id": 594}, "organization": {"id": 664}, "project": {"id": 315, "owner": {"id": 766}, "assignee": {"id": 32}}, "task": {"id": 374, "owner": {"id": 999}, "assignee": {"id": 1067}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "assignee": {"id": 576}, "organization": {"id": 195}, "project": {"id": 398, "owner": {"id": 740}, "assignee": {"id": 95}}, "task": {"id": 374, "owner": {"id": 994}, "assignee": {"id": 1049}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "assignee": {"id": 527}, "organization": {"id": 618}, "project": {"id": 313, "owner": {"id": 722}, "assignee": {"id": 32}}, "task": {"id": 335, "owner": {"id": 956}, "assignee": {"id": 1052}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 362, "assignee": {"id": 568}, "organization": {"id": 131}, "project": {"id": 389, "owner": {"id": 714}, "assignee": {"id": 87}}, "task": {"id": 369, "owner": {"id": 954}, "assignee": {"id": 1060}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 318, "assignee": {"id": 546}, "organization": {"id": 660}, "project": {"id": 391, "owner": {"id": 747}, "assignee": {"id": 4}}, "task": {"id": 302, "owner": {"id": 982}, "assignee": {"id": 1077}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 306, "assignee": {"id": 588}, "organization": {"id": 146}, "project": {"id": 330, "owner": {"id": 732}, "assignee": {"id": 89}}, "task": {"id": 349, "owner": {"id": 939}, "assignee": {"id": 1081}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 315, "assignee": {"id": 568}, "organization": {"id": 630}, "project": {"id": 356, "owner": {"id": 749}, "assignee": {"id": 11}}, "task": {"id": 350, "owner": {"id": 932}, "assignee": {"id": 1038}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 338, "assignee": {"id": 526}, "organization": {"id": 135}, "project": {"id": 356, "owner": {"id": 780}, "assignee": {"id": 4}}, "task": {"id": 398, "owner": {"id": 982}, "assignee": {"id": 1052}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"id": 399, "assignee": {"id": 562}, "organization": {"id": 660}, "project": {"id": 394, "owner": {"id": 752}, "assignee": {"id": 20}}, "task": {"id": 391, "owner": {"id": 954}, "assignee": {"id": 1012}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "assignee": {"id": 508}, "organization": {"id": 188}, "project": {"id": 353, "owner": {"id": 777}, "assignee": {"id": 58}}, "task": {"id": 370, "owner": {"id": 994}, "assignee": {"id": 1041}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "assignee": {"id": 506}, "organization": {"id": 682}, "project": {"id": 382, "owner": {"id": 723}, "assignee": {"id": 0}}, "task": {"id": 356, "owner": {"id": 982}, "assignee": {"id": 1017}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 380, "assignee": {"id": 539}, "organization": {"id": 198}, "project": {"id": 373, "owner": {"id": 710}, "assignee": {"id": 91}}, "task": {"id": 320, "owner": {"id": 931}, "assignee": {"id": 1066}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "assignee": {"id": 516}, "organization": {"id": 676}, "project": {"id": 387, "owner": {"id": 752}, "assignee": {"id": 17}}, "task": {"id": 357, "owner": {"id": 961}, "assignee": {"id": 1094}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 50, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 387, "assignee": {"id": 575}, "organization": {"id": 148}, "project": {"id": 336, "owner": {"id": 725}, "assignee": {"id": 50}}, "task": {"id": 353, "owner": {"id": 947}, "assignee": {"id": 1023}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 328, "assignee": {"id": 502}, "organization": {"id": 602}, "project": {"id": 371, "owner": {"id": 782}, "assignee": {"id": 59}}, "task": {"id": 380, "owner": {"id": 929}, "assignee": {"id": 1011}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 389, "assignee": {"id": 521}, "organization": {"id": 147}, "project": {"id": 351, "owner": {"id": 779}, "assignee": {"id": 11}}, "task": {"id": 376, "owner": {"id": 933}, "assignee": {"id": 1019}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 372, "assignee": {"id": 515}, "organization": {"id": 601}, "project": {"id": 391, "owner": {"id": 767}, "assignee": {"id": 63}}, "task": {"id": 398, "owner": {"id": 958}, "assignee": {"id": 1086}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 391, "assignee": {"id": 526}, "organization": {"id": 126}, "project": {"id": 334, "owner": {"id": 736}, "assignee": {"id": 895}}, "task": {"id": 363, "owner": {"id": 55}, "assignee": {"id": 1016}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 327, "assignee": {"id": 536}, "organization": {"id": 693}, "project": {"id": 386, "owner": {"id": 724}, "assignee": {"id": 853}}, "task": {"id": 323, "owner": {"id": 3}, "assignee": {"id": 1018}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 330, "assignee": {"id": 579}, "organization": {"id": 101}, "project": {"id": 331, "owner": {"id": 747}, "assignee": {"id": 874}}, "task": {"id": 387, "owner": {"id": 10}, "assignee": {"id": 1058}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "assignee": {"id": 541}, "organization": {"id": 688}, "project": {"id": 350, "owner": {"id": 787}, "assignee": {"id": 827}}, "task": {"id": 391, "owner": {"id": 54}, "assignee": {"id": 1090}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "assignee": {"id": 509}, "organization": {"id": 177}, "project": {"id": 371, "owner": {"id": 707}, "assignee": {"id": 806}}, "task": {"id": 342, "owner": {"id": 45}, "assignee": {"id": 1060}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "assignee": {"id": 590}, "organization": {"id": 695}, "project": {"id": 305, "owner": {"id": 700}, "assignee": {"id": 832}}, "task": {"id": 364, "owner": {"id": 38}, "assignee": {"id": 1048}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 347, "assignee": {"id": 516}, "organization": {"id": 143}, "project": {"id": 305, "owner": {"id": 774}, "assignee": {"id": 822}}, "task": {"id": 333, "owner": {"id": 63}, "assignee": {"id": 1064}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 316, "assignee": {"id": 511}, "organization": {"id": 640}, "project": {"id": 390, "owner": {"id": 767}, "assignee": {"id": 855}}, "task": {"id": 318, "owner": {"id": 40}, "assignee": {"id": 1014}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 363, "assignee": {"id": 535}, "organization": {"id": 166}, "project": {"id": 346, "owner": {"id": 755}, "assignee": {"id": 836}}, "task": {"id": 333, "owner": {"id": 33}, "assignee": {"id": 1097}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 355, "assignee": {"id": 521}, "organization": {"id": 640}, "project": {"id": 394, "owner": {"id": 762}, "assignee": {"id": 897}}, "task": {"id": 319, "owner": {"id": 81}, "assignee": {"id": 1084}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 324, "assignee": {"id": 519}, "organization": {"id": 159}, "project": {"id": 329, "owner": {"id": 723}, "assignee": {"id": 804}}, "task": {"id": 360, "owner": {"id": 90}, "assignee": {"id": 1020}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 314, "assignee": {"id": 563}, "organization": {"id": 605}, "project": {"id": 356, "owner": {"id": 745}, "assignee": {"id": 890}}, "task": {"id": 371, "owner": {"id": 63}, "assignee": {"id": 1058}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "assignee": {"id": 515}, "organization": {"id": 134}, "project": {"id": 311, "owner": {"id": 726}, "assignee": {"id": 836}}, "task": {"id": 323, "owner": {"id": 65}, "assignee": {"id": 1095}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "assignee": {"id": 574}, "organization": {"id": 627}, "project": {"id": 374, "owner": {"id": 700}, "assignee": {"id": 867}}, "task": {"id": 398, "owner": {"id": 53}, "assignee": {"id": 1023}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "assignee": {"id": 563}, "organization": {"id": 150}, "project": {"id": 312, "owner": {"id": 742}, "assignee": {"id": 803}}, "task": {"id": 336, "owner": {"id": 15}, "assignee": {"id": 1087}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "assignee": {"id": 513}, "organization": {"id": 641}, "project": {"id": 319, "owner": {"id": 703}, "assignee": {"id": 810}}, "task": {"id": 358, "owner": {"id": 61}, "assignee": {"id": 1084}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 334, "assignee": {"id": 576}, "organization": {"id": 193}, "project": {"id": 300, "owner": {"id": 742}, "assignee": {"id": 805}}, "task": {"id": 383, "owner": {"id": 41}, "assignee": {"id": 1057}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 372, "assignee": {"id": 516}, "organization": {"id": 627}, "project": {"id": 306, "owner": {"id": 782}, "assignee": {"id": 836}}, "task": {"id": 341, "owner": {"id": 9}, "assignee": {"id": 1095}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"id": 348, "assignee": {"id": 511}, "organization": {"id": 126}, "project": {"id": 332, "owner": {"id": 722}, "assignee": {"id": 830}}, "task": {"id": 398, "owner": {"id": 2}, "assignee": {"id": 1011}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 349, "assignee": {"id": 599}, "organization": {"id": 651}, "project": {"id": 336, "owner": {"id": 782}, "assignee": {"id": 896}}, "task": {"id": 383, "owner": {"id": 38}, "assignee": {"id": 1015}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 394, "assignee": {"id": 539}, "organization": {"id": 125}, "project": {"id": 377, "owner": {"id": 716}, "assignee": {"id": 845}}, "task": {"id": 385, "owner": {"id": 65}, "assignee": {"id": 1047}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 357, "assignee": {"id": 549}, "organization": {"id": 660}, "project": {"id": 334, "owner": {"id": 772}, "assignee": {"id": 876}}, "task": {"id": 354, "owner": {"id": 54}, "assignee": {"id": 1096}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "assignee": {"id": 555}, "organization": {"id": 128}, "project": {"id": 354, "owner": {"id": 711}, "assignee": {"id": 805}}, "task": {"id": 365, "owner": {"id": 86}, "assignee": {"id": 1059}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "assignee": {"id": 591}, "organization": {"id": 619}, "project": {"id": 363, "owner": {"id": 767}, "assignee": {"id": 880}}, "task": {"id": 382, "owner": {"id": 37}, "assignee": {"id": 1010}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "assignee": {"id": 561}, "organization": {"id": 137}, "project": {"id": 319, "owner": {"id": 716}, "assignee": {"id": 887}}, "task": {"id": 338, "owner": {"id": 54}, "assignee": {"id": 1066}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "assignee": {"id": 570}, "organization": {"id": 609}, "project": {"id": 305, "owner": {"id": 765}, "assignee": {"id": 813}}, "task": {"id": 365, "owner": {"id": 12}, "assignee": {"id": 1052}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 392, "assignee": {"id": 572}, "organization": {"id": 114}, "project": {"id": 345, "owner": {"id": 732}, "assignee": {"id": 874}}, "task": {"id": 310, "owner": {"id": 2}, "assignee": {"id": 1064}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 384, "assignee": {"id": 559}, "organization": {"id": 622}, "project": {"id": 323, "owner": {"id": 750}, "assignee": {"id": 805}}, "task": {"id": 310, "owner": {"id": 38}, "assignee": {"id": 1090}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 392, "assignee": {"id": 558}, "organization": {"id": 123}, "project": {"id": 385, "owner": {"id": 757}, "assignee": {"id": 879}}, "task": {"id": 333, "owner": {"id": 27}, "assignee": {"id": 1023}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 395, "assignee": {"id": 577}, "organization": {"id": 633}, "project": {"id": 386, "owner": {"id": 713}, "assignee": {"id": 855}}, "task": {"id": 368, "owner": {"id": 50}, "assignee": {"id": 1000}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 321, "assignee": {"id": 583}, "organization": {"id": 162}, "project": {"id": 358, "owner": {"id": 788}, "assignee": {"id": 851}}, "task": {"id": 384, "owner": {"id": 92}, "assignee": {"id": 1077}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 379, "assignee": {"id": 578}, "organization": {"id": 646}, "project": {"id": 388, "owner": {"id": 786}, "assignee": {"id": 888}}, "task": {"id": 386, "owner": {"id": 11}, "assignee": {"id": 1038}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 301, "assignee": {"id": 524}, "organization": {"id": 118}, "project": {"id": 302, "owner": {"id": 789}, "assignee": {"id": 824}}, "task": {"id": 303, "owner": {"id": 83}, "assignee": {"id": 1061}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 330, "assignee": {"id": 555}, "organization": {"id": 680}, "project": {"id": 368, "owner": {"id": 724}, "assignee": {"id": 811}}, "task": {"id": 338, "owner": {"id": 18}, "assignee": {"id": 1059}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "assignee": {"id": 514}, "organization": {"id": 157}, "project": {"id": 319, "owner": {"id": 794}, "assignee": {"id": 889}}, "task": {"id": 356, "owner": {"id": 2}, "assignee": {"id": 1060}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "assignee": {"id": 525}, "organization": {"id": 637}, "project": {"id": 372, "owner": {"id": 750}, "assignee": {"id": 806}}, "task": {"id": 342, "owner": {"id": 80}, "assignee": {"id": 1013}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 353, "assignee": {"id": 563}, "organization": {"id": 151}, "project": {"id": 374, "owner": {"id": 776}, "assignee": {"id": 893}}, "task": {"id": 370, "owner": {"id": 62}, "assignee": {"id": 1004}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 67, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 365, "assignee": {"id": 575}, "organization": {"id": 692}, "project": {"id": 378, "owner": {"id": 786}, "assignee": {"id": 862}}, "task": {"id": 329, "owner": {"id": 67}, "assignee": {"id": 1007}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 373, "assignee": {"id": 540}, "organization": {"id": 179}, "project": {"id": 308, "owner": {"id": 734}, "assignee": {"id": 882}}, "task": {"id": 353, "owner": {"id": 63}, "assignee": {"id": 1014}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"id": 344, "assignee": {"id": 557}, "organization": {"id": 689}, "project": {"id": 355, "owner": {"id": 702}, "assignee": {"id": 820}}, "task": {"id": 336, "owner": {"id": 60}, "assignee": {"id": 1024}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 329, "assignee": {"id": 564}, "organization": {"id": 116}, "project": {"id": 375, "owner": {"id": 787}, "assignee": {"id": 843}}, "task": {"id": 377, "owner": {"id": 59}, "assignee": {"id": 1084}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"id": 392, "assignee": {"id": 591}, "organization": {"id": 649}, "project": {"id": 353, "owner": {"id": 786}, "assignee": {"id": 883}}, "task": {"id": 394, "owner": {"id": 20}, "assignee": {"id": 1060}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "assignee": {"id": 588}, "organization": {"id": 177}, "project": {"id": 311, "owner": {"id": 785}, "assignee": {"id": 861}}, "task": {"id": 316, "owner": {"id": 20}, "assignee": {"id": 1025}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "assignee": {"id": 553}, "organization": {"id": 663}, "project": {"id": 338, "owner": {"id": 730}, "assignee": {"id": 826}}, "task": {"id": 371, "owner": {"id": 45}, "assignee": {"id": 1002}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "assignee": {"id": 520}, "organization": {"id": 129}, "project": {"id": 364, "owner": {"id": 704}, "assignee": {"id": 808}}, "task": {"id": 343, "owner": {"id": 79}, "assignee": {"id": 1014}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 371, "assignee": {"id": 528}, "organization": {"id": 662}, "project": {"id": 333, "owner": {"id": 743}, "assignee": {"id": 845}}, "task": {"id": 398, "owner": {"id": 71}, "assignee": {"id": 1098}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 388, "assignee": {"id": 565}, "organization": {"id": 114}, "project": {"id": 385, "owner": {"id": 713}, "assignee": {"id": 890}}, "task": {"id": 306, "owner": {"id": 96}, "assignee": {"id": 1058}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 378, "assignee": {"id": 578}, "organization": {"id": 613}, "project": {"id": 371, "owner": {"id": 705}, "assignee": {"id": 864}}, "task": {"id": 313, "owner": {"id": 15}, "assignee": {"id": 1080}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 320, "assignee": {"id": 593}, "organization": {"id": 119}, "project": {"id": 390, "owner": {"id": 756}, "assignee": {"id": 897}}, "task": {"id": 364, "owner": {"id": 12}, "assignee": {"id": 1093}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 346, "assignee": {"id": 542}, "organization": {"id": 617}, "project": {"id": 315, "owner": {"id": 725}, "assignee": {"id": 856}}, "task": {"id": 353, "owner": {"id": 0}, "assignee": {"id": 1098}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 343, "assignee": {"id": 536}, "organization": {"id": 146}, "project": {"id": 321, "owner": {"id": 710}, "assignee": {"id": 834}}, "task": {"id": 347, "owner": {"id": 991}, "assignee": {"id": 53}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 385, "assignee": {"id": 531}, "organization": {"id": 619}, "project": {"id": 396, "owner": {"id": 796}, "assignee": {"id": 867}}, "task": {"id": 353, "owner": {"id": 929}, "assignee": {"id": 54}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 358, "assignee": {"id": 566}, "organization": {"id": 166}, "project": {"id": 346, "owner": {"id": 703}, "assignee": {"id": 856}}, "task": {"id": 318, "owner": {"id": 998}, "assignee": {"id": 91}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "assignee": {"id": 543}, "organization": {"id": 640}, "project": {"id": 351, "owner": {"id": 798}, "assignee": {"id": 821}}, "task": {"id": 355, "owner": {"id": 907}, "assignee": {"id": 97}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "assignee": {"id": 519}, "organization": {"id": 151}, "project": {"id": 307, "owner": {"id": 780}, "assignee": {"id": 891}}, "task": {"id": 384, "owner": {"id": 966}, "assignee": {"id": 53}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "assignee": {"id": 570}, "organization": {"id": 638}, "project": {"id": 392, "owner": {"id": 795}, "assignee": {"id": 840}}, "task": {"id": 344, "owner": {"id": 901}, "assignee": {"id": 67}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 389, "assignee": {"id": 551}, "organization": {"id": 189}, "project": {"id": 382, "owner": {"id": 726}, "assignee": {"id": 869}}, "task": {"id": 379, "owner": {"id": 979}, "assignee": {"id": 56}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 383, "assignee": {"id": 551}, "organization": {"id": 699}, "project": {"id": 325, "owner": {"id": 738}, "assignee": {"id": 810}}, "task": {"id": 304, "owner": {"id": 968}, "assignee": {"id": 49}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 394, "assignee": {"id": 516}, "organization": {"id": 166}, "project": {"id": 369, "owner": {"id": 736}, "assignee": {"id": 827}}, "task": {"id": 311, "owner": {"id": 965}, "assignee": {"id": 39}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 396, "assignee": {"id": 581}, "organization": {"id": 620}, "project": {"id": 302, "owner": {"id": 703}, "assignee": {"id": 869}}, "task": {"id": 375, "owner": {"id": 933}, "assignee": {"id": 99}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 354, "assignee": {"id": 564}, "organization": {"id": 115}, "project": {"id": 393, "owner": {"id": 707}, "assignee": {"id": 847}}, "task": {"id": 333, "owner": {"id": 980}, "assignee": {"id": 45}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 396, "assignee": {"id": 583}, "organization": {"id": 615}, "project": {"id": 357, "owner": {"id": 738}, "assignee": {"id": 873}}, "task": {"id": 394, "owner": {"id": 900}, "assignee": {"id": 43}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "assignee": {"id": 572}, "organization": {"id": 136}, "project": {"id": 380, "owner": {"id": 785}, "assignee": {"id": 868}}, "task": {"id": 376, "owner": {"id": 929}, "assignee": {"id": 38}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "assignee": {"id": 573}, "organization": {"id": 686}, "project": {"id": 317, "owner": {"id": 791}, "assignee": {"id": 848}}, "task": {"id": 366, "owner": {"id": 994}, "assignee": {"id": 13}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "assignee": {"id": 524}, "organization": {"id": 110}, "project": {"id": 346, "owner": {"id": 758}, "assignee": {"id": 812}}, "task": {"id": 318, "owner": {"id": 991}, "assignee": {"id": 52}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "assignee": {"id": 554}, "organization": {"id": 616}, "project": {"id": 360, "owner": {"id": 727}, "assignee": {"id": 857}}, "task": {"id": 309, "owner": {"id": 947}, "assignee": {"id": 67}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 371, "assignee": {"id": 566}, "organization": {"id": 188}, "project": {"id": 350, "owner": {"id": 733}, "assignee": {"id": 874}}, "task": {"id": 363, "owner": {"id": 981}, "assignee": {"id": 56}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 393, "assignee": {"id": 553}, "organization": {"id": 620}, "project": {"id": 318, "owner": {"id": 764}, "assignee": {"id": 816}}, "task": {"id": 362, "owner": {"id": 991}, "assignee": {"id": 16}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 367, "assignee": {"id": 515}, "organization": {"id": 147}, "project": {"id": 327, "owner": {"id": 758}, "assignee": {"id": 860}}, "task": {"id": 304, "owner": {"id": 995}, "assignee": {"id": 71}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 377, "assignee": {"id": 552}, "organization": {"id": 614}, "project": {"id": 315, "owner": {"id": 747}, "assignee": {"id": 873}}, "task": {"id": 337, "owner": {"id": 905}, "assignee": {"id": 19}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 339, "assignee": {"id": 547}, "organization": {"id": 106}, "project": {"id": 337, "owner": {"id": 762}, "assignee": {"id": 803}}, "task": {"id": 318, "owner": {"id": 918}, "assignee": {"id": 53}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"id": 336, "assignee": {"id": 527}, "organization": {"id": 623}, "project": {"id": 394, "owner": {"id": 762}, "assignee": {"id": 800}}, "task": {"id": 315, "owner": {"id": 970}, "assignee": {"id": 8}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "assignee": {"id": 573}, "organization": {"id": 116}, "project": {"id": 372, "owner": {"id": 757}, "assignee": {"id": 843}}, "task": {"id": 348, "owner": {"id": 960}, "assignee": {"id": 77}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "assignee": {"id": 564}, "organization": {"id": 681}, "project": {"id": 358, "owner": {"id": 797}, "assignee": {"id": 857}}, "task": {"id": 385, "owner": {"id": 957}, "assignee": {"id": 93}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "assignee": {"id": 585}, "organization": {"id": 185}, "project": {"id": 352, "owner": {"id": 749}, "assignee": {"id": 829}}, "task": {"id": 350, "owner": {"id": 943}, "assignee": {"id": 5}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "assignee": {"id": 535}, "organization": {"id": 682}, "project": {"id": 311, "owner": {"id": 721}, "assignee": {"id": 890}}, "task": {"id": 303, "owner": {"id": 973}, "assignee": {"id": 98}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 371, "assignee": {"id": 582}, "organization": {"id": 196}, "project": {"id": 382, "owner": {"id": 771}, "assignee": {"id": 810}}, "task": {"id": 324, "owner": {"id": 979}, "assignee": {"id": 73}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 372, "assignee": {"id": 566}, "organization": {"id": 624}, "project": {"id": 396, "owner": {"id": 760}, "assignee": {"id": 864}}, "task": {"id": 302, "owner": {"id": 915}, "assignee": {"id": 68}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 335, "assignee": {"id": 526}, "organization": {"id": 151}, "project": {"id": 390, "owner": {"id": 774}, "assignee": {"id": 856}}, "task": {"id": 310, "owner": {"id": 968}, "assignee": {"id": 41}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 305, "assignee": {"id": 562}, "organization": {"id": 602}, "project": {"id": 343, "owner": {"id": 755}, "assignee": {"id": 823}}, "task": {"id": 353, "owner": {"id": 903}, "assignee": {"id": 40}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 311, "assignee": {"id": 514}, "organization": {"id": 111}, "project": {"id": 369, "owner": {"id": 721}, "assignee": {"id": 836}}, "task": {"id": 318, "owner": {"id": 923}, "assignee": {"id": 98}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 339, "assignee": {"id": 552}, "organization": {"id": 686}, "project": {"id": 321, "owner": {"id": 707}, "assignee": {"id": 878}}, "task": {"id": 341, "owner": {"id": 923}, "assignee": {"id": 91}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "assignee": {"id": 512}, "organization": {"id": 125}, "project": {"id": 318, "owner": {"id": 752}, "assignee": {"id": 841}}, "task": {"id": 333, "owner": {"id": 948}, "assignee": {"id": 6}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "assignee": {"id": 576}, "organization": {"id": 675}, "project": {"id": 330, "owner": {"id": 763}, "assignee": {"id": 865}}, "task": {"id": 396, "owner": {"id": 964}, "assignee": {"id": 14}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 29, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 340, "assignee": {"id": 559}, "organization": {"id": 102}, "project": {"id": 352, "owner": {"id": 708}, "assignee": {"id": 861}}, "task": {"id": 303, "owner": {"id": 952}, "assignee": {"id": 29}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "assignee": {"id": 575}, "organization": {"id": 686}, "project": {"id": 312, "owner": {"id": 731}, "assignee": {"id": 897}}, "task": {"id": 371, "owner": {"id": 983}, "assignee": {"id": 38}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 357, "assignee": {"id": 510}, "organization": {"id": 168}, "project": {"id": 364, "owner": {"id": 726}, "assignee": {"id": 818}}, "task": {"id": 347, "owner": {"id": 969}, "assignee": {"id": 31}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 371, "assignee": {"id": 557}, "organization": {"id": 605}, "project": {"id": 300, "owner": {"id": 759}, "assignee": {"id": 879}}, "task": {"id": 337, "owner": {"id": 983}, "assignee": {"id": 0}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 334, "assignee": {"id": 576}, "organization": {"id": 136}, "project": {"id": 387, "owner": {"id": 748}, "assignee": {"id": 844}}, "task": {"id": 380, "owner": {"id": 927}, "assignee": {"id": 65}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 320, "assignee": {"id": 594}, "organization": {"id": 668}, "project": {"id": 372, "owner": {"id": 708}, "assignee": {"id": 838}}, "task": {"id": 311, "owner": {"id": 950}, "assignee": {"id": 15}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 371, "assignee": {"id": 535}, "organization": {"id": 133}, "project": {"id": 326, "owner": {"id": 778}, "assignee": {"id": 864}}, "task": {"id": 340, "owner": {"id": 987}, "assignee": {"id": 81}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 390, "assignee": {"id": 557}, "organization": {"id": 634}, "project": {"id": 331, "owner": {"id": 784}, "assignee": {"id": 841}}, "task": {"id": 343, "owner": {"id": 926}, "assignee": {"id": 76}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "assignee": {"id": 517}, "organization": {"id": 152}, "project": {"id": 300, "owner": {"id": 777}, "assignee": {"id": 860}}, "task": {"id": 300, "owner": {"id": 901}, "assignee": {"id": 22}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 389, "assignee": {"id": 590}, "organization": {"id": 662}, "project": {"id": 397, "owner": {"id": 750}, "assignee": {"id": 868}}, "task": {"id": 310, "owner": {"id": 983}, "assignee": {"id": 9}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "assignee": {"id": 556}, "organization": {"id": 198}, "project": {"id": 315, "owner": {"id": 745}, "assignee": {"id": 848}}, "task": {"id": 376, "owner": {"id": 945}, "assignee": {"id": 22}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "assignee": {"id": 515}, "organization": {"id": 659}, "project": {"id": 347, "owner": {"id": 724}, "assignee": {"id": 856}}, "task": {"id": 301, "owner": {"id": 928}, "assignee": {"id": 2}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 387, "assignee": {"id": 590}, "organization": {"id": 129}, "project": {"id": 324, "owner": {"id": 711}, "assignee": {"id": 878}}, "task": {"id": 380, "owner": {"id": 938}, "assignee": {"id": 28}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 346, "assignee": {"id": 504}, "organization": {"id": 635}, "project": {"id": 363, "owner": {"id": 790}, "assignee": {"id": 890}}, "task": {"id": 377, "owner": {"id": 926}, "assignee": {"id": 25}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 314, "assignee": {"id": 535}, "organization": {"id": 172}, "project": {"id": 364, "owner": {"id": 763}, "assignee": {"id": 821}}, "task": {"id": 370, "owner": {"id": 924}, "assignee": {"id": 94}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 387, "assignee": {"id": 577}, "organization": {"id": 672}, "project": {"id": 322, "owner": {"id": 708}, "assignee": {"id": 875}}, "task": {"id": 316, "owner": {"id": 995}, "assignee": {"id": 16}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 329, "assignee": {"id": 68}, "organization": {"id": 178}, "project": {"id": 335, "owner": {"id": 724}, "assignee": {"id": 886}}, "task": {"id": 302, "owner": {"id": 988}, "assignee": {"id": 1086}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 387, "assignee": {"id": 41}, "organization": {"id": 658}, "project": {"id": 300, "owner": {"id": 754}, "assignee": {"id": 882}}, "task": {"id": 386, "owner": {"id": 983}, "assignee": {"id": 1006}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "assignee": {"id": 5}, "organization": {"id": 192}, "project": {"id": 366, "owner": {"id": 759}, "assignee": {"id": 863}}, "task": {"id": 346, "owner": {"id": 966}, "assignee": {"id": 1097}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "assignee": {"id": 42}, "organization": {"id": 653}, "project": {"id": 368, "owner": {"id": 757}, "assignee": {"id": 840}}, "task": {"id": 300, "owner": {"id": 950}, "assignee": {"id": 1024}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "assignee": {"id": 42}, "organization": {"id": 139}, "project": {"id": 388, "owner": {"id": 754}, "assignee": {"id": 809}}, "task": {"id": 331, "owner": {"id": 925}, "assignee": {"id": 1021}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 380, "assignee": {"id": 42}, "organization": {"id": 612}, "project": {"id": 303, "owner": {"id": 761}, "assignee": {"id": 855}}, "task": {"id": 303, "owner": {"id": 975}, "assignee": {"id": 1080}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 313, "assignee": {"id": 99}, "organization": {"id": 176}, "project": {"id": 343, "owner": {"id": 706}, "assignee": {"id": 842}}, "task": {"id": 366, "owner": {"id": 930}, "assignee": {"id": 1009}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 356, "assignee": {"id": 4}, "organization": {"id": 612}, "project": {"id": 380, "owner": {"id": 757}, "assignee": {"id": 874}}, "task": {"id": 315, "owner": {"id": 910}, "assignee": {"id": 1007}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 388, "assignee": {"id": 55}, "organization": {"id": 108}, "project": {"id": 307, "owner": {"id": 756}, "assignee": {"id": 807}}, "task": {"id": 338, "owner": {"id": 978}, "assignee": {"id": 1080}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 386, "assignee": {"id": 96}, "organization": {"id": 671}, "project": {"id": 306, "owner": {"id": 737}, "assignee": {"id": 848}}, "task": {"id": 351, "owner": {"id": 912}, "assignee": {"id": 1079}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 376, "assignee": {"id": 79}, "organization": {"id": 112}, "project": {"id": 301, "owner": {"id": 758}, "assignee": {"id": 849}}, "task": {"id": 359, "owner": {"id": 954}, "assignee": {"id": 1079}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 383, "assignee": {"id": 13}, "organization": {"id": 603}, "project": {"id": 358, "owner": {"id": 766}, "assignee": {"id": 842}}, "task": {"id": 375, "owner": {"id": 924}, "assignee": {"id": 1013}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "assignee": {"id": 45}, "organization": {"id": 153}, "project": {"id": 324, "owner": {"id": 773}, "assignee": {"id": 816}}, "task": {"id": 381, "owner": {"id": 965}, "assignee": {"id": 1032}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "assignee": {"id": 39}, "organization": {"id": 656}, "project": {"id": 323, "owner": {"id": 731}, "assignee": {"id": 817}}, "task": {"id": 305, "owner": {"id": 907}, "assignee": {"id": 1016}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "assignee": {"id": 18}, "organization": {"id": 160}, "project": {"id": 345, "owner": {"id": 739}, "assignee": {"id": 874}}, "task": {"id": 369, "owner": {"id": 999}, "assignee": {"id": 1018}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "assignee": {"id": 18}, "organization": {"id": 637}, "project": {"id": 347, "owner": {"id": 701}, "assignee": {"id": 866}}, "task": {"id": 375, "owner": {"id": 984}, "assignee": {"id": 1086}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 364, "assignee": {"id": 8}, "organization": {"id": 143}, "project": {"id": 354, "owner": {"id": 744}, "assignee": {"id": 825}}, "task": {"id": 325, "owner": {"id": 981}, "assignee": {"id": 1025}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 385, "assignee": {"id": 72}, "organization": {"id": 688}, "project": {"id": 388, "owner": {"id": 759}, "assignee": {"id": 876}}, "task": {"id": 388, "owner": {"id": 942}, "assignee": {"id": 1074}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 338, "assignee": {"id": 0}, "organization": {"id": 181}, "project": {"id": 320, "owner": {"id": 713}, "assignee": {"id": 858}}, "task": {"id": 305, "owner": {"id": 963}, "assignee": {"id": 1028}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 388, "assignee": {"id": 42}, "organization": {"id": 659}, "project": {"id": 379, "owner": {"id": 727}, "assignee": {"id": 830}}, "task": {"id": 361, "owner": {"id": 994}, "assignee": {"id": 1098}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 71, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 326, "assignee": {"id": 71}, "organization": {"id": 114}, "project": {"id": 300, "owner": {"id": 746}, "assignee": {"id": 801}}, "task": {"id": 309, "owner": {"id": 945}, "assignee": {"id": 1003}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 337, "assignee": {"id": 25}, "organization": {"id": 624}, "project": {"id": 380, "owner": {"id": 774}, "assignee": {"id": 897}}, "task": {"id": 346, "owner": {"id": 905}, "assignee": {"id": 1003}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "assignee": {"id": 25}, "organization": {"id": 102}, "project": {"id": 392, "owner": {"id": 722}, "assignee": {"id": 843}}, "task": {"id": 370, "owner": {"id": 931}, "assignee": {"id": 1022}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "assignee": {"id": 26}, "organization": {"id": 602}, "project": {"id": 386, "owner": {"id": 717}, "assignee": {"id": 848}}, "task": {"id": 383, "owner": {"id": 914}, "assignee": {"id": 1043}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "assignee": {"id": 8}, "organization": {"id": 115}, "project": {"id": 384, "owner": {"id": 721}, "assignee": {"id": 867}}, "task": {"id": 379, "owner": {"id": 955}, "assignee": {"id": 1091}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "assignee": {"id": 54}, "organization": {"id": 624}, "project": {"id": 368, "owner": {"id": 748}, "assignee": {"id": 888}}, "task": {"id": 347, "owner": {"id": 940}, "assignee": {"id": 1076}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 305, "assignee": {"id": 31}, "organization": {"id": 106}, "project": {"id": 375, "owner": {"id": 724}, "assignee": {"id": 868}}, "task": {"id": 337, "owner": {"id": 919}, "assignee": {"id": 1041}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 335, "assignee": {"id": 84}, "organization": {"id": 665}, "project": {"id": 374, "owner": {"id": 762}, "assignee": {"id": 826}}, "task": {"id": 393, "owner": {"id": 910}, "assignee": {"id": 1060}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 321, "assignee": {"id": 66}, "organization": {"id": 159}, "project": {"id": 396, "owner": {"id": 782}, "assignee": {"id": 896}}, "task": {"id": 365, "owner": {"id": 947}, "assignee": {"id": 1063}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 341, "assignee": {"id": 34}, "organization": {"id": 647}, "project": {"id": 367, "owner": {"id": 788}, "assignee": {"id": 861}}, "task": {"id": 391, "owner": {"id": 963}, "assignee": {"id": 1060}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 381, "assignee": {"id": 50}, "organization": {"id": 127}, "project": {"id": 304, "owner": {"id": 726}, "assignee": {"id": 828}}, "task": {"id": 325, "owner": {"id": 957}, "assignee": {"id": 1030}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 354, "assignee": {"id": 96}, "organization": {"id": 673}, "project": {"id": 320, "owner": {"id": 747}, "assignee": {"id": 832}}, "task": {"id": 370, "owner": {"id": 910}, "assignee": {"id": 1017}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "assignee": {"id": 43}, "organization": {"id": 154}, "project": {"id": 329, "owner": {"id": 774}, "assignee": {"id": 805}}, "task": {"id": 359, "owner": {"id": 965}, "assignee": {"id": 1079}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "assignee": {"id": 22}, "organization": {"id": 652}, "project": {"id": 347, "owner": {"id": 763}, "assignee": {"id": 840}}, "task": {"id": 334, "owner": {"id": 948}, "assignee": {"id": 1003}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "assignee": {"id": 82}, "organization": {"id": 110}, "project": {"id": 345, "owner": {"id": 710}, "assignee": {"id": 837}}, "task": {"id": 364, "owner": {"id": 965}, "assignee": {"id": 1069}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "assignee": {"id": 25}, "organization": {"id": 615}, "project": {"id": 309, "owner": {"id": 746}, "assignee": {"id": 804}}, "task": {"id": 369, "owner": {"id": 925}, "assignee": {"id": 1042}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 332, "assignee": {"id": 17}, "organization": {"id": 196}, "project": {"id": 398, "owner": {"id": 787}, "assignee": {"id": 835}}, "task": {"id": 324, "owner": {"id": 990}, "assignee": {"id": 1077}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 394, "assignee": {"id": 51}, "organization": {"id": 633}, "project": {"id": 301, "owner": {"id": 798}, "assignee": {"id": 838}}, "task": {"id": 336, "owner": {"id": 944}, "assignee": {"id": 1051}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 29, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 383, "assignee": {"id": 29}, "organization": {"id": 192}, "project": {"id": 383, "owner": {"id": 765}, "assignee": {"id": 897}}, "task": {"id": 319, "owner": {"id": 950}, "assignee": {"id": 1029}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 326, "assignee": {"id": 59}, "organization": {"id": 629}, "project": {"id": 366, "owner": {"id": 775}, "assignee": {"id": 870}}, "task": {"id": 396, "owner": {"id": 959}, "assignee": {"id": 1092}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 340, "assignee": {"id": 71}, "organization": {"id": 103}, "project": {"id": 398, "owner": {"id": 789}, "assignee": {"id": 853}}, "task": {"id": 326, "owner": {"id": 956}, "assignee": {"id": 1057}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 317, "assignee": {"id": 43}, "organization": {"id": 616}, "project": {"id": 339, "owner": {"id": 794}, "assignee": {"id": 801}}, "task": {"id": 363, "owner": {"id": 984}, "assignee": {"id": 1045}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "assignee": {"id": 41}, "organization": {"id": 175}, "project": {"id": 351, "owner": {"id": 797}, "assignee": {"id": 899}}, "task": {"id": 388, "owner": {"id": 968}, "assignee": {"id": 1038}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 372, "assignee": {"id": 73}, "organization": {"id": 617}, "project": {"id": 319, "owner": {"id": 742}, "assignee": {"id": 872}}, "task": {"id": 380, "owner": {"id": 977}, "assignee": {"id": 1077}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "assignee": {"id": 72}, "organization": {"id": 157}, "project": {"id": 368, "owner": {"id": 749}, "assignee": {"id": 824}}, "task": {"id": 360, "owner": {"id": 913}, "assignee": {"id": 1042}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "assignee": {"id": 77}, "organization": {"id": 621}, "project": {"id": 313, "owner": {"id": 786}, "assignee": {"id": 870}}, "task": {"id": 322, "owner": {"id": 904}, "assignee": {"id": 1088}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 323, "assignee": {"id": 67}, "organization": {"id": 108}, "project": {"id": 349, "owner": {"id": 736}, "assignee": {"id": 826}}, "task": {"id": 329, "owner": {"id": 937}, "assignee": {"id": 1084}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 307, "assignee": {"id": 14}, "organization": {"id": 666}, "project": {"id": 301, "owner": {"id": 721}, "assignee": {"id": 841}}, "task": {"id": 352, "owner": {"id": 950}, "assignee": {"id": 1020}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 353, "assignee": {"id": 55}, "organization": {"id": 190}, "project": {"id": 308, "owner": {"id": 749}, "assignee": {"id": 826}}, "task": {"id": 316, "owner": {"id": 926}, "assignee": {"id": 1039}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 360, "assignee": {"id": 87}, "organization": {"id": 677}, "project": {"id": 373, "owner": {"id": 739}, "assignee": {"id": 875}}, "task": {"id": 325, "owner": {"id": 964}, "assignee": {"id": 1091}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 325, "assignee": {"id": 500}, "organization": {"id": 172}, "project": {"id": 357, "owner": {"id": 708}, "assignee": {"id": 851}}, "task": {"id": 377, "owner": {"id": 931}, "assignee": {"id": 1067}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 358, "assignee": {"id": 559}, "organization": {"id": 673}, "project": {"id": 305, "owner": {"id": 794}, "assignee": {"id": 811}}, "task": {"id": 336, "owner": {"id": 982}, "assignee": {"id": 1058}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "assignee": {"id": 550}, "organization": {"id": 158}, "project": {"id": 322, "owner": {"id": 753}, "assignee": {"id": 831}}, "task": {"id": 322, "owner": {"id": 979}, "assignee": {"id": 1093}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "assignee": {"id": 523}, "organization": {"id": 689}, "project": {"id": 372, "owner": {"id": 712}, "assignee": {"id": 850}}, "task": {"id": 389, "owner": {"id": 905}, "assignee": {"id": 1030}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "assignee": {"id": 537}, "organization": {"id": 197}, "project": {"id": 308, "owner": {"id": 789}, "assignee": {"id": 892}}, "task": {"id": 392, "owner": {"id": 927}, "assignee": {"id": 1063}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "assignee": {"id": 547}, "organization": {"id": 609}, "project": {"id": 396, "owner": {"id": 713}, "assignee": {"id": 864}}, "task": {"id": 398, "owner": {"id": 999}, "assignee": {"id": 1041}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 332, "assignee": {"id": 526}, "organization": {"id": 195}, "project": {"id": 305, "owner": {"id": 759}, "assignee": {"id": 803}}, "task": {"id": 309, "owner": {"id": 981}, "assignee": {"id": 1088}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 348, "assignee": {"id": 543}, "organization": {"id": 695}, "project": {"id": 351, "owner": {"id": 724}, "assignee": {"id": 850}}, "task": {"id": 304, "owner": {"id": 901}, "assignee": {"id": 1032}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 341, "assignee": {"id": 585}, "organization": {"id": 131}, "project": {"id": 359, "owner": {"id": 762}, "assignee": {"id": 859}}, "task": {"id": 308, "owner": {"id": 910}, "assignee": {"id": 1070}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 356, "assignee": {"id": 517}, "organization": {"id": 660}, "project": {"id": 335, "owner": {"id": 720}, "assignee": {"id": 821}}, "task": {"id": 302, "owner": {"id": 977}, "assignee": {"id": 1012}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 368, "assignee": {"id": 594}, "organization": {"id": 119}, "project": {"id": 321, "owner": {"id": 709}, "assignee": {"id": 885}}, "task": {"id": 397, "owner": {"id": 901}, "assignee": {"id": 1086}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 345, "assignee": {"id": 522}, "organization": {"id": 627}, "project": {"id": 391, "owner": {"id": 704}, "assignee": {"id": 886}}, "task": {"id": 368, "owner": {"id": 927}, "assignee": {"id": 1056}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "assignee": {"id": 582}, "organization": {"id": 106}, "project": {"id": 391, "owner": {"id": 784}, "assignee": {"id": 813}}, "task": {"id": 349, "owner": {"id": 988}, "assignee": {"id": 1039}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "assignee": {"id": 506}, "organization": {"id": 698}, "project": {"id": 348, "owner": {"id": 798}, "assignee": {"id": 825}}, "task": {"id": 331, "owner": {"id": 947}, "assignee": {"id": 1030}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "assignee": {"id": 503}, "organization": {"id": 185}, "project": {"id": 343, "owner": {"id": 724}, "assignee": {"id": 887}}, "task": {"id": 385, "owner": {"id": 908}, "assignee": {"id": 1028}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "assignee": {"id": 521}, "organization": {"id": 605}, "project": {"id": 353, "owner": {"id": 765}, "assignee": {"id": 813}}, "task": {"id": 341, "owner": {"id": 941}, "assignee": {"id": 1071}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 326, "assignee": {"id": 569}, "organization": {"id": 122}, "project": {"id": 354, "owner": {"id": 715}, "assignee": {"id": 829}}, "task": {"id": 327, "owner": {"id": 913}, "assignee": {"id": 1045}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 351, "assignee": {"id": 583}, "organization": {"id": 640}, "project": {"id": 301, "owner": {"id": 749}, "assignee": {"id": 827}}, "task": {"id": 358, "owner": {"id": 928}, "assignee": {"id": 1008}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 379, "assignee": {"id": 547}, "organization": {"id": 113}, "project": {"id": 308, "owner": {"id": 727}, "assignee": {"id": 852}}, "task": {"id": 338, "owner": {"id": 998}, "assignee": {"id": 1076}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 368, "assignee": {"id": 572}, "organization": {"id": 621}, "project": {"id": 332, "owner": {"id": 712}, "assignee": {"id": 876}}, "task": {"id": 341, "owner": {"id": 980}, "assignee": {"id": 1089}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 388, "assignee": {"id": 517}, "organization": {"id": 108}, "project": {"id": 322, "owner": {"id": 781}, "assignee": {"id": 897}}, "task": {"id": 388, "owner": {"id": 940}, "assignee": {"id": 1085}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 302, "assignee": {"id": 577}, "organization": {"id": 674}, "project": {"id": 357, "owner": {"id": 748}, "assignee": {"id": 865}}, "task": {"id": 381, "owner": {"id": 994}, "assignee": {"id": 1029}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 301, "assignee": {"id": 529}, "organization": {"id": 196}, "project": {"id": 378, "owner": {"id": 797}, "assignee": {"id": 815}}, "task": {"id": 339, "owner": {"id": 930}, "assignee": {"id": 1094}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "assignee": {"id": 510}, "organization": {"id": 607}, "project": {"id": 317, "owner": {"id": 747}, "assignee": {"id": 863}}, "task": {"id": 337, "owner": {"id": 925}, "assignee": {"id": 1019}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "assignee": {"id": 530}, "organization": {"id": 182}, "project": {"id": 376, "owner": {"id": 756}, "assignee": {"id": 894}}, "task": {"id": 342, "owner": {"id": 917}, "assignee": {"id": 1035}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "assignee": {"id": 566}, "organization": {"id": 653}, "project": {"id": 382, "owner": {"id": 736}, "assignee": {"id": 896}}, "task": {"id": 303, "owner": {"id": 929}, "assignee": {"id": 1093}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 326, "assignee": {"id": 569}, "organization": {"id": 148}, "project": {"id": 385, "owner": {"id": 731}, "assignee": {"id": 887}}, "task": {"id": 389, "owner": {"id": 992}, "assignee": {"id": 1028}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 341, "assignee": {"id": 523}, "organization": {"id": 656}, "project": {"id": 380, "owner": {"id": 700}, "assignee": {"id": 808}}, "task": {"id": 362, "owner": {"id": 908}, "assignee": {"id": 1024}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 326, "assignee": {"id": 516}, "organization": {"id": 154}, "project": {"id": 322, "owner": {"id": 775}, "assignee": {"id": 870}}, "task": {"id": 326, "owner": {"id": 930}, "assignee": {"id": 1064}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 359, "assignee": {"id": 539}, "organization": {"id": 621}, "project": {"id": 392, "owner": {"id": 725}, "assignee": {"id": 831}}, "task": {"id": 354, "owner": {"id": 922}, "assignee": {"id": 1077}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 373, "assignee": {"id": 557}, "organization": {"id": 121}, "project": {"id": 325, "owner": {"id": 734}, "assignee": {"id": 861}}, "task": {"id": 310, "owner": {"id": 946}, "assignee": {"id": 1050}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 356, "assignee": {"id": 554}, "organization": {"id": 664}, "project": {"id": 378, "owner": {"id": 794}, "assignee": {"id": 855}}, "task": {"id": 397, "owner": {"id": 919}, "assignee": {"id": 1061}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "assignee": {"id": 510}, "organization": {"id": 132}, "project": {"id": 338, "owner": {"id": 776}, "assignee": {"id": 868}}, "task": {"id": 319, "owner": {"id": 970}, "assignee": {"id": 1093}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "assignee": {"id": 539}, "organization": {"id": 658}, "project": {"id": 336, "owner": {"id": 748}, "assignee": {"id": 871}}, "task": {"id": 377, "owner": {"id": 961}, "assignee": {"id": 1009}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "assignee": {"id": 525}, "organization": {"id": 162}, "project": {"id": 324, "owner": {"id": 700}, "assignee": {"id": 801}}, "task": {"id": 364, "owner": {"id": 993}, "assignee": {"id": 1092}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "assignee": {"id": 550}, "organization": {"id": 695}, "project": {"id": 347, "owner": {"id": 749}, "assignee": {"id": 862}}, "task": {"id": 339, "owner": {"id": 982}, "assignee": {"id": 1075}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 315, "assignee": {"id": 549}, "organization": {"id": 192}, "project": {"id": 320, "owner": {"id": 724}, "assignee": {"id": 897}}, "task": {"id": 355, "owner": {"id": 932}, "assignee": {"id": 1098}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 365, "assignee": {"id": 590}, "organization": {"id": 662}, "project": {"id": 381, "owner": {"id": 788}, "assignee": {"id": 847}}, "task": {"id": 389, "owner": {"id": 907}, "assignee": {"id": 1083}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 331, "assignee": {"id": 531}, "organization": {"id": 185}, "project": {"id": 304, "owner": {"id": 746}, "assignee": {"id": 880}}, "task": {"id": 390, "owner": {"id": 986}, "assignee": {"id": 1003}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"id": 318, "assignee": {"id": 533}, "organization": {"id": 677}, "project": {"id": 358, "owner": {"id": 787}, "assignee": {"id": 818}}, "task": {"id": 332, "owner": {"id": 931}, "assignee": {"id": 1077}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 301, "assignee": {"id": 514}, "organization": {"id": 110}, "project": {"id": 311, "owner": {"id": 782}, "assignee": {"id": 891}}, "task": {"id": 349, "owner": {"id": 950}, "assignee": {"id": 1090}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 324, "assignee": {"id": 554}, "organization": {"id": 621}, "project": {"id": 354, "owner": {"id": 732}, "assignee": {"id": 888}}, "task": {"id": 338, "owner": {"id": 964}, "assignee": {"id": 1068}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "assignee": {"id": 593}, "organization": {"id": 144}, "project": {"id": 396, "owner": {"id": 793}, "assignee": {"id": 811}}, "task": {"id": 313, "owner": {"id": 981}, "assignee": {"id": 1073}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "assignee": {"id": 595}, "organization": {"id": 626}, "project": {"id": 395, "owner": {"id": 750}, "assignee": {"id": 889}}, "task": {"id": 339, "owner": {"id": 900}, "assignee": {"id": 1021}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "assignee": {"id": 599}, "organization": {"id": 121}, "project": {"id": 353, "owner": {"id": 767}, "assignee": {"id": 853}}, "task": {"id": 383, "owner": {"id": 936}, "assignee": {"id": 1093}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "assignee": {"id": 523}, "organization": {"id": 690}, "project": {"id": 317, "owner": {"id": 725}, "assignee": {"id": 862}}, "task": {"id": 323, "owner": {"id": 964}, "assignee": {"id": 1014}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 323, "assignee": {"id": 525}, "organization": {"id": 180}, "project": {"id": 395, "owner": {"id": 723}, "assignee": {"id": 897}}, "task": {"id": 324, "owner": {"id": 933}, "assignee": {"id": 1052}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 313, "assignee": {"id": 581}, "organization": {"id": 621}, "project": {"id": 310, "owner": {"id": 737}, "assignee": {"id": 810}}, "task": {"id": 348, "owner": {"id": 915}, "assignee": {"id": 1035}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 374, "assignee": {"id": 530}, "organization": {"id": 196}, "project": {"id": 362, "owner": {"id": 786}, "assignee": {"id": 897}}, "task": {"id": 312, "owner": {"id": 901}, "assignee": {"id": 1007}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 385, "assignee": {"id": 574}, "organization": {"id": 605}, "project": {"id": 312, "owner": {"id": 727}, "assignee": {"id": 866}}, "task": {"id": 300, "owner": {"id": 948}, "assignee": {"id": 1077}}}} -} - -test_scope_UPDATE_STATE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": null}, "resource": {"id": 377, "assignee": {"id": 524}, "organization": {"id": 691}, "project": {"id": 318, "owner": {"id": 16}, "assignee": {"id": 873}}, "task": {"id": 391, "owner": {"id": 964}, "assignee": {"id": 1004}}}} -} - -test_scope_UPDATE_STATE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": null}, "resource": {"id": 373, "assignee": {"id": 594}, "organization": {"id": 600}, "project": {"id": 339, "owner": {"id": 54}, "assignee": {"id": 875}}, "task": {"id": 368, "owner": {"id": 924}, "assignee": {"id": 1049}}}} -} - -test_scope_UPDATE_STATE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": null}, "resource": {"id": 324, "assignee": {"id": 589}, "organization": {"id": 670}, "project": {"id": 350, "owner": {"id": 6}, "assignee": {"id": 816}}, "task": {"id": 341, "owner": {"id": 996}, "assignee": {"id": 1074}}}} -} - -test_scope_UPDATE_STATE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": null}, "resource": {"id": 328, "assignee": {"id": 502}, "organization": {"id": 675}, "project": {"id": 373, "owner": {"id": 12}, "assignee": {"id": 861}}, "task": {"id": 335, "owner": {"id": 988}, "assignee": {"id": 1095}}}} -} - -test_scope_UPDATE_STATE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": null}, "resource": {"id": 377, "assignee": {"id": 568}, "organization": {"id": 665}, "project": {"id": 326, "owner": {"id": 4}, "assignee": {"id": 812}}, "task": {"id": 384, "owner": {"id": 905}, "assignee": {"id": 1030}}}} -} - -test_scope_UPDATE_STATE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": null}, "resource": {"id": 315, "assignee": {"id": 522}, "organization": {"id": 667}, "project": {"id": 393, "owner": {"id": 739}, "assignee": {"id": 44}}, "task": {"id": 362, "owner": {"id": 912}, "assignee": {"id": 1067}}}} -} - -test_scope_UPDATE_STATE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": null}, "resource": {"id": 301, "assignee": {"id": 554}, "organization": {"id": 686}, "project": {"id": 365, "owner": {"id": 793}, "assignee": {"id": 87}}, "task": {"id": 361, "owner": {"id": 963}, "assignee": {"id": 1065}}}} -} - -test_scope_UPDATE_STATE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": null}, "resource": {"id": 351, "assignee": {"id": 545}, "organization": {"id": 601}, "project": {"id": 312, "owner": {"id": 755}, "assignee": {"id": 65}}, "task": {"id": 325, "owner": {"id": 910}, "assignee": {"id": 1067}}}} -} - -test_scope_UPDATE_STATE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": null}, "resource": {"id": 376, "assignee": {"id": 594}, "organization": {"id": 601}, "project": {"id": 355, "owner": {"id": 761}, "assignee": {"id": 97}}, "task": {"id": 336, "owner": {"id": 962}, "assignee": {"id": 1010}}}} -} - -test_scope_UPDATE_STATE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": null}, "resource": {"id": 335, "assignee": {"id": 577}, "organization": {"id": 612}, "project": {"id": 355, "owner": {"id": 723}, "assignee": {"id": 38}}, "task": {"id": 362, "owner": {"id": 946}, "assignee": {"id": 1042}}}} -} - -test_scope_UPDATE_STATE_context_SANDBOX_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": null}, "resource": {"id": 307, "assignee": {"id": 588}, "organization": {"id": 624}, "project": {"id": 394, "owner": {"id": 750}, "assignee": {"id": 863}}, "task": {"id": 387, "owner": {"id": 9}, "assignee": {"id": 1065}}}} -} - -test_scope_UPDATE_STATE_context_SANDBOX_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": null}, "resource": {"id": 399, "assignee": {"id": 599}, "organization": {"id": 674}, "project": {"id": 313, "owner": {"id": 792}, "assignee": {"id": 895}}, "task": {"id": 388, "owner": {"id": 32}, "assignee": {"id": 1083}}}} -} - -test_scope_UPDATE_STATE_context_SANDBOX_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": null}, "resource": {"id": 394, "assignee": {"id": 543}, "organization": {"id": 690}, "project": {"id": 310, "owner": {"id": 725}, "assignee": {"id": 817}}, "task": {"id": 361, "owner": {"id": 56}, "assignee": {"id": 1072}}}} -} - -test_scope_UPDATE_STATE_context_SANDBOX_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": null}, "resource": {"id": 318, "assignee": {"id": 540}, "organization": {"id": 618}, "project": {"id": 349, "owner": {"id": 757}, "assignee": {"id": 892}}, "task": {"id": 361, "owner": {"id": 73}, "assignee": {"id": 1014}}}} -} - -test_scope_UPDATE_STATE_context_SANDBOX_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": null}, "resource": {"id": 347, "assignee": {"id": 506}, "organization": {"id": 689}, "project": {"id": 313, "owner": {"id": 784}, "assignee": {"id": 874}}, "task": {"id": 309, "owner": {"id": 20}, "assignee": {"id": 1076}}}} -} - -test_scope_UPDATE_STATE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": null}, "resource": {"id": 347, "assignee": {"id": 582}, "organization": {"id": 654}, "project": {"id": 324, "owner": {"id": 734}, "assignee": {"id": 813}}, "task": {"id": 313, "owner": {"id": 909}, "assignee": {"id": 77}}}} -} - -test_scope_UPDATE_STATE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": null}, "resource": {"id": 393, "assignee": {"id": 577}, "organization": {"id": 683}, "project": {"id": 366, "owner": {"id": 798}, "assignee": {"id": 843}}, "task": {"id": 357, "owner": {"id": 916}, "assignee": {"id": 37}}}} -} - -test_scope_UPDATE_STATE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": null}, "resource": {"id": 301, "assignee": {"id": 519}, "organization": {"id": 613}, "project": {"id": 337, "owner": {"id": 748}, "assignee": {"id": 820}}, "task": {"id": 372, "owner": {"id": 951}, "assignee": {"id": 28}}}} -} - -test_scope_UPDATE_STATE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": null}, "resource": {"id": 338, "assignee": {"id": 521}, "organization": {"id": 625}, "project": {"id": 344, "owner": {"id": 753}, "assignee": {"id": 861}}, "task": {"id": 360, "owner": {"id": 968}, "assignee": {"id": 20}}}} -} - -test_scope_UPDATE_STATE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": null}, "resource": {"id": 314, "assignee": {"id": 522}, "organization": {"id": 658}, "project": {"id": 354, "owner": {"id": 747}, "assignee": {"id": 822}}, "task": {"id": 370, "owner": {"id": 976}, "assignee": {"id": 69}}}} -} - -test_scope_UPDATE_STATE_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": null}, "resource": {"id": 324, "assignee": {"id": 49}, "organization": {"id": 682}, "project": {"id": 350, "owner": {"id": 706}, "assignee": {"id": 873}}, "task": {"id": 354, "owner": {"id": 916}, "assignee": {"id": 1081}}}} -} - -test_scope_UPDATE_STATE_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": null}, "resource": {"id": 309, "assignee": {"id": 9}, "organization": {"id": 646}, "project": {"id": 326, "owner": {"id": 750}, "assignee": {"id": 812}}, "task": {"id": 362, "owner": {"id": 902}, "assignee": {"id": 1052}}}} -} - -test_scope_UPDATE_STATE_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": null}, "resource": {"id": 375, "assignee": {"id": 76}, "organization": {"id": 621}, "project": {"id": 326, "owner": {"id": 792}, "assignee": {"id": 862}}, "task": {"id": 355, "owner": {"id": 957}, "assignee": {"id": 1054}}}} -} - -test_scope_UPDATE_STATE_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": null}, "resource": {"id": 363, "assignee": {"id": 76}, "organization": {"id": 605}, "project": {"id": 335, "owner": {"id": 753}, "assignee": {"id": 815}}, "task": {"id": 315, "owner": {"id": 957}, "assignee": {"id": 1021}}}} -} - -test_scope_UPDATE_STATE_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": null}, "resource": {"id": 334, "assignee": {"id": 18}, "organization": {"id": 621}, "project": {"id": 317, "owner": {"id": 774}, "assignee": {"id": 858}}, "task": {"id": 315, "owner": {"id": 916}, "assignee": {"id": 1040}}}} -} - -test_scope_UPDATE_STATE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": null}, "resource": {"id": 313, "assignee": {"id": 518}, "organization": {"id": 659}, "project": {"id": 313, "owner": {"id": 795}, "assignee": {"id": 814}}, "task": {"id": 330, "owner": {"id": 902}, "assignee": {"id": 1058}}}} -} - -test_scope_UPDATE_STATE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": null}, "resource": {"id": 393, "assignee": {"id": 500}, "organization": {"id": 612}, "project": {"id": 323, "owner": {"id": 764}, "assignee": {"id": 889}}, "task": {"id": 379, "owner": {"id": 961}, "assignee": {"id": 1094}}}} -} - -test_scope_UPDATE_STATE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": null}, "resource": {"id": 384, "assignee": {"id": 518}, "organization": {"id": 645}, "project": {"id": 363, "owner": {"id": 703}, "assignee": {"id": 831}}, "task": {"id": 373, "owner": {"id": 994}, "assignee": {"id": 1089}}}} -} - -test_scope_UPDATE_STATE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": null}, "resource": {"id": 311, "assignee": {"id": 591}, "organization": {"id": 634}, "project": {"id": 318, "owner": {"id": 793}, "assignee": {"id": 825}}, "task": {"id": 355, "owner": {"id": 974}, "assignee": {"id": 1010}}}} -} - -test_scope_UPDATE_STATE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": null}, "resource": {"id": 351, "assignee": {"id": 585}, "organization": {"id": 600}, "project": {"id": 359, "owner": {"id": 797}, "assignee": {"id": 866}}, "task": {"id": 358, "owner": {"id": 906}, "assignee": {"id": 1010}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 388, "assignee": {"id": 542}, "organization": {"id": 106}, "project": {"id": 315, "owner": {"id": 91}, "assignee": {"id": 874}}, "task": {"id": 386, "owner": {"id": 965}, "assignee": {"id": 1094}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 326, "assignee": {"id": 566}, "organization": {"id": 618}, "project": {"id": 371, "owner": {"id": 81}, "assignee": {"id": 863}}, "task": {"id": 317, "owner": {"id": 928}, "assignee": {"id": 1086}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "assignee": {"id": 539}, "organization": {"id": 100}, "project": {"id": 300, "owner": {"id": 8}, "assignee": {"id": 879}}, "task": {"id": 388, "owner": {"id": 925}, "assignee": {"id": 1014}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "assignee": {"id": 515}, "organization": {"id": 666}, "project": {"id": 312, "owner": {"id": 64}, "assignee": {"id": 826}}, "task": {"id": 313, "owner": {"id": 960}, "assignee": {"id": 1003}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "assignee": {"id": 515}, "organization": {"id": 187}, "project": {"id": 351, "owner": {"id": 78}, "assignee": {"id": 823}}, "task": {"id": 330, "owner": {"id": 969}, "assignee": {"id": 1033}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "assignee": {"id": 578}, "organization": {"id": 615}, "project": {"id": 355, "owner": {"id": 95}, "assignee": {"id": 881}}, "task": {"id": 302, "owner": {"id": 923}, "assignee": {"id": 1018}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 321, "assignee": {"id": 565}, "organization": {"id": 185}, "project": {"id": 389, "owner": {"id": 37}, "assignee": {"id": 825}}, "task": {"id": 360, "owner": {"id": 961}, "assignee": {"id": 1037}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 375, "assignee": {"id": 563}, "organization": {"id": 647}, "project": {"id": 385, "owner": {"id": 59}, "assignee": {"id": 850}}, "task": {"id": 349, "owner": {"id": 989}, "assignee": {"id": 1013}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 318, "assignee": {"id": 503}, "organization": {"id": 104}, "project": {"id": 358, "owner": {"id": 38}, "assignee": {"id": 872}}, "task": {"id": 349, "owner": {"id": 901}, "assignee": {"id": 1074}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 383, "assignee": {"id": 584}, "organization": {"id": 679}, "project": {"id": 356, "owner": {"id": 58}, "assignee": {"id": 845}}, "task": {"id": 317, "owner": {"id": 959}, "assignee": {"id": 1092}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 320, "assignee": {"id": 545}, "organization": {"id": 108}, "project": {"id": 364, "owner": {"id": 65}, "assignee": {"id": 844}}, "task": {"id": 390, "owner": {"id": 967}, "assignee": {"id": 1049}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 383, "assignee": {"id": 519}, "organization": {"id": 645}, "project": {"id": 383, "owner": {"id": 17}, "assignee": {"id": 872}}, "task": {"id": 343, "owner": {"id": 958}, "assignee": {"id": 1091}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "assignee": {"id": 538}, "organization": {"id": 123}, "project": {"id": 308, "owner": {"id": 84}, "assignee": {"id": 861}}, "task": {"id": 348, "owner": {"id": 960}, "assignee": {"id": 1077}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "assignee": {"id": 564}, "organization": {"id": 699}, "project": {"id": 384, "owner": {"id": 75}, "assignee": {"id": 833}}, "task": {"id": 316, "owner": {"id": 989}, "assignee": {"id": 1041}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "assignee": {"id": 579}, "organization": {"id": 185}, "project": {"id": 308, "owner": {"id": 12}, "assignee": {"id": 803}}, "task": {"id": 393, "owner": {"id": 920}, "assignee": {"id": 1029}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "assignee": {"id": 586}, "organization": {"id": 660}, "project": {"id": 341, "owner": {"id": 13}, "assignee": {"id": 829}}, "task": {"id": 398, "owner": {"id": 993}, "assignee": {"id": 1030}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 349, "assignee": {"id": 596}, "organization": {"id": 109}, "project": {"id": 308, "owner": {"id": 95}, "assignee": {"id": 878}}, "task": {"id": 332, "owner": {"id": 914}, "assignee": {"id": 1004}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 397, "assignee": {"id": 547}, "organization": {"id": 677}, "project": {"id": 380, "owner": {"id": 57}, "assignee": {"id": 822}}, "task": {"id": 341, "owner": {"id": 913}, "assignee": {"id": 1089}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 381, "assignee": {"id": 573}, "organization": {"id": 128}, "project": {"id": 325, "owner": {"id": 36}, "assignee": {"id": 832}}, "task": {"id": 362, "owner": {"id": 956}, "assignee": {"id": 1086}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 394, "assignee": {"id": 520}, "organization": {"id": 655}, "project": {"id": 367, "owner": {"id": 85}, "assignee": {"id": 811}}, "task": {"id": 374, "owner": {"id": 903}, "assignee": {"id": 1080}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 304, "assignee": {"id": 517}, "organization": {"id": 123}, "project": {"id": 346, "owner": {"id": 43}, "assignee": {"id": 852}}, "task": {"id": 372, "owner": {"id": 969}, "assignee": {"id": 1009}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 393, "assignee": {"id": 593}, "organization": {"id": 682}, "project": {"id": 367, "owner": {"id": 64}, "assignee": {"id": 824}}, "task": {"id": 326, "owner": {"id": 973}, "assignee": {"id": 1060}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "assignee": {"id": 571}, "organization": {"id": 110}, "project": {"id": 308, "owner": {"id": 72}, "assignee": {"id": 854}}, "task": {"id": 380, "owner": {"id": 948}, "assignee": {"id": 1009}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "assignee": {"id": 538}, "organization": {"id": 612}, "project": {"id": 315, "owner": {"id": 42}, "assignee": {"id": 829}}, "task": {"id": 306, "owner": {"id": 976}, "assignee": {"id": 1069}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "assignee": {"id": 532}, "organization": {"id": 173}, "project": {"id": 390, "owner": {"id": 68}, "assignee": {"id": 808}}, "task": {"id": 320, "owner": {"id": 936}, "assignee": {"id": 1009}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "assignee": {"id": 578}, "organization": {"id": 664}, "project": {"id": 339, "owner": {"id": 14}, "assignee": {"id": 879}}, "task": {"id": 307, "owner": {"id": 969}, "assignee": {"id": 1089}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 333, "assignee": {"id": 583}, "organization": {"id": 107}, "project": {"id": 304, "owner": {"id": 97}, "assignee": {"id": 853}}, "task": {"id": 333, "owner": {"id": 925}, "assignee": {"id": 1042}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 326, "assignee": {"id": 570}, "organization": {"id": 693}, "project": {"id": 342, "owner": {"id": 9}, "assignee": {"id": 884}}, "task": {"id": 307, "owner": {"id": 930}, "assignee": {"id": 1063}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 389, "assignee": {"id": 597}, "organization": {"id": 170}, "project": {"id": 344, "owner": {"id": 10}, "assignee": {"id": 853}}, "task": {"id": 376, "owner": {"id": 994}, "assignee": {"id": 1078}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 316, "assignee": {"id": 534}, "organization": {"id": 692}, "project": {"id": 305, "owner": {"id": 83}, "assignee": {"id": 804}}, "task": {"id": 363, "owner": {"id": 964}, "assignee": {"id": 1028}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 361, "assignee": {"id": 538}, "organization": {"id": 148}, "project": {"id": 302, "owner": {"id": 77}, "assignee": {"id": 803}}, "task": {"id": 399, "owner": {"id": 925}, "assignee": {"id": 1068}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 387, "assignee": {"id": 594}, "organization": {"id": 602}, "project": {"id": 370, "owner": {"id": 89}, "assignee": {"id": 806}}, "task": {"id": 349, "owner": {"id": 998}, "assignee": {"id": 1048}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 389, "assignee": {"id": 554}, "organization": {"id": 124}, "project": {"id": 317, "owner": {"id": 45}, "assignee": {"id": 856}}, "task": {"id": 315, "owner": {"id": 978}, "assignee": {"id": 1047}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "assignee": {"id": 507}, "organization": {"id": 630}, "project": {"id": 329, "owner": {"id": 95}, "assignee": {"id": 875}}, "task": {"id": 301, "owner": {"id": 929}, "assignee": {"id": 1052}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "assignee": {"id": 505}, "organization": {"id": 123}, "project": {"id": 392, "owner": {"id": 56}, "assignee": {"id": 807}}, "task": {"id": 309, "owner": {"id": 907}, "assignee": {"id": 1016}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "assignee": {"id": 540}, "organization": {"id": 644}, "project": {"id": 377, "owner": {"id": 50}, "assignee": {"id": 831}}, "task": {"id": 337, "owner": {"id": 916}, "assignee": {"id": 1077}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 315, "assignee": {"id": 584}, "organization": {"id": 145}, "project": {"id": 309, "owner": {"id": 94}, "assignee": {"id": 869}}, "task": {"id": 326, "owner": {"id": 963}, "assignee": {"id": 1090}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 67, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 356, "assignee": {"id": 591}, "organization": {"id": 638}, "project": {"id": 346, "owner": {"id": 67}, "assignee": {"id": 870}}, "task": {"id": 337, "owner": {"id": 983}, "assignee": {"id": 1031}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 389, "assignee": {"id": 569}, "organization": {"id": 135}, "project": {"id": 313, "owner": {"id": 62}, "assignee": {"id": 844}}, "task": {"id": 352, "owner": {"id": 990}, "assignee": {"id": 1079}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 326, "assignee": {"id": 517}, "organization": {"id": 666}, "project": {"id": 329, "owner": {"id": 47}, "assignee": {"id": 894}}, "task": {"id": 370, "owner": {"id": 926}, "assignee": {"id": 1015}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 304, "assignee": {"id": 530}, "organization": {"id": 104}, "project": {"id": 356, "owner": {"id": 63}, "assignee": {"id": 897}}, "task": {"id": 358, "owner": {"id": 914}, "assignee": {"id": 1002}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 335, "assignee": {"id": 575}, "organization": {"id": 649}, "project": {"id": 338, "owner": {"id": 63}, "assignee": {"id": 807}}, "task": {"id": 335, "owner": {"id": 978}, "assignee": {"id": 1049}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "assignee": {"id": 556}, "organization": {"id": 106}, "project": {"id": 328, "owner": {"id": 68}, "assignee": {"id": 848}}, "task": {"id": 323, "owner": {"id": 984}, "assignee": {"id": 1055}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "assignee": {"id": 504}, "organization": {"id": 669}, "project": {"id": 397, "owner": {"id": 33}, "assignee": {"id": 803}}, "task": {"id": 377, "owner": {"id": 996}, "assignee": {"id": 1043}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "assignee": {"id": 596}, "organization": {"id": 196}, "project": {"id": 343, "owner": {"id": 94}, "assignee": {"id": 879}}, "task": {"id": 355, "owner": {"id": 954}, "assignee": {"id": 1093}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "assignee": {"id": 570}, "organization": {"id": 649}, "project": {"id": 392, "owner": {"id": 73}, "assignee": {"id": 836}}, "task": {"id": 368, "owner": {"id": 959}, "assignee": {"id": 1054}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 398, "assignee": {"id": 566}, "organization": {"id": 135}, "project": {"id": 320, "owner": {"id": 1}, "assignee": {"id": 859}}, "task": {"id": 395, "owner": {"id": 930}, "assignee": {"id": 1016}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 335, "assignee": {"id": 510}, "organization": {"id": 631}, "project": {"id": 398, "owner": {"id": 4}, "assignee": {"id": 837}}, "task": {"id": 343, "owner": {"id": 973}, "assignee": {"id": 1050}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 346, "assignee": {"id": 534}, "organization": {"id": 172}, "project": {"id": 332, "owner": {"id": 39}, "assignee": {"id": 898}}, "task": {"id": 377, "owner": {"id": 901}, "assignee": {"id": 1015}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 341, "assignee": {"id": 533}, "organization": {"id": 622}, "project": {"id": 356, "owner": {"id": 4}, "assignee": {"id": 802}}, "task": {"id": 356, "owner": {"id": 901}, "assignee": {"id": 1059}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 381, "assignee": {"id": 571}, "organization": {"id": 140}, "project": {"id": 352, "owner": {"id": 707}, "assignee": {"id": 70}}, "task": {"id": 310, "owner": {"id": 935}, "assignee": {"id": 1078}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 356, "assignee": {"id": 523}, "organization": {"id": 633}, "project": {"id": 398, "owner": {"id": 735}, "assignee": {"id": 80}}, "task": {"id": 363, "owner": {"id": 916}, "assignee": {"id": 1029}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "assignee": {"id": 583}, "organization": {"id": 156}, "project": {"id": 329, "owner": {"id": 714}, "assignee": {"id": 64}}, "task": {"id": 304, "owner": {"id": 923}, "assignee": {"id": 1087}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "assignee": {"id": 505}, "organization": {"id": 670}, "project": {"id": 391, "owner": {"id": 729}, "assignee": {"id": 2}}, "task": {"id": 391, "owner": {"id": 933}, "assignee": {"id": 1032}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 369, "assignee": {"id": 591}, "organization": {"id": 114}, "project": {"id": 376, "owner": {"id": 730}, "assignee": {"id": 56}}, "task": {"id": 313, "owner": {"id": 909}, "assignee": {"id": 1064}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "assignee": {"id": 530}, "organization": {"id": 626}, "project": {"id": 341, "owner": {"id": 773}, "assignee": {"id": 82}}, "task": {"id": 387, "owner": {"id": 953}, "assignee": {"id": 1009}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 318, "assignee": {"id": 503}, "organization": {"id": 137}, "project": {"id": 377, "owner": {"id": 746}, "assignee": {"id": 60}}, "task": {"id": 352, "owner": {"id": 983}, "assignee": {"id": 1047}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 303, "assignee": {"id": 520}, "organization": {"id": 647}, "project": {"id": 305, "owner": {"id": 737}, "assignee": {"id": 77}}, "task": {"id": 375, "owner": {"id": 903}, "assignee": {"id": 1013}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 365, "assignee": {"id": 591}, "organization": {"id": 174}, "project": {"id": 394, "owner": {"id": 765}, "assignee": {"id": 48}}, "task": {"id": 391, "owner": {"id": 944}, "assignee": {"id": 1027}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 384, "assignee": {"id": 592}, "organization": {"id": 619}, "project": {"id": 348, "owner": {"id": 797}, "assignee": {"id": 72}}, "task": {"id": 310, "owner": {"id": 909}, "assignee": {"id": 1028}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 380, "assignee": {"id": 570}, "organization": {"id": 160}, "project": {"id": 353, "owner": {"id": 768}, "assignee": {"id": 77}}, "task": {"id": 315, "owner": {"id": 967}, "assignee": {"id": 1006}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 367, "assignee": {"id": 566}, "organization": {"id": 656}, "project": {"id": 340, "owner": {"id": 734}, "assignee": {"id": 42}}, "task": {"id": 373, "owner": {"id": 937}, "assignee": {"id": 1031}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "assignee": {"id": 529}, "organization": {"id": 152}, "project": {"id": 340, "owner": {"id": 795}, "assignee": {"id": 93}}, "task": {"id": 388, "owner": {"id": 930}, "assignee": {"id": 1056}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "assignee": {"id": 545}, "organization": {"id": 671}, "project": {"id": 364, "owner": {"id": 709}, "assignee": {"id": 29}}, "task": {"id": 383, "owner": {"id": 961}, "assignee": {"id": 1077}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "assignee": {"id": 572}, "organization": {"id": 117}, "project": {"id": 368, "owner": {"id": 731}, "assignee": {"id": 85}}, "task": {"id": 352, "owner": {"id": 986}, "assignee": {"id": 1074}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "assignee": {"id": 536}, "organization": {"id": 643}, "project": {"id": 340, "owner": {"id": 715}, "assignee": {"id": 18}}, "task": {"id": 352, "owner": {"id": 953}, "assignee": {"id": 1064}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"id": 380, "assignee": {"id": 598}, "organization": {"id": 197}, "project": {"id": 323, "owner": {"id": 758}, "assignee": {"id": 33}}, "task": {"id": 321, "owner": {"id": 915}, "assignee": {"id": 1053}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 391, "assignee": {"id": 560}, "organization": {"id": 695}, "project": {"id": 312, "owner": {"id": 716}, "assignee": {"id": 21}}, "task": {"id": 355, "owner": {"id": 903}, "assignee": {"id": 1088}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 365, "assignee": {"id": 567}, "organization": {"id": 191}, "project": {"id": 354, "owner": {"id": 745}, "assignee": {"id": 30}}, "task": {"id": 351, "owner": {"id": 989}, "assignee": {"id": 1071}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 315, "assignee": {"id": 543}, "organization": {"id": 643}, "project": {"id": 375, "owner": {"id": 777}, "assignee": {"id": 9}}, "task": {"id": 313, "owner": {"id": 992}, "assignee": {"id": 1005}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 357, "assignee": {"id": 552}, "organization": {"id": 117}, "project": {"id": 357, "owner": {"id": 794}, "assignee": {"id": 89}}, "task": {"id": 337, "owner": {"id": 996}, "assignee": {"id": 1061}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 323, "assignee": {"id": 592}, "organization": {"id": 698}, "project": {"id": 375, "owner": {"id": 765}, "assignee": {"id": 75}}, "task": {"id": 319, "owner": {"id": 900}, "assignee": {"id": 1075}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "assignee": {"id": 558}, "organization": {"id": 198}, "project": {"id": 341, "owner": {"id": 756}, "assignee": {"id": 35}}, "task": {"id": 365, "owner": {"id": 992}, "assignee": {"id": 1075}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "assignee": {"id": 538}, "organization": {"id": 663}, "project": {"id": 343, "owner": {"id": 706}, "assignee": {"id": 65}}, "task": {"id": 366, "owner": {"id": 967}, "assignee": {"id": 1074}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "assignee": {"id": 549}, "organization": {"id": 155}, "project": {"id": 396, "owner": {"id": 722}, "assignee": {"id": 26}}, "task": {"id": 305, "owner": {"id": 994}, "assignee": {"id": 1093}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "assignee": {"id": 573}, "organization": {"id": 678}, "project": {"id": 340, "owner": {"id": 712}, "assignee": {"id": 36}}, "task": {"id": 336, "owner": {"id": 921}, "assignee": {"id": 1015}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 356, "assignee": {"id": 528}, "organization": {"id": 135}, "project": {"id": 336, "owner": {"id": 733}, "assignee": {"id": 85}}, "task": {"id": 396, "owner": {"id": 913}, "assignee": {"id": 1029}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 312, "assignee": {"id": 526}, "organization": {"id": 670}, "project": {"id": 365, "owner": {"id": 796}, "assignee": {"id": 69}}, "task": {"id": 303, "owner": {"id": 976}, "assignee": {"id": 1005}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 300, "assignee": {"id": 562}, "organization": {"id": 166}, "project": {"id": 347, "owner": {"id": 726}, "assignee": {"id": 56}}, "task": {"id": 373, "owner": {"id": 954}, "assignee": {"id": 1093}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 358, "assignee": {"id": 537}, "organization": {"id": 614}, "project": {"id": 391, "owner": {"id": 790}, "assignee": {"id": 33}}, "task": {"id": 356, "owner": {"id": 955}, "assignee": {"id": 1063}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 335, "assignee": {"id": 593}, "organization": {"id": 141}, "project": {"id": 314, "owner": {"id": 745}, "assignee": {"id": 9}}, "task": {"id": 395, "owner": {"id": 928}, "assignee": {"id": 1093}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 364, "assignee": {"id": 542}, "organization": {"id": 635}, "project": {"id": 358, "owner": {"id": 780}, "assignee": {"id": 9}}, "task": {"id": 365, "owner": {"id": 986}, "assignee": {"id": 1099}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "assignee": {"id": 504}, "organization": {"id": 180}, "project": {"id": 312, "owner": {"id": 790}, "assignee": {"id": 84}}, "task": {"id": 340, "owner": {"id": 924}, "assignee": {"id": 1071}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "assignee": {"id": 580}, "organization": {"id": 601}, "project": {"id": 331, "owner": {"id": 717}, "assignee": {"id": 25}}, "task": {"id": 348, "owner": {"id": 928}, "assignee": {"id": 1086}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "assignee": {"id": 562}, "organization": {"id": 166}, "project": {"id": 393, "owner": {"id": 763}, "assignee": {"id": 11}}, "task": {"id": 316, "owner": {"id": 925}, "assignee": {"id": 1081}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "assignee": {"id": 527}, "organization": {"id": 600}, "project": {"id": 355, "owner": {"id": 708}, "assignee": {"id": 90}}, "task": {"id": 371, "owner": {"id": 978}, "assignee": {"id": 1026}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 353, "assignee": {"id": 588}, "organization": {"id": 161}, "project": {"id": 378, "owner": {"id": 748}, "assignee": {"id": 44}}, "task": {"id": 374, "owner": {"id": 930}, "assignee": {"id": 1081}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 384, "assignee": {"id": 523}, "organization": {"id": 638}, "project": {"id": 329, "owner": {"id": 737}, "assignee": {"id": 50}}, "task": {"id": 362, "owner": {"id": 962}, "assignee": {"id": 1080}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 369, "assignee": {"id": 561}, "organization": {"id": 157}, "project": {"id": 312, "owner": {"id": 728}, "assignee": {"id": 53}}, "task": {"id": 396, "owner": {"id": 997}, "assignee": {"id": 1036}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 331, "assignee": {"id": 584}, "organization": {"id": 654}, "project": {"id": 314, "owner": {"id": 722}, "assignee": {"id": 44}}, "task": {"id": 340, "owner": {"id": 984}, "assignee": {"id": 1014}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 390, "assignee": {"id": 516}, "organization": {"id": 137}, "project": {"id": 361, "owner": {"id": 762}, "assignee": {"id": 3}}, "task": {"id": 352, "owner": {"id": 987}, "assignee": {"id": 1030}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 364, "assignee": {"id": 527}, "organization": {"id": 652}, "project": {"id": 307, "owner": {"id": 771}, "assignee": {"id": 40}}, "task": {"id": 341, "owner": {"id": 933}, "assignee": {"id": 1086}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "assignee": {"id": 554}, "organization": {"id": 181}, "project": {"id": 333, "owner": {"id": 706}, "assignee": {"id": 43}}, "task": {"id": 362, "owner": {"id": 993}, "assignee": {"id": 1028}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "assignee": {"id": 557}, "organization": {"id": 652}, "project": {"id": 328, "owner": {"id": 773}, "assignee": {"id": 80}}, "task": {"id": 368, "owner": {"id": 926}, "assignee": {"id": 1099}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "assignee": {"id": 542}, "organization": {"id": 199}, "project": {"id": 377, "owner": {"id": 769}, "assignee": {"id": 11}}, "task": {"id": 392, "owner": {"id": 902}, "assignee": {"id": 1048}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "assignee": {"id": 545}, "organization": {"id": 698}, "project": {"id": 398, "owner": {"id": 770}, "assignee": {"id": 26}}, "task": {"id": 383, "owner": {"id": 906}, "assignee": {"id": 1066}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 325, "assignee": {"id": 520}, "organization": {"id": 152}, "project": {"id": 350, "owner": {"id": 791}, "assignee": {"id": 42}}, "task": {"id": 337, "owner": {"id": 920}, "assignee": {"id": 1047}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 370, "assignee": {"id": 593}, "organization": {"id": 631}, "project": {"id": 301, "owner": {"id": 704}, "assignee": {"id": 64}}, "task": {"id": 396, "owner": {"id": 967}, "assignee": {"id": 1013}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 305, "assignee": {"id": 520}, "organization": {"id": 104}, "project": {"id": 338, "owner": {"id": 703}, "assignee": {"id": 31}}, "task": {"id": 380, "owner": {"id": 998}, "assignee": {"id": 1088}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 395, "assignee": {"id": 515}, "organization": {"id": 648}, "project": {"id": 383, "owner": {"id": 751}, "assignee": {"id": 9}}, "task": {"id": 394, "owner": {"id": 934}, "assignee": {"id": 1010}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 392, "assignee": {"id": 590}, "organization": {"id": 119}, "project": {"id": 393, "owner": {"id": 753}, "assignee": {"id": 802}}, "task": {"id": 301, "owner": {"id": 77}, "assignee": {"id": 1069}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 394, "assignee": {"id": 575}, "organization": {"id": 650}, "project": {"id": 324, "owner": {"id": 777}, "assignee": {"id": 839}}, "task": {"id": 341, "owner": {"id": 95}, "assignee": {"id": 1065}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "assignee": {"id": 558}, "organization": {"id": 154}, "project": {"id": 312, "owner": {"id": 733}, "assignee": {"id": 883}}, "task": {"id": 373, "owner": {"id": 37}, "assignee": {"id": 1048}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "assignee": {"id": 552}, "organization": {"id": 671}, "project": {"id": 335, "owner": {"id": 761}, "assignee": {"id": 836}}, "task": {"id": 389, "owner": {"id": 31}, "assignee": {"id": 1064}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "assignee": {"id": 593}, "organization": {"id": 173}, "project": {"id": 347, "owner": {"id": 797}, "assignee": {"id": 869}}, "task": {"id": 391, "owner": {"id": 28}, "assignee": {"id": 1057}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "assignee": {"id": 598}, "organization": {"id": 629}, "project": {"id": 357, "owner": {"id": 747}, "assignee": {"id": 861}}, "task": {"id": 372, "owner": {"id": 39}, "assignee": {"id": 1082}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 380, "assignee": {"id": 510}, "organization": {"id": 118}, "project": {"id": 371, "owner": {"id": 721}, "assignee": {"id": 826}}, "task": {"id": 362, "owner": {"id": 10}, "assignee": {"id": 1031}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 378, "assignee": {"id": 560}, "organization": {"id": 666}, "project": {"id": 392, "owner": {"id": 772}, "assignee": {"id": 897}}, "task": {"id": 329, "owner": {"id": 63}, "assignee": {"id": 1098}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 339, "assignee": {"id": 594}, "organization": {"id": 100}, "project": {"id": 319, "owner": {"id": 704}, "assignee": {"id": 841}}, "task": {"id": 388, "owner": {"id": 52}, "assignee": {"id": 1076}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 388, "assignee": {"id": 526}, "organization": {"id": 696}, "project": {"id": 371, "owner": {"id": 762}, "assignee": {"id": 869}}, "task": {"id": 363, "owner": {"id": 30}, "assignee": {"id": 1083}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 390, "assignee": {"id": 561}, "organization": {"id": 109}, "project": {"id": 371, "owner": {"id": 794}, "assignee": {"id": 893}}, "task": {"id": 310, "owner": {"id": 89}, "assignee": {"id": 1054}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 316, "assignee": {"id": 596}, "organization": {"id": 601}, "project": {"id": 320, "owner": {"id": 766}, "assignee": {"id": 895}}, "task": {"id": 315, "owner": {"id": 56}, "assignee": {"id": 1025}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "assignee": {"id": 563}, "organization": {"id": 151}, "project": {"id": 380, "owner": {"id": 767}, "assignee": {"id": 862}}, "task": {"id": 317, "owner": {"id": 53}, "assignee": {"id": 1070}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "assignee": {"id": 515}, "organization": {"id": 655}, "project": {"id": 337, "owner": {"id": 792}, "assignee": {"id": 886}}, "task": {"id": 334, "owner": {"id": 78}, "assignee": {"id": 1041}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "assignee": {"id": 521}, "organization": {"id": 166}, "project": {"id": 337, "owner": {"id": 766}, "assignee": {"id": 887}}, "task": {"id": 326, "owner": {"id": 47}, "assignee": {"id": 1091}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "assignee": {"id": 560}, "organization": {"id": 659}, "project": {"id": 326, "owner": {"id": 742}, "assignee": {"id": 895}}, "task": {"id": 392, "owner": {"id": 67}, "assignee": {"id": 1021}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 301, "assignee": {"id": 540}, "organization": {"id": 124}, "project": {"id": 322, "owner": {"id": 719}, "assignee": {"id": 860}}, "task": {"id": 308, "owner": {"id": 89}, "assignee": {"id": 1039}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 388, "assignee": {"id": 512}, "organization": {"id": 668}, "project": {"id": 358, "owner": {"id": 742}, "assignee": {"id": 812}}, "task": {"id": 307, "owner": {"id": 76}, "assignee": {"id": 1059}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 344, "assignee": {"id": 581}, "organization": {"id": 154}, "project": {"id": 328, "owner": {"id": 744}, "assignee": {"id": 880}}, "task": {"id": 301, "owner": {"id": 36}, "assignee": {"id": 1035}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 393, "assignee": {"id": 539}, "organization": {"id": 647}, "project": {"id": 379, "owner": {"id": 798}, "assignee": {"id": 851}}, "task": {"id": 332, "owner": {"id": 82}, "assignee": {"id": 1069}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 309, "assignee": {"id": 575}, "organization": {"id": 113}, "project": {"id": 313, "owner": {"id": 793}, "assignee": {"id": 827}}, "task": {"id": 335, "owner": {"id": 72}, "assignee": {"id": 1033}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 366, "assignee": {"id": 575}, "organization": {"id": 682}, "project": {"id": 398, "owner": {"id": 749}, "assignee": {"id": 842}}, "task": {"id": 373, "owner": {"id": 77}, "assignee": {"id": 1075}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "assignee": {"id": 585}, "organization": {"id": 118}, "project": {"id": 326, "owner": {"id": 721}, "assignee": {"id": 800}}, "task": {"id": 329, "owner": {"id": 78}, "assignee": {"id": 1011}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 321, "assignee": {"id": 560}, "organization": {"id": 600}, "project": {"id": 341, "owner": {"id": 709}, "assignee": {"id": 806}}, "task": {"id": 317, "owner": {"id": 54}, "assignee": {"id": 1056}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "assignee": {"id": 538}, "organization": {"id": 149}, "project": {"id": 397, "owner": {"id": 715}, "assignee": {"id": 830}}, "task": {"id": 371, "owner": {"id": 99}, "assignee": {"id": 1048}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "assignee": {"id": 545}, "organization": {"id": 639}, "project": {"id": 366, "owner": {"id": 740}, "assignee": {"id": 867}}, "task": {"id": 310, "owner": {"id": 21}, "assignee": {"id": 1027}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 391, "assignee": {"id": 518}, "organization": {"id": 171}, "project": {"id": 371, "owner": {"id": 756}, "assignee": {"id": 862}}, "task": {"id": 388, "owner": {"id": 15}, "assignee": {"id": 1087}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 383, "assignee": {"id": 544}, "organization": {"id": 622}, "project": {"id": 303, "owner": {"id": 746}, "assignee": {"id": 859}}, "task": {"id": 398, "owner": {"id": 93}, "assignee": {"id": 1044}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"id": 378, "assignee": {"id": 571}, "organization": {"id": 146}, "project": {"id": 348, "owner": {"id": 747}, "assignee": {"id": 822}}, "task": {"id": 395, "owner": {"id": 56}, "assignee": {"id": 1025}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 324, "assignee": {"id": 500}, "organization": {"id": 675}, "project": {"id": 339, "owner": {"id": 742}, "assignee": {"id": 812}}, "task": {"id": 347, "owner": {"id": 1}, "assignee": {"id": 1064}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 304, "assignee": {"id": 582}, "organization": {"id": 135}, "project": {"id": 382, "owner": {"id": 761}, "assignee": {"id": 850}}, "task": {"id": 305, "owner": {"id": 32}, "assignee": {"id": 1090}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 307, "assignee": {"id": 573}, "organization": {"id": 603}, "project": {"id": 391, "owner": {"id": 760}, "assignee": {"id": 877}}, "task": {"id": 380, "owner": {"id": 22}, "assignee": {"id": 1062}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "assignee": {"id": 596}, "organization": {"id": 190}, "project": {"id": 313, "owner": {"id": 704}, "assignee": {"id": 847}}, "task": {"id": 303, "owner": {"id": 19}, "assignee": {"id": 1091}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "assignee": {"id": 516}, "organization": {"id": 610}, "project": {"id": 353, "owner": {"id": 715}, "assignee": {"id": 807}}, "task": {"id": 356, "owner": {"id": 7}, "assignee": {"id": 1090}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 369, "assignee": {"id": 535}, "organization": {"id": 190}, "project": {"id": 383, "owner": {"id": 778}, "assignee": {"id": 894}}, "task": {"id": 302, "owner": {"id": 40}, "assignee": {"id": 1086}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "assignee": {"id": 592}, "organization": {"id": 646}, "project": {"id": 366, "owner": {"id": 701}, "assignee": {"id": 885}}, "task": {"id": 351, "owner": {"id": 85}, "assignee": {"id": 1085}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 324, "assignee": {"id": 597}, "organization": {"id": 135}, "project": {"id": 318, "owner": {"id": 793}, "assignee": {"id": 834}}, "task": {"id": 310, "owner": {"id": 5}, "assignee": {"id": 1056}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 325, "assignee": {"id": 588}, "organization": {"id": 664}, "project": {"id": 352, "owner": {"id": 722}, "assignee": {"id": 881}}, "task": {"id": 395, "owner": {"id": 35}, "assignee": {"id": 1039}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 315, "assignee": {"id": 543}, "organization": {"id": 111}, "project": {"id": 372, "owner": {"id": 789}, "assignee": {"id": 811}}, "task": {"id": 372, "owner": {"id": 14}, "assignee": {"id": 1011}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 393, "assignee": {"id": 511}, "organization": {"id": 623}, "project": {"id": 340, "owner": {"id": 775}, "assignee": {"id": 880}}, "task": {"id": 302, "owner": {"id": 1}, "assignee": {"id": 1021}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 347, "assignee": {"id": 558}, "organization": {"id": 196}, "project": {"id": 392, "owner": {"id": 731}, "assignee": {"id": 839}}, "task": {"id": 387, "owner": {"id": 95}, "assignee": {"id": 1024}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 316, "assignee": {"id": 539}, "organization": {"id": 606}, "project": {"id": 348, "owner": {"id": 790}, "assignee": {"id": 836}}, "task": {"id": 322, "owner": {"id": 72}, "assignee": {"id": 1017}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "assignee": {"id": 524}, "organization": {"id": 111}, "project": {"id": 325, "owner": {"id": 722}, "assignee": {"id": 837}}, "task": {"id": 333, "owner": {"id": 33}, "assignee": {"id": 1056}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "assignee": {"id": 574}, "organization": {"id": 646}, "project": {"id": 344, "owner": {"id": 798}, "assignee": {"id": 882}}, "task": {"id": 366, "owner": {"id": 87}, "assignee": {"id": 1080}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "assignee": {"id": 549}, "organization": {"id": 187}, "project": {"id": 368, "owner": {"id": 772}, "assignee": {"id": 826}}, "task": {"id": 389, "owner": {"id": 82}, "assignee": {"id": 1044}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "assignee": {"id": 543}, "organization": {"id": 689}, "project": {"id": 364, "owner": {"id": 770}, "assignee": {"id": 895}}, "task": {"id": 334, "owner": {"id": 98}, "assignee": {"id": 1065}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 327, "assignee": {"id": 559}, "organization": {"id": 117}, "project": {"id": 304, "owner": {"id": 714}, "assignee": {"id": 866}}, "task": {"id": 384, "owner": {"id": 60}, "assignee": {"id": 1023}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 375, "assignee": {"id": 541}, "organization": {"id": 647}, "project": {"id": 372, "owner": {"id": 748}, "assignee": {"id": 884}}, "task": {"id": 375, "owner": {"id": 89}, "assignee": {"id": 1041}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 345, "assignee": {"id": 501}, "organization": {"id": 145}, "project": {"id": 353, "owner": {"id": 760}, "assignee": {"id": 842}}, "task": {"id": 343, "owner": {"id": 23}, "assignee": {"id": 1012}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 320, "assignee": {"id": 559}, "organization": {"id": 669}, "project": {"id": 323, "owner": {"id": 796}, "assignee": {"id": 802}}, "task": {"id": 356, "owner": {"id": 75}, "assignee": {"id": 1058}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 355, "assignee": {"id": 593}, "organization": {"id": 161}, "project": {"id": 360, "owner": {"id": 731}, "assignee": {"id": 832}}, "task": {"id": 392, "owner": {"id": 947}, "assignee": {"id": 43}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 351, "assignee": {"id": 538}, "organization": {"id": 605}, "project": {"id": 329, "owner": {"id": 797}, "assignee": {"id": 864}}, "task": {"id": 313, "owner": {"id": 953}, "assignee": {"id": 99}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "assignee": {"id": 575}, "organization": {"id": 125}, "project": {"id": 320, "owner": {"id": 765}, "assignee": {"id": 821}}, "task": {"id": 338, "owner": {"id": 976}, "assignee": {"id": 67}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "assignee": {"id": 517}, "organization": {"id": 616}, "project": {"id": 384, "owner": {"id": 742}, "assignee": {"id": 806}}, "task": {"id": 311, "owner": {"id": 939}, "assignee": {"id": 18}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "assignee": {"id": 521}, "organization": {"id": 110}, "project": {"id": 300, "owner": {"id": 784}, "assignee": {"id": 818}}, "task": {"id": 325, "owner": {"id": 922}, "assignee": {"id": 39}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "assignee": {"id": 526}, "organization": {"id": 655}, "project": {"id": 311, "owner": {"id": 792}, "assignee": {"id": 831}}, "task": {"id": 319, "owner": {"id": 987}, "assignee": {"id": 99}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 361, "assignee": {"id": 520}, "organization": {"id": 160}, "project": {"id": 312, "owner": {"id": 760}, "assignee": {"id": 870}}, "task": {"id": 387, "owner": {"id": 950}, "assignee": {"id": 27}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 348, "assignee": {"id": 559}, "organization": {"id": 690}, "project": {"id": 331, "owner": {"id": 797}, "assignee": {"id": 812}}, "task": {"id": 349, "owner": {"id": 916}, "assignee": {"id": 97}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 398, "assignee": {"id": 541}, "organization": {"id": 144}, "project": {"id": 386, "owner": {"id": 793}, "assignee": {"id": 854}}, "task": {"id": 376, "owner": {"id": 950}, "assignee": {"id": 9}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 385, "assignee": {"id": 594}, "organization": {"id": 675}, "project": {"id": 303, "owner": {"id": 728}, "assignee": {"id": 877}}, "task": {"id": 322, "owner": {"id": 998}, "assignee": {"id": 47}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 364, "assignee": {"id": 500}, "organization": {"id": 163}, "project": {"id": 376, "owner": {"id": 796}, "assignee": {"id": 850}}, "task": {"id": 309, "owner": {"id": 982}, "assignee": {"id": 17}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 305, "assignee": {"id": 527}, "organization": {"id": 638}, "project": {"id": 355, "owner": {"id": 711}, "assignee": {"id": 843}}, "task": {"id": 349, "owner": {"id": 983}, "assignee": {"id": 54}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "assignee": {"id": 549}, "organization": {"id": 187}, "project": {"id": 361, "owner": {"id": 704}, "assignee": {"id": 833}}, "task": {"id": 353, "owner": {"id": 922}, "assignee": {"id": 50}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "assignee": {"id": 559}, "organization": {"id": 610}, "project": {"id": 344, "owner": {"id": 787}, "assignee": {"id": 893}}, "task": {"id": 312, "owner": {"id": 983}, "assignee": {"id": 1}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "assignee": {"id": 573}, "organization": {"id": 151}, "project": {"id": 349, "owner": {"id": 787}, "assignee": {"id": 858}}, "task": {"id": 301, "owner": {"id": 962}, "assignee": {"id": 85}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "assignee": {"id": 506}, "organization": {"id": 638}, "project": {"id": 354, "owner": {"id": 733}, "assignee": {"id": 894}}, "task": {"id": 381, "owner": {"id": 914}, "assignee": {"id": 57}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 399, "assignee": {"id": 560}, "organization": {"id": 197}, "project": {"id": 342, "owner": {"id": 768}, "assignee": {"id": 846}}, "task": {"id": 314, "owner": {"id": 922}, "assignee": {"id": 68}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 386, "assignee": {"id": 510}, "organization": {"id": 619}, "project": {"id": 300, "owner": {"id": 743}, "assignee": {"id": 890}}, "task": {"id": 375, "owner": {"id": 933}, "assignee": {"id": 65}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 358, "assignee": {"id": 555}, "organization": {"id": 106}, "project": {"id": 359, "owner": {"id": 736}, "assignee": {"id": 805}}, "task": {"id": 315, "owner": {"id": 962}, "assignee": {"id": 46}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 387, "assignee": {"id": 547}, "organization": {"id": 632}, "project": {"id": 354, "owner": {"id": 743}, "assignee": {"id": 886}}, "task": {"id": 337, "owner": {"id": 998}, "assignee": {"id": 69}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 337, "assignee": {"id": 545}, "organization": {"id": 114}, "project": {"id": 302, "owner": {"id": 757}, "assignee": {"id": 841}}, "task": {"id": 338, "owner": {"id": 981}, "assignee": {"id": 76}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 393, "assignee": {"id": 504}, "organization": {"id": 668}, "project": {"id": 394, "owner": {"id": 750}, "assignee": {"id": 831}}, "task": {"id": 322, "owner": {"id": 910}, "assignee": {"id": 12}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "assignee": {"id": 581}, "organization": {"id": 193}, "project": {"id": 355, "owner": {"id": 735}, "assignee": {"id": 844}}, "task": {"id": 358, "owner": {"id": 988}, "assignee": {"id": 31}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 372, "assignee": {"id": 558}, "organization": {"id": 605}, "project": {"id": 309, "owner": {"id": 741}, "assignee": {"id": 847}}, "task": {"id": 304, "owner": {"id": 918}, "assignee": {"id": 92}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 348, "assignee": {"id": 565}, "organization": {"id": 102}, "project": {"id": 310, "owner": {"id": 743}, "assignee": {"id": 881}}, "task": {"id": 395, "owner": {"id": 938}, "assignee": {"id": 51}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "assignee": {"id": 532}, "organization": {"id": 692}, "project": {"id": 383, "owner": {"id": 795}, "assignee": {"id": 810}}, "task": {"id": 355, "owner": {"id": 914}, "assignee": {"id": 73}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 378, "assignee": {"id": 565}, "organization": {"id": 197}, "project": {"id": 331, "owner": {"id": 788}, "assignee": {"id": 806}}, "task": {"id": 347, "owner": {"id": 973}, "assignee": {"id": 27}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 335, "assignee": {"id": 595}, "organization": {"id": 688}, "project": {"id": 399, "owner": {"id": 723}, "assignee": {"id": 835}}, "task": {"id": 364, "owner": {"id": 985}, "assignee": {"id": 77}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 386, "assignee": {"id": 536}, "organization": {"id": 135}, "project": {"id": 300, "owner": {"id": 752}, "assignee": {"id": 826}}, "task": {"id": 302, "owner": {"id": 953}, "assignee": {"id": 16}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 359, "assignee": {"id": 576}, "organization": {"id": 681}, "project": {"id": 340, "owner": {"id": 712}, "assignee": {"id": 828}}, "task": {"id": 328, "owner": {"id": 902}, "assignee": {"id": 41}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 378, "assignee": {"id": 536}, "organization": {"id": 142}, "project": {"id": 391, "owner": {"id": 777}, "assignee": {"id": 858}}, "task": {"id": 375, "owner": {"id": 953}, "assignee": {"id": 76}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 349, "assignee": {"id": 560}, "organization": {"id": 671}, "project": {"id": 301, "owner": {"id": 743}, "assignee": {"id": 843}}, "task": {"id": 340, "owner": {"id": 944}, "assignee": {"id": 19}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "assignee": {"id": 526}, "organization": {"id": 184}, "project": {"id": 389, "owner": {"id": 721}, "assignee": {"id": 886}}, "task": {"id": 349, "owner": {"id": 932}, "assignee": {"id": 4}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "assignee": {"id": 580}, "organization": {"id": 662}, "project": {"id": 371, "owner": {"id": 744}, "assignee": {"id": 810}}, "task": {"id": 326, "owner": {"id": 995}, "assignee": {"id": 47}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "assignee": {"id": 540}, "organization": {"id": 179}, "project": {"id": 386, "owner": {"id": 759}, "assignee": {"id": 803}}, "task": {"id": 319, "owner": {"id": 979}, "assignee": {"id": 21}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "assignee": {"id": 555}, "organization": {"id": 653}, "project": {"id": 397, "owner": {"id": 702}, "assignee": {"id": 896}}, "task": {"id": 336, "owner": {"id": 971}, "assignee": {"id": 62}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 368, "assignee": {"id": 516}, "organization": {"id": 173}, "project": {"id": 377, "owner": {"id": 715}, "assignee": {"id": 812}}, "task": {"id": 350, "owner": {"id": 927}, "assignee": {"id": 14}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 322, "assignee": {"id": 520}, "organization": {"id": 698}, "project": {"id": 399, "owner": {"id": 794}, "assignee": {"id": 851}}, "task": {"id": 370, "owner": {"id": 952}, "assignee": {"id": 96}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 376, "assignee": {"id": 535}, "organization": {"id": 197}, "project": {"id": 398, "owner": {"id": 746}, "assignee": {"id": 880}}, "task": {"id": 313, "owner": {"id": 985}, "assignee": {"id": 81}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 340, "assignee": {"id": 564}, "organization": {"id": 668}, "project": {"id": 368, "owner": {"id": 750}, "assignee": {"id": 828}}, "task": {"id": 351, "owner": {"id": 963}, "assignee": {"id": 59}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 320, "assignee": {"id": 522}, "organization": {"id": 122}, "project": {"id": 336, "owner": {"id": 700}, "assignee": {"id": 868}}, "task": {"id": 342, "owner": {"id": 997}, "assignee": {"id": 83}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 312, "assignee": {"id": 549}, "organization": {"id": 674}, "project": {"id": 383, "owner": {"id": 753}, "assignee": {"id": 853}}, "task": {"id": 352, "owner": {"id": 924}, "assignee": {"id": 3}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "assignee": {"id": 578}, "organization": {"id": 141}, "project": {"id": 364, "owner": {"id": 710}, "assignee": {"id": 876}}, "task": {"id": 373, "owner": {"id": 993}, "assignee": {"id": 2}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "assignee": {"id": 521}, "organization": {"id": 672}, "project": {"id": 380, "owner": {"id": 760}, "assignee": {"id": 887}}, "task": {"id": 311, "owner": {"id": 947}, "assignee": {"id": 95}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "assignee": {"id": 570}, "organization": {"id": 160}, "project": {"id": 324, "owner": {"id": 720}, "assignee": {"id": 858}}, "task": {"id": 347, "owner": {"id": 992}, "assignee": {"id": 22}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "assignee": {"id": 541}, "organization": {"id": 616}, "project": {"id": 337, "owner": {"id": 708}, "assignee": {"id": 803}}, "task": {"id": 326, "owner": {"id": 973}, "assignee": {"id": 58}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 377, "assignee": {"id": 556}, "organization": {"id": 120}, "project": {"id": 322, "owner": {"id": 759}, "assignee": {"id": 864}}, "task": {"id": 382, "owner": {"id": 914}, "assignee": {"id": 42}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 359, "assignee": {"id": 592}, "organization": {"id": 608}, "project": {"id": 300, "owner": {"id": 795}, "assignee": {"id": 804}}, "task": {"id": 387, "owner": {"id": 986}, "assignee": {"id": 66}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 309, "assignee": {"id": 553}, "organization": {"id": 168}, "project": {"id": 391, "owner": {"id": 768}, "assignee": {"id": 815}}, "task": {"id": 391, "owner": {"id": 999}, "assignee": {"id": 82}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 303, "assignee": {"id": 556}, "organization": {"id": 661}, "project": {"id": 392, "owner": {"id": 707}, "assignee": {"id": 837}}, "task": {"id": 350, "owner": {"id": 992}, "assignee": {"id": 5}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 391, "assignee": {"id": 33}, "organization": {"id": 197}, "project": {"id": 383, "owner": {"id": 756}, "assignee": {"id": 854}}, "task": {"id": 315, "owner": {"id": 913}, "assignee": {"id": 1018}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 396, "assignee": {"id": 31}, "organization": {"id": 692}, "project": {"id": 321, "owner": {"id": 746}, "assignee": {"id": 852}}, "task": {"id": 384, "owner": {"id": 943}, "assignee": {"id": 1018}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "assignee": {"id": 96}, "organization": {"id": 131}, "project": {"id": 382, "owner": {"id": 788}, "assignee": {"id": 809}}, "task": {"id": 358, "owner": {"id": 990}, "assignee": {"id": 1062}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "assignee": {"id": 72}, "organization": {"id": 637}, "project": {"id": 388, "owner": {"id": 756}, "assignee": {"id": 842}}, "task": {"id": 357, "owner": {"id": 989}, "assignee": {"id": 1033}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "assignee": {"id": 72}, "organization": {"id": 146}, "project": {"id": 318, "owner": {"id": 766}, "assignee": {"id": 836}}, "task": {"id": 303, "owner": {"id": 928}, "assignee": {"id": 1047}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "assignee": {"id": 56}, "organization": {"id": 691}, "project": {"id": 320, "owner": {"id": 772}, "assignee": {"id": 881}}, "task": {"id": 339, "owner": {"id": 960}, "assignee": {"id": 1091}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 319, "assignee": {"id": 81}, "organization": {"id": 129}, "project": {"id": 316, "owner": {"id": 718}, "assignee": {"id": 877}}, "task": {"id": 337, "owner": {"id": 949}, "assignee": {"id": 1032}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 327, "assignee": {"id": 65}, "organization": {"id": 638}, "project": {"id": 318, "owner": {"id": 774}, "assignee": {"id": 801}}, "task": {"id": 333, "owner": {"id": 946}, "assignee": {"id": 1092}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 351, "assignee": {"id": 40}, "organization": {"id": 166}, "project": {"id": 321, "owner": {"id": 744}, "assignee": {"id": 882}}, "task": {"id": 319, "owner": {"id": 975}, "assignee": {"id": 1064}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 348, "assignee": {"id": 1}, "organization": {"id": 682}, "project": {"id": 321, "owner": {"id": 767}, "assignee": {"id": 861}}, "task": {"id": 322, "owner": {"id": 961}, "assignee": {"id": 1048}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 343, "assignee": {"id": 93}, "organization": {"id": 115}, "project": {"id": 326, "owner": {"id": 728}, "assignee": {"id": 819}}, "task": {"id": 335, "owner": {"id": 977}, "assignee": {"id": 1099}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 325, "assignee": {"id": 29}, "organization": {"id": 663}, "project": {"id": 358, "owner": {"id": 772}, "assignee": {"id": 881}}, "task": {"id": 301, "owner": {"id": 995}, "assignee": {"id": 1067}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "assignee": {"id": 34}, "organization": {"id": 170}, "project": {"id": 351, "owner": {"id": 780}, "assignee": {"id": 812}}, "task": {"id": 342, "owner": {"id": 964}, "assignee": {"id": 1008}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "assignee": {"id": 32}, "organization": {"id": 610}, "project": {"id": 307, "owner": {"id": 757}, "assignee": {"id": 872}}, "task": {"id": 366, "owner": {"id": 931}, "assignee": {"id": 1031}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "assignee": {"id": 77}, "organization": {"id": 134}, "project": {"id": 329, "owner": {"id": 788}, "assignee": {"id": 891}}, "task": {"id": 358, "owner": {"id": 922}, "assignee": {"id": 1005}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "assignee": {"id": 7}, "organization": {"id": 695}, "project": {"id": 324, "owner": {"id": 793}, "assignee": {"id": 808}}, "task": {"id": 316, "owner": {"id": 966}, "assignee": {"id": 1038}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 331, "assignee": {"id": 40}, "organization": {"id": 181}, "project": {"id": 374, "owner": {"id": 761}, "assignee": {"id": 859}}, "task": {"id": 312, "owner": {"id": 968}, "assignee": {"id": 1006}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 325, "assignee": {"id": 75}, "organization": {"id": 614}, "project": {"id": 356, "owner": {"id": 710}, "assignee": {"id": 860}}, "task": {"id": 325, "owner": {"id": 912}, "assignee": {"id": 1069}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 362, "assignee": {"id": 99}, "organization": {"id": 182}, "project": {"id": 301, "owner": {"id": 774}, "assignee": {"id": 855}}, "task": {"id": 314, "owner": {"id": 992}, "assignee": {"id": 1056}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 375, "assignee": {"id": 76}, "organization": {"id": 678}, "project": {"id": 396, "owner": {"id": 758}, "assignee": {"id": 800}}, "task": {"id": 332, "owner": {"id": 996}, "assignee": {"id": 1052}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 380, "assignee": {"id": 33}, "organization": {"id": 168}, "project": {"id": 364, "owner": {"id": 761}, "assignee": {"id": 865}}, "task": {"id": 336, "owner": {"id": 982}, "assignee": {"id": 1038}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 343, "assignee": {"id": 96}, "organization": {"id": 686}, "project": {"id": 371, "owner": {"id": 764}, "assignee": {"id": 839}}, "task": {"id": 380, "owner": {"id": 956}, "assignee": {"id": 1014}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "assignee": {"id": 55}, "organization": {"id": 186}, "project": {"id": 360, "owner": {"id": 763}, "assignee": {"id": 820}}, "task": {"id": 322, "owner": {"id": 908}, "assignee": {"id": 1097}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "assignee": {"id": 13}, "organization": {"id": 643}, "project": {"id": 381, "owner": {"id": 787}, "assignee": {"id": 868}}, "task": {"id": 323, "owner": {"id": 924}, "assignee": {"id": 1099}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "assignee": {"id": 87}, "organization": {"id": 138}, "project": {"id": 339, "owner": {"id": 740}, "assignee": {"id": 898}}, "task": {"id": 367, "owner": {"id": 960}, "assignee": {"id": 1013}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "assignee": {"id": 21}, "organization": {"id": 686}, "project": {"id": 319, "owner": {"id": 741}, "assignee": {"id": 820}}, "task": {"id": 324, "owner": {"id": 998}, "assignee": {"id": 1050}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 384, "assignee": {"id": 92}, "organization": {"id": 134}, "project": {"id": 366, "owner": {"id": 760}, "assignee": {"id": 883}}, "task": {"id": 376, "owner": {"id": 953}, "assignee": {"id": 1099}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 333, "assignee": {"id": 95}, "organization": {"id": 638}, "project": {"id": 347, "owner": {"id": 718}, "assignee": {"id": 839}}, "task": {"id": 342, "owner": {"id": 993}, "assignee": {"id": 1045}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 339, "assignee": {"id": 7}, "organization": {"id": 152}, "project": {"id": 350, "owner": {"id": 797}, "assignee": {"id": 853}}, "task": {"id": 300, "owner": {"id": 997}, "assignee": {"id": 1051}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 382, "assignee": {"id": 84}, "organization": {"id": 658}, "project": {"id": 398, "owner": {"id": 735}, "assignee": {"id": 802}}, "task": {"id": 390, "owner": {"id": 925}, "assignee": {"id": 1026}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 337, "assignee": {"id": 94}, "organization": {"id": 125}, "project": {"id": 341, "owner": {"id": 754}, "assignee": {"id": 848}}, "task": {"id": 341, "owner": {"id": 971}, "assignee": {"id": 1071}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 379, "assignee": {"id": 92}, "organization": {"id": 656}, "project": {"id": 335, "owner": {"id": 713}, "assignee": {"id": 809}}, "task": {"id": 331, "owner": {"id": 920}, "assignee": {"id": 1041}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "assignee": {"id": 31}, "organization": {"id": 135}, "project": {"id": 399, "owner": {"id": 784}, "assignee": {"id": 849}}, "task": {"id": 388, "owner": {"id": 990}, "assignee": {"id": 1062}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "assignee": {"id": 47}, "organization": {"id": 607}, "project": {"id": 312, "owner": {"id": 707}, "assignee": {"id": 881}}, "task": {"id": 343, "owner": {"id": 935}, "assignee": {"id": 1068}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "assignee": {"id": 19}, "organization": {"id": 119}, "project": {"id": 395, "owner": {"id": 709}, "assignee": {"id": 841}}, "task": {"id": 399, "owner": {"id": 993}, "assignee": {"id": 1052}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "assignee": {"id": 69}, "organization": {"id": 625}, "project": {"id": 371, "owner": {"id": 711}, "assignee": {"id": 856}}, "task": {"id": 331, "owner": {"id": 941}, "assignee": {"id": 1073}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 333, "assignee": {"id": 8}, "organization": {"id": 189}, "project": {"id": 337, "owner": {"id": 788}, "assignee": {"id": 802}}, "task": {"id": 317, "owner": {"id": 998}, "assignee": {"id": 1098}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 394, "assignee": {"id": 59}, "organization": {"id": 646}, "project": {"id": 398, "owner": {"id": 757}, "assignee": {"id": 895}}, "task": {"id": 327, "owner": {"id": 923}, "assignee": {"id": 1041}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 346, "assignee": {"id": 2}, "organization": {"id": 117}, "project": {"id": 386, "owner": {"id": 790}, "assignee": {"id": 833}}, "task": {"id": 332, "owner": {"id": 977}, "assignee": {"id": 1095}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 382, "assignee": {"id": 47}, "organization": {"id": 654}, "project": {"id": 350, "owner": {"id": 762}, "assignee": {"id": 806}}, "task": {"id": 367, "owner": {"id": 907}, "assignee": {"id": 1065}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 355, "assignee": {"id": 81}, "organization": {"id": 108}, "project": {"id": 341, "owner": {"id": 768}, "assignee": {"id": 862}}, "task": {"id": 336, "owner": {"id": 973}, "assignee": {"id": 1042}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 309, "assignee": {"id": 11}, "organization": {"id": 611}, "project": {"id": 371, "owner": {"id": 799}, "assignee": {"id": 814}}, "task": {"id": 368, "owner": {"id": 920}, "assignee": {"id": 1065}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "assignee": {"id": 59}, "organization": {"id": 157}, "project": {"id": 396, "owner": {"id": 709}, "assignee": {"id": 898}}, "task": {"id": 387, "owner": {"id": 955}, "assignee": {"id": 1035}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "assignee": {"id": 67}, "organization": {"id": 642}, "project": {"id": 309, "owner": {"id": 723}, "assignee": {"id": 882}}, "task": {"id": 373, "owner": {"id": 943}, "assignee": {"id": 1058}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "assignee": {"id": 2}, "organization": {"id": 101}, "project": {"id": 351, "owner": {"id": 773}, "assignee": {"id": 837}}, "task": {"id": 300, "owner": {"id": 979}, "assignee": {"id": 1049}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "assignee": {"id": 68}, "organization": {"id": 619}, "project": {"id": 333, "owner": {"id": 728}, "assignee": {"id": 874}}, "task": {"id": 386, "owner": {"id": 998}, "assignee": {"id": 1041}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 385, "assignee": {"id": 98}, "organization": {"id": 118}, "project": {"id": 373, "owner": {"id": 745}, "assignee": {"id": 891}}, "task": {"id": 373, "owner": {"id": 919}, "assignee": {"id": 1024}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 339, "assignee": {"id": 69}, "organization": {"id": 612}, "project": {"id": 303, "owner": {"id": 768}, "assignee": {"id": 877}}, "task": {"id": 305, "owner": {"id": 999}, "assignee": {"id": 1016}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"id": 341, "assignee": {"id": 34}, "organization": {"id": 129}, "project": {"id": 384, "owner": {"id": 726}, "assignee": {"id": 825}}, "task": {"id": 338, "owner": {"id": 920}, "assignee": {"id": 1054}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 398, "assignee": {"id": 95}, "organization": {"id": 603}, "project": {"id": 317, "owner": {"id": 756}, "assignee": {"id": 815}}, "task": {"id": 348, "owner": {"id": 903}, "assignee": {"id": 1056}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 348, "assignee": {"id": 506}, "organization": {"id": 115}, "project": {"id": 356, "owner": {"id": 751}, "assignee": {"id": 825}}, "task": {"id": 326, "owner": {"id": 998}, "assignee": {"id": 1048}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 322, "assignee": {"id": 564}, "organization": {"id": 674}, "project": {"id": 392, "owner": {"id": 766}, "assignee": {"id": 815}}, "task": {"id": 320, "owner": {"id": 996}, "assignee": {"id": 1026}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "assignee": {"id": 545}, "organization": {"id": 161}, "project": {"id": 340, "owner": {"id": 753}, "assignee": {"id": 824}}, "task": {"id": 326, "owner": {"id": 911}, "assignee": {"id": 1064}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "assignee": {"id": 514}, "organization": {"id": 658}, "project": {"id": 302, "owner": {"id": 700}, "assignee": {"id": 848}}, "task": {"id": 353, "owner": {"id": 951}, "assignee": {"id": 1012}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "assignee": {"id": 555}, "organization": {"id": 160}, "project": {"id": 338, "owner": {"id": 729}, "assignee": {"id": 889}}, "task": {"id": 310, "owner": {"id": 983}, "assignee": {"id": 1082}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "assignee": {"id": 593}, "organization": {"id": 682}, "project": {"id": 341, "owner": {"id": 705}, "assignee": {"id": 818}}, "task": {"id": 331, "owner": {"id": 922}, "assignee": {"id": 1072}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 319, "assignee": {"id": 517}, "organization": {"id": 184}, "project": {"id": 360, "owner": {"id": 797}, "assignee": {"id": 804}}, "task": {"id": 307, "owner": {"id": 976}, "assignee": {"id": 1026}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 347, "assignee": {"id": 579}, "organization": {"id": 653}, "project": {"id": 320, "owner": {"id": 753}, "assignee": {"id": 822}}, "task": {"id": 322, "owner": {"id": 966}, "assignee": {"id": 1019}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"id": 346, "assignee": {"id": 514}, "organization": {"id": 133}, "project": {"id": 303, "owner": {"id": 763}, "assignee": {"id": 826}}, "task": {"id": 339, "owner": {"id": 951}, "assignee": {"id": 1080}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 341, "assignee": {"id": 503}, "organization": {"id": 603}, "project": {"id": 342, "owner": {"id": 703}, "assignee": {"id": 860}}, "task": {"id": 304, "owner": {"id": 994}, "assignee": {"id": 1018}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 348, "assignee": {"id": 597}, "organization": {"id": 128}, "project": {"id": 392, "owner": {"id": 767}, "assignee": {"id": 821}}, "task": {"id": 320, "owner": {"id": 912}, "assignee": {"id": 1001}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 353, "assignee": {"id": 508}, "organization": {"id": 614}, "project": {"id": 360, "owner": {"id": 759}, "assignee": {"id": 853}}, "task": {"id": 368, "owner": {"id": 956}, "assignee": {"id": 1017}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "assignee": {"id": 560}, "organization": {"id": 185}, "project": {"id": 332, "owner": {"id": 716}, "assignee": {"id": 841}}, "task": {"id": 384, "owner": {"id": 969}, "assignee": {"id": 1046}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "assignee": {"id": 561}, "organization": {"id": 663}, "project": {"id": 395, "owner": {"id": 773}, "assignee": {"id": 825}}, "task": {"id": 316, "owner": {"id": 928}, "assignee": {"id": 1065}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 31, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "assignee": {"id": 510}, "organization": {"id": 128}, "project": {"id": 312, "owner": {"id": 791}, "assignee": {"id": 851}}, "task": {"id": 336, "owner": {"id": 978}, "assignee": {"id": 1013}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "assignee": {"id": 593}, "organization": {"id": 684}, "project": {"id": 338, "owner": {"id": 742}, "assignee": {"id": 890}}, "task": {"id": 359, "owner": {"id": 985}, "assignee": {"id": 1075}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 94, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 334, "assignee": {"id": 597}, "organization": {"id": 104}, "project": {"id": 341, "owner": {"id": 754}, "assignee": {"id": 847}}, "task": {"id": 384, "owner": {"id": 918}, "assignee": {"id": 1074}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 349, "assignee": {"id": 580}, "organization": {"id": 606}, "project": {"id": 325, "owner": {"id": 723}, "assignee": {"id": 801}}, "task": {"id": 318, "owner": {"id": 981}, "assignee": {"id": 1004}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"id": 341, "assignee": {"id": 501}, "organization": {"id": 157}, "project": {"id": 361, "owner": {"id": 761}, "assignee": {"id": 844}}, "task": {"id": 324, "owner": {"id": 980}, "assignee": {"id": 1073}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 358, "assignee": {"id": 579}, "organization": {"id": 633}, "project": {"id": 369, "owner": {"id": 756}, "assignee": {"id": 815}}, "task": {"id": 395, "owner": {"id": 935}, "assignee": {"id": 1083}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 343, "assignee": {"id": 523}, "organization": {"id": 185}, "project": {"id": 343, "owner": {"id": 762}, "assignee": {"id": 898}}, "task": {"id": 370, "owner": {"id": 958}, "assignee": {"id": 1084}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 397, "assignee": {"id": 566}, "organization": {"id": 633}, "project": {"id": 308, "owner": {"id": 746}, "assignee": {"id": 854}}, "task": {"id": 382, "owner": {"id": 903}, "assignee": {"id": 1069}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:state", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 358, "assignee": {"id": 514}, "organization": {"id": 155}, "project": {"id": 370, "owner": {"id": 791}, "assignee": {"id": 837}}, "task": {"id": 316, "owner": {"id": 944}, "assignee": {"id": 1039}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "assignee": {"id": 564}, "organization": {"id": 623}, "project": {"id": 350, "owner": {"id": 765}, "assignee": {"id": 824}}, "task": {"id": 318, "owner": {"id": 987}, "assignee": {"id": 1028}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "assignee": {"id": 595}, "organization": {"id": 106}, "project": {"id": 367, "owner": {"id": 776}, "assignee": {"id": 899}}, "task": {"id": 319, "owner": {"id": 972}, "assignee": {"id": 1067}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "assignee": {"id": 569}, "organization": {"id": 629}, "project": {"id": 388, "owner": {"id": 767}, "assignee": {"id": 821}}, "task": {"id": 347, "owner": {"id": 920}, "assignee": {"id": 1012}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 381, "assignee": {"id": 579}, "organization": {"id": 135}, "project": {"id": 396, "owner": {"id": 791}, "assignee": {"id": 819}}, "task": {"id": 369, "owner": {"id": 978}, "assignee": {"id": 1054}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 351, "assignee": {"id": 537}, "organization": {"id": 649}, "project": {"id": 366, "owner": {"id": 753}, "assignee": {"id": 860}}, "task": {"id": 359, "owner": {"id": 941}, "assignee": {"id": 1017}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 309, "assignee": {"id": 532}, "organization": {"id": 108}, "project": {"id": 371, "owner": {"id": 785}, "assignee": {"id": 839}}, "task": {"id": 326, "owner": {"id": 993}, "assignee": {"id": 1078}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 396, "assignee": {"id": 552}, "organization": {"id": 617}, "project": {"id": 318, "owner": {"id": 761}, "assignee": {"id": 820}}, "task": {"id": 397, "owner": {"id": 931}, "assignee": {"id": 1050}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 350, "assignee": {"id": 575}, "organization": {"id": 115}, "project": {"id": 331, "owner": {"id": 744}, "assignee": {"id": 809}}, "task": {"id": 328, "owner": {"id": 935}, "assignee": {"id": 1017}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 394, "assignee": {"id": 574}, "organization": {"id": 686}, "project": {"id": 319, "owner": {"id": 726}, "assignee": {"id": 856}}, "task": {"id": 318, "owner": {"id": 986}, "assignee": {"id": 1035}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "assignee": {"id": 515}, "organization": {"id": 129}, "project": {"id": 339, "owner": {"id": 767}, "assignee": {"id": 813}}, "task": {"id": 398, "owner": {"id": 980}, "assignee": {"id": 1076}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "assignee": {"id": 538}, "organization": {"id": 615}, "project": {"id": 369, "owner": {"id": 795}, "assignee": {"id": 878}}, "task": {"id": 358, "owner": {"id": 919}, "assignee": {"id": 1009}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "assignee": {"id": 505}, "organization": {"id": 190}, "project": {"id": 332, "owner": {"id": 714}, "assignee": {"id": 880}}, "task": {"id": 359, "owner": {"id": 954}, "assignee": {"id": 1074}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "assignee": {"id": 597}, "organization": {"id": 637}, "project": {"id": 328, "owner": {"id": 766}, "assignee": {"id": 813}}, "task": {"id": 311, "owner": {"id": 993}, "assignee": {"id": 1077}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 385, "assignee": {"id": 563}, "organization": {"id": 192}, "project": {"id": 355, "owner": {"id": 753}, "assignee": {"id": 807}}, "task": {"id": 381, "owner": {"id": 913}, "assignee": {"id": 1098}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 335, "assignee": {"id": 532}, "organization": {"id": 681}, "project": {"id": 365, "owner": {"id": 742}, "assignee": {"id": 853}}, "task": {"id": 385, "owner": {"id": 932}, "assignee": {"id": 1045}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 391, "assignee": {"id": 562}, "organization": {"id": 113}, "project": {"id": 374, "owner": {"id": 763}, "assignee": {"id": 828}}, "task": {"id": 375, "owner": {"id": 955}, "assignee": {"id": 1085}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 390, "assignee": {"id": 562}, "organization": {"id": 671}, "project": {"id": 377, "owner": {"id": 772}, "assignee": {"id": 848}}, "task": {"id": 377, "owner": {"id": 966}, "assignee": {"id": 1085}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 313, "assignee": {"id": 575}, "organization": {"id": 174}, "project": {"id": 312, "owner": {"id": 773}, "assignee": {"id": 812}}, "task": {"id": 315, "owner": {"id": 997}, "assignee": {"id": 1030}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 390, "assignee": {"id": 577}, "organization": {"id": 653}, "project": {"id": 350, "owner": {"id": 791}, "assignee": {"id": 895}}, "task": {"id": 305, "owner": {"id": 944}, "assignee": {"id": 1082}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "assignee": {"id": 504}, "organization": {"id": 172}, "project": {"id": 380, "owner": {"id": 795}, "assignee": {"id": 899}}, "task": {"id": 355, "owner": {"id": 985}, "assignee": {"id": 1003}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "assignee": {"id": 580}, "organization": {"id": 642}, "project": {"id": 312, "owner": {"id": 737}, "assignee": {"id": 852}}, "task": {"id": 303, "owner": {"id": 993}, "assignee": {"id": 1058}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "assignee": {"id": 545}, "organization": {"id": 133}, "project": {"id": 335, "owner": {"id": 757}, "assignee": {"id": 806}}, "task": {"id": 341, "owner": {"id": 958}, "assignee": {"id": 1089}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "assignee": {"id": 526}, "organization": {"id": 671}, "project": {"id": 398, "owner": {"id": 770}, "assignee": {"id": 882}}, "task": {"id": 341, "owner": {"id": 994}, "assignee": {"id": 1051}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 322, "assignee": {"id": 563}, "organization": {"id": 139}, "project": {"id": 342, "owner": {"id": 745}, "assignee": {"id": 878}}, "task": {"id": 368, "owner": {"id": 994}, "assignee": {"id": 1029}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 392, "assignee": {"id": 511}, "organization": {"id": 681}, "project": {"id": 351, "owner": {"id": 740}, "assignee": {"id": 879}}, "task": {"id": 363, "owner": {"id": 981}, "assignee": {"id": 1023}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 333, "assignee": {"id": 590}, "organization": {"id": 141}, "project": {"id": 344, "owner": {"id": 743}, "assignee": {"id": 856}}, "task": {"id": 346, "owner": {"id": 996}, "assignee": {"id": 1020}}}} -} - -test_scope_UPDATE_STATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:state", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 314, "assignee": {"id": 524}, "organization": {"id": 674}, "project": {"id": 339, "owner": {"id": 764}, "assignee": {"id": 889}}, "task": {"id": 382, "owner": {"id": 971}, "assignee": {"id": 1037}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": null}, "resource": {"id": 355, "assignee": {"id": 547}, "organization": {"id": 646}, "project": {"id": 330, "owner": {"id": 17}, "assignee": {"id": 869}}, "task": {"id": 345, "owner": {"id": 909}, "assignee": {"id": 1088}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": null}, "resource": {"id": 300, "assignee": {"id": 578}, "organization": {"id": 606}, "project": {"id": 391, "owner": {"id": 9}, "assignee": {"id": 845}}, "task": {"id": 375, "owner": {"id": 915}, "assignee": {"id": 1099}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 19, "privilege": "user"}, "organization": null}, "resource": {"id": 381, "assignee": {"id": 579}, "organization": {"id": 663}, "project": {"id": 323, "owner": {"id": 19}, "assignee": {"id": 827}}, "task": {"id": 344, "owner": {"id": 912}, "assignee": {"id": 1087}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": null}, "resource": {"id": 380, "assignee": {"id": 554}, "organization": {"id": 651}, "project": {"id": 355, "owner": {"id": 13}, "assignee": {"id": 810}}, "task": {"id": 362, "owner": {"id": 903}, "assignee": {"id": 1062}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": null}, "resource": {"id": 376, "assignee": {"id": 531}, "organization": {"id": 679}, "project": {"id": 385, "owner": {"id": 80}, "assignee": {"id": 854}}, "task": {"id": 387, "owner": {"id": 973}, "assignee": {"id": 1090}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": null}, "resource": {"id": 394, "assignee": {"id": 518}, "organization": {"id": 656}, "project": {"id": 376, "owner": {"id": 798}, "assignee": {"id": 24}}, "task": {"id": 384, "owner": {"id": 964}, "assignee": {"id": 1098}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": null}, "resource": {"id": 382, "assignee": {"id": 549}, "organization": {"id": 636}, "project": {"id": 387, "owner": {"id": 778}, "assignee": {"id": 87}}, "task": {"id": 357, "owner": {"id": 995}, "assignee": {"id": 1030}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": null}, "resource": {"id": 399, "assignee": {"id": 579}, "organization": {"id": 652}, "project": {"id": 306, "owner": {"id": 725}, "assignee": {"id": 84}}, "task": {"id": 343, "owner": {"id": 970}, "assignee": {"id": 1020}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": null}, "resource": {"id": 360, "assignee": {"id": 589}, "organization": {"id": 635}, "project": {"id": 388, "owner": {"id": 731}, "assignee": {"id": 12}}, "task": {"id": 384, "owner": {"id": 918}, "assignee": {"id": 1056}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": null}, "resource": {"id": 379, "assignee": {"id": 501}, "organization": {"id": 694}, "project": {"id": 373, "owner": {"id": 702}, "assignee": {"id": 48}}, "task": {"id": 348, "owner": {"id": 925}, "assignee": {"id": 1060}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": null}, "resource": {"id": 349, "assignee": {"id": 541}, "organization": {"id": 680}, "project": {"id": 367, "owner": {"id": 724}, "assignee": {"id": 860}}, "task": {"id": 325, "owner": {"id": 77}, "assignee": {"id": 1063}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": null}, "resource": {"id": 308, "assignee": {"id": 572}, "organization": {"id": 633}, "project": {"id": 393, "owner": {"id": 740}, "assignee": {"id": 857}}, "task": {"id": 345, "owner": {"id": 47}, "assignee": {"id": 1061}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": null}, "resource": {"id": 366, "assignee": {"id": 563}, "organization": {"id": 627}, "project": {"id": 353, "owner": {"id": 762}, "assignee": {"id": 801}}, "task": {"id": 339, "owner": {"id": 43}, "assignee": {"id": 1020}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": null}, "resource": {"id": 331, "assignee": {"id": 528}, "organization": {"id": 681}, "project": {"id": 300, "owner": {"id": 741}, "assignee": {"id": 845}}, "task": {"id": 379, "owner": {"id": 18}, "assignee": {"id": 1071}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": null}, "resource": {"id": 322, "assignee": {"id": 541}, "organization": {"id": 678}, "project": {"id": 397, "owner": {"id": 704}, "assignee": {"id": 882}}, "task": {"id": 336, "owner": {"id": 96}, "assignee": {"id": 1072}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": null}, "resource": {"id": 389, "assignee": {"id": 553}, "organization": {"id": 670}, "project": {"id": 308, "owner": {"id": 705}, "assignee": {"id": 825}}, "task": {"id": 375, "owner": {"id": 904}, "assignee": {"id": 29}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": null}, "resource": {"id": 326, "assignee": {"id": 563}, "organization": {"id": 692}, "project": {"id": 349, "owner": {"id": 792}, "assignee": {"id": 841}}, "task": {"id": 358, "owner": {"id": 950}, "assignee": {"id": 96}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": null}, "resource": {"id": 355, "assignee": {"id": 559}, "organization": {"id": 652}, "project": {"id": 322, "owner": {"id": 701}, "assignee": {"id": 873}}, "task": {"id": 305, "owner": {"id": 984}, "assignee": {"id": 98}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": null}, "resource": {"id": 318, "assignee": {"id": 576}, "organization": {"id": 643}, "project": {"id": 369, "owner": {"id": 780}, "assignee": {"id": 895}}, "task": {"id": 320, "owner": {"id": 973}, "assignee": {"id": 26}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": null}, "resource": {"id": 384, "assignee": {"id": 551}, "organization": {"id": 601}, "project": {"id": 389, "owner": {"id": 776}, "assignee": {"id": 838}}, "task": {"id": 343, "owner": {"id": 949}, "assignee": {"id": 26}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": null}, "resource": {"id": 349, "assignee": {"id": 66}, "organization": {"id": 683}, "project": {"id": 392, "owner": {"id": 706}, "assignee": {"id": 832}}, "task": {"id": 374, "owner": {"id": 915}, "assignee": {"id": 1089}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": null}, "resource": {"id": 320, "assignee": {"id": 47}, "organization": {"id": 673}, "project": {"id": 323, "owner": {"id": 785}, "assignee": {"id": 825}}, "task": {"id": 357, "owner": {"id": 984}, "assignee": {"id": 1069}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": null}, "resource": {"id": 385, "assignee": {"id": 61}, "organization": {"id": 647}, "project": {"id": 350, "owner": {"id": 757}, "assignee": {"id": 877}}, "task": {"id": 328, "owner": {"id": 995}, "assignee": {"id": 1016}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": null}, "resource": {"id": 342, "assignee": {"id": 84}, "organization": {"id": 686}, "project": {"id": 352, "owner": {"id": 735}, "assignee": {"id": 833}}, "task": {"id": 376, "owner": {"id": 954}, "assignee": {"id": 1085}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": null}, "resource": {"id": 397, "assignee": {"id": 16}, "organization": {"id": 605}, "project": {"id": 308, "owner": {"id": 735}, "assignee": {"id": 813}}, "task": {"id": 370, "owner": {"id": 968}, "assignee": {"id": 1034}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": null}, "resource": {"id": 378, "assignee": {"id": 596}, "organization": {"id": 648}, "project": {"id": 302, "owner": {"id": 769}, "assignee": {"id": 897}}, "task": {"id": 334, "owner": {"id": 926}, "assignee": {"id": 1086}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": null}, "resource": {"id": 390, "assignee": {"id": 520}, "organization": {"id": 611}, "project": {"id": 378, "owner": {"id": 789}, "assignee": {"id": 870}}, "task": {"id": 306, "owner": {"id": 932}, "assignee": {"id": 1010}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": null}, "resource": {"id": 320, "assignee": {"id": 581}, "organization": {"id": 677}, "project": {"id": 396, "owner": {"id": 705}, "assignee": {"id": 808}}, "task": {"id": 348, "owner": {"id": 917}, "assignee": {"id": 1000}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": null}, "resource": {"id": 312, "assignee": {"id": 537}, "organization": {"id": 647}, "project": {"id": 306, "owner": {"id": 744}, "assignee": {"id": 859}}, "task": {"id": 349, "owner": {"id": 983}, "assignee": {"id": 1055}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": null}, "resource": {"id": 338, "assignee": {"id": 501}, "organization": {"id": 617}, "project": {"id": 324, "owner": {"id": 753}, "assignee": {"id": 872}}, "task": {"id": 324, "owner": {"id": 953}, "assignee": {"id": 1019}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 393, "assignee": {"id": 561}, "organization": {"id": 185}, "project": {"id": 328, "owner": {"id": 10}, "assignee": {"id": 821}}, "task": {"id": 386, "owner": {"id": 963}, "assignee": {"id": 1014}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 343, "assignee": {"id": 578}, "organization": {"id": 693}, "project": {"id": 347, "owner": {"id": 94}, "assignee": {"id": 833}}, "task": {"id": 373, "owner": {"id": 971}, "assignee": {"id": 1070}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "assignee": {"id": 541}, "organization": {"id": 135}, "project": {"id": 319, "owner": {"id": 87}, "assignee": {"id": 887}}, "task": {"id": 391, "owner": {"id": 975}, "assignee": {"id": 1066}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "assignee": {"id": 531}, "organization": {"id": 628}, "project": {"id": 302, "owner": {"id": 38}, "assignee": {"id": 861}}, "task": {"id": 334, "owner": {"id": 942}, "assignee": {"id": 1065}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "assignee": {"id": 506}, "organization": {"id": 131}, "project": {"id": 338, "owner": {"id": 28}, "assignee": {"id": 813}}, "task": {"id": 318, "owner": {"id": 971}, "assignee": {"id": 1028}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "assignee": {"id": 512}, "organization": {"id": 689}, "project": {"id": 369, "owner": {"id": 53}, "assignee": {"id": 846}}, "task": {"id": 352, "owner": {"id": 995}, "assignee": {"id": 1051}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 338, "assignee": {"id": 510}, "organization": {"id": 107}, "project": {"id": 320, "owner": {"id": 40}, "assignee": {"id": 861}}, "task": {"id": 384, "owner": {"id": 908}, "assignee": {"id": 1099}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 351, "assignee": {"id": 555}, "organization": {"id": 619}, "project": {"id": 353, "owner": {"id": 39}, "assignee": {"id": 803}}, "task": {"id": 342, "owner": {"id": 947}, "assignee": {"id": 1015}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 362, "assignee": {"id": 550}, "organization": {"id": 121}, "project": {"id": 327, "owner": {"id": 78}, "assignee": {"id": 855}}, "task": {"id": 330, "owner": {"id": 936}, "assignee": {"id": 1031}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 320, "assignee": {"id": 576}, "organization": {"id": 641}, "project": {"id": 375, "owner": {"id": 94}, "assignee": {"id": 810}}, "task": {"id": 312, "owner": {"id": 910}, "assignee": {"id": 1010}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 369, "assignee": {"id": 554}, "organization": {"id": 122}, "project": {"id": 311, "owner": {"id": 60}, "assignee": {"id": 882}}, "task": {"id": 319, "owner": {"id": 906}, "assignee": {"id": 1000}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 317, "assignee": {"id": 537}, "organization": {"id": 646}, "project": {"id": 386, "owner": {"id": 11}, "assignee": {"id": 889}}, "task": {"id": 345, "owner": {"id": 985}, "assignee": {"id": 1073}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "assignee": {"id": 542}, "organization": {"id": 121}, "project": {"id": 304, "owner": {"id": 24}, "assignee": {"id": 810}}, "task": {"id": 305, "owner": {"id": 978}, "assignee": {"id": 1000}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "assignee": {"id": 513}, "organization": {"id": 634}, "project": {"id": 375, "owner": {"id": 36}, "assignee": {"id": 878}}, "task": {"id": 367, "owner": {"id": 909}, "assignee": {"id": 1078}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "assignee": {"id": 577}, "organization": {"id": 177}, "project": {"id": 320, "owner": {"id": 63}, "assignee": {"id": 899}}, "task": {"id": 389, "owner": {"id": 965}, "assignee": {"id": 1012}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "assignee": {"id": 536}, "organization": {"id": 604}, "project": {"id": 350, "owner": {"id": 57}, "assignee": {"id": 885}}, "task": {"id": 320, "owner": {"id": 988}, "assignee": {"id": 1060}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 339, "assignee": {"id": 537}, "organization": {"id": 126}, "project": {"id": 390, "owner": {"id": 41}, "assignee": {"id": 853}}, "task": {"id": 330, "owner": {"id": 939}, "assignee": {"id": 1085}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 359, "assignee": {"id": 519}, "organization": {"id": 690}, "project": {"id": 319, "owner": {"id": 18}, "assignee": {"id": 810}}, "task": {"id": 307, "owner": {"id": 975}, "assignee": {"id": 1015}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 316, "assignee": {"id": 519}, "organization": {"id": 130}, "project": {"id": 309, "owner": {"id": 74}, "assignee": {"id": 898}}, "task": {"id": 342, "owner": {"id": 988}, "assignee": {"id": 1040}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"id": 361, "assignee": {"id": 555}, "organization": {"id": 652}, "project": {"id": 315, "owner": {"id": 75}, "assignee": {"id": 885}}, "task": {"id": 385, "owner": {"id": 970}, "assignee": {"id": 1093}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"id": 326, "assignee": {"id": 560}, "organization": {"id": 106}, "project": {"id": 304, "owner": {"id": 8}, "assignee": {"id": 820}}, "task": {"id": 350, "owner": {"id": 924}, "assignee": {"id": 1044}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 332, "assignee": {"id": 549}, "organization": {"id": 623}, "project": {"id": 363, "owner": {"id": 57}, "assignee": {"id": 884}}, "task": {"id": 350, "owner": {"id": 990}, "assignee": {"id": 1041}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "assignee": {"id": 590}, "organization": {"id": 121}, "project": {"id": 384, "owner": {"id": 0}, "assignee": {"id": 896}}, "task": {"id": 372, "owner": {"id": 989}, "assignee": {"id": 1023}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "assignee": {"id": 511}, "organization": {"id": 662}, "project": {"id": 342, "owner": {"id": 77}, "assignee": {"id": 805}}, "task": {"id": 317, "owner": {"id": 930}, "assignee": {"id": 1065}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "assignee": {"id": 592}, "organization": {"id": 143}, "project": {"id": 353, "owner": {"id": 91}, "assignee": {"id": 898}}, "task": {"id": 301, "owner": {"id": 980}, "assignee": {"id": 1046}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "assignee": {"id": 543}, "organization": {"id": 600}, "project": {"id": 313, "owner": {"id": 18}, "assignee": {"id": 898}}, "task": {"id": 364, "owner": {"id": 925}, "assignee": {"id": 1027}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 384, "assignee": {"id": 594}, "organization": {"id": 178}, "project": {"id": 364, "owner": {"id": 78}, "assignee": {"id": 867}}, "task": {"id": 350, "owner": {"id": 967}, "assignee": {"id": 1075}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 355, "assignee": {"id": 598}, "organization": {"id": 693}, "project": {"id": 305, "owner": {"id": 68}, "assignee": {"id": 892}}, "task": {"id": 375, "owner": {"id": 970}, "assignee": {"id": 1037}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 305, "assignee": {"id": 536}, "organization": {"id": 159}, "project": {"id": 302, "owner": {"id": 53}, "assignee": {"id": 875}}, "task": {"id": 380, "owner": {"id": 908}, "assignee": {"id": 1060}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 373, "assignee": {"id": 529}, "organization": {"id": 640}, "project": {"id": 375, "owner": {"id": 4}, "assignee": {"id": 857}}, "task": {"id": 333, "owner": {"id": 938}, "assignee": {"id": 1083}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 374, "assignee": {"id": 532}, "organization": {"id": 130}, "project": {"id": 333, "owner": {"id": 57}, "assignee": {"id": 867}}, "task": {"id": 329, "owner": {"id": 905}, "assignee": {"id": 1028}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 300, "assignee": {"id": 555}, "organization": {"id": 606}, "project": {"id": 309, "owner": {"id": 64}, "assignee": {"id": 868}}, "task": {"id": 369, "owner": {"id": 953}, "assignee": {"id": 1002}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "assignee": {"id": 539}, "organization": {"id": 184}, "project": {"id": 376, "owner": {"id": 68}, "assignee": {"id": 806}}, "task": {"id": 363, "owner": {"id": 974}, "assignee": {"id": 1027}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "assignee": {"id": 599}, "organization": {"id": 614}, "project": {"id": 330, "owner": {"id": 69}, "assignee": {"id": 871}}, "task": {"id": 392, "owner": {"id": 942}, "assignee": {"id": 1022}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "assignee": {"id": 587}, "organization": {"id": 116}, "project": {"id": 310, "owner": {"id": 12}, "assignee": {"id": 882}}, "task": {"id": 331, "owner": {"id": 961}, "assignee": {"id": 1002}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "assignee": {"id": 533}, "organization": {"id": 621}, "project": {"id": 384, "owner": {"id": 54}, "assignee": {"id": 885}}, "task": {"id": 332, "owner": {"id": 953}, "assignee": {"id": 1020}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 320, "assignee": {"id": 546}, "organization": {"id": 108}, "project": {"id": 397, "owner": {"id": 81}, "assignee": {"id": 839}}, "task": {"id": 369, "owner": {"id": 988}, "assignee": {"id": 1070}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 319, "assignee": {"id": 515}, "organization": {"id": 600}, "project": {"id": 330, "owner": {"id": 22}, "assignee": {"id": 899}}, "task": {"id": 398, "owner": {"id": 997}, "assignee": {"id": 1034}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 357, "assignee": {"id": 543}, "organization": {"id": 161}, "project": {"id": 364, "owner": {"id": 15}, "assignee": {"id": 899}}, "task": {"id": 368, "owner": {"id": 959}, "assignee": {"id": 1065}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 378, "assignee": {"id": 535}, "organization": {"id": 610}, "project": {"id": 345, "owner": {"id": 69}, "assignee": {"id": 845}}, "task": {"id": 322, "owner": {"id": 949}, "assignee": {"id": 1024}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"id": 302, "assignee": {"id": 579}, "organization": {"id": 188}, "project": {"id": 311, "owner": {"id": 66}, "assignee": {"id": 820}}, "task": {"id": 318, "owner": {"id": 943}, "assignee": {"id": 1020}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 324, "assignee": {"id": 561}, "organization": {"id": 696}, "project": {"id": 380, "owner": {"id": 55}, "assignee": {"id": 803}}, "task": {"id": 343, "owner": {"id": 949}, "assignee": {"id": 1096}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "assignee": {"id": 551}, "organization": {"id": 195}, "project": {"id": 321, "owner": {"id": 75}, "assignee": {"id": 879}}, "task": {"id": 381, "owner": {"id": 961}, "assignee": {"id": 1099}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "assignee": {"id": 595}, "organization": {"id": 629}, "project": {"id": 384, "owner": {"id": 49}, "assignee": {"id": 863}}, "task": {"id": 371, "owner": {"id": 998}, "assignee": {"id": 1058}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "assignee": {"id": 525}, "organization": {"id": 185}, "project": {"id": 304, "owner": {"id": 2}, "assignee": {"id": 824}}, "task": {"id": 300, "owner": {"id": 973}, "assignee": {"id": 1045}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "assignee": {"id": 543}, "organization": {"id": 653}, "project": {"id": 395, "owner": {"id": 12}, "assignee": {"id": 840}}, "task": {"id": 359, "owner": {"id": 910}, "assignee": {"id": 1017}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 371, "assignee": {"id": 598}, "organization": {"id": 197}, "project": {"id": 375, "owner": {"id": 92}, "assignee": {"id": 860}}, "task": {"id": 363, "owner": {"id": 970}, "assignee": {"id": 1070}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 315, "assignee": {"id": 579}, "organization": {"id": 604}, "project": {"id": 381, "owner": {"id": 37}, "assignee": {"id": 831}}, "task": {"id": 339, "owner": {"id": 968}, "assignee": {"id": 1054}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 307, "assignee": {"id": 538}, "organization": {"id": 152}, "project": {"id": 317, "owner": {"id": 43}, "assignee": {"id": 833}}, "task": {"id": 348, "owner": {"id": 919}, "assignee": {"id": 1035}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 367, "assignee": {"id": 546}, "organization": {"id": 609}, "project": {"id": 363, "owner": {"id": 3}, "assignee": {"id": 894}}, "task": {"id": 338, "owner": {"id": 952}, "assignee": {"id": 1002}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 323, "assignee": {"id": 591}, "organization": {"id": 112}, "project": {"id": 317, "owner": {"id": 767}, "assignee": {"id": 14}}, "task": {"id": 376, "owner": {"id": 912}, "assignee": {"id": 1046}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 398, "assignee": {"id": 542}, "organization": {"id": 640}, "project": {"id": 315, "owner": {"id": 723}, "assignee": {"id": 29}}, "task": {"id": 327, "owner": {"id": 974}, "assignee": {"id": 1010}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "assignee": {"id": 597}, "organization": {"id": 169}, "project": {"id": 396, "owner": {"id": 769}, "assignee": {"id": 88}}, "task": {"id": 391, "owner": {"id": 970}, "assignee": {"id": 1073}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "assignee": {"id": 584}, "organization": {"id": 638}, "project": {"id": 312, "owner": {"id": 751}, "assignee": {"id": 11}}, "task": {"id": 305, "owner": {"id": 939}, "assignee": {"id": 1053}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "assignee": {"id": 594}, "organization": {"id": 105}, "project": {"id": 317, "owner": {"id": 708}, "assignee": {"id": 61}}, "task": {"id": 375, "owner": {"id": 900}, "assignee": {"id": 1013}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "assignee": {"id": 551}, "organization": {"id": 669}, "project": {"id": 313, "owner": {"id": 733}, "assignee": {"id": 10}}, "task": {"id": 375, "owner": {"id": 971}, "assignee": {"id": 1031}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 323, "assignee": {"id": 583}, "organization": {"id": 190}, "project": {"id": 389, "owner": {"id": 713}, "assignee": {"id": 93}}, "task": {"id": 302, "owner": {"id": 960}, "assignee": {"id": 1027}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 321, "assignee": {"id": 594}, "organization": {"id": 687}, "project": {"id": 365, "owner": {"id": 730}, "assignee": {"id": 34}}, "task": {"id": 300, "owner": {"id": 987}, "assignee": {"id": 1066}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 399, "assignee": {"id": 524}, "organization": {"id": 149}, "project": {"id": 370, "owner": {"id": 730}, "assignee": {"id": 85}}, "task": {"id": 355, "owner": {"id": 927}, "assignee": {"id": 1078}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 367, "assignee": {"id": 537}, "organization": {"id": 644}, "project": {"id": 317, "owner": {"id": 751}, "assignee": {"id": 34}}, "task": {"id": 352, "owner": {"id": 974}, "assignee": {"id": 1036}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 315, "assignee": {"id": 590}, "organization": {"id": 175}, "project": {"id": 332, "owner": {"id": 782}, "assignee": {"id": 51}}, "task": {"id": 363, "owner": {"id": 900}, "assignee": {"id": 1014}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 395, "assignee": {"id": 532}, "organization": {"id": 688}, "project": {"id": 316, "owner": {"id": 773}, "assignee": {"id": 85}}, "task": {"id": 382, "owner": {"id": 974}, "assignee": {"id": 1015}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "assignee": {"id": 505}, "organization": {"id": 117}, "project": {"id": 331, "owner": {"id": 795}, "assignee": {"id": 50}}, "task": {"id": 393, "owner": {"id": 909}, "assignee": {"id": 1087}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "assignee": {"id": 514}, "organization": {"id": 673}, "project": {"id": 300, "owner": {"id": 783}, "assignee": {"id": 1}}, "task": {"id": 391, "owner": {"id": 914}, "assignee": {"id": 1089}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 343, "assignee": {"id": 526}, "organization": {"id": 152}, "project": {"id": 318, "owner": {"id": 718}, "assignee": {"id": 41}}, "task": {"id": 382, "owner": {"id": 915}, "assignee": {"id": 1047}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 26, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "assignee": {"id": 566}, "organization": {"id": 687}, "project": {"id": 335, "owner": {"id": 756}, "assignee": {"id": 26}}, "task": {"id": 325, "owner": {"id": 981}, "assignee": {"id": 1018}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 324, "assignee": {"id": 585}, "organization": {"id": 100}, "project": {"id": 331, "owner": {"id": 762}, "assignee": {"id": 32}}, "task": {"id": 335, "owner": {"id": 955}, "assignee": {"id": 1006}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 359, "assignee": {"id": 520}, "organization": {"id": 607}, "project": {"id": 307, "owner": {"id": 795}, "assignee": {"id": 52}}, "task": {"id": 367, "owner": {"id": 937}, "assignee": {"id": 1026}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 318, "assignee": {"id": 536}, "organization": {"id": 108}, "project": {"id": 322, "owner": {"id": 754}, "assignee": {"id": 67}}, "task": {"id": 301, "owner": {"id": 960}, "assignee": {"id": 1097}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 358, "assignee": {"id": 544}, "organization": {"id": 638}, "project": {"id": 382, "owner": {"id": 728}, "assignee": {"id": 61}}, "task": {"id": 325, "owner": {"id": 988}, "assignee": {"id": 1035}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 320, "assignee": {"id": 561}, "organization": {"id": 149}, "project": {"id": 356, "owner": {"id": 717}, "assignee": {"id": 62}}, "task": {"id": 399, "owner": {"id": 930}, "assignee": {"id": 1082}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 370, "assignee": {"id": 565}, "organization": {"id": 682}, "project": {"id": 318, "owner": {"id": 714}, "assignee": {"id": 32}}, "task": {"id": 392, "owner": {"id": 947}, "assignee": {"id": 1066}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "assignee": {"id": 584}, "organization": {"id": 130}, "project": {"id": 339, "owner": {"id": 795}, "assignee": {"id": 13}}, "task": {"id": 302, "owner": {"id": 908}, "assignee": {"id": 1072}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "assignee": {"id": 531}, "organization": {"id": 696}, "project": {"id": 385, "owner": {"id": 771}, "assignee": {"id": 80}}, "task": {"id": 373, "owner": {"id": 967}, "assignee": {"id": 1023}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "assignee": {"id": 519}, "organization": {"id": 143}, "project": {"id": 341, "owner": {"id": 798}, "assignee": {"id": 72}}, "task": {"id": 398, "owner": {"id": 970}, "assignee": {"id": 1053}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "assignee": {"id": 524}, "organization": {"id": 623}, "project": {"id": 313, "owner": {"id": 793}, "assignee": {"id": 32}}, "task": {"id": 392, "owner": {"id": 997}, "assignee": {"id": 1054}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 375, "assignee": {"id": 525}, "organization": {"id": 148}, "project": {"id": 351, "owner": {"id": 785}, "assignee": {"id": 12}}, "task": {"id": 372, "owner": {"id": 972}, "assignee": {"id": 1045}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 379, "assignee": {"id": 525}, "organization": {"id": 631}, "project": {"id": 341, "owner": {"id": 705}, "assignee": {"id": 30}}, "task": {"id": 345, "owner": {"id": 960}, "assignee": {"id": 1097}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 363, "assignee": {"id": 529}, "organization": {"id": 129}, "project": {"id": 371, "owner": {"id": 702}, "assignee": {"id": 17}}, "task": {"id": 309, "owner": {"id": 913}, "assignee": {"id": 1072}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 305, "assignee": {"id": 526}, "organization": {"id": 659}, "project": {"id": 352, "owner": {"id": 768}, "assignee": {"id": 70}}, "task": {"id": 309, "owner": {"id": 913}, "assignee": {"id": 1087}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 317, "assignee": {"id": 528}, "organization": {"id": 175}, "project": {"id": 327, "owner": {"id": 727}, "assignee": {"id": 1}}, "task": {"id": 312, "owner": {"id": 904}, "assignee": {"id": 1032}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 315, "assignee": {"id": 535}, "organization": {"id": 682}, "project": {"id": 375, "owner": {"id": 757}, "assignee": {"id": 78}}, "task": {"id": 311, "owner": {"id": 943}, "assignee": {"id": 1030}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "assignee": {"id": 576}, "organization": {"id": 135}, "project": {"id": 395, "owner": {"id": 780}, "assignee": {"id": 88}}, "task": {"id": 330, "owner": {"id": 905}, "assignee": {"id": 1060}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 321, "assignee": {"id": 584}, "organization": {"id": 696}, "project": {"id": 389, "owner": {"id": 793}, "assignee": {"id": 42}}, "task": {"id": 362, "owner": {"id": 927}, "assignee": {"id": 1052}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "assignee": {"id": 574}, "organization": {"id": 196}, "project": {"id": 373, "owner": {"id": 735}, "assignee": {"id": 45}}, "task": {"id": 354, "owner": {"id": 989}, "assignee": {"id": 1044}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 371, "assignee": {"id": 589}, "organization": {"id": 621}, "project": {"id": 303, "owner": {"id": 794}, "assignee": {"id": 85}}, "task": {"id": 380, "owner": {"id": 973}, "assignee": {"id": 1002}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 322, "assignee": {"id": 520}, "organization": {"id": 116}, "project": {"id": 394, "owner": {"id": 705}, "assignee": {"id": 25}}, "task": {"id": 322, "owner": {"id": 925}, "assignee": {"id": 1026}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 358, "assignee": {"id": 507}, "organization": {"id": 684}, "project": {"id": 357, "owner": {"id": 728}, "assignee": {"id": 92}}, "task": {"id": 317, "owner": {"id": 904}, "assignee": {"id": 1015}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 346, "assignee": {"id": 580}, "organization": {"id": 120}, "project": {"id": 397, "owner": {"id": 738}, "assignee": {"id": 8}}, "task": {"id": 355, "owner": {"id": 919}, "assignee": {"id": 1088}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 348, "assignee": {"id": 500}, "organization": {"id": 621}, "project": {"id": 347, "owner": {"id": 704}, "assignee": {"id": 13}}, "task": {"id": 322, "owner": {"id": 987}, "assignee": {"id": 1053}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 320, "assignee": {"id": 527}, "organization": {"id": 134}, "project": {"id": 319, "owner": {"id": 753}, "assignee": {"id": 21}}, "task": {"id": 355, "owner": {"id": 929}, "assignee": {"id": 1089}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"id": 366, "assignee": {"id": 591}, "organization": {"id": 671}, "project": {"id": 386, "owner": {"id": 767}, "assignee": {"id": 20}}, "task": {"id": 374, "owner": {"id": 942}, "assignee": {"id": 1057}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "assignee": {"id": 572}, "organization": {"id": 133}, "project": {"id": 357, "owner": {"id": 754}, "assignee": {"id": 40}}, "task": {"id": 378, "owner": {"id": 956}, "assignee": {"id": 1035}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "assignee": {"id": 593}, "organization": {"id": 698}, "project": {"id": 302, "owner": {"id": 725}, "assignee": {"id": 68}}, "task": {"id": 337, "owner": {"id": 948}, "assignee": {"id": 1098}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "assignee": {"id": 514}, "organization": {"id": 171}, "project": {"id": 316, "owner": {"id": 706}, "assignee": {"id": 14}}, "task": {"id": 394, "owner": {"id": 989}, "assignee": {"id": 1068}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "assignee": {"id": 583}, "organization": {"id": 674}, "project": {"id": 391, "owner": {"id": 794}, "assignee": {"id": 68}}, "task": {"id": 306, "owner": {"id": 966}, "assignee": {"id": 1023}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 330, "assignee": {"id": 506}, "organization": {"id": 143}, "project": {"id": 377, "owner": {"id": 769}, "assignee": {"id": 10}}, "task": {"id": 330, "owner": {"id": 968}, "assignee": {"id": 1070}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 368, "assignee": {"id": 511}, "organization": {"id": 633}, "project": {"id": 333, "owner": {"id": 742}, "assignee": {"id": 54}}, "task": {"id": 317, "owner": {"id": 922}, "assignee": {"id": 1005}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 317, "assignee": {"id": 528}, "organization": {"id": 154}, "project": {"id": 381, "owner": {"id": 711}, "assignee": {"id": 9}}, "task": {"id": 318, "owner": {"id": 979}, "assignee": {"id": 1056}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"id": 381, "assignee": {"id": 569}, "organization": {"id": 610}, "project": {"id": 394, "owner": {"id": 797}, "assignee": {"id": 35}}, "task": {"id": 358, "owner": {"id": 921}, "assignee": {"id": 1087}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 304, "assignee": {"id": 597}, "organization": {"id": 103}, "project": {"id": 399, "owner": {"id": 703}, "assignee": {"id": 899}}, "task": {"id": 385, "owner": {"id": 92}, "assignee": {"id": 1003}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 341, "assignee": {"id": 521}, "organization": {"id": 696}, "project": {"id": 395, "owner": {"id": 781}, "assignee": {"id": 874}}, "task": {"id": 310, "owner": {"id": 24}, "assignee": {"id": 1088}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "assignee": {"id": 568}, "organization": {"id": 119}, "project": {"id": 347, "owner": {"id": 707}, "assignee": {"id": 880}}, "task": {"id": 395, "owner": {"id": 92}, "assignee": {"id": 1003}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "assignee": {"id": 548}, "organization": {"id": 686}, "project": {"id": 314, "owner": {"id": 764}, "assignee": {"id": 882}}, "task": {"id": 337, "owner": {"id": 33}, "assignee": {"id": 1037}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 369, "assignee": {"id": 518}, "organization": {"id": 198}, "project": {"id": 385, "owner": {"id": 773}, "assignee": {"id": 869}}, "task": {"id": 361, "owner": {"id": 66}, "assignee": {"id": 1062}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "assignee": {"id": 522}, "organization": {"id": 697}, "project": {"id": 336, "owner": {"id": 764}, "assignee": {"id": 879}}, "task": {"id": 305, "owner": {"id": 60}, "assignee": {"id": 1048}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 355, "assignee": {"id": 559}, "organization": {"id": 148}, "project": {"id": 305, "owner": {"id": 776}, "assignee": {"id": 806}}, "task": {"id": 300, "owner": {"id": 31}, "assignee": {"id": 1033}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 381, "assignee": {"id": 543}, "organization": {"id": 611}, "project": {"id": 346, "owner": {"id": 792}, "assignee": {"id": 866}}, "task": {"id": 335, "owner": {"id": 51}, "assignee": {"id": 1019}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 315, "assignee": {"id": 530}, "organization": {"id": 106}, "project": {"id": 319, "owner": {"id": 734}, "assignee": {"id": 865}}, "task": {"id": 329, "owner": {"id": 84}, "assignee": {"id": 1047}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 339, "assignee": {"id": 521}, "organization": {"id": 673}, "project": {"id": 348, "owner": {"id": 793}, "assignee": {"id": 805}}, "task": {"id": 370, "owner": {"id": 80}, "assignee": {"id": 1005}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 352, "assignee": {"id": 526}, "organization": {"id": 102}, "project": {"id": 352, "owner": {"id": 777}, "assignee": {"id": 878}}, "task": {"id": 371, "owner": {"id": 45}, "assignee": {"id": 1079}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 379, "assignee": {"id": 599}, "organization": {"id": 681}, "project": {"id": 367, "owner": {"id": 723}, "assignee": {"id": 816}}, "task": {"id": 308, "owner": {"id": 6}, "assignee": {"id": 1034}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "assignee": {"id": 567}, "organization": {"id": 133}, "project": {"id": 371, "owner": {"id": 767}, "assignee": {"id": 894}}, "task": {"id": 300, "owner": {"id": 93}, "assignee": {"id": 1080}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "assignee": {"id": 570}, "organization": {"id": 660}, "project": {"id": 363, "owner": {"id": 731}, "assignee": {"id": 866}}, "task": {"id": 324, "owner": {"id": 97}, "assignee": {"id": 1091}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "assignee": {"id": 508}, "organization": {"id": 151}, "project": {"id": 334, "owner": {"id": 731}, "assignee": {"id": 819}}, "task": {"id": 386, "owner": {"id": 89}, "assignee": {"id": 1018}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "assignee": {"id": 537}, "organization": {"id": 692}, "project": {"id": 321, "owner": {"id": 766}, "assignee": {"id": 873}}, "task": {"id": 382, "owner": {"id": 93}, "assignee": {"id": 1085}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 338, "assignee": {"id": 520}, "organization": {"id": 192}, "project": {"id": 331, "owner": {"id": 753}, "assignee": {"id": 896}}, "task": {"id": 391, "owner": {"id": 92}, "assignee": {"id": 1047}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 355, "assignee": {"id": 527}, "organization": {"id": 613}, "project": {"id": 339, "owner": {"id": 799}, "assignee": {"id": 832}}, "task": {"id": 310, "owner": {"id": 49}, "assignee": {"id": 1005}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 349, "assignee": {"id": 520}, "organization": {"id": 129}, "project": {"id": 396, "owner": {"id": 747}, "assignee": {"id": 896}}, "task": {"id": 337, "owner": {"id": 51}, "assignee": {"id": 1023}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 386, "assignee": {"id": 547}, "organization": {"id": 643}, "project": {"id": 369, "owner": {"id": 787}, "assignee": {"id": 823}}, "task": {"id": 337, "owner": {"id": 2}, "assignee": {"id": 1093}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 360, "assignee": {"id": 548}, "organization": {"id": 102}, "project": {"id": 352, "owner": {"id": 735}, "assignee": {"id": 837}}, "task": {"id": 365, "owner": {"id": 64}, "assignee": {"id": 1067}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 328, "assignee": {"id": 593}, "organization": {"id": 613}, "project": {"id": 347, "owner": {"id": 730}, "assignee": {"id": 871}}, "task": {"id": 389, "owner": {"id": 22}, "assignee": {"id": 1066}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "assignee": {"id": 517}, "organization": {"id": 137}, "project": {"id": 378, "owner": {"id": 789}, "assignee": {"id": 807}}, "task": {"id": 386, "owner": {"id": 4}, "assignee": {"id": 1043}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "assignee": {"id": 507}, "organization": {"id": 637}, "project": {"id": 330, "owner": {"id": 726}, "assignee": {"id": 827}}, "task": {"id": 326, "owner": {"id": 24}, "assignee": {"id": 1045}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "assignee": {"id": 540}, "organization": {"id": 112}, "project": {"id": 315, "owner": {"id": 750}, "assignee": {"id": 893}}, "task": {"id": 328, "owner": {"id": 11}, "assignee": {"id": 1013}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "assignee": {"id": 558}, "organization": {"id": 667}, "project": {"id": 359, "owner": {"id": 792}, "assignee": {"id": 815}}, "task": {"id": 369, "owner": {"id": 25}, "assignee": {"id": 1077}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 311, "assignee": {"id": 580}, "organization": {"id": 128}, "project": {"id": 325, "owner": {"id": 763}, "assignee": {"id": 827}}, "task": {"id": 317, "owner": {"id": 41}, "assignee": {"id": 1082}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 352, "assignee": {"id": 504}, "organization": {"id": 692}, "project": {"id": 309, "owner": {"id": 710}, "assignee": {"id": 896}}, "task": {"id": 378, "owner": {"id": 63}, "assignee": {"id": 1064}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 349, "assignee": {"id": 512}, "organization": {"id": 101}, "project": {"id": 364, "owner": {"id": 752}, "assignee": {"id": 899}}, "task": {"id": 370, "owner": {"id": 1}, "assignee": {"id": 1067}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 326, "assignee": {"id": 503}, "organization": {"id": 603}, "project": {"id": 375, "owner": {"id": 713}, "assignee": {"id": 842}}, "task": {"id": 399, "owner": {"id": 70}, "assignee": {"id": 1014}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 367, "assignee": {"id": 501}, "organization": {"id": 133}, "project": {"id": 388, "owner": {"id": 748}, "assignee": {"id": 842}}, "task": {"id": 360, "owner": {"id": 63}, "assignee": {"id": 1089}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 336, "assignee": {"id": 576}, "organization": {"id": 615}, "project": {"id": 392, "owner": {"id": 753}, "assignee": {"id": 800}}, "task": {"id": 379, "owner": {"id": 50}, "assignee": {"id": 1027}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "assignee": {"id": 517}, "organization": {"id": 198}, "project": {"id": 309, "owner": {"id": 739}, "assignee": {"id": 877}}, "task": {"id": 309, "owner": {"id": 81}, "assignee": {"id": 1067}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "assignee": {"id": 513}, "organization": {"id": 669}, "project": {"id": 337, "owner": {"id": 728}, "assignee": {"id": 829}}, "task": {"id": 350, "owner": {"id": 43}, "assignee": {"id": 1061}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "assignee": {"id": 596}, "organization": {"id": 164}, "project": {"id": 324, "owner": {"id": 721}, "assignee": {"id": 892}}, "task": {"id": 320, "owner": {"id": 77}, "assignee": {"id": 1077}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "assignee": {"id": 530}, "organization": {"id": 657}, "project": {"id": 335, "owner": {"id": 742}, "assignee": {"id": 843}}, "task": {"id": 353, "owner": {"id": 32}, "assignee": {"id": 1011}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 395, "assignee": {"id": 593}, "organization": {"id": 180}, "project": {"id": 316, "owner": {"id": 766}, "assignee": {"id": 868}}, "task": {"id": 352, "owner": {"id": 46}, "assignee": {"id": 1005}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 399, "assignee": {"id": 543}, "organization": {"id": 630}, "project": {"id": 363, "owner": {"id": 750}, "assignee": {"id": 854}}, "task": {"id": 355, "owner": {"id": 66}, "assignee": {"id": 1005}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 314, "assignee": {"id": 595}, "organization": {"id": 126}, "project": {"id": 354, "owner": {"id": 799}, "assignee": {"id": 802}}, "task": {"id": 305, "owner": {"id": 66}, "assignee": {"id": 1007}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 349, "assignee": {"id": 550}, "organization": {"id": 677}, "project": {"id": 311, "owner": {"id": 797}, "assignee": {"id": 803}}, "task": {"id": 349, "owner": {"id": 58}, "assignee": {"id": 1087}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 395, "assignee": {"id": 527}, "organization": {"id": 155}, "project": {"id": 322, "owner": {"id": 798}, "assignee": {"id": 827}}, "task": {"id": 332, "owner": {"id": 6}, "assignee": {"id": 1045}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 370, "assignee": {"id": 523}, "organization": {"id": 655}, "project": {"id": 373, "owner": {"id": 713}, "assignee": {"id": 862}}, "task": {"id": 380, "owner": {"id": 97}, "assignee": {"id": 1054}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "assignee": {"id": 579}, "organization": {"id": 138}, "project": {"id": 367, "owner": {"id": 733}, "assignee": {"id": 837}}, "task": {"id": 395, "owner": {"id": 30}, "assignee": {"id": 1014}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "assignee": {"id": 567}, "organization": {"id": 657}, "project": {"id": 399, "owner": {"id": 724}, "assignee": {"id": 843}}, "task": {"id": 338, "owner": {"id": 85}, "assignee": {"id": 1061}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "assignee": {"id": 517}, "organization": {"id": 115}, "project": {"id": 305, "owner": {"id": 727}, "assignee": {"id": 829}}, "task": {"id": 382, "owner": {"id": 92}, "assignee": {"id": 1078}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "assignee": {"id": 585}, "organization": {"id": 647}, "project": {"id": 357, "owner": {"id": 788}, "assignee": {"id": 888}}, "task": {"id": 302, "owner": {"id": 64}, "assignee": {"id": 1006}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 374, "assignee": {"id": 590}, "organization": {"id": 132}, "project": {"id": 337, "owner": {"id": 736}, "assignee": {"id": 873}}, "task": {"id": 323, "owner": {"id": 57}, "assignee": {"id": 1091}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 321, "assignee": {"id": 551}, "organization": {"id": 696}, "project": {"id": 376, "owner": {"id": 790}, "assignee": {"id": 873}}, "task": {"id": 379, "owner": {"id": 98}, "assignee": {"id": 1053}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 348, "assignee": {"id": 599}, "organization": {"id": 193}, "project": {"id": 337, "owner": {"id": 770}, "assignee": {"id": 882}}, "task": {"id": 377, "owner": {"id": 95}, "assignee": {"id": 1076}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 386, "assignee": {"id": 597}, "organization": {"id": 658}, "project": {"id": 311, "owner": {"id": 766}, "assignee": {"id": 837}}, "task": {"id": 318, "owner": {"id": 74}, "assignee": {"id": 1046}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 372, "assignee": {"id": 531}, "organization": {"id": 139}, "project": {"id": 342, "owner": {"id": 772}, "assignee": {"id": 813}}, "task": {"id": 337, "owner": {"id": 902}, "assignee": {"id": 64}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 379, "assignee": {"id": 524}, "organization": {"id": 622}, "project": {"id": 324, "owner": {"id": 713}, "assignee": {"id": 823}}, "task": {"id": 399, "owner": {"id": 928}, "assignee": {"id": 99}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "assignee": {"id": 551}, "organization": {"id": 160}, "project": {"id": 371, "owner": {"id": 707}, "assignee": {"id": 852}}, "task": {"id": 379, "owner": {"id": 989}, "assignee": {"id": 71}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "assignee": {"id": 581}, "organization": {"id": 615}, "project": {"id": 358, "owner": {"id": 797}, "assignee": {"id": 853}}, "task": {"id": 303, "owner": {"id": 982}, "assignee": {"id": 22}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "assignee": {"id": 571}, "organization": {"id": 177}, "project": {"id": 329, "owner": {"id": 766}, "assignee": {"id": 877}}, "task": {"id": 328, "owner": {"id": 941}, "assignee": {"id": 84}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "assignee": {"id": 531}, "organization": {"id": 666}, "project": {"id": 317, "owner": {"id": 784}, "assignee": {"id": 871}}, "task": {"id": 396, "owner": {"id": 902}, "assignee": {"id": 0}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 384, "assignee": {"id": 515}, "organization": {"id": 118}, "project": {"id": 388, "owner": {"id": 772}, "assignee": {"id": 878}}, "task": {"id": 355, "owner": {"id": 943}, "assignee": {"id": 70}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 375, "assignee": {"id": 597}, "organization": {"id": 645}, "project": {"id": 369, "owner": {"id": 786}, "assignee": {"id": 818}}, "task": {"id": 355, "owner": {"id": 984}, "assignee": {"id": 11}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 373, "assignee": {"id": 548}, "organization": {"id": 154}, "project": {"id": 352, "owner": {"id": 780}, "assignee": {"id": 809}}, "task": {"id": 327, "owner": {"id": 901}, "assignee": {"id": 61}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 386, "assignee": {"id": 587}, "organization": {"id": 618}, "project": {"id": 398, "owner": {"id": 724}, "assignee": {"id": 867}}, "task": {"id": 340, "owner": {"id": 973}, "assignee": {"id": 96}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 324, "assignee": {"id": 599}, "organization": {"id": 165}, "project": {"id": 351, "owner": {"id": 769}, "assignee": {"id": 819}}, "task": {"id": 330, "owner": {"id": 975}, "assignee": {"id": 39}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 380, "assignee": {"id": 505}, "organization": {"id": 603}, "project": {"id": 321, "owner": {"id": 761}, "assignee": {"id": 896}}, "task": {"id": 328, "owner": {"id": 900}, "assignee": {"id": 85}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "assignee": {"id": 550}, "organization": {"id": 109}, "project": {"id": 308, "owner": {"id": 707}, "assignee": {"id": 814}}, "task": {"id": 397, "owner": {"id": 949}, "assignee": {"id": 25}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "assignee": {"id": 524}, "organization": {"id": 678}, "project": {"id": 342, "owner": {"id": 703}, "assignee": {"id": 806}}, "task": {"id": 308, "owner": {"id": 948}, "assignee": {"id": 7}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "assignee": {"id": 510}, "organization": {"id": 152}, "project": {"id": 380, "owner": {"id": 777}, "assignee": {"id": 809}}, "task": {"id": 394, "owner": {"id": 941}, "assignee": {"id": 58}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "assignee": {"id": 580}, "organization": {"id": 666}, "project": {"id": 325, "owner": {"id": 774}, "assignee": {"id": 856}}, "task": {"id": 382, "owner": {"id": 952}, "assignee": {"id": 18}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 347, "assignee": {"id": 528}, "organization": {"id": 136}, "project": {"id": 335, "owner": {"id": 734}, "assignee": {"id": 802}}, "task": {"id": 363, "owner": {"id": 956}, "assignee": {"id": 76}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 320, "assignee": {"id": 507}, "organization": {"id": 691}, "project": {"id": 357, "owner": {"id": 717}, "assignee": {"id": 892}}, "task": {"id": 351, "owner": {"id": 997}, "assignee": {"id": 85}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 317, "assignee": {"id": 544}, "organization": {"id": 149}, "project": {"id": 371, "owner": {"id": 711}, "assignee": {"id": 895}}, "task": {"id": 362, "owner": {"id": 992}, "assignee": {"id": 60}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 320, "assignee": {"id": 572}, "organization": {"id": 689}, "project": {"id": 377, "owner": {"id": 708}, "assignee": {"id": 898}}, "task": {"id": 399, "owner": {"id": 933}, "assignee": {"id": 50}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 368, "assignee": {"id": 533}, "organization": {"id": 140}, "project": {"id": 324, "owner": {"id": 725}, "assignee": {"id": 825}}, "task": {"id": 358, "owner": {"id": 929}, "assignee": {"id": 16}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 391, "assignee": {"id": 521}, "organization": {"id": 625}, "project": {"id": 344, "owner": {"id": 751}, "assignee": {"id": 813}}, "task": {"id": 359, "owner": {"id": 969}, "assignee": {"id": 59}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 321, "assignee": {"id": 586}, "organization": {"id": 196}, "project": {"id": 310, "owner": {"id": 777}, "assignee": {"id": 820}}, "task": {"id": 300, "owner": {"id": 948}, "assignee": {"id": 28}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 330, "assignee": {"id": 565}, "organization": {"id": 685}, "project": {"id": 340, "owner": {"id": 716}, "assignee": {"id": 859}}, "task": {"id": 363, "owner": {"id": 969}, "assignee": {"id": 44}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 324, "assignee": {"id": 527}, "organization": {"id": 106}, "project": {"id": 309, "owner": {"id": 785}, "assignee": {"id": 869}}, "task": {"id": 337, "owner": {"id": 939}, "assignee": {"id": 75}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "assignee": {"id": 574}, "organization": {"id": 641}, "project": {"id": 306, "owner": {"id": 718}, "assignee": {"id": 850}}, "task": {"id": 337, "owner": {"id": 965}, "assignee": {"id": 12}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 336, "assignee": {"id": 506}, "organization": {"id": 168}, "project": {"id": 357, "owner": {"id": 726}, "assignee": {"id": 887}}, "task": {"id": 332, "owner": {"id": 913}, "assignee": {"id": 60}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 318, "assignee": {"id": 559}, "organization": {"id": 694}, "project": {"id": 363, "owner": {"id": 785}, "assignee": {"id": 865}}, "task": {"id": 321, "owner": {"id": 923}, "assignee": {"id": 1}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 311, "assignee": {"id": 562}, "organization": {"id": 153}, "project": {"id": 368, "owner": {"id": 723}, "assignee": {"id": 813}}, "task": {"id": 380, "owner": {"id": 924}, "assignee": {"id": 66}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 373, "assignee": {"id": 569}, "organization": {"id": 643}, "project": {"id": 394, "owner": {"id": 762}, "assignee": {"id": 893}}, "task": {"id": 387, "owner": {"id": 977}, "assignee": {"id": 29}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 329, "assignee": {"id": 569}, "organization": {"id": 103}, "project": {"id": 314, "owner": {"id": 765}, "assignee": {"id": 822}}, "task": {"id": 369, "owner": {"id": 987}, "assignee": {"id": 52}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 329, "assignee": {"id": 573}, "organization": {"id": 696}, "project": {"id": 357, "owner": {"id": 794}, "assignee": {"id": 802}}, "task": {"id": 363, "owner": {"id": 989}, "assignee": {"id": 69}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "assignee": {"id": 551}, "organization": {"id": 130}, "project": {"id": 315, "owner": {"id": 758}, "assignee": {"id": 861}}, "task": {"id": 389, "owner": {"id": 907}, "assignee": {"id": 63}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "assignee": {"id": 599}, "organization": {"id": 618}, "project": {"id": 301, "owner": {"id": 746}, "assignee": {"id": 897}}, "task": {"id": 300, "owner": {"id": 948}, "assignee": {"id": 18}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "assignee": {"id": 523}, "organization": {"id": 186}, "project": {"id": 380, "owner": {"id": 744}, "assignee": {"id": 841}}, "task": {"id": 386, "owner": {"id": 920}, "assignee": {"id": 50}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "assignee": {"id": 501}, "organization": {"id": 699}, "project": {"id": 342, "owner": {"id": 769}, "assignee": {"id": 857}}, "task": {"id": 313, "owner": {"id": 987}, "assignee": {"id": 51}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 393, "assignee": {"id": 509}, "organization": {"id": 172}, "project": {"id": 383, "owner": {"id": 798}, "assignee": {"id": 822}}, "task": {"id": 309, "owner": {"id": 973}, "assignee": {"id": 41}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 358, "assignee": {"id": 596}, "organization": {"id": 676}, "project": {"id": 305, "owner": {"id": 771}, "assignee": {"id": 875}}, "task": {"id": 368, "owner": {"id": 998}, "assignee": {"id": 34}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 379, "assignee": {"id": 577}, "organization": {"id": 104}, "project": {"id": 336, "owner": {"id": 769}, "assignee": {"id": 802}}, "task": {"id": 320, "owner": {"id": 916}, "assignee": {"id": 42}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 388, "assignee": {"id": 593}, "organization": {"id": 629}, "project": {"id": 384, "owner": {"id": 769}, "assignee": {"id": 855}}, "task": {"id": 392, "owner": {"id": 976}, "assignee": {"id": 88}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 337, "assignee": {"id": 582}, "organization": {"id": 180}, "project": {"id": 338, "owner": {"id": 777}, "assignee": {"id": 843}}, "task": {"id": 394, "owner": {"id": 978}, "assignee": {"id": 70}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 382, "assignee": {"id": 510}, "organization": {"id": 636}, "project": {"id": 344, "owner": {"id": 757}, "assignee": {"id": 880}}, "task": {"id": 369, "owner": {"id": 964}, "assignee": {"id": 96}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "assignee": {"id": 556}, "organization": {"id": 161}, "project": {"id": 345, "owner": {"id": 722}, "assignee": {"id": 830}}, "task": {"id": 369, "owner": {"id": 951}, "assignee": {"id": 49}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "assignee": {"id": 598}, "organization": {"id": 684}, "project": {"id": 323, "owner": {"id": 703}, "assignee": {"id": 878}}, "task": {"id": 357, "owner": {"id": 935}, "assignee": {"id": 99}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "assignee": {"id": 592}, "organization": {"id": 169}, "project": {"id": 384, "owner": {"id": 759}, "assignee": {"id": 863}}, "task": {"id": 378, "owner": {"id": 968}, "assignee": {"id": 49}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "assignee": {"id": 573}, "organization": {"id": 655}, "project": {"id": 364, "owner": {"id": 763}, "assignee": {"id": 891}}, "task": {"id": 319, "owner": {"id": 916}, "assignee": {"id": 66}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 363, "assignee": {"id": 595}, "organization": {"id": 182}, "project": {"id": 382, "owner": {"id": 768}, "assignee": {"id": 840}}, "task": {"id": 387, "owner": {"id": 967}, "assignee": {"id": 51}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 387, "assignee": {"id": 580}, "organization": {"id": 630}, "project": {"id": 347, "owner": {"id": 706}, "assignee": {"id": 889}}, "task": {"id": 334, "owner": {"id": 903}, "assignee": {"id": 46}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 348, "assignee": {"id": 593}, "organization": {"id": 115}, "project": {"id": 342, "owner": {"id": 787}, "assignee": {"id": 858}}, "task": {"id": 372, "owner": {"id": 904}, "assignee": {"id": 86}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 335, "assignee": {"id": 569}, "organization": {"id": 622}, "project": {"id": 399, "owner": {"id": 795}, "assignee": {"id": 843}}, "task": {"id": 347, "owner": {"id": 934}, "assignee": {"id": 23}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 358, "assignee": {"id": 81}, "organization": {"id": 131}, "project": {"id": 325, "owner": {"id": 717}, "assignee": {"id": 845}}, "task": {"id": 378, "owner": {"id": 937}, "assignee": {"id": 1023}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 317, "assignee": {"id": 69}, "organization": {"id": 668}, "project": {"id": 394, "owner": {"id": 773}, "assignee": {"id": 834}}, "task": {"id": 350, "owner": {"id": 928}, "assignee": {"id": 1024}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "assignee": {"id": 68}, "organization": {"id": 197}, "project": {"id": 333, "owner": {"id": 710}, "assignee": {"id": 887}}, "task": {"id": 387, "owner": {"id": 941}, "assignee": {"id": 1023}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "assignee": {"id": 75}, "organization": {"id": 622}, "project": {"id": 343, "owner": {"id": 749}, "assignee": {"id": 821}}, "task": {"id": 373, "owner": {"id": 921}, "assignee": {"id": 1051}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "assignee": {"id": 13}, "organization": {"id": 171}, "project": {"id": 377, "owner": {"id": 787}, "assignee": {"id": 847}}, "task": {"id": 313, "owner": {"id": 928}, "assignee": {"id": 1064}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "assignee": {"id": 71}, "organization": {"id": 646}, "project": {"id": 303, "owner": {"id": 782}, "assignee": {"id": 862}}, "task": {"id": 366, "owner": {"id": 933}, "assignee": {"id": 1049}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 378, "assignee": {"id": 0}, "organization": {"id": 124}, "project": {"id": 362, "owner": {"id": 798}, "assignee": {"id": 887}}, "task": {"id": 336, "owner": {"id": 933}, "assignee": {"id": 1028}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 380, "assignee": {"id": 76}, "organization": {"id": 615}, "project": {"id": 386, "owner": {"id": 765}, "assignee": {"id": 873}}, "task": {"id": 309, "owner": {"id": 914}, "assignee": {"id": 1061}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 306, "assignee": {"id": 11}, "organization": {"id": 146}, "project": {"id": 390, "owner": {"id": 742}, "assignee": {"id": 874}}, "task": {"id": 330, "owner": {"id": 934}, "assignee": {"id": 1004}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"id": 350, "assignee": {"id": 25}, "organization": {"id": 611}, "project": {"id": 341, "owner": {"id": 737}, "assignee": {"id": 858}}, "task": {"id": 313, "owner": {"id": 941}, "assignee": {"id": 1041}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 393, "assignee": {"id": 12}, "organization": {"id": 130}, "project": {"id": 379, "owner": {"id": 727}, "assignee": {"id": 853}}, "task": {"id": 360, "owner": {"id": 993}, "assignee": {"id": 1067}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 357, "assignee": {"id": 13}, "organization": {"id": 605}, "project": {"id": 302, "owner": {"id": 779}, "assignee": {"id": 834}}, "task": {"id": 319, "owner": {"id": 989}, "assignee": {"id": 1082}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "assignee": {"id": 15}, "organization": {"id": 189}, "project": {"id": 345, "owner": {"id": 722}, "assignee": {"id": 858}}, "task": {"id": 349, "owner": {"id": 978}, "assignee": {"id": 1067}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "assignee": {"id": 0}, "organization": {"id": 671}, "project": {"id": 307, "owner": {"id": 777}, "assignee": {"id": 893}}, "task": {"id": 316, "owner": {"id": 996}, "assignee": {"id": 1061}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "assignee": {"id": 17}, "organization": {"id": 142}, "project": {"id": 367, "owner": {"id": 771}, "assignee": {"id": 898}}, "task": {"id": 344, "owner": {"id": 951}, "assignee": {"id": 1020}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "assignee": {"id": 96}, "organization": {"id": 653}, "project": {"id": 307, "owner": {"id": 741}, "assignee": {"id": 898}}, "task": {"id": 374, "owner": {"id": 964}, "assignee": {"id": 1053}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 356, "assignee": {"id": 43}, "organization": {"id": 194}, "project": {"id": 321, "owner": {"id": 717}, "assignee": {"id": 863}}, "task": {"id": 390, "owner": {"id": 943}, "assignee": {"id": 1065}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 335, "assignee": {"id": 91}, "organization": {"id": 680}, "project": {"id": 343, "owner": {"id": 793}, "assignee": {"id": 875}}, "task": {"id": 354, "owner": {"id": 946}, "assignee": {"id": 1040}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 322, "assignee": {"id": 42}, "organization": {"id": 103}, "project": {"id": 338, "owner": {"id": 778}, "assignee": {"id": 815}}, "task": {"id": 310, "owner": {"id": 988}, "assignee": {"id": 1054}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 300, "assignee": {"id": 82}, "organization": {"id": 605}, "project": {"id": 319, "owner": {"id": 739}, "assignee": {"id": 847}}, "task": {"id": 381, "owner": {"id": 929}, "assignee": {"id": 1075}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 330, "assignee": {"id": 41}, "organization": {"id": 143}, "project": {"id": 314, "owner": {"id": 741}, "assignee": {"id": 840}}, "task": {"id": 308, "owner": {"id": 926}, "assignee": {"id": 1000}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 304, "assignee": {"id": 87}, "organization": {"id": 626}, "project": {"id": 381, "owner": {"id": 781}, "assignee": {"id": 854}}, "task": {"id": 371, "owner": {"id": 994}, "assignee": {"id": 1023}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "assignee": {"id": 91}, "organization": {"id": 162}, "project": {"id": 367, "owner": {"id": 778}, "assignee": {"id": 849}}, "task": {"id": 349, "owner": {"id": 975}, "assignee": {"id": 1079}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "assignee": {"id": 82}, "organization": {"id": 628}, "project": {"id": 354, "owner": {"id": 757}, "assignee": {"id": 881}}, "task": {"id": 356, "owner": {"id": 992}, "assignee": {"id": 1037}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "assignee": {"id": 36}, "organization": {"id": 126}, "project": {"id": 346, "owner": {"id": 765}, "assignee": {"id": 894}}, "task": {"id": 390, "owner": {"id": 921}, "assignee": {"id": 1047}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "assignee": {"id": 8}, "organization": {"id": 622}, "project": {"id": 390, "owner": {"id": 769}, "assignee": {"id": 813}}, "task": {"id": 394, "owner": {"id": 917}, "assignee": {"id": 1024}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 377, "assignee": {"id": 48}, "organization": {"id": 194}, "project": {"id": 300, "owner": {"id": 780}, "assignee": {"id": 839}}, "task": {"id": 379, "owner": {"id": 911}, "assignee": {"id": 1007}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 311, "assignee": {"id": 70}, "organization": {"id": 631}, "project": {"id": 353, "owner": {"id": 733}, "assignee": {"id": 862}}, "task": {"id": 320, "owner": {"id": 926}, "assignee": {"id": 1091}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 303, "assignee": {"id": 85}, "organization": {"id": 158}, "project": {"id": 398, "owner": {"id": 760}, "assignee": {"id": 851}}, "task": {"id": 366, "owner": {"id": 990}, "assignee": {"id": 1011}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 323, "assignee": {"id": 80}, "organization": {"id": 661}, "project": {"id": 359, "owner": {"id": 741}, "assignee": {"id": 833}}, "task": {"id": 395, "owner": {"id": 946}, "assignee": {"id": 1071}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 317, "assignee": {"id": 65}, "organization": {"id": 199}, "project": {"id": 373, "owner": {"id": 704}, "assignee": {"id": 841}}, "task": {"id": 318, "owner": {"id": 979}, "assignee": {"id": 1011}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 394, "assignee": {"id": 6}, "organization": {"id": 648}, "project": {"id": 384, "owner": {"id": 770}, "assignee": {"id": 830}}, "task": {"id": 393, "owner": {"id": 913}, "assignee": {"id": 1050}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "assignee": {"id": 27}, "organization": {"id": 125}, "project": {"id": 382, "owner": {"id": 760}, "assignee": {"id": 822}}, "task": {"id": 308, "owner": {"id": 958}, "assignee": {"id": 1087}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "assignee": {"id": 23}, "organization": {"id": 627}, "project": {"id": 372, "owner": {"id": 783}, "assignee": {"id": 874}}, "task": {"id": 323, "owner": {"id": 903}, "assignee": {"id": 1041}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "assignee": {"id": 54}, "organization": {"id": 141}, "project": {"id": 327, "owner": {"id": 794}, "assignee": {"id": 852}}, "task": {"id": 321, "owner": {"id": 912}, "assignee": {"id": 1093}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "assignee": {"id": 21}, "organization": {"id": 681}, "project": {"id": 338, "owner": {"id": 730}, "assignee": {"id": 870}}, "task": {"id": 370, "owner": {"id": 918}, "assignee": {"id": 1030}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 346, "assignee": {"id": 34}, "organization": {"id": 153}, "project": {"id": 373, "owner": {"id": 769}, "assignee": {"id": 826}}, "task": {"id": 340, "owner": {"id": 971}, "assignee": {"id": 1039}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 362, "assignee": {"id": 50}, "organization": {"id": 682}, "project": {"id": 359, "owner": {"id": 794}, "assignee": {"id": 895}}, "task": {"id": 363, "owner": {"id": 928}, "assignee": {"id": 1020}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"id": 302, "assignee": {"id": 91}, "organization": {"id": 192}, "project": {"id": 333, "owner": {"id": 732}, "assignee": {"id": 873}}, "task": {"id": 399, "owner": {"id": 963}, "assignee": {"id": 1078}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"id": 323, "assignee": {"id": 56}, "organization": {"id": 677}, "project": {"id": 374, "owner": {"id": 756}, "assignee": {"id": 800}}, "task": {"id": 323, "owner": {"id": 973}, "assignee": {"id": 1022}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 307, "assignee": {"id": 92}, "organization": {"id": 114}, "project": {"id": 385, "owner": {"id": 776}, "assignee": {"id": 859}}, "task": {"id": 397, "owner": {"id": 967}, "assignee": {"id": 1063}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 19, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 362, "assignee": {"id": 19}, "organization": {"id": 641}, "project": {"id": 317, "owner": {"id": 774}, "assignee": {"id": 871}}, "task": {"id": 366, "owner": {"id": 931}, "assignee": {"id": 1016}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "assignee": {"id": 24}, "organization": {"id": 122}, "project": {"id": 346, "owner": {"id": 750}, "assignee": {"id": 893}}, "task": {"id": 392, "owner": {"id": 906}, "assignee": {"id": 1070}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "assignee": {"id": 64}, "organization": {"id": 697}, "project": {"id": 370, "owner": {"id": 762}, "assignee": {"id": 877}}, "task": {"id": 387, "owner": {"id": 959}, "assignee": {"id": 1066}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "assignee": {"id": 85}, "organization": {"id": 165}, "project": {"id": 326, "owner": {"id": 788}, "assignee": {"id": 894}}, "task": {"id": 392, "owner": {"id": 990}, "assignee": {"id": 1047}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "assignee": {"id": 25}, "organization": {"id": 681}, "project": {"id": 368, "owner": {"id": 750}, "assignee": {"id": 807}}, "task": {"id": 396, "owner": {"id": 998}, "assignee": {"id": 1005}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 338, "assignee": {"id": 58}, "organization": {"id": 108}, "project": {"id": 382, "owner": {"id": 710}, "assignee": {"id": 873}}, "task": {"id": 373, "owner": {"id": 941}, "assignee": {"id": 1014}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 320, "assignee": {"id": 73}, "organization": {"id": 693}, "project": {"id": 373, "owner": {"id": 711}, "assignee": {"id": 802}}, "task": {"id": 399, "owner": {"id": 919}, "assignee": {"id": 1082}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 61, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 393, "assignee": {"id": 61}, "organization": {"id": 135}, "project": {"id": 344, "owner": {"id": 784}, "assignee": {"id": 803}}, "task": {"id": 311, "owner": {"id": 938}, "assignee": {"id": 1025}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 394, "assignee": {"id": 60}, "organization": {"id": 624}, "project": {"id": 307, "owner": {"id": 778}, "assignee": {"id": 825}}, "task": {"id": 300, "owner": {"id": 973}, "assignee": {"id": 1053}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 387, "assignee": {"id": 575}, "organization": {"id": 119}, "project": {"id": 311, "owner": {"id": 777}, "assignee": {"id": 814}}, "task": {"id": 318, "owner": {"id": 950}, "assignee": {"id": 1006}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 319, "assignee": {"id": 514}, "organization": {"id": 626}, "project": {"id": 320, "owner": {"id": 715}, "assignee": {"id": 887}}, "task": {"id": 389, "owner": {"id": 958}, "assignee": {"id": 1052}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "assignee": {"id": 506}, "organization": {"id": 148}, "project": {"id": 377, "owner": {"id": 798}, "assignee": {"id": 895}}, "task": {"id": 386, "owner": {"id": 911}, "assignee": {"id": 1014}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "assignee": {"id": 516}, "organization": {"id": 623}, "project": {"id": 305, "owner": {"id": 715}, "assignee": {"id": 879}}, "task": {"id": 392, "owner": {"id": 904}, "assignee": {"id": 1057}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "assignee": {"id": 595}, "organization": {"id": 127}, "project": {"id": 397, "owner": {"id": 756}, "assignee": {"id": 831}}, "task": {"id": 325, "owner": {"id": 979}, "assignee": {"id": 1095}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "assignee": {"id": 573}, "organization": {"id": 624}, "project": {"id": 355, "owner": {"id": 748}, "assignee": {"id": 843}}, "task": {"id": 326, "owner": {"id": 968}, "assignee": {"id": 1001}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 383, "assignee": {"id": 585}, "organization": {"id": 112}, "project": {"id": 399, "owner": {"id": 766}, "assignee": {"id": 813}}, "task": {"id": 319, "owner": {"id": 997}, "assignee": {"id": 1036}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 336, "assignee": {"id": 502}, "organization": {"id": 671}, "project": {"id": 387, "owner": {"id": 750}, "assignee": {"id": 880}}, "task": {"id": 367, "owner": {"id": 917}, "assignee": {"id": 1043}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 341, "assignee": {"id": 517}, "organization": {"id": 189}, "project": {"id": 376, "owner": {"id": 736}, "assignee": {"id": 848}}, "task": {"id": 316, "owner": {"id": 902}, "assignee": {"id": 1075}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 344, "assignee": {"id": 592}, "organization": {"id": 648}, "project": {"id": 308, "owner": {"id": 794}, "assignee": {"id": 894}}, "task": {"id": 383, "owner": {"id": 900}, "assignee": {"id": 1027}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 376, "assignee": {"id": 544}, "organization": {"id": 129}, "project": {"id": 399, "owner": {"id": 788}, "assignee": {"id": 874}}, "task": {"id": 363, "owner": {"id": 902}, "assignee": {"id": 1099}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 315, "assignee": {"id": 518}, "organization": {"id": 635}, "project": {"id": 324, "owner": {"id": 754}, "assignee": {"id": 845}}, "task": {"id": 370, "owner": {"id": 941}, "assignee": {"id": 1069}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "assignee": {"id": 516}, "organization": {"id": 118}, "project": {"id": 303, "owner": {"id": 733}, "assignee": {"id": 809}}, "task": {"id": 395, "owner": {"id": 999}, "assignee": {"id": 1019}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "assignee": {"id": 554}, "organization": {"id": 615}, "project": {"id": 346, "owner": {"id": 778}, "assignee": {"id": 820}}, "task": {"id": 361, "owner": {"id": 929}, "assignee": {"id": 1071}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "assignee": {"id": 576}, "organization": {"id": 175}, "project": {"id": 307, "owner": {"id": 756}, "assignee": {"id": 892}}, "task": {"id": 392, "owner": {"id": 910}, "assignee": {"id": 1055}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "assignee": {"id": 529}, "organization": {"id": 616}, "project": {"id": 316, "owner": {"id": 736}, "assignee": {"id": 867}}, "task": {"id": 383, "owner": {"id": 913}, "assignee": {"id": 1043}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 31, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 387, "assignee": {"id": 580}, "organization": {"id": 107}, "project": {"id": 300, "owner": {"id": 728}, "assignee": {"id": 889}}, "task": {"id": 390, "owner": {"id": 936}, "assignee": {"id": 1004}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 302, "assignee": {"id": 578}, "organization": {"id": 646}, "project": {"id": 351, "owner": {"id": 763}, "assignee": {"id": 872}}, "task": {"id": 398, "owner": {"id": 981}, "assignee": {"id": 1057}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 379, "assignee": {"id": 508}, "organization": {"id": 154}, "project": {"id": 356, "owner": {"id": 775}, "assignee": {"id": 886}}, "task": {"id": 399, "owner": {"id": 944}, "assignee": {"id": 1047}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 331, "assignee": {"id": 532}, "organization": {"id": 661}, "project": {"id": 313, "owner": {"id": 717}, "assignee": {"id": 832}}, "task": {"id": 359, "owner": {"id": 955}, "assignee": {"id": 1000}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 307, "assignee": {"id": 598}, "organization": {"id": 170}, "project": {"id": 365, "owner": {"id": 715}, "assignee": {"id": 804}}, "task": {"id": 326, "owner": {"id": 903}, "assignee": {"id": 1094}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"id": 312, "assignee": {"id": 557}, "organization": {"id": 651}, "project": {"id": 335, "owner": {"id": 797}, "assignee": {"id": 811}}, "task": {"id": 362, "owner": {"id": 920}, "assignee": {"id": 1054}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 301, "assignee": {"id": 566}, "organization": {"id": 103}, "project": {"id": 393, "owner": {"id": 785}, "assignee": {"id": 846}}, "task": {"id": 357, "owner": {"id": 913}, "assignee": {"id": 1018}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "assignee": {"id": 543}, "organization": {"id": 690}, "project": {"id": 307, "owner": {"id": 759}, "assignee": {"id": 810}}, "task": {"id": 325, "owner": {"id": 965}, "assignee": {"id": 1005}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "assignee": {"id": 506}, "organization": {"id": 167}, "project": {"id": 391, "owner": {"id": 729}, "assignee": {"id": 842}}, "task": {"id": 310, "owner": {"id": 906}, "assignee": {"id": 1036}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "assignee": {"id": 538}, "organization": {"id": 625}, "project": {"id": 351, "owner": {"id": 722}, "assignee": {"id": 814}}, "task": {"id": 390, "owner": {"id": 925}, "assignee": {"id": 1003}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 323, "assignee": {"id": 544}, "organization": {"id": 176}, "project": {"id": 367, "owner": {"id": 786}, "assignee": {"id": 845}}, "task": {"id": 357, "owner": {"id": 954}, "assignee": {"id": 1090}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 363, "assignee": {"id": 503}, "organization": {"id": 626}, "project": {"id": 315, "owner": {"id": 771}, "assignee": {"id": 800}}, "task": {"id": 342, "owner": {"id": 925}, "assignee": {"id": 1085}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 351, "assignee": {"id": 520}, "organization": {"id": 174}, "project": {"id": 332, "owner": {"id": 755}, "assignee": {"id": 850}}, "task": {"id": 355, "owner": {"id": 919}, "assignee": {"id": 1010}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 367, "assignee": {"id": 530}, "organization": {"id": 617}, "project": {"id": 389, "owner": {"id": 760}, "assignee": {"id": 802}}, "task": {"id": 304, "owner": {"id": 907}, "assignee": {"id": 1034}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 312, "assignee": {"id": 539}, "organization": {"id": 157}, "project": {"id": 380, "owner": {"id": 775}, "assignee": {"id": 803}}, "task": {"id": 396, "owner": {"id": 908}, "assignee": {"id": 1014}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 362, "assignee": {"id": 585}, "organization": {"id": 659}, "project": {"id": 315, "owner": {"id": 732}, "assignee": {"id": 804}}, "task": {"id": 302, "owner": {"id": 995}, "assignee": {"id": 1083}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "assignee": {"id": 598}, "organization": {"id": 189}, "project": {"id": 308, "owner": {"id": 791}, "assignee": {"id": 872}}, "task": {"id": 396, "owner": {"id": 989}, "assignee": {"id": 1090}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "assignee": {"id": 500}, "organization": {"id": 640}, "project": {"id": 331, "owner": {"id": 785}, "assignee": {"id": 890}}, "task": {"id": 308, "owner": {"id": 940}, "assignee": {"id": 1022}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "assignee": {"id": 564}, "organization": {"id": 167}, "project": {"id": 375, "owner": {"id": 738}, "assignee": {"id": 882}}, "task": {"id": 376, "owner": {"id": 963}, "assignee": {"id": 1050}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "assignee": {"id": 528}, "organization": {"id": 682}, "project": {"id": 308, "owner": {"id": 725}, "assignee": {"id": 859}}, "task": {"id": 375, "owner": {"id": 956}, "assignee": {"id": 1087}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 377, "assignee": {"id": 571}, "organization": {"id": 162}, "project": {"id": 337, "owner": {"id": 713}, "assignee": {"id": 852}}, "task": {"id": 348, "owner": {"id": 912}, "assignee": {"id": 1019}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 306, "assignee": {"id": 562}, "organization": {"id": 661}, "project": {"id": 373, "owner": {"id": 734}, "assignee": {"id": 831}}, "task": {"id": 329, "owner": {"id": 922}, "assignee": {"id": 1097}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 326, "assignee": {"id": 594}, "organization": {"id": 114}, "project": {"id": 365, "owner": {"id": 785}, "assignee": {"id": 875}}, "task": {"id": 376, "owner": {"id": 937}, "assignee": {"id": 1074}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 357, "assignee": {"id": 501}, "organization": {"id": 608}, "project": {"id": 391, "owner": {"id": 733}, "assignee": {"id": 821}}, "task": {"id": 355, "owner": {"id": 984}, "assignee": {"id": 1017}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"id": 306, "assignee": {"id": 565}, "organization": {"id": 184}, "project": {"id": 369, "owner": {"id": 721}, "assignee": {"id": 813}}, "task": {"id": 311, "owner": {"id": 952}, "assignee": {"id": 1007}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 384, "assignee": {"id": 503}, "organization": {"id": 680}, "project": {"id": 384, "owner": {"id": 780}, "assignee": {"id": 833}}, "task": {"id": 312, "owner": {"id": 969}, "assignee": {"id": 1010}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 389, "assignee": {"id": 596}, "organization": {"id": 118}, "project": {"id": 373, "owner": {"id": 765}, "assignee": {"id": 876}}, "task": {"id": 364, "owner": {"id": 999}, "assignee": {"id": 1074}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "assignee": {"id": 556}, "organization": {"id": 602}, "project": {"id": 393, "owner": {"id": 768}, "assignee": {"id": 864}}, "task": {"id": 380, "owner": {"id": 975}, "assignee": {"id": 1037}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "assignee": {"id": 569}, "organization": {"id": 157}, "project": {"id": 333, "owner": {"id": 738}, "assignee": {"id": 868}}, "task": {"id": 317, "owner": {"id": 920}, "assignee": {"id": 1097}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "assignee": {"id": 565}, "organization": {"id": 694}, "project": {"id": 329, "owner": {"id": 773}, "assignee": {"id": 856}}, "task": {"id": 364, "owner": {"id": 947}, "assignee": {"id": 1056}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 307, "assignee": {"id": 503}, "organization": {"id": 111}, "project": {"id": 369, "owner": {"id": 705}, "assignee": {"id": 853}}, "task": {"id": 360, "owner": {"id": 940}, "assignee": {"id": 1060}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 324, "assignee": {"id": 548}, "organization": {"id": 672}, "project": {"id": 310, "owner": {"id": 738}, "assignee": {"id": 876}}, "task": {"id": 351, "owner": {"id": 911}, "assignee": {"id": 1097}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 320, "assignee": {"id": 565}, "organization": {"id": 171}, "project": {"id": 386, "owner": {"id": 775}, "assignee": {"id": 834}}, "task": {"id": 321, "owner": {"id": 976}, "assignee": {"id": 1085}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 319, "assignee": {"id": 559}, "organization": {"id": 692}, "project": {"id": 396, "owner": {"id": 750}, "assignee": {"id": 874}}, "task": {"id": 385, "owner": {"id": 961}, "assignee": {"id": 1085}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": null}, "resource": {"id": 345, "assignee": {"id": 574}, "organization": {"id": 697}, "project": {"id": 331, "owner": {"id": 16}, "assignee": {"id": 852}}, "task": {"id": 335, "owner": {"id": 969}, "assignee": {"id": 1069}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": null}, "resource": {"id": 340, "assignee": {"id": 583}, "organization": {"id": 604}, "project": {"id": 324, "owner": {"id": 53}, "assignee": {"id": 837}}, "task": {"id": 335, "owner": {"id": 903}, "assignee": {"id": 1072}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": null}, "resource": {"id": 387, "assignee": {"id": 599}, "organization": {"id": 661}, "project": {"id": 346, "owner": {"id": 44}, "assignee": {"id": 889}}, "task": {"id": 348, "owner": {"id": 988}, "assignee": {"id": 1005}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": null}, "resource": {"id": 328, "assignee": {"id": 524}, "organization": {"id": 664}, "project": {"id": 377, "owner": {"id": 33}, "assignee": {"id": 854}}, "task": {"id": 316, "owner": {"id": 931}, "assignee": {"id": 1047}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": null}, "resource": {"id": 345, "assignee": {"id": 556}, "organization": {"id": 601}, "project": {"id": 334, "owner": {"id": 21}, "assignee": {"id": 817}}, "task": {"id": 391, "owner": {"id": 952}, "assignee": {"id": 1033}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": null}, "resource": {"id": 393, "assignee": {"id": 510}, "organization": {"id": 657}, "project": {"id": 356, "owner": {"id": 799}, "assignee": {"id": 85}}, "task": {"id": 397, "owner": {"id": 926}, "assignee": {"id": 1031}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": null}, "resource": {"id": 308, "assignee": {"id": 560}, "organization": {"id": 677}, "project": {"id": 379, "owner": {"id": 727}, "assignee": {"id": 1}}, "task": {"id": 390, "owner": {"id": 970}, "assignee": {"id": 1013}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 71, "privilege": "user"}, "organization": null}, "resource": {"id": 320, "assignee": {"id": 572}, "organization": {"id": 626}, "project": {"id": 322, "owner": {"id": 766}, "assignee": {"id": 71}}, "task": {"id": 306, "owner": {"id": 991}, "assignee": {"id": 1073}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": null}, "resource": {"id": 300, "assignee": {"id": 547}, "organization": {"id": 635}, "project": {"id": 342, "owner": {"id": 795}, "assignee": {"id": 42}}, "task": {"id": 348, "owner": {"id": 956}, "assignee": {"id": 1009}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": null}, "resource": {"id": 303, "assignee": {"id": 547}, "organization": {"id": 675}, "project": {"id": 354, "owner": {"id": 723}, "assignee": {"id": 58}}, "task": {"id": 358, "owner": {"id": 909}, "assignee": {"id": 1072}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": null}, "resource": {"id": 346, "assignee": {"id": 534}, "organization": {"id": 616}, "project": {"id": 313, "owner": {"id": 770}, "assignee": {"id": 844}}, "task": {"id": 387, "owner": {"id": 62}, "assignee": {"id": 1047}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": null}, "resource": {"id": 313, "assignee": {"id": 584}, "organization": {"id": 611}, "project": {"id": 340, "owner": {"id": 723}, "assignee": {"id": 854}}, "task": {"id": 310, "owner": {"id": 95}, "assignee": {"id": 1005}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": null}, "resource": {"id": 308, "assignee": {"id": 559}, "organization": {"id": 637}, "project": {"id": 327, "owner": {"id": 793}, "assignee": {"id": 846}}, "task": {"id": 356, "owner": {"id": 97}, "assignee": {"id": 1067}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": null}, "resource": {"id": 399, "assignee": {"id": 564}, "organization": {"id": 649}, "project": {"id": 312, "owner": {"id": 776}, "assignee": {"id": 887}}, "task": {"id": 302, "owner": {"id": 37}, "assignee": {"id": 1042}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": null}, "resource": {"id": 308, "assignee": {"id": 506}, "organization": {"id": 601}, "project": {"id": 350, "owner": {"id": 736}, "assignee": {"id": 886}}, "task": {"id": 379, "owner": {"id": 98}, "assignee": {"id": 1038}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": null}, "resource": {"id": 324, "assignee": {"id": 572}, "organization": {"id": 636}, "project": {"id": 339, "owner": {"id": 774}, "assignee": {"id": 889}}, "task": {"id": 347, "owner": {"id": 928}, "assignee": {"id": 0}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": null}, "resource": {"id": 372, "assignee": {"id": 571}, "organization": {"id": 669}, "project": {"id": 357, "owner": {"id": 741}, "assignee": {"id": 872}}, "task": {"id": 323, "owner": {"id": 911}, "assignee": {"id": 75}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 71, "privilege": "user"}, "organization": null}, "resource": {"id": 395, "assignee": {"id": 559}, "organization": {"id": 688}, "project": {"id": 360, "owner": {"id": 721}, "assignee": {"id": 890}}, "task": {"id": 388, "owner": {"id": 912}, "assignee": {"id": 71}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": null}, "resource": {"id": 316, "assignee": {"id": 504}, "organization": {"id": 681}, "project": {"id": 326, "owner": {"id": 706}, "assignee": {"id": 835}}, "task": {"id": 391, "owner": {"id": 989}, "assignee": {"id": 28}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": null}, "resource": {"id": 310, "assignee": {"id": 525}, "organization": {"id": 615}, "project": {"id": 353, "owner": {"id": 762}, "assignee": {"id": 801}}, "task": {"id": 364, "owner": {"id": 907}, "assignee": {"id": 51}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": null}, "resource": {"id": 363, "assignee": {"id": 81}, "organization": {"id": 687}, "project": {"id": 379, "owner": {"id": 712}, "assignee": {"id": 894}}, "task": {"id": 379, "owner": {"id": 952}, "assignee": {"id": 1018}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": null}, "resource": {"id": 348, "assignee": {"id": 36}, "organization": {"id": 655}, "project": {"id": 326, "owner": {"id": 735}, "assignee": {"id": 816}}, "task": {"id": 310, "owner": {"id": 922}, "assignee": {"id": 1043}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": null}, "resource": {"id": 318, "assignee": {"id": 35}, "organization": {"id": 610}, "project": {"id": 347, "owner": {"id": 793}, "assignee": {"id": 870}}, "task": {"id": 357, "owner": {"id": 911}, "assignee": {"id": 1071}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": null}, "resource": {"id": 324, "assignee": {"id": 15}, "organization": {"id": 654}, "project": {"id": 303, "owner": {"id": 777}, "assignee": {"id": 838}}, "task": {"id": 329, "owner": {"id": 973}, "assignee": {"id": 1088}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": null}, "resource": {"id": 358, "assignee": {"id": 64}, "organization": {"id": 665}, "project": {"id": 323, "owner": {"id": 749}, "assignee": {"id": 877}}, "task": {"id": 363, "owner": {"id": 915}, "assignee": {"id": 1097}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": null}, "resource": {"id": 349, "assignee": {"id": 531}, "organization": {"id": 681}, "project": {"id": 392, "owner": {"id": 761}, "assignee": {"id": 831}}, "task": {"id": 308, "owner": {"id": 982}, "assignee": {"id": 1014}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": null}, "resource": {"id": 341, "assignee": {"id": 557}, "organization": {"id": 670}, "project": {"id": 363, "owner": {"id": 745}, "assignee": {"id": 823}}, "task": {"id": 307, "owner": {"id": 961}, "assignee": {"id": 1000}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": null}, "resource": {"id": 398, "assignee": {"id": 548}, "organization": {"id": 642}, "project": {"id": 339, "owner": {"id": 724}, "assignee": {"id": 803}}, "task": {"id": 365, "owner": {"id": 986}, "assignee": {"id": 1092}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": null}, "resource": {"id": 372, "assignee": {"id": 583}, "organization": {"id": 645}, "project": {"id": 317, "owner": {"id": 772}, "assignee": {"id": 889}}, "task": {"id": 348, "owner": {"id": 928}, "assignee": {"id": 1041}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 61, "privilege": "none"}, "organization": null}, "resource": {"id": 328, "assignee": {"id": 506}, "organization": {"id": 675}, "project": {"id": 342, "owner": {"id": 764}, "assignee": {"id": 853}}, "task": {"id": 316, "owner": {"id": 977}, "assignee": {"id": 1092}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 334, "assignee": {"id": 512}, "organization": {"id": 107}, "project": {"id": 320, "owner": {"id": 16}, "assignee": {"id": 801}}, "task": {"id": 397, "owner": {"id": 973}, "assignee": {"id": 1057}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 322, "assignee": {"id": 514}, "organization": {"id": 661}, "project": {"id": 397, "owner": {"id": 44}, "assignee": {"id": 861}}, "task": {"id": 341, "owner": {"id": 938}, "assignee": {"id": 1066}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "assignee": {"id": 590}, "organization": {"id": 104}, "project": {"id": 347, "owner": {"id": 16}, "assignee": {"id": 860}}, "task": {"id": 374, "owner": {"id": 916}, "assignee": {"id": 1099}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 301, "assignee": {"id": 505}, "organization": {"id": 638}, "project": {"id": 335, "owner": {"id": 18}, "assignee": {"id": 855}}, "task": {"id": 338, "owner": {"id": 948}, "assignee": {"id": 1008}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "assignee": {"id": 572}, "organization": {"id": 114}, "project": {"id": 303, "owner": {"id": 99}, "assignee": {"id": 894}}, "task": {"id": 345, "owner": {"id": 913}, "assignee": {"id": 1017}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "assignee": {"id": 559}, "organization": {"id": 642}, "project": {"id": 350, "owner": {"id": 24}, "assignee": {"id": 867}}, "task": {"id": 390, "owner": {"id": 976}, "assignee": {"id": 1050}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 343, "assignee": {"id": 580}, "organization": {"id": 127}, "project": {"id": 360, "owner": {"id": 78}, "assignee": {"id": 871}}, "task": {"id": 355, "owner": {"id": 910}, "assignee": {"id": 1073}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 333, "assignee": {"id": 590}, "organization": {"id": 646}, "project": {"id": 370, "owner": {"id": 50}, "assignee": {"id": 824}}, "task": {"id": 333, "owner": {"id": 989}, "assignee": {"id": 1041}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 310, "assignee": {"id": 509}, "organization": {"id": 124}, "project": {"id": 369, "owner": {"id": 23}, "assignee": {"id": 847}}, "task": {"id": 306, "owner": {"id": 926}, "assignee": {"id": 1037}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"id": 320, "assignee": {"id": 585}, "organization": {"id": 694}, "project": {"id": 317, "owner": {"id": 37}, "assignee": {"id": 831}}, "task": {"id": 324, "owner": {"id": 939}, "assignee": {"id": 1058}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 352, "assignee": {"id": 526}, "organization": {"id": 174}, "project": {"id": 313, "owner": {"id": 91}, "assignee": {"id": 838}}, "task": {"id": 329, "owner": {"id": 984}, "assignee": {"id": 1057}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 364, "assignee": {"id": 594}, "organization": {"id": 688}, "project": {"id": 386, "owner": {"id": 70}, "assignee": {"id": 850}}, "task": {"id": 369, "owner": {"id": 903}, "assignee": {"id": 1004}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "assignee": {"id": 590}, "organization": {"id": 183}, "project": {"id": 372, "owner": {"id": 19}, "assignee": {"id": 848}}, "task": {"id": 396, "owner": {"id": 974}, "assignee": {"id": 1006}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "assignee": {"id": 584}, "organization": {"id": 662}, "project": {"id": 356, "owner": {"id": 4}, "assignee": {"id": 808}}, "task": {"id": 359, "owner": {"id": 933}, "assignee": {"id": 1024}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 340, "assignee": {"id": 507}, "organization": {"id": 178}, "project": {"id": 329, "owner": {"id": 71}, "assignee": {"id": 846}}, "task": {"id": 306, "owner": {"id": 920}, "assignee": {"id": 1020}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "assignee": {"id": 550}, "organization": {"id": 643}, "project": {"id": 323, "owner": {"id": 97}, "assignee": {"id": 896}}, "task": {"id": 343, "owner": {"id": 993}, "assignee": {"id": 1096}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 325, "assignee": {"id": 517}, "organization": {"id": 142}, "project": {"id": 319, "owner": {"id": 17}, "assignee": {"id": 829}}, "task": {"id": 301, "owner": {"id": 917}, "assignee": {"id": 1002}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 373, "assignee": {"id": 513}, "organization": {"id": 627}, "project": {"id": 326, "owner": {"id": 32}, "assignee": {"id": 829}}, "task": {"id": 302, "owner": {"id": 928}, "assignee": {"id": 1025}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 356, "assignee": {"id": 508}, "organization": {"id": 156}, "project": {"id": 388, "owner": {"id": 1}, "assignee": {"id": 885}}, "task": {"id": 354, "owner": {"id": 958}, "assignee": {"id": 1046}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 318, "assignee": {"id": 599}, "organization": {"id": 661}, "project": {"id": 378, "owner": {"id": 95}, "assignee": {"id": 844}}, "task": {"id": 396, "owner": {"id": 940}, "assignee": {"id": 1031}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 335, "assignee": {"id": 582}, "organization": {"id": 171}, "project": {"id": 326, "owner": {"id": 74}, "assignee": {"id": 810}}, "task": {"id": 322, "owner": {"id": 929}, "assignee": {"id": 1094}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 333, "assignee": {"id": 562}, "organization": {"id": 621}, "project": {"id": 330, "owner": {"id": 5}, "assignee": {"id": 827}}, "task": {"id": 334, "owner": {"id": 991}, "assignee": {"id": 1016}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "assignee": {"id": 558}, "organization": {"id": 120}, "project": {"id": 374, "owner": {"id": 91}, "assignee": {"id": 898}}, "task": {"id": 302, "owner": {"id": 911}, "assignee": {"id": 1058}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "assignee": {"id": 516}, "organization": {"id": 637}, "project": {"id": 306, "owner": {"id": 33}, "assignee": {"id": 807}}, "task": {"id": 356, "owner": {"id": 992}, "assignee": {"id": 1052}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "assignee": {"id": 593}, "organization": {"id": 133}, "project": {"id": 313, "owner": {"id": 41}, "assignee": {"id": 882}}, "task": {"id": 381, "owner": {"id": 988}, "assignee": {"id": 1063}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "assignee": {"id": 579}, "organization": {"id": 676}, "project": {"id": 323, "owner": {"id": 69}, "assignee": {"id": 806}}, "task": {"id": 349, "owner": {"id": 946}, "assignee": {"id": 1081}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 356, "assignee": {"id": 519}, "organization": {"id": 119}, "project": {"id": 360, "owner": {"id": 23}, "assignee": {"id": 818}}, "task": {"id": 343, "owner": {"id": 964}, "assignee": {"id": 1008}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 376, "assignee": {"id": 505}, "organization": {"id": 674}, "project": {"id": 388, "owner": {"id": 36}, "assignee": {"id": 849}}, "task": {"id": 350, "owner": {"id": 997}, "assignee": {"id": 1068}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 364, "assignee": {"id": 592}, "organization": {"id": 173}, "project": {"id": 318, "owner": {"id": 57}, "assignee": {"id": 862}}, "task": {"id": 331, "owner": {"id": 980}, "assignee": {"id": 1024}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 309, "assignee": {"id": 523}, "organization": {"id": 612}, "project": {"id": 316, "owner": {"id": 58}, "assignee": {"id": 811}}, "task": {"id": 306, "owner": {"id": 915}, "assignee": {"id": 1067}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 330, "assignee": {"id": 589}, "organization": {"id": 109}, "project": {"id": 388, "owner": {"id": 85}, "assignee": {"id": 853}}, "task": {"id": 395, "owner": {"id": 978}, "assignee": {"id": 1006}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 306, "assignee": {"id": 562}, "organization": {"id": 637}, "project": {"id": 388, "owner": {"id": 45}, "assignee": {"id": 880}}, "task": {"id": 328, "owner": {"id": 976}, "assignee": {"id": 1019}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "assignee": {"id": 579}, "organization": {"id": 114}, "project": {"id": 388, "owner": {"id": 97}, "assignee": {"id": 822}}, "task": {"id": 376, "owner": {"id": 940}, "assignee": {"id": 1094}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "assignee": {"id": 522}, "organization": {"id": 622}, "project": {"id": 318, "owner": {"id": 28}, "assignee": {"id": 849}}, "task": {"id": 395, "owner": {"id": 932}, "assignee": {"id": 1031}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "assignee": {"id": 520}, "organization": {"id": 148}, "project": {"id": 346, "owner": {"id": 22}, "assignee": {"id": 819}}, "task": {"id": 318, "owner": {"id": 914}, "assignee": {"id": 1048}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "assignee": {"id": 587}, "organization": {"id": 633}, "project": {"id": 375, "owner": {"id": 94}, "assignee": {"id": 848}}, "task": {"id": 324, "owner": {"id": 924}, "assignee": {"id": 1094}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 369, "assignee": {"id": 525}, "organization": {"id": 166}, "project": {"id": 337, "owner": {"id": 64}, "assignee": {"id": 838}}, "task": {"id": 356, "owner": {"id": 902}, "assignee": {"id": 1039}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 365, "assignee": {"id": 576}, "organization": {"id": 674}, "project": {"id": 342, "owner": {"id": 1}, "assignee": {"id": 834}}, "task": {"id": 359, "owner": {"id": 902}, "assignee": {"id": 1021}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 387, "assignee": {"id": 548}, "organization": {"id": 124}, "project": {"id": 364, "owner": {"id": 40}, "assignee": {"id": 844}}, "task": {"id": 309, "owner": {"id": 978}, "assignee": {"id": 1098}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"id": 357, "assignee": {"id": 563}, "organization": {"id": 632}, "project": {"id": 379, "owner": {"id": 84}, "assignee": {"id": 823}}, "task": {"id": 350, "owner": {"id": 954}, "assignee": {"id": 1081}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 376, "assignee": {"id": 594}, "organization": {"id": 140}, "project": {"id": 353, "owner": {"id": 60}, "assignee": {"id": 834}}, "task": {"id": 323, "owner": {"id": 957}, "assignee": {"id": 1063}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 320, "assignee": {"id": 545}, "organization": {"id": 672}, "project": {"id": 319, "owner": {"id": 69}, "assignee": {"id": 853}}, "task": {"id": 310, "owner": {"id": 951}, "assignee": {"id": 1044}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "assignee": {"id": 517}, "organization": {"id": 136}, "project": {"id": 383, "owner": {"id": 75}, "assignee": {"id": 873}}, "task": {"id": 392, "owner": {"id": 920}, "assignee": {"id": 1019}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "assignee": {"id": 541}, "organization": {"id": 698}, "project": {"id": 352, "owner": {"id": 40}, "assignee": {"id": 805}}, "task": {"id": 319, "owner": {"id": 975}, "assignee": {"id": 1040}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 19, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "assignee": {"id": 574}, "organization": {"id": 182}, "project": {"id": 329, "owner": {"id": 19}, "assignee": {"id": 831}}, "task": {"id": 359, "owner": {"id": 985}, "assignee": {"id": 1092}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "assignee": {"id": 579}, "organization": {"id": 692}, "project": {"id": 337, "owner": {"id": 48}, "assignee": {"id": 897}}, "task": {"id": 323, "owner": {"id": 905}, "assignee": {"id": 1055}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 384, "assignee": {"id": 533}, "organization": {"id": 124}, "project": {"id": 365, "owner": {"id": 12}, "assignee": {"id": 882}}, "task": {"id": 385, "owner": {"id": 970}, "assignee": {"id": 1043}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 392, "assignee": {"id": 513}, "organization": {"id": 628}, "project": {"id": 383, "owner": {"id": 73}, "assignee": {"id": 897}}, "task": {"id": 305, "owner": {"id": 905}, "assignee": {"id": 1034}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 390, "assignee": {"id": 520}, "organization": {"id": 147}, "project": {"id": 382, "owner": {"id": 9}, "assignee": {"id": 822}}, "task": {"id": 319, "owner": {"id": 912}, "assignee": {"id": 1022}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 337, "assignee": {"id": 565}, "organization": {"id": 684}, "project": {"id": 314, "owner": {"id": 69}, "assignee": {"id": 847}}, "task": {"id": 368, "owner": {"id": 919}, "assignee": {"id": 1055}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 363, "assignee": {"id": 551}, "organization": {"id": 133}, "project": {"id": 301, "owner": {"id": 713}, "assignee": {"id": 41}}, "task": {"id": 374, "owner": {"id": 914}, "assignee": {"id": 1067}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 368, "assignee": {"id": 507}, "organization": {"id": 649}, "project": {"id": 339, "owner": {"id": 739}, "assignee": {"id": 5}}, "task": {"id": 317, "owner": {"id": 986}, "assignee": {"id": 1000}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 372, "assignee": {"id": 564}, "organization": {"id": 141}, "project": {"id": 356, "owner": {"id": 781}, "assignee": {"id": 66}}, "task": {"id": 361, "owner": {"id": 931}, "assignee": {"id": 1040}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "assignee": {"id": 549}, "organization": {"id": 681}, "project": {"id": 351, "owner": {"id": 736}, "assignee": {"id": 95}}, "task": {"id": 395, "owner": {"id": 939}, "assignee": {"id": 1099}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "assignee": {"id": 592}, "organization": {"id": 191}, "project": {"id": 327, "owner": {"id": 737}, "assignee": {"id": 18}}, "task": {"id": 323, "owner": {"id": 914}, "assignee": {"id": 1078}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "assignee": {"id": 522}, "organization": {"id": 609}, "project": {"id": 324, "owner": {"id": 723}, "assignee": {"id": 5}}, "task": {"id": 339, "owner": {"id": 988}, "assignee": {"id": 1008}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 378, "assignee": {"id": 532}, "organization": {"id": 198}, "project": {"id": 327, "owner": {"id": 714}, "assignee": {"id": 72}}, "task": {"id": 393, "owner": {"id": 962}, "assignee": {"id": 1065}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 314, "assignee": {"id": 511}, "organization": {"id": 660}, "project": {"id": 378, "owner": {"id": 757}, "assignee": {"id": 78}}, "task": {"id": 397, "owner": {"id": 952}, "assignee": {"id": 1075}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 335, "assignee": {"id": 573}, "organization": {"id": 114}, "project": {"id": 367, "owner": {"id": 712}, "assignee": {"id": 25}}, "task": {"id": 320, "owner": {"id": 965}, "assignee": {"id": 1089}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 370, "assignee": {"id": 502}, "organization": {"id": 607}, "project": {"id": 328, "owner": {"id": 755}, "assignee": {"id": 88}}, "task": {"id": 352, "owner": {"id": 902}, "assignee": {"id": 1094}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 390, "assignee": {"id": 500}, "organization": {"id": 124}, "project": {"id": 300, "owner": {"id": 744}, "assignee": {"id": 43}}, "task": {"id": 395, "owner": {"id": 920}, "assignee": {"id": 1069}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 350, "assignee": {"id": 524}, "organization": {"id": 612}, "project": {"id": 300, "owner": {"id": 741}, "assignee": {"id": 34}}, "task": {"id": 305, "owner": {"id": 941}, "assignee": {"id": 1022}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 330, "assignee": {"id": 570}, "organization": {"id": 121}, "project": {"id": 300, "owner": {"id": 745}, "assignee": {"id": 78}}, "task": {"id": 388, "owner": {"id": 920}, "assignee": {"id": 1053}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "assignee": {"id": 572}, "organization": {"id": 698}, "project": {"id": 378, "owner": {"id": 707}, "assignee": {"id": 89}}, "task": {"id": 357, "owner": {"id": 950}, "assignee": {"id": 1068}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "assignee": {"id": 596}, "organization": {"id": 149}, "project": {"id": 331, "owner": {"id": 729}, "assignee": {"id": 78}}, "task": {"id": 371, "owner": {"id": 926}, "assignee": {"id": 1064}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "assignee": {"id": 527}, "organization": {"id": 661}, "project": {"id": 352, "owner": {"id": 795}, "assignee": {"id": 14}}, "task": {"id": 364, "owner": {"id": 943}, "assignee": {"id": 1081}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 396, "assignee": {"id": 598}, "organization": {"id": 139}, "project": {"id": 322, "owner": {"id": 750}, "assignee": {"id": 70}}, "task": {"id": 313, "owner": {"id": 931}, "assignee": {"id": 1055}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 313, "assignee": {"id": 500}, "organization": {"id": 609}, "project": {"id": 324, "owner": {"id": 719}, "assignee": {"id": 28}}, "task": {"id": 364, "owner": {"id": 920}, "assignee": {"id": 1025}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 319, "assignee": {"id": 512}, "organization": {"id": 194}, "project": {"id": 369, "owner": {"id": 765}, "assignee": {"id": 59}}, "task": {"id": 328, "owner": {"id": 944}, "assignee": {"id": 1023}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 393, "assignee": {"id": 508}, "organization": {"id": 667}, "project": {"id": 361, "owner": {"id": 741}, "assignee": {"id": 2}}, "task": {"id": 397, "owner": {"id": 994}, "assignee": {"id": 1089}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 363, "assignee": {"id": 549}, "organization": {"id": 174}, "project": {"id": 383, "owner": {"id": 705}, "assignee": {"id": 47}}, "task": {"id": 396, "owner": {"id": 980}, "assignee": {"id": 1092}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 300, "assignee": {"id": 581}, "organization": {"id": 668}, "project": {"id": 366, "owner": {"id": 712}, "assignee": {"id": 9}}, "task": {"id": 334, "owner": {"id": 931}, "assignee": {"id": 1098}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "assignee": {"id": 577}, "organization": {"id": 175}, "project": {"id": 352, "owner": {"id": 714}, "assignee": {"id": 45}}, "task": {"id": 364, "owner": {"id": 988}, "assignee": {"id": 1014}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "assignee": {"id": 568}, "organization": {"id": 682}, "project": {"id": 331, "owner": {"id": 769}, "assignee": {"id": 63}}, "task": {"id": 338, "owner": {"id": 944}, "assignee": {"id": 1084}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "assignee": {"id": 502}, "organization": {"id": 151}, "project": {"id": 393, "owner": {"id": 719}, "assignee": {"id": 89}}, "task": {"id": 350, "owner": {"id": 948}, "assignee": {"id": 1047}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "assignee": {"id": 597}, "organization": {"id": 621}, "project": {"id": 378, "owner": {"id": 745}, "assignee": {"id": 57}}, "task": {"id": 312, "owner": {"id": 917}, "assignee": {"id": 1041}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 378, "assignee": {"id": 564}, "organization": {"id": 185}, "project": {"id": 372, "owner": {"id": 720}, "assignee": {"id": 34}}, "task": {"id": 341, "owner": {"id": 928}, "assignee": {"id": 1077}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 380, "assignee": {"id": 581}, "organization": {"id": 601}, "project": {"id": 397, "owner": {"id": 756}, "assignee": {"id": 77}}, "task": {"id": 338, "owner": {"id": 917}, "assignee": {"id": 1074}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 334, "assignee": {"id": 580}, "organization": {"id": 108}, "project": {"id": 318, "owner": {"id": 797}, "assignee": {"id": 38}}, "task": {"id": 352, "owner": {"id": 954}, "assignee": {"id": 1075}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 356, "assignee": {"id": 573}, "organization": {"id": 679}, "project": {"id": 350, "owner": {"id": 762}, "assignee": {"id": 76}}, "task": {"id": 371, "owner": {"id": 900}, "assignee": {"id": 1070}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 387, "assignee": {"id": 587}, "organization": {"id": 151}, "project": {"id": 332, "owner": {"id": 771}, "assignee": {"id": 36}}, "task": {"id": 387, "owner": {"id": 979}, "assignee": {"id": 1073}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 309, "assignee": {"id": 565}, "organization": {"id": 624}, "project": {"id": 377, "owner": {"id": 764}, "assignee": {"id": 31}}, "task": {"id": 314, "owner": {"id": 952}, "assignee": {"id": 1059}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "assignee": {"id": 580}, "organization": {"id": 148}, "project": {"id": 326, "owner": {"id": 751}, "assignee": {"id": 13}}, "task": {"id": 374, "owner": {"id": 968}, "assignee": {"id": 1068}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "assignee": {"id": 574}, "organization": {"id": 668}, "project": {"id": 303, "owner": {"id": 733}, "assignee": {"id": 21}}, "task": {"id": 340, "owner": {"id": 901}, "assignee": {"id": 1077}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "assignee": {"id": 550}, "organization": {"id": 158}, "project": {"id": 341, "owner": {"id": 721}, "assignee": {"id": 17}}, "task": {"id": 304, "owner": {"id": 920}, "assignee": {"id": 1051}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "assignee": {"id": 551}, "organization": {"id": 637}, "project": {"id": 370, "owner": {"id": 777}, "assignee": {"id": 34}}, "task": {"id": 302, "owner": {"id": 969}, "assignee": {"id": 1022}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 345, "assignee": {"id": 566}, "organization": {"id": 124}, "project": {"id": 398, "owner": {"id": 728}, "assignee": {"id": 71}}, "task": {"id": 371, "owner": {"id": 969}, "assignee": {"id": 1073}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 305, "assignee": {"id": 542}, "organization": {"id": 661}, "project": {"id": 339, "owner": {"id": 785}, "assignee": {"id": 76}}, "task": {"id": 370, "owner": {"id": 930}, "assignee": {"id": 1079}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 333, "assignee": {"id": 595}, "organization": {"id": 147}, "project": {"id": 370, "owner": {"id": 744}, "assignee": {"id": 57}}, "task": {"id": 330, "owner": {"id": 901}, "assignee": {"id": 1019}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 306, "assignee": {"id": 500}, "organization": {"id": 627}, "project": {"id": 305, "owner": {"id": 786}, "assignee": {"id": 86}}, "task": {"id": 392, "owner": {"id": 949}, "assignee": {"id": 1097}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 375, "assignee": {"id": 599}, "organization": {"id": 112}, "project": {"id": 345, "owner": {"id": 782}, "assignee": {"id": 37}}, "task": {"id": 302, "owner": {"id": 945}, "assignee": {"id": 1049}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 333, "assignee": {"id": 598}, "organization": {"id": 672}, "project": {"id": 324, "owner": {"id": 756}, "assignee": {"id": 57}}, "task": {"id": 385, "owner": {"id": 937}, "assignee": {"id": 1055}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "assignee": {"id": 597}, "organization": {"id": 153}, "project": {"id": 392, "owner": {"id": 702}, "assignee": {"id": 20}}, "task": {"id": 315, "owner": {"id": 967}, "assignee": {"id": 1060}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "assignee": {"id": 503}, "organization": {"id": 614}, "project": {"id": 380, "owner": {"id": 796}, "assignee": {"id": 15}}, "task": {"id": 354, "owner": {"id": 947}, "assignee": {"id": 1088}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 61, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "assignee": {"id": 537}, "organization": {"id": 135}, "project": {"id": 332, "owner": {"id": 716}, "assignee": {"id": 61}}, "task": {"id": 376, "owner": {"id": 905}, "assignee": {"id": 1050}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 343, "assignee": {"id": 554}, "organization": {"id": 671}, "project": {"id": 351, "owner": {"id": 747}, "assignee": {"id": 18}}, "task": {"id": 338, "owner": {"id": 904}, "assignee": {"id": 1048}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 314, "assignee": {"id": 541}, "organization": {"id": 198}, "project": {"id": 378, "owner": {"id": 776}, "assignee": {"id": 54}}, "task": {"id": 361, "owner": {"id": 917}, "assignee": {"id": 1040}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 323, "assignee": {"id": 523}, "organization": {"id": 615}, "project": {"id": 377, "owner": {"id": 701}, "assignee": {"id": 82}}, "task": {"id": 330, "owner": {"id": 927}, "assignee": {"id": 1081}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 356, "assignee": {"id": 503}, "organization": {"id": 187}, "project": {"id": 363, "owner": {"id": 739}, "assignee": {"id": 36}}, "task": {"id": 349, "owner": {"id": 938}, "assignee": {"id": 1069}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 347, "assignee": {"id": 576}, "organization": {"id": 628}, "project": {"id": 376, "owner": {"id": 755}, "assignee": {"id": 68}}, "task": {"id": 321, "owner": {"id": 912}, "assignee": {"id": 1029}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 300, "assignee": {"id": 562}, "organization": {"id": 121}, "project": {"id": 317, "owner": {"id": 736}, "assignee": {"id": 842}}, "task": {"id": 393, "owner": {"id": 13}, "assignee": {"id": 1027}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 376, "assignee": {"id": 507}, "organization": {"id": 600}, "project": {"id": 394, "owner": {"id": 731}, "assignee": {"id": 850}}, "task": {"id": 316, "owner": {"id": 11}, "assignee": {"id": 1023}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "assignee": {"id": 560}, "organization": {"id": 154}, "project": {"id": 399, "owner": {"id": 781}, "assignee": {"id": 818}}, "task": {"id": 381, "owner": {"id": 20}, "assignee": {"id": 1063}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "assignee": {"id": 568}, "organization": {"id": 682}, "project": {"id": 369, "owner": {"id": 793}, "assignee": {"id": 831}}, "task": {"id": 379, "owner": {"id": 41}, "assignee": {"id": 1071}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "assignee": {"id": 570}, "organization": {"id": 144}, "project": {"id": 321, "owner": {"id": 723}, "assignee": {"id": 874}}, "task": {"id": 385, "owner": {"id": 87}, "assignee": {"id": 1021}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "assignee": {"id": 540}, "organization": {"id": 612}, "project": {"id": 351, "owner": {"id": 714}, "assignee": {"id": 864}}, "task": {"id": 341, "owner": {"id": 78}, "assignee": {"id": 1047}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 308, "assignee": {"id": 507}, "organization": {"id": 111}, "project": {"id": 306, "owner": {"id": 767}, "assignee": {"id": 881}}, "task": {"id": 306, "owner": {"id": 76}, "assignee": {"id": 1039}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 357, "assignee": {"id": 558}, "organization": {"id": 639}, "project": {"id": 334, "owner": {"id": 760}, "assignee": {"id": 829}}, "task": {"id": 397, "owner": {"id": 27}, "assignee": {"id": 1081}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 318, "assignee": {"id": 538}, "organization": {"id": 115}, "project": {"id": 367, "owner": {"id": 793}, "assignee": {"id": 895}}, "task": {"id": 393, "owner": {"id": 59}, "assignee": {"id": 1014}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 374, "assignee": {"id": 538}, "organization": {"id": 689}, "project": {"id": 373, "owner": {"id": 758}, "assignee": {"id": 825}}, "task": {"id": 333, "owner": {"id": 26}, "assignee": {"id": 1077}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 329, "assignee": {"id": 562}, "organization": {"id": 153}, "project": {"id": 368, "owner": {"id": 703}, "assignee": {"id": 828}}, "task": {"id": 324, "owner": {"id": 27}, "assignee": {"id": 1067}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 308, "assignee": {"id": 588}, "organization": {"id": 625}, "project": {"id": 330, "owner": {"id": 782}, "assignee": {"id": 866}}, "task": {"id": 376, "owner": {"id": 4}, "assignee": {"id": 1054}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "assignee": {"id": 568}, "organization": {"id": 125}, "project": {"id": 371, "owner": {"id": 708}, "assignee": {"id": 845}}, "task": {"id": 322, "owner": {"id": 60}, "assignee": {"id": 1069}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "assignee": {"id": 571}, "organization": {"id": 655}, "project": {"id": 323, "owner": {"id": 740}, "assignee": {"id": 887}}, "task": {"id": 308, "owner": {"id": 15}, "assignee": {"id": 1023}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "assignee": {"id": 552}, "organization": {"id": 106}, "project": {"id": 384, "owner": {"id": 727}, "assignee": {"id": 841}}, "task": {"id": 393, "owner": {"id": 65}, "assignee": {"id": 1061}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "assignee": {"id": 572}, "organization": {"id": 613}, "project": {"id": 345, "owner": {"id": 754}, "assignee": {"id": 887}}, "task": {"id": 361, "owner": {"id": 35}, "assignee": {"id": 1037}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 311, "assignee": {"id": 594}, "organization": {"id": 108}, "project": {"id": 356, "owner": {"id": 795}, "assignee": {"id": 848}}, "task": {"id": 320, "owner": {"id": 75}, "assignee": {"id": 1050}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 328, "assignee": {"id": 526}, "organization": {"id": 650}, "project": {"id": 317, "owner": {"id": 775}, "assignee": {"id": 877}}, "task": {"id": 373, "owner": {"id": 80}, "assignee": {"id": 1048}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 343, "assignee": {"id": 506}, "organization": {"id": 106}, "project": {"id": 375, "owner": {"id": 773}, "assignee": {"id": 874}}, "task": {"id": 303, "owner": {"id": 14}, "assignee": {"id": 1004}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 376, "assignee": {"id": 570}, "organization": {"id": 643}, "project": {"id": 361, "owner": {"id": 729}, "assignee": {"id": 873}}, "task": {"id": 302, "owner": {"id": 87}, "assignee": {"id": 1029}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 320, "assignee": {"id": 512}, "organization": {"id": 136}, "project": {"id": 310, "owner": {"id": 769}, "assignee": {"id": 876}}, "task": {"id": 352, "owner": {"id": 37}, "assignee": {"id": 1066}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 383, "assignee": {"id": 537}, "organization": {"id": 649}, "project": {"id": 335, "owner": {"id": 794}, "assignee": {"id": 865}}, "task": {"id": 399, "owner": {"id": 79}, "assignee": {"id": 1038}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "assignee": {"id": 592}, "organization": {"id": 162}, "project": {"id": 374, "owner": {"id": 747}, "assignee": {"id": 856}}, "task": {"id": 321, "owner": {"id": 99}, "assignee": {"id": 1047}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "assignee": {"id": 590}, "organization": {"id": 673}, "project": {"id": 344, "owner": {"id": 796}, "assignee": {"id": 866}}, "task": {"id": 316, "owner": {"id": 14}, "assignee": {"id": 1094}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "assignee": {"id": 518}, "organization": {"id": 184}, "project": {"id": 356, "owner": {"id": 795}, "assignee": {"id": 874}}, "task": {"id": 359, "owner": {"id": 77}, "assignee": {"id": 1068}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 380, "assignee": {"id": 509}, "organization": {"id": 617}, "project": {"id": 338, "owner": {"id": 767}, "assignee": {"id": 869}}, "task": {"id": 324, "owner": {"id": 57}, "assignee": {"id": 1077}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 301, "assignee": {"id": 542}, "organization": {"id": 126}, "project": {"id": 374, "owner": {"id": 767}, "assignee": {"id": 838}}, "task": {"id": 333, "owner": {"id": 34}, "assignee": {"id": 1012}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 363, "assignee": {"id": 597}, "organization": {"id": 620}, "project": {"id": 366, "owner": {"id": 750}, "assignee": {"id": 866}}, "task": {"id": 313, "owner": {"id": 92}, "assignee": {"id": 1023}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 303, "assignee": {"id": 526}, "organization": {"id": 110}, "project": {"id": 364, "owner": {"id": 743}, "assignee": {"id": 896}}, "task": {"id": 355, "owner": {"id": 99}, "assignee": {"id": 1014}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"id": 331, "assignee": {"id": 578}, "organization": {"id": 662}, "project": {"id": 368, "owner": {"id": 710}, "assignee": {"id": 835}}, "task": {"id": 343, "owner": {"id": 2}, "assignee": {"id": 1001}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 384, "assignee": {"id": 592}, "organization": {"id": 147}, "project": {"id": 380, "owner": {"id": 721}, "assignee": {"id": 813}}, "task": {"id": 356, "owner": {"id": 6}, "assignee": {"id": 1073}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 318, "assignee": {"id": 571}, "organization": {"id": 654}, "project": {"id": 354, "owner": {"id": 774}, "assignee": {"id": 826}}, "task": {"id": 328, "owner": {"id": 80}, "assignee": {"id": 1011}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "assignee": {"id": 564}, "organization": {"id": 198}, "project": {"id": 396, "owner": {"id": 702}, "assignee": {"id": 896}}, "task": {"id": 392, "owner": {"id": 1}, "assignee": {"id": 1095}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "assignee": {"id": 524}, "organization": {"id": 616}, "project": {"id": 386, "owner": {"id": 750}, "assignee": {"id": 802}}, "task": {"id": 395, "owner": {"id": 15}, "assignee": {"id": 1015}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "assignee": {"id": 510}, "organization": {"id": 182}, "project": {"id": 331, "owner": {"id": 768}, "assignee": {"id": 816}}, "task": {"id": 373, "owner": {"id": 17}, "assignee": {"id": 1039}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 67, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "assignee": {"id": 515}, "organization": {"id": 631}, "project": {"id": 392, "owner": {"id": 754}, "assignee": {"id": 805}}, "task": {"id": 373, "owner": {"id": 67}, "assignee": {"id": 1088}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 312, "assignee": {"id": 564}, "organization": {"id": 127}, "project": {"id": 315, "owner": {"id": 705}, "assignee": {"id": 836}}, "task": {"id": 341, "owner": {"id": 38}, "assignee": {"id": 1017}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 359, "assignee": {"id": 526}, "organization": {"id": 651}, "project": {"id": 308, "owner": {"id": 743}, "assignee": {"id": 889}}, "task": {"id": 367, "owner": {"id": 48}, "assignee": {"id": 1026}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 317, "assignee": {"id": 556}, "organization": {"id": 172}, "project": {"id": 327, "owner": {"id": 788}, "assignee": {"id": 844}}, "task": {"id": 365, "owner": {"id": 51}, "assignee": {"id": 1076}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 326, "assignee": {"id": 545}, "organization": {"id": 630}, "project": {"id": 379, "owner": {"id": 707}, "assignee": {"id": 890}}, "task": {"id": 300, "owner": {"id": 69}, "assignee": {"id": 1042}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 355, "assignee": {"id": 511}, "organization": {"id": 142}, "project": {"id": 381, "owner": {"id": 737}, "assignee": {"id": 857}}, "task": {"id": 385, "owner": {"id": 83}, "assignee": {"id": 1011}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 348, "assignee": {"id": 530}, "organization": {"id": 674}, "project": {"id": 362, "owner": {"id": 772}, "assignee": {"id": 823}}, "task": {"id": 345, "owner": {"id": 12}, "assignee": {"id": 1014}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "assignee": {"id": 550}, "organization": {"id": 162}, "project": {"id": 378, "owner": {"id": 705}, "assignee": {"id": 884}}, "task": {"id": 317, "owner": {"id": 60}, "assignee": {"id": 1030}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 358, "assignee": {"id": 503}, "organization": {"id": 620}, "project": {"id": 369, "owner": {"id": 776}, "assignee": {"id": 853}}, "task": {"id": 398, "owner": {"id": 52}, "assignee": {"id": 1048}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "assignee": {"id": 537}, "organization": {"id": 187}, "project": {"id": 366, "owner": {"id": 710}, "assignee": {"id": 848}}, "task": {"id": 332, "owner": {"id": 90}, "assignee": {"id": 1008}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "assignee": {"id": 504}, "organization": {"id": 613}, "project": {"id": 379, "owner": {"id": 789}, "assignee": {"id": 859}}, "task": {"id": 341, "owner": {"id": 42}, "assignee": {"id": 1026}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 338, "assignee": {"id": 552}, "organization": {"id": 169}, "project": {"id": 305, "owner": {"id": 747}, "assignee": {"id": 815}}, "task": {"id": 304, "owner": {"id": 71}, "assignee": {"id": 1085}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 317, "assignee": {"id": 562}, "organization": {"id": 627}, "project": {"id": 301, "owner": {"id": 733}, "assignee": {"id": 818}}, "task": {"id": 362, "owner": {"id": 54}, "assignee": {"id": 1026}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 313, "assignee": {"id": 533}, "organization": {"id": 174}, "project": {"id": 333, "owner": {"id": 786}, "assignee": {"id": 834}}, "task": {"id": 358, "owner": {"id": 96}, "assignee": {"id": 1067}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"id": 375, "assignee": {"id": 540}, "organization": {"id": 627}, "project": {"id": 302, "owner": {"id": 773}, "assignee": {"id": 852}}, "task": {"id": 373, "owner": {"id": 63}, "assignee": {"id": 1053}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 388, "assignee": {"id": 596}, "organization": {"id": 164}, "project": {"id": 377, "owner": {"id": 780}, "assignee": {"id": 888}}, "task": {"id": 300, "owner": {"id": 972}, "assignee": {"id": 22}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 397, "assignee": {"id": 535}, "organization": {"id": 678}, "project": {"id": 365, "owner": {"id": 758}, "assignee": {"id": 897}}, "task": {"id": 334, "owner": {"id": 940}, "assignee": {"id": 44}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 330, "assignee": {"id": 598}, "organization": {"id": 134}, "project": {"id": 368, "owner": {"id": 795}, "assignee": {"id": 858}}, "task": {"id": 317, "owner": {"id": 962}, "assignee": {"id": 58}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "assignee": {"id": 582}, "organization": {"id": 654}, "project": {"id": 370, "owner": {"id": 771}, "assignee": {"id": 815}}, "task": {"id": 313, "owner": {"id": 996}, "assignee": {"id": 34}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "assignee": {"id": 504}, "organization": {"id": 164}, "project": {"id": 339, "owner": {"id": 726}, "assignee": {"id": 875}}, "task": {"id": 364, "owner": {"id": 997}, "assignee": {"id": 8}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "assignee": {"id": 570}, "organization": {"id": 660}, "project": {"id": 356, "owner": {"id": 783}, "assignee": {"id": 895}}, "task": {"id": 345, "owner": {"id": 965}, "assignee": {"id": 93}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 351, "assignee": {"id": 536}, "organization": {"id": 101}, "project": {"id": 360, "owner": {"id": 757}, "assignee": {"id": 801}}, "task": {"id": 332, "owner": {"id": 912}, "assignee": {"id": 91}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 301, "assignee": {"id": 579}, "organization": {"id": 614}, "project": {"id": 344, "owner": {"id": 724}, "assignee": {"id": 865}}, "task": {"id": 381, "owner": {"id": 953}, "assignee": {"id": 23}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 350, "assignee": {"id": 517}, "organization": {"id": 129}, "project": {"id": 333, "owner": {"id": 721}, "assignee": {"id": 805}}, "task": {"id": 333, "owner": {"id": 908}, "assignee": {"id": 21}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 378, "assignee": {"id": 504}, "organization": {"id": 692}, "project": {"id": 383, "owner": {"id": 745}, "assignee": {"id": 857}}, "task": {"id": 359, "owner": {"id": 917}, "assignee": {"id": 34}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 308, "assignee": {"id": 502}, "organization": {"id": 112}, "project": {"id": 390, "owner": {"id": 788}, "assignee": {"id": 863}}, "task": {"id": 388, "owner": {"id": 975}, "assignee": {"id": 34}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 327, "assignee": {"id": 520}, "organization": {"id": 634}, "project": {"id": 347, "owner": {"id": 799}, "assignee": {"id": 830}}, "task": {"id": 370, "owner": {"id": 982}, "assignee": {"id": 7}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "assignee": {"id": 578}, "organization": {"id": 159}, "project": {"id": 312, "owner": {"id": 781}, "assignee": {"id": 818}}, "task": {"id": 318, "owner": {"id": 996}, "assignee": {"id": 69}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "assignee": {"id": 593}, "organization": {"id": 694}, "project": {"id": 371, "owner": {"id": 760}, "assignee": {"id": 819}}, "task": {"id": 395, "owner": {"id": 949}, "assignee": {"id": 73}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "assignee": {"id": 522}, "organization": {"id": 133}, "project": {"id": 310, "owner": {"id": 763}, "assignee": {"id": 838}}, "task": {"id": 318, "owner": {"id": 923}, "assignee": {"id": 1}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "assignee": {"id": 586}, "organization": {"id": 627}, "project": {"id": 322, "owner": {"id": 753}, "assignee": {"id": 812}}, "task": {"id": 313, "owner": {"id": 968}, "assignee": {"id": 6}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 339, "assignee": {"id": 548}, "organization": {"id": 101}, "project": {"id": 355, "owner": {"id": 712}, "assignee": {"id": 888}}, "task": {"id": 348, "owner": {"id": 927}, "assignee": {"id": 60}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 369, "assignee": {"id": 551}, "organization": {"id": 657}, "project": {"id": 388, "owner": {"id": 783}, "assignee": {"id": 821}}, "task": {"id": 307, "owner": {"id": 919}, "assignee": {"id": 4}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 342, "assignee": {"id": 599}, "organization": {"id": 125}, "project": {"id": 350, "owner": {"id": 753}, "assignee": {"id": 892}}, "task": {"id": 317, "owner": {"id": 908}, "assignee": {"id": 46}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 369, "assignee": {"id": 574}, "organization": {"id": 603}, "project": {"id": 301, "owner": {"id": 743}, "assignee": {"id": 859}}, "task": {"id": 360, "owner": {"id": 977}, "assignee": {"id": 3}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 363, "assignee": {"id": 531}, "organization": {"id": 159}, "project": {"id": 342, "owner": {"id": 772}, "assignee": {"id": 801}}, "task": {"id": 303, "owner": {"id": 959}, "assignee": {"id": 78}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 324, "assignee": {"id": 596}, "organization": {"id": 699}, "project": {"id": 304, "owner": {"id": 783}, "assignee": {"id": 857}}, "task": {"id": 321, "owner": {"id": 920}, "assignee": {"id": 13}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "assignee": {"id": 572}, "organization": {"id": 118}, "project": {"id": 395, "owner": {"id": 765}, "assignee": {"id": 860}}, "task": {"id": 309, "owner": {"id": 983}, "assignee": {"id": 63}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "assignee": {"id": 503}, "organization": {"id": 632}, "project": {"id": 340, "owner": {"id": 790}, "assignee": {"id": 899}}, "task": {"id": 335, "owner": {"id": 995}, "assignee": {"id": 14}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "assignee": {"id": 521}, "organization": {"id": 152}, "project": {"id": 308, "owner": {"id": 760}, "assignee": {"id": 800}}, "task": {"id": 358, "owner": {"id": 932}, "assignee": {"id": 31}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "assignee": {"id": 528}, "organization": {"id": 697}, "project": {"id": 338, "owner": {"id": 737}, "assignee": {"id": 816}}, "task": {"id": 323, "owner": {"id": 946}, "assignee": {"id": 11}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 301, "assignee": {"id": 518}, "organization": {"id": 193}, "project": {"id": 323, "owner": {"id": 727}, "assignee": {"id": 875}}, "task": {"id": 334, "owner": {"id": 996}, "assignee": {"id": 18}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 393, "assignee": {"id": 502}, "organization": {"id": 674}, "project": {"id": 334, "owner": {"id": 739}, "assignee": {"id": 894}}, "task": {"id": 357, "owner": {"id": 960}, "assignee": {"id": 48}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 326, "assignee": {"id": 586}, "organization": {"id": 116}, "project": {"id": 353, "owner": {"id": 782}, "assignee": {"id": 880}}, "task": {"id": 345, "owner": {"id": 940}, "assignee": {"id": 28}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 352, "assignee": {"id": 510}, "organization": {"id": 683}, "project": {"id": 359, "owner": {"id": 777}, "assignee": {"id": 838}}, "task": {"id": 392, "owner": {"id": 971}, "assignee": {"id": 86}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 344, "assignee": {"id": 588}, "organization": {"id": 113}, "project": {"id": 374, "owner": {"id": 769}, "assignee": {"id": 844}}, "task": {"id": 314, "owner": {"id": 948}, "assignee": {"id": 16}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 373, "assignee": {"id": 585}, "organization": {"id": 614}, "project": {"id": 340, "owner": {"id": 768}, "assignee": {"id": 874}}, "task": {"id": 311, "owner": {"id": 921}, "assignee": {"id": 69}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 389, "assignee": {"id": 536}, "organization": {"id": 165}, "project": {"id": 377, "owner": {"id": 768}, "assignee": {"id": 852}}, "task": {"id": 332, "owner": {"id": 961}, "assignee": {"id": 54}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "assignee": {"id": 516}, "organization": {"id": 627}, "project": {"id": 359, "owner": {"id": 748}, "assignee": {"id": 807}}, "task": {"id": 301, "owner": {"id": 964}, "assignee": {"id": 34}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "assignee": {"id": 503}, "organization": {"id": 114}, "project": {"id": 395, "owner": {"id": 729}, "assignee": {"id": 856}}, "task": {"id": 384, "owner": {"id": 971}, "assignee": {"id": 72}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "assignee": {"id": 562}, "organization": {"id": 637}, "project": {"id": 379, "owner": {"id": 772}, "assignee": {"id": 816}}, "task": {"id": 310, "owner": {"id": 955}, "assignee": {"id": 5}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 373, "assignee": {"id": 594}, "organization": {"id": 180}, "project": {"id": 397, "owner": {"id": 767}, "assignee": {"id": 898}}, "task": {"id": 325, "owner": {"id": 950}, "assignee": {"id": 93}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 325, "assignee": {"id": 541}, "organization": {"id": 629}, "project": {"id": 335, "owner": {"id": 769}, "assignee": {"id": 834}}, "task": {"id": 365, "owner": {"id": 955}, "assignee": {"id": 57}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 320, "assignee": {"id": 515}, "organization": {"id": 118}, "project": {"id": 373, "owner": {"id": 767}, "assignee": {"id": 852}}, "task": {"id": 340, "owner": {"id": 935}, "assignee": {"id": 23}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 301, "assignee": {"id": 521}, "organization": {"id": 608}, "project": {"id": 321, "owner": {"id": 725}, "assignee": {"id": 895}}, "task": {"id": 393, "owner": {"id": 962}, "assignee": {"id": 95}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 345, "assignee": {"id": 542}, "organization": {"id": 170}, "project": {"id": 326, "owner": {"id": 797}, "assignee": {"id": 827}}, "task": {"id": 300, "owner": {"id": 907}, "assignee": {"id": 2}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 348, "assignee": {"id": 531}, "organization": {"id": 637}, "project": {"id": 395, "owner": {"id": 791}, "assignee": {"id": 851}}, "task": {"id": 358, "owner": {"id": 930}, "assignee": {"id": 14}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "assignee": {"id": 566}, "organization": {"id": 115}, "project": {"id": 373, "owner": {"id": 798}, "assignee": {"id": 899}}, "task": {"id": 372, "owner": {"id": 911}, "assignee": {"id": 32}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 19, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "assignee": {"id": 502}, "organization": {"id": 674}, "project": {"id": 311, "owner": {"id": 749}, "assignee": {"id": 872}}, "task": {"id": 396, "owner": {"id": 994}, "assignee": {"id": 19}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 387, "assignee": {"id": 563}, "organization": {"id": 193}, "project": {"id": 358, "owner": {"id": 794}, "assignee": {"id": 874}}, "task": {"id": 386, "owner": {"id": 968}, "assignee": {"id": 73}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "assignee": {"id": 591}, "organization": {"id": 679}, "project": {"id": 305, "owner": {"id": 749}, "assignee": {"id": 801}}, "task": {"id": 369, "owner": {"id": 993}, "assignee": {"id": 38}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 370, "assignee": {"id": 554}, "organization": {"id": 175}, "project": {"id": 333, "owner": {"id": 749}, "assignee": {"id": 831}}, "task": {"id": 305, "owner": {"id": 906}, "assignee": {"id": 76}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 335, "assignee": {"id": 587}, "organization": {"id": 628}, "project": {"id": 331, "owner": {"id": 755}, "assignee": {"id": 815}}, "task": {"id": 312, "owner": {"id": 992}, "assignee": {"id": 57}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 366, "assignee": {"id": 510}, "organization": {"id": 133}, "project": {"id": 311, "owner": {"id": 784}, "assignee": {"id": 877}}, "task": {"id": 371, "owner": {"id": 982}, "assignee": {"id": 88}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 364, "assignee": {"id": 518}, "organization": {"id": 697}, "project": {"id": 373, "owner": {"id": 739}, "assignee": {"id": 819}}, "task": {"id": 302, "owner": {"id": 924}, "assignee": {"id": 33}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 308, "assignee": {"id": 3}, "organization": {"id": 157}, "project": {"id": 341, "owner": {"id": 797}, "assignee": {"id": 830}}, "task": {"id": 335, "owner": {"id": 952}, "assignee": {"id": 1052}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 348, "assignee": {"id": 51}, "organization": {"id": 677}, "project": {"id": 376, "owner": {"id": 732}, "assignee": {"id": 836}}, "task": {"id": 374, "owner": {"id": 990}, "assignee": {"id": 1034}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "assignee": {"id": 92}, "organization": {"id": 102}, "project": {"id": 312, "owner": {"id": 707}, "assignee": {"id": 870}}, "task": {"id": 317, "owner": {"id": 934}, "assignee": {"id": 1082}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "assignee": {"id": 28}, "organization": {"id": 669}, "project": {"id": 311, "owner": {"id": 788}, "assignee": {"id": 864}}, "task": {"id": 319, "owner": {"id": 917}, "assignee": {"id": 1083}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "assignee": {"id": 44}, "organization": {"id": 164}, "project": {"id": 300, "owner": {"id": 719}, "assignee": {"id": 850}}, "task": {"id": 318, "owner": {"id": 904}, "assignee": {"id": 1067}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "assignee": {"id": 24}, "organization": {"id": 688}, "project": {"id": 341, "owner": {"id": 717}, "assignee": {"id": 859}}, "task": {"id": 329, "owner": {"id": 945}, "assignee": {"id": 1081}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 320, "assignee": {"id": 79}, "organization": {"id": 112}, "project": {"id": 358, "owner": {"id": 702}, "assignee": {"id": 801}}, "task": {"id": 337, "owner": {"id": 911}, "assignee": {"id": 1020}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 371, "assignee": {"id": 53}, "organization": {"id": 670}, "project": {"id": 389, "owner": {"id": 742}, "assignee": {"id": 813}}, "task": {"id": 370, "owner": {"id": 914}, "assignee": {"id": 1087}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 322, "assignee": {"id": 14}, "organization": {"id": 104}, "project": {"id": 344, "owner": {"id": 772}, "assignee": {"id": 802}}, "task": {"id": 336, "owner": {"id": 985}, "assignee": {"id": 1050}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 359, "assignee": {"id": 6}, "organization": {"id": 622}, "project": {"id": 328, "owner": {"id": 707}, "assignee": {"id": 833}}, "task": {"id": 354, "owner": {"id": 952}, "assignee": {"id": 1003}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 371, "assignee": {"id": 95}, "organization": {"id": 122}, "project": {"id": 318, "owner": {"id": 758}, "assignee": {"id": 811}}, "task": {"id": 303, "owner": {"id": 911}, "assignee": {"id": 1092}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 316, "assignee": {"id": 3}, "organization": {"id": 694}, "project": {"id": 380, "owner": {"id": 754}, "assignee": {"id": 808}}, "task": {"id": 344, "owner": {"id": 911}, "assignee": {"id": 1016}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "assignee": {"id": 41}, "organization": {"id": 128}, "project": {"id": 301, "owner": {"id": 763}, "assignee": {"id": 894}}, "task": {"id": 354, "owner": {"id": 955}, "assignee": {"id": 1096}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "assignee": {"id": 22}, "organization": {"id": 633}, "project": {"id": 339, "owner": {"id": 748}, "assignee": {"id": 892}}, "task": {"id": 305, "owner": {"id": 939}, "assignee": {"id": 1083}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "assignee": {"id": 42}, "organization": {"id": 130}, "project": {"id": 338, "owner": {"id": 749}, "assignee": {"id": 803}}, "task": {"id": 313, "owner": {"id": 979}, "assignee": {"id": 1011}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "assignee": {"id": 19}, "organization": {"id": 692}, "project": {"id": 395, "owner": {"id": 780}, "assignee": {"id": 826}}, "task": {"id": 393, "owner": {"id": 939}, "assignee": {"id": 1062}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 344, "assignee": {"id": 40}, "organization": {"id": 196}, "project": {"id": 310, "owner": {"id": 762}, "assignee": {"id": 852}}, "task": {"id": 368, "owner": {"id": 921}, "assignee": {"id": 1020}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 395, "assignee": {"id": 65}, "organization": {"id": 616}, "project": {"id": 358, "owner": {"id": 785}, "assignee": {"id": 823}}, "task": {"id": 350, "owner": {"id": 957}, "assignee": {"id": 1000}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 390, "assignee": {"id": 79}, "organization": {"id": 156}, "project": {"id": 389, "owner": {"id": 751}, "assignee": {"id": 819}}, "task": {"id": 316, "owner": {"id": 935}, "assignee": {"id": 1009}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 369, "assignee": {"id": 84}, "organization": {"id": 665}, "project": {"id": 334, "owner": {"id": 779}, "assignee": {"id": 837}}, "task": {"id": 360, "owner": {"id": 959}, "assignee": {"id": 1010}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 307, "assignee": {"id": 38}, "organization": {"id": 164}, "project": {"id": 346, "owner": {"id": 701}, "assignee": {"id": 804}}, "task": {"id": 352, "owner": {"id": 913}, "assignee": {"id": 1065}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 361, "assignee": {"id": 6}, "organization": {"id": 618}, "project": {"id": 316, "owner": {"id": 730}, "assignee": {"id": 840}}, "task": {"id": 334, "owner": {"id": 926}, "assignee": {"id": 1039}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "assignee": {"id": 43}, "organization": {"id": 181}, "project": {"id": 348, "owner": {"id": 770}, "assignee": {"id": 819}}, "task": {"id": 314, "owner": {"id": 919}, "assignee": {"id": 1011}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "assignee": {"id": 22}, "organization": {"id": 694}, "project": {"id": 396, "owner": {"id": 745}, "assignee": {"id": 820}}, "task": {"id": 345, "owner": {"id": 932}, "assignee": {"id": 1073}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "assignee": {"id": 85}, "organization": {"id": 190}, "project": {"id": 336, "owner": {"id": 782}, "assignee": {"id": 811}}, "task": {"id": 398, "owner": {"id": 915}, "assignee": {"id": 1012}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "assignee": {"id": 31}, "organization": {"id": 625}, "project": {"id": 369, "owner": {"id": 770}, "assignee": {"id": 810}}, "task": {"id": 367, "owner": {"id": 918}, "assignee": {"id": 1059}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 354, "assignee": {"id": 64}, "organization": {"id": 122}, "project": {"id": 328, "owner": {"id": 743}, "assignee": {"id": 886}}, "task": {"id": 375, "owner": {"id": 936}, "assignee": {"id": 1064}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 308, "assignee": {"id": 51}, "organization": {"id": 666}, "project": {"id": 335, "owner": {"id": 775}, "assignee": {"id": 853}}, "task": {"id": 368, "owner": {"id": 902}, "assignee": {"id": 1051}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 302, "assignee": {"id": 39}, "organization": {"id": 125}, "project": {"id": 312, "owner": {"id": 705}, "assignee": {"id": 823}}, "task": {"id": 311, "owner": {"id": 920}, "assignee": {"id": 1047}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 395, "assignee": {"id": 51}, "organization": {"id": 610}, "project": {"id": 392, "owner": {"id": 723}, "assignee": {"id": 831}}, "task": {"id": 303, "owner": {"id": 915}, "assignee": {"id": 1090}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 378, "assignee": {"id": 91}, "organization": {"id": 193}, "project": {"id": 354, "owner": {"id": 700}, "assignee": {"id": 830}}, "task": {"id": 363, "owner": {"id": 918}, "assignee": {"id": 1012}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 364, "assignee": {"id": 13}, "organization": {"id": 606}, "project": {"id": 307, "owner": {"id": 725}, "assignee": {"id": 820}}, "task": {"id": 307, "owner": {"id": 989}, "assignee": {"id": 1025}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "assignee": {"id": 1}, "organization": {"id": 126}, "project": {"id": 377, "owner": {"id": 706}, "assignee": {"id": 810}}, "task": {"id": 311, "owner": {"id": 935}, "assignee": {"id": 1004}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "assignee": {"id": 75}, "organization": {"id": 630}, "project": {"id": 313, "owner": {"id": 796}, "assignee": {"id": 888}}, "task": {"id": 363, "owner": {"id": 995}, "assignee": {"id": 1012}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "assignee": {"id": 49}, "organization": {"id": 119}, "project": {"id": 305, "owner": {"id": 799}, "assignee": {"id": 895}}, "task": {"id": 313, "owner": {"id": 980}, "assignee": {"id": 1096}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "assignee": {"id": 12}, "organization": {"id": 691}, "project": {"id": 378, "owner": {"id": 796}, "assignee": {"id": 806}}, "task": {"id": 392, "owner": {"id": 964}, "assignee": {"id": 1033}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 336, "assignee": {"id": 9}, "organization": {"id": 126}, "project": {"id": 367, "owner": {"id": 742}, "assignee": {"id": 846}}, "task": {"id": 301, "owner": {"id": 980}, "assignee": {"id": 1015}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 343, "assignee": {"id": 21}, "organization": {"id": 643}, "project": {"id": 367, "owner": {"id": 721}, "assignee": {"id": 890}}, "task": {"id": 315, "owner": {"id": 902}, "assignee": {"id": 1060}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 386, "assignee": {"id": 76}, "organization": {"id": 197}, "project": {"id": 395, "owner": {"id": 700}, "assignee": {"id": 860}}, "task": {"id": 317, "owner": {"id": 999}, "assignee": {"id": 1059}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"id": 391, "assignee": {"id": 88}, "organization": {"id": 659}, "project": {"id": 314, "owner": {"id": 753}, "assignee": {"id": 813}}, "task": {"id": 354, "owner": {"id": 903}, "assignee": {"id": 1070}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 399, "assignee": {"id": 75}, "organization": {"id": 181}, "project": {"id": 319, "owner": {"id": 716}, "assignee": {"id": 825}}, "task": {"id": 386, "owner": {"id": 976}, "assignee": {"id": 1097}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 332, "assignee": {"id": 29}, "organization": {"id": 662}, "project": {"id": 399, "owner": {"id": 715}, "assignee": {"id": 868}}, "task": {"id": 325, "owner": {"id": 962}, "assignee": {"id": 1043}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "assignee": {"id": 92}, "organization": {"id": 191}, "project": {"id": 300, "owner": {"id": 723}, "assignee": {"id": 836}}, "task": {"id": 370, "owner": {"id": 901}, "assignee": {"id": 1086}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "assignee": {"id": 85}, "organization": {"id": 659}, "project": {"id": 364, "owner": {"id": 704}, "assignee": {"id": 801}}, "task": {"id": 321, "owner": {"id": 983}, "assignee": {"id": 1032}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "assignee": {"id": 4}, "organization": {"id": 149}, "project": {"id": 350, "owner": {"id": 723}, "assignee": {"id": 820}}, "task": {"id": 315, "owner": {"id": 950}, "assignee": {"id": 1074}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "assignee": {"id": 60}, "organization": {"id": 648}, "project": {"id": 370, "owner": {"id": 745}, "assignee": {"id": 858}}, "task": {"id": 333, "owner": {"id": 950}, "assignee": {"id": 1085}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 356, "assignee": {"id": 31}, "organization": {"id": 173}, "project": {"id": 345, "owner": {"id": 708}, "assignee": {"id": 855}}, "task": {"id": 379, "owner": {"id": 988}, "assignee": {"id": 1015}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 389, "assignee": {"id": 38}, "organization": {"id": 618}, "project": {"id": 311, "owner": {"id": 741}, "assignee": {"id": 807}}, "task": {"id": 394, "owner": {"id": 914}, "assignee": {"id": 1052}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"id": 309, "assignee": {"id": 66}, "organization": {"id": 198}, "project": {"id": 301, "owner": {"id": 727}, "assignee": {"id": 825}}, "task": {"id": 346, "owner": {"id": 905}, "assignee": {"id": 1083}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 320, "assignee": {"id": 28}, "organization": {"id": 627}, "project": {"id": 389, "owner": {"id": 795}, "assignee": {"id": 888}}, "task": {"id": 314, "owner": {"id": 979}, "assignee": {"id": 1068}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 336, "assignee": {"id": 569}, "organization": {"id": 194}, "project": {"id": 364, "owner": {"id": 708}, "assignee": {"id": 828}}, "task": {"id": 303, "owner": {"id": 901}, "assignee": {"id": 1038}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 376, "assignee": {"id": 509}, "organization": {"id": 601}, "project": {"id": 340, "owner": {"id": 729}, "assignee": {"id": 805}}, "task": {"id": 318, "owner": {"id": 912}, "assignee": {"id": 1047}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "assignee": {"id": 546}, "organization": {"id": 131}, "project": {"id": 391, "owner": {"id": 770}, "assignee": {"id": 849}}, "task": {"id": 389, "owner": {"id": 937}, "assignee": {"id": 1051}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "assignee": {"id": 578}, "organization": {"id": 642}, "project": {"id": 329, "owner": {"id": 739}, "assignee": {"id": 870}}, "task": {"id": 311, "owner": {"id": 911}, "assignee": {"id": 1000}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "assignee": {"id": 535}, "organization": {"id": 154}, "project": {"id": 353, "owner": {"id": 733}, "assignee": {"id": 898}}, "task": {"id": 319, "owner": {"id": 962}, "assignee": {"id": 1064}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 340, "assignee": {"id": 560}, "organization": {"id": 631}, "project": {"id": 370, "owner": {"id": 743}, "assignee": {"id": 841}}, "task": {"id": 395, "owner": {"id": 997}, "assignee": {"id": 1014}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 309, "assignee": {"id": 557}, "organization": {"id": 172}, "project": {"id": 342, "owner": {"id": 712}, "assignee": {"id": 817}}, "task": {"id": 329, "owner": {"id": 975}, "assignee": {"id": 1047}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 364, "assignee": {"id": 512}, "organization": {"id": 643}, "project": {"id": 346, "owner": {"id": 733}, "assignee": {"id": 819}}, "task": {"id": 348, "owner": {"id": 981}, "assignee": {"id": 1005}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 359, "assignee": {"id": 520}, "organization": {"id": 197}, "project": {"id": 393, "owner": {"id": 749}, "assignee": {"id": 802}}, "task": {"id": 319, "owner": {"id": 937}, "assignee": {"id": 1037}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"id": 347, "assignee": {"id": 598}, "organization": {"id": 635}, "project": {"id": 354, "owner": {"id": 798}, "assignee": {"id": 859}}, "task": {"id": 359, "owner": {"id": 918}, "assignee": {"id": 1004}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 313, "assignee": {"id": 503}, "organization": {"id": 133}, "project": {"id": 326, "owner": {"id": 707}, "assignee": {"id": 864}}, "task": {"id": 359, "owner": {"id": 915}, "assignee": {"id": 1046}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 383, "assignee": {"id": 561}, "organization": {"id": 668}, "project": {"id": 382, "owner": {"id": 796}, "assignee": {"id": 829}}, "task": {"id": 361, "owner": {"id": 985}, "assignee": {"id": 1092}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "assignee": {"id": 540}, "organization": {"id": 109}, "project": {"id": 329, "owner": {"id": 767}, "assignee": {"id": 802}}, "task": {"id": 399, "owner": {"id": 923}, "assignee": {"id": 1056}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "assignee": {"id": 541}, "organization": {"id": 690}, "project": {"id": 358, "owner": {"id": 785}, "assignee": {"id": 823}}, "task": {"id": 349, "owner": {"id": 906}, "assignee": {"id": 1020}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "assignee": {"id": 598}, "organization": {"id": 171}, "project": {"id": 350, "owner": {"id": 787}, "assignee": {"id": 867}}, "task": {"id": 351, "owner": {"id": 918}, "assignee": {"id": 1057}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "assignee": {"id": 505}, "organization": {"id": 657}, "project": {"id": 353, "owner": {"id": 754}, "assignee": {"id": 832}}, "task": {"id": 317, "owner": {"id": 901}, "assignee": {"id": 1057}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 326, "assignee": {"id": 518}, "organization": {"id": 151}, "project": {"id": 308, "owner": {"id": 790}, "assignee": {"id": 826}}, "task": {"id": 343, "owner": {"id": 926}, "assignee": {"id": 1093}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 353, "assignee": {"id": 588}, "organization": {"id": 617}, "project": {"id": 345, "owner": {"id": 777}, "assignee": {"id": 816}}, "task": {"id": 327, "owner": {"id": 967}, "assignee": {"id": 1055}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 377, "assignee": {"id": 506}, "organization": {"id": 175}, "project": {"id": 385, "owner": {"id": 788}, "assignee": {"id": 803}}, "task": {"id": 333, "owner": {"id": 966}, "assignee": {"id": 1066}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"id": 329, "assignee": {"id": 522}, "organization": {"id": 607}, "project": {"id": 388, "owner": {"id": 742}, "assignee": {"id": 899}}, "task": {"id": 347, "owner": {"id": 999}, "assignee": {"id": 1030}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 303, "assignee": {"id": 587}, "organization": {"id": 195}, "project": {"id": 377, "owner": {"id": 798}, "assignee": {"id": 818}}, "task": {"id": 360, "owner": {"id": 925}, "assignee": {"id": 1073}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 341, "assignee": {"id": 576}, "organization": {"id": 657}, "project": {"id": 354, "owner": {"id": 732}, "assignee": {"id": 899}}, "task": {"id": 301, "owner": {"id": 940}, "assignee": {"id": 1024}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "assignee": {"id": 552}, "organization": {"id": 190}, "project": {"id": 307, "owner": {"id": 794}, "assignee": {"id": 860}}, "task": {"id": 364, "owner": {"id": 976}, "assignee": {"id": 1059}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "assignee": {"id": 532}, "organization": {"id": 620}, "project": {"id": 355, "owner": {"id": 709}, "assignee": {"id": 875}}, "task": {"id": 390, "owner": {"id": 903}, "assignee": {"id": 1030}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "assignee": {"id": 561}, "organization": {"id": 107}, "project": {"id": 351, "owner": {"id": 795}, "assignee": {"id": 816}}, "task": {"id": 358, "owner": {"id": 993}, "assignee": {"id": 1026}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "assignee": {"id": 522}, "organization": {"id": 682}, "project": {"id": 318, "owner": {"id": 761}, "assignee": {"id": 813}}, "task": {"id": 313, "owner": {"id": 997}, "assignee": {"id": 1009}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 362, "assignee": {"id": 554}, "organization": {"id": 137}, "project": {"id": 315, "owner": {"id": 762}, "assignee": {"id": 813}}, "task": {"id": 354, "owner": {"id": 921}, "assignee": {"id": 1007}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 378, "assignee": {"id": 569}, "organization": {"id": 647}, "project": {"id": 314, "owner": {"id": 736}, "assignee": {"id": 834}}, "task": {"id": 370, "owner": {"id": 951}, "assignee": {"id": 1073}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 347, "assignee": {"id": 522}, "organization": {"id": 103}, "project": {"id": 354, "owner": {"id": 774}, "assignee": {"id": 801}}, "task": {"id": 326, "owner": {"id": 974}, "assignee": {"id": 1022}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 395, "assignee": {"id": 552}, "organization": {"id": 672}, "project": {"id": 370, "owner": {"id": 701}, "assignee": {"id": 812}}, "task": {"id": 334, "owner": {"id": 923}, "assignee": {"id": 1086}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 309, "assignee": {"id": 507}, "organization": {"id": 127}, "project": {"id": 369, "owner": {"id": 703}, "assignee": {"id": 809}}, "task": {"id": 357, "owner": {"id": 959}, "assignee": {"id": 1097}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 351, "assignee": {"id": 524}, "organization": {"id": 657}, "project": {"id": 399, "owner": {"id": 705}, "assignee": {"id": 843}}, "task": {"id": 387, "owner": {"id": 901}, "assignee": {"id": 1004}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "assignee": {"id": 523}, "organization": {"id": 114}, "project": {"id": 358, "owner": {"id": 723}, "assignee": {"id": 832}}, "task": {"id": 335, "owner": {"id": 948}, "assignee": {"id": 1073}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 320, "assignee": {"id": 572}, "organization": {"id": 635}, "project": {"id": 356, "owner": {"id": 755}, "assignee": {"id": 830}}, "task": {"id": 371, "owner": {"id": 900}, "assignee": {"id": 1069}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "assignee": {"id": 550}, "organization": {"id": 178}, "project": {"id": 341, "owner": {"id": 733}, "assignee": {"id": 807}}, "task": {"id": 320, "owner": {"id": 944}, "assignee": {"id": 1078}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "assignee": {"id": 513}, "organization": {"id": 689}, "project": {"id": 377, "owner": {"id": 728}, "assignee": {"id": 894}}, "task": {"id": 377, "owner": {"id": 928}, "assignee": {"id": 1016}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 397, "assignee": {"id": 563}, "organization": {"id": 144}, "project": {"id": 369, "owner": {"id": 711}, "assignee": {"id": 820}}, "task": {"id": 373, "owner": {"id": 915}, "assignee": {"id": 1049}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 306, "assignee": {"id": 538}, "organization": {"id": 698}, "project": {"id": 372, "owner": {"id": 754}, "assignee": {"id": 807}}, "task": {"id": 316, "owner": {"id": 955}, "assignee": {"id": 1091}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 382, "assignee": {"id": 542}, "organization": {"id": 175}, "project": {"id": 358, "owner": {"id": 721}, "assignee": {"id": 870}}, "task": {"id": 382, "owner": {"id": 938}, "assignee": {"id": 1045}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 333, "assignee": {"id": 579}, "organization": {"id": 695}, "project": {"id": 380, "owner": {"id": 775}, "assignee": {"id": 847}}, "task": {"id": 302, "owner": {"id": 957}, "assignee": {"id": 1092}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 355, "assignee": {"id": 538}, "organization": {"id": 121}, "project": {"id": 353, "owner": {"id": 795}, "assignee": {"id": 863}}, "task": {"id": 346, "owner": {"id": 996}, "assignee": {"id": 1052}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 369, "assignee": {"id": 501}, "organization": {"id": 685}, "project": {"id": 391, "owner": {"id": 713}, "assignee": {"id": 872}}, "task": {"id": 321, "owner": {"id": 976}, "assignee": {"id": 1005}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "assignee": {"id": 547}, "organization": {"id": 173}, "project": {"id": 338, "owner": {"id": 730}, "assignee": {"id": 879}}, "task": {"id": 304, "owner": {"id": 935}, "assignee": {"id": 1033}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "assignee": {"id": 528}, "organization": {"id": 622}, "project": {"id": 320, "owner": {"id": 744}, "assignee": {"id": 824}}, "task": {"id": 331, "owner": {"id": 926}, "assignee": {"id": 1022}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "assignee": {"id": 508}, "organization": {"id": 179}, "project": {"id": 319, "owner": {"id": 747}, "assignee": {"id": 883}}, "task": {"id": 342, "owner": {"id": 944}, "assignee": {"id": 1007}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "assignee": {"id": 543}, "organization": {"id": 636}, "project": {"id": 342, "owner": {"id": 791}, "assignee": {"id": 887}}, "task": {"id": 304, "owner": {"id": 928}, "assignee": {"id": 1051}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 371, "assignee": {"id": 536}, "organization": {"id": 120}, "project": {"id": 326, "owner": {"id": 779}, "assignee": {"id": 824}}, "task": {"id": 396, "owner": {"id": 999}, "assignee": {"id": 1031}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 331, "assignee": {"id": 550}, "organization": {"id": 620}, "project": {"id": 375, "owner": {"id": 754}, "assignee": {"id": 816}}, "task": {"id": 300, "owner": {"id": 968}, "assignee": {"id": 1003}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 394, "assignee": {"id": 568}, "organization": {"id": 120}, "project": {"id": 329, "owner": {"id": 715}, "assignee": {"id": 816}}, "task": {"id": 334, "owner": {"id": 996}, "assignee": {"id": 1034}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 307, "assignee": {"id": 556}, "organization": {"id": 699}, "project": {"id": 342, "owner": {"id": 796}, "assignee": {"id": 876}}, "task": {"id": 350, "owner": {"id": 940}, "assignee": {"id": 1078}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": null}, "resource": {"id": 394, "assignee": {"id": 568}, "organization": {"id": 634}, "project": {"id": 340, "owner": {"id": 90}, "assignee": {"id": 834}}, "task": {"id": 307, "owner": {"id": 924}, "assignee": {"id": 1021}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": null}, "resource": {"id": 321, "assignee": {"id": 543}, "organization": {"id": 659}, "project": {"id": 391, "owner": {"id": 7}, "assignee": {"id": 885}}, "task": {"id": 337, "owner": {"id": 955}, "assignee": {"id": 1035}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": null}, "resource": {"id": 373, "assignee": {"id": 522}, "organization": {"id": 676}, "project": {"id": 301, "owner": {"id": 50}, "assignee": {"id": 877}}, "task": {"id": 389, "owner": {"id": 983}, "assignee": {"id": 1053}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": null}, "resource": {"id": 341, "assignee": {"id": 529}, "organization": {"id": 659}, "project": {"id": 322, "owner": {"id": 54}, "assignee": {"id": 834}}, "task": {"id": 354, "owner": {"id": 911}, "assignee": {"id": 1056}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": null}, "resource": {"id": 309, "assignee": {"id": 598}, "organization": {"id": 663}, "project": {"id": 321, "owner": {"id": 42}, "assignee": {"id": 834}}, "task": {"id": 344, "owner": {"id": 954}, "assignee": {"id": 1099}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": null}, "resource": {"id": 366, "assignee": {"id": 533}, "organization": {"id": 635}, "project": {"id": 327, "owner": {"id": 758}, "assignee": {"id": 10}}, "task": {"id": 350, "owner": {"id": 993}, "assignee": {"id": 1048}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": null}, "resource": {"id": 317, "assignee": {"id": 523}, "organization": {"id": 694}, "project": {"id": 323, "owner": {"id": 753}, "assignee": {"id": 35}}, "task": {"id": 360, "owner": {"id": 973}, "assignee": {"id": 1082}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": null}, "resource": {"id": 324, "assignee": {"id": 574}, "organization": {"id": 674}, "project": {"id": 322, "owner": {"id": 798}, "assignee": {"id": 72}}, "task": {"id": 378, "owner": {"id": 910}, "assignee": {"id": 1086}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": null}, "resource": {"id": 306, "assignee": {"id": 589}, "organization": {"id": 618}, "project": {"id": 388, "owner": {"id": 786}, "assignee": {"id": 68}}, "task": {"id": 309, "owner": {"id": 959}, "assignee": {"id": 1092}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": null}, "resource": {"id": 366, "assignee": {"id": 564}, "organization": {"id": 684}, "project": {"id": 374, "owner": {"id": 743}, "assignee": {"id": 59}}, "task": {"id": 323, "owner": {"id": 982}, "assignee": {"id": 1082}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": null}, "resource": {"id": 334, "assignee": {"id": 572}, "organization": {"id": 657}, "project": {"id": 351, "owner": {"id": 790}, "assignee": {"id": 807}}, "task": {"id": 331, "owner": {"id": 83}, "assignee": {"id": 1048}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": null}, "resource": {"id": 323, "assignee": {"id": 577}, "organization": {"id": 667}, "project": {"id": 349, "owner": {"id": 723}, "assignee": {"id": 821}}, "task": {"id": 352, "owner": {"id": 16}, "assignee": {"id": 1079}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": null}, "resource": {"id": 392, "assignee": {"id": 595}, "organization": {"id": 608}, "project": {"id": 339, "owner": {"id": 794}, "assignee": {"id": 883}}, "task": {"id": 384, "owner": {"id": 36}, "assignee": {"id": 1004}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": null}, "resource": {"id": 355, "assignee": {"id": 573}, "organization": {"id": 642}, "project": {"id": 361, "owner": {"id": 719}, "assignee": {"id": 896}}, "task": {"id": 397, "owner": {"id": 82}, "assignee": {"id": 1093}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": null}, "resource": {"id": 316, "assignee": {"id": 599}, "organization": {"id": 628}, "project": {"id": 340, "owner": {"id": 708}, "assignee": {"id": 800}}, "task": {"id": 388, "owner": {"id": 41}, "assignee": {"id": 1052}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": null}, "resource": {"id": 322, "assignee": {"id": 510}, "organization": {"id": 669}, "project": {"id": 303, "owner": {"id": 787}, "assignee": {"id": 826}}, "task": {"id": 375, "owner": {"id": 948}, "assignee": {"id": 98}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": null}, "resource": {"id": 328, "assignee": {"id": 510}, "organization": {"id": 611}, "project": {"id": 325, "owner": {"id": 787}, "assignee": {"id": 818}}, "task": {"id": 349, "owner": {"id": 948}, "assignee": {"id": 12}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": null}, "resource": {"id": 301, "assignee": {"id": 517}, "organization": {"id": 695}, "project": {"id": 349, "owner": {"id": 709}, "assignee": {"id": 894}}, "task": {"id": 368, "owner": {"id": 938}, "assignee": {"id": 16}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": null}, "resource": {"id": 359, "assignee": {"id": 544}, "organization": {"id": 663}, "project": {"id": 337, "owner": {"id": 784}, "assignee": {"id": 841}}, "task": {"id": 332, "owner": {"id": 934}, "assignee": {"id": 75}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": null}, "resource": {"id": 387, "assignee": {"id": 500}, "organization": {"id": 608}, "project": {"id": 356, "owner": {"id": 729}, "assignee": {"id": 886}}, "task": {"id": 392, "owner": {"id": 981}, "assignee": {"id": 54}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": null}, "resource": {"id": 359, "assignee": {"id": 93}, "organization": {"id": 698}, "project": {"id": 323, "owner": {"id": 731}, "assignee": {"id": 895}}, "task": {"id": 388, "owner": {"id": 961}, "assignee": {"id": 1060}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": null}, "resource": {"id": 337, "assignee": {"id": 67}, "organization": {"id": 627}, "project": {"id": 338, "owner": {"id": 763}, "assignee": {"id": 884}}, "task": {"id": 309, "owner": {"id": 977}, "assignee": {"id": 1075}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": null}, "resource": {"id": 336, "assignee": {"id": 6}, "organization": {"id": 693}, "project": {"id": 304, "owner": {"id": 781}, "assignee": {"id": 860}}, "task": {"id": 390, "owner": {"id": 938}, "assignee": {"id": 1093}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": null}, "resource": {"id": 399, "assignee": {"id": 32}, "organization": {"id": 637}, "project": {"id": 327, "owner": {"id": 716}, "assignee": {"id": 816}}, "task": {"id": 395, "owner": {"id": 928}, "assignee": {"id": 1075}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": null}, "resource": {"id": 332, "assignee": {"id": 76}, "organization": {"id": 682}, "project": {"id": 347, "owner": {"id": 751}, "assignee": {"id": 839}}, "task": {"id": 359, "owner": {"id": 995}, "assignee": {"id": 1073}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": null}, "resource": {"id": 345, "assignee": {"id": 509}, "organization": {"id": 653}, "project": {"id": 348, "owner": {"id": 745}, "assignee": {"id": 832}}, "task": {"id": 341, "owner": {"id": 913}, "assignee": {"id": 1019}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": null}, "resource": {"id": 314, "assignee": {"id": 526}, "organization": {"id": 646}, "project": {"id": 349, "owner": {"id": 778}, "assignee": {"id": 834}}, "task": {"id": 367, "owner": {"id": 901}, "assignee": {"id": 1038}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": null}, "resource": {"id": 387, "assignee": {"id": 566}, "organization": {"id": 692}, "project": {"id": 320, "owner": {"id": 725}, "assignee": {"id": 800}}, "task": {"id": 364, "owner": {"id": 966}, "assignee": {"id": 1096}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": null}, "resource": {"id": 383, "assignee": {"id": 560}, "organization": {"id": 615}, "project": {"id": 357, "owner": {"id": 779}, "assignee": {"id": 864}}, "task": {"id": 374, "owner": {"id": 903}, "assignee": {"id": 1019}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": null}, "resource": {"id": 361, "assignee": {"id": 551}, "organization": {"id": 610}, "project": {"id": 319, "owner": {"id": 730}, "assignee": {"id": 875}}, "task": {"id": 351, "owner": {"id": 987}, "assignee": {"id": 1013}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 370, "assignee": {"id": 569}, "organization": {"id": 183}, "project": {"id": 319, "owner": {"id": 49}, "assignee": {"id": 882}}, "task": {"id": 369, "owner": {"id": 966}, "assignee": {"id": 1082}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 312, "assignee": {"id": 565}, "organization": {"id": 698}, "project": {"id": 317, "owner": {"id": 49}, "assignee": {"id": 883}}, "task": {"id": 362, "owner": {"id": 900}, "assignee": {"id": 1051}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "assignee": {"id": 504}, "organization": {"id": 118}, "project": {"id": 306, "owner": {"id": 99}, "assignee": {"id": 875}}, "task": {"id": 316, "owner": {"id": 928}, "assignee": {"id": 1061}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "assignee": {"id": 518}, "organization": {"id": 649}, "project": {"id": 370, "owner": {"id": 65}, "assignee": {"id": 829}}, "task": {"id": 328, "owner": {"id": 935}, "assignee": {"id": 1090}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "assignee": {"id": 538}, "organization": {"id": 162}, "project": {"id": 358, "owner": {"id": 53}, "assignee": {"id": 831}}, "task": {"id": 391, "owner": {"id": 940}, "assignee": {"id": 1005}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "assignee": {"id": 565}, "organization": {"id": 678}, "project": {"id": 352, "owner": {"id": 45}, "assignee": {"id": 893}}, "task": {"id": 328, "owner": {"id": 924}, "assignee": {"id": 1043}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 301, "assignee": {"id": 562}, "organization": {"id": 112}, "project": {"id": 330, "owner": {"id": 27}, "assignee": {"id": 812}}, "task": {"id": 398, "owner": {"id": 921}, "assignee": {"id": 1084}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 342, "assignee": {"id": 543}, "organization": {"id": 680}, "project": {"id": 305, "owner": {"id": 4}, "assignee": {"id": 898}}, "task": {"id": 340, "owner": {"id": 956}, "assignee": {"id": 1086}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"id": 382, "assignee": {"id": 511}, "organization": {"id": 135}, "project": {"id": 361, "owner": {"id": 66}, "assignee": {"id": 877}}, "task": {"id": 386, "owner": {"id": 994}, "assignee": {"id": 1028}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 335, "assignee": {"id": 533}, "organization": {"id": 605}, "project": {"id": 339, "owner": {"id": 9}, "assignee": {"id": 865}}, "task": {"id": 368, "owner": {"id": 926}, "assignee": {"id": 1013}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 339, "assignee": {"id": 561}, "organization": {"id": 141}, "project": {"id": 383, "owner": {"id": 82}, "assignee": {"id": 813}}, "task": {"id": 396, "owner": {"id": 919}, "assignee": {"id": 1029}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 325, "assignee": {"id": 551}, "organization": {"id": 668}, "project": {"id": 356, "owner": {"id": 99}, "assignee": {"id": 841}}, "task": {"id": 380, "owner": {"id": 996}, "assignee": {"id": 1050}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "assignee": {"id": 595}, "organization": {"id": 106}, "project": {"id": 374, "owner": {"id": 68}, "assignee": {"id": 856}}, "task": {"id": 357, "owner": {"id": 979}, "assignee": {"id": 1057}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "assignee": {"id": 581}, "organization": {"id": 638}, "project": {"id": 399, "owner": {"id": 37}, "assignee": {"id": 834}}, "task": {"id": 345, "owner": {"id": 954}, "assignee": {"id": 1065}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "assignee": {"id": 573}, "organization": {"id": 138}, "project": {"id": 303, "owner": {"id": 54}, "assignee": {"id": 829}}, "task": {"id": 398, "owner": {"id": 954}, "assignee": {"id": 1092}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "assignee": {"id": 555}, "organization": {"id": 627}, "project": {"id": 317, "owner": {"id": 63}, "assignee": {"id": 840}}, "task": {"id": 361, "owner": {"id": 927}, "assignee": {"id": 1097}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 326, "assignee": {"id": 515}, "organization": {"id": 190}, "project": {"id": 374, "owner": {"id": 76}, "assignee": {"id": 846}}, "task": {"id": 357, "owner": {"id": 990}, "assignee": {"id": 1020}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 318, "assignee": {"id": 584}, "organization": {"id": 656}, "project": {"id": 329, "owner": {"id": 95}, "assignee": {"id": 865}}, "task": {"id": 350, "owner": {"id": 971}, "assignee": {"id": 1099}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"id": 304, "assignee": {"id": 517}, "organization": {"id": 182}, "project": {"id": 311, "owner": {"id": 38}, "assignee": {"id": 871}}, "task": {"id": 347, "owner": {"id": 990}, "assignee": {"id": 1084}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 329, "assignee": {"id": 529}, "organization": {"id": 622}, "project": {"id": 338, "owner": {"id": 70}, "assignee": {"id": 848}}, "task": {"id": 394, "owner": {"id": 947}, "assignee": {"id": 1008}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 394, "assignee": {"id": 532}, "organization": {"id": 138}, "project": {"id": 331, "owner": {"id": 26}, "assignee": {"id": 855}}, "task": {"id": 349, "owner": {"id": 903}, "assignee": {"id": 1059}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 349, "assignee": {"id": 560}, "organization": {"id": 690}, "project": {"id": 332, "owner": {"id": 95}, "assignee": {"id": 822}}, "task": {"id": 393, "owner": {"id": 915}, "assignee": {"id": 1044}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "assignee": {"id": 569}, "organization": {"id": 114}, "project": {"id": 383, "owner": {"id": 78}, "assignee": {"id": 880}}, "task": {"id": 362, "owner": {"id": 934}, "assignee": {"id": 1094}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "assignee": {"id": 556}, "organization": {"id": 600}, "project": {"id": 343, "owner": {"id": 85}, "assignee": {"id": 820}}, "task": {"id": 321, "owner": {"id": 909}, "assignee": {"id": 1065}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "assignee": {"id": 570}, "organization": {"id": 185}, "project": {"id": 382, "owner": {"id": 35}, "assignee": {"id": 812}}, "task": {"id": 329, "owner": {"id": 997}, "assignee": {"id": 1038}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "assignee": {"id": 589}, "organization": {"id": 607}, "project": {"id": 390, "owner": {"id": 62}, "assignee": {"id": 832}}, "task": {"id": 371, "owner": {"id": 926}, "assignee": {"id": 1088}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 303, "assignee": {"id": 594}, "organization": {"id": 181}, "project": {"id": 375, "owner": {"id": 85}, "assignee": {"id": 816}}, "task": {"id": 368, "owner": {"id": 951}, "assignee": {"id": 1036}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"id": 325, "assignee": {"id": 598}, "organization": {"id": 603}, "project": {"id": 319, "owner": {"id": 73}, "assignee": {"id": 881}}, "task": {"id": 344, "owner": {"id": 995}, "assignee": {"id": 1003}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 374, "assignee": {"id": 549}, "organization": {"id": 158}, "project": {"id": 323, "owner": {"id": 57}, "assignee": {"id": 871}}, "task": {"id": 324, "owner": {"id": 953}, "assignee": {"id": 1048}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 376, "assignee": {"id": 595}, "organization": {"id": 648}, "project": {"id": 353, "owner": {"id": 40}, "assignee": {"id": 855}}, "task": {"id": 309, "owner": {"id": 900}, "assignee": {"id": 1017}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 330, "assignee": {"id": 535}, "organization": {"id": 134}, "project": {"id": 304, "owner": {"id": 28}, "assignee": {"id": 816}}, "task": {"id": 317, "owner": {"id": 987}, "assignee": {"id": 1089}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 375, "assignee": {"id": 569}, "organization": {"id": 605}, "project": {"id": 309, "owner": {"id": 28}, "assignee": {"id": 892}}, "task": {"id": 356, "owner": {"id": 954}, "assignee": {"id": 1070}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "assignee": {"id": 579}, "organization": {"id": 119}, "project": {"id": 302, "owner": {"id": 41}, "assignee": {"id": 860}}, "task": {"id": 357, "owner": {"id": 978}, "assignee": {"id": 1009}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "assignee": {"id": 535}, "organization": {"id": 651}, "project": {"id": 315, "owner": {"id": 27}, "assignee": {"id": 837}}, "task": {"id": 303, "owner": {"id": 978}, "assignee": {"id": 1021}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "assignee": {"id": 508}, "organization": {"id": 106}, "project": {"id": 338, "owner": {"id": 48}, "assignee": {"id": 846}}, "task": {"id": 355, "owner": {"id": 939}, "assignee": {"id": 1017}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "assignee": {"id": 549}, "organization": {"id": 631}, "project": {"id": 362, "owner": {"id": 72}, "assignee": {"id": 816}}, "task": {"id": 348, "owner": {"id": 927}, "assignee": {"id": 1008}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 345, "assignee": {"id": 594}, "organization": {"id": 120}, "project": {"id": 348, "owner": {"id": 97}, "assignee": {"id": 881}}, "task": {"id": 342, "owner": {"id": 945}, "assignee": {"id": 1074}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 323, "assignee": {"id": 562}, "organization": {"id": 687}, "project": {"id": 356, "owner": {"id": 5}, "assignee": {"id": 833}}, "task": {"id": 311, "owner": {"id": 938}, "assignee": {"id": 1077}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 370, "assignee": {"id": 541}, "organization": {"id": 126}, "project": {"id": 322, "owner": {"id": 92}, "assignee": {"id": 842}}, "task": {"id": 343, "owner": {"id": 908}, "assignee": {"id": 1093}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 399, "assignee": {"id": 536}, "organization": {"id": 687}, "project": {"id": 332, "owner": {"id": 68}, "assignee": {"id": 851}}, "task": {"id": 361, "owner": {"id": 918}, "assignee": {"id": 1023}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 373, "assignee": {"id": 500}, "organization": {"id": 135}, "project": {"id": 360, "owner": {"id": 46}, "assignee": {"id": 830}}, "task": {"id": 329, "owner": {"id": 908}, "assignee": {"id": 1032}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 393, "assignee": {"id": 594}, "organization": {"id": 689}, "project": {"id": 310, "owner": {"id": 25}, "assignee": {"id": 887}}, "task": {"id": 361, "owner": {"id": 937}, "assignee": {"id": 1074}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "assignee": {"id": 514}, "organization": {"id": 140}, "project": {"id": 389, "owner": {"id": 75}, "assignee": {"id": 858}}, "task": {"id": 367, "owner": {"id": 966}, "assignee": {"id": 1059}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "assignee": {"id": 517}, "organization": {"id": 688}, "project": {"id": 301, "owner": {"id": 31}, "assignee": {"id": 801}}, "task": {"id": 374, "owner": {"id": 941}, "assignee": {"id": 1036}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "assignee": {"id": 555}, "organization": {"id": 164}, "project": {"id": 312, "owner": {"id": 47}, "assignee": {"id": 824}}, "task": {"id": 306, "owner": {"id": 989}, "assignee": {"id": 1067}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "assignee": {"id": 512}, "organization": {"id": 692}, "project": {"id": 389, "owner": {"id": 26}, "assignee": {"id": 861}}, "task": {"id": 331, "owner": {"id": 910}, "assignee": {"id": 1039}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 341, "assignee": {"id": 511}, "organization": {"id": 180}, "project": {"id": 332, "owner": {"id": 21}, "assignee": {"id": 855}}, "task": {"id": 361, "owner": {"id": 968}, "assignee": {"id": 1052}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 301, "assignee": {"id": 562}, "organization": {"id": 670}, "project": {"id": 309, "owner": {"id": 85}, "assignee": {"id": 858}}, "task": {"id": 312, "owner": {"id": 905}, "assignee": {"id": 1078}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 367, "assignee": {"id": 540}, "organization": {"id": 182}, "project": {"id": 338, "owner": {"id": 52}, "assignee": {"id": 842}}, "task": {"id": 397, "owner": {"id": 958}, "assignee": {"id": 1006}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"id": 383, "assignee": {"id": 500}, "organization": {"id": 618}, "project": {"id": 354, "owner": {"id": 9}, "assignee": {"id": 884}}, "task": {"id": 325, "owner": {"id": 931}, "assignee": {"id": 1092}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 322, "assignee": {"id": 590}, "organization": {"id": 106}, "project": {"id": 325, "owner": {"id": 701}, "assignee": {"id": 24}}, "task": {"id": 304, "owner": {"id": 906}, "assignee": {"id": 1023}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 364, "assignee": {"id": 555}, "organization": {"id": 642}, "project": {"id": 382, "owner": {"id": 788}, "assignee": {"id": 41}}, "task": {"id": 389, "owner": {"id": 902}, "assignee": {"id": 1086}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "assignee": {"id": 594}, "organization": {"id": 104}, "project": {"id": 312, "owner": {"id": 737}, "assignee": {"id": 61}}, "task": {"id": 303, "owner": {"id": 951}, "assignee": {"id": 1052}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "assignee": {"id": 509}, "organization": {"id": 632}, "project": {"id": 340, "owner": {"id": 794}, "assignee": {"id": 12}}, "task": {"id": 372, "owner": {"id": 918}, "assignee": {"id": 1002}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "assignee": {"id": 526}, "organization": {"id": 104}, "project": {"id": 366, "owner": {"id": 718}, "assignee": {"id": 4}}, "task": {"id": 317, "owner": {"id": 917}, "assignee": {"id": 1035}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "assignee": {"id": 575}, "organization": {"id": 616}, "project": {"id": 323, "owner": {"id": 785}, "assignee": {"id": 17}}, "task": {"id": 306, "owner": {"id": 947}, "assignee": {"id": 1048}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 312, "assignee": {"id": 584}, "organization": {"id": 132}, "project": {"id": 378, "owner": {"id": 796}, "assignee": {"id": 26}}, "task": {"id": 309, "owner": {"id": 914}, "assignee": {"id": 1097}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 339, "assignee": {"id": 526}, "organization": {"id": 628}, "project": {"id": 373, "owner": {"id": 712}, "assignee": {"id": 46}}, "task": {"id": 329, "owner": {"id": 982}, "assignee": {"id": 1022}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 348, "assignee": {"id": 514}, "organization": {"id": 186}, "project": {"id": 320, "owner": {"id": 731}, "assignee": {"id": 52}}, "task": {"id": 376, "owner": {"id": 932}, "assignee": {"id": 1042}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"id": 342, "assignee": {"id": 516}, "organization": {"id": 627}, "project": {"id": 338, "owner": {"id": 723}, "assignee": {"id": 38}}, "task": {"id": 351, "owner": {"id": 938}, "assignee": {"id": 1098}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 354, "assignee": {"id": 500}, "organization": {"id": 122}, "project": {"id": 333, "owner": {"id": 774}, "assignee": {"id": 34}}, "task": {"id": 355, "owner": {"id": 954}, "assignee": {"id": 1024}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 306, "assignee": {"id": 593}, "organization": {"id": 674}, "project": {"id": 345, "owner": {"id": 731}, "assignee": {"id": 85}}, "task": {"id": 396, "owner": {"id": 958}, "assignee": {"id": 1081}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "assignee": {"id": 535}, "organization": {"id": 160}, "project": {"id": 373, "owner": {"id": 770}, "assignee": {"id": 79}}, "task": {"id": 380, "owner": {"id": 946}, "assignee": {"id": 1022}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "assignee": {"id": 551}, "organization": {"id": 699}, "project": {"id": 311, "owner": {"id": 742}, "assignee": {"id": 47}}, "task": {"id": 322, "owner": {"id": 949}, "assignee": {"id": 1051}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "assignee": {"id": 534}, "organization": {"id": 107}, "project": {"id": 397, "owner": {"id": 749}, "assignee": {"id": 65}}, "task": {"id": 347, "owner": {"id": 931}, "assignee": {"id": 1081}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "assignee": {"id": 553}, "organization": {"id": 638}, "project": {"id": 313, "owner": {"id": 734}, "assignee": {"id": 51}}, "task": {"id": 347, "owner": {"id": 928}, "assignee": {"id": 1031}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 347, "assignee": {"id": 520}, "organization": {"id": 140}, "project": {"id": 356, "owner": {"id": 799}, "assignee": {"id": 92}}, "task": {"id": 397, "owner": {"id": 950}, "assignee": {"id": 1055}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 329, "assignee": {"id": 543}, "organization": {"id": 626}, "project": {"id": 371, "owner": {"id": 774}, "assignee": {"id": 16}}, "task": {"id": 388, "owner": {"id": 989}, "assignee": {"id": 1052}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 398, "assignee": {"id": 573}, "organization": {"id": 196}, "project": {"id": 343, "owner": {"id": 795}, "assignee": {"id": 90}}, "task": {"id": 319, "owner": {"id": 937}, "assignee": {"id": 1025}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 363, "assignee": {"id": 575}, "organization": {"id": 619}, "project": {"id": 338, "owner": {"id": 713}, "assignee": {"id": 82}}, "task": {"id": 360, "owner": {"id": 910}, "assignee": {"id": 1020}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 389, "assignee": {"id": 553}, "organization": {"id": 184}, "project": {"id": 395, "owner": {"id": 780}, "assignee": {"id": 27}}, "task": {"id": 328, "owner": {"id": 941}, "assignee": {"id": 1034}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 352, "assignee": {"id": 570}, "organization": {"id": 642}, "project": {"id": 364, "owner": {"id": 795}, "assignee": {"id": 3}}, "task": {"id": 331, "owner": {"id": 985}, "assignee": {"id": 1073}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "assignee": {"id": 593}, "organization": {"id": 178}, "project": {"id": 318, "owner": {"id": 737}, "assignee": {"id": 30}}, "task": {"id": 360, "owner": {"id": 975}, "assignee": {"id": 1081}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "assignee": {"id": 597}, "organization": {"id": 669}, "project": {"id": 384, "owner": {"id": 709}, "assignee": {"id": 86}}, "task": {"id": 312, "owner": {"id": 945}, "assignee": {"id": 1028}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "assignee": {"id": 550}, "organization": {"id": 102}, "project": {"id": 383, "owner": {"id": 725}, "assignee": {"id": 31}}, "task": {"id": 359, "owner": {"id": 911}, "assignee": {"id": 1003}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "assignee": {"id": 560}, "organization": {"id": 616}, "project": {"id": 348, "owner": {"id": 707}, "assignee": {"id": 98}}, "task": {"id": 388, "owner": {"id": 921}, "assignee": {"id": 1099}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 335, "assignee": {"id": 568}, "organization": {"id": 149}, "project": {"id": 354, "owner": {"id": 761}, "assignee": {"id": 17}}, "task": {"id": 391, "owner": {"id": 902}, "assignee": {"id": 1071}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 335, "assignee": {"id": 573}, "organization": {"id": 626}, "project": {"id": 315, "owner": {"id": 716}, "assignee": {"id": 75}}, "task": {"id": 336, "owner": {"id": 950}, "assignee": {"id": 1025}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 398, "assignee": {"id": 556}, "organization": {"id": 181}, "project": {"id": 323, "owner": {"id": 741}, "assignee": {"id": 74}}, "task": {"id": 335, "owner": {"id": 918}, "assignee": {"id": 1095}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 349, "assignee": {"id": 589}, "organization": {"id": 637}, "project": {"id": 344, "owner": {"id": 796}, "assignee": {"id": 13}}, "task": {"id": 326, "owner": {"id": 924}, "assignee": {"id": 1076}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 395, "assignee": {"id": 574}, "organization": {"id": 164}, "project": {"id": 380, "owner": {"id": 738}, "assignee": {"id": 33}}, "task": {"id": 327, "owner": {"id": 950}, "assignee": {"id": 1073}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 310, "assignee": {"id": 585}, "organization": {"id": 614}, "project": {"id": 323, "owner": {"id": 782}, "assignee": {"id": 37}}, "task": {"id": 389, "owner": {"id": 949}, "assignee": {"id": 1091}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "assignee": {"id": 579}, "organization": {"id": 127}, "project": {"id": 357, "owner": {"id": 786}, "assignee": {"id": 28}}, "task": {"id": 352, "owner": {"id": 987}, "assignee": {"id": 1070}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "assignee": {"id": 576}, "organization": {"id": 614}, "project": {"id": 304, "owner": {"id": 713}, "assignee": {"id": 98}}, "task": {"id": 313, "owner": {"id": 921}, "assignee": {"id": 1044}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "assignee": {"id": 551}, "organization": {"id": 104}, "project": {"id": 391, "owner": {"id": 731}, "assignee": {"id": 74}}, "task": {"id": 377, "owner": {"id": 934}, "assignee": {"id": 1093}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "assignee": {"id": 510}, "organization": {"id": 624}, "project": {"id": 328, "owner": {"id": 729}, "assignee": {"id": 85}}, "task": {"id": 334, "owner": {"id": 927}, "assignee": {"id": 1060}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 384, "assignee": {"id": 526}, "organization": {"id": 188}, "project": {"id": 335, "owner": {"id": 768}, "assignee": {"id": 69}}, "task": {"id": 336, "owner": {"id": 905}, "assignee": {"id": 1072}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 311, "assignee": {"id": 593}, "organization": {"id": 607}, "project": {"id": 309, "owner": {"id": 755}, "assignee": {"id": 9}}, "task": {"id": 376, "owner": {"id": 927}, "assignee": {"id": 1004}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 311, "assignee": {"id": 513}, "organization": {"id": 184}, "project": {"id": 301, "owner": {"id": 736}, "assignee": {"id": 84}}, "task": {"id": 383, "owner": {"id": 990}, "assignee": {"id": 1075}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 398, "assignee": {"id": 503}, "organization": {"id": 606}, "project": {"id": 339, "owner": {"id": 783}, "assignee": {"id": 71}}, "task": {"id": 304, "owner": {"id": 919}, "assignee": {"id": 1067}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 315, "assignee": {"id": 551}, "organization": {"id": 137}, "project": {"id": 304, "owner": {"id": 795}, "assignee": {"id": 31}}, "task": {"id": 379, "owner": {"id": 977}, "assignee": {"id": 1005}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 315, "assignee": {"id": 598}, "organization": {"id": 625}, "project": {"id": 333, "owner": {"id": 764}, "assignee": {"id": 33}}, "task": {"id": 342, "owner": {"id": 938}, "assignee": {"id": 1070}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "assignee": {"id": 540}, "organization": {"id": 112}, "project": {"id": 309, "owner": {"id": 754}, "assignee": {"id": 85}}, "task": {"id": 389, "owner": {"id": 961}, "assignee": {"id": 1072}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "assignee": {"id": 512}, "organization": {"id": 626}, "project": {"id": 369, "owner": {"id": 748}, "assignee": {"id": 12}}, "task": {"id": 310, "owner": {"id": 941}, "assignee": {"id": 1061}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "assignee": {"id": 514}, "organization": {"id": 117}, "project": {"id": 317, "owner": {"id": 790}, "assignee": {"id": 2}}, "task": {"id": 374, "owner": {"id": 987}, "assignee": {"id": 1039}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "assignee": {"id": 585}, "organization": {"id": 600}, "project": {"id": 320, "owner": {"id": 766}, "assignee": {"id": 11}}, "task": {"id": 383, "owner": {"id": 911}, "assignee": {"id": 1037}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 368, "assignee": {"id": 558}, "organization": {"id": 177}, "project": {"id": 338, "owner": {"id": 740}, "assignee": {"id": 98}}, "task": {"id": 362, "owner": {"id": 989}, "assignee": {"id": 1009}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 355, "assignee": {"id": 560}, "organization": {"id": 665}, "project": {"id": 347, "owner": {"id": 762}, "assignee": {"id": 77}}, "task": {"id": 337, "owner": {"id": 954}, "assignee": {"id": 1024}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 370, "assignee": {"id": 510}, "organization": {"id": 115}, "project": {"id": 381, "owner": {"id": 763}, "assignee": {"id": 48}}, "task": {"id": 378, "owner": {"id": 914}, "assignee": {"id": 1084}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 336, "assignee": {"id": 521}, "organization": {"id": 631}, "project": {"id": 382, "owner": {"id": 719}, "assignee": {"id": 9}}, "task": {"id": 344, "owner": {"id": 936}, "assignee": {"id": 1006}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 310, "assignee": {"id": 542}, "organization": {"id": 123}, "project": {"id": 342, "owner": {"id": 706}, "assignee": {"id": 852}}, "task": {"id": 376, "owner": {"id": 84}, "assignee": {"id": 1055}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 308, "assignee": {"id": 552}, "organization": {"id": 670}, "project": {"id": 332, "owner": {"id": 744}, "assignee": {"id": 843}}, "task": {"id": 321, "owner": {"id": 96}, "assignee": {"id": 1022}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "assignee": {"id": 539}, "organization": {"id": 108}, "project": {"id": 300, "owner": {"id": 717}, "assignee": {"id": 881}}, "task": {"id": 346, "owner": {"id": 92}, "assignee": {"id": 1062}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "assignee": {"id": 574}, "organization": {"id": 669}, "project": {"id": 376, "owner": {"id": 790}, "assignee": {"id": 878}}, "task": {"id": 335, "owner": {"id": 45}, "assignee": {"id": 1067}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "assignee": {"id": 536}, "organization": {"id": 175}, "project": {"id": 372, "owner": {"id": 776}, "assignee": {"id": 828}}, "task": {"id": 307, "owner": {"id": 13}, "assignee": {"id": 1047}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "assignee": {"id": 593}, "organization": {"id": 643}, "project": {"id": 355, "owner": {"id": 757}, "assignee": {"id": 844}}, "task": {"id": 384, "owner": {"id": 46}, "assignee": {"id": 1026}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 364, "assignee": {"id": 537}, "organization": {"id": 149}, "project": {"id": 323, "owner": {"id": 757}, "assignee": {"id": 881}}, "task": {"id": 392, "owner": {"id": 19}, "assignee": {"id": 1058}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 317, "assignee": {"id": 597}, "organization": {"id": 683}, "project": {"id": 346, "owner": {"id": 751}, "assignee": {"id": 846}}, "task": {"id": 303, "owner": {"id": 1}, "assignee": {"id": 1048}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 384, "assignee": {"id": 505}, "organization": {"id": 165}, "project": {"id": 337, "owner": {"id": 783}, "assignee": {"id": 835}}, "task": {"id": 314, "owner": {"id": 48}, "assignee": {"id": 1000}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 353, "assignee": {"id": 523}, "organization": {"id": 633}, "project": {"id": 305, "owner": {"id": 789}, "assignee": {"id": 865}}, "task": {"id": 356, "owner": {"id": 0}, "assignee": {"id": 1013}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 352, "assignee": {"id": 552}, "organization": {"id": 117}, "project": {"id": 376, "owner": {"id": 707}, "assignee": {"id": 886}}, "task": {"id": 334, "owner": {"id": 62}, "assignee": {"id": 1012}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 318, "assignee": {"id": 500}, "organization": {"id": 660}, "project": {"id": 352, "owner": {"id": 721}, "assignee": {"id": 824}}, "task": {"id": 364, "owner": {"id": 15}, "assignee": {"id": 1014}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 320, "assignee": {"id": 517}, "organization": {"id": 136}, "project": {"id": 318, "owner": {"id": 770}, "assignee": {"id": 818}}, "task": {"id": 323, "owner": {"id": 19}, "assignee": {"id": 1071}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "assignee": {"id": 535}, "organization": {"id": 660}, "project": {"id": 341, "owner": {"id": 719}, "assignee": {"id": 867}}, "task": {"id": 324, "owner": {"id": 75}, "assignee": {"id": 1077}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "assignee": {"id": 500}, "organization": {"id": 177}, "project": {"id": 311, "owner": {"id": 704}, "assignee": {"id": 892}}, "task": {"id": 396, "owner": {"id": 57}, "assignee": {"id": 1034}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "assignee": {"id": 547}, "organization": {"id": 613}, "project": {"id": 390, "owner": {"id": 714}, "assignee": {"id": 831}}, "task": {"id": 344, "owner": {"id": 99}, "assignee": {"id": 1003}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 340, "assignee": {"id": 599}, "organization": {"id": 100}, "project": {"id": 318, "owner": {"id": 721}, "assignee": {"id": 898}}, "task": {"id": 382, "owner": {"id": 16}, "assignee": {"id": 1075}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 337, "assignee": {"id": 515}, "organization": {"id": 681}, "project": {"id": 389, "owner": {"id": 785}, "assignee": {"id": 846}}, "task": {"id": 362, "owner": {"id": 76}, "assignee": {"id": 1005}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 367, "assignee": {"id": 530}, "organization": {"id": 179}, "project": {"id": 316, "owner": {"id": 769}, "assignee": {"id": 802}}, "task": {"id": 309, "owner": {"id": 13}, "assignee": {"id": 1038}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 391, "assignee": {"id": 542}, "organization": {"id": 631}, "project": {"id": 338, "owner": {"id": 709}, "assignee": {"id": 878}}, "task": {"id": 342, "owner": {"id": 97}, "assignee": {"id": 1016}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 312, "assignee": {"id": 583}, "organization": {"id": 180}, "project": {"id": 336, "owner": {"id": 760}, "assignee": {"id": 871}}, "task": {"id": 352, "owner": {"id": 93}, "assignee": {"id": 1036}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 370, "assignee": {"id": 504}, "organization": {"id": 622}, "project": {"id": 310, "owner": {"id": 782}, "assignee": {"id": 865}}, "task": {"id": 386, "owner": {"id": 28}, "assignee": {"id": 1078}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "assignee": {"id": 596}, "organization": {"id": 159}, "project": {"id": 363, "owner": {"id": 771}, "assignee": {"id": 882}}, "task": {"id": 390, "owner": {"id": 29}, "assignee": {"id": 1086}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "assignee": {"id": 598}, "organization": {"id": 614}, "project": {"id": 385, "owner": {"id": 718}, "assignee": {"id": 812}}, "task": {"id": 328, "owner": {"id": 92}, "assignee": {"id": 1079}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "assignee": {"id": 530}, "organization": {"id": 141}, "project": {"id": 351, "owner": {"id": 776}, "assignee": {"id": 873}}, "task": {"id": 301, "owner": {"id": 70}, "assignee": {"id": 1042}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "assignee": {"id": 547}, "organization": {"id": 675}, "project": {"id": 373, "owner": {"id": 739}, "assignee": {"id": 889}}, "task": {"id": 398, "owner": {"id": 97}, "assignee": {"id": 1069}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 373, "assignee": {"id": 594}, "organization": {"id": 138}, "project": {"id": 353, "owner": {"id": 777}, "assignee": {"id": 855}}, "task": {"id": 372, "owner": {"id": 88}, "assignee": {"id": 1006}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 319, "assignee": {"id": 566}, "organization": {"id": 677}, "project": {"id": 369, "owner": {"id": 754}, "assignee": {"id": 801}}, "task": {"id": 348, "owner": {"id": 6}, "assignee": {"id": 1093}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 353, "assignee": {"id": 558}, "organization": {"id": 110}, "project": {"id": 329, "owner": {"id": 757}, "assignee": {"id": 896}}, "task": {"id": 334, "owner": {"id": 5}, "assignee": {"id": 1056}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 340, "assignee": {"id": 518}, "organization": {"id": 656}, "project": {"id": 353, "owner": {"id": 711}, "assignee": {"id": 828}}, "task": {"id": 353, "owner": {"id": 8}, "assignee": {"id": 1071}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 24, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 370, "assignee": {"id": 507}, "organization": {"id": 161}, "project": {"id": 345, "owner": {"id": 728}, "assignee": {"id": 881}}, "task": {"id": 302, "owner": {"id": 24}, "assignee": {"id": 1035}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 351, "assignee": {"id": 578}, "organization": {"id": 678}, "project": {"id": 320, "owner": {"id": 781}, "assignee": {"id": 878}}, "task": {"id": 350, "owner": {"id": 38}, "assignee": {"id": 1034}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "assignee": {"id": 523}, "organization": {"id": 118}, "project": {"id": 301, "owner": {"id": 768}, "assignee": {"id": 836}}, "task": {"id": 386, "owner": {"id": 95}, "assignee": {"id": 1030}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "assignee": {"id": 527}, "organization": {"id": 638}, "project": {"id": 365, "owner": {"id": 700}, "assignee": {"id": 898}}, "task": {"id": 304, "owner": {"id": 58}, "assignee": {"id": 1010}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "assignee": {"id": 514}, "organization": {"id": 168}, "project": {"id": 342, "owner": {"id": 743}, "assignee": {"id": 831}}, "task": {"id": 350, "owner": {"id": 41}, "assignee": {"id": 1013}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 340, "assignee": {"id": 558}, "organization": {"id": 636}, "project": {"id": 374, "owner": {"id": 703}, "assignee": {"id": 849}}, "task": {"id": 322, "owner": {"id": 48}, "assignee": {"id": 1072}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 335, "assignee": {"id": 521}, "organization": {"id": 118}, "project": {"id": 357, "owner": {"id": 707}, "assignee": {"id": 830}}, "task": {"id": 397, "owner": {"id": 84}, "assignee": {"id": 1028}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 343, "assignee": {"id": 586}, "organization": {"id": 676}, "project": {"id": 337, "owner": {"id": 745}, "assignee": {"id": 823}}, "task": {"id": 328, "owner": {"id": 81}, "assignee": {"id": 1041}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 367, "assignee": {"id": 549}, "organization": {"id": 123}, "project": {"id": 305, "owner": {"id": 735}, "assignee": {"id": 802}}, "task": {"id": 317, "owner": {"id": 50}, "assignee": {"id": 1055}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 379, "assignee": {"id": 576}, "organization": {"id": 611}, "project": {"id": 356, "owner": {"id": 720}, "assignee": {"id": 812}}, "task": {"id": 362, "owner": {"id": 76}, "assignee": {"id": 1020}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 303, "assignee": {"id": 538}, "organization": {"id": 187}, "project": {"id": 352, "owner": {"id": 759}, "assignee": {"id": 869}}, "task": {"id": 398, "owner": {"id": 45}, "assignee": {"id": 1015}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 375, "assignee": {"id": 522}, "organization": {"id": 651}, "project": {"id": 348, "owner": {"id": 777}, "assignee": {"id": 826}}, "task": {"id": 360, "owner": {"id": 28}, "assignee": {"id": 1050}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "assignee": {"id": 504}, "organization": {"id": 168}, "project": {"id": 315, "owner": {"id": 729}, "assignee": {"id": 875}}, "task": {"id": 320, "owner": {"id": 38}, "assignee": {"id": 1005}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "assignee": {"id": 500}, "organization": {"id": 623}, "project": {"id": 319, "owner": {"id": 705}, "assignee": {"id": 853}}, "task": {"id": 312, "owner": {"id": 6}, "assignee": {"id": 1074}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "assignee": {"id": 582}, "organization": {"id": 110}, "project": {"id": 327, "owner": {"id": 747}, "assignee": {"id": 879}}, "task": {"id": 328, "owner": {"id": 62}, "assignee": {"id": 1077}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "assignee": {"id": 500}, "organization": {"id": 607}, "project": {"id": 382, "owner": {"id": 702}, "assignee": {"id": 823}}, "task": {"id": 390, "owner": {"id": 43}, "assignee": {"id": 1082}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 348, "assignee": {"id": 518}, "organization": {"id": 163}, "project": {"id": 343, "owner": {"id": 748}, "assignee": {"id": 891}}, "task": {"id": 391, "owner": {"id": 89}, "assignee": {"id": 1035}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 365, "assignee": {"id": 594}, "organization": {"id": 647}, "project": {"id": 345, "owner": {"id": 776}, "assignee": {"id": 839}}, "task": {"id": 300, "owner": {"id": 74}, "assignee": {"id": 1057}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 329, "assignee": {"id": 500}, "organization": {"id": 110}, "project": {"id": 399, "owner": {"id": 744}, "assignee": {"id": 893}}, "task": {"id": 327, "owner": {"id": 29}, "assignee": {"id": 1095}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"id": 383, "assignee": {"id": 580}, "organization": {"id": 659}, "project": {"id": 359, "owner": {"id": 768}, "assignee": {"id": 898}}, "task": {"id": 309, "owner": {"id": 48}, "assignee": {"id": 1042}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 393, "assignee": {"id": 536}, "organization": {"id": 145}, "project": {"id": 356, "owner": {"id": 701}, "assignee": {"id": 894}}, "task": {"id": 315, "owner": {"id": 978}, "assignee": {"id": 96}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 386, "assignee": {"id": 578}, "organization": {"id": 689}, "project": {"id": 313, "owner": {"id": 710}, "assignee": {"id": 885}}, "task": {"id": 357, "owner": {"id": 963}, "assignee": {"id": 53}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "assignee": {"id": 507}, "organization": {"id": 116}, "project": {"id": 322, "owner": {"id": 784}, "assignee": {"id": 860}}, "task": {"id": 382, "owner": {"id": 997}, "assignee": {"id": 8}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 7, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "assignee": {"id": 520}, "organization": {"id": 670}, "project": {"id": 311, "owner": {"id": 789}, "assignee": {"id": 882}}, "task": {"id": 341, "owner": {"id": 961}, "assignee": {"id": 7}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "assignee": {"id": 592}, "organization": {"id": 150}, "project": {"id": 307, "owner": {"id": 719}, "assignee": {"id": 816}}, "task": {"id": 331, "owner": {"id": 908}, "assignee": {"id": 14}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 380, "assignee": {"id": 570}, "organization": {"id": 687}, "project": {"id": 356, "owner": {"id": 703}, "assignee": {"id": 849}}, "task": {"id": 380, "owner": {"id": 961}, "assignee": {"id": 54}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 331, "assignee": {"id": 517}, "organization": {"id": 119}, "project": {"id": 325, "owner": {"id": 787}, "assignee": {"id": 862}}, "task": {"id": 315, "owner": {"id": 969}, "assignee": {"id": 74}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 317, "assignee": {"id": 548}, "organization": {"id": 681}, "project": {"id": 366, "owner": {"id": 792}, "assignee": {"id": 836}}, "task": {"id": 382, "owner": {"id": 965}, "assignee": {"id": 53}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 310, "assignee": {"id": 510}, "organization": {"id": 195}, "project": {"id": 319, "owner": {"id": 777}, "assignee": {"id": 839}}, "task": {"id": 324, "owner": {"id": 902}, "assignee": {"id": 3}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 358, "assignee": {"id": 543}, "organization": {"id": 698}, "project": {"id": 331, "owner": {"id": 772}, "assignee": {"id": 896}}, "task": {"id": 368, "owner": {"id": 972}, "assignee": {"id": 19}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 389, "assignee": {"id": 509}, "organization": {"id": 164}, "project": {"id": 318, "owner": {"id": 733}, "assignee": {"id": 855}}, "task": {"id": 344, "owner": {"id": 976}, "assignee": {"id": 80}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 348, "assignee": {"id": 578}, "organization": {"id": 626}, "project": {"id": 316, "owner": {"id": 761}, "assignee": {"id": 896}}, "task": {"id": 368, "owner": {"id": 991}, "assignee": {"id": 13}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 26, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "assignee": {"id": 525}, "organization": {"id": 167}, "project": {"id": 363, "owner": {"id": 752}, "assignee": {"id": 843}}, "task": {"id": 372, "owner": {"id": 909}, "assignee": {"id": 26}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "assignee": {"id": 512}, "organization": {"id": 612}, "project": {"id": 399, "owner": {"id": 735}, "assignee": {"id": 885}}, "task": {"id": 303, "owner": {"id": 949}, "assignee": {"id": 20}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "assignee": {"id": 537}, "organization": {"id": 123}, "project": {"id": 355, "owner": {"id": 756}, "assignee": {"id": 828}}, "task": {"id": 347, "owner": {"id": 908}, "assignee": {"id": 62}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 340, "assignee": {"id": 544}, "organization": {"id": 628}, "project": {"id": 331, "owner": {"id": 762}, "assignee": {"id": 846}}, "task": {"id": 386, "owner": {"id": 950}, "assignee": {"id": 96}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 360, "assignee": {"id": 552}, "organization": {"id": 121}, "project": {"id": 367, "owner": {"id": 756}, "assignee": {"id": 865}}, "task": {"id": 337, "owner": {"id": 975}, "assignee": {"id": 20}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 373, "assignee": {"id": 536}, "organization": {"id": 690}, "project": {"id": 347, "owner": {"id": 715}, "assignee": {"id": 802}}, "task": {"id": 339, "owner": {"id": 952}, "assignee": {"id": 17}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 352, "assignee": {"id": 574}, "organization": {"id": 118}, "project": {"id": 372, "owner": {"id": 753}, "assignee": {"id": 841}}, "task": {"id": 349, "owner": {"id": 968}, "assignee": {"id": 14}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 306, "assignee": {"id": 553}, "organization": {"id": 698}, "project": {"id": 316, "owner": {"id": 796}, "assignee": {"id": 857}}, "task": {"id": 353, "owner": {"id": 991}, "assignee": {"id": 22}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 394, "assignee": {"id": 540}, "organization": {"id": 187}, "project": {"id": 302, "owner": {"id": 778}, "assignee": {"id": 856}}, "task": {"id": 374, "owner": {"id": 999}, "assignee": {"id": 32}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 317, "assignee": {"id": 509}, "organization": {"id": 616}, "project": {"id": 373, "owner": {"id": 714}, "assignee": {"id": 838}}, "task": {"id": 355, "owner": {"id": 984}, "assignee": {"id": 0}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "assignee": {"id": 537}, "organization": {"id": 100}, "project": {"id": 359, "owner": {"id": 770}, "assignee": {"id": 888}}, "task": {"id": 389, "owner": {"id": 985}, "assignee": {"id": 89}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "assignee": {"id": 563}, "organization": {"id": 692}, "project": {"id": 372, "owner": {"id": 759}, "assignee": {"id": 817}}, "task": {"id": 347, "owner": {"id": 914}, "assignee": {"id": 37}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "assignee": {"id": 558}, "organization": {"id": 137}, "project": {"id": 326, "owner": {"id": 729}, "assignee": {"id": 883}}, "task": {"id": 378, "owner": {"id": 967}, "assignee": {"id": 11}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 19, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 371, "assignee": {"id": 587}, "organization": {"id": 618}, "project": {"id": 399, "owner": {"id": 731}, "assignee": {"id": 824}}, "task": {"id": 356, "owner": {"id": 982}, "assignee": {"id": 19}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 372, "assignee": {"id": 589}, "organization": {"id": 198}, "project": {"id": 334, "owner": {"id": 740}, "assignee": {"id": 808}}, "task": {"id": 391, "owner": {"id": 950}, "assignee": {"id": 51}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 356, "assignee": {"id": 501}, "organization": {"id": 650}, "project": {"id": 325, "owner": {"id": 752}, "assignee": {"id": 880}}, "task": {"id": 328, "owner": {"id": 985}, "assignee": {"id": 66}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 300, "assignee": {"id": 514}, "organization": {"id": 137}, "project": {"id": 317, "owner": {"id": 719}, "assignee": {"id": 803}}, "task": {"id": 306, "owner": {"id": 992}, "assignee": {"id": 66}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 334, "assignee": {"id": 516}, "organization": {"id": 649}, "project": {"id": 332, "owner": {"id": 798}, "assignee": {"id": 869}}, "task": {"id": 326, "owner": {"id": 926}, "assignee": {"id": 27}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 386, "assignee": {"id": 573}, "organization": {"id": 163}, "project": {"id": 302, "owner": {"id": 765}, "assignee": {"id": 821}}, "task": {"id": 388, "owner": {"id": 969}, "assignee": {"id": 51}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 394, "assignee": {"id": 581}, "organization": {"id": 610}, "project": {"id": 389, "owner": {"id": 726}, "assignee": {"id": 848}}, "task": {"id": 301, "owner": {"id": 942}, "assignee": {"id": 86}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "assignee": {"id": 555}, "organization": {"id": 191}, "project": {"id": 317, "owner": {"id": 703}, "assignee": {"id": 871}}, "task": {"id": 347, "owner": {"id": 953}, "assignee": {"id": 72}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "assignee": {"id": 524}, "organization": {"id": 618}, "project": {"id": 333, "owner": {"id": 779}, "assignee": {"id": 847}}, "task": {"id": 397, "owner": {"id": 911}, "assignee": {"id": 27}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "assignee": {"id": 500}, "organization": {"id": 167}, "project": {"id": 313, "owner": {"id": 742}, "assignee": {"id": 837}}, "task": {"id": 350, "owner": {"id": 914}, "assignee": {"id": 44}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "assignee": {"id": 590}, "organization": {"id": 682}, "project": {"id": 307, "owner": {"id": 769}, "assignee": {"id": 806}}, "task": {"id": 327, "owner": {"id": 967}, "assignee": {"id": 65}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 396, "assignee": {"id": 593}, "organization": {"id": 107}, "project": {"id": 304, "owner": {"id": 736}, "assignee": {"id": 832}}, "task": {"id": 381, "owner": {"id": 908}, "assignee": {"id": 36}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 330, "assignee": {"id": 508}, "organization": {"id": 644}, "project": {"id": 351, "owner": {"id": 749}, "assignee": {"id": 865}}, "task": {"id": 343, "owner": {"id": 909}, "assignee": {"id": 27}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 366, "assignee": {"id": 581}, "organization": {"id": 158}, "project": {"id": 313, "owner": {"id": 735}, "assignee": {"id": 865}}, "task": {"id": 382, "owner": {"id": 927}, "assignee": {"id": 39}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 345, "assignee": {"id": 564}, "organization": {"id": 606}, "project": {"id": 325, "owner": {"id": 705}, "assignee": {"id": 879}}, "task": {"id": 381, "owner": {"id": 901}, "assignee": {"id": 51}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 348, "assignee": {"id": 536}, "organization": {"id": 177}, "project": {"id": 314, "owner": {"id": 762}, "assignee": {"id": 857}}, "task": {"id": 370, "owner": {"id": 933}, "assignee": {"id": 11}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 319, "assignee": {"id": 559}, "organization": {"id": 684}, "project": {"id": 313, "owner": {"id": 751}, "assignee": {"id": 877}}, "task": {"id": 367, "owner": {"id": 988}, "assignee": {"id": 82}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "assignee": {"id": 589}, "organization": {"id": 166}, "project": {"id": 355, "owner": {"id": 711}, "assignee": {"id": 813}}, "task": {"id": 346, "owner": {"id": 966}, "assignee": {"id": 54}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "assignee": {"id": 510}, "organization": {"id": 672}, "project": {"id": 373, "owner": {"id": 760}, "assignee": {"id": 849}}, "task": {"id": 356, "owner": {"id": 945}, "assignee": {"id": 94}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "assignee": {"id": 584}, "organization": {"id": 103}, "project": {"id": 320, "owner": {"id": 752}, "assignee": {"id": 808}}, "task": {"id": 360, "owner": {"id": 905}, "assignee": {"id": 41}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "assignee": {"id": 526}, "organization": {"id": 647}, "project": {"id": 324, "owner": {"id": 732}, "assignee": {"id": 845}}, "task": {"id": 382, "owner": {"id": 969}, "assignee": {"id": 75}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 341, "assignee": {"id": 556}, "organization": {"id": 174}, "project": {"id": 319, "owner": {"id": 769}, "assignee": {"id": 847}}, "task": {"id": 331, "owner": {"id": 946}, "assignee": {"id": 31}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 375, "assignee": {"id": 598}, "organization": {"id": 697}, "project": {"id": 365, "owner": {"id": 720}, "assignee": {"id": 836}}, "task": {"id": 320, "owner": {"id": 949}, "assignee": {"id": 84}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 359, "assignee": {"id": 599}, "organization": {"id": 169}, "project": {"id": 361, "owner": {"id": 742}, "assignee": {"id": 871}}, "task": {"id": 305, "owner": {"id": 908}, "assignee": {"id": 42}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 354, "assignee": {"id": 554}, "organization": {"id": 670}, "project": {"id": 362, "owner": {"id": 777}, "assignee": {"id": 826}}, "task": {"id": 300, "owner": {"id": 999}, "assignee": {"id": 0}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 343, "assignee": {"id": 75}, "organization": {"id": 171}, "project": {"id": 359, "owner": {"id": 722}, "assignee": {"id": 861}}, "task": {"id": 396, "owner": {"id": 949}, "assignee": {"id": 1055}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 328, "assignee": {"id": 21}, "organization": {"id": 640}, "project": {"id": 308, "owner": {"id": 781}, "assignee": {"id": 847}}, "task": {"id": 394, "owner": {"id": 990}, "assignee": {"id": 1007}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "assignee": {"id": 24}, "organization": {"id": 100}, "project": {"id": 354, "owner": {"id": 713}, "assignee": {"id": 830}}, "task": {"id": 300, "owner": {"id": 969}, "assignee": {"id": 1059}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 372, "assignee": {"id": 71}, "organization": {"id": 616}, "project": {"id": 392, "owner": {"id": 701}, "assignee": {"id": 881}}, "task": {"id": 358, "owner": {"id": 997}, "assignee": {"id": 1028}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "assignee": {"id": 64}, "organization": {"id": 137}, "project": {"id": 358, "owner": {"id": 795}, "assignee": {"id": 896}}, "task": {"id": 314, "owner": {"id": 915}, "assignee": {"id": 1097}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 340, "assignee": {"id": 0}, "organization": {"id": 688}, "project": {"id": 393, "owner": {"id": 761}, "assignee": {"id": 883}}, "task": {"id": 364, "owner": {"id": 949}, "assignee": {"id": 1025}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 307, "assignee": {"id": 35}, "organization": {"id": 118}, "project": {"id": 310, "owner": {"id": 718}, "assignee": {"id": 809}}, "task": {"id": 306, "owner": {"id": 918}, "assignee": {"id": 1091}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 337, "assignee": {"id": 84}, "organization": {"id": 637}, "project": {"id": 362, "owner": {"id": 727}, "assignee": {"id": 886}}, "task": {"id": 306, "owner": {"id": 944}, "assignee": {"id": 1094}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 384, "assignee": {"id": 86}, "organization": {"id": 174}, "project": {"id": 312, "owner": {"id": 796}, "assignee": {"id": 879}}, "task": {"id": 391, "owner": {"id": 954}, "assignee": {"id": 1015}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 380, "assignee": {"id": 98}, "organization": {"id": 613}, "project": {"id": 348, "owner": {"id": 746}, "assignee": {"id": 890}}, "task": {"id": 378, "owner": {"id": 955}, "assignee": {"id": 1044}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 398, "assignee": {"id": 48}, "organization": {"id": 167}, "project": {"id": 337, "owner": {"id": 705}, "assignee": {"id": 877}}, "task": {"id": 378, "owner": {"id": 992}, "assignee": {"id": 1087}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 324, "assignee": {"id": 19}, "organization": {"id": 699}, "project": {"id": 334, "owner": {"id": 702}, "assignee": {"id": 802}}, "task": {"id": 378, "owner": {"id": 991}, "assignee": {"id": 1046}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "assignee": {"id": 79}, "organization": {"id": 125}, "project": {"id": 387, "owner": {"id": 791}, "assignee": {"id": 846}}, "task": {"id": 325, "owner": {"id": 999}, "assignee": {"id": 1058}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "assignee": {"id": 90}, "organization": {"id": 611}, "project": {"id": 374, "owner": {"id": 709}, "assignee": {"id": 897}}, "task": {"id": 333, "owner": {"id": 931}, "assignee": {"id": 1079}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "assignee": {"id": 97}, "organization": {"id": 114}, "project": {"id": 336, "owner": {"id": 761}, "assignee": {"id": 885}}, "task": {"id": 331, "owner": {"id": 953}, "assignee": {"id": 1006}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "assignee": {"id": 12}, "organization": {"id": 675}, "project": {"id": 314, "owner": {"id": 710}, "assignee": {"id": 842}}, "task": {"id": 304, "owner": {"id": 995}, "assignee": {"id": 1089}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 350, "assignee": {"id": 51}, "organization": {"id": 144}, "project": {"id": 353, "owner": {"id": 701}, "assignee": {"id": 803}}, "task": {"id": 364, "owner": {"id": 904}, "assignee": {"id": 1017}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 373, "assignee": {"id": 71}, "organization": {"id": 626}, "project": {"id": 385, "owner": {"id": 733}, "assignee": {"id": 859}}, "task": {"id": 343, "owner": {"id": 976}, "assignee": {"id": 1058}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 340, "assignee": {"id": 76}, "organization": {"id": 123}, "project": {"id": 364, "owner": {"id": 791}, "assignee": {"id": 826}}, "task": {"id": 345, "owner": {"id": 962}, "assignee": {"id": 1011}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 336, "assignee": {"id": 90}, "organization": {"id": 651}, "project": {"id": 360, "owner": {"id": 772}, "assignee": {"id": 811}}, "task": {"id": 332, "owner": {"id": 949}, "assignee": {"id": 1031}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 381, "assignee": {"id": 63}, "organization": {"id": 188}, "project": {"id": 386, "owner": {"id": 730}, "assignee": {"id": 819}}, "task": {"id": 302, "owner": {"id": 926}, "assignee": {"id": 1011}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 384, "assignee": {"id": 50}, "organization": {"id": 654}, "project": {"id": 346, "owner": {"id": 718}, "assignee": {"id": 899}}, "task": {"id": 366, "owner": {"id": 918}, "assignee": {"id": 1039}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "assignee": {"id": 5}, "organization": {"id": 104}, "project": {"id": 392, "owner": {"id": 763}, "assignee": {"id": 885}}, "task": {"id": 316, "owner": {"id": 937}, "assignee": {"id": 1000}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "assignee": {"id": 11}, "organization": {"id": 684}, "project": {"id": 318, "owner": {"id": 702}, "assignee": {"id": 869}}, "task": {"id": 350, "owner": {"id": 985}, "assignee": {"id": 1006}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "assignee": {"id": 43}, "organization": {"id": 135}, "project": {"id": 340, "owner": {"id": 711}, "assignee": {"id": 875}}, "task": {"id": 303, "owner": {"id": 971}, "assignee": {"id": 1098}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "assignee": {"id": 89}, "organization": {"id": 614}, "project": {"id": 351, "owner": {"id": 783}, "assignee": {"id": 825}}, "task": {"id": 393, "owner": {"id": 907}, "assignee": {"id": 1082}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 330, "assignee": {"id": 25}, "organization": {"id": 101}, "project": {"id": 383, "owner": {"id": 727}, "assignee": {"id": 848}}, "task": {"id": 376, "owner": {"id": 991}, "assignee": {"id": 1097}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"id": 307, "assignee": {"id": 30}, "organization": {"id": 692}, "project": {"id": 304, "owner": {"id": 775}, "assignee": {"id": 806}}, "task": {"id": 367, "owner": {"id": 976}, "assignee": {"id": 1075}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 356, "assignee": {"id": 67}, "organization": {"id": 182}, "project": {"id": 393, "owner": {"id": 700}, "assignee": {"id": 839}}, "task": {"id": 368, "owner": {"id": 905}, "assignee": {"id": 1022}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 342, "assignee": {"id": 79}, "organization": {"id": 635}, "project": {"id": 308, "owner": {"id": 742}, "assignee": {"id": 869}}, "task": {"id": 376, "owner": {"id": 996}, "assignee": {"id": 1023}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 379, "assignee": {"id": 53}, "organization": {"id": 154}, "project": {"id": 306, "owner": {"id": 733}, "assignee": {"id": 890}}, "task": {"id": 328, "owner": {"id": 981}, "assignee": {"id": 1056}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 331, "assignee": {"id": 10}, "organization": {"id": 653}, "project": {"id": 350, "owner": {"id": 721}, "assignee": {"id": 868}}, "task": {"id": 382, "owner": {"id": 903}, "assignee": {"id": 1065}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "assignee": {"id": 99}, "organization": {"id": 158}, "project": {"id": 366, "owner": {"id": 708}, "assignee": {"id": 844}}, "task": {"id": 397, "owner": {"id": 973}, "assignee": {"id": 1038}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "assignee": {"id": 4}, "organization": {"id": 658}, "project": {"id": 300, "owner": {"id": 744}, "assignee": {"id": 891}}, "task": {"id": 328, "owner": {"id": 909}, "assignee": {"id": 1011}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "assignee": {"id": 63}, "organization": {"id": 125}, "project": {"id": 399, "owner": {"id": 794}, "assignee": {"id": 831}}, "task": {"id": 301, "owner": {"id": 978}, "assignee": {"id": 1055}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "assignee": {"id": 95}, "organization": {"id": 664}, "project": {"id": 337, "owner": {"id": 717}, "assignee": {"id": 812}}, "task": {"id": 371, "owner": {"id": 974}, "assignee": {"id": 1015}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 385, "assignee": {"id": 3}, "organization": {"id": 196}, "project": {"id": 329, "owner": {"id": 760}, "assignee": {"id": 852}}, "task": {"id": 393, "owner": {"id": 945}, "assignee": {"id": 1082}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 313, "assignee": {"id": 61}, "organization": {"id": 662}, "project": {"id": 354, "owner": {"id": 761}, "assignee": {"id": 888}}, "task": {"id": 312, "owner": {"id": 965}, "assignee": {"id": 1063}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 384, "assignee": {"id": 85}, "organization": {"id": 185}, "project": {"id": 327, "owner": {"id": 752}, "assignee": {"id": 830}}, "task": {"id": 355, "owner": {"id": 969}, "assignee": {"id": 1067}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 303, "assignee": {"id": 51}, "organization": {"id": 693}, "project": {"id": 383, "owner": {"id": 750}, "assignee": {"id": 899}}, "task": {"id": 381, "owner": {"id": 920}, "assignee": {"id": 1058}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 320, "assignee": {"id": 1}, "organization": {"id": 172}, "project": {"id": 355, "owner": {"id": 755}, "assignee": {"id": 856}}, "task": {"id": 365, "owner": {"id": 988}, "assignee": {"id": 1065}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 388, "assignee": {"id": 23}, "organization": {"id": 657}, "project": {"id": 382, "owner": {"id": 750}, "assignee": {"id": 810}}, "task": {"id": 350, "owner": {"id": 941}, "assignee": {"id": 1021}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "assignee": {"id": 74}, "organization": {"id": 130}, "project": {"id": 368, "owner": {"id": 777}, "assignee": {"id": 800}}, "task": {"id": 359, "owner": {"id": 937}, "assignee": {"id": 1074}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 372, "assignee": {"id": 59}, "organization": {"id": 613}, "project": {"id": 317, "owner": {"id": 741}, "assignee": {"id": 843}}, "task": {"id": 379, "owner": {"id": 961}, "assignee": {"id": 1061}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "assignee": {"id": 47}, "organization": {"id": 194}, "project": {"id": 348, "owner": {"id": 737}, "assignee": {"id": 803}}, "task": {"id": 370, "owner": {"id": 924}, "assignee": {"id": 1071}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "assignee": {"id": 13}, "organization": {"id": 603}, "project": {"id": 309, "owner": {"id": 790}, "assignee": {"id": 837}}, "task": {"id": 315, "owner": {"id": 998}, "assignee": {"id": 1056}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 342, "assignee": {"id": 45}, "organization": {"id": 150}, "project": {"id": 374, "owner": {"id": 724}, "assignee": {"id": 873}}, "task": {"id": 308, "owner": {"id": 917}, "assignee": {"id": 1075}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 311, "assignee": {"id": 54}, "organization": {"id": 668}, "project": {"id": 356, "owner": {"id": 710}, "assignee": {"id": 882}}, "task": {"id": 314, "owner": {"id": 939}, "assignee": {"id": 1067}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"id": 383, "assignee": {"id": 34}, "organization": {"id": 176}, "project": {"id": 305, "owner": {"id": 700}, "assignee": {"id": 891}}, "task": {"id": 377, "owner": {"id": 923}, "assignee": {"id": 1033}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 381, "assignee": {"id": 6}, "organization": {"id": 666}, "project": {"id": 357, "owner": {"id": 771}, "assignee": {"id": 862}}, "task": {"id": 344, "owner": {"id": 981}, "assignee": {"id": 1059}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 382, "assignee": {"id": 502}, "organization": {"id": 119}, "project": {"id": 318, "owner": {"id": 775}, "assignee": {"id": 825}}, "task": {"id": 302, "owner": {"id": 915}, "assignee": {"id": 1013}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 381, "assignee": {"id": 501}, "organization": {"id": 608}, "project": {"id": 382, "owner": {"id": 764}, "assignee": {"id": 850}}, "task": {"id": 380, "owner": {"id": 904}, "assignee": {"id": 1063}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "assignee": {"id": 502}, "organization": {"id": 129}, "project": {"id": 384, "owner": {"id": 782}, "assignee": {"id": 876}}, "task": {"id": 344, "owner": {"id": 919}, "assignee": {"id": 1023}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "assignee": {"id": 577}, "organization": {"id": 626}, "project": {"id": 315, "owner": {"id": 781}, "assignee": {"id": 871}}, "task": {"id": 302, "owner": {"id": 949}, "assignee": {"id": 1021}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "assignee": {"id": 525}, "organization": {"id": 117}, "project": {"id": 317, "owner": {"id": 733}, "assignee": {"id": 822}}, "task": {"id": 349, "owner": {"id": 983}, "assignee": {"id": 1090}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "assignee": {"id": 573}, "organization": {"id": 657}, "project": {"id": 346, "owner": {"id": 730}, "assignee": {"id": 860}}, "task": {"id": 394, "owner": {"id": 981}, "assignee": {"id": 1036}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 363, "assignee": {"id": 588}, "organization": {"id": 147}, "project": {"id": 382, "owner": {"id": 797}, "assignee": {"id": 835}}, "task": {"id": 339, "owner": {"id": 950}, "assignee": {"id": 1084}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"id": 386, "assignee": {"id": 599}, "organization": {"id": 663}, "project": {"id": 332, "owner": {"id": 706}, "assignee": {"id": 892}}, "task": {"id": 348, "owner": {"id": 969}, "assignee": {"id": 1063}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 338, "assignee": {"id": 532}, "organization": {"id": 183}, "project": {"id": 328, "owner": {"id": 732}, "assignee": {"id": 842}}, "task": {"id": 392, "owner": {"id": 908}, "assignee": {"id": 1035}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 370, "assignee": {"id": 568}, "organization": {"id": 684}, "project": {"id": 353, "owner": {"id": 745}, "assignee": {"id": 865}}, "task": {"id": 325, "owner": {"id": 985}, "assignee": {"id": 1095}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 337, "assignee": {"id": 571}, "organization": {"id": 120}, "project": {"id": 329, "owner": {"id": 784}, "assignee": {"id": 845}}, "task": {"id": 383, "owner": {"id": 970}, "assignee": {"id": 1054}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 363, "assignee": {"id": 527}, "organization": {"id": 655}, "project": {"id": 350, "owner": {"id": 738}, "assignee": {"id": 866}}, "task": {"id": 340, "owner": {"id": 930}, "assignee": {"id": 1019}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "assignee": {"id": 546}, "organization": {"id": 198}, "project": {"id": 360, "owner": {"id": 700}, "assignee": {"id": 865}}, "task": {"id": 377, "owner": {"id": 937}, "assignee": {"id": 1031}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 31, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "assignee": {"id": 598}, "organization": {"id": 678}, "project": {"id": 371, "owner": {"id": 727}, "assignee": {"id": 884}}, "task": {"id": 383, "owner": {"id": 932}, "assignee": {"id": 1038}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "assignee": {"id": 588}, "organization": {"id": 140}, "project": {"id": 368, "owner": {"id": 704}, "assignee": {"id": 845}}, "task": {"id": 303, "owner": {"id": 997}, "assignee": {"id": 1092}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "assignee": {"id": 592}, "organization": {"id": 604}, "project": {"id": 376, "owner": {"id": 722}, "assignee": {"id": 868}}, "task": {"id": 334, "owner": {"id": 951}, "assignee": {"id": 1059}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 306, "assignee": {"id": 558}, "organization": {"id": 105}, "project": {"id": 335, "owner": {"id": 722}, "assignee": {"id": 897}}, "task": {"id": 377, "owner": {"id": 997}, "assignee": {"id": 1025}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 81, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 359, "assignee": {"id": 557}, "organization": {"id": 629}, "project": {"id": 394, "owner": {"id": 762}, "assignee": {"id": 818}}, "task": {"id": 375, "owner": {"id": 940}, "assignee": {"id": 1034}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"id": 380, "assignee": {"id": 587}, "organization": {"id": 171}, "project": {"id": 330, "owner": {"id": 771}, "assignee": {"id": 803}}, "task": {"id": 308, "owner": {"id": 953}, "assignee": {"id": 1017}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 314, "assignee": {"id": 545}, "organization": {"id": 604}, "project": {"id": 386, "owner": {"id": 716}, "assignee": {"id": 888}}, "task": {"id": 389, "owner": {"id": 981}, "assignee": {"id": 1000}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 384, "assignee": {"id": 523}, "organization": {"id": 159}, "project": {"id": 312, "owner": {"id": 739}, "assignee": {"id": 826}}, "task": {"id": 343, "owner": {"id": 929}, "assignee": {"id": 1008}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 333, "assignee": {"id": 598}, "organization": {"id": 687}, "project": {"id": 387, "owner": {"id": 786}, "assignee": {"id": 887}}, "task": {"id": 329, "owner": {"id": 928}, "assignee": {"id": 1096}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "assignee": {"id": 524}, "organization": {"id": 145}, "project": {"id": 392, "owner": {"id": 792}, "assignee": {"id": 812}}, "task": {"id": 314, "owner": {"id": 918}, "assignee": {"id": 1030}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "assignee": {"id": 535}, "organization": {"id": 621}, "project": {"id": 351, "owner": {"id": 745}, "assignee": {"id": 823}}, "task": {"id": 358, "owner": {"id": 933}, "assignee": {"id": 1019}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 348, "assignee": {"id": 523}, "organization": {"id": 128}, "project": {"id": 344, "owner": {"id": 714}, "assignee": {"id": 888}}, "task": {"id": 306, "owner": {"id": 967}, "assignee": {"id": 1046}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 324, "assignee": {"id": 570}, "organization": {"id": 691}, "project": {"id": 386, "owner": {"id": 744}, "assignee": {"id": 844}}, "task": {"id": 337, "owner": {"id": 943}, "assignee": {"id": 1010}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 355, "assignee": {"id": 505}, "organization": {"id": 161}, "project": {"id": 380, "owner": {"id": 710}, "assignee": {"id": 874}}, "task": {"id": 329, "owner": {"id": 941}, "assignee": {"id": 1012}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 338, "assignee": {"id": 544}, "organization": {"id": 645}, "project": {"id": 340, "owner": {"id": 796}, "assignee": {"id": 887}}, "task": {"id": 328, "owner": {"id": 988}, "assignee": {"id": 1058}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 353, "assignee": {"id": 517}, "organization": {"id": 156}, "project": {"id": 323, "owner": {"id": 769}, "assignee": {"id": 813}}, "task": {"id": 353, "owner": {"id": 958}, "assignee": {"id": 1025}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 349, "assignee": {"id": 512}, "organization": {"id": 617}, "project": {"id": 311, "owner": {"id": 785}, "assignee": {"id": 840}}, "task": {"id": 360, "owner": {"id": 947}, "assignee": {"id": 1054}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 395, "assignee": {"id": 521}, "organization": {"id": 165}, "project": {"id": 354, "owner": {"id": 732}, "assignee": {"id": 812}}, "task": {"id": 322, "owner": {"id": 996}, "assignee": {"id": 1054}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 367, "assignee": {"id": 515}, "organization": {"id": 665}, "project": {"id": 383, "owner": {"id": 756}, "assignee": {"id": 850}}, "task": {"id": 320, "owner": {"id": 901}, "assignee": {"id": 1075}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "assignee": {"id": 529}, "organization": {"id": 143}, "project": {"id": 377, "owner": {"id": 755}, "assignee": {"id": 830}}, "task": {"id": 302, "owner": {"id": 930}, "assignee": {"id": 1079}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "assignee": {"id": 595}, "organization": {"id": 663}, "project": {"id": 307, "owner": {"id": 739}, "assignee": {"id": 842}}, "task": {"id": 304, "owner": {"id": 991}, "assignee": {"id": 1042}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 369, "assignee": {"id": 518}, "organization": {"id": 112}, "project": {"id": 386, "owner": {"id": 790}, "assignee": {"id": 892}}, "task": {"id": 353, "owner": {"id": 956}, "assignee": {"id": 1029}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "assignee": {"id": 527}, "organization": {"id": 635}, "project": {"id": 329, "owner": {"id": 799}, "assignee": {"id": 867}}, "task": {"id": 371, "owner": {"id": 967}, "assignee": {"id": 1004}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 311, "assignee": {"id": 584}, "organization": {"id": 151}, "project": {"id": 383, "owner": {"id": 719}, "assignee": {"id": 807}}, "task": {"id": 318, "owner": {"id": 947}, "assignee": {"id": 1077}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 346, "assignee": {"id": 505}, "organization": {"id": 686}, "project": {"id": 318, "owner": {"id": 770}, "assignee": {"id": 822}}, "task": {"id": 392, "owner": {"id": 930}, "assignee": {"id": 1013}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"id": 360, "assignee": {"id": 546}, "organization": {"id": 108}, "project": {"id": 347, "owner": {"id": 756}, "assignee": {"id": 848}}, "task": {"id": 359, "owner": {"id": 923}, "assignee": {"id": 1077}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 24, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 391, "assignee": {"id": 542}, "organization": {"id": 637}, "project": {"id": 375, "owner": {"id": 703}, "assignee": {"id": 895}}, "task": {"id": 336, "owner": {"id": 980}, "assignee": {"id": 1033}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 390, "assignee": {"id": 525}, "organization": {"id": 104}, "project": {"id": 338, "owner": {"id": 731}, "assignee": {"id": 855}}, "task": {"id": 378, "owner": {"id": 947}, "assignee": {"id": 1028}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 383, "assignee": {"id": 520}, "organization": {"id": 685}, "project": {"id": 374, "owner": {"id": 761}, "assignee": {"id": 861}}, "task": {"id": 315, "owner": {"id": 986}, "assignee": {"id": 1082}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "assignee": {"id": 518}, "organization": {"id": 143}, "project": {"id": 374, "owner": {"id": 714}, "assignee": {"id": 886}}, "task": {"id": 359, "owner": {"id": 977}, "assignee": {"id": 1016}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "assignee": {"id": 527}, "organization": {"id": 620}, "project": {"id": 365, "owner": {"id": 714}, "assignee": {"id": 854}}, "task": {"id": 318, "owner": {"id": 987}, "assignee": {"id": 1078}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "assignee": {"id": 564}, "organization": {"id": 131}, "project": {"id": 329, "owner": {"id": 779}, "assignee": {"id": 819}}, "task": {"id": 320, "owner": {"id": 912}, "assignee": {"id": 1075}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 61, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "assignee": {"id": 509}, "organization": {"id": 641}, "project": {"id": 356, "owner": {"id": 727}, "assignee": {"id": 886}}, "task": {"id": 358, "owner": {"id": 955}, "assignee": {"id": 1099}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 303, "assignee": {"id": 545}, "organization": {"id": 182}, "project": {"id": 372, "owner": {"id": 765}, "assignee": {"id": 887}}, "task": {"id": 357, "owner": {"id": 962}, "assignee": {"id": 1000}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 344, "assignee": {"id": 576}, "organization": {"id": 694}, "project": {"id": 379, "owner": {"id": 793}, "assignee": {"id": 810}}, "task": {"id": 347, "owner": {"id": 925}, "assignee": {"id": 1007}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 306, "assignee": {"id": 501}, "organization": {"id": 131}, "project": {"id": 300, "owner": {"id": 716}, "assignee": {"id": 899}}, "task": {"id": 382, "owner": {"id": 948}, "assignee": {"id": 1095}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 363, "assignee": {"id": 571}, "organization": {"id": 678}, "project": {"id": 304, "owner": {"id": 727}, "assignee": {"id": 895}}, "task": {"id": 339, "owner": {"id": 981}, "assignee": {"id": 1044}}}} -} - -test_scope_UPDATE_STAGE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": null}, "resource": {"id": 394, "assignee": {"id": 525}, "organization": {"id": 687}, "project": {"id": 393, "owner": {"id": 15}, "assignee": {"id": 896}}, "task": {"id": 386, "owner": {"id": 949}, "assignee": {"id": 1066}}}} -} - -test_scope_UPDATE_STAGE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": null}, "resource": {"id": 353, "assignee": {"id": 577}, "organization": {"id": 660}, "project": {"id": 318, "owner": {"id": 14}, "assignee": {"id": 850}}, "task": {"id": 344, "owner": {"id": 943}, "assignee": {"id": 1049}}}} -} - -test_scope_UPDATE_STAGE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": null}, "resource": {"id": 338, "assignee": {"id": 522}, "organization": {"id": 680}, "project": {"id": 385, "owner": {"id": 29}, "assignee": {"id": 847}}, "task": {"id": 323, "owner": {"id": 937}, "assignee": {"id": 1065}}}} -} - -test_scope_UPDATE_STAGE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": null}, "resource": {"id": 361, "assignee": {"id": 515}, "organization": {"id": 666}, "project": {"id": 324, "owner": {"id": 89}, "assignee": {"id": 811}}, "task": {"id": 368, "owner": {"id": 914}, "assignee": {"id": 1057}}}} -} - -test_scope_UPDATE_STAGE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": null}, "resource": {"id": 309, "assignee": {"id": 511}, "organization": {"id": 673}, "project": {"id": 327, "owner": {"id": 74}, "assignee": {"id": 888}}, "task": {"id": 390, "owner": {"id": 975}, "assignee": {"id": 1082}}}} -} - -test_scope_UPDATE_STAGE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": null}, "resource": {"id": 334, "assignee": {"id": 508}, "organization": {"id": 676}, "project": {"id": 389, "owner": {"id": 794}, "assignee": {"id": 80}}, "task": {"id": 341, "owner": {"id": 971}, "assignee": {"id": 1008}}}} -} - -test_scope_UPDATE_STAGE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": null}, "resource": {"id": 353, "assignee": {"id": 551}, "organization": {"id": 665}, "project": {"id": 308, "owner": {"id": 708}, "assignee": {"id": 24}}, "task": {"id": 327, "owner": {"id": 979}, "assignee": {"id": 1060}}}} -} - -test_scope_UPDATE_STAGE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": null}, "resource": {"id": 301, "assignee": {"id": 578}, "organization": {"id": 673}, "project": {"id": 336, "owner": {"id": 713}, "assignee": {"id": 79}}, "task": {"id": 363, "owner": {"id": 944}, "assignee": {"id": 1024}}}} -} - -test_scope_UPDATE_STAGE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": null}, "resource": {"id": 300, "assignee": {"id": 548}, "organization": {"id": 654}, "project": {"id": 386, "owner": {"id": 722}, "assignee": {"id": 52}}, "task": {"id": 395, "owner": {"id": 924}, "assignee": {"id": 1034}}}} -} - -test_scope_UPDATE_STAGE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": null}, "resource": {"id": 304, "assignee": {"id": 597}, "organization": {"id": 675}, "project": {"id": 375, "owner": {"id": 743}, "assignee": {"id": 58}}, "task": {"id": 317, "owner": {"id": 970}, "assignee": {"id": 1065}}}} -} - -test_scope_UPDATE_STAGE_context_SANDBOX_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": null}, "resource": {"id": 373, "assignee": {"id": 566}, "organization": {"id": 641}, "project": {"id": 302, "owner": {"id": 735}, "assignee": {"id": 841}}, "task": {"id": 397, "owner": {"id": 42}, "assignee": {"id": 1082}}}} -} - -test_scope_UPDATE_STAGE_context_SANDBOX_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": null}, "resource": {"id": 378, "assignee": {"id": 583}, "organization": {"id": 626}, "project": {"id": 300, "owner": {"id": 797}, "assignee": {"id": 837}}, "task": {"id": 382, "owner": {"id": 18}, "assignee": {"id": 1047}}}} -} - -test_scope_UPDATE_STAGE_context_SANDBOX_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": null}, "resource": {"id": 333, "assignee": {"id": 563}, "organization": {"id": 698}, "project": {"id": 347, "owner": {"id": 778}, "assignee": {"id": 834}}, "task": {"id": 387, "owner": {"id": 30}, "assignee": {"id": 1083}}}} -} - -test_scope_UPDATE_STAGE_context_SANDBOX_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": null}, "resource": {"id": 323, "assignee": {"id": 525}, "organization": {"id": 686}, "project": {"id": 316, "owner": {"id": 752}, "assignee": {"id": 855}}, "task": {"id": 304, "owner": {"id": 85}, "assignee": {"id": 1087}}}} -} - -test_scope_UPDATE_STAGE_context_SANDBOX_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": null}, "resource": {"id": 351, "assignee": {"id": 543}, "organization": {"id": 676}, "project": {"id": 375, "owner": {"id": 747}, "assignee": {"id": 802}}, "task": {"id": 367, "owner": {"id": 8}, "assignee": {"id": 1079}}}} -} - -test_scope_UPDATE_STAGE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": null}, "resource": {"id": 389, "assignee": {"id": 596}, "organization": {"id": 652}, "project": {"id": 352, "owner": {"id": 739}, "assignee": {"id": 863}}, "task": {"id": 361, "owner": {"id": 938}, "assignee": {"id": 26}}}} -} - -test_scope_UPDATE_STAGE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": null}, "resource": {"id": 316, "assignee": {"id": 590}, "organization": {"id": 677}, "project": {"id": 322, "owner": {"id": 739}, "assignee": {"id": 820}}, "task": {"id": 313, "owner": {"id": 988}, "assignee": {"id": 47}}}} -} - -test_scope_UPDATE_STAGE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": null}, "resource": {"id": 334, "assignee": {"id": 543}, "organization": {"id": 619}, "project": {"id": 307, "owner": {"id": 753}, "assignee": {"id": 839}}, "task": {"id": 387, "owner": {"id": 910}, "assignee": {"id": 93}}}} -} - -test_scope_UPDATE_STAGE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": null}, "resource": {"id": 303, "assignee": {"id": 505}, "organization": {"id": 682}, "project": {"id": 384, "owner": {"id": 759}, "assignee": {"id": 834}}, "task": {"id": 371, "owner": {"id": 943}, "assignee": {"id": 63}}}} -} - -test_scope_UPDATE_STAGE_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": null}, "resource": {"id": 344, "assignee": {"id": 554}, "organization": {"id": 689}, "project": {"id": 378, "owner": {"id": 779}, "assignee": {"id": 830}}, "task": {"id": 309, "owner": {"id": 926}, "assignee": {"id": 84}}}} -} - -test_scope_UPDATE_STAGE_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": null}, "resource": {"id": 350, "assignee": {"id": 80}, "organization": {"id": 601}, "project": {"id": 371, "owner": {"id": 732}, "assignee": {"id": 865}}, "task": {"id": 397, "owner": {"id": 966}, "assignee": {"id": 1051}}}} -} - -test_scope_UPDATE_STAGE_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": null}, "resource": {"id": 364, "assignee": {"id": 11}, "organization": {"id": 679}, "project": {"id": 362, "owner": {"id": 735}, "assignee": {"id": 868}}, "task": {"id": 390, "owner": {"id": 958}, "assignee": {"id": 1035}}}} -} - -test_scope_UPDATE_STAGE_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": null}, "resource": {"id": 321, "assignee": {"id": 98}, "organization": {"id": 648}, "project": {"id": 352, "owner": {"id": 770}, "assignee": {"id": 806}}, "task": {"id": 372, "owner": {"id": 980}, "assignee": {"id": 1066}}}} -} - -test_scope_UPDATE_STAGE_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": null}, "resource": {"id": 310, "assignee": {"id": 2}, "organization": {"id": 641}, "project": {"id": 392, "owner": {"id": 783}, "assignee": {"id": 884}}, "task": {"id": 327, "owner": {"id": 971}, "assignee": {"id": 1031}}}} -} - -test_scope_UPDATE_STAGE_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": null}, "resource": {"id": 355, "assignee": {"id": 46}, "organization": {"id": 648}, "project": {"id": 399, "owner": {"id": 740}, "assignee": {"id": 874}}, "task": {"id": 304, "owner": {"id": 961}, "assignee": {"id": 1002}}}} -} - -test_scope_UPDATE_STAGE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": null}, "resource": {"id": 381, "assignee": {"id": 562}, "organization": {"id": 639}, "project": {"id": 312, "owner": {"id": 750}, "assignee": {"id": 868}}, "task": {"id": 342, "owner": {"id": 983}, "assignee": {"id": 1047}}}} -} - -test_scope_UPDATE_STAGE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": null}, "resource": {"id": 327, "assignee": {"id": 563}, "organization": {"id": 636}, "project": {"id": 347, "owner": {"id": 791}, "assignee": {"id": 898}}, "task": {"id": 351, "owner": {"id": 904}, "assignee": {"id": 1015}}}} -} - -test_scope_UPDATE_STAGE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": null}, "resource": {"id": 344, "assignee": {"id": 513}, "organization": {"id": 696}, "project": {"id": 324, "owner": {"id": 778}, "assignee": {"id": 800}}, "task": {"id": 309, "owner": {"id": 934}, "assignee": {"id": 1024}}}} -} - -test_scope_UPDATE_STAGE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": null}, "resource": {"id": 320, "assignee": {"id": 548}, "organization": {"id": 610}, "project": {"id": 313, "owner": {"id": 774}, "assignee": {"id": 862}}, "task": {"id": 382, "owner": {"id": 969}, "assignee": {"id": 1072}}}} -} - -test_scope_UPDATE_STAGE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": null}, "resource": {"id": 312, "assignee": {"id": 514}, "organization": {"id": 623}, "project": {"id": 356, "owner": {"id": 721}, "assignee": {"id": 869}}, "task": {"id": 326, "owner": {"id": 949}, "assignee": {"id": 1001}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 393, "assignee": {"id": 573}, "organization": {"id": 130}, "project": {"id": 353, "owner": {"id": 69}, "assignee": {"id": 885}}, "task": {"id": 361, "owner": {"id": 955}, "assignee": {"id": 1013}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 359, "assignee": {"id": 548}, "organization": {"id": 618}, "project": {"id": 394, "owner": {"id": 83}, "assignee": {"id": 847}}, "task": {"id": 300, "owner": {"id": 961}, "assignee": {"id": 1053}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "assignee": {"id": 581}, "organization": {"id": 167}, "project": {"id": 323, "owner": {"id": 69}, "assignee": {"id": 863}}, "task": {"id": 318, "owner": {"id": 905}, "assignee": {"id": 1036}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "assignee": {"id": 571}, "organization": {"id": 606}, "project": {"id": 384, "owner": {"id": 28}, "assignee": {"id": 813}}, "task": {"id": 364, "owner": {"id": 949}, "assignee": {"id": 1073}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "assignee": {"id": 520}, "organization": {"id": 159}, "project": {"id": 338, "owner": {"id": 54}, "assignee": {"id": 842}}, "task": {"id": 351, "owner": {"id": 932}, "assignee": {"id": 1078}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "assignee": {"id": 575}, "organization": {"id": 678}, "project": {"id": 310, "owner": {"id": 96}, "assignee": {"id": 804}}, "task": {"id": 341, "owner": {"id": 991}, "assignee": {"id": 1087}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"id": 387, "assignee": {"id": 502}, "organization": {"id": 162}, "project": {"id": 332, "owner": {"id": 96}, "assignee": {"id": 804}}, "task": {"id": 372, "owner": {"id": 992}, "assignee": {"id": 1090}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 301, "assignee": {"id": 529}, "organization": {"id": 638}, "project": {"id": 316, "owner": {"id": 57}, "assignee": {"id": 884}}, "task": {"id": 314, "owner": {"id": 990}, "assignee": {"id": 1076}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 315, "assignee": {"id": 570}, "organization": {"id": 169}, "project": {"id": 394, "owner": {"id": 50}, "assignee": {"id": 871}}, "task": {"id": 373, "owner": {"id": 912}, "assignee": {"id": 1024}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 374, "assignee": {"id": 550}, "organization": {"id": 659}, "project": {"id": 301, "owner": {"id": 31}, "assignee": {"id": 835}}, "task": {"id": 322, "owner": {"id": 915}, "assignee": {"id": 1042}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 331, "assignee": {"id": 581}, "organization": {"id": 117}, "project": {"id": 393, "owner": {"id": 0}, "assignee": {"id": 899}}, "task": {"id": 343, "owner": {"id": 921}, "assignee": {"id": 1051}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 314, "assignee": {"id": 554}, "organization": {"id": 673}, "project": {"id": 394, "owner": {"id": 58}, "assignee": {"id": 803}}, "task": {"id": 370, "owner": {"id": 990}, "assignee": {"id": 1065}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "assignee": {"id": 501}, "organization": {"id": 196}, "project": {"id": 377, "owner": {"id": 29}, "assignee": {"id": 825}}, "task": {"id": 398, "owner": {"id": 947}, "assignee": {"id": 1069}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "assignee": {"id": 524}, "organization": {"id": 687}, "project": {"id": 379, "owner": {"id": 57}, "assignee": {"id": 810}}, "task": {"id": 300, "owner": {"id": 952}, "assignee": {"id": 1046}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "assignee": {"id": 561}, "organization": {"id": 190}, "project": {"id": 343, "owner": {"id": 88}, "assignee": {"id": 848}}, "task": {"id": 373, "owner": {"id": 927}, "assignee": {"id": 1098}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "assignee": {"id": 503}, "organization": {"id": 620}, "project": {"id": 394, "owner": {"id": 19}, "assignee": {"id": 838}}, "task": {"id": 306, "owner": {"id": 997}, "assignee": {"id": 1011}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 324, "assignee": {"id": 511}, "organization": {"id": 172}, "project": {"id": 342, "owner": {"id": 61}, "assignee": {"id": 865}}, "task": {"id": 381, "owner": {"id": 974}, "assignee": {"id": 1090}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 301, "assignee": {"id": 528}, "organization": {"id": 643}, "project": {"id": 397, "owner": {"id": 10}, "assignee": {"id": 858}}, "task": {"id": 312, "owner": {"id": 963}, "assignee": {"id": 1063}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 303, "assignee": {"id": 524}, "organization": {"id": 109}, "project": {"id": 344, "owner": {"id": 38}, "assignee": {"id": 864}}, "task": {"id": 357, "owner": {"id": 907}, "assignee": {"id": 1073}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 332, "assignee": {"id": 589}, "organization": {"id": 648}, "project": {"id": 300, "owner": {"id": 29}, "assignee": {"id": 811}}, "task": {"id": 350, "owner": {"id": 932}, "assignee": {"id": 1069}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 380, "assignee": {"id": 571}, "organization": {"id": 114}, "project": {"id": 341, "owner": {"id": 33}, "assignee": {"id": 830}}, "task": {"id": 357, "owner": {"id": 949}, "assignee": {"id": 1071}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 371, "assignee": {"id": 558}, "organization": {"id": 697}, "project": {"id": 351, "owner": {"id": 1}, "assignee": {"id": 859}}, "task": {"id": 385, "owner": {"id": 955}, "assignee": {"id": 1007}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "assignee": {"id": 539}, "organization": {"id": 185}, "project": {"id": 383, "owner": {"id": 81}, "assignee": {"id": 875}}, "task": {"id": 391, "owner": {"id": 958}, "assignee": {"id": 1086}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "assignee": {"id": 581}, "organization": {"id": 697}, "project": {"id": 360, "owner": {"id": 22}, "assignee": {"id": 830}}, "task": {"id": 305, "owner": {"id": 929}, "assignee": {"id": 1028}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "assignee": {"id": 595}, "organization": {"id": 114}, "project": {"id": 392, "owner": {"id": 43}, "assignee": {"id": 842}}, "task": {"id": 396, "owner": {"id": 963}, "assignee": {"id": 1033}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "assignee": {"id": 538}, "organization": {"id": 669}, "project": {"id": 335, "owner": {"id": 56}, "assignee": {"id": 805}}, "task": {"id": 375, "owner": {"id": 938}, "assignee": {"id": 1089}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 314, "assignee": {"id": 569}, "organization": {"id": 106}, "project": {"id": 344, "owner": {"id": 61}, "assignee": {"id": 802}}, "task": {"id": 343, "owner": {"id": 937}, "assignee": {"id": 1020}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 376, "assignee": {"id": 599}, "organization": {"id": 674}, "project": {"id": 346, "owner": {"id": 15}, "assignee": {"id": 891}}, "task": {"id": 338, "owner": {"id": 961}, "assignee": {"id": 1052}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"id": 306, "assignee": {"id": 561}, "organization": {"id": 195}, "project": {"id": 360, "owner": {"id": 86}, "assignee": {"id": 839}}, "task": {"id": 357, "owner": {"id": 946}, "assignee": {"id": 1037}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 353, "assignee": {"id": 543}, "organization": {"id": 659}, "project": {"id": 319, "owner": {"id": 49}, "assignee": {"id": 872}}, "task": {"id": 358, "owner": {"id": 919}, "assignee": {"id": 1021}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 326, "assignee": {"id": 537}, "organization": {"id": 101}, "project": {"id": 343, "owner": {"id": 74}, "assignee": {"id": 887}}, "task": {"id": 303, "owner": {"id": 997}, "assignee": {"id": 1026}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 364, "assignee": {"id": 533}, "organization": {"id": 687}, "project": {"id": 348, "owner": {"id": 55}, "assignee": {"id": 844}}, "task": {"id": 394, "owner": {"id": 953}, "assignee": {"id": 1001}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "assignee": {"id": 593}, "organization": {"id": 116}, "project": {"id": 323, "owner": {"id": 66}, "assignee": {"id": 891}}, "task": {"id": 352, "owner": {"id": 908}, "assignee": {"id": 1027}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "assignee": {"id": 560}, "organization": {"id": 604}, "project": {"id": 379, "owner": {"id": 76}, "assignee": {"id": 856}}, "task": {"id": 356, "owner": {"id": 958}, "assignee": {"id": 1056}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "assignee": {"id": 596}, "organization": {"id": 163}, "project": {"id": 326, "owner": {"id": 28}, "assignee": {"id": 872}}, "task": {"id": 352, "owner": {"id": 918}, "assignee": {"id": 1048}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "assignee": {"id": 523}, "organization": {"id": 695}, "project": {"id": 397, "owner": {"id": 56}, "assignee": {"id": 808}}, "task": {"id": 385, "owner": {"id": 910}, "assignee": {"id": 1007}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 345, "assignee": {"id": 515}, "organization": {"id": 152}, "project": {"id": 370, "owner": {"id": 4}, "assignee": {"id": 853}}, "task": {"id": 322, "owner": {"id": 923}, "assignee": {"id": 1084}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 383, "assignee": {"id": 521}, "organization": {"id": 636}, "project": {"id": 325, "owner": {"id": 30}, "assignee": {"id": 829}}, "task": {"id": 324, "owner": {"id": 987}, "assignee": {"id": 1099}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 327, "assignee": {"id": 578}, "organization": {"id": 103}, "project": {"id": 329, "owner": {"id": 90}, "assignee": {"id": 835}}, "task": {"id": 348, "owner": {"id": 902}, "assignee": {"id": 1051}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 372, "assignee": {"id": 533}, "organization": {"id": 690}, "project": {"id": 329, "owner": {"id": 83}, "assignee": {"id": 800}}, "task": {"id": 351, "owner": {"id": 978}, "assignee": {"id": 1044}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 343, "assignee": {"id": 556}, "organization": {"id": 117}, "project": {"id": 350, "owner": {"id": 11}, "assignee": {"id": 899}}, "task": {"id": 317, "owner": {"id": 976}, "assignee": {"id": 1039}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 343, "assignee": {"id": 531}, "organization": {"id": 661}, "project": {"id": 391, "owner": {"id": 67}, "assignee": {"id": 804}}, "task": {"id": 348, "owner": {"id": 933}, "assignee": {"id": 1032}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "assignee": {"id": 568}, "organization": {"id": 196}, "project": {"id": 399, "owner": {"id": 80}, "assignee": {"id": 831}}, "task": {"id": 313, "owner": {"id": 914}, "assignee": {"id": 1074}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "assignee": {"id": 501}, "organization": {"id": 632}, "project": {"id": 321, "owner": {"id": 0}, "assignee": {"id": 844}}, "task": {"id": 339, "owner": {"id": 918}, "assignee": {"id": 1067}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "assignee": {"id": 552}, "organization": {"id": 154}, "project": {"id": 338, "owner": {"id": 71}, "assignee": {"id": 846}}, "task": {"id": 342, "owner": {"id": 903}, "assignee": {"id": 1061}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "assignee": {"id": 581}, "organization": {"id": 657}, "project": {"id": 369, "owner": {"id": 29}, "assignee": {"id": 803}}, "task": {"id": 386, "owner": {"id": 923}, "assignee": {"id": 1005}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 316, "assignee": {"id": 521}, "organization": {"id": 141}, "project": {"id": 331, "owner": {"id": 91}, "assignee": {"id": 861}}, "task": {"id": 304, "owner": {"id": 911}, "assignee": {"id": 1079}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 351, "assignee": {"id": 553}, "organization": {"id": 626}, "project": {"id": 375, "owner": {"id": 60}, "assignee": {"id": 873}}, "task": {"id": 384, "owner": {"id": 916}, "assignee": {"id": 1069}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 399, "assignee": {"id": 561}, "organization": {"id": 139}, "project": {"id": 366, "owner": {"id": 20}, "assignee": {"id": 825}}, "task": {"id": 389, "owner": {"id": 909}, "assignee": {"id": 1032}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"id": 346, "assignee": {"id": 552}, "organization": {"id": 622}, "project": {"id": 373, "owner": {"id": 39}, "assignee": {"id": 860}}, "task": {"id": 385, "owner": {"id": 973}, "assignee": {"id": 1050}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 354, "assignee": {"id": 501}, "organization": {"id": 160}, "project": {"id": 324, "owner": {"id": 797}, "assignee": {"id": 0}}, "task": {"id": 369, "owner": {"id": 971}, "assignee": {"id": 1064}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 302, "assignee": {"id": 541}, "organization": {"id": 610}, "project": {"id": 389, "owner": {"id": 705}, "assignee": {"id": 43}}, "task": {"id": 367, "owner": {"id": 962}, "assignee": {"id": 1039}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "assignee": {"id": 502}, "organization": {"id": 110}, "project": {"id": 387, "owner": {"id": 720}, "assignee": {"id": 0}}, "task": {"id": 390, "owner": {"id": 983}, "assignee": {"id": 1096}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "assignee": {"id": 546}, "organization": {"id": 638}, "project": {"id": 346, "owner": {"id": 734}, "assignee": {"id": 63}}, "task": {"id": 350, "owner": {"id": 935}, "assignee": {"id": 1067}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "assignee": {"id": 589}, "organization": {"id": 183}, "project": {"id": 307, "owner": {"id": 734}, "assignee": {"id": 40}}, "task": {"id": 353, "owner": {"id": 916}, "assignee": {"id": 1059}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "assignee": {"id": 599}, "organization": {"id": 612}, "project": {"id": 345, "owner": {"id": 721}, "assignee": {"id": 57}}, "task": {"id": 387, "owner": {"id": 987}, "assignee": {"id": 1073}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 321, "assignee": {"id": 506}, "organization": {"id": 137}, "project": {"id": 392, "owner": {"id": 750}, "assignee": {"id": 43}}, "task": {"id": 361, "owner": {"id": 968}, "assignee": {"id": 1098}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 369, "assignee": {"id": 524}, "organization": {"id": 625}, "project": {"id": 301, "owner": {"id": 773}, "assignee": {"id": 30}}, "task": {"id": 364, "owner": {"id": 963}, "assignee": {"id": 1018}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 327, "assignee": {"id": 550}, "organization": {"id": 142}, "project": {"id": 390, "owner": {"id": 782}, "assignee": {"id": 33}}, "task": {"id": 354, "owner": {"id": 906}, "assignee": {"id": 1011}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 376, "assignee": {"id": 519}, "organization": {"id": 629}, "project": {"id": 317, "owner": {"id": 751}, "assignee": {"id": 84}}, "task": {"id": 309, "owner": {"id": 934}, "assignee": {"id": 1094}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 364, "assignee": {"id": 590}, "organization": {"id": 192}, "project": {"id": 379, "owner": {"id": 781}, "assignee": {"id": 5}}, "task": {"id": 300, "owner": {"id": 912}, "assignee": {"id": 1046}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 372, "assignee": {"id": 555}, "organization": {"id": 663}, "project": {"id": 377, "owner": {"id": 761}, "assignee": {"id": 16}}, "task": {"id": 316, "owner": {"id": 903}, "assignee": {"id": 1079}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "assignee": {"id": 516}, "organization": {"id": 116}, "project": {"id": 315, "owner": {"id": 771}, "assignee": {"id": 45}}, "task": {"id": 370, "owner": {"id": 992}, "assignee": {"id": 1092}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "assignee": {"id": 590}, "organization": {"id": 619}, "project": {"id": 372, "owner": {"id": 757}, "assignee": {"id": 25}}, "task": {"id": 334, "owner": {"id": 973}, "assignee": {"id": 1082}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "assignee": {"id": 543}, "organization": {"id": 141}, "project": {"id": 320, "owner": {"id": 775}, "assignee": {"id": 47}}, "task": {"id": 343, "owner": {"id": 968}, "assignee": {"id": 1080}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "assignee": {"id": 554}, "organization": {"id": 627}, "project": {"id": 377, "owner": {"id": 782}, "assignee": {"id": 21}}, "task": {"id": 310, "owner": {"id": 936}, "assignee": {"id": 1076}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 342, "assignee": {"id": 558}, "organization": {"id": 130}, "project": {"id": 389, "owner": {"id": 714}, "assignee": {"id": 59}}, "task": {"id": 323, "owner": {"id": 938}, "assignee": {"id": 1071}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 352, "assignee": {"id": 520}, "organization": {"id": 649}, "project": {"id": 316, "owner": {"id": 744}, "assignee": {"id": 30}}, "task": {"id": 310, "owner": {"id": 966}, "assignee": {"id": 1069}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"id": 322, "assignee": {"id": 538}, "organization": {"id": 155}, "project": {"id": 373, "owner": {"id": 760}, "assignee": {"id": 82}}, "task": {"id": 357, "owner": {"id": 930}, "assignee": {"id": 1097}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 359, "assignee": {"id": 561}, "organization": {"id": 621}, "project": {"id": 396, "owner": {"id": 733}, "assignee": {"id": 25}}, "task": {"id": 324, "owner": {"id": 981}, "assignee": {"id": 1039}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 338, "assignee": {"id": 579}, "organization": {"id": 114}, "project": {"id": 366, "owner": {"id": 763}, "assignee": {"id": 60}}, "task": {"id": 377, "owner": {"id": 948}, "assignee": {"id": 1046}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"id": 351, "assignee": {"id": 596}, "organization": {"id": 691}, "project": {"id": 339, "owner": {"id": 728}, "assignee": {"id": 20}}, "task": {"id": 386, "owner": {"id": 982}, "assignee": {"id": 1005}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "assignee": {"id": 597}, "organization": {"id": 137}, "project": {"id": 334, "owner": {"id": 768}, "assignee": {"id": 16}}, "task": {"id": 302, "owner": {"id": 982}, "assignee": {"id": 1037}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "assignee": {"id": 553}, "organization": {"id": 606}, "project": {"id": 380, "owner": {"id": 703}, "assignee": {"id": 1}}, "task": {"id": 306, "owner": {"id": 972}, "assignee": {"id": 1036}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "assignee": {"id": 589}, "organization": {"id": 151}, "project": {"id": 361, "owner": {"id": 729}, "assignee": {"id": 21}}, "task": {"id": 353, "owner": {"id": 916}, "assignee": {"id": 1036}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "assignee": {"id": 599}, "organization": {"id": 688}, "project": {"id": 317, "owner": {"id": 716}, "assignee": {"id": 4}}, "task": {"id": 333, "owner": {"id": 976}, "assignee": {"id": 1019}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 376, "assignee": {"id": 529}, "organization": {"id": 112}, "project": {"id": 376, "owner": {"id": 797}, "assignee": {"id": 7}}, "task": {"id": 391, "owner": {"id": 934}, "assignee": {"id": 1080}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 342, "assignee": {"id": 518}, "organization": {"id": 659}, "project": {"id": 330, "owner": {"id": 713}, "assignee": {"id": 23}}, "task": {"id": 314, "owner": {"id": 996}, "assignee": {"id": 1058}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 339, "assignee": {"id": 508}, "organization": {"id": 108}, "project": {"id": 362, "owner": {"id": 742}, "assignee": {"id": 81}}, "task": {"id": 373, "owner": {"id": 901}, "assignee": {"id": 1001}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 334, "assignee": {"id": 516}, "organization": {"id": 678}, "project": {"id": 328, "owner": {"id": 727}, "assignee": {"id": 34}}, "task": {"id": 378, "owner": {"id": 967}, "assignee": {"id": 1094}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 320, "assignee": {"id": 520}, "organization": {"id": 178}, "project": {"id": 368, "owner": {"id": 781}, "assignee": {"id": 41}}, "task": {"id": 397, "owner": {"id": 982}, "assignee": {"id": 1097}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 387, "assignee": {"id": 553}, "organization": {"id": 688}, "project": {"id": 361, "owner": {"id": 761}, "assignee": {"id": 2}}, "task": {"id": 345, "owner": {"id": 931}, "assignee": {"id": 1076}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "assignee": {"id": 598}, "organization": {"id": 141}, "project": {"id": 394, "owner": {"id": 738}, "assignee": {"id": 51}}, "task": {"id": 393, "owner": {"id": 999}, "assignee": {"id": 1030}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "assignee": {"id": 592}, "organization": {"id": 625}, "project": {"id": 318, "owner": {"id": 777}, "assignee": {"id": 90}}, "task": {"id": 302, "owner": {"id": 973}, "assignee": {"id": 1004}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "assignee": {"id": 538}, "organization": {"id": 164}, "project": {"id": 352, "owner": {"id": 708}, "assignee": {"id": 57}}, "task": {"id": 339, "owner": {"id": 938}, "assignee": {"id": 1018}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "assignee": {"id": 594}, "organization": {"id": 690}, "project": {"id": 341, "owner": {"id": 740}, "assignee": {"id": 36}}, "task": {"id": 384, "owner": {"id": 906}, "assignee": {"id": 1091}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 331, "assignee": {"id": 515}, "organization": {"id": 107}, "project": {"id": 379, "owner": {"id": 763}, "assignee": {"id": 95}}, "task": {"id": 318, "owner": {"id": 992}, "assignee": {"id": 1090}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 29, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 355, "assignee": {"id": 556}, "organization": {"id": 646}, "project": {"id": 334, "owner": {"id": 773}, "assignee": {"id": 29}}, "task": {"id": 379, "owner": {"id": 925}, "assignee": {"id": 1039}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 351, "assignee": {"id": 575}, "organization": {"id": 123}, "project": {"id": 335, "owner": {"id": 740}, "assignee": {"id": 75}}, "task": {"id": 394, "owner": {"id": 999}, "assignee": {"id": 1085}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 344, "assignee": {"id": 522}, "organization": {"id": 665}, "project": {"id": 360, "owner": {"id": 771}, "assignee": {"id": 25}}, "task": {"id": 328, "owner": {"id": 942}, "assignee": {"id": 1058}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 312, "assignee": {"id": 528}, "organization": {"id": 186}, "project": {"id": 302, "owner": {"id": 761}, "assignee": {"id": 80}}, "task": {"id": 335, "owner": {"id": 943}, "assignee": {"id": 1031}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 306, "assignee": {"id": 523}, "organization": {"id": 629}, "project": {"id": 354, "owner": {"id": 739}, "assignee": {"id": 97}}, "task": {"id": 322, "owner": {"id": 919}, "assignee": {"id": 1037}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "assignee": {"id": 581}, "organization": {"id": 130}, "project": {"id": 368, "owner": {"id": 747}, "assignee": {"id": 7}}, "task": {"id": 391, "owner": {"id": 958}, "assignee": {"id": 1020}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "assignee": {"id": 505}, "organization": {"id": 641}, "project": {"id": 309, "owner": {"id": 751}, "assignee": {"id": 41}}, "task": {"id": 316, "owner": {"id": 931}, "assignee": {"id": 1016}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "assignee": {"id": 590}, "organization": {"id": 134}, "project": {"id": 346, "owner": {"id": 745}, "assignee": {"id": 75}}, "task": {"id": 368, "owner": {"id": 963}, "assignee": {"id": 1006}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "assignee": {"id": 506}, "organization": {"id": 634}, "project": {"id": 319, "owner": {"id": 719}, "assignee": {"id": 43}}, "task": {"id": 387, "owner": {"id": 986}, "assignee": {"id": 1038}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 309, "assignee": {"id": 510}, "organization": {"id": 129}, "project": {"id": 379, "owner": {"id": 720}, "assignee": {"id": 41}}, "task": {"id": 347, "owner": {"id": 911}, "assignee": {"id": 1016}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 304, "assignee": {"id": 562}, "organization": {"id": 698}, "project": {"id": 366, "owner": {"id": 709}, "assignee": {"id": 44}}, "task": {"id": 311, "owner": {"id": 931}, "assignee": {"id": 1093}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 391, "assignee": {"id": 595}, "organization": {"id": 178}, "project": {"id": 393, "owner": {"id": 788}, "assignee": {"id": 8}}, "task": {"id": 378, "owner": {"id": 932}, "assignee": {"id": 1097}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 360, "assignee": {"id": 514}, "organization": {"id": 642}, "project": {"id": 388, "owner": {"id": 763}, "assignee": {"id": 15}}, "task": {"id": 340, "owner": {"id": 945}, "assignee": {"id": 1063}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 329, "assignee": {"id": 522}, "organization": {"id": 155}, "project": {"id": 380, "owner": {"id": 783}, "assignee": {"id": 816}}, "task": {"id": 335, "owner": {"id": 2}, "assignee": {"id": 1031}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 395, "assignee": {"id": 552}, "organization": {"id": 617}, "project": {"id": 309, "owner": {"id": 785}, "assignee": {"id": 885}}, "task": {"id": 368, "owner": {"id": 91}, "assignee": {"id": 1046}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "assignee": {"id": 516}, "organization": {"id": 137}, "project": {"id": 399, "owner": {"id": 700}, "assignee": {"id": 858}}, "task": {"id": 355, "owner": {"id": 5}, "assignee": {"id": 1040}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "assignee": {"id": 540}, "organization": {"id": 677}, "project": {"id": 371, "owner": {"id": 784}, "assignee": {"id": 849}}, "task": {"id": 364, "owner": {"id": 83}, "assignee": {"id": 1085}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "assignee": {"id": 558}, "organization": {"id": 164}, "project": {"id": 339, "owner": {"id": 724}, "assignee": {"id": 887}}, "task": {"id": 327, "owner": {"id": 3}, "assignee": {"id": 1054}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "assignee": {"id": 597}, "organization": {"id": 675}, "project": {"id": 304, "owner": {"id": 713}, "assignee": {"id": 805}}, "task": {"id": 310, "owner": {"id": 96}, "assignee": {"id": 1097}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 312, "assignee": {"id": 506}, "organization": {"id": 171}, "project": {"id": 327, "owner": {"id": 776}, "assignee": {"id": 819}}, "task": {"id": 362, "owner": {"id": 64}, "assignee": {"id": 1067}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 368, "assignee": {"id": 576}, "organization": {"id": 626}, "project": {"id": 304, "owner": {"id": 735}, "assignee": {"id": 850}}, "task": {"id": 384, "owner": {"id": 31}, "assignee": {"id": 1049}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 314, "assignee": {"id": 552}, "organization": {"id": 187}, "project": {"id": 360, "owner": {"id": 790}, "assignee": {"id": 868}}, "task": {"id": 393, "owner": {"id": 67}, "assignee": {"id": 1011}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 353, "assignee": {"id": 576}, "organization": {"id": 605}, "project": {"id": 344, "owner": {"id": 780}, "assignee": {"id": 804}}, "task": {"id": 384, "owner": {"id": 42}, "assignee": {"id": 1048}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 371, "assignee": {"id": 568}, "organization": {"id": 161}, "project": {"id": 320, "owner": {"id": 748}, "assignee": {"id": 861}}, "task": {"id": 322, "owner": {"id": 1}, "assignee": {"id": 1004}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 391, "assignee": {"id": 562}, "organization": {"id": 620}, "project": {"id": 300, "owner": {"id": 792}, "assignee": {"id": 881}}, "task": {"id": 370, "owner": {"id": 85}, "assignee": {"id": 1086}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "assignee": {"id": 580}, "organization": {"id": 166}, "project": {"id": 358, "owner": {"id": 726}, "assignee": {"id": 845}}, "task": {"id": 353, "owner": {"id": 59}, "assignee": {"id": 1002}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "assignee": {"id": 592}, "organization": {"id": 691}, "project": {"id": 399, "owner": {"id": 703}, "assignee": {"id": 868}}, "task": {"id": 328, "owner": {"id": 51}, "assignee": {"id": 1098}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "assignee": {"id": 597}, "organization": {"id": 144}, "project": {"id": 374, "owner": {"id": 780}, "assignee": {"id": 872}}, "task": {"id": 347, "owner": {"id": 32}, "assignee": {"id": 1082}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "assignee": {"id": 570}, "organization": {"id": 626}, "project": {"id": 352, "owner": {"id": 759}, "assignee": {"id": 810}}, "task": {"id": 333, "owner": {"id": 33}, "assignee": {"id": 1061}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 355, "assignee": {"id": 548}, "organization": {"id": 143}, "project": {"id": 365, "owner": {"id": 792}, "assignee": {"id": 853}}, "task": {"id": 357, "owner": {"id": 71}, "assignee": {"id": 1008}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 362, "assignee": {"id": 512}, "organization": {"id": 610}, "project": {"id": 354, "owner": {"id": 738}, "assignee": {"id": 845}}, "task": {"id": 355, "owner": {"id": 85}, "assignee": {"id": 1044}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 351, "assignee": {"id": 526}, "organization": {"id": 156}, "project": {"id": 331, "owner": {"id": 796}, "assignee": {"id": 811}}, "task": {"id": 364, "owner": {"id": 83}, "assignee": {"id": 1080}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 375, "assignee": {"id": 518}, "organization": {"id": 602}, "project": {"id": 392, "owner": {"id": 704}, "assignee": {"id": 817}}, "task": {"id": 344, "owner": {"id": 54}, "assignee": {"id": 1044}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 327, "assignee": {"id": 530}, "organization": {"id": 125}, "project": {"id": 360, "owner": {"id": 790}, "assignee": {"id": 861}}, "task": {"id": 361, "owner": {"id": 86}, "assignee": {"id": 1002}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 348, "assignee": {"id": 563}, "organization": {"id": 688}, "project": {"id": 371, "owner": {"id": 761}, "assignee": {"id": 813}}, "task": {"id": 375, "owner": {"id": 13}, "assignee": {"id": 1053}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "assignee": {"id": 561}, "organization": {"id": 117}, "project": {"id": 319, "owner": {"id": 701}, "assignee": {"id": 813}}, "task": {"id": 318, "owner": {"id": 7}, "assignee": {"id": 1085}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "assignee": {"id": 543}, "organization": {"id": 641}, "project": {"id": 303, "owner": {"id": 784}, "assignee": {"id": 807}}, "task": {"id": 343, "owner": {"id": 4}, "assignee": {"id": 1075}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "assignee": {"id": 504}, "organization": {"id": 180}, "project": {"id": 372, "owner": {"id": 775}, "assignee": {"id": 870}}, "task": {"id": 326, "owner": {"id": 51}, "assignee": {"id": 1063}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "assignee": {"id": 566}, "organization": {"id": 665}, "project": {"id": 361, "owner": {"id": 717}, "assignee": {"id": 839}}, "task": {"id": 348, "owner": {"id": 27}, "assignee": {"id": 1050}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 398, "assignee": {"id": 536}, "organization": {"id": 174}, "project": {"id": 367, "owner": {"id": 728}, "assignee": {"id": 898}}, "task": {"id": 385, "owner": {"id": 3}, "assignee": {"id": 1003}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 337, "assignee": {"id": 528}, "organization": {"id": 640}, "project": {"id": 320, "owner": {"id": 778}, "assignee": {"id": 839}}, "task": {"id": 379, "owner": {"id": 62}, "assignee": {"id": 1002}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 335, "assignee": {"id": 513}, "organization": {"id": 196}, "project": {"id": 372, "owner": {"id": 772}, "assignee": {"id": 882}}, "task": {"id": 352, "owner": {"id": 52}, "assignee": {"id": 1034}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"id": 319, "assignee": {"id": 565}, "organization": {"id": 679}, "project": {"id": 363, "owner": {"id": 788}, "assignee": {"id": 824}}, "task": {"id": 345, "owner": {"id": 77}, "assignee": {"id": 1066}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 318, "assignee": {"id": 543}, "organization": {"id": 121}, "project": {"id": 357, "owner": {"id": 799}, "assignee": {"id": 841}}, "task": {"id": 380, "owner": {"id": 0}, "assignee": {"id": 1007}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 331, "assignee": {"id": 504}, "organization": {"id": 616}, "project": {"id": 328, "owner": {"id": 736}, "assignee": {"id": 804}}, "task": {"id": 347, "owner": {"id": 59}, "assignee": {"id": 1095}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "assignee": {"id": 546}, "organization": {"id": 113}, "project": {"id": 384, "owner": {"id": 747}, "assignee": {"id": 866}}, "task": {"id": 372, "owner": {"id": 33}, "assignee": {"id": 1005}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "assignee": {"id": 521}, "organization": {"id": 698}, "project": {"id": 364, "owner": {"id": 701}, "assignee": {"id": 843}}, "task": {"id": 308, "owner": {"id": 55}, "assignee": {"id": 1051}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 369, "assignee": {"id": 514}, "organization": {"id": 198}, "project": {"id": 327, "owner": {"id": 774}, "assignee": {"id": 816}}, "task": {"id": 362, "owner": {"id": 37}, "assignee": {"id": 1070}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "assignee": {"id": 581}, "organization": {"id": 678}, "project": {"id": 304, "owner": {"id": 774}, "assignee": {"id": 871}}, "task": {"id": 348, "owner": {"id": 10}, "assignee": {"id": 1053}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 360, "assignee": {"id": 550}, "organization": {"id": 118}, "project": {"id": 341, "owner": {"id": 770}, "assignee": {"id": 836}}, "task": {"id": 338, "owner": {"id": 1}, "assignee": {"id": 1019}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 333, "assignee": {"id": 588}, "organization": {"id": 671}, "project": {"id": 319, "owner": {"id": 732}, "assignee": {"id": 868}}, "task": {"id": 369, "owner": {"id": 92}, "assignee": {"id": 1024}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 359, "assignee": {"id": 530}, "organization": {"id": 168}, "project": {"id": 309, "owner": {"id": 738}, "assignee": {"id": 846}}, "task": {"id": 305, "owner": {"id": 14}, "assignee": {"id": 1009}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 389, "assignee": {"id": 519}, "organization": {"id": 648}, "project": {"id": 386, "owner": {"id": 748}, "assignee": {"id": 880}}, "task": {"id": 375, "owner": {"id": 15}, "assignee": {"id": 1033}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 331, "assignee": {"id": 585}, "organization": {"id": 111}, "project": {"id": 352, "owner": {"id": 700}, "assignee": {"id": 849}}, "task": {"id": 310, "owner": {"id": 58}, "assignee": {"id": 1033}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 372, "assignee": {"id": 595}, "organization": {"id": 615}, "project": {"id": 313, "owner": {"id": 774}, "assignee": {"id": 878}}, "task": {"id": 316, "owner": {"id": 48}, "assignee": {"id": 1040}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "assignee": {"id": 518}, "organization": {"id": 127}, "project": {"id": 392, "owner": {"id": 762}, "assignee": {"id": 852}}, "task": {"id": 371, "owner": {"id": 99}, "assignee": {"id": 1085}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "assignee": {"id": 505}, "organization": {"id": 628}, "project": {"id": 333, "owner": {"id": 710}, "assignee": {"id": 835}}, "task": {"id": 311, "owner": {"id": 8}, "assignee": {"id": 1096}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "assignee": {"id": 571}, "organization": {"id": 129}, "project": {"id": 313, "owner": {"id": 739}, "assignee": {"id": 801}}, "task": {"id": 343, "owner": {"id": 90}, "assignee": {"id": 1089}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 340, "assignee": {"id": 581}, "organization": {"id": 614}, "project": {"id": 356, "owner": {"id": 775}, "assignee": {"id": 885}}, "task": {"id": 300, "owner": {"id": 57}, "assignee": {"id": 1039}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 346, "assignee": {"id": 553}, "organization": {"id": 137}, "project": {"id": 373, "owner": {"id": 795}, "assignee": {"id": 835}}, "task": {"id": 306, "owner": {"id": 12}, "assignee": {"id": 1058}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 364, "assignee": {"id": 558}, "organization": {"id": 667}, "project": {"id": 327, "owner": {"id": 708}, "assignee": {"id": 802}}, "task": {"id": 325, "owner": {"id": 45}, "assignee": {"id": 1033}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 334, "assignee": {"id": 540}, "organization": {"id": 176}, "project": {"id": 316, "owner": {"id": 797}, "assignee": {"id": 819}}, "task": {"id": 358, "owner": {"id": 60}, "assignee": {"id": 1084}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 306, "assignee": {"id": 558}, "organization": {"id": 692}, "project": {"id": 334, "owner": {"id": 703}, "assignee": {"id": 828}}, "task": {"id": 327, "owner": {"id": 33}, "assignee": {"id": 1033}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 374, "assignee": {"id": 578}, "organization": {"id": 190}, "project": {"id": 357, "owner": {"id": 700}, "assignee": {"id": 877}}, "task": {"id": 329, "owner": {"id": 931}, "assignee": {"id": 13}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 350, "assignee": {"id": 595}, "organization": {"id": 678}, "project": {"id": 336, "owner": {"id": 711}, "assignee": {"id": 823}}, "task": {"id": 380, "owner": {"id": 951}, "assignee": {"id": 9}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "assignee": {"id": 528}, "organization": {"id": 182}, "project": {"id": 354, "owner": {"id": 797}, "assignee": {"id": 857}}, "task": {"id": 344, "owner": {"id": 929}, "assignee": {"id": 89}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "assignee": {"id": 544}, "organization": {"id": 662}, "project": {"id": 350, "owner": {"id": 730}, "assignee": {"id": 811}}, "task": {"id": 387, "owner": {"id": 904}, "assignee": {"id": 3}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "assignee": {"id": 582}, "organization": {"id": 104}, "project": {"id": 337, "owner": {"id": 752}, "assignee": {"id": 812}}, "task": {"id": 321, "owner": {"id": 941}, "assignee": {"id": 50}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "assignee": {"id": 502}, "organization": {"id": 607}, "project": {"id": 335, "owner": {"id": 756}, "assignee": {"id": 837}}, "task": {"id": 366, "owner": {"id": 951}, "assignee": {"id": 76}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 348, "assignee": {"id": 599}, "organization": {"id": 166}, "project": {"id": 381, "owner": {"id": 774}, "assignee": {"id": 866}}, "task": {"id": 375, "owner": {"id": 934}, "assignee": {"id": 32}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 359, "assignee": {"id": 501}, "organization": {"id": 683}, "project": {"id": 331, "owner": {"id": 751}, "assignee": {"id": 813}}, "task": {"id": 303, "owner": {"id": 906}, "assignee": {"id": 59}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 309, "assignee": {"id": 556}, "organization": {"id": 176}, "project": {"id": 397, "owner": {"id": 728}, "assignee": {"id": 883}}, "task": {"id": 361, "owner": {"id": 940}, "assignee": {"id": 39}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 325, "assignee": {"id": 504}, "organization": {"id": 656}, "project": {"id": 367, "owner": {"id": 713}, "assignee": {"id": 814}}, "task": {"id": 309, "owner": {"id": 956}, "assignee": {"id": 73}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 354, "assignee": {"id": 506}, "organization": {"id": 137}, "project": {"id": 335, "owner": {"id": 778}, "assignee": {"id": 803}}, "task": {"id": 321, "owner": {"id": 911}, "assignee": {"id": 36}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 345, "assignee": {"id": 542}, "organization": {"id": 675}, "project": {"id": 354, "owner": {"id": 757}, "assignee": {"id": 835}}, "task": {"id": 329, "owner": {"id": 929}, "assignee": {"id": 85}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "assignee": {"id": 584}, "organization": {"id": 172}, "project": {"id": 393, "owner": {"id": 752}, "assignee": {"id": 889}}, "task": {"id": 343, "owner": {"id": 947}, "assignee": {"id": 29}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "assignee": {"id": 599}, "organization": {"id": 687}, "project": {"id": 303, "owner": {"id": 727}, "assignee": {"id": 893}}, "task": {"id": 329, "owner": {"id": 946}, "assignee": {"id": 0}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "assignee": {"id": 579}, "organization": {"id": 127}, "project": {"id": 374, "owner": {"id": 774}, "assignee": {"id": 823}}, "task": {"id": 349, "owner": {"id": 980}, "assignee": {"id": 44}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "assignee": {"id": 591}, "organization": {"id": 614}, "project": {"id": 394, "owner": {"id": 778}, "assignee": {"id": 861}}, "task": {"id": 382, "owner": {"id": 958}, "assignee": {"id": 13}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 372, "assignee": {"id": 538}, "organization": {"id": 192}, "project": {"id": 354, "owner": {"id": 788}, "assignee": {"id": 819}}, "task": {"id": 334, "owner": {"id": 964}, "assignee": {"id": 91}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 325, "assignee": {"id": 595}, "organization": {"id": 671}, "project": {"id": 344, "owner": {"id": 767}, "assignee": {"id": 848}}, "task": {"id": 342, "owner": {"id": 984}, "assignee": {"id": 79}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 384, "assignee": {"id": 549}, "organization": {"id": 135}, "project": {"id": 358, "owner": {"id": 784}, "assignee": {"id": 811}}, "task": {"id": 333, "owner": {"id": 989}, "assignee": {"id": 30}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 325, "assignee": {"id": 515}, "organization": {"id": 697}, "project": {"id": 361, "owner": {"id": 777}, "assignee": {"id": 849}}, "task": {"id": 356, "owner": {"id": 904}, "assignee": {"id": 0}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 371, "assignee": {"id": 582}, "organization": {"id": 191}, "project": {"id": 361, "owner": {"id": 729}, "assignee": {"id": 840}}, "task": {"id": 359, "owner": {"id": 977}, "assignee": {"id": 15}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 349, "assignee": {"id": 517}, "organization": {"id": 643}, "project": {"id": 303, "owner": {"id": 750}, "assignee": {"id": 889}}, "task": {"id": 375, "owner": {"id": 971}, "assignee": {"id": 24}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "assignee": {"id": 550}, "organization": {"id": 101}, "project": {"id": 351, "owner": {"id": 726}, "assignee": {"id": 875}}, "task": {"id": 368, "owner": {"id": 988}, "assignee": {"id": 57}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "assignee": {"id": 584}, "organization": {"id": 680}, "project": {"id": 382, "owner": {"id": 741}, "assignee": {"id": 846}}, "task": {"id": 362, "owner": {"id": 900}, "assignee": {"id": 76}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "assignee": {"id": 584}, "organization": {"id": 195}, "project": {"id": 360, "owner": {"id": 789}, "assignee": {"id": 812}}, "task": {"id": 392, "owner": {"id": 969}, "assignee": {"id": 50}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "assignee": {"id": 546}, "organization": {"id": 641}, "project": {"id": 316, "owner": {"id": 777}, "assignee": {"id": 883}}, "task": {"id": 307, "owner": {"id": 942}, "assignee": {"id": 79}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 306, "assignee": {"id": 500}, "organization": {"id": 110}, "project": {"id": 385, "owner": {"id": 710}, "assignee": {"id": 814}}, "task": {"id": 385, "owner": {"id": 998}, "assignee": {"id": 7}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 354, "assignee": {"id": 509}, "organization": {"id": 653}, "project": {"id": 309, "owner": {"id": 774}, "assignee": {"id": 858}}, "task": {"id": 324, "owner": {"id": 971}, "assignee": {"id": 32}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 379, "assignee": {"id": 580}, "organization": {"id": 194}, "project": {"id": 310, "owner": {"id": 717}, "assignee": {"id": 811}}, "task": {"id": 329, "owner": {"id": 900}, "assignee": {"id": 86}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 365, "assignee": {"id": 517}, "organization": {"id": 683}, "project": {"id": 397, "owner": {"id": 724}, "assignee": {"id": 867}}, "task": {"id": 338, "owner": {"id": 985}, "assignee": {"id": 73}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 397, "assignee": {"id": 587}, "organization": {"id": 127}, "project": {"id": 390, "owner": {"id": 771}, "assignee": {"id": 851}}, "task": {"id": 361, "owner": {"id": 916}, "assignee": {"id": 86}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 307, "assignee": {"id": 533}, "organization": {"id": 685}, "project": {"id": 333, "owner": {"id": 767}, "assignee": {"id": 815}}, "task": {"id": 363, "owner": {"id": 986}, "assignee": {"id": 80}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "assignee": {"id": 546}, "organization": {"id": 198}, "project": {"id": 392, "owner": {"id": 753}, "assignee": {"id": 808}}, "task": {"id": 377, "owner": {"id": 917}, "assignee": {"id": 9}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "assignee": {"id": 517}, "organization": {"id": 617}, "project": {"id": 302, "owner": {"id": 752}, "assignee": {"id": 827}}, "task": {"id": 396, "owner": {"id": 910}, "assignee": {"id": 93}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "assignee": {"id": 561}, "organization": {"id": 119}, "project": {"id": 308, "owner": {"id": 781}, "assignee": {"id": 880}}, "task": {"id": 380, "owner": {"id": 991}, "assignee": {"id": 3}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "assignee": {"id": 533}, "organization": {"id": 697}, "project": {"id": 314, "owner": {"id": 788}, "assignee": {"id": 880}}, "task": {"id": 355, "owner": {"id": 977}, "assignee": {"id": 54}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 340, "assignee": {"id": 580}, "organization": {"id": 131}, "project": {"id": 375, "owner": {"id": 708}, "assignee": {"id": 852}}, "task": {"id": 359, "owner": {"id": 955}, "assignee": {"id": 1}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 328, "assignee": {"id": 573}, "organization": {"id": 685}, "project": {"id": 308, "owner": {"id": 791}, "assignee": {"id": 873}}, "task": {"id": 393, "owner": {"id": 929}, "assignee": {"id": 22}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 368, "assignee": {"id": 519}, "organization": {"id": 159}, "project": {"id": 351, "owner": {"id": 758}, "assignee": {"id": 813}}, "task": {"id": 322, "owner": {"id": 948}, "assignee": {"id": 30}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 333, "assignee": {"id": 577}, "organization": {"id": 679}, "project": {"id": 372, "owner": {"id": 741}, "assignee": {"id": 821}}, "task": {"id": 323, "owner": {"id": 940}, "assignee": {"id": 78}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 332, "assignee": {"id": 533}, "organization": {"id": 154}, "project": {"id": 387, "owner": {"id": 766}, "assignee": {"id": 835}}, "task": {"id": 397, "owner": {"id": 931}, "assignee": {"id": 80}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 390, "assignee": {"id": 593}, "organization": {"id": 669}, "project": {"id": 355, "owner": {"id": 764}, "assignee": {"id": 814}}, "task": {"id": 314, "owner": {"id": 909}, "assignee": {"id": 28}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "assignee": {"id": 532}, "organization": {"id": 161}, "project": {"id": 377, "owner": {"id": 790}, "assignee": {"id": 866}}, "task": {"id": 303, "owner": {"id": 941}, "assignee": {"id": 63}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "assignee": {"id": 540}, "organization": {"id": 689}, "project": {"id": 344, "owner": {"id": 776}, "assignee": {"id": 886}}, "task": {"id": 384, "owner": {"id": 988}, "assignee": {"id": 98}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "assignee": {"id": 521}, "organization": {"id": 173}, "project": {"id": 361, "owner": {"id": 767}, "assignee": {"id": 861}}, "task": {"id": 378, "owner": {"id": 906}, "assignee": {"id": 45}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "assignee": {"id": 519}, "organization": {"id": 602}, "project": {"id": 391, "owner": {"id": 793}, "assignee": {"id": 834}}, "task": {"id": 349, "owner": {"id": 930}, "assignee": {"id": 21}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 322, "assignee": {"id": 592}, "organization": {"id": 165}, "project": {"id": 350, "owner": {"id": 792}, "assignee": {"id": 802}}, "task": {"id": 327, "owner": {"id": 918}, "assignee": {"id": 41}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 309, "assignee": {"id": 568}, "organization": {"id": 600}, "project": {"id": 322, "owner": {"id": 779}, "assignee": {"id": 840}}, "task": {"id": 344, "owner": {"id": 984}, "assignee": {"id": 75}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 359, "assignee": {"id": 598}, "organization": {"id": 174}, "project": {"id": 392, "owner": {"id": 758}, "assignee": {"id": 873}}, "task": {"id": 325, "owner": {"id": 977}, "assignee": {"id": 62}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 397, "assignee": {"id": 544}, "organization": {"id": 608}, "project": {"id": 372, "owner": {"id": 782}, "assignee": {"id": 818}}, "task": {"id": 332, "owner": {"id": 992}, "assignee": {"id": 34}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 309, "assignee": {"id": 90}, "organization": {"id": 167}, "project": {"id": 386, "owner": {"id": 727}, "assignee": {"id": 850}}, "task": {"id": 358, "owner": {"id": 901}, "assignee": {"id": 1027}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 318, "assignee": {"id": 46}, "organization": {"id": 650}, "project": {"id": 383, "owner": {"id": 759}, "assignee": {"id": 855}}, "task": {"id": 313, "owner": {"id": 913}, "assignee": {"id": 1020}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "assignee": {"id": 50}, "organization": {"id": 131}, "project": {"id": 326, "owner": {"id": 703}, "assignee": {"id": 801}}, "task": {"id": 369, "owner": {"id": 905}, "assignee": {"id": 1046}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "assignee": {"id": 71}, "organization": {"id": 689}, "project": {"id": 318, "owner": {"id": 773}, "assignee": {"id": 821}}, "task": {"id": 380, "owner": {"id": 932}, "assignee": {"id": 1081}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "assignee": {"id": 67}, "organization": {"id": 125}, "project": {"id": 314, "owner": {"id": 705}, "assignee": {"id": 860}}, "task": {"id": 387, "owner": {"id": 991}, "assignee": {"id": 1066}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "assignee": {"id": 69}, "organization": {"id": 656}, "project": {"id": 329, "owner": {"id": 791}, "assignee": {"id": 854}}, "task": {"id": 345, "owner": {"id": 997}, "assignee": {"id": 1037}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 323, "assignee": {"id": 70}, "organization": {"id": 137}, "project": {"id": 317, "owner": {"id": 700}, "assignee": {"id": 808}}, "task": {"id": 378, "owner": {"id": 957}, "assignee": {"id": 1002}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 369, "assignee": {"id": 62}, "organization": {"id": 632}, "project": {"id": 386, "owner": {"id": 708}, "assignee": {"id": 855}}, "task": {"id": 387, "owner": {"id": 991}, "assignee": {"id": 1020}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 355, "assignee": {"id": 93}, "organization": {"id": 193}, "project": {"id": 380, "owner": {"id": 750}, "assignee": {"id": 841}}, "task": {"id": 308, "owner": {"id": 920}, "assignee": {"id": 1079}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"id": 345, "assignee": {"id": 4}, "organization": {"id": 611}, "project": {"id": 387, "owner": {"id": 790}, "assignee": {"id": 802}}, "task": {"id": 302, "owner": {"id": 946}, "assignee": {"id": 1010}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 379, "assignee": {"id": 54}, "organization": {"id": 122}, "project": {"id": 368, "owner": {"id": 798}, "assignee": {"id": 832}}, "task": {"id": 390, "owner": {"id": 916}, "assignee": {"id": 1016}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 388, "assignee": {"id": 30}, "organization": {"id": 601}, "project": {"id": 326, "owner": {"id": 753}, "assignee": {"id": 801}}, "task": {"id": 357, "owner": {"id": 917}, "assignee": {"id": 1016}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "assignee": {"id": 34}, "organization": {"id": 187}, "project": {"id": 367, "owner": {"id": 729}, "assignee": {"id": 800}}, "task": {"id": 390, "owner": {"id": 924}, "assignee": {"id": 1085}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "assignee": {"id": 98}, "organization": {"id": 625}, "project": {"id": 358, "owner": {"id": 742}, "assignee": {"id": 826}}, "task": {"id": 373, "owner": {"id": 914}, "assignee": {"id": 1055}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 371, "assignee": {"id": 54}, "organization": {"id": 154}, "project": {"id": 314, "owner": {"id": 753}, "assignee": {"id": 890}}, "task": {"id": 350, "owner": {"id": 928}, "assignee": {"id": 1015}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "assignee": {"id": 0}, "organization": {"id": 660}, "project": {"id": 393, "owner": {"id": 786}, "assignee": {"id": 839}}, "task": {"id": 301, "owner": {"id": 931}, "assignee": {"id": 1026}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 335, "assignee": {"id": 74}, "organization": {"id": 159}, "project": {"id": 302, "owner": {"id": 749}, "assignee": {"id": 812}}, "task": {"id": 355, "owner": {"id": 950}, "assignee": {"id": 1033}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 303, "assignee": {"id": 12}, "organization": {"id": 669}, "project": {"id": 336, "owner": {"id": 737}, "assignee": {"id": 894}}, "task": {"id": 342, "owner": {"id": 970}, "assignee": {"id": 1003}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 383, "assignee": {"id": 21}, "organization": {"id": 166}, "project": {"id": 352, "owner": {"id": 738}, "assignee": {"id": 818}}, "task": {"id": 374, "owner": {"id": 952}, "assignee": {"id": 1088}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 375, "assignee": {"id": 83}, "organization": {"id": 637}, "project": {"id": 312, "owner": {"id": 715}, "assignee": {"id": 845}}, "task": {"id": 300, "owner": {"id": 940}, "assignee": {"id": 1002}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 378, "assignee": {"id": 15}, "organization": {"id": 142}, "project": {"id": 353, "owner": {"id": 712}, "assignee": {"id": 893}}, "task": {"id": 392, "owner": {"id": 998}, "assignee": {"id": 1024}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 390, "assignee": {"id": 84}, "organization": {"id": 647}, "project": {"id": 320, "owner": {"id": 789}, "assignee": {"id": 831}}, "task": {"id": 389, "owner": {"id": 920}, "assignee": {"id": 1017}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "assignee": {"id": 30}, "organization": {"id": 144}, "project": {"id": 324, "owner": {"id": 758}, "assignee": {"id": 882}}, "task": {"id": 356, "owner": {"id": 981}, "assignee": {"id": 1038}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "assignee": {"id": 95}, "organization": {"id": 689}, "project": {"id": 391, "owner": {"id": 739}, "assignee": {"id": 863}}, "task": {"id": 351, "owner": {"id": 922}, "assignee": {"id": 1043}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "assignee": {"id": 20}, "organization": {"id": 141}, "project": {"id": 398, "owner": {"id": 713}, "assignee": {"id": 811}}, "task": {"id": 314, "owner": {"id": 942}, "assignee": {"id": 1099}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "assignee": {"id": 68}, "organization": {"id": 655}, "project": {"id": 323, "owner": {"id": 759}, "assignee": {"id": 857}}, "task": {"id": 390, "owner": {"id": 969}, "assignee": {"id": 1070}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 305, "assignee": {"id": 2}, "organization": {"id": 132}, "project": {"id": 356, "owner": {"id": 735}, "assignee": {"id": 868}}, "task": {"id": 375, "owner": {"id": 902}, "assignee": {"id": 1030}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 368, "assignee": {"id": 55}, "organization": {"id": 600}, "project": {"id": 390, "owner": {"id": 797}, "assignee": {"id": 875}}, "task": {"id": 360, "owner": {"id": 915}, "assignee": {"id": 1069}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 316, "assignee": {"id": 37}, "organization": {"id": 184}, "project": {"id": 328, "owner": {"id": 747}, "assignee": {"id": 889}}, "task": {"id": 342, "owner": {"id": 988}, "assignee": {"id": 1098}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"id": 346, "assignee": {"id": 56}, "organization": {"id": 623}, "project": {"id": 305, "owner": {"id": 741}, "assignee": {"id": 894}}, "task": {"id": 345, "owner": {"id": 972}, "assignee": {"id": 1052}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 363, "assignee": {"id": 70}, "organization": {"id": 128}, "project": {"id": 311, "owner": {"id": 713}, "assignee": {"id": 887}}, "task": {"id": 324, "owner": {"id": 957}, "assignee": {"id": 1075}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 390, "assignee": {"id": 41}, "organization": {"id": 697}, "project": {"id": 342, "owner": {"id": 759}, "assignee": {"id": 852}}, "task": {"id": 318, "owner": {"id": 956}, "assignee": {"id": 1032}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "assignee": {"id": 59}, "organization": {"id": 104}, "project": {"id": 300, "owner": {"id": 770}, "assignee": {"id": 872}}, "task": {"id": 345, "owner": {"id": 967}, "assignee": {"id": 1073}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "assignee": {"id": 48}, "organization": {"id": 684}, "project": {"id": 321, "owner": {"id": 723}, "assignee": {"id": 814}}, "task": {"id": 399, "owner": {"id": 926}, "assignee": {"id": 1025}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "assignee": {"id": 55}, "organization": {"id": 187}, "project": {"id": 307, "owner": {"id": 700}, "assignee": {"id": 865}}, "task": {"id": 325, "owner": {"id": 934}, "assignee": {"id": 1058}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "assignee": {"id": 92}, "organization": {"id": 685}, "project": {"id": 364, "owner": {"id": 781}, "assignee": {"id": 873}}, "task": {"id": 366, "owner": {"id": 975}, "assignee": {"id": 1079}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 387, "assignee": {"id": 93}, "organization": {"id": 173}, "project": {"id": 349, "owner": {"id": 713}, "assignee": {"id": 894}}, "task": {"id": 314, "owner": {"id": 995}, "assignee": {"id": 1031}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 396, "assignee": {"id": 42}, "organization": {"id": 661}, "project": {"id": 373, "owner": {"id": 776}, "assignee": {"id": 816}}, "task": {"id": 359, "owner": {"id": 913}, "assignee": {"id": 1081}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 306, "assignee": {"id": 86}, "organization": {"id": 145}, "project": {"id": 366, "owner": {"id": 786}, "assignee": {"id": 862}}, "task": {"id": 395, "owner": {"id": 969}, "assignee": {"id": 1066}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 365, "assignee": {"id": 83}, "organization": {"id": 693}, "project": {"id": 382, "owner": {"id": 771}, "assignee": {"id": 878}}, "task": {"id": 365, "owner": {"id": 950}, "assignee": {"id": 1065}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 398, "assignee": {"id": 31}, "organization": {"id": 106}, "project": {"id": 399, "owner": {"id": 730}, "assignee": {"id": 873}}, "task": {"id": 359, "owner": {"id": 950}, "assignee": {"id": 1089}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 372, "assignee": {"id": 78}, "organization": {"id": 682}, "project": {"id": 300, "owner": {"id": 760}, "assignee": {"id": 830}}, "task": {"id": 363, "owner": {"id": 975}, "assignee": {"id": 1036}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "assignee": {"id": 32}, "organization": {"id": 139}, "project": {"id": 335, "owner": {"id": 740}, "assignee": {"id": 859}}, "task": {"id": 387, "owner": {"id": 982}, "assignee": {"id": 1084}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "assignee": {"id": 49}, "organization": {"id": 657}, "project": {"id": 351, "owner": {"id": 774}, "assignee": {"id": 821}}, "task": {"id": 395, "owner": {"id": 954}, "assignee": {"id": 1017}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 343, "assignee": {"id": 13}, "organization": {"id": 188}, "project": {"id": 329, "owner": {"id": 738}, "assignee": {"id": 898}}, "task": {"id": 357, "owner": {"id": 945}, "assignee": {"id": 1072}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "assignee": {"id": 78}, "organization": {"id": 633}, "project": {"id": 331, "owner": {"id": 743}, "assignee": {"id": 874}}, "task": {"id": 383, "owner": {"id": 965}, "assignee": {"id": 1026}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 380, "assignee": {"id": 73}, "organization": {"id": 154}, "project": {"id": 372, "owner": {"id": 794}, "assignee": {"id": 806}}, "task": {"id": 359, "owner": {"id": 977}, "assignee": {"id": 1090}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"id": 364, "assignee": {"id": 53}, "organization": {"id": 657}, "project": {"id": 364, "owner": {"id": 796}, "assignee": {"id": 828}}, "task": {"id": 386, "owner": {"id": 963}, "assignee": {"id": 1042}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 309, "assignee": {"id": 62}, "organization": {"id": 188}, "project": {"id": 367, "owner": {"id": 739}, "assignee": {"id": 827}}, "task": {"id": 339, "owner": {"id": 986}, "assignee": {"id": 1004}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 307, "assignee": {"id": 12}, "organization": {"id": 683}, "project": {"id": 385, "owner": {"id": 712}, "assignee": {"id": 887}}, "task": {"id": 359, "owner": {"id": 959}, "assignee": {"id": 1049}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 324, "assignee": {"id": 540}, "organization": {"id": 127}, "project": {"id": 303, "owner": {"id": 782}, "assignee": {"id": 880}}, "task": {"id": 300, "owner": {"id": 962}, "assignee": {"id": 1065}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 36, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 374, "assignee": {"id": 520}, "organization": {"id": 619}, "project": {"id": 324, "owner": {"id": 725}, "assignee": {"id": 891}}, "task": {"id": 391, "owner": {"id": 964}, "assignee": {"id": 1041}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "assignee": {"id": 552}, "organization": {"id": 198}, "project": {"id": 375, "owner": {"id": 777}, "assignee": {"id": 843}}, "task": {"id": 316, "owner": {"id": 970}, "assignee": {"id": 1042}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "assignee": {"id": 523}, "organization": {"id": 628}, "project": {"id": 311, "owner": {"id": 797}, "assignee": {"id": 817}}, "task": {"id": 387, "owner": {"id": 950}, "assignee": {"id": 1040}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "assignee": {"id": 540}, "organization": {"id": 119}, "project": {"id": 385, "owner": {"id": 790}, "assignee": {"id": 842}}, "task": {"id": 315, "owner": {"id": 936}, "assignee": {"id": 1079}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "assignee": {"id": 588}, "organization": {"id": 606}, "project": {"id": 324, "owner": {"id": 717}, "assignee": {"id": 816}}, "task": {"id": 331, "owner": {"id": 934}, "assignee": {"id": 1061}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 354, "assignee": {"id": 578}, "organization": {"id": 144}, "project": {"id": 304, "owner": {"id": 774}, "assignee": {"id": 831}}, "task": {"id": 390, "owner": {"id": 945}, "assignee": {"id": 1040}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 357, "assignee": {"id": 505}, "organization": {"id": 619}, "project": {"id": 304, "owner": {"id": 705}, "assignee": {"id": 852}}, "task": {"id": 314, "owner": {"id": 960}, "assignee": {"id": 1032}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 339, "assignee": {"id": 533}, "organization": {"id": 113}, "project": {"id": 372, "owner": {"id": 735}, "assignee": {"id": 860}}, "task": {"id": 350, "owner": {"id": 914}, "assignee": {"id": 1098}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 372, "assignee": {"id": 531}, "organization": {"id": 684}, "project": {"id": 376, "owner": {"id": 711}, "assignee": {"id": 881}}, "task": {"id": 318, "owner": {"id": 961}, "assignee": {"id": 1086}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 353, "assignee": {"id": 541}, "organization": {"id": 169}, "project": {"id": 356, "owner": {"id": 794}, "assignee": {"id": 851}}, "task": {"id": 313, "owner": {"id": 919}, "assignee": {"id": 1021}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 330, "assignee": {"id": 583}, "organization": {"id": 690}, "project": {"id": 380, "owner": {"id": 703}, "assignee": {"id": 846}}, "task": {"id": 349, "owner": {"id": 937}, "assignee": {"id": 1036}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "assignee": {"id": 531}, "organization": {"id": 142}, "project": {"id": 300, "owner": {"id": 732}, "assignee": {"id": 847}}, "task": {"id": 347, "owner": {"id": 941}, "assignee": {"id": 1043}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "assignee": {"id": 552}, "organization": {"id": 627}, "project": {"id": 390, "owner": {"id": 742}, "assignee": {"id": 854}}, "task": {"id": 300, "owner": {"id": 963}, "assignee": {"id": 1063}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "assignee": {"id": 586}, "organization": {"id": 173}, "project": {"id": 327, "owner": {"id": 729}, "assignee": {"id": 882}}, "task": {"id": 317, "owner": {"id": 962}, "assignee": {"id": 1052}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "assignee": {"id": 507}, "organization": {"id": 633}, "project": {"id": 386, "owner": {"id": 752}, "assignee": {"id": 804}}, "task": {"id": 303, "owner": {"id": 966}, "assignee": {"id": 1022}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 351, "assignee": {"id": 572}, "organization": {"id": 187}, "project": {"id": 392, "owner": {"id": 784}, "assignee": {"id": 818}}, "task": {"id": 354, "owner": {"id": 972}, "assignee": {"id": 1002}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 319, "assignee": {"id": 507}, "organization": {"id": 672}, "project": {"id": 356, "owner": {"id": 747}, "assignee": {"id": 843}}, "task": {"id": 386, "owner": {"id": 902}, "assignee": {"id": 1051}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 377, "assignee": {"id": 504}, "organization": {"id": 113}, "project": {"id": 382, "owner": {"id": 759}, "assignee": {"id": 803}}, "task": {"id": 392, "owner": {"id": 908}, "assignee": {"id": 1043}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 304, "assignee": {"id": 507}, "organization": {"id": 626}, "project": {"id": 374, "owner": {"id": 726}, "assignee": {"id": 832}}, "task": {"id": 339, "owner": {"id": 978}, "assignee": {"id": 1004}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 360, "assignee": {"id": 520}, "organization": {"id": 187}, "project": {"id": 348, "owner": {"id": 723}, "assignee": {"id": 893}}, "task": {"id": 309, "owner": {"id": 970}, "assignee": {"id": 1083}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"id": 396, "assignee": {"id": 587}, "organization": {"id": 629}, "project": {"id": 375, "owner": {"id": 794}, "assignee": {"id": 881}}, "task": {"id": 309, "owner": {"id": 994}, "assignee": {"id": 1076}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "update:stage", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "assignee": {"id": 578}, "organization": {"id": 120}, "project": {"id": 314, "owner": {"id": 700}, "assignee": {"id": 843}}, "task": {"id": 328, "owner": {"id": 903}, "assignee": {"id": 1061}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "assignee": {"id": 505}, "organization": {"id": 607}, "project": {"id": 371, "owner": {"id": 716}, "assignee": {"id": 818}}, "task": {"id": 365, "owner": {"id": 929}, "assignee": {"id": 1083}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "assignee": {"id": 523}, "organization": {"id": 162}, "project": {"id": 399, "owner": {"id": 706}, "assignee": {"id": 840}}, "task": {"id": 336, "owner": {"id": 979}, "assignee": {"id": 1071}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 19, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 369, "assignee": {"id": 568}, "organization": {"id": 656}, "project": {"id": 321, "owner": {"id": 770}, "assignee": {"id": 818}}, "task": {"id": 307, "owner": {"id": 951}, "assignee": {"id": 1024}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 384, "assignee": {"id": 566}, "organization": {"id": 170}, "project": {"id": 395, "owner": {"id": 795}, "assignee": {"id": 803}}, "task": {"id": 310, "owner": {"id": 921}, "assignee": {"id": 1053}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 337, "assignee": {"id": 533}, "organization": {"id": 653}, "project": {"id": 390, "owner": {"id": 753}, "assignee": {"id": 846}}, "task": {"id": 364, "owner": {"id": 974}, "assignee": {"id": 1041}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 362, "assignee": {"id": 552}, "organization": {"id": 156}, "project": {"id": 372, "owner": {"id": 753}, "assignee": {"id": 888}}, "task": {"id": 302, "owner": {"id": 982}, "assignee": {"id": 1054}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 388, "assignee": {"id": 580}, "organization": {"id": 632}, "project": {"id": 343, "owner": {"id": 722}, "assignee": {"id": 846}}, "task": {"id": 359, "owner": {"id": 927}, "assignee": {"id": 1057}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 332, "assignee": {"id": 560}, "organization": {"id": 189}, "project": {"id": 370, "owner": {"id": 768}, "assignee": {"id": 833}}, "task": {"id": 301, "owner": {"id": 956}, "assignee": {"id": 1000}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 334, "assignee": {"id": 553}, "organization": {"id": 640}, "project": {"id": 361, "owner": {"id": 759}, "assignee": {"id": 858}}, "task": {"id": 399, "owner": {"id": 906}, "assignee": {"id": 1055}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "assignee": {"id": 564}, "organization": {"id": 107}, "project": {"id": 358, "owner": {"id": 719}, "assignee": {"id": 869}}, "task": {"id": 339, "owner": {"id": 919}, "assignee": {"id": 1051}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "assignee": {"id": 565}, "organization": {"id": 618}, "project": {"id": 351, "owner": {"id": 787}, "assignee": {"id": 892}}, "task": {"id": 309, "owner": {"id": 990}, "assignee": {"id": 1082}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "assignee": {"id": 556}, "organization": {"id": 154}, "project": {"id": 300, "owner": {"id": 743}, "assignee": {"id": 825}}, "task": {"id": 363, "owner": {"id": 909}, "assignee": {"id": 1082}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "assignee": {"id": 549}, "organization": {"id": 693}, "project": {"id": 391, "owner": {"id": 750}, "assignee": {"id": 869}}, "task": {"id": 365, "owner": {"id": 901}, "assignee": {"id": 1025}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 351, "assignee": {"id": 548}, "organization": {"id": 174}, "project": {"id": 360, "owner": {"id": 773}, "assignee": {"id": 847}}, "task": {"id": 381, "owner": {"id": 908}, "assignee": {"id": 1018}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 324, "assignee": {"id": 515}, "organization": {"id": 622}, "project": {"id": 397, "owner": {"id": 797}, "assignee": {"id": 833}}, "task": {"id": 317, "owner": {"id": 971}, "assignee": {"id": 1087}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 386, "assignee": {"id": 587}, "organization": {"id": 178}, "project": {"id": 310, "owner": {"id": 751}, "assignee": {"id": 802}}, "task": {"id": 310, "owner": {"id": 973}, "assignee": {"id": 1077}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 387, "assignee": {"id": 533}, "organization": {"id": 671}, "project": {"id": 302, "owner": {"id": 766}, "assignee": {"id": 856}}, "task": {"id": 300, "owner": {"id": 989}, "assignee": {"id": 1015}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 365, "assignee": {"id": 599}, "organization": {"id": 161}, "project": {"id": 387, "owner": {"id": 751}, "assignee": {"id": 862}}, "task": {"id": 313, "owner": {"id": 946}, "assignee": {"id": 1021}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 383, "assignee": {"id": 513}, "organization": {"id": 692}, "project": {"id": 307, "owner": {"id": 760}, "assignee": {"id": 836}}, "task": {"id": 307, "owner": {"id": 936}, "assignee": {"id": 1028}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "assignee": {"id": 547}, "organization": {"id": 137}, "project": {"id": 356, "owner": {"id": 776}, "assignee": {"id": 848}}, "task": {"id": 357, "owner": {"id": 989}, "assignee": {"id": 1019}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "assignee": {"id": 585}, "organization": {"id": 606}, "project": {"id": 341, "owner": {"id": 708}, "assignee": {"id": 811}}, "task": {"id": 304, "owner": {"id": 973}, "assignee": {"id": 1000}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "assignee": {"id": 513}, "organization": {"id": 147}, "project": {"id": 371, "owner": {"id": 794}, "assignee": {"id": 846}}, "task": {"id": 303, "owner": {"id": 992}, "assignee": {"id": 1022}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "assignee": {"id": 544}, "organization": {"id": 685}, "project": {"id": 336, "owner": {"id": 772}, "assignee": {"id": 860}}, "task": {"id": 320, "owner": {"id": 987}, "assignee": {"id": 1097}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 387, "assignee": {"id": 579}, "organization": {"id": 146}, "project": {"id": 304, "owner": {"id": 710}, "assignee": {"id": 801}}, "task": {"id": 386, "owner": {"id": 922}, "assignee": {"id": 1079}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 377, "assignee": {"id": 560}, "organization": {"id": 634}, "project": {"id": 382, "owner": {"id": 758}, "assignee": {"id": 886}}, "task": {"id": 388, "owner": {"id": 983}, "assignee": {"id": 1084}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"id": 376, "assignee": {"id": 554}, "organization": {"id": 121}, "project": {"id": 376, "owner": {"id": 795}, "assignee": {"id": 857}}, "task": {"id": 395, "owner": {"id": 939}, "assignee": {"id": 1032}}}} -} - -test_scope_UPDATE_STAGE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "update:stage", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 319, "assignee": {"id": 549}, "organization": {"id": 684}, "project": {"id": 386, "owner": {"id": 787}, "assignee": {"id": 878}}, "task": {"id": 397, "owner": {"id": 994}, "assignee": {"id": 1033}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": null}, "resource": {"id": 321, "assignee": {"id": 536}, "organization": {"id": 694}, "project": {"id": 305, "owner": {"id": 42}, "assignee": {"id": 845}}, "task": {"id": 356, "owner": {"id": 932}, "assignee": {"id": 1033}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": null}, "resource": {"id": 373, "assignee": {"id": 566}, "organization": {"id": 661}, "project": {"id": 370, "owner": {"id": 97}, "assignee": {"id": 891}}, "task": {"id": 378, "owner": {"id": 918}, "assignee": {"id": 1008}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": null}, "resource": {"id": 389, "assignee": {"id": 558}, "organization": {"id": 642}, "project": {"id": 384, "owner": {"id": 48}, "assignee": {"id": 889}}, "task": {"id": 374, "owner": {"id": 926}, "assignee": {"id": 1032}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": null}, "resource": {"id": 301, "assignee": {"id": 562}, "organization": {"id": 669}, "project": {"id": 323, "owner": {"id": 50}, "assignee": {"id": 862}}, "task": {"id": 369, "owner": {"id": 997}, "assignee": {"id": 1006}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": null}, "resource": {"id": 348, "assignee": {"id": 566}, "organization": {"id": 655}, "project": {"id": 337, "owner": {"id": 49}, "assignee": {"id": 856}}, "task": {"id": 395, "owner": {"id": 961}, "assignee": {"id": 1069}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": null}, "resource": {"id": 357, "assignee": {"id": 502}, "organization": {"id": 639}, "project": {"id": 390, "owner": {"id": 720}, "assignee": {"id": 19}}, "task": {"id": 305, "owner": {"id": 997}, "assignee": {"id": 1093}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": null}, "resource": {"id": 320, "assignee": {"id": 553}, "organization": {"id": 635}, "project": {"id": 304, "owner": {"id": 762}, "assignee": {"id": 76}}, "task": {"id": 303, "owner": {"id": 981}, "assignee": {"id": 1071}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": null}, "resource": {"id": 303, "assignee": {"id": 543}, "organization": {"id": 641}, "project": {"id": 383, "owner": {"id": 730}, "assignee": {"id": 72}}, "task": {"id": 380, "owner": {"id": 949}, "assignee": {"id": 1017}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": null}, "resource": {"id": 394, "assignee": {"id": 536}, "organization": {"id": 636}, "project": {"id": 301, "owner": {"id": 794}, "assignee": {"id": 98}}, "task": {"id": 322, "owner": {"id": 974}, "assignee": {"id": 1025}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": null}, "resource": {"id": 379, "assignee": {"id": 511}, "organization": {"id": 689}, "project": {"id": 390, "owner": {"id": 726}, "assignee": {"id": 11}}, "task": {"id": 310, "owner": {"id": 928}, "assignee": {"id": 1005}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": null}, "resource": {"id": 397, "assignee": {"id": 531}, "organization": {"id": 634}, "project": {"id": 333, "owner": {"id": 775}, "assignee": {"id": 847}}, "task": {"id": 355, "owner": {"id": 9}, "assignee": {"id": 1063}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": null}, "resource": {"id": 313, "assignee": {"id": 595}, "organization": {"id": 687}, "project": {"id": 340, "owner": {"id": 766}, "assignee": {"id": 801}}, "task": {"id": 303, "owner": {"id": 8}, "assignee": {"id": 1063}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": null}, "resource": {"id": 330, "assignee": {"id": 568}, "organization": {"id": 602}, "project": {"id": 304, "owner": {"id": 733}, "assignee": {"id": 888}}, "task": {"id": 330, "owner": {"id": 56}, "assignee": {"id": 1032}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": null}, "resource": {"id": 390, "assignee": {"id": 580}, "organization": {"id": 634}, "project": {"id": 348, "owner": {"id": 744}, "assignee": {"id": 833}}, "task": {"id": 322, "owner": {"id": 64}, "assignee": {"id": 1050}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": null}, "resource": {"id": 304, "assignee": {"id": 569}, "organization": {"id": 614}, "project": {"id": 308, "owner": {"id": 724}, "assignee": {"id": 852}}, "task": {"id": 388, "owner": {"id": 99}, "assignee": {"id": 1096}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": null}, "resource": {"id": 327, "assignee": {"id": 570}, "organization": {"id": 629}, "project": {"id": 320, "owner": {"id": 754}, "assignee": {"id": 835}}, "task": {"id": 393, "owner": {"id": 965}, "assignee": {"id": 62}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": null}, "resource": {"id": 393, "assignee": {"id": 593}, "organization": {"id": 608}, "project": {"id": 367, "owner": {"id": 759}, "assignee": {"id": 804}}, "task": {"id": 386, "owner": {"id": 966}, "assignee": {"id": 35}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": null}, "resource": {"id": 351, "assignee": {"id": 561}, "organization": {"id": 673}, "project": {"id": 374, "owner": {"id": 707}, "assignee": {"id": 878}}, "task": {"id": 352, "owner": {"id": 985}, "assignee": {"id": 52}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": null}, "resource": {"id": 322, "assignee": {"id": 578}, "organization": {"id": 652}, "project": {"id": 344, "owner": {"id": 707}, "assignee": {"id": 860}}, "task": {"id": 336, "owner": {"id": 986}, "assignee": {"id": 43}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": null}, "resource": {"id": 347, "assignee": {"id": 515}, "organization": {"id": 616}, "project": {"id": 343, "owner": {"id": 790}, "assignee": {"id": 871}}, "task": {"id": 325, "owner": {"id": 961}, "assignee": {"id": 81}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": null}, "resource": {"id": 335, "assignee": {"id": 62}, "organization": {"id": 651}, "project": {"id": 381, "owner": {"id": 798}, "assignee": {"id": 810}}, "task": {"id": 316, "owner": {"id": 946}, "assignee": {"id": 1082}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": null}, "resource": {"id": 386, "assignee": {"id": 2}, "organization": {"id": 666}, "project": {"id": 327, "owner": {"id": 786}, "assignee": {"id": 827}}, "task": {"id": 310, "owner": {"id": 988}, "assignee": {"id": 1047}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": null}, "resource": {"id": 329, "assignee": {"id": 25}, "organization": {"id": 677}, "project": {"id": 332, "owner": {"id": 778}, "assignee": {"id": 843}}, "task": {"id": 376, "owner": {"id": 936}, "assignee": {"id": 1000}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": null}, "resource": {"id": 352, "assignee": {"id": 80}, "organization": {"id": 638}, "project": {"id": 396, "owner": {"id": 757}, "assignee": {"id": 899}}, "task": {"id": 398, "owner": {"id": 971}, "assignee": {"id": 1073}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": null}, "resource": {"id": 330, "assignee": {"id": 65}, "organization": {"id": 635}, "project": {"id": 331, "owner": {"id": 733}, "assignee": {"id": 845}}, "task": {"id": 305, "owner": {"id": 977}, "assignee": {"id": 1051}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": null}, "resource": {"id": 314, "assignee": {"id": 543}, "organization": {"id": 605}, "project": {"id": 396, "owner": {"id": 730}, "assignee": {"id": 893}}, "task": {"id": 373, "owner": {"id": 987}, "assignee": {"id": 1051}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": null}, "resource": {"id": 312, "assignee": {"id": 585}, "organization": {"id": 694}, "project": {"id": 375, "owner": {"id": 728}, "assignee": {"id": 873}}, "task": {"id": 352, "owner": {"id": 968}, "assignee": {"id": 1056}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": null}, "resource": {"id": 347, "assignee": {"id": 509}, "organization": {"id": 654}, "project": {"id": 340, "owner": {"id": 762}, "assignee": {"id": 886}}, "task": {"id": 311, "owner": {"id": 921}, "assignee": {"id": 1014}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": null}, "resource": {"id": 371, "assignee": {"id": 598}, "organization": {"id": 601}, "project": {"id": 332, "owner": {"id": 732}, "assignee": {"id": 895}}, "task": {"id": 352, "owner": {"id": 905}, "assignee": {"id": 1069}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": null}, "resource": {"id": 324, "assignee": {"id": 505}, "organization": {"id": 612}, "project": {"id": 350, "owner": {"id": 736}, "assignee": {"id": 863}}, "task": {"id": 317, "owner": {"id": 967}, "assignee": {"id": 1080}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 301, "assignee": {"id": 517}, "organization": {"id": 197}, "project": {"id": 349, "owner": {"id": 15}, "assignee": {"id": 877}}, "task": {"id": 357, "owner": {"id": 949}, "assignee": {"id": 1010}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 349, "assignee": {"id": 517}, "organization": {"id": 698}, "project": {"id": 392, "owner": {"id": 24}, "assignee": {"id": 851}}, "task": {"id": 355, "owner": {"id": 901}, "assignee": {"id": 1098}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "assignee": {"id": 516}, "organization": {"id": 183}, "project": {"id": 351, "owner": {"id": 61}, "assignee": {"id": 876}}, "task": {"id": 380, "owner": {"id": 986}, "assignee": {"id": 1052}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "assignee": {"id": 550}, "organization": {"id": 647}, "project": {"id": 348, "owner": {"id": 37}, "assignee": {"id": 863}}, "task": {"id": 395, "owner": {"id": 962}, "assignee": {"id": 1087}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "assignee": {"id": 546}, "organization": {"id": 135}, "project": {"id": 316, "owner": {"id": 18}, "assignee": {"id": 811}}, "task": {"id": 391, "owner": {"id": 918}, "assignee": {"id": 1041}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "assignee": {"id": 543}, "organization": {"id": 619}, "project": {"id": 343, "owner": {"id": 41}, "assignee": {"id": 849}}, "task": {"id": 304, "owner": {"id": 900}, "assignee": {"id": 1066}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 7, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 379, "assignee": {"id": 539}, "organization": {"id": 143}, "project": {"id": 349, "owner": {"id": 7}, "assignee": {"id": 857}}, "task": {"id": 323, "owner": {"id": 913}, "assignee": {"id": 1046}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 319, "assignee": {"id": 501}, "organization": {"id": 680}, "project": {"id": 346, "owner": {"id": 11}, "assignee": {"id": 829}}, "task": {"id": 342, "owner": {"id": 925}, "assignee": {"id": 1098}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 315, "assignee": {"id": 565}, "organization": {"id": 136}, "project": {"id": 347, "owner": {"id": 29}, "assignee": {"id": 802}}, "task": {"id": 342, "owner": {"id": 978}, "assignee": {"id": 1079}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 319, "assignee": {"id": 531}, "organization": {"id": 619}, "project": {"id": 316, "owner": {"id": 77}, "assignee": {"id": 891}}, "task": {"id": 391, "owner": {"id": 915}, "assignee": {"id": 1000}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 374, "assignee": {"id": 534}, "organization": {"id": 109}, "project": {"id": 395, "owner": {"id": 82}, "assignee": {"id": 892}}, "task": {"id": 313, "owner": {"id": 935}, "assignee": {"id": 1089}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 81, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 303, "assignee": {"id": 568}, "organization": {"id": 662}, "project": {"id": 365, "owner": {"id": 81}, "assignee": {"id": 833}}, "task": {"id": 388, "owner": {"id": 925}, "assignee": {"id": 1087}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "assignee": {"id": 597}, "organization": {"id": 114}, "project": {"id": 319, "owner": {"id": 12}, "assignee": {"id": 838}}, "task": {"id": 305, "owner": {"id": 996}, "assignee": {"id": 1019}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "assignee": {"id": 518}, "organization": {"id": 629}, "project": {"id": 311, "owner": {"id": 95}, "assignee": {"id": 862}}, "task": {"id": 379, "owner": {"id": 972}, "assignee": {"id": 1087}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "assignee": {"id": 513}, "organization": {"id": 120}, "project": {"id": 301, "owner": {"id": 39}, "assignee": {"id": 887}}, "task": {"id": 372, "owner": {"id": 949}, "assignee": {"id": 1019}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "assignee": {"id": 559}, "organization": {"id": 666}, "project": {"id": 398, "owner": {"id": 42}, "assignee": {"id": 896}}, "task": {"id": 355, "owner": {"id": 927}, "assignee": {"id": 1086}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 360, "assignee": {"id": 557}, "organization": {"id": 138}, "project": {"id": 399, "owner": {"id": 89}, "assignee": {"id": 816}}, "task": {"id": 353, "owner": {"id": 927}, "assignee": {"id": 1098}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 366, "assignee": {"id": 568}, "organization": {"id": 618}, "project": {"id": 325, "owner": {"id": 40}, "assignee": {"id": 896}}, "task": {"id": 363, "owner": {"id": 980}, "assignee": {"id": 1019}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 395, "assignee": {"id": 523}, "organization": {"id": 167}, "project": {"id": 381, "owner": {"id": 59}, "assignee": {"id": 825}}, "task": {"id": 341, "owner": {"id": 914}, "assignee": {"id": 1008}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 371, "assignee": {"id": 596}, "organization": {"id": 623}, "project": {"id": 370, "owner": {"id": 43}, "assignee": {"id": 842}}, "task": {"id": 305, "owner": {"id": 931}, "assignee": {"id": 1032}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 370, "assignee": {"id": 594}, "organization": {"id": 150}, "project": {"id": 323, "owner": {"id": 56}, "assignee": {"id": 860}}, "task": {"id": 320, "owner": {"id": 900}, "assignee": {"id": 1033}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 355, "assignee": {"id": 548}, "organization": {"id": 648}, "project": {"id": 390, "owner": {"id": 63}, "assignee": {"id": 868}}, "task": {"id": 316, "owner": {"id": 969}, "assignee": {"id": 1069}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "assignee": {"id": 589}, "organization": {"id": 160}, "project": {"id": 357, "owner": {"id": 80}, "assignee": {"id": 892}}, "task": {"id": 385, "owner": {"id": 916}, "assignee": {"id": 1007}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "assignee": {"id": 509}, "organization": {"id": 687}, "project": {"id": 327, "owner": {"id": 24}, "assignee": {"id": 849}}, "task": {"id": 371, "owner": {"id": 946}, "assignee": {"id": 1077}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "assignee": {"id": 596}, "organization": {"id": 161}, "project": {"id": 317, "owner": {"id": 4}, "assignee": {"id": 816}}, "task": {"id": 312, "owner": {"id": 984}, "assignee": {"id": 1083}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "assignee": {"id": 510}, "organization": {"id": 632}, "project": {"id": 333, "owner": {"id": 49}, "assignee": {"id": 800}}, "task": {"id": 381, "owner": {"id": 915}, "assignee": {"id": 1001}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 336, "assignee": {"id": 545}, "organization": {"id": 139}, "project": {"id": 375, "owner": {"id": 59}, "assignee": {"id": 848}}, "task": {"id": 339, "owner": {"id": 945}, "assignee": {"id": 1090}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 326, "assignee": {"id": 527}, "organization": {"id": 608}, "project": {"id": 376, "owner": {"id": 46}, "assignee": {"id": 861}}, "task": {"id": 312, "owner": {"id": 915}, "assignee": {"id": 1087}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"id": 331, "assignee": {"id": 535}, "organization": {"id": 111}, "project": {"id": 357, "owner": {"id": 3}, "assignee": {"id": 879}}, "task": {"id": 355, "owner": {"id": 978}, "assignee": {"id": 1059}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 396, "assignee": {"id": 505}, "organization": {"id": 695}, "project": {"id": 326, "owner": {"id": 76}, "assignee": {"id": 838}}, "task": {"id": 328, "owner": {"id": 937}, "assignee": {"id": 1038}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 346, "assignee": {"id": 594}, "organization": {"id": 108}, "project": {"id": 369, "owner": {"id": 80}, "assignee": {"id": 845}}, "task": {"id": 370, "owner": {"id": 991}, "assignee": {"id": 1052}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 367, "assignee": {"id": 567}, "organization": {"id": 664}, "project": {"id": 311, "owner": {"id": 16}, "assignee": {"id": 865}}, "task": {"id": 351, "owner": {"id": 906}, "assignee": {"id": 1090}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "assignee": {"id": 575}, "organization": {"id": 165}, "project": {"id": 363, "owner": {"id": 28}, "assignee": {"id": 832}}, "task": {"id": 327, "owner": {"id": 958}, "assignee": {"id": 1055}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "assignee": {"id": 536}, "organization": {"id": 674}, "project": {"id": 305, "owner": {"id": 23}, "assignee": {"id": 827}}, "task": {"id": 315, "owner": {"id": 920}, "assignee": {"id": 1021}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "assignee": {"id": 533}, "organization": {"id": 115}, "project": {"id": 305, "owner": {"id": 87}, "assignee": {"id": 801}}, "task": {"id": 337, "owner": {"id": 957}, "assignee": {"id": 1026}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "assignee": {"id": 594}, "organization": {"id": 667}, "project": {"id": 327, "owner": {"id": 60}, "assignee": {"id": 871}}, "task": {"id": 359, "owner": {"id": 939}, "assignee": {"id": 1058}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 332, "assignee": {"id": 500}, "organization": {"id": 151}, "project": {"id": 302, "owner": {"id": 45}, "assignee": {"id": 851}}, "task": {"id": 349, "owner": {"id": 952}, "assignee": {"id": 1097}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 300, "assignee": {"id": 586}, "organization": {"id": 657}, "project": {"id": 348, "owner": {"id": 15}, "assignee": {"id": 817}}, "task": {"id": 320, "owner": {"id": 970}, "assignee": {"id": 1019}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 382, "assignee": {"id": 568}, "organization": {"id": 161}, "project": {"id": 315, "owner": {"id": 21}, "assignee": {"id": 827}}, "task": {"id": 364, "owner": {"id": 953}, "assignee": {"id": 1068}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 333, "assignee": {"id": 597}, "organization": {"id": 656}, "project": {"id": 317, "owner": {"id": 26}, "assignee": {"id": 833}}, "task": {"id": 390, "owner": {"id": 927}, "assignee": {"id": 1076}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 338, "assignee": {"id": 592}, "organization": {"id": 197}, "project": {"id": 346, "owner": {"id": 84}, "assignee": {"id": 875}}, "task": {"id": 355, "owner": {"id": 972}, "assignee": {"id": 1021}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 351, "assignee": {"id": 551}, "organization": {"id": 684}, "project": {"id": 350, "owner": {"id": 12}, "assignee": {"id": 834}}, "task": {"id": 369, "owner": {"id": 945}, "assignee": {"id": 1029}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "assignee": {"id": 583}, "organization": {"id": 111}, "project": {"id": 326, "owner": {"id": 71}, "assignee": {"id": 866}}, "task": {"id": 393, "owner": {"id": 935}, "assignee": {"id": 1074}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "assignee": {"id": 584}, "organization": {"id": 639}, "project": {"id": 355, "owner": {"id": 15}, "assignee": {"id": 812}}, "task": {"id": 319, "owner": {"id": 933}, "assignee": {"id": 1023}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "assignee": {"id": 530}, "organization": {"id": 139}, "project": {"id": 371, "owner": {"id": 2}, "assignee": {"id": 811}}, "task": {"id": 360, "owner": {"id": 996}, "assignee": {"id": 1090}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 390, "assignee": {"id": 592}, "organization": {"id": 628}, "project": {"id": 348, "owner": {"id": 88}, "assignee": {"id": 880}}, "task": {"id": 367, "owner": {"id": 912}, "assignee": {"id": 1010}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 343, "assignee": {"id": 574}, "organization": {"id": 133}, "project": {"id": 346, "owner": {"id": 73}, "assignee": {"id": 870}}, "task": {"id": 380, "owner": {"id": 990}, "assignee": {"id": 1047}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 309, "assignee": {"id": 579}, "organization": {"id": 631}, "project": {"id": 363, "owner": {"id": 97}, "assignee": {"id": 896}}, "task": {"id": 325, "owner": {"id": 913}, "assignee": {"id": 1026}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 388, "assignee": {"id": 550}, "organization": {"id": 166}, "project": {"id": 373, "owner": {"id": 54}, "assignee": {"id": 822}}, "task": {"id": 362, "owner": {"id": 951}, "assignee": {"id": 1059}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 360, "assignee": {"id": 562}, "organization": {"id": 646}, "project": {"id": 372, "owner": {"id": 26}, "assignee": {"id": 846}}, "task": {"id": 371, "owner": {"id": 954}, "assignee": {"id": 1009}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 311, "assignee": {"id": 562}, "organization": {"id": 103}, "project": {"id": 376, "owner": {"id": 709}, "assignee": {"id": 71}}, "task": {"id": 344, "owner": {"id": 928}, "assignee": {"id": 1099}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 383, "assignee": {"id": 569}, "organization": {"id": 638}, "project": {"id": 322, "owner": {"id": 755}, "assignee": {"id": 77}}, "task": {"id": 316, "owner": {"id": 924}, "assignee": {"id": 1025}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "assignee": {"id": 562}, "organization": {"id": 128}, "project": {"id": 314, "owner": {"id": 746}, "assignee": {"id": 10}}, "task": {"id": 304, "owner": {"id": 912}, "assignee": {"id": 1009}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "assignee": {"id": 542}, "organization": {"id": 639}, "project": {"id": 367, "owner": {"id": 700}, "assignee": {"id": 25}}, "task": {"id": 336, "owner": {"id": 923}, "assignee": {"id": 1095}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "assignee": {"id": 579}, "organization": {"id": 100}, "project": {"id": 397, "owner": {"id": 709}, "assignee": {"id": 11}}, "task": {"id": 374, "owner": {"id": 977}, "assignee": {"id": 1001}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "assignee": {"id": 550}, "organization": {"id": 612}, "project": {"id": 349, "owner": {"id": 799}, "assignee": {"id": 2}}, "task": {"id": 358, "owner": {"id": 990}, "assignee": {"id": 1077}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 384, "assignee": {"id": 577}, "organization": {"id": 148}, "project": {"id": 311, "owner": {"id": 743}, "assignee": {"id": 3}}, "task": {"id": 328, "owner": {"id": 967}, "assignee": {"id": 1084}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 378, "assignee": {"id": 573}, "organization": {"id": 648}, "project": {"id": 359, "owner": {"id": 785}, "assignee": {"id": 4}}, "task": {"id": 349, "owner": {"id": 957}, "assignee": {"id": 1023}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 350, "assignee": {"id": 515}, "organization": {"id": 128}, "project": {"id": 323, "owner": {"id": 797}, "assignee": {"id": 39}}, "task": {"id": 358, "owner": {"id": 923}, "assignee": {"id": 1055}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"id": 322, "assignee": {"id": 507}, "organization": {"id": 646}, "project": {"id": 365, "owner": {"id": 749}, "assignee": {"id": 34}}, "task": {"id": 372, "owner": {"id": 956}, "assignee": {"id": 1020}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 360, "assignee": {"id": 513}, "organization": {"id": 125}, "project": {"id": 396, "owner": {"id": 782}, "assignee": {"id": 79}}, "task": {"id": 346, "owner": {"id": 987}, "assignee": {"id": 1056}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 398, "assignee": {"id": 562}, "organization": {"id": 659}, "project": {"id": 300, "owner": {"id": 715}, "assignee": {"id": 86}}, "task": {"id": 387, "owner": {"id": 942}, "assignee": {"id": 1039}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "assignee": {"id": 586}, "organization": {"id": 154}, "project": {"id": 326, "owner": {"id": 780}, "assignee": {"id": 75}}, "task": {"id": 393, "owner": {"id": 952}, "assignee": {"id": 1000}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "assignee": {"id": 552}, "organization": {"id": 665}, "project": {"id": 370, "owner": {"id": 788}, "assignee": {"id": 53}}, "task": {"id": 382, "owner": {"id": 987}, "assignee": {"id": 1070}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "assignee": {"id": 596}, "organization": {"id": 148}, "project": {"id": 343, "owner": {"id": 786}, "assignee": {"id": 64}}, "task": {"id": 360, "owner": {"id": 925}, "assignee": {"id": 1044}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "assignee": {"id": 537}, "organization": {"id": 627}, "project": {"id": 389, "owner": {"id": 724}, "assignee": {"id": 6}}, "task": {"id": 335, "owner": {"id": 934}, "assignee": {"id": 1063}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 325, "assignee": {"id": 519}, "organization": {"id": 150}, "project": {"id": 350, "owner": {"id": 763}, "assignee": {"id": 76}}, "task": {"id": 354, "owner": {"id": 997}, "assignee": {"id": 1044}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 394, "assignee": {"id": 542}, "organization": {"id": 666}, "project": {"id": 356, "owner": {"id": 783}, "assignee": {"id": 33}}, "task": {"id": 349, "owner": {"id": 949}, "assignee": {"id": 1079}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 333, "assignee": {"id": 556}, "organization": {"id": 156}, "project": {"id": 310, "owner": {"id": 744}, "assignee": {"id": 35}}, "task": {"id": 380, "owner": {"id": 994}, "assignee": {"id": 1030}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"id": 340, "assignee": {"id": 582}, "organization": {"id": 604}, "project": {"id": 391, "owner": {"id": 781}, "assignee": {"id": 46}}, "task": {"id": 332, "owner": {"id": 903}, "assignee": {"id": 1099}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 363, "assignee": {"id": 521}, "organization": {"id": 167}, "project": {"id": 382, "owner": {"id": 700}, "assignee": {"id": 95}}, "task": {"id": 392, "owner": {"id": 934}, "assignee": {"id": 1086}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 350, "assignee": {"id": 540}, "organization": {"id": 629}, "project": {"id": 382, "owner": {"id": 779}, "assignee": {"id": 56}}, "task": {"id": 342, "owner": {"id": 903}, "assignee": {"id": 1030}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "assignee": {"id": 504}, "organization": {"id": 125}, "project": {"id": 361, "owner": {"id": 767}, "assignee": {"id": 27}}, "task": {"id": 347, "owner": {"id": 929}, "assignee": {"id": 1068}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "assignee": {"id": 547}, "organization": {"id": 651}, "project": {"id": 374, "owner": {"id": 724}, "assignee": {"id": 31}}, "task": {"id": 392, "owner": {"id": 977}, "assignee": {"id": 1015}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 348, "assignee": {"id": 538}, "organization": {"id": 128}, "project": {"id": 367, "owner": {"id": 705}, "assignee": {"id": 60}}, "task": {"id": 335, "owner": {"id": 999}, "assignee": {"id": 1003}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "assignee": {"id": 507}, "organization": {"id": 635}, "project": {"id": 311, "owner": {"id": 745}, "assignee": {"id": 22}}, "task": {"id": 392, "owner": {"id": 949}, "assignee": {"id": 1027}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 303, "assignee": {"id": 540}, "organization": {"id": 168}, "project": {"id": 305, "owner": {"id": 794}, "assignee": {"id": 29}}, "task": {"id": 352, "owner": {"id": 946}, "assignee": {"id": 1066}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 380, "assignee": {"id": 574}, "organization": {"id": 655}, "project": {"id": 326, "owner": {"id": 725}, "assignee": {"id": 82}}, "task": {"id": 350, "owner": {"id": 959}, "assignee": {"id": 1035}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"id": 388, "assignee": {"id": 550}, "organization": {"id": 173}, "project": {"id": 395, "owner": {"id": 704}, "assignee": {"id": 25}}, "task": {"id": 327, "owner": {"id": 917}, "assignee": {"id": 1062}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 360, "assignee": {"id": 533}, "organization": {"id": 614}, "project": {"id": 342, "owner": {"id": 776}, "assignee": {"id": 73}}, "task": {"id": 306, "owner": {"id": 990}, "assignee": {"id": 1097}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 306, "assignee": {"id": 511}, "organization": {"id": 114}, "project": {"id": 322, "owner": {"id": 780}, "assignee": {"id": 68}}, "task": {"id": 355, "owner": {"id": 905}, "assignee": {"id": 1061}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 376, "assignee": {"id": 541}, "organization": {"id": 614}, "project": {"id": 350, "owner": {"id": 738}, "assignee": {"id": 60}}, "task": {"id": 333, "owner": {"id": 975}, "assignee": {"id": 1059}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "assignee": {"id": 525}, "organization": {"id": 127}, "project": {"id": 325, "owner": {"id": 730}, "assignee": {"id": 32}}, "task": {"id": 354, "owner": {"id": 911}, "assignee": {"id": 1033}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "assignee": {"id": 583}, "organization": {"id": 647}, "project": {"id": 334, "owner": {"id": 790}, "assignee": {"id": 43}}, "task": {"id": 367, "owner": {"id": 975}, "assignee": {"id": 1026}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "assignee": {"id": 596}, "organization": {"id": 159}, "project": {"id": 382, "owner": {"id": 787}, "assignee": {"id": 97}}, "task": {"id": 352, "owner": {"id": 904}, "assignee": {"id": 1023}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "assignee": {"id": 551}, "organization": {"id": 667}, "project": {"id": 360, "owner": {"id": 742}, "assignee": {"id": 61}}, "task": {"id": 396, "owner": {"id": 960}, "assignee": {"id": 1007}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 389, "assignee": {"id": 569}, "organization": {"id": 112}, "project": {"id": 315, "owner": {"id": 720}, "assignee": {"id": 51}}, "task": {"id": 323, "owner": {"id": 930}, "assignee": {"id": 1092}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 372, "assignee": {"id": 514}, "organization": {"id": 616}, "project": {"id": 324, "owner": {"id": 762}, "assignee": {"id": 82}}, "task": {"id": 332, "owner": {"id": 946}, "assignee": {"id": 1076}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 338, "assignee": {"id": 586}, "organization": {"id": 157}, "project": {"id": 389, "owner": {"id": 794}, "assignee": {"id": 64}}, "task": {"id": 331, "owner": {"id": 963}, "assignee": {"id": 1052}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 342, "assignee": {"id": 588}, "organization": {"id": 664}, "project": {"id": 399, "owner": {"id": 701}, "assignee": {"id": 5}}, "task": {"id": 374, "owner": {"id": 908}, "assignee": {"id": 1097}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 351, "assignee": {"id": 582}, "organization": {"id": 158}, "project": {"id": 315, "owner": {"id": 703}, "assignee": {"id": 4}}, "task": {"id": 334, "owner": {"id": 905}, "assignee": {"id": 1063}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 326, "assignee": {"id": 597}, "organization": {"id": 668}, "project": {"id": 387, "owner": {"id": 782}, "assignee": {"id": 34}}, "task": {"id": 356, "owner": {"id": 967}, "assignee": {"id": 1093}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 301, "assignee": {"id": 529}, "organization": {"id": 184}, "project": {"id": 366, "owner": {"id": 798}, "assignee": {"id": 42}}, "task": {"id": 359, "owner": {"id": 927}, "assignee": {"id": 1055}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "assignee": {"id": 586}, "organization": {"id": 600}, "project": {"id": 337, "owner": {"id": 733}, "assignee": {"id": 65}}, "task": {"id": 316, "owner": {"id": 961}, "assignee": {"id": 1023}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "assignee": {"id": 524}, "organization": {"id": 131}, "project": {"id": 357, "owner": {"id": 770}, "assignee": {"id": 32}}, "task": {"id": 331, "owner": {"id": 984}, "assignee": {"id": 1049}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "assignee": {"id": 554}, "organization": {"id": 663}, "project": {"id": 395, "owner": {"id": 766}, "assignee": {"id": 34}}, "task": {"id": 395, "owner": {"id": 979}, "assignee": {"id": 1064}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 305, "assignee": {"id": 570}, "organization": {"id": 125}, "project": {"id": 384, "owner": {"id": 773}, "assignee": {"id": 3}}, "task": {"id": 395, "owner": {"id": 975}, "assignee": {"id": 1027}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 19, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 380, "assignee": {"id": 504}, "organization": {"id": 659}, "project": {"id": 380, "owner": {"id": 747}, "assignee": {"id": 19}}, "task": {"id": 300, "owner": {"id": 991}, "assignee": {"id": 1043}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 379, "assignee": {"id": 599}, "organization": {"id": 116}, "project": {"id": 315, "owner": {"id": 795}, "assignee": {"id": 4}}, "task": {"id": 320, "owner": {"id": 926}, "assignee": {"id": 1083}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 376, "assignee": {"id": 584}, "organization": {"id": 679}, "project": {"id": 351, "owner": {"id": 748}, "assignee": {"id": 21}}, "task": {"id": 328, "owner": {"id": 902}, "assignee": {"id": 1076}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 351, "assignee": {"id": 545}, "organization": {"id": 115}, "project": {"id": 300, "owner": {"id": 731}, "assignee": {"id": 803}}, "task": {"id": 356, "owner": {"id": 75}, "assignee": {"id": 1082}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 335, "assignee": {"id": 507}, "organization": {"id": 623}, "project": {"id": 387, "owner": {"id": 759}, "assignee": {"id": 826}}, "task": {"id": 320, "owner": {"id": 18}, "assignee": {"id": 1015}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "assignee": {"id": 527}, "organization": {"id": 110}, "project": {"id": 371, "owner": {"id": 741}, "assignee": {"id": 800}}, "task": {"id": 302, "owner": {"id": 25}, "assignee": {"id": 1016}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 7, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "assignee": {"id": 517}, "organization": {"id": 689}, "project": {"id": 304, "owner": {"id": 797}, "assignee": {"id": 888}}, "task": {"id": 349, "owner": {"id": 7}, "assignee": {"id": 1016}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 36, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "assignee": {"id": 588}, "organization": {"id": 190}, "project": {"id": 372, "owner": {"id": 730}, "assignee": {"id": 807}}, "task": {"id": 344, "owner": {"id": 36}, "assignee": {"id": 1067}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "assignee": {"id": 566}, "organization": {"id": 645}, "project": {"id": 356, "owner": {"id": 796}, "assignee": {"id": 862}}, "task": {"id": 376, "owner": {"id": 75}, "assignee": {"id": 1026}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 319, "assignee": {"id": 534}, "organization": {"id": 147}, "project": {"id": 342, "owner": {"id": 781}, "assignee": {"id": 887}}, "task": {"id": 341, "owner": {"id": 13}, "assignee": {"id": 1067}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 368, "assignee": {"id": 520}, "organization": {"id": 662}, "project": {"id": 318, "owner": {"id": 786}, "assignee": {"id": 824}}, "task": {"id": 397, "owner": {"id": 55}, "assignee": {"id": 1017}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 375, "assignee": {"id": 545}, "organization": {"id": 187}, "project": {"id": 364, "owner": {"id": 743}, "assignee": {"id": 823}}, "task": {"id": 346, "owner": {"id": 59}, "assignee": {"id": 1082}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 399, "assignee": {"id": 567}, "organization": {"id": 667}, "project": {"id": 384, "owner": {"id": 792}, "assignee": {"id": 810}}, "task": {"id": 343, "owner": {"id": 5}, "assignee": {"id": 1075}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 365, "assignee": {"id": 515}, "organization": {"id": 194}, "project": {"id": 354, "owner": {"id": 793}, "assignee": {"id": 893}}, "task": {"id": 379, "owner": {"id": 33}, "assignee": {"id": 1038}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 358, "assignee": {"id": 549}, "organization": {"id": 613}, "project": {"id": 386, "owner": {"id": 743}, "assignee": {"id": 801}}, "task": {"id": 390, "owner": {"id": 65}, "assignee": {"id": 1037}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "assignee": {"id": 594}, "organization": {"id": 183}, "project": {"id": 391, "owner": {"id": 741}, "assignee": {"id": 894}}, "task": {"id": 303, "owner": {"id": 17}, "assignee": {"id": 1073}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "assignee": {"id": 552}, "organization": {"id": 691}, "project": {"id": 337, "owner": {"id": 705}, "assignee": {"id": 830}}, "task": {"id": 342, "owner": {"id": 52}, "assignee": {"id": 1056}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "assignee": {"id": 545}, "organization": {"id": 109}, "project": {"id": 389, "owner": {"id": 799}, "assignee": {"id": 826}}, "task": {"id": 347, "owner": {"id": 65}, "assignee": {"id": 1065}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "assignee": {"id": 596}, "organization": {"id": 691}, "project": {"id": 317, "owner": {"id": 784}, "assignee": {"id": 819}}, "task": {"id": 357, "owner": {"id": 42}, "assignee": {"id": 1099}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 398, "assignee": {"id": 557}, "organization": {"id": 136}, "project": {"id": 363, "owner": {"id": 763}, "assignee": {"id": 834}}, "task": {"id": 347, "owner": {"id": 47}, "assignee": {"id": 1023}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 31, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 315, "assignee": {"id": 516}, "organization": {"id": 627}, "project": {"id": 365, "owner": {"id": 757}, "assignee": {"id": 818}}, "task": {"id": 336, "owner": {"id": 31}, "assignee": {"id": 1075}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 360, "assignee": {"id": 578}, "organization": {"id": 176}, "project": {"id": 302, "owner": {"id": 763}, "assignee": {"id": 807}}, "task": {"id": 390, "owner": {"id": 46}, "assignee": {"id": 1042}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 370, "assignee": {"id": 539}, "organization": {"id": 672}, "project": {"id": 388, "owner": {"id": 794}, "assignee": {"id": 853}}, "task": {"id": 359, "owner": {"id": 13}, "assignee": {"id": 1092}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 19, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 316, "assignee": {"id": 525}, "organization": {"id": 142}, "project": {"id": 372, "owner": {"id": 743}, "assignee": {"id": 853}}, "task": {"id": 384, "owner": {"id": 19}, "assignee": {"id": 1015}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 375, "assignee": {"id": 528}, "organization": {"id": 643}, "project": {"id": 303, "owner": {"id": 721}, "assignee": {"id": 899}}, "task": {"id": 357, "owner": {"id": 33}, "assignee": {"id": 1057}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "assignee": {"id": 548}, "organization": {"id": 161}, "project": {"id": 315, "owner": {"id": 719}, "assignee": {"id": 899}}, "task": {"id": 319, "owner": {"id": 86}, "assignee": {"id": 1018}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "assignee": {"id": 525}, "organization": {"id": 608}, "project": {"id": 336, "owner": {"id": 747}, "assignee": {"id": 814}}, "task": {"id": 388, "owner": {"id": 35}, "assignee": {"id": 1025}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "assignee": {"id": 506}, "organization": {"id": 145}, "project": {"id": 343, "owner": {"id": 736}, "assignee": {"id": 846}}, "task": {"id": 343, "owner": {"id": 37}, "assignee": {"id": 1030}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "assignee": {"id": 543}, "organization": {"id": 646}, "project": {"id": 355, "owner": {"id": 723}, "assignee": {"id": 815}}, "task": {"id": 354, "owner": {"id": 27}, "assignee": {"id": 1084}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 384, "assignee": {"id": 561}, "organization": {"id": 145}, "project": {"id": 397, "owner": {"id": 753}, "assignee": {"id": 853}}, "task": {"id": 365, "owner": {"id": 78}, "assignee": {"id": 1071}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 300, "assignee": {"id": 538}, "organization": {"id": 695}, "project": {"id": 374, "owner": {"id": 711}, "assignee": {"id": 803}}, "task": {"id": 364, "owner": {"id": 91}, "assignee": {"id": 1097}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"id": 325, "assignee": {"id": 510}, "organization": {"id": 198}, "project": {"id": 311, "owner": {"id": 747}, "assignee": {"id": 842}}, "task": {"id": 387, "owner": {"id": 41}, "assignee": {"id": 1071}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 71, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 311, "assignee": {"id": 580}, "organization": {"id": 691}, "project": {"id": 374, "owner": {"id": 758}, "assignee": {"id": 874}}, "task": {"id": 329, "owner": {"id": 71}, "assignee": {"id": 1050}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 67, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 399, "assignee": {"id": 578}, "organization": {"id": 173}, "project": {"id": 331, "owner": {"id": 708}, "assignee": {"id": 885}}, "task": {"id": 387, "owner": {"id": 67}, "assignee": {"id": 1004}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 364, "assignee": {"id": 569}, "organization": {"id": 644}, "project": {"id": 382, "owner": {"id": 786}, "assignee": {"id": 803}}, "task": {"id": 311, "owner": {"id": 47}, "assignee": {"id": 1047}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "assignee": {"id": 576}, "organization": {"id": 151}, "project": {"id": 311, "owner": {"id": 713}, "assignee": {"id": 847}}, "task": {"id": 326, "owner": {"id": 20}, "assignee": {"id": 1005}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "assignee": {"id": 504}, "organization": {"id": 678}, "project": {"id": 390, "owner": {"id": 724}, "assignee": {"id": 887}}, "task": {"id": 386, "owner": {"id": 90}, "assignee": {"id": 1030}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "assignee": {"id": 531}, "organization": {"id": 169}, "project": {"id": 375, "owner": {"id": 705}, "assignee": {"id": 823}}, "task": {"id": 300, "owner": {"id": 30}, "assignee": {"id": 1085}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "assignee": {"id": 557}, "organization": {"id": 666}, "project": {"id": 321, "owner": {"id": 783}, "assignee": {"id": 808}}, "task": {"id": 371, "owner": {"id": 27}, "assignee": {"id": 1078}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 336, "assignee": {"id": 557}, "organization": {"id": 151}, "project": {"id": 312, "owner": {"id": 796}, "assignee": {"id": 896}}, "task": {"id": 352, "owner": {"id": 55}, "assignee": {"id": 1057}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 395, "assignee": {"id": 534}, "organization": {"id": 617}, "project": {"id": 394, "owner": {"id": 701}, "assignee": {"id": 869}}, "task": {"id": 329, "owner": {"id": 89}, "assignee": {"id": 1065}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 337, "assignee": {"id": 523}, "organization": {"id": 193}, "project": {"id": 398, "owner": {"id": 751}, "assignee": {"id": 855}}, "task": {"id": 337, "owner": {"id": 19}, "assignee": {"id": 1035}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 339, "assignee": {"id": 535}, "organization": {"id": 603}, "project": {"id": 332, "owner": {"id": 759}, "assignee": {"id": 882}}, "task": {"id": 371, "owner": {"id": 87}, "assignee": {"id": 1098}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 397, "assignee": {"id": 563}, "organization": {"id": 166}, "project": {"id": 355, "owner": {"id": 752}, "assignee": {"id": 830}}, "task": {"id": 356, "owner": {"id": 41}, "assignee": {"id": 1083}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 387, "assignee": {"id": 588}, "organization": {"id": 670}, "project": {"id": 360, "owner": {"id": 756}, "assignee": {"id": 838}}, "task": {"id": 334, "owner": {"id": 21}, "assignee": {"id": 1072}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "assignee": {"id": 557}, "organization": {"id": 178}, "project": {"id": 311, "owner": {"id": 739}, "assignee": {"id": 832}}, "task": {"id": 349, "owner": {"id": 72}, "assignee": {"id": 1027}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "assignee": {"id": 531}, "organization": {"id": 611}, "project": {"id": 341, "owner": {"id": 742}, "assignee": {"id": 855}}, "task": {"id": 351, "owner": {"id": 18}, "assignee": {"id": 1083}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "assignee": {"id": 501}, "organization": {"id": 148}, "project": {"id": 380, "owner": {"id": 748}, "assignee": {"id": 874}}, "task": {"id": 397, "owner": {"id": 72}, "assignee": {"id": 1071}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "assignee": {"id": 575}, "organization": {"id": 649}, "project": {"id": 349, "owner": {"id": 753}, "assignee": {"id": 885}}, "task": {"id": 366, "owner": {"id": 84}, "assignee": {"id": 1015}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 317, "assignee": {"id": 573}, "organization": {"id": 134}, "project": {"id": 331, "owner": {"id": 785}, "assignee": {"id": 898}}, "task": {"id": 383, "owner": {"id": 17}, "assignee": {"id": 1082}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 371, "assignee": {"id": 562}, "organization": {"id": 617}, "project": {"id": 323, "owner": {"id": 706}, "assignee": {"id": 828}}, "task": {"id": 359, "owner": {"id": 62}, "assignee": {"id": 1029}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 399, "assignee": {"id": 534}, "organization": {"id": 162}, "project": {"id": 349, "owner": {"id": 786}, "assignee": {"id": 891}}, "task": {"id": 308, "owner": {"id": 52}, "assignee": {"id": 1065}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 390, "assignee": {"id": 566}, "organization": {"id": 641}, "project": {"id": 363, "owner": {"id": 764}, "assignee": {"id": 831}}, "task": {"id": 306, "owner": {"id": 41}, "assignee": {"id": 1042}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 387, "assignee": {"id": 541}, "organization": {"id": 158}, "project": {"id": 399, "owner": {"id": 757}, "assignee": {"id": 884}}, "task": {"id": 351, "owner": {"id": 983}, "assignee": {"id": 47}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 349, "assignee": {"id": 571}, "organization": {"id": 686}, "project": {"id": 300, "owner": {"id": 706}, "assignee": {"id": 845}}, "task": {"id": 343, "owner": {"id": 908}, "assignee": {"id": 16}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "assignee": {"id": 561}, "organization": {"id": 153}, "project": {"id": 354, "owner": {"id": 733}, "assignee": {"id": 881}}, "task": {"id": 332, "owner": {"id": 977}, "assignee": {"id": 27}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 321, "assignee": {"id": 559}, "organization": {"id": 604}, "project": {"id": 347, "owner": {"id": 752}, "assignee": {"id": 813}}, "task": {"id": 332, "owner": {"id": 955}, "assignee": {"id": 24}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "assignee": {"id": 505}, "organization": {"id": 132}, "project": {"id": 337, "owner": {"id": 719}, "assignee": {"id": 811}}, "task": {"id": 387, "owner": {"id": 965}, "assignee": {"id": 56}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "assignee": {"id": 512}, "organization": {"id": 647}, "project": {"id": 317, "owner": {"id": 706}, "assignee": {"id": 831}}, "task": {"id": 341, "owner": {"id": 910}, "assignee": {"id": 73}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 367, "assignee": {"id": 544}, "organization": {"id": 130}, "project": {"id": 384, "owner": {"id": 702}, "assignee": {"id": 843}}, "task": {"id": 352, "owner": {"id": 947}, "assignee": {"id": 12}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 340, "assignee": {"id": 570}, "organization": {"id": 640}, "project": {"id": 306, "owner": {"id": 769}, "assignee": {"id": 811}}, "task": {"id": 380, "owner": {"id": 933}, "assignee": {"id": 23}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 372, "assignee": {"id": 564}, "organization": {"id": 175}, "project": {"id": 354, "owner": {"id": 752}, "assignee": {"id": 890}}, "task": {"id": 326, "owner": {"id": 923}, "assignee": {"id": 85}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 391, "assignee": {"id": 506}, "organization": {"id": 699}, "project": {"id": 335, "owner": {"id": 716}, "assignee": {"id": 826}}, "task": {"id": 326, "owner": {"id": 970}, "assignee": {"id": 0}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 395, "assignee": {"id": 564}, "organization": {"id": 116}, "project": {"id": 309, "owner": {"id": 794}, "assignee": {"id": 862}}, "task": {"id": 305, "owner": {"id": 904}, "assignee": {"id": 19}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 310, "assignee": {"id": 567}, "organization": {"id": 634}, "project": {"id": 344, "owner": {"id": 758}, "assignee": {"id": 883}}, "task": {"id": 399, "owner": {"id": 937}, "assignee": {"id": 98}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "assignee": {"id": 576}, "organization": {"id": 178}, "project": {"id": 342, "owner": {"id": 716}, "assignee": {"id": 860}}, "task": {"id": 302, "owner": {"id": 990}, "assignee": {"id": 44}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "assignee": {"id": 512}, "organization": {"id": 614}, "project": {"id": 337, "owner": {"id": 727}, "assignee": {"id": 840}}, "task": {"id": 364, "owner": {"id": 924}, "assignee": {"id": 39}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "assignee": {"id": 561}, "organization": {"id": 109}, "project": {"id": 394, "owner": {"id": 792}, "assignee": {"id": 846}}, "task": {"id": 315, "owner": {"id": 928}, "assignee": {"id": 54}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "assignee": {"id": 596}, "organization": {"id": 619}, "project": {"id": 317, "owner": {"id": 713}, "assignee": {"id": 851}}, "task": {"id": 370, "owner": {"id": 975}, "assignee": {"id": 36}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 358, "assignee": {"id": 514}, "organization": {"id": 178}, "project": {"id": 357, "owner": {"id": 730}, "assignee": {"id": 819}}, "task": {"id": 305, "owner": {"id": 936}, "assignee": {"id": 10}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 356, "assignee": {"id": 536}, "organization": {"id": 631}, "project": {"id": 311, "owner": {"id": 722}, "assignee": {"id": 852}}, "task": {"id": 354, "owner": {"id": 952}, "assignee": {"id": 50}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 328, "assignee": {"id": 525}, "organization": {"id": 197}, "project": {"id": 311, "owner": {"id": 752}, "assignee": {"id": 845}}, "task": {"id": 343, "owner": {"id": 965}, "assignee": {"id": 53}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 332, "assignee": {"id": 558}, "organization": {"id": 641}, "project": {"id": 342, "owner": {"id": 743}, "assignee": {"id": 819}}, "task": {"id": 353, "owner": {"id": 958}, "assignee": {"id": 6}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 351, "assignee": {"id": 580}, "organization": {"id": 100}, "project": {"id": 395, "owner": {"id": 707}, "assignee": {"id": 818}}, "task": {"id": 358, "owner": {"id": 992}, "assignee": {"id": 14}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 345, "assignee": {"id": 595}, "organization": {"id": 687}, "project": {"id": 355, "owner": {"id": 770}, "assignee": {"id": 862}}, "task": {"id": 305, "owner": {"id": 954}, "assignee": {"id": 0}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "assignee": {"id": 598}, "organization": {"id": 188}, "project": {"id": 322, "owner": {"id": 710}, "assignee": {"id": 889}}, "task": {"id": 366, "owner": {"id": 911}, "assignee": {"id": 58}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "assignee": {"id": 523}, "organization": {"id": 630}, "project": {"id": 346, "owner": {"id": 724}, "assignee": {"id": 873}}, "task": {"id": 329, "owner": {"id": 997}, "assignee": {"id": 29}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "assignee": {"id": 534}, "organization": {"id": 142}, "project": {"id": 336, "owner": {"id": 793}, "assignee": {"id": 874}}, "task": {"id": 389, "owner": {"id": 940}, "assignee": {"id": 53}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "assignee": {"id": 556}, "organization": {"id": 674}, "project": {"id": 337, "owner": {"id": 724}, "assignee": {"id": 818}}, "task": {"id": 313, "owner": {"id": 990}, "assignee": {"id": 29}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 334, "assignee": {"id": 522}, "organization": {"id": 187}, "project": {"id": 387, "owner": {"id": 733}, "assignee": {"id": 852}}, "task": {"id": 395, "owner": {"id": 967}, "assignee": {"id": 80}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 394, "assignee": {"id": 514}, "organization": {"id": 673}, "project": {"id": 303, "owner": {"id": 718}, "assignee": {"id": 892}}, "task": {"id": 304, "owner": {"id": 938}, "assignee": {"id": 99}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 341, "assignee": {"id": 590}, "organization": {"id": 177}, "project": {"id": 369, "owner": {"id": 764}, "assignee": {"id": 804}}, "task": {"id": 399, "owner": {"id": 940}, "assignee": {"id": 6}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 324, "assignee": {"id": 536}, "organization": {"id": 650}, "project": {"id": 399, "owner": {"id": 746}, "assignee": {"id": 892}}, "task": {"id": 331, "owner": {"id": 928}, "assignee": {"id": 25}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 300, "assignee": {"id": 540}, "organization": {"id": 189}, "project": {"id": 390, "owner": {"id": 798}, "assignee": {"id": 847}}, "task": {"id": 389, "owner": {"id": 938}, "assignee": {"id": 59}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 300, "assignee": {"id": 573}, "organization": {"id": 669}, "project": {"id": 336, "owner": {"id": 715}, "assignee": {"id": 851}}, "task": {"id": 398, "owner": {"id": 933}, "assignee": {"id": 57}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "assignee": {"id": 582}, "organization": {"id": 114}, "project": {"id": 312, "owner": {"id": 759}, "assignee": {"id": 801}}, "task": {"id": 395, "owner": {"id": 934}, "assignee": {"id": 7}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "assignee": {"id": 590}, "organization": {"id": 689}, "project": {"id": 379, "owner": {"id": 721}, "assignee": {"id": 870}}, "task": {"id": 387, "owner": {"id": 928}, "assignee": {"id": 80}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "assignee": {"id": 511}, "organization": {"id": 148}, "project": {"id": 382, "owner": {"id": 769}, "assignee": {"id": 847}}, "task": {"id": 348, "owner": {"id": 967}, "assignee": {"id": 58}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "assignee": {"id": 547}, "organization": {"id": 604}, "project": {"id": 345, "owner": {"id": 777}, "assignee": {"id": 812}}, "task": {"id": 363, "owner": {"id": 994}, "assignee": {"id": 88}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 330, "assignee": {"id": 503}, "organization": {"id": 175}, "project": {"id": 389, "owner": {"id": 708}, "assignee": {"id": 807}}, "task": {"id": 387, "owner": {"id": 944}, "assignee": {"id": 46}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 399, "assignee": {"id": 548}, "organization": {"id": 677}, "project": {"id": 398, "owner": {"id": 770}, "assignee": {"id": 824}}, "task": {"id": 331, "owner": {"id": 991}, "assignee": {"id": 9}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 327, "assignee": {"id": 548}, "organization": {"id": 192}, "project": {"id": 382, "owner": {"id": 763}, "assignee": {"id": 803}}, "task": {"id": 366, "owner": {"id": 977}, "assignee": {"id": 32}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 305, "assignee": {"id": 549}, "organization": {"id": 644}, "project": {"id": 390, "owner": {"id": 791}, "assignee": {"id": 880}}, "task": {"id": 337, "owner": {"id": 945}, "assignee": {"id": 94}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 325, "assignee": {"id": 547}, "organization": {"id": 133}, "project": {"id": 302, "owner": {"id": 784}, "assignee": {"id": 863}}, "task": {"id": 348, "owner": {"id": 947}, "assignee": {"id": 73}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 323, "assignee": {"id": 501}, "organization": {"id": 660}, "project": {"id": 368, "owner": {"id": 782}, "assignee": {"id": 841}}, "task": {"id": 354, "owner": {"id": 918}, "assignee": {"id": 92}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "assignee": {"id": 574}, "organization": {"id": 149}, "project": {"id": 320, "owner": {"id": 752}, "assignee": {"id": 803}}, "task": {"id": 397, "owner": {"id": 916}, "assignee": {"id": 84}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "assignee": {"id": 515}, "organization": {"id": 671}, "project": {"id": 355, "owner": {"id": 765}, "assignee": {"id": 802}}, "task": {"id": 394, "owner": {"id": 915}, "assignee": {"id": 77}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "assignee": {"id": 575}, "organization": {"id": 183}, "project": {"id": 308, "owner": {"id": 775}, "assignee": {"id": 835}}, "task": {"id": 373, "owner": {"id": 900}, "assignee": {"id": 8}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "assignee": {"id": 506}, "organization": {"id": 625}, "project": {"id": 317, "owner": {"id": 763}, "assignee": {"id": 888}}, "task": {"id": 351, "owner": {"id": 985}, "assignee": {"id": 67}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 385, "assignee": {"id": 585}, "organization": {"id": 135}, "project": {"id": 367, "owner": {"id": 759}, "assignee": {"id": 859}}, "task": {"id": 362, "owner": {"id": 963}, "assignee": {"id": 10}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 375, "assignee": {"id": 559}, "organization": {"id": 617}, "project": {"id": 389, "owner": {"id": 749}, "assignee": {"id": 864}}, "task": {"id": 316, "owner": {"id": 912}, "assignee": {"id": 72}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 382, "assignee": {"id": 583}, "organization": {"id": 157}, "project": {"id": 394, "owner": {"id": 776}, "assignee": {"id": 851}}, "task": {"id": 339, "owner": {"id": 955}, "assignee": {"id": 62}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 381, "assignee": {"id": 540}, "organization": {"id": 676}, "project": {"id": 346, "owner": {"id": 749}, "assignee": {"id": 889}}, "task": {"id": 372, "owner": {"id": 987}, "assignee": {"id": 75}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 304, "assignee": {"id": 94}, "organization": {"id": 184}, "project": {"id": 326, "owner": {"id": 747}, "assignee": {"id": 851}}, "task": {"id": 330, "owner": {"id": 993}, "assignee": {"id": 1072}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 336, "assignee": {"id": 63}, "organization": {"id": 667}, "project": {"id": 385, "owner": {"id": 778}, "assignee": {"id": 822}}, "task": {"id": 345, "owner": {"id": 905}, "assignee": {"id": 1006}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "assignee": {"id": 24}, "organization": {"id": 146}, "project": {"id": 334, "owner": {"id": 792}, "assignee": {"id": 867}}, "task": {"id": 353, "owner": {"id": 981}, "assignee": {"id": 1060}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "assignee": {"id": 65}, "organization": {"id": 616}, "project": {"id": 393, "owner": {"id": 714}, "assignee": {"id": 862}}, "task": {"id": 393, "owner": {"id": 963}, "assignee": {"id": 1033}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "assignee": {"id": 42}, "organization": {"id": 183}, "project": {"id": 330, "owner": {"id": 747}, "assignee": {"id": 878}}, "task": {"id": 379, "owner": {"id": 985}, "assignee": {"id": 1086}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "assignee": {"id": 60}, "organization": {"id": 668}, "project": {"id": 330, "owner": {"id": 747}, "assignee": {"id": 849}}, "task": {"id": 377, "owner": {"id": 974}, "assignee": {"id": 1075}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 322, "assignee": {"id": 89}, "organization": {"id": 148}, "project": {"id": 398, "owner": {"id": 704}, "assignee": {"id": 810}}, "task": {"id": 378, "owner": {"id": 925}, "assignee": {"id": 1007}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 354, "assignee": {"id": 11}, "organization": {"id": 673}, "project": {"id": 315, "owner": {"id": 719}, "assignee": {"id": 848}}, "task": {"id": 362, "owner": {"id": 914}, "assignee": {"id": 1073}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 374, "assignee": {"id": 80}, "organization": {"id": 109}, "project": {"id": 326, "owner": {"id": 747}, "assignee": {"id": 830}}, "task": {"id": 386, "owner": {"id": 904}, "assignee": {"id": 1027}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 397, "assignee": {"id": 67}, "organization": {"id": 661}, "project": {"id": 371, "owner": {"id": 727}, "assignee": {"id": 805}}, "task": {"id": 341, "owner": {"id": 982}, "assignee": {"id": 1050}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 394, "assignee": {"id": 54}, "organization": {"id": 188}, "project": {"id": 347, "owner": {"id": 729}, "assignee": {"id": 830}}, "task": {"id": 342, "owner": {"id": 942}, "assignee": {"id": 1022}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 306, "assignee": {"id": 61}, "organization": {"id": 676}, "project": {"id": 386, "owner": {"id": 735}, "assignee": {"id": 899}}, "task": {"id": 370, "owner": {"id": 962}, "assignee": {"id": 1032}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "assignee": {"id": 37}, "organization": {"id": 195}, "project": {"id": 320, "owner": {"id": 751}, "assignee": {"id": 875}}, "task": {"id": 385, "owner": {"id": 975}, "assignee": {"id": 1025}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "assignee": {"id": 10}, "organization": {"id": 629}, "project": {"id": 373, "owner": {"id": 721}, "assignee": {"id": 816}}, "task": {"id": 317, "owner": {"id": 974}, "assignee": {"id": 1028}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "assignee": {"id": 87}, "organization": {"id": 192}, "project": {"id": 342, "owner": {"id": 701}, "assignee": {"id": 831}}, "task": {"id": 372, "owner": {"id": 983}, "assignee": {"id": 1035}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "assignee": {"id": 84}, "organization": {"id": 682}, "project": {"id": 382, "owner": {"id": 707}, "assignee": {"id": 840}}, "task": {"id": 341, "owner": {"id": 961}, "assignee": {"id": 1088}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 361, "assignee": {"id": 85}, "organization": {"id": 138}, "project": {"id": 310, "owner": {"id": 758}, "assignee": {"id": 838}}, "task": {"id": 326, "owner": {"id": 909}, "assignee": {"id": 1016}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 338, "assignee": {"id": 8}, "organization": {"id": 640}, "project": {"id": 326, "owner": {"id": 744}, "assignee": {"id": 831}}, "task": {"id": 364, "owner": {"id": 989}, "assignee": {"id": 1009}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 363, "assignee": {"id": 34}, "organization": {"id": 165}, "project": {"id": 375, "owner": {"id": 718}, "assignee": {"id": 858}}, "task": {"id": 320, "owner": {"id": 906}, "assignee": {"id": 1079}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 393, "assignee": {"id": 53}, "organization": {"id": 648}, "project": {"id": 375, "owner": {"id": 789}, "assignee": {"id": 847}}, "task": {"id": 357, "owner": {"id": 982}, "assignee": {"id": 1045}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 332, "assignee": {"id": 0}, "organization": {"id": 166}, "project": {"id": 373, "owner": {"id": 712}, "assignee": {"id": 852}}, "task": {"id": 368, "owner": {"id": 948}, "assignee": {"id": 1058}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 340, "assignee": {"id": 74}, "organization": {"id": 602}, "project": {"id": 351, "owner": {"id": 773}, "assignee": {"id": 897}}, "task": {"id": 334, "owner": {"id": 929}, "assignee": {"id": 1099}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "assignee": {"id": 99}, "organization": {"id": 195}, "project": {"id": 391, "owner": {"id": 708}, "assignee": {"id": 802}}, "task": {"id": 338, "owner": {"id": 918}, "assignee": {"id": 1062}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "assignee": {"id": 0}, "organization": {"id": 679}, "project": {"id": 324, "owner": {"id": 744}, "assignee": {"id": 835}}, "task": {"id": 374, "owner": {"id": 919}, "assignee": {"id": 1014}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "assignee": {"id": 14}, "organization": {"id": 127}, "project": {"id": 381, "owner": {"id": 778}, "assignee": {"id": 853}}, "task": {"id": 378, "owner": {"id": 979}, "assignee": {"id": 1082}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "assignee": {"id": 39}, "organization": {"id": 675}, "project": {"id": 331, "owner": {"id": 747}, "assignee": {"id": 857}}, "task": {"id": 341, "owner": {"id": 926}, "assignee": {"id": 1067}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 309, "assignee": {"id": 58}, "organization": {"id": 147}, "project": {"id": 341, "owner": {"id": 791}, "assignee": {"id": 863}}, "task": {"id": 304, "owner": {"id": 924}, "assignee": {"id": 1038}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 306, "assignee": {"id": 38}, "organization": {"id": 611}, "project": {"id": 352, "owner": {"id": 736}, "assignee": {"id": 887}}, "task": {"id": 320, "owner": {"id": 949}, "assignee": {"id": 1023}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"id": 336, "assignee": {"id": 32}, "organization": {"id": 149}, "project": {"id": 300, "owner": {"id": 722}, "assignee": {"id": 815}}, "task": {"id": 329, "owner": {"id": 943}, "assignee": {"id": 1090}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 390, "assignee": {"id": 62}, "organization": {"id": 621}, "project": {"id": 318, "owner": {"id": 784}, "assignee": {"id": 831}}, "task": {"id": 372, "owner": {"id": 936}, "assignee": {"id": 1000}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 356, "assignee": {"id": 79}, "organization": {"id": 143}, "project": {"id": 337, "owner": {"id": 729}, "assignee": {"id": 835}}, "task": {"id": 349, "owner": {"id": 949}, "assignee": {"id": 1007}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 360, "assignee": {"id": 73}, "organization": {"id": 606}, "project": {"id": 392, "owner": {"id": 784}, "assignee": {"id": 806}}, "task": {"id": 353, "owner": {"id": 906}, "assignee": {"id": 1031}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "assignee": {"id": 17}, "organization": {"id": 109}, "project": {"id": 399, "owner": {"id": 745}, "assignee": {"id": 813}}, "task": {"id": 350, "owner": {"id": 924}, "assignee": {"id": 1043}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "assignee": {"id": 37}, "organization": {"id": 694}, "project": {"id": 310, "owner": {"id": 794}, "assignee": {"id": 822}}, "task": {"id": 300, "owner": {"id": 921}, "assignee": {"id": 1021}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "assignee": {"id": 55}, "organization": {"id": 132}, "project": {"id": 308, "owner": {"id": 749}, "assignee": {"id": 865}}, "task": {"id": 305, "owner": {"id": 977}, "assignee": {"id": 1043}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "assignee": {"id": 25}, "organization": {"id": 693}, "project": {"id": 342, "owner": {"id": 734}, "assignee": {"id": 815}}, "task": {"id": 324, "owner": {"id": 927}, "assignee": {"id": 1086}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 346, "assignee": {"id": 55}, "organization": {"id": 189}, "project": {"id": 317, "owner": {"id": 766}, "assignee": {"id": 843}}, "task": {"id": 376, "owner": {"id": 908}, "assignee": {"id": 1042}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"id": 340, "assignee": {"id": 93}, "organization": {"id": 614}, "project": {"id": 356, "owner": {"id": 782}, "assignee": {"id": 878}}, "task": {"id": 312, "owner": {"id": 985}, "assignee": {"id": 1047}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 321, "assignee": {"id": 22}, "organization": {"id": 121}, "project": {"id": 390, "owner": {"id": 742}, "assignee": {"id": 822}}, "task": {"id": 394, "owner": {"id": 938}, "assignee": {"id": 1075}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 374, "assignee": {"id": 74}, "organization": {"id": 682}, "project": {"id": 387, "owner": {"id": 713}, "assignee": {"id": 883}}, "task": {"id": 336, "owner": {"id": 920}, "assignee": {"id": 1073}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 364, "assignee": {"id": 65}, "organization": {"id": 146}, "project": {"id": 314, "owner": {"id": 736}, "assignee": {"id": 800}}, "task": {"id": 396, "owner": {"id": 910}, "assignee": {"id": 1027}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 390, "assignee": {"id": 52}, "organization": {"id": 673}, "project": {"id": 374, "owner": {"id": 724}, "assignee": {"id": 874}}, "task": {"id": 315, "owner": {"id": 936}, "assignee": {"id": 1021}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 19, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "assignee": {"id": 19}, "organization": {"id": 106}, "project": {"id": 390, "owner": {"id": 703}, "assignee": {"id": 813}}, "task": {"id": 357, "owner": {"id": 938}, "assignee": {"id": 1005}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "assignee": {"id": 66}, "organization": {"id": 638}, "project": {"id": 389, "owner": {"id": 739}, "assignee": {"id": 855}}, "task": {"id": 379, "owner": {"id": 964}, "assignee": {"id": 1065}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "assignee": {"id": 23}, "organization": {"id": 176}, "project": {"id": 369, "owner": {"id": 709}, "assignee": {"id": 888}}, "task": {"id": 369, "owner": {"id": 918}, "assignee": {"id": 1059}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "assignee": {"id": 39}, "organization": {"id": 649}, "project": {"id": 358, "owner": {"id": 785}, "assignee": {"id": 841}}, "task": {"id": 377, "owner": {"id": 913}, "assignee": {"id": 1053}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 381, "assignee": {"id": 83}, "organization": {"id": 103}, "project": {"id": 340, "owner": {"id": 724}, "assignee": {"id": 819}}, "task": {"id": 392, "owner": {"id": 914}, "assignee": {"id": 1071}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 312, "assignee": {"id": 51}, "organization": {"id": 607}, "project": {"id": 366, "owner": {"id": 740}, "assignee": {"id": 817}}, "task": {"id": 327, "owner": {"id": 913}, "assignee": {"id": 1045}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 321, "assignee": {"id": 16}, "organization": {"id": 118}, "project": {"id": 323, "owner": {"id": 769}, "assignee": {"id": 832}}, "task": {"id": 391, "owner": {"id": 901}, "assignee": {"id": 1093}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 394, "assignee": {"id": 99}, "organization": {"id": 650}, "project": {"id": 322, "owner": {"id": 750}, "assignee": {"id": 861}}, "task": {"id": 310, "owner": {"id": 980}, "assignee": {"id": 1031}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 317, "assignee": {"id": 540}, "organization": {"id": 105}, "project": {"id": 396, "owner": {"id": 732}, "assignee": {"id": 820}}, "task": {"id": 330, "owner": {"id": 968}, "assignee": {"id": 1054}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 360, "assignee": {"id": 549}, "organization": {"id": 603}, "project": {"id": 339, "owner": {"id": 798}, "assignee": {"id": 817}}, "task": {"id": 379, "owner": {"id": 993}, "assignee": {"id": 1025}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "assignee": {"id": 575}, "organization": {"id": 160}, "project": {"id": 368, "owner": {"id": 763}, "assignee": {"id": 881}}, "task": {"id": 390, "owner": {"id": 954}, "assignee": {"id": 1090}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "assignee": {"id": 569}, "organization": {"id": 689}, "project": {"id": 363, "owner": {"id": 762}, "assignee": {"id": 817}}, "task": {"id": 309, "owner": {"id": 905}, "assignee": {"id": 1057}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "assignee": {"id": 588}, "organization": {"id": 102}, "project": {"id": 302, "owner": {"id": 730}, "assignee": {"id": 827}}, "task": {"id": 389, "owner": {"id": 904}, "assignee": {"id": 1047}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "assignee": {"id": 596}, "organization": {"id": 676}, "project": {"id": 391, "owner": {"id": 763}, "assignee": {"id": 818}}, "task": {"id": 336, "owner": {"id": 959}, "assignee": {"id": 1017}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 355, "assignee": {"id": 544}, "organization": {"id": 126}, "project": {"id": 308, "owner": {"id": 755}, "assignee": {"id": 895}}, "task": {"id": 385, "owner": {"id": 968}, "assignee": {"id": 1075}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 322, "assignee": {"id": 562}, "organization": {"id": 655}, "project": {"id": 396, "owner": {"id": 792}, "assignee": {"id": 896}}, "task": {"id": 390, "owner": {"id": 991}, "assignee": {"id": 1029}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 389, "assignee": {"id": 523}, "organization": {"id": 124}, "project": {"id": 371, "owner": {"id": 784}, "assignee": {"id": 813}}, "task": {"id": 370, "owner": {"id": 921}, "assignee": {"id": 1065}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 382, "assignee": {"id": 524}, "organization": {"id": 685}, "project": {"id": 380, "owner": {"id": 721}, "assignee": {"id": 899}}, "task": {"id": 358, "owner": {"id": 970}, "assignee": {"id": 1083}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 361, "assignee": {"id": 594}, "organization": {"id": 183}, "project": {"id": 335, "owner": {"id": 723}, "assignee": {"id": 883}}, "task": {"id": 329, "owner": {"id": 945}, "assignee": {"id": 1058}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 310, "assignee": {"id": 566}, "organization": {"id": 678}, "project": {"id": 377, "owner": {"id": 747}, "assignee": {"id": 874}}, "task": {"id": 330, "owner": {"id": 909}, "assignee": {"id": 1010}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "assignee": {"id": 575}, "organization": {"id": 190}, "project": {"id": 386, "owner": {"id": 710}, "assignee": {"id": 883}}, "task": {"id": 324, "owner": {"id": 940}, "assignee": {"id": 1031}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "assignee": {"id": 507}, "organization": {"id": 644}, "project": {"id": 300, "owner": {"id": 760}, "assignee": {"id": 883}}, "task": {"id": 300, "owner": {"id": 963}, "assignee": {"id": 1061}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 371, "assignee": {"id": 570}, "organization": {"id": 151}, "project": {"id": 338, "owner": {"id": 772}, "assignee": {"id": 836}}, "task": {"id": 384, "owner": {"id": 973}, "assignee": {"id": 1078}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "assignee": {"id": 558}, "organization": {"id": 648}, "project": {"id": 364, "owner": {"id": 753}, "assignee": {"id": 890}}, "task": {"id": 353, "owner": {"id": 916}, "assignee": {"id": 1098}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 301, "assignee": {"id": 541}, "organization": {"id": 194}, "project": {"id": 345, "owner": {"id": 709}, "assignee": {"id": 878}}, "task": {"id": 399, "owner": {"id": 932}, "assignee": {"id": 1070}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 335, "assignee": {"id": 595}, "organization": {"id": 621}, "project": {"id": 320, "owner": {"id": 747}, "assignee": {"id": 874}}, "task": {"id": 342, "owner": {"id": 943}, "assignee": {"id": 1012}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 304, "assignee": {"id": 595}, "organization": {"id": 126}, "project": {"id": 378, "owner": {"id": 708}, "assignee": {"id": 844}}, "task": {"id": 337, "owner": {"id": 912}, "assignee": {"id": 1074}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 388, "assignee": {"id": 545}, "organization": {"id": 614}, "project": {"id": 395, "owner": {"id": 790}, "assignee": {"id": 812}}, "task": {"id": 303, "owner": {"id": 976}, "assignee": {"id": 1052}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 313, "assignee": {"id": 586}, "organization": {"id": 101}, "project": {"id": 354, "owner": {"id": 729}, "assignee": {"id": 851}}, "task": {"id": 396, "owner": {"id": 945}, "assignee": {"id": 1093}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 393, "assignee": {"id": 503}, "organization": {"id": 632}, "project": {"id": 308, "owner": {"id": 762}, "assignee": {"id": 830}}, "task": {"id": 363, "owner": {"id": 918}, "assignee": {"id": 1018}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "assignee": {"id": 589}, "organization": {"id": 127}, "project": {"id": 364, "owner": {"id": 759}, "assignee": {"id": 805}}, "task": {"id": 390, "owner": {"id": 925}, "assignee": {"id": 1086}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "assignee": {"id": 514}, "organization": {"id": 617}, "project": {"id": 366, "owner": {"id": 710}, "assignee": {"id": 856}}, "task": {"id": 308, "owner": {"id": 967}, "assignee": {"id": 1079}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "assignee": {"id": 529}, "organization": {"id": 117}, "project": {"id": 339, "owner": {"id": 786}, "assignee": {"id": 856}}, "task": {"id": 394, "owner": {"id": 987}, "assignee": {"id": 1095}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "assignee": {"id": 520}, "organization": {"id": 656}, "project": {"id": 395, "owner": {"id": 740}, "assignee": {"id": 874}}, "task": {"id": 354, "owner": {"id": 931}, "assignee": {"id": 1096}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 311, "assignee": {"id": 539}, "organization": {"id": 120}, "project": {"id": 326, "owner": {"id": 730}, "assignee": {"id": 813}}, "task": {"id": 302, "owner": {"id": 968}, "assignee": {"id": 1064}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 306, "assignee": {"id": 555}, "organization": {"id": 693}, "project": {"id": 398, "owner": {"id": 742}, "assignee": {"id": 874}}, "task": {"id": 333, "owner": {"id": 986}, "assignee": {"id": 1003}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 312, "assignee": {"id": 565}, "organization": {"id": 111}, "project": {"id": 331, "owner": {"id": 790}, "assignee": {"id": 853}}, "task": {"id": 338, "owner": {"id": 970}, "assignee": {"id": 1047}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 304, "assignee": {"id": 505}, "organization": {"id": 616}, "project": {"id": 308, "owner": {"id": 764}, "assignee": {"id": 819}}, "task": {"id": 338, "owner": {"id": 909}, "assignee": {"id": 1090}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 311, "assignee": {"id": 557}, "organization": {"id": 170}, "project": {"id": 317, "owner": {"id": 766}, "assignee": {"id": 833}}, "task": {"id": 354, "owner": {"id": 908}, "assignee": {"id": 1054}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 368, "assignee": {"id": 557}, "organization": {"id": 682}, "project": {"id": 380, "owner": {"id": 724}, "assignee": {"id": 823}}, "task": {"id": 397, "owner": {"id": 908}, "assignee": {"id": 1036}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "assignee": {"id": 501}, "organization": {"id": 185}, "project": {"id": 385, "owner": {"id": 716}, "assignee": {"id": 802}}, "task": {"id": 335, "owner": {"id": 924}, "assignee": {"id": 1082}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "assignee": {"id": 527}, "organization": {"id": 692}, "project": {"id": 326, "owner": {"id": 739}, "assignee": {"id": 839}}, "task": {"id": 316, "owner": {"id": 913}, "assignee": {"id": 1005}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "assignee": {"id": 502}, "organization": {"id": 125}, "project": {"id": 350, "owner": {"id": 700}, "assignee": {"id": 808}}, "task": {"id": 301, "owner": {"id": 980}, "assignee": {"id": 1037}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "assignee": {"id": 543}, "organization": {"id": 646}, "project": {"id": 342, "owner": {"id": 795}, "assignee": {"id": 858}}, "task": {"id": 373, "owner": {"id": 938}, "assignee": {"id": 1017}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 397, "assignee": {"id": 518}, "organization": {"id": 196}, "project": {"id": 387, "owner": {"id": 716}, "assignee": {"id": 886}}, "task": {"id": 329, "owner": {"id": 976}, "assignee": {"id": 1045}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 359, "assignee": {"id": 516}, "organization": {"id": 684}, "project": {"id": 310, "owner": {"id": 762}, "assignee": {"id": 848}}, "task": {"id": 399, "owner": {"id": 909}, "assignee": {"id": 1090}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 397, "assignee": {"id": 571}, "organization": {"id": 160}, "project": {"id": 370, "owner": {"id": 763}, "assignee": {"id": 891}}, "task": {"id": 370, "owner": {"id": 958}, "assignee": {"id": 1062}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 356, "assignee": {"id": 547}, "organization": {"id": 608}, "project": {"id": 327, "owner": {"id": 764}, "assignee": {"id": 861}}, "task": {"id": 359, "owner": {"id": 984}, "assignee": {"id": 1009}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"id": 368, "assignee": {"id": 510}, "organization": {"id": 105}, "project": {"id": 373, "owner": {"id": 728}, "assignee": {"id": 878}}, "task": {"id": 358, "owner": {"id": 982}, "assignee": {"id": 1081}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 364, "assignee": {"id": 560}, "organization": {"id": 628}, "project": {"id": 304, "owner": {"id": 735}, "assignee": {"id": 846}}, "task": {"id": 314, "owner": {"id": 975}, "assignee": {"id": 1032}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "assignee": {"id": 552}, "organization": {"id": 114}, "project": {"id": 310, "owner": {"id": 782}, "assignee": {"id": 894}}, "task": {"id": 358, "owner": {"id": 992}, "assignee": {"id": 1028}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "assignee": {"id": 587}, "organization": {"id": 603}, "project": {"id": 363, "owner": {"id": 774}, "assignee": {"id": 884}}, "task": {"id": 351, "owner": {"id": 999}, "assignee": {"id": 1039}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "assignee": {"id": 580}, "organization": {"id": 124}, "project": {"id": 313, "owner": {"id": 744}, "assignee": {"id": 862}}, "task": {"id": 340, "owner": {"id": 965}, "assignee": {"id": 1042}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "assignee": {"id": 598}, "organization": {"id": 669}, "project": {"id": 381, "owner": {"id": 741}, "assignee": {"id": 830}}, "task": {"id": 384, "owner": {"id": 950}, "assignee": {"id": 1092}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 335, "assignee": {"id": 539}, "organization": {"id": 186}, "project": {"id": 324, "owner": {"id": 798}, "assignee": {"id": 830}}, "task": {"id": 374, "owner": {"id": 923}, "assignee": {"id": 1057}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 340, "assignee": {"id": 532}, "organization": {"id": 603}, "project": {"id": 352, "owner": {"id": 729}, "assignee": {"id": 866}}, "task": {"id": 340, "owner": {"id": 953}, "assignee": {"id": 1058}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 394, "assignee": {"id": 559}, "organization": {"id": 135}, "project": {"id": 309, "owner": {"id": 798}, "assignee": {"id": 845}}, "task": {"id": 325, "owner": {"id": 958}, "assignee": {"id": 1071}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 307, "assignee": {"id": 587}, "organization": {"id": 644}, "project": {"id": 345, "owner": {"id": 787}, "assignee": {"id": 883}}, "task": {"id": 344, "owner": {"id": 992}, "assignee": {"id": 1043}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": null}, "resource": {"id": 355, "assignee": {"id": 516}, "organization": {"id": 698}, "project": {"id": 337, "owner": {"id": 72}, "assignee": {"id": 863}}, "task": {"id": 307, "owner": {"id": 989}, "assignee": {"id": 1033}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": null}, "resource": {"id": 317, "assignee": {"id": 531}, "organization": {"id": 610}, "project": {"id": 333, "owner": {"id": 65}, "assignee": {"id": 888}}, "task": {"id": 348, "owner": {"id": 947}, "assignee": {"id": 1012}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": null}, "resource": {"id": 340, "assignee": {"id": 599}, "organization": {"id": 654}, "project": {"id": 315, "owner": {"id": 85}, "assignee": {"id": 852}}, "task": {"id": 313, "owner": {"id": 987}, "assignee": {"id": 1040}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": null}, "resource": {"id": 345, "assignee": {"id": 523}, "organization": {"id": 635}, "project": {"id": 390, "owner": {"id": 32}, "assignee": {"id": 860}}, "task": {"id": 363, "owner": {"id": 962}, "assignee": {"id": 1061}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": null}, "resource": {"id": 390, "assignee": {"id": 561}, "organization": {"id": 637}, "project": {"id": 325, "owner": {"id": 27}, "assignee": {"id": 887}}, "task": {"id": 350, "owner": {"id": 999}, "assignee": {"id": 1007}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": null}, "resource": {"id": 313, "assignee": {"id": 559}, "organization": {"id": 652}, "project": {"id": 334, "owner": {"id": 790}, "assignee": {"id": 5}}, "task": {"id": 398, "owner": {"id": 985}, "assignee": {"id": 1035}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": null}, "resource": {"id": 321, "assignee": {"id": 508}, "organization": {"id": 632}, "project": {"id": 324, "owner": {"id": 780}, "assignee": {"id": 49}}, "task": {"id": 332, "owner": {"id": 989}, "assignee": {"id": 1066}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": null}, "resource": {"id": 374, "assignee": {"id": 596}, "organization": {"id": 635}, "project": {"id": 344, "owner": {"id": 723}, "assignee": {"id": 41}}, "task": {"id": 376, "owner": {"id": 982}, "assignee": {"id": 1089}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": null}, "resource": {"id": 316, "assignee": {"id": 557}, "organization": {"id": 622}, "project": {"id": 364, "owner": {"id": 754}, "assignee": {"id": 36}}, "task": {"id": 313, "owner": {"id": 969}, "assignee": {"id": 1015}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": null}, "resource": {"id": 309, "assignee": {"id": 520}, "organization": {"id": 635}, "project": {"id": 373, "owner": {"id": 727}, "assignee": {"id": 45}}, "task": {"id": 355, "owner": {"id": 994}, "assignee": {"id": 1034}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": null}, "resource": {"id": 300, "assignee": {"id": 542}, "organization": {"id": 662}, "project": {"id": 368, "owner": {"id": 727}, "assignee": {"id": 852}}, "task": {"id": 383, "owner": {"id": 89}, "assignee": {"id": 1005}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": null}, "resource": {"id": 367, "assignee": {"id": 519}, "organization": {"id": 637}, "project": {"id": 397, "owner": {"id": 769}, "assignee": {"id": 892}}, "task": {"id": 363, "owner": {"id": 35}, "assignee": {"id": 1008}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": null}, "resource": {"id": 339, "assignee": {"id": 547}, "organization": {"id": 656}, "project": {"id": 383, "owner": {"id": 751}, "assignee": {"id": 862}}, "task": {"id": 385, "owner": {"id": 51}, "assignee": {"id": 1096}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": null}, "resource": {"id": 374, "assignee": {"id": 504}, "organization": {"id": 631}, "project": {"id": 320, "owner": {"id": 711}, "assignee": {"id": 832}}, "task": {"id": 331, "owner": {"id": 11}, "assignee": {"id": 1024}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": null}, "resource": {"id": 368, "assignee": {"id": 518}, "organization": {"id": 641}, "project": {"id": 387, "owner": {"id": 749}, "assignee": {"id": 805}}, "task": {"id": 388, "owner": {"id": 78}, "assignee": {"id": 1076}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": null}, "resource": {"id": 304, "assignee": {"id": 512}, "organization": {"id": 650}, "project": {"id": 343, "owner": {"id": 754}, "assignee": {"id": 852}}, "task": {"id": 327, "owner": {"id": 980}, "assignee": {"id": 77}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": null}, "resource": {"id": 388, "assignee": {"id": 530}, "organization": {"id": 616}, "project": {"id": 396, "owner": {"id": 762}, "assignee": {"id": 860}}, "task": {"id": 380, "owner": {"id": 982}, "assignee": {"id": 62}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": null}, "resource": {"id": 376, "assignee": {"id": 514}, "organization": {"id": 618}, "project": {"id": 356, "owner": {"id": 744}, "assignee": {"id": 876}}, "task": {"id": 331, "owner": {"id": 972}, "assignee": {"id": 46}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": null}, "resource": {"id": 327, "assignee": {"id": 505}, "organization": {"id": 601}, "project": {"id": 305, "owner": {"id": 775}, "assignee": {"id": 805}}, "task": {"id": 307, "owner": {"id": 985}, "assignee": {"id": 27}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": null}, "resource": {"id": 390, "assignee": {"id": 528}, "organization": {"id": 657}, "project": {"id": 395, "owner": {"id": 740}, "assignee": {"id": 819}}, "task": {"id": 323, "owner": {"id": 972}, "assignee": {"id": 94}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": null}, "resource": {"id": 303, "assignee": {"id": 77}, "organization": {"id": 655}, "project": {"id": 386, "owner": {"id": 782}, "assignee": {"id": 885}}, "task": {"id": 375, "owner": {"id": 942}, "assignee": {"id": 1025}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": null}, "resource": {"id": 321, "assignee": {"id": 99}, "organization": {"id": 607}, "project": {"id": 393, "owner": {"id": 787}, "assignee": {"id": 834}}, "task": {"id": 359, "owner": {"id": 922}, "assignee": {"id": 1024}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": null}, "resource": {"id": 353, "assignee": {"id": 31}, "organization": {"id": 608}, "project": {"id": 317, "owner": {"id": 782}, "assignee": {"id": 826}}, "task": {"id": 363, "owner": {"id": 963}, "assignee": {"id": 1077}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": null}, "resource": {"id": 383, "assignee": {"id": 27}, "organization": {"id": 681}, "project": {"id": 396, "owner": {"id": 795}, "assignee": {"id": 810}}, "task": {"id": 359, "owner": {"id": 948}, "assignee": {"id": 1043}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": null}, "resource": {"id": 391, "assignee": {"id": 11}, "organization": {"id": 649}, "project": {"id": 320, "owner": {"id": 746}, "assignee": {"id": 818}}, "task": {"id": 383, "owner": {"id": 905}, "assignee": {"id": 1020}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": null}, "resource": {"id": 340, "assignee": {"id": 500}, "organization": {"id": 667}, "project": {"id": 333, "owner": {"id": 764}, "assignee": {"id": 840}}, "task": {"id": 320, "owner": {"id": 970}, "assignee": {"id": 1037}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": null}, "resource": {"id": 308, "assignee": {"id": 586}, "organization": {"id": 660}, "project": {"id": 381, "owner": {"id": 791}, "assignee": {"id": 834}}, "task": {"id": 360, "owner": {"id": 909}, "assignee": {"id": 1092}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": null}, "resource": {"id": 332, "assignee": {"id": 590}, "organization": {"id": 644}, "project": {"id": 329, "owner": {"id": 739}, "assignee": {"id": 857}}, "task": {"id": 364, "owner": {"id": 920}, "assignee": {"id": 1056}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": null}, "resource": {"id": 393, "assignee": {"id": 570}, "organization": {"id": 653}, "project": {"id": 384, "owner": {"id": 758}, "assignee": {"id": 851}}, "task": {"id": 321, "owner": {"id": 919}, "assignee": {"id": 1060}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": null}, "resource": {"id": 398, "assignee": {"id": 538}, "organization": {"id": 648}, "project": {"id": 330, "owner": {"id": 764}, "assignee": {"id": 814}}, "task": {"id": 346, "owner": {"id": 909}, "assignee": {"id": 1020}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 332, "assignee": {"id": 584}, "organization": {"id": 132}, "project": {"id": 336, "owner": {"id": 22}, "assignee": {"id": 875}}, "task": {"id": 376, "owner": {"id": 964}, "assignee": {"id": 1056}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 393, "assignee": {"id": 526}, "organization": {"id": 641}, "project": {"id": 327, "owner": {"id": 47}, "assignee": {"id": 879}}, "task": {"id": 379, "owner": {"id": 967}, "assignee": {"id": 1063}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 372, "assignee": {"id": 515}, "organization": {"id": 147}, "project": {"id": 330, "owner": {"id": 33}, "assignee": {"id": 807}}, "task": {"id": 359, "owner": {"id": 940}, "assignee": {"id": 1015}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "assignee": {"id": 567}, "organization": {"id": 628}, "project": {"id": 335, "owner": {"id": 6}, "assignee": {"id": 872}}, "task": {"id": 322, "owner": {"id": 987}, "assignee": {"id": 1030}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 371, "assignee": {"id": 521}, "organization": {"id": 111}, "project": {"id": 341, "owner": {"id": 64}, "assignee": {"id": 825}}, "task": {"id": 309, "owner": {"id": 903}, "assignee": {"id": 1092}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "assignee": {"id": 551}, "organization": {"id": 638}, "project": {"id": 330, "owner": {"id": 49}, "assignee": {"id": 861}}, "task": {"id": 368, "owner": {"id": 981}, "assignee": {"id": 1087}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 326, "assignee": {"id": 595}, "organization": {"id": 153}, "project": {"id": 381, "owner": {"id": 54}, "assignee": {"id": 834}}, "task": {"id": 380, "owner": {"id": 953}, "assignee": {"id": 1001}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 395, "assignee": {"id": 575}, "organization": {"id": 649}, "project": {"id": 314, "owner": {"id": 52}, "assignee": {"id": 803}}, "task": {"id": 348, "owner": {"id": 976}, "assignee": {"id": 1080}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 357, "assignee": {"id": 539}, "organization": {"id": 180}, "project": {"id": 313, "owner": {"id": 89}, "assignee": {"id": 808}}, "task": {"id": 366, "owner": {"id": 962}, "assignee": {"id": 1076}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 349, "assignee": {"id": 543}, "organization": {"id": 601}, "project": {"id": 354, "owner": {"id": 44}, "assignee": {"id": 898}}, "task": {"id": 334, "owner": {"id": 956}, "assignee": {"id": 1010}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 313, "assignee": {"id": 513}, "organization": {"id": 105}, "project": {"id": 340, "owner": {"id": 53}, "assignee": {"id": 817}}, "task": {"id": 393, "owner": {"id": 924}, "assignee": {"id": 1010}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 332, "assignee": {"id": 597}, "organization": {"id": 606}, "project": {"id": 323, "owner": {"id": 53}, "assignee": {"id": 821}}, "task": {"id": 371, "owner": {"id": 979}, "assignee": {"id": 1069}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "assignee": {"id": 517}, "organization": {"id": 189}, "project": {"id": 322, "owner": {"id": 95}, "assignee": {"id": 870}}, "task": {"id": 350, "owner": {"id": 910}, "assignee": {"id": 1033}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "assignee": {"id": 537}, "organization": {"id": 618}, "project": {"id": 347, "owner": {"id": 48}, "assignee": {"id": 859}}, "task": {"id": 379, "owner": {"id": 950}, "assignee": {"id": 1097}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "assignee": {"id": 596}, "organization": {"id": 136}, "project": {"id": 364, "owner": {"id": 8}, "assignee": {"id": 820}}, "task": {"id": 304, "owner": {"id": 907}, "assignee": {"id": 1082}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "assignee": {"id": 534}, "organization": {"id": 617}, "project": {"id": 332, "owner": {"id": 62}, "assignee": {"id": 801}}, "task": {"id": 382, "owner": {"id": 960}, "assignee": {"id": 1028}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 390, "assignee": {"id": 568}, "organization": {"id": 190}, "project": {"id": 308, "owner": {"id": 66}, "assignee": {"id": 845}}, "task": {"id": 374, "owner": {"id": 947}, "assignee": {"id": 1021}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 394, "assignee": {"id": 576}, "organization": {"id": 690}, "project": {"id": 376, "owner": {"id": 89}, "assignee": {"id": 858}}, "task": {"id": 341, "owner": {"id": 984}, "assignee": {"id": 1060}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 396, "assignee": {"id": 562}, "organization": {"id": 143}, "project": {"id": 397, "owner": {"id": 3}, "assignee": {"id": 864}}, "task": {"id": 321, "owner": {"id": 975}, "assignee": {"id": 1029}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 363, "assignee": {"id": 561}, "organization": {"id": 673}, "project": {"id": 360, "owner": {"id": 49}, "assignee": {"id": 876}}, "task": {"id": 382, "owner": {"id": 968}, "assignee": {"id": 1026}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 302, "assignee": {"id": 560}, "organization": {"id": 177}, "project": {"id": 392, "owner": {"id": 27}, "assignee": {"id": 812}}, "task": {"id": 305, "owner": {"id": 947}, "assignee": {"id": 1075}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 393, "assignee": {"id": 586}, "organization": {"id": 668}, "project": {"id": 313, "owner": {"id": 72}, "assignee": {"id": 800}}, "task": {"id": 398, "owner": {"id": 935}, "assignee": {"id": 1029}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "assignee": {"id": 555}, "organization": {"id": 152}, "project": {"id": 303, "owner": {"id": 80}, "assignee": {"id": 867}}, "task": {"id": 345, "owner": {"id": 998}, "assignee": {"id": 1070}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "assignee": {"id": 549}, "organization": {"id": 654}, "project": {"id": 391, "owner": {"id": 39}, "assignee": {"id": 879}}, "task": {"id": 353, "owner": {"id": 927}, "assignee": {"id": 1045}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "assignee": {"id": 502}, "organization": {"id": 137}, "project": {"id": 341, "owner": {"id": 64}, "assignee": {"id": 821}}, "task": {"id": 311, "owner": {"id": 907}, "assignee": {"id": 1011}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "assignee": {"id": 521}, "organization": {"id": 684}, "project": {"id": 317, "owner": {"id": 67}, "assignee": {"id": 839}}, "task": {"id": 383, "owner": {"id": 936}, "assignee": {"id": 1013}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 335, "assignee": {"id": 544}, "organization": {"id": 141}, "project": {"id": 337, "owner": {"id": 29}, "assignee": {"id": 864}}, "task": {"id": 344, "owner": {"id": 977}, "assignee": {"id": 1081}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 347, "assignee": {"id": 530}, "organization": {"id": 643}, "project": {"id": 320, "owner": {"id": 58}, "assignee": {"id": 882}}, "task": {"id": 331, "owner": {"id": 960}, "assignee": {"id": 1098}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 375, "assignee": {"id": 542}, "organization": {"id": 141}, "project": {"id": 357, "owner": {"id": 99}, "assignee": {"id": 853}}, "task": {"id": 387, "owner": {"id": 946}, "assignee": {"id": 1099}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 19, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 328, "assignee": {"id": 562}, "organization": {"id": 632}, "project": {"id": 371, "owner": {"id": 19}, "assignee": {"id": 893}}, "task": {"id": 345, "owner": {"id": 993}, "assignee": {"id": 1095}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 321, "assignee": {"id": 521}, "organization": {"id": 106}, "project": {"id": 395, "owner": {"id": 81}, "assignee": {"id": 837}}, "task": {"id": 353, "owner": {"id": 958}, "assignee": {"id": 1075}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 384, "assignee": {"id": 562}, "organization": {"id": 641}, "project": {"id": 398, "owner": {"id": 81}, "assignee": {"id": 820}}, "task": {"id": 361, "owner": {"id": 975}, "assignee": {"id": 1096}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "assignee": {"id": 572}, "organization": {"id": 163}, "project": {"id": 397, "owner": {"id": 50}, "assignee": {"id": 841}}, "task": {"id": 320, "owner": {"id": 926}, "assignee": {"id": 1079}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "assignee": {"id": 574}, "organization": {"id": 672}, "project": {"id": 378, "owner": {"id": 66}, "assignee": {"id": 818}}, "task": {"id": 307, "owner": {"id": 928}, "assignee": {"id": 1085}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "assignee": {"id": 556}, "organization": {"id": 191}, "project": {"id": 307, "owner": {"id": 73}, "assignee": {"id": 833}}, "task": {"id": 397, "owner": {"id": 911}, "assignee": {"id": 1043}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "assignee": {"id": 536}, "organization": {"id": 618}, "project": {"id": 353, "owner": {"id": 28}, "assignee": {"id": 894}}, "task": {"id": 340, "owner": {"id": 960}, "assignee": {"id": 1040}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 343, "assignee": {"id": 508}, "organization": {"id": 142}, "project": {"id": 325, "owner": {"id": 31}, "assignee": {"id": 877}}, "task": {"id": 361, "owner": {"id": 948}, "assignee": {"id": 1090}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 378, "assignee": {"id": 536}, "organization": {"id": 653}, "project": {"id": 309, "owner": {"id": 21}, "assignee": {"id": 816}}, "task": {"id": 392, "owner": {"id": 955}, "assignee": {"id": 1095}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 307, "assignee": {"id": 565}, "organization": {"id": 109}, "project": {"id": 318, "owner": {"id": 52}, "assignee": {"id": 850}}, "task": {"id": 331, "owner": {"id": 926}, "assignee": {"id": 1033}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 367, "assignee": {"id": 576}, "organization": {"id": 663}, "project": {"id": 367, "owner": {"id": 22}, "assignee": {"id": 824}}, "task": {"id": 357, "owner": {"id": 918}, "assignee": {"id": 1066}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 344, "assignee": {"id": 577}, "organization": {"id": 191}, "project": {"id": 384, "owner": {"id": 13}, "assignee": {"id": 888}}, "task": {"id": 364, "owner": {"id": 905}, "assignee": {"id": 1036}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 308, "assignee": {"id": 561}, "organization": {"id": 610}, "project": {"id": 349, "owner": {"id": 29}, "assignee": {"id": 831}}, "task": {"id": 325, "owner": {"id": 994}, "assignee": {"id": 1086}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "assignee": {"id": 537}, "organization": {"id": 155}, "project": {"id": 311, "owner": {"id": 83}, "assignee": {"id": 883}}, "task": {"id": 338, "owner": {"id": 931}, "assignee": {"id": 1053}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "assignee": {"id": 523}, "organization": {"id": 686}, "project": {"id": 302, "owner": {"id": 60}, "assignee": {"id": 877}}, "task": {"id": 325, "owner": {"id": 911}, "assignee": {"id": 1028}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "assignee": {"id": 593}, "organization": {"id": 192}, "project": {"id": 387, "owner": {"id": 62}, "assignee": {"id": 804}}, "task": {"id": 374, "owner": {"id": 930}, "assignee": {"id": 1053}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "assignee": {"id": 563}, "organization": {"id": 658}, "project": {"id": 359, "owner": {"id": 58}, "assignee": {"id": 830}}, "task": {"id": 353, "owner": {"id": 943}, "assignee": {"id": 1097}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 345, "assignee": {"id": 544}, "organization": {"id": 178}, "project": {"id": 342, "owner": {"id": 14}, "assignee": {"id": 807}}, "task": {"id": 326, "owner": {"id": 932}, "assignee": {"id": 1064}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 389, "assignee": {"id": 532}, "organization": {"id": 625}, "project": {"id": 345, "owner": {"id": 6}, "assignee": {"id": 894}}, "task": {"id": 392, "owner": {"id": 914}, "assignee": {"id": 1013}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 379, "assignee": {"id": 526}, "organization": {"id": 193}, "project": {"id": 340, "owner": {"id": 79}, "assignee": {"id": 826}}, "task": {"id": 330, "owner": {"id": 906}, "assignee": {"id": 1068}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 317, "assignee": {"id": 524}, "organization": {"id": 688}, "project": {"id": 331, "owner": {"id": 86}, "assignee": {"id": 883}}, "task": {"id": 310, "owner": {"id": 926}, "assignee": {"id": 1046}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 339, "assignee": {"id": 583}, "organization": {"id": 148}, "project": {"id": 340, "owner": {"id": 743}, "assignee": {"id": 18}}, "task": {"id": 303, "owner": {"id": 959}, "assignee": {"id": 1002}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 302, "assignee": {"id": 555}, "organization": {"id": 617}, "project": {"id": 354, "owner": {"id": 701}, "assignee": {"id": 13}}, "task": {"id": 356, "owner": {"id": 936}, "assignee": {"id": 1091}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "assignee": {"id": 595}, "organization": {"id": 136}, "project": {"id": 339, "owner": {"id": 764}, "assignee": {"id": 53}}, "task": {"id": 355, "owner": {"id": 920}, "assignee": {"id": 1013}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "assignee": {"id": 594}, "organization": {"id": 632}, "project": {"id": 384, "owner": {"id": 717}, "assignee": {"id": 31}}, "task": {"id": 389, "owner": {"id": 974}, "assignee": {"id": 1058}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "assignee": {"id": 536}, "organization": {"id": 185}, "project": {"id": 355, "owner": {"id": 772}, "assignee": {"id": 21}}, "task": {"id": 361, "owner": {"id": 921}, "assignee": {"id": 1044}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "assignee": {"id": 529}, "organization": {"id": 694}, "project": {"id": 399, "owner": {"id": 746}, "assignee": {"id": 59}}, "task": {"id": 379, "owner": {"id": 926}, "assignee": {"id": 1058}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 320, "assignee": {"id": 547}, "organization": {"id": 110}, "project": {"id": 323, "owner": {"id": 768}, "assignee": {"id": 77}}, "task": {"id": 367, "owner": {"id": 998}, "assignee": {"id": 1071}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 385, "assignee": {"id": 591}, "organization": {"id": 675}, "project": {"id": 338, "owner": {"id": 777}, "assignee": {"id": 92}}, "task": {"id": 310, "owner": {"id": 949}, "assignee": {"id": 1086}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 374, "assignee": {"id": 508}, "organization": {"id": 137}, "project": {"id": 390, "owner": {"id": 789}, "assignee": {"id": 84}}, "task": {"id": 335, "owner": {"id": 940}, "assignee": {"id": 1050}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 355, "assignee": {"id": 532}, "organization": {"id": 698}, "project": {"id": 341, "owner": {"id": 718}, "assignee": {"id": 33}}, "task": {"id": 374, "owner": {"id": 900}, "assignee": {"id": 1003}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 321, "assignee": {"id": 538}, "organization": {"id": 132}, "project": {"id": 394, "owner": {"id": 767}, "assignee": {"id": 42}}, "task": {"id": 363, "owner": {"id": 968}, "assignee": {"id": 1046}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 301, "assignee": {"id": 508}, "organization": {"id": 664}, "project": {"id": 375, "owner": {"id": 760}, "assignee": {"id": 44}}, "task": {"id": 362, "owner": {"id": 976}, "assignee": {"id": 1087}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "assignee": {"id": 587}, "organization": {"id": 129}, "project": {"id": 348, "owner": {"id": 757}, "assignee": {"id": 96}}, "task": {"id": 395, "owner": {"id": 978}, "assignee": {"id": 1086}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "assignee": {"id": 518}, "organization": {"id": 697}, "project": {"id": 382, "owner": {"id": 743}, "assignee": {"id": 89}}, "task": {"id": 395, "owner": {"id": 916}, "assignee": {"id": 1064}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "assignee": {"id": 539}, "organization": {"id": 130}, "project": {"id": 309, "owner": {"id": 759}, "assignee": {"id": 63}}, "task": {"id": 391, "owner": {"id": 904}, "assignee": {"id": 1081}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "assignee": {"id": 554}, "organization": {"id": 605}, "project": {"id": 386, "owner": {"id": 731}, "assignee": {"id": 84}}, "task": {"id": 352, "owner": {"id": 912}, "assignee": {"id": 1028}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 395, "assignee": {"id": 562}, "organization": {"id": 144}, "project": {"id": 379, "owner": {"id": 716}, "assignee": {"id": 34}}, "task": {"id": 395, "owner": {"id": 911}, "assignee": {"id": 1049}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 341, "assignee": {"id": 522}, "organization": {"id": 662}, "project": {"id": 344, "owner": {"id": 736}, "assignee": {"id": 91}}, "task": {"id": 322, "owner": {"id": 991}, "assignee": {"id": 1064}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 316, "assignee": {"id": 597}, "organization": {"id": 145}, "project": {"id": 396, "owner": {"id": 751}, "assignee": {"id": 11}}, "task": {"id": 387, "owner": {"id": 964}, "assignee": {"id": 1043}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 306, "assignee": {"id": 554}, "organization": {"id": 650}, "project": {"id": 366, "owner": {"id": 765}, "assignee": {"id": 59}}, "task": {"id": 344, "owner": {"id": 945}, "assignee": {"id": 1095}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 341, "assignee": {"id": 546}, "organization": {"id": 138}, "project": {"id": 386, "owner": {"id": 753}, "assignee": {"id": 74}}, "task": {"id": 353, "owner": {"id": 953}, "assignee": {"id": 1071}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 372, "assignee": {"id": 530}, "organization": {"id": 653}, "project": {"id": 395, "owner": {"id": 730}, "assignee": {"id": 1}}, "task": {"id": 332, "owner": {"id": 952}, "assignee": {"id": 1081}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "assignee": {"id": 540}, "organization": {"id": 142}, "project": {"id": 389, "owner": {"id": 752}, "assignee": {"id": 75}}, "task": {"id": 309, "owner": {"id": 928}, "assignee": {"id": 1026}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "assignee": {"id": 523}, "organization": {"id": 616}, "project": {"id": 333, "owner": {"id": 747}, "assignee": {"id": 50}}, "task": {"id": 365, "owner": {"id": 919}, "assignee": {"id": 1047}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "assignee": {"id": 575}, "organization": {"id": 194}, "project": {"id": 310, "owner": {"id": 718}, "assignee": {"id": 57}}, "task": {"id": 390, "owner": {"id": 954}, "assignee": {"id": 1072}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 371, "assignee": {"id": 597}, "organization": {"id": 689}, "project": {"id": 349, "owner": {"id": 774}, "assignee": {"id": 61}}, "task": {"id": 370, "owner": {"id": 938}, "assignee": {"id": 1067}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 364, "assignee": {"id": 580}, "organization": {"id": 107}, "project": {"id": 352, "owner": {"id": 794}, "assignee": {"id": 28}}, "task": {"id": 310, "owner": {"id": 973}, "assignee": {"id": 1054}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 320, "assignee": {"id": 563}, "organization": {"id": 680}, "project": {"id": 306, "owner": {"id": 733}, "assignee": {"id": 23}}, "task": {"id": 326, "owner": {"id": 949}, "assignee": {"id": 1073}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 344, "assignee": {"id": 572}, "organization": {"id": 117}, "project": {"id": 310, "owner": {"id": 754}, "assignee": {"id": 15}}, "task": {"id": 317, "owner": {"id": 930}, "assignee": {"id": 1000}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 336, "assignee": {"id": 551}, "organization": {"id": 675}, "project": {"id": 391, "owner": {"id": 798}, "assignee": {"id": 26}}, "task": {"id": 314, "owner": {"id": 962}, "assignee": {"id": 1049}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 377, "assignee": {"id": 511}, "organization": {"id": 167}, "project": {"id": 364, "owner": {"id": 754}, "assignee": {"id": 2}}, "task": {"id": 359, "owner": {"id": 987}, "assignee": {"id": 1083}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 385, "assignee": {"id": 544}, "organization": {"id": 628}, "project": {"id": 349, "owner": {"id": 700}, "assignee": {"id": 1}}, "task": {"id": 319, "owner": {"id": 922}, "assignee": {"id": 1024}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "assignee": {"id": 553}, "organization": {"id": 150}, "project": {"id": 326, "owner": {"id": 782}, "assignee": {"id": 47}}, "task": {"id": 345, "owner": {"id": 962}, "assignee": {"id": 1058}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "assignee": {"id": 537}, "organization": {"id": 621}, "project": {"id": 398, "owner": {"id": 777}, "assignee": {"id": 38}}, "task": {"id": 339, "owner": {"id": 908}, "assignee": {"id": 1000}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "assignee": {"id": 527}, "organization": {"id": 139}, "project": {"id": 320, "owner": {"id": 760}, "assignee": {"id": 16}}, "task": {"id": 302, "owner": {"id": 927}, "assignee": {"id": 1096}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "assignee": {"id": 522}, "organization": {"id": 690}, "project": {"id": 356, "owner": {"id": 738}, "assignee": {"id": 41}}, "task": {"id": 348, "owner": {"id": 926}, "assignee": {"id": 1095}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 392, "assignee": {"id": 529}, "organization": {"id": 119}, "project": {"id": 352, "owner": {"id": 710}, "assignee": {"id": 96}}, "task": {"id": 371, "owner": {"id": 965}, "assignee": {"id": 1088}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 331, "assignee": {"id": 569}, "organization": {"id": 600}, "project": {"id": 387, "owner": {"id": 754}, "assignee": {"id": 42}}, "task": {"id": 390, "owner": {"id": 992}, "assignee": {"id": 1074}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 352, "assignee": {"id": 517}, "organization": {"id": 190}, "project": {"id": 308, "owner": {"id": 771}, "assignee": {"id": 8}}, "task": {"id": 325, "owner": {"id": 983}, "assignee": {"id": 1085}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 312, "assignee": {"id": 583}, "organization": {"id": 620}, "project": {"id": 364, "owner": {"id": 797}, "assignee": {"id": 3}}, "task": {"id": 359, "owner": {"id": 962}, "assignee": {"id": 1077}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 350, "assignee": {"id": 554}, "organization": {"id": 161}, "project": {"id": 350, "owner": {"id": 729}, "assignee": {"id": 38}}, "task": {"id": 383, "owner": {"id": 992}, "assignee": {"id": 1078}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 364, "assignee": {"id": 509}, "organization": {"id": 683}, "project": {"id": 331, "owner": {"id": 720}, "assignee": {"id": 35}}, "task": {"id": 341, "owner": {"id": 974}, "assignee": {"id": 1065}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "assignee": {"id": 525}, "organization": {"id": 176}, "project": {"id": 362, "owner": {"id": 778}, "assignee": {"id": 84}}, "task": {"id": 391, "owner": {"id": 922}, "assignee": {"id": 1085}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "assignee": {"id": 528}, "organization": {"id": 662}, "project": {"id": 346, "owner": {"id": 727}, "assignee": {"id": 85}}, "task": {"id": 381, "owner": {"id": 988}, "assignee": {"id": 1025}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "assignee": {"id": 525}, "organization": {"id": 188}, "project": {"id": 390, "owner": {"id": 732}, "assignee": {"id": 57}}, "task": {"id": 343, "owner": {"id": 916}, "assignee": {"id": 1088}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "assignee": {"id": 557}, "organization": {"id": 612}, "project": {"id": 374, "owner": {"id": 780}, "assignee": {"id": 6}}, "task": {"id": 306, "owner": {"id": 993}, "assignee": {"id": 1031}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 50, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 364, "assignee": {"id": 558}, "organization": {"id": 142}, "project": {"id": 307, "owner": {"id": 758}, "assignee": {"id": 50}}, "task": {"id": 316, "owner": {"id": 989}, "assignee": {"id": 1098}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 336, "assignee": {"id": 579}, "organization": {"id": 637}, "project": {"id": 369, "owner": {"id": 777}, "assignee": {"id": 92}}, "task": {"id": 364, "owner": {"id": 945}, "assignee": {"id": 1020}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 330, "assignee": {"id": 564}, "organization": {"id": 175}, "project": {"id": 321, "owner": {"id": 700}, "assignee": {"id": 35}}, "task": {"id": 309, "owner": {"id": 941}, "assignee": {"id": 1015}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 356, "assignee": {"id": 563}, "organization": {"id": 652}, "project": {"id": 334, "owner": {"id": 773}, "assignee": {"id": 10}}, "task": {"id": 331, "owner": {"id": 951}, "assignee": {"id": 1092}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 356, "assignee": {"id": 552}, "organization": {"id": 113}, "project": {"id": 317, "owner": {"id": 765}, "assignee": {"id": 821}}, "task": {"id": 317, "owner": {"id": 49}, "assignee": {"id": 1096}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 383, "assignee": {"id": 541}, "organization": {"id": 684}, "project": {"id": 334, "owner": {"id": 790}, "assignee": {"id": 872}}, "task": {"id": 385, "owner": {"id": 72}, "assignee": {"id": 1016}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "assignee": {"id": 574}, "organization": {"id": 158}, "project": {"id": 337, "owner": {"id": 724}, "assignee": {"id": 885}}, "task": {"id": 395, "owner": {"id": 40}, "assignee": {"id": 1094}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "assignee": {"id": 550}, "organization": {"id": 609}, "project": {"id": 392, "owner": {"id": 730}, "assignee": {"id": 869}}, "task": {"id": 368, "owner": {"id": 80}, "assignee": {"id": 1043}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "assignee": {"id": 594}, "organization": {"id": 192}, "project": {"id": 390, "owner": {"id": 774}, "assignee": {"id": 811}}, "task": {"id": 389, "owner": {"id": 44}, "assignee": {"id": 1076}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "assignee": {"id": 556}, "organization": {"id": 665}, "project": {"id": 324, "owner": {"id": 718}, "assignee": {"id": 826}}, "task": {"id": 372, "owner": {"id": 94}, "assignee": {"id": 1083}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 36, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 396, "assignee": {"id": 575}, "organization": {"id": 111}, "project": {"id": 324, "owner": {"id": 749}, "assignee": {"id": 801}}, "task": {"id": 314, "owner": {"id": 36}, "assignee": {"id": 1099}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 381, "assignee": {"id": 558}, "organization": {"id": 603}, "project": {"id": 353, "owner": {"id": 749}, "assignee": {"id": 813}}, "task": {"id": 371, "owner": {"id": 85}, "assignee": {"id": 1041}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"id": 304, "assignee": {"id": 590}, "organization": {"id": 117}, "project": {"id": 363, "owner": {"id": 768}, "assignee": {"id": 805}}, "task": {"id": 356, "owner": {"id": 85}, "assignee": {"id": 1000}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 328, "assignee": {"id": 581}, "organization": {"id": 691}, "project": {"id": 327, "owner": {"id": 770}, "assignee": {"id": 870}}, "task": {"id": 312, "owner": {"id": 1}, "assignee": {"id": 1020}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 379, "assignee": {"id": 554}, "organization": {"id": 182}, "project": {"id": 361, "owner": {"id": 754}, "assignee": {"id": 828}}, "task": {"id": 356, "owner": {"id": 25}, "assignee": {"id": 1002}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 328, "assignee": {"id": 537}, "organization": {"id": 699}, "project": {"id": 332, "owner": {"id": 764}, "assignee": {"id": 828}}, "task": {"id": 348, "owner": {"id": 61}, "assignee": {"id": 1053}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "assignee": {"id": 512}, "organization": {"id": 162}, "project": {"id": 380, "owner": {"id": 789}, "assignee": {"id": 800}}, "task": {"id": 344, "owner": {"id": 41}, "assignee": {"id": 1084}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "assignee": {"id": 575}, "organization": {"id": 652}, "project": {"id": 362, "owner": {"id": 761}, "assignee": {"id": 804}}, "task": {"id": 340, "owner": {"id": 57}, "assignee": {"id": 1050}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "assignee": {"id": 509}, "organization": {"id": 134}, "project": {"id": 332, "owner": {"id": 792}, "assignee": {"id": 876}}, "task": {"id": 300, "owner": {"id": 43}, "assignee": {"id": 1095}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "assignee": {"id": 583}, "organization": {"id": 668}, "project": {"id": 363, "owner": {"id": 795}, "assignee": {"id": 830}}, "task": {"id": 391, "owner": {"id": 96}, "assignee": {"id": 1006}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 364, "assignee": {"id": 554}, "organization": {"id": 175}, "project": {"id": 315, "owner": {"id": 707}, "assignee": {"id": 820}}, "task": {"id": 342, "owner": {"id": 17}, "assignee": {"id": 1012}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 354, "assignee": {"id": 553}, "organization": {"id": 616}, "project": {"id": 340, "owner": {"id": 734}, "assignee": {"id": 863}}, "task": {"id": 399, "owner": {"id": 87}, "assignee": {"id": 1006}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 341, "assignee": {"id": 566}, "organization": {"id": 140}, "project": {"id": 339, "owner": {"id": 701}, "assignee": {"id": 811}}, "task": {"id": 399, "owner": {"id": 15}, "assignee": {"id": 1049}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 359, "assignee": {"id": 598}, "organization": {"id": 693}, "project": {"id": 301, "owner": {"id": 705}, "assignee": {"id": 803}}, "task": {"id": 309, "owner": {"id": 7}, "assignee": {"id": 1085}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 326, "assignee": {"id": 566}, "organization": {"id": 180}, "project": {"id": 340, "owner": {"id": 732}, "assignee": {"id": 850}}, "task": {"id": 356, "owner": {"id": 29}, "assignee": {"id": 1090}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 393, "assignee": {"id": 563}, "organization": {"id": 636}, "project": {"id": 331, "owner": {"id": 751}, "assignee": {"id": 896}}, "task": {"id": 373, "owner": {"id": 81}, "assignee": {"id": 1073}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "assignee": {"id": 535}, "organization": {"id": 163}, "project": {"id": 326, "owner": {"id": 713}, "assignee": {"id": 873}}, "task": {"id": 367, "owner": {"id": 48}, "assignee": {"id": 1073}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "assignee": {"id": 528}, "organization": {"id": 618}, "project": {"id": 313, "owner": {"id": 725}, "assignee": {"id": 801}}, "task": {"id": 344, "owner": {"id": 84}, "assignee": {"id": 1016}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "assignee": {"id": 583}, "organization": {"id": 183}, "project": {"id": 322, "owner": {"id": 745}, "assignee": {"id": 880}}, "task": {"id": 308, "owner": {"id": 74}, "assignee": {"id": 1011}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "assignee": {"id": 596}, "organization": {"id": 645}, "project": {"id": 376, "owner": {"id": 738}, "assignee": {"id": 895}}, "task": {"id": 301, "owner": {"id": 21}, "assignee": {"id": 1037}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 336, "assignee": {"id": 508}, "organization": {"id": 104}, "project": {"id": 340, "owner": {"id": 772}, "assignee": {"id": 857}}, "task": {"id": 379, "owner": {"id": 75}, "assignee": {"id": 1094}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 387, "assignee": {"id": 529}, "organization": {"id": 697}, "project": {"id": 398, "owner": {"id": 717}, "assignee": {"id": 831}}, "task": {"id": 371, "owner": {"id": 57}, "assignee": {"id": 1090}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 359, "assignee": {"id": 549}, "organization": {"id": 140}, "project": {"id": 304, "owner": {"id": 780}, "assignee": {"id": 849}}, "task": {"id": 321, "owner": {"id": 73}, "assignee": {"id": 1067}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 325, "assignee": {"id": 599}, "organization": {"id": 639}, "project": {"id": 302, "owner": {"id": 782}, "assignee": {"id": 827}}, "task": {"id": 372, "owner": {"id": 70}, "assignee": {"id": 1060}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 359, "assignee": {"id": 536}, "organization": {"id": 165}, "project": {"id": 385, "owner": {"id": 789}, "assignee": {"id": 883}}, "task": {"id": 324, "owner": {"id": 12}, "assignee": {"id": 1067}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 352, "assignee": {"id": 530}, "organization": {"id": 620}, "project": {"id": 388, "owner": {"id": 796}, "assignee": {"id": 872}}, "task": {"id": 385, "owner": {"id": 79}, "assignee": {"id": 1081}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "assignee": {"id": 501}, "organization": {"id": 160}, "project": {"id": 349, "owner": {"id": 796}, "assignee": {"id": 848}}, "task": {"id": 331, "owner": {"id": 0}, "assignee": {"id": 1021}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "assignee": {"id": 539}, "organization": {"id": 671}, "project": {"id": 310, "owner": {"id": 770}, "assignee": {"id": 841}}, "task": {"id": 315, "owner": {"id": 13}, "assignee": {"id": 1028}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "assignee": {"id": 553}, "organization": {"id": 175}, "project": {"id": 343, "owner": {"id": 756}, "assignee": {"id": 857}}, "task": {"id": 351, "owner": {"id": 9}, "assignee": {"id": 1063}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 390, "assignee": {"id": 585}, "organization": {"id": 671}, "project": {"id": 370, "owner": {"id": 777}, "assignee": {"id": 817}}, "task": {"id": 397, "owner": {"id": 7}, "assignee": {"id": 1029}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 356, "assignee": {"id": 540}, "organization": {"id": 130}, "project": {"id": 334, "owner": {"id": 704}, "assignee": {"id": 845}}, "task": {"id": 364, "owner": {"id": 23}, "assignee": {"id": 1096}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"id": 301, "assignee": {"id": 526}, "organization": {"id": 653}, "project": {"id": 301, "owner": {"id": 748}, "assignee": {"id": 856}}, "task": {"id": 362, "owner": {"id": 14}, "assignee": {"id": 1061}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 321, "assignee": {"id": 534}, "organization": {"id": 196}, "project": {"id": 376, "owner": {"id": 760}, "assignee": {"id": 884}}, "task": {"id": 322, "owner": {"id": 43}, "assignee": {"id": 1041}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 308, "assignee": {"id": 524}, "organization": {"id": 651}, "project": {"id": 336, "owner": {"id": 773}, "assignee": {"id": 853}}, "task": {"id": 361, "owner": {"id": 46}, "assignee": {"id": 1089}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 395, "assignee": {"id": 539}, "organization": {"id": 192}, "project": {"id": 329, "owner": {"id": 757}, "assignee": {"id": 845}}, "task": {"id": 397, "owner": {"id": 56}, "assignee": {"id": 1045}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 338, "assignee": {"id": 586}, "organization": {"id": 666}, "project": {"id": 368, "owner": {"id": 718}, "assignee": {"id": 841}}, "task": {"id": 317, "owner": {"id": 83}, "assignee": {"id": 1053}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "assignee": {"id": 590}, "organization": {"id": 194}, "project": {"id": 366, "owner": {"id": 746}, "assignee": {"id": 813}}, "task": {"id": 397, "owner": {"id": 40}, "assignee": {"id": 1014}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "assignee": {"id": 531}, "organization": {"id": 629}, "project": {"id": 369, "owner": {"id": 744}, "assignee": {"id": 809}}, "task": {"id": 340, "owner": {"id": 36}, "assignee": {"id": 1054}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "assignee": {"id": 504}, "organization": {"id": 177}, "project": {"id": 347, "owner": {"id": 707}, "assignee": {"id": 884}}, "task": {"id": 352, "owner": {"id": 1}, "assignee": {"id": 1068}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "assignee": {"id": 564}, "organization": {"id": 694}, "project": {"id": 326, "owner": {"id": 708}, "assignee": {"id": 874}}, "task": {"id": 328, "owner": {"id": 41}, "assignee": {"id": 1055}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 322, "assignee": {"id": 597}, "organization": {"id": 195}, "project": {"id": 340, "owner": {"id": 765}, "assignee": {"id": 854}}, "task": {"id": 306, "owner": {"id": 38}, "assignee": {"id": 1080}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 19, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 344, "assignee": {"id": 548}, "organization": {"id": 625}, "project": {"id": 388, "owner": {"id": 730}, "assignee": {"id": 826}}, "task": {"id": 399, "owner": {"id": 19}, "assignee": {"id": 1073}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 379, "assignee": {"id": 546}, "organization": {"id": 140}, "project": {"id": 335, "owner": {"id": 798}, "assignee": {"id": 841}}, "task": {"id": 357, "owner": {"id": 9}, "assignee": {"id": 1043}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 392, "assignee": {"id": 560}, "organization": {"id": 667}, "project": {"id": 381, "owner": {"id": 717}, "assignee": {"id": 851}}, "task": {"id": 324, "owner": {"id": 0}, "assignee": {"id": 1069}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 321, "assignee": {"id": 534}, "organization": {"id": 167}, "project": {"id": 394, "owner": {"id": 718}, "assignee": {"id": 859}}, "task": {"id": 311, "owner": {"id": 948}, "assignee": {"id": 85}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 385, "assignee": {"id": 549}, "organization": {"id": 698}, "project": {"id": 320, "owner": {"id": 791}, "assignee": {"id": 888}}, "task": {"id": 365, "owner": {"id": 980}, "assignee": {"id": 74}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "assignee": {"id": 561}, "organization": {"id": 187}, "project": {"id": 392, "owner": {"id": 723}, "assignee": {"id": 827}}, "task": {"id": 380, "owner": {"id": 960}, "assignee": {"id": 26}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "assignee": {"id": 583}, "organization": {"id": 635}, "project": {"id": 360, "owner": {"id": 771}, "assignee": {"id": 896}}, "task": {"id": 356, "owner": {"id": 996}, "assignee": {"id": 23}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "assignee": {"id": 573}, "organization": {"id": 111}, "project": {"id": 315, "owner": {"id": 778}, "assignee": {"id": 819}}, "task": {"id": 322, "owner": {"id": 992}, "assignee": {"id": 35}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "assignee": {"id": 522}, "organization": {"id": 689}, "project": {"id": 328, "owner": {"id": 717}, "assignee": {"id": 865}}, "task": {"id": 396, "owner": {"id": 989}, "assignee": {"id": 97}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 344, "assignee": {"id": 530}, "organization": {"id": 143}, "project": {"id": 374, "owner": {"id": 732}, "assignee": {"id": 893}}, "task": {"id": 312, "owner": {"id": 964}, "assignee": {"id": 35}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 335, "assignee": {"id": 508}, "organization": {"id": 669}, "project": {"id": 378, "owner": {"id": 721}, "assignee": {"id": 840}}, "task": {"id": 368, "owner": {"id": 967}, "assignee": {"id": 10}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 300, "assignee": {"id": 506}, "organization": {"id": 119}, "project": {"id": 344, "owner": {"id": 751}, "assignee": {"id": 828}}, "task": {"id": 303, "owner": {"id": 925}, "assignee": {"id": 64}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 360, "assignee": {"id": 524}, "organization": {"id": 641}, "project": {"id": 385, "owner": {"id": 738}, "assignee": {"id": 878}}, "task": {"id": 301, "owner": {"id": 939}, "assignee": {"id": 74}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 348, "assignee": {"id": 546}, "organization": {"id": 117}, "project": {"id": 312, "owner": {"id": 754}, "assignee": {"id": 864}}, "task": {"id": 374, "owner": {"id": 991}, "assignee": {"id": 83}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 324, "assignee": {"id": 518}, "organization": {"id": 699}, "project": {"id": 394, "owner": {"id": 746}, "assignee": {"id": 807}}, "task": {"id": 367, "owner": {"id": 953}, "assignee": {"id": 69}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "assignee": {"id": 549}, "organization": {"id": 187}, "project": {"id": 380, "owner": {"id": 726}, "assignee": {"id": 838}}, "task": {"id": 356, "owner": {"id": 949}, "assignee": {"id": 87}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "assignee": {"id": 522}, "organization": {"id": 626}, "project": {"id": 302, "owner": {"id": 773}, "assignee": {"id": 821}}, "task": {"id": 346, "owner": {"id": 969}, "assignee": {"id": 22}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "assignee": {"id": 581}, "organization": {"id": 150}, "project": {"id": 350, "owner": {"id": 759}, "assignee": {"id": 885}}, "task": {"id": 327, "owner": {"id": 950}, "assignee": {"id": 9}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "assignee": {"id": 502}, "organization": {"id": 670}, "project": {"id": 337, "owner": {"id": 749}, "assignee": {"id": 805}}, "task": {"id": 313, "owner": {"id": 960}, "assignee": {"id": 95}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 365, "assignee": {"id": 598}, "organization": {"id": 165}, "project": {"id": 330, "owner": {"id": 726}, "assignee": {"id": 889}}, "task": {"id": 351, "owner": {"id": 939}, "assignee": {"id": 6}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 385, "assignee": {"id": 563}, "organization": {"id": 636}, "project": {"id": 373, "owner": {"id": 710}, "assignee": {"id": 880}}, "task": {"id": 311, "owner": {"id": 955}, "assignee": {"id": 32}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 328, "assignee": {"id": 587}, "organization": {"id": 152}, "project": {"id": 329, "owner": {"id": 712}, "assignee": {"id": 807}}, "task": {"id": 391, "owner": {"id": 988}, "assignee": {"id": 49}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 398, "assignee": {"id": 548}, "organization": {"id": 655}, "project": {"id": 322, "owner": {"id": 796}, "assignee": {"id": 818}}, "task": {"id": 367, "owner": {"id": 935}, "assignee": {"id": 40}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 19, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 337, "assignee": {"id": 596}, "organization": {"id": 120}, "project": {"id": 368, "owner": {"id": 781}, "assignee": {"id": 842}}, "task": {"id": 358, "owner": {"id": 978}, "assignee": {"id": 19}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 345, "assignee": {"id": 509}, "organization": {"id": 697}, "project": {"id": 313, "owner": {"id": 781}, "assignee": {"id": 800}}, "task": {"id": 365, "owner": {"id": 939}, "assignee": {"id": 54}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "assignee": {"id": 593}, "organization": {"id": 149}, "project": {"id": 353, "owner": {"id": 795}, "assignee": {"id": 805}}, "task": {"id": 394, "owner": {"id": 984}, "assignee": {"id": 23}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "assignee": {"id": 553}, "organization": {"id": 675}, "project": {"id": 302, "owner": {"id": 781}, "assignee": {"id": 813}}, "task": {"id": 356, "owner": {"id": 933}, "assignee": {"id": 84}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "assignee": {"id": 581}, "organization": {"id": 103}, "project": {"id": 313, "owner": {"id": 792}, "assignee": {"id": 848}}, "task": {"id": 317, "owner": {"id": 939}, "assignee": {"id": 9}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "assignee": {"id": 580}, "organization": {"id": 662}, "project": {"id": 369, "owner": {"id": 769}, "assignee": {"id": 836}}, "task": {"id": 340, "owner": {"id": 960}, "assignee": {"id": 18}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 344, "assignee": {"id": 507}, "organization": {"id": 124}, "project": {"id": 387, "owner": {"id": 735}, "assignee": {"id": 819}}, "task": {"id": 327, "owner": {"id": 999}, "assignee": {"id": 73}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 334, "assignee": {"id": 595}, "organization": {"id": 632}, "project": {"id": 301, "owner": {"id": 758}, "assignee": {"id": 809}}, "task": {"id": 308, "owner": {"id": 982}, "assignee": {"id": 87}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 321, "assignee": {"id": 578}, "organization": {"id": 144}, "project": {"id": 347, "owner": {"id": 703}, "assignee": {"id": 821}}, "task": {"id": 331, "owner": {"id": 984}, "assignee": {"id": 3}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 395, "assignee": {"id": 503}, "organization": {"id": 654}, "project": {"id": 355, "owner": {"id": 756}, "assignee": {"id": 812}}, "task": {"id": 332, "owner": {"id": 969}, "assignee": {"id": 29}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 325, "assignee": {"id": 599}, "organization": {"id": 140}, "project": {"id": 363, "owner": {"id": 797}, "assignee": {"id": 810}}, "task": {"id": 332, "owner": {"id": 958}, "assignee": {"id": 97}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 332, "assignee": {"id": 594}, "organization": {"id": 608}, "project": {"id": 321, "owner": {"id": 772}, "assignee": {"id": 870}}, "task": {"id": 388, "owner": {"id": 921}, "assignee": {"id": 96}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "assignee": {"id": 520}, "organization": {"id": 123}, "project": {"id": 323, "owner": {"id": 764}, "assignee": {"id": 885}}, "task": {"id": 370, "owner": {"id": 909}, "assignee": {"id": 83}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "assignee": {"id": 575}, "organization": {"id": 687}, "project": {"id": 345, "owner": {"id": 717}, "assignee": {"id": 814}}, "task": {"id": 356, "owner": {"id": 950}, "assignee": {"id": 0}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "assignee": {"id": 577}, "organization": {"id": 194}, "project": {"id": 321, "owner": {"id": 742}, "assignee": {"id": 805}}, "task": {"id": 341, "owner": {"id": 997}, "assignee": {"id": 61}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "assignee": {"id": 517}, "organization": {"id": 635}, "project": {"id": 395, "owner": {"id": 776}, "assignee": {"id": 808}}, "task": {"id": 329, "owner": {"id": 976}, "assignee": {"id": 30}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 388, "assignee": {"id": 596}, "organization": {"id": 176}, "project": {"id": 346, "owner": {"id": 705}, "assignee": {"id": 894}}, "task": {"id": 396, "owner": {"id": 921}, "assignee": {"id": 32}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 319, "assignee": {"id": 530}, "organization": {"id": 671}, "project": {"id": 329, "owner": {"id": 764}, "assignee": {"id": 836}}, "task": {"id": 337, "owner": {"id": 906}, "assignee": {"id": 86}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 382, "assignee": {"id": 550}, "organization": {"id": 193}, "project": {"id": 332, "owner": {"id": 726}, "assignee": {"id": 876}}, "task": {"id": 374, "owner": {"id": 975}, "assignee": {"id": 19}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 396, "assignee": {"id": 545}, "organization": {"id": 694}, "project": {"id": 367, "owner": {"id": 702}, "assignee": {"id": 824}}, "task": {"id": 328, "owner": {"id": 903}, "assignee": {"id": 52}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 312, "assignee": {"id": 536}, "organization": {"id": 165}, "project": {"id": 352, "owner": {"id": 783}, "assignee": {"id": 831}}, "task": {"id": 316, "owner": {"id": 975}, "assignee": {"id": 5}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 302, "assignee": {"id": 542}, "organization": {"id": 607}, "project": {"id": 396, "owner": {"id": 734}, "assignee": {"id": 885}}, "task": {"id": 365, "owner": {"id": 963}, "assignee": {"id": 13}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "assignee": {"id": 540}, "organization": {"id": 107}, "project": {"id": 371, "owner": {"id": 716}, "assignee": {"id": 827}}, "task": {"id": 359, "owner": {"id": 962}, "assignee": {"id": 13}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "assignee": {"id": 561}, "organization": {"id": 632}, "project": {"id": 336, "owner": {"id": 732}, "assignee": {"id": 860}}, "task": {"id": 373, "owner": {"id": 988}, "assignee": {"id": 72}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "assignee": {"id": 560}, "organization": {"id": 132}, "project": {"id": 362, "owner": {"id": 732}, "assignee": {"id": 891}}, "task": {"id": 301, "owner": {"id": 903}, "assignee": {"id": 90}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "assignee": {"id": 567}, "organization": {"id": 686}, "project": {"id": 364, "owner": {"id": 788}, "assignee": {"id": 835}}, "task": {"id": 367, "owner": {"id": 950}, "assignee": {"id": 86}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 326, "assignee": {"id": 561}, "organization": {"id": 156}, "project": {"id": 399, "owner": {"id": 735}, "assignee": {"id": 876}}, "task": {"id": 348, "owner": {"id": 951}, "assignee": {"id": 0}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 328, "assignee": {"id": 550}, "organization": {"id": 648}, "project": {"id": 393, "owner": {"id": 707}, "assignee": {"id": 898}}, "task": {"id": 337, "owner": {"id": 960}, "assignee": {"id": 13}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 371, "assignee": {"id": 513}, "organization": {"id": 181}, "project": {"id": 300, "owner": {"id": 724}, "assignee": {"id": 855}}, "task": {"id": 366, "owner": {"id": 976}, "assignee": {"id": 64}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 345, "assignee": {"id": 516}, "organization": {"id": 668}, "project": {"id": 386, "owner": {"id": 774}, "assignee": {"id": 880}}, "task": {"id": 336, "owner": {"id": 900}, "assignee": {"id": 27}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 399, "assignee": {"id": 90}, "organization": {"id": 142}, "project": {"id": 351, "owner": {"id": 702}, "assignee": {"id": 817}}, "task": {"id": 350, "owner": {"id": 977}, "assignee": {"id": 1099}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 356, "assignee": {"id": 6}, "organization": {"id": 616}, "project": {"id": 388, "owner": {"id": 755}, "assignee": {"id": 853}}, "task": {"id": 371, "owner": {"id": 937}, "assignee": {"id": 1071}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "assignee": {"id": 40}, "organization": {"id": 119}, "project": {"id": 325, "owner": {"id": 751}, "assignee": {"id": 860}}, "task": {"id": 366, "owner": {"id": 908}, "assignee": {"id": 1058}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "assignee": {"id": 20}, "organization": {"id": 608}, "project": {"id": 331, "owner": {"id": 743}, "assignee": {"id": 831}}, "task": {"id": 362, "owner": {"id": 949}, "assignee": {"id": 1034}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "assignee": {"id": 30}, "organization": {"id": 176}, "project": {"id": 328, "owner": {"id": 701}, "assignee": {"id": 826}}, "task": {"id": 379, "owner": {"id": 997}, "assignee": {"id": 1045}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "assignee": {"id": 24}, "organization": {"id": 689}, "project": {"id": 350, "owner": {"id": 705}, "assignee": {"id": 866}}, "task": {"id": 383, "owner": {"id": 968}, "assignee": {"id": 1044}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 371, "assignee": {"id": 79}, "organization": {"id": 177}, "project": {"id": 337, "owner": {"id": 790}, "assignee": {"id": 803}}, "task": {"id": 311, "owner": {"id": 910}, "assignee": {"id": 1032}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 392, "assignee": {"id": 83}, "organization": {"id": 658}, "project": {"id": 342, "owner": {"id": 734}, "assignee": {"id": 893}}, "task": {"id": 362, "owner": {"id": 925}, "assignee": {"id": 1086}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 304, "assignee": {"id": 68}, "organization": {"id": 108}, "project": {"id": 375, "owner": {"id": 778}, "assignee": {"id": 805}}, "task": {"id": 373, "owner": {"id": 953}, "assignee": {"id": 1058}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 339, "assignee": {"id": 49}, "organization": {"id": 649}, "project": {"id": 343, "owner": {"id": 773}, "assignee": {"id": 861}}, "task": {"id": 357, "owner": {"id": 929}, "assignee": {"id": 1078}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 26, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 304, "assignee": {"id": 26}, "organization": {"id": 151}, "project": {"id": 398, "owner": {"id": 787}, "assignee": {"id": 832}}, "task": {"id": 302, "owner": {"id": 943}, "assignee": {"id": 1060}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 393, "assignee": {"id": 90}, "organization": {"id": 612}, "project": {"id": 306, "owner": {"id": 766}, "assignee": {"id": 895}}, "task": {"id": 302, "owner": {"id": 937}, "assignee": {"id": 1014}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "assignee": {"id": 20}, "organization": {"id": 113}, "project": {"id": 381, "owner": {"id": 735}, "assignee": {"id": 827}}, "task": {"id": 304, "owner": {"id": 960}, "assignee": {"id": 1091}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "assignee": {"id": 54}, "organization": {"id": 664}, "project": {"id": 358, "owner": {"id": 784}, "assignee": {"id": 858}}, "task": {"id": 308, "owner": {"id": 986}, "assignee": {"id": 1092}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "assignee": {"id": 39}, "organization": {"id": 197}, "project": {"id": 364, "owner": {"id": 759}, "assignee": {"id": 823}}, "task": {"id": 329, "owner": {"id": 952}, "assignee": {"id": 1031}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "assignee": {"id": 57}, "organization": {"id": 633}, "project": {"id": 368, "owner": {"id": 742}, "assignee": {"id": 856}}, "task": {"id": 371, "owner": {"id": 991}, "assignee": {"id": 1053}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 349, "assignee": {"id": 98}, "organization": {"id": 175}, "project": {"id": 388, "owner": {"id": 720}, "assignee": {"id": 870}}, "task": {"id": 308, "owner": {"id": 970}, "assignee": {"id": 1018}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 321, "assignee": {"id": 83}, "organization": {"id": 697}, "project": {"id": 371, "owner": {"id": 779}, "assignee": {"id": 882}}, "task": {"id": 368, "owner": {"id": 965}, "assignee": {"id": 1046}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 373, "assignee": {"id": 37}, "organization": {"id": 112}, "project": {"id": 308, "owner": {"id": 779}, "assignee": {"id": 851}}, "task": {"id": 303, "owner": {"id": 981}, "assignee": {"id": 1067}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 389, "assignee": {"id": 91}, "organization": {"id": 686}, "project": {"id": 371, "owner": {"id": 799}, "assignee": {"id": 842}}, "task": {"id": 347, "owner": {"id": 924}, "assignee": {"id": 1059}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 390, "assignee": {"id": 47}, "organization": {"id": 172}, "project": {"id": 358, "owner": {"id": 753}, "assignee": {"id": 826}}, "task": {"id": 315, "owner": {"id": 967}, "assignee": {"id": 1041}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 363, "assignee": {"id": 70}, "organization": {"id": 663}, "project": {"id": 315, "owner": {"id": 755}, "assignee": {"id": 896}}, "task": {"id": 379, "owner": {"id": 932}, "assignee": {"id": 1032}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "assignee": {"id": 4}, "organization": {"id": 156}, "project": {"id": 300, "owner": {"id": 700}, "assignee": {"id": 807}}, "task": {"id": 395, "owner": {"id": 993}, "assignee": {"id": 1034}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "assignee": {"id": 39}, "organization": {"id": 619}, "project": {"id": 330, "owner": {"id": 799}, "assignee": {"id": 815}}, "task": {"id": 306, "owner": {"id": 993}, "assignee": {"id": 1054}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "assignee": {"id": 20}, "organization": {"id": 122}, "project": {"id": 362, "owner": {"id": 720}, "assignee": {"id": 874}}, "task": {"id": 352, "owner": {"id": 967}, "assignee": {"id": 1094}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 371, "assignee": {"id": 95}, "organization": {"id": 684}, "project": {"id": 342, "owner": {"id": 795}, "assignee": {"id": 839}}, "task": {"id": 319, "owner": {"id": 958}, "assignee": {"id": 1026}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 375, "assignee": {"id": 82}, "organization": {"id": 176}, "project": {"id": 373, "owner": {"id": 794}, "assignee": {"id": 876}}, "task": {"id": 319, "owner": {"id": 947}, "assignee": {"id": 1014}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 388, "assignee": {"id": 46}, "organization": {"id": 652}, "project": {"id": 352, "owner": {"id": 780}, "assignee": {"id": 841}}, "task": {"id": 335, "owner": {"id": 957}, "assignee": {"id": 1093}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 371, "assignee": {"id": 89}, "organization": {"id": 141}, "project": {"id": 393, "owner": {"id": 731}, "assignee": {"id": 885}}, "task": {"id": 361, "owner": {"id": 908}, "assignee": {"id": 1007}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 375, "assignee": {"id": 55}, "organization": {"id": 689}, "project": {"id": 318, "owner": {"id": 745}, "assignee": {"id": 882}}, "task": {"id": 391, "owner": {"id": 975}, "assignee": {"id": 1007}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 358, "assignee": {"id": 81}, "organization": {"id": 113}, "project": {"id": 341, "owner": {"id": 724}, "assignee": {"id": 891}}, "task": {"id": 351, "owner": {"id": 900}, "assignee": {"id": 1098}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 337, "assignee": {"id": 7}, "organization": {"id": 689}, "project": {"id": 302, "owner": {"id": 732}, "assignee": {"id": 807}}, "task": {"id": 320, "owner": {"id": 944}, "assignee": {"id": 1048}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "assignee": {"id": 18}, "organization": {"id": 161}, "project": {"id": 352, "owner": {"id": 787}, "assignee": {"id": 850}}, "task": {"id": 363, "owner": {"id": 959}, "assignee": {"id": 1045}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "assignee": {"id": 59}, "organization": {"id": 614}, "project": {"id": 319, "owner": {"id": 757}, "assignee": {"id": 873}}, "task": {"id": 390, "owner": {"id": 994}, "assignee": {"id": 1088}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "assignee": {"id": 89}, "organization": {"id": 158}, "project": {"id": 341, "owner": {"id": 701}, "assignee": {"id": 852}}, "task": {"id": 397, "owner": {"id": 937}, "assignee": {"id": 1022}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "assignee": {"id": 80}, "organization": {"id": 677}, "project": {"id": 303, "owner": {"id": 788}, "assignee": {"id": 837}}, "task": {"id": 326, "owner": {"id": 965}, "assignee": {"id": 1070}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 392, "assignee": {"id": 94}, "organization": {"id": 144}, "project": {"id": 350, "owner": {"id": 717}, "assignee": {"id": 821}}, "task": {"id": 356, "owner": {"id": 904}, "assignee": {"id": 1018}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 331, "assignee": {"id": 39}, "organization": {"id": 650}, "project": {"id": 381, "owner": {"id": 729}, "assignee": {"id": 873}}, "task": {"id": 308, "owner": {"id": 940}, "assignee": {"id": 1065}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 361, "assignee": {"id": 20}, "organization": {"id": 183}, "project": {"id": 353, "owner": {"id": 706}, "assignee": {"id": 836}}, "task": {"id": 349, "owner": {"id": 959}, "assignee": {"id": 1065}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"id": 387, "assignee": {"id": 90}, "organization": {"id": 655}, "project": {"id": 379, "owner": {"id": 702}, "assignee": {"id": 850}}, "task": {"id": 388, "owner": {"id": 913}, "assignee": {"id": 1040}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 304, "assignee": {"id": 79}, "organization": {"id": 160}, "project": {"id": 350, "owner": {"id": 708}, "assignee": {"id": 830}}, "task": {"id": 332, "owner": {"id": 903}, "assignee": {"id": 1089}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 311, "assignee": {"id": 56}, "organization": {"id": 619}, "project": {"id": 398, "owner": {"id": 786}, "assignee": {"id": 807}}, "task": {"id": 391, "owner": {"id": 955}, "assignee": {"id": 1049}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "assignee": {"id": 35}, "organization": {"id": 120}, "project": {"id": 300, "owner": {"id": 741}, "assignee": {"id": 829}}, "task": {"id": 394, "owner": {"id": 981}, "assignee": {"id": 1022}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "assignee": {"id": 89}, "organization": {"id": 688}, "project": {"id": 352, "owner": {"id": 772}, "assignee": {"id": 835}}, "task": {"id": 328, "owner": {"id": 942}, "assignee": {"id": 1028}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "assignee": {"id": 8}, "organization": {"id": 130}, "project": {"id": 359, "owner": {"id": 770}, "assignee": {"id": 885}}, "task": {"id": 301, "owner": {"id": 946}, "assignee": {"id": 1070}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "assignee": {"id": 56}, "organization": {"id": 657}, "project": {"id": 328, "owner": {"id": 723}, "assignee": {"id": 814}}, "task": {"id": 328, "owner": {"id": 948}, "assignee": {"id": 1099}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 383, "assignee": {"id": 14}, "organization": {"id": 140}, "project": {"id": 337, "owner": {"id": 745}, "assignee": {"id": 842}}, "task": {"id": 347, "owner": {"id": 917}, "assignee": {"id": 1052}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 303, "assignee": {"id": 46}, "organization": {"id": 601}, "project": {"id": 394, "owner": {"id": 744}, "assignee": {"id": 885}}, "task": {"id": 346, "owner": {"id": 963}, "assignee": {"id": 1001}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 347, "assignee": {"id": 16}, "organization": {"id": 198}, "project": {"id": 351, "owner": {"id": 768}, "assignee": {"id": 863}}, "task": {"id": 334, "owner": {"id": 937}, "assignee": {"id": 1011}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 343, "assignee": {"id": 22}, "organization": {"id": 675}, "project": {"id": 374, "owner": {"id": 789}, "assignee": {"id": 869}}, "task": {"id": 375, "owner": {"id": 955}, "assignee": {"id": 1083}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 350, "assignee": {"id": 576}, "organization": {"id": 182}, "project": {"id": 351, "owner": {"id": 731}, "assignee": {"id": 840}}, "task": {"id": 355, "owner": {"id": 903}, "assignee": {"id": 1004}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 342, "assignee": {"id": 585}, "organization": {"id": 644}, "project": {"id": 308, "owner": {"id": 746}, "assignee": {"id": 811}}, "task": {"id": 361, "owner": {"id": 997}, "assignee": {"id": 1075}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "assignee": {"id": 509}, "organization": {"id": 108}, "project": {"id": 325, "owner": {"id": 760}, "assignee": {"id": 866}}, "task": {"id": 332, "owner": {"id": 975}, "assignee": {"id": 1042}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 358, "assignee": {"id": 525}, "organization": {"id": 634}, "project": {"id": 397, "owner": {"id": 732}, "assignee": {"id": 842}}, "task": {"id": 367, "owner": {"id": 982}, "assignee": {"id": 1002}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "assignee": {"id": 554}, "organization": {"id": 150}, "project": {"id": 320, "owner": {"id": 714}, "assignee": {"id": 825}}, "task": {"id": 334, "owner": {"id": 953}, "assignee": {"id": 1097}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 387, "assignee": {"id": 548}, "organization": {"id": 609}, "project": {"id": 340, "owner": {"id": 719}, "assignee": {"id": 889}}, "task": {"id": 355, "owner": {"id": 998}, "assignee": {"id": 1042}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 316, "assignee": {"id": 586}, "organization": {"id": 100}, "project": {"id": 399, "owner": {"id": 757}, "assignee": {"id": 805}}, "task": {"id": 394, "owner": {"id": 986}, "assignee": {"id": 1065}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 334, "assignee": {"id": 567}, "organization": {"id": 688}, "project": {"id": 313, "owner": {"id": 721}, "assignee": {"id": 874}}, "task": {"id": 392, "owner": {"id": 956}, "assignee": {"id": 1009}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 334, "assignee": {"id": 505}, "organization": {"id": 138}, "project": {"id": 371, "owner": {"id": 776}, "assignee": {"id": 884}}, "task": {"id": 332, "owner": {"id": 931}, "assignee": {"id": 1057}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 385, "assignee": {"id": 597}, "organization": {"id": 682}, "project": {"id": 393, "owner": {"id": 793}, "assignee": {"id": 815}}, "task": {"id": 317, "owner": {"id": 951}, "assignee": {"id": 1065}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 376, "assignee": {"id": 531}, "organization": {"id": 175}, "project": {"id": 393, "owner": {"id": 701}, "assignee": {"id": 866}}, "task": {"id": 302, "owner": {"id": 941}, "assignee": {"id": 1065}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 301, "assignee": {"id": 542}, "organization": {"id": 683}, "project": {"id": 365, "owner": {"id": 705}, "assignee": {"id": 869}}, "task": {"id": 315, "owner": {"id": 934}, "assignee": {"id": 1002}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "assignee": {"id": 503}, "organization": {"id": 143}, "project": {"id": 304, "owner": {"id": 770}, "assignee": {"id": 894}}, "task": {"id": 314, "owner": {"id": 988}, "assignee": {"id": 1092}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "assignee": {"id": 528}, "organization": {"id": 643}, "project": {"id": 382, "owner": {"id": 766}, "assignee": {"id": 892}}, "task": {"id": 384, "owner": {"id": 955}, "assignee": {"id": 1075}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "assignee": {"id": 513}, "organization": {"id": 138}, "project": {"id": 330, "owner": {"id": 708}, "assignee": {"id": 812}}, "task": {"id": 352, "owner": {"id": 989}, "assignee": {"id": 1053}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "assignee": {"id": 517}, "organization": {"id": 681}, "project": {"id": 309, "owner": {"id": 720}, "assignee": {"id": 837}}, "task": {"id": 355, "owner": {"id": 957}, "assignee": {"id": 1054}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 364, "assignee": {"id": 514}, "organization": {"id": 124}, "project": {"id": 390, "owner": {"id": 787}, "assignee": {"id": 892}}, "task": {"id": 393, "owner": {"id": 944}, "assignee": {"id": 1072}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 399, "assignee": {"id": 520}, "organization": {"id": 606}, "project": {"id": 358, "owner": {"id": 734}, "assignee": {"id": 879}}, "task": {"id": 365, "owner": {"id": 971}, "assignee": {"id": 1033}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 31, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 341, "assignee": {"id": 576}, "organization": {"id": 128}, "project": {"id": 322, "owner": {"id": 749}, "assignee": {"id": 800}}, "task": {"id": 374, "owner": {"id": 919}, "assignee": {"id": 1000}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 392, "assignee": {"id": 533}, "organization": {"id": 695}, "project": {"id": 355, "owner": {"id": 747}, "assignee": {"id": 853}}, "task": {"id": 387, "owner": {"id": 945}, "assignee": {"id": 1063}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 353, "assignee": {"id": 550}, "organization": {"id": 173}, "project": {"id": 362, "owner": {"id": 765}, "assignee": {"id": 880}}, "task": {"id": 312, "owner": {"id": 927}, "assignee": {"id": 1002}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 344, "assignee": {"id": 507}, "organization": {"id": 638}, "project": {"id": 330, "owner": {"id": 764}, "assignee": {"id": 872}}, "task": {"id": 386, "owner": {"id": 996}, "assignee": {"id": 1050}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "assignee": {"id": 534}, "organization": {"id": 141}, "project": {"id": 305, "owner": {"id": 767}, "assignee": {"id": 849}}, "task": {"id": 318, "owner": {"id": 992}, "assignee": {"id": 1090}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "assignee": {"id": 598}, "organization": {"id": 616}, "project": {"id": 328, "owner": {"id": 702}, "assignee": {"id": 860}}, "task": {"id": 318, "owner": {"id": 934}, "assignee": {"id": 1093}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "assignee": {"id": 512}, "organization": {"id": 146}, "project": {"id": 352, "owner": {"id": 712}, "assignee": {"id": 827}}, "task": {"id": 385, "owner": {"id": 972}, "assignee": {"id": 1046}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "assignee": {"id": 541}, "organization": {"id": 669}, "project": {"id": 350, "owner": {"id": 715}, "assignee": {"id": 864}}, "task": {"id": 395, "owner": {"id": 901}, "assignee": {"id": 1088}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 373, "assignee": {"id": 531}, "organization": {"id": 118}, "project": {"id": 304, "owner": {"id": 766}, "assignee": {"id": 828}}, "task": {"id": 347, "owner": {"id": 934}, "assignee": {"id": 1081}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 381, "assignee": {"id": 560}, "organization": {"id": 665}, "project": {"id": 367, "owner": {"id": 745}, "assignee": {"id": 872}}, "task": {"id": 369, "owner": {"id": 965}, "assignee": {"id": 1015}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 355, "assignee": {"id": 578}, "organization": {"id": 176}, "project": {"id": 347, "owner": {"id": 748}, "assignee": {"id": 878}}, "task": {"id": 325, "owner": {"id": 922}, "assignee": {"id": 1047}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 318, "assignee": {"id": 558}, "organization": {"id": 655}, "project": {"id": 388, "owner": {"id": 720}, "assignee": {"id": 817}}, "task": {"id": 330, "owner": {"id": 953}, "assignee": {"id": 1068}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 360, "assignee": {"id": 543}, "organization": {"id": 190}, "project": {"id": 332, "owner": {"id": 715}, "assignee": {"id": 868}}, "task": {"id": 326, "owner": {"id": 978}, "assignee": {"id": 1094}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 344, "assignee": {"id": 543}, "organization": {"id": 681}, "project": {"id": 360, "owner": {"id": 771}, "assignee": {"id": 895}}, "task": {"id": 399, "owner": {"id": 904}, "assignee": {"id": 1020}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "assignee": {"id": 558}, "organization": {"id": 146}, "project": {"id": 310, "owner": {"id": 786}, "assignee": {"id": 803}}, "task": {"id": 353, "owner": {"id": 916}, "assignee": {"id": 1072}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "assignee": {"id": 595}, "organization": {"id": 649}, "project": {"id": 384, "owner": {"id": 797}, "assignee": {"id": 873}}, "task": {"id": 336, "owner": {"id": 934}, "assignee": {"id": 1058}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "assignee": {"id": 527}, "organization": {"id": 103}, "project": {"id": 312, "owner": {"id": 782}, "assignee": {"id": 836}}, "task": {"id": 389, "owner": {"id": 931}, "assignee": {"id": 1079}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "assignee": {"id": 523}, "organization": {"id": 630}, "project": {"id": 394, "owner": {"id": 789}, "assignee": {"id": 815}}, "task": {"id": 367, "owner": {"id": 955}, "assignee": {"id": 1084}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"id": 373, "assignee": {"id": 581}, "organization": {"id": 161}, "project": {"id": 354, "owner": {"id": 754}, "assignee": {"id": 881}}, "task": {"id": 362, "owner": {"id": 995}, "assignee": {"id": 1032}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"id": 381, "assignee": {"id": 517}, "organization": {"id": 696}, "project": {"id": 306, "owner": {"id": 791}, "assignee": {"id": 812}}, "task": {"id": 310, "owner": {"id": 984}, "assignee": {"id": 1007}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 329, "assignee": {"id": 565}, "organization": {"id": 110}, "project": {"id": 331, "owner": {"id": 794}, "assignee": {"id": 859}}, "task": {"id": 371, "owner": {"id": 922}, "assignee": {"id": 1050}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 369, "assignee": {"id": 557}, "organization": {"id": 660}, "project": {"id": 391, "owner": {"id": 760}, "assignee": {"id": 879}}, "task": {"id": 396, "owner": {"id": 944}, "assignee": {"id": 1082}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 336, "assignee": {"id": 518}, "organization": {"id": 133}, "project": {"id": 341, "owner": {"id": 727}, "assignee": {"id": 875}}, "task": {"id": 328, "owner": {"id": 978}, "assignee": {"id": 1016}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 346, "assignee": {"id": 597}, "organization": {"id": 663}, "project": {"id": 361, "owner": {"id": 757}, "assignee": {"id": 898}}, "task": {"id": 323, "owner": {"id": 958}, "assignee": {"id": 1058}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "assignee": {"id": 543}, "organization": {"id": 111}, "project": {"id": 321, "owner": {"id": 713}, "assignee": {"id": 884}}, "task": {"id": 366, "owner": {"id": 967}, "assignee": {"id": 1044}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "assignee": {"id": 567}, "organization": {"id": 639}, "project": {"id": 355, "owner": {"id": 704}, "assignee": {"id": 829}}, "task": {"id": 391, "owner": {"id": 948}, "assignee": {"id": 1024}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "assignee": {"id": 591}, "organization": {"id": 197}, "project": {"id": 368, "owner": {"id": 762}, "assignee": {"id": 869}}, "task": {"id": 364, "owner": {"id": 938}, "assignee": {"id": 1022}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "assignee": {"id": 536}, "organization": {"id": 659}, "project": {"id": 342, "owner": {"id": 788}, "assignee": {"id": 880}}, "task": {"id": 388, "owner": {"id": 975}, "assignee": {"id": 1098}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 384, "assignee": {"id": 564}, "organization": {"id": 189}, "project": {"id": 339, "owner": {"id": 757}, "assignee": {"id": 896}}, "task": {"id": 360, "owner": {"id": 907}, "assignee": {"id": 1049}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 331, "assignee": {"id": 587}, "organization": {"id": 675}, "project": {"id": 322, "owner": {"id": 767}, "assignee": {"id": 843}}, "task": {"id": 330, "owner": {"id": 916}, "assignee": {"id": 1082}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 340, "assignee": {"id": 539}, "organization": {"id": 175}, "project": {"id": 310, "owner": {"id": 753}, "assignee": {"id": 891}}, "task": {"id": 385, "owner": {"id": 990}, "assignee": {"id": 1082}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 352, "assignee": {"id": 595}, "organization": {"id": 656}, "project": {"id": 382, "owner": {"id": 757}, "assignee": {"id": 867}}, "task": {"id": 385, "owner": {"id": 908}, "assignee": {"id": 1066}}}} -} - -test_scope_VIEW_COMMITS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 7, "privilege": "admin"}, "organization": null}, "resource": {"id": 312, "assignee": {"id": 595}, "organization": {"id": 632}, "project": {"id": 322, "owner": {"id": 7}, "assignee": {"id": 852}}, "task": {"id": 385, "owner": {"id": 953}, "assignee": {"id": 1076}}}} -} - -test_scope_VIEW_COMMITS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": null}, "resource": {"id": 386, "assignee": {"id": 557}, "organization": {"id": 687}, "project": {"id": 361, "owner": {"id": 16}, "assignee": {"id": 856}}, "task": {"id": 327, "owner": {"id": 932}, "assignee": {"id": 1092}}}} -} - -test_scope_VIEW_COMMITS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": null}, "resource": {"id": 348, "assignee": {"id": 562}, "organization": {"id": 626}, "project": {"id": 340, "owner": {"id": 11}, "assignee": {"id": 801}}, "task": {"id": 360, "owner": {"id": 971}, "assignee": {"id": 1097}}}} -} - -test_scope_VIEW_COMMITS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": null}, "resource": {"id": 364, "assignee": {"id": 513}, "organization": {"id": 611}, "project": {"id": 326, "owner": {"id": 25}, "assignee": {"id": 883}}, "task": {"id": 346, "owner": {"id": 997}, "assignee": {"id": 1096}}}} -} - -test_scope_VIEW_COMMITS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": null}, "resource": {"id": 309, "assignee": {"id": 546}, "organization": {"id": 663}, "project": {"id": 361, "owner": {"id": 8}, "assignee": {"id": 888}}, "task": {"id": 317, "owner": {"id": 994}, "assignee": {"id": 1077}}}} -} - -test_scope_VIEW_COMMITS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": null}, "resource": {"id": 387, "assignee": {"id": 519}, "organization": {"id": 666}, "project": {"id": 331, "owner": {"id": 713}, "assignee": {"id": 45}}, "task": {"id": 301, "owner": {"id": 915}, "assignee": {"id": 1070}}}} -} - -test_scope_VIEW_COMMITS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": null}, "resource": {"id": 323, "assignee": {"id": 527}, "organization": {"id": 662}, "project": {"id": 337, "owner": {"id": 726}, "assignee": {"id": 36}}, "task": {"id": 381, "owner": {"id": 963}, "assignee": {"id": 1031}}}} -} - -test_scope_VIEW_COMMITS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": null}, "resource": {"id": 392, "assignee": {"id": 576}, "organization": {"id": 649}, "project": {"id": 308, "owner": {"id": 755}, "assignee": {"id": 43}}, "task": {"id": 372, "owner": {"id": 940}, "assignee": {"id": 1023}}}} -} - -test_scope_VIEW_COMMITS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": null}, "resource": {"id": 307, "assignee": {"id": 599}, "organization": {"id": 697}, "project": {"id": 352, "owner": {"id": 743}, "assignee": {"id": 91}}, "task": {"id": 325, "owner": {"id": 947}, "assignee": {"id": 1024}}}} -} - -test_scope_VIEW_COMMITS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": null}, "resource": {"id": 303, "assignee": {"id": 587}, "organization": {"id": 610}, "project": {"id": 302, "owner": {"id": 756}, "assignee": {"id": 88}}, "task": {"id": 329, "owner": {"id": 990}, "assignee": {"id": 1023}}}} -} - -test_scope_VIEW_COMMITS_context_SANDBOX_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": null}, "resource": {"id": 305, "assignee": {"id": 552}, "organization": {"id": 677}, "project": {"id": 353, "owner": {"id": 757}, "assignee": {"id": 823}}, "task": {"id": 308, "owner": {"id": 68}, "assignee": {"id": 1016}}}} -} - -test_scope_VIEW_COMMITS_context_SANDBOX_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": null}, "resource": {"id": 381, "assignee": {"id": 585}, "organization": {"id": 656}, "project": {"id": 361, "owner": {"id": 784}, "assignee": {"id": 816}}, "task": {"id": 345, "owner": {"id": 5}, "assignee": {"id": 1037}}}} -} - -test_scope_VIEW_COMMITS_context_SANDBOX_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": null}, "resource": {"id": 338, "assignee": {"id": 504}, "organization": {"id": 682}, "project": {"id": 370, "owner": {"id": 775}, "assignee": {"id": 817}}, "task": {"id": 316, "owner": {"id": 2}, "assignee": {"id": 1061}}}} -} - -test_scope_VIEW_COMMITS_context_SANDBOX_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": null}, "resource": {"id": 392, "assignee": {"id": 570}, "organization": {"id": 697}, "project": {"id": 369, "owner": {"id": 794}, "assignee": {"id": 853}}, "task": {"id": 363, "owner": {"id": 40}, "assignee": {"id": 1021}}}} -} - -test_scope_VIEW_COMMITS_context_SANDBOX_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": null}, "resource": {"id": 307, "assignee": {"id": 580}, "organization": {"id": 672}, "project": {"id": 382, "owner": {"id": 764}, "assignee": {"id": 878}}, "task": {"id": 357, "owner": {"id": 29}, "assignee": {"id": 1059}}}} -} - -test_scope_VIEW_COMMITS_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": null}, "resource": {"id": 362, "assignee": {"id": 536}, "organization": {"id": 684}, "project": {"id": 386, "owner": {"id": 715}, "assignee": {"id": 839}}, "task": {"id": 355, "owner": {"id": 933}, "assignee": {"id": 34}}}} -} - -test_scope_VIEW_COMMITS_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": null}, "resource": {"id": 357, "assignee": {"id": 531}, "organization": {"id": 631}, "project": {"id": 319, "owner": {"id": 752}, "assignee": {"id": 816}}, "task": {"id": 357, "owner": {"id": 957}, "assignee": {"id": 54}}}} -} - -test_scope_VIEW_COMMITS_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": null}, "resource": {"id": 324, "assignee": {"id": 525}, "organization": {"id": 613}, "project": {"id": 383, "owner": {"id": 740}, "assignee": {"id": 885}}, "task": {"id": 393, "owner": {"id": 912}, "assignee": {"id": 2}}}} -} - -test_scope_VIEW_COMMITS_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": null}, "resource": {"id": 331, "assignee": {"id": 543}, "organization": {"id": 605}, "project": {"id": 353, "owner": {"id": 716}, "assignee": {"id": 808}}, "task": {"id": 307, "owner": {"id": 967}, "assignee": {"id": 4}}}} -} - -test_scope_VIEW_COMMITS_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": null}, "resource": {"id": 366, "assignee": {"id": 591}, "organization": {"id": 668}, "project": {"id": 367, "owner": {"id": 778}, "assignee": {"id": 821}}, "task": {"id": 308, "owner": {"id": 929}, "assignee": {"id": 59}}}} -} - -test_scope_VIEW_COMMITS_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": null}, "resource": {"id": 304, "assignee": {"id": 12}, "organization": {"id": 674}, "project": {"id": 306, "owner": {"id": 793}, "assignee": {"id": 824}}, "task": {"id": 314, "owner": {"id": 956}, "assignee": {"id": 1018}}}} -} - -test_scope_VIEW_COMMITS_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": null}, "resource": {"id": 377, "assignee": {"id": 90}, "organization": {"id": 681}, "project": {"id": 373, "owner": {"id": 746}, "assignee": {"id": 803}}, "task": {"id": 370, "owner": {"id": 909}, "assignee": {"id": 1076}}}} -} - -test_scope_VIEW_COMMITS_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": null}, "resource": {"id": 366, "assignee": {"id": 70}, "organization": {"id": 690}, "project": {"id": 367, "owner": {"id": 776}, "assignee": {"id": 891}}, "task": {"id": 314, "owner": {"id": 951}, "assignee": {"id": 1093}}}} -} - -test_scope_VIEW_COMMITS_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": null}, "resource": {"id": 303, "assignee": {"id": 1}, "organization": {"id": 640}, "project": {"id": 360, "owner": {"id": 775}, "assignee": {"id": 848}}, "task": {"id": 345, "owner": {"id": 954}, "assignee": {"id": 1033}}}} -} - -test_scope_VIEW_COMMITS_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": null}, "resource": {"id": 336, "assignee": {"id": 96}, "organization": {"id": 632}, "project": {"id": 341, "owner": {"id": 724}, "assignee": {"id": 897}}, "task": {"id": 329, "owner": {"id": 912}, "assignee": {"id": 1055}}}} -} - -test_scope_VIEW_COMMITS_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": null}, "resource": {"id": 312, "assignee": {"id": 585}, "organization": {"id": 654}, "project": {"id": 364, "owner": {"id": 798}, "assignee": {"id": 846}}, "task": {"id": 319, "owner": {"id": 946}, "assignee": {"id": 1030}}}} -} - -test_scope_VIEW_COMMITS_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": null}, "resource": {"id": 365, "assignee": {"id": 568}, "organization": {"id": 694}, "project": {"id": 395, "owner": {"id": 783}, "assignee": {"id": 806}}, "task": {"id": 350, "owner": {"id": 964}, "assignee": {"id": 1025}}}} -} - -test_scope_VIEW_COMMITS_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": null}, "resource": {"id": 390, "assignee": {"id": 578}, "organization": {"id": 636}, "project": {"id": 318, "owner": {"id": 743}, "assignee": {"id": 806}}, "task": {"id": 384, "owner": {"id": 942}, "assignee": {"id": 1072}}}} -} - -test_scope_VIEW_COMMITS_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": null}, "resource": {"id": 304, "assignee": {"id": 571}, "organization": {"id": 661}, "project": {"id": 331, "owner": {"id": 767}, "assignee": {"id": 896}}, "task": {"id": 341, "owner": {"id": 990}, "assignee": {"id": 1060}}}} -} - -test_scope_VIEW_COMMITS_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": null}, "resource": {"id": 303, "assignee": {"id": 556}, "organization": {"id": 662}, "project": {"id": 301, "owner": {"id": 701}, "assignee": {"id": 841}}, "task": {"id": 329, "owner": {"id": 945}, "assignee": {"id": 1041}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 315, "assignee": {"id": 599}, "organization": {"id": 129}, "project": {"id": 303, "owner": {"id": 95}, "assignee": {"id": 871}}, "task": {"id": 322, "owner": {"id": 972}, "assignee": {"id": 1083}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 341, "assignee": {"id": 507}, "organization": {"id": 617}, "project": {"id": 393, "owner": {"id": 70}, "assignee": {"id": 835}}, "task": {"id": 362, "owner": {"id": 961}, "assignee": {"id": 1075}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "assignee": {"id": 565}, "organization": {"id": 198}, "project": {"id": 394, "owner": {"id": 54}, "assignee": {"id": 828}}, "task": {"id": 359, "owner": {"id": 908}, "assignee": {"id": 1047}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "assignee": {"id": 541}, "organization": {"id": 630}, "project": {"id": 327, "owner": {"id": 48}, "assignee": {"id": 804}}, "task": {"id": 357, "owner": {"id": 998}, "assignee": {"id": 1002}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 387, "assignee": {"id": 563}, "organization": {"id": 111}, "project": {"id": 382, "owner": {"id": 29}, "assignee": {"id": 889}}, "task": {"id": 351, "owner": {"id": 927}, "assignee": {"id": 1097}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "assignee": {"id": 508}, "organization": {"id": 691}, "project": {"id": 355, "owner": {"id": 43}, "assignee": {"id": 811}}, "task": {"id": 313, "owner": {"id": 975}, "assignee": {"id": 1042}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 303, "assignee": {"id": 576}, "organization": {"id": 107}, "project": {"id": 362, "owner": {"id": 87}, "assignee": {"id": 892}}, "task": {"id": 314, "owner": {"id": 924}, "assignee": {"id": 1032}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 362, "assignee": {"id": 563}, "organization": {"id": 679}, "project": {"id": 309, "owner": {"id": 73}, "assignee": {"id": 801}}, "task": {"id": 399, "owner": {"id": 927}, "assignee": {"id": 1062}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 36, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 327, "assignee": {"id": 503}, "organization": {"id": 147}, "project": {"id": 312, "owner": {"id": 36}, "assignee": {"id": 874}}, "task": {"id": 317, "owner": {"id": 906}, "assignee": {"id": 1001}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 316, "assignee": {"id": 505}, "organization": {"id": 661}, "project": {"id": 318, "owner": {"id": 88}, "assignee": {"id": 850}}, "task": {"id": 323, "owner": {"id": 934}, "assignee": {"id": 1057}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 338, "assignee": {"id": 555}, "organization": {"id": 198}, "project": {"id": 334, "owner": {"id": 7}, "assignee": {"id": 831}}, "task": {"id": 318, "owner": {"id": 946}, "assignee": {"id": 1041}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 342, "assignee": {"id": 517}, "organization": {"id": 673}, "project": {"id": 384, "owner": {"id": 49}, "assignee": {"id": 803}}, "task": {"id": 342, "owner": {"id": 991}, "assignee": {"id": 1028}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "assignee": {"id": 515}, "organization": {"id": 144}, "project": {"id": 303, "owner": {"id": 79}, "assignee": {"id": 820}}, "task": {"id": 395, "owner": {"id": 993}, "assignee": {"id": 1004}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "assignee": {"id": 584}, "organization": {"id": 677}, "project": {"id": 302, "owner": {"id": 1}, "assignee": {"id": 840}}, "task": {"id": 389, "owner": {"id": 989}, "assignee": {"id": 1041}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "assignee": {"id": 577}, "organization": {"id": 141}, "project": {"id": 353, "owner": {"id": 55}, "assignee": {"id": 895}}, "task": {"id": 333, "owner": {"id": 935}, "assignee": {"id": 1041}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "assignee": {"id": 595}, "organization": {"id": 689}, "project": {"id": 392, "owner": {"id": 33}, "assignee": {"id": 899}}, "task": {"id": 310, "owner": {"id": 993}, "assignee": {"id": 1057}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 304, "assignee": {"id": 540}, "organization": {"id": 141}, "project": {"id": 307, "owner": {"id": 85}, "assignee": {"id": 846}}, "task": {"id": 310, "owner": {"id": 947}, "assignee": {"id": 1088}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 361, "assignee": {"id": 535}, "organization": {"id": 601}, "project": {"id": 372, "owner": {"id": 82}, "assignee": {"id": 806}}, "task": {"id": 314, "owner": {"id": 993}, "assignee": {"id": 1050}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 376, "assignee": {"id": 594}, "organization": {"id": 180}, "project": {"id": 386, "owner": {"id": 32}, "assignee": {"id": 804}}, "task": {"id": 303, "owner": {"id": 909}, "assignee": {"id": 1028}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 338, "assignee": {"id": 504}, "organization": {"id": 644}, "project": {"id": 394, "owner": {"id": 61}, "assignee": {"id": 868}}, "task": {"id": 306, "owner": {"id": 949}, "assignee": {"id": 1080}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 309, "assignee": {"id": 532}, "organization": {"id": 101}, "project": {"id": 355, "owner": {"id": 6}, "assignee": {"id": 839}}, "task": {"id": 366, "owner": {"id": 932}, "assignee": {"id": 1000}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 337, "assignee": {"id": 504}, "organization": {"id": 602}, "project": {"id": 337, "owner": {"id": 79}, "assignee": {"id": 852}}, "task": {"id": 332, "owner": {"id": 945}, "assignee": {"id": 1032}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "assignee": {"id": 527}, "organization": {"id": 102}, "project": {"id": 393, "owner": {"id": 52}, "assignee": {"id": 856}}, "task": {"id": 344, "owner": {"id": 921}, "assignee": {"id": 1046}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "assignee": {"id": 574}, "organization": {"id": 677}, "project": {"id": 318, "owner": {"id": 56}, "assignee": {"id": 850}}, "task": {"id": 354, "owner": {"id": 917}, "assignee": {"id": 1040}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "assignee": {"id": 524}, "organization": {"id": 111}, "project": {"id": 305, "owner": {"id": 10}, "assignee": {"id": 860}}, "task": {"id": 377, "owner": {"id": 942}, "assignee": {"id": 1094}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "assignee": {"id": 521}, "organization": {"id": 685}, "project": {"id": 313, "owner": {"id": 47}, "assignee": {"id": 845}}, "task": {"id": 322, "owner": {"id": 987}, "assignee": {"id": 1084}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 386, "assignee": {"id": 515}, "organization": {"id": 143}, "project": {"id": 372, "owner": {"id": 13}, "assignee": {"id": 877}}, "task": {"id": 302, "owner": {"id": 939}, "assignee": {"id": 1030}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 356, "assignee": {"id": 509}, "organization": {"id": 699}, "project": {"id": 363, "owner": {"id": 35}, "assignee": {"id": 809}}, "task": {"id": 380, "owner": {"id": 955}, "assignee": {"id": 1087}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 398, "assignee": {"id": 592}, "organization": {"id": 129}, "project": {"id": 349, "owner": {"id": 88}, "assignee": {"id": 898}}, "task": {"id": 312, "owner": {"id": 980}, "assignee": {"id": 1005}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 320, "assignee": {"id": 589}, "organization": {"id": 631}, "project": {"id": 315, "owner": {"id": 20}, "assignee": {"id": 858}}, "task": {"id": 351, "owner": {"id": 960}, "assignee": {"id": 1007}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 348, "assignee": {"id": 512}, "organization": {"id": 136}, "project": {"id": 365, "owner": {"id": 53}, "assignee": {"id": 837}}, "task": {"id": 335, "owner": {"id": 948}, "assignee": {"id": 1075}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 397, "assignee": {"id": 582}, "organization": {"id": 664}, "project": {"id": 377, "owner": {"id": 10}, "assignee": {"id": 823}}, "task": {"id": 332, "owner": {"id": 987}, "assignee": {"id": 1039}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "assignee": {"id": 523}, "organization": {"id": 134}, "project": {"id": 398, "owner": {"id": 16}, "assignee": {"id": 811}}, "task": {"id": 330, "owner": {"id": 956}, "assignee": {"id": 1080}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "assignee": {"id": 587}, "organization": {"id": 635}, "project": {"id": 398, "owner": {"id": 99}, "assignee": {"id": 891}}, "task": {"id": 376, "owner": {"id": 990}, "assignee": {"id": 1020}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "assignee": {"id": 591}, "organization": {"id": 139}, "project": {"id": 373, "owner": {"id": 73}, "assignee": {"id": 891}}, "task": {"id": 334, "owner": {"id": 938}, "assignee": {"id": 1067}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "assignee": {"id": 573}, "organization": {"id": 684}, "project": {"id": 339, "owner": {"id": 51}, "assignee": {"id": 843}}, "task": {"id": 397, "owner": {"id": 969}, "assignee": {"id": 1032}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 319, "assignee": {"id": 582}, "organization": {"id": 182}, "project": {"id": 337, "owner": {"id": 2}, "assignee": {"id": 894}}, "task": {"id": 364, "owner": {"id": 963}, "assignee": {"id": 1071}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 396, "assignee": {"id": 531}, "organization": {"id": 661}, "project": {"id": 350, "owner": {"id": 32}, "assignee": {"id": 881}}, "task": {"id": 386, "owner": {"id": 961}, "assignee": {"id": 1053}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 326, "assignee": {"id": 557}, "organization": {"id": 172}, "project": {"id": 305, "owner": {"id": 14}, "assignee": {"id": 831}}, "task": {"id": 335, "owner": {"id": 918}, "assignee": {"id": 1044}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 368, "assignee": {"id": 558}, "organization": {"id": 615}, "project": {"id": 354, "owner": {"id": 56}, "assignee": {"id": 868}}, "task": {"id": 373, "owner": {"id": 957}, "assignee": {"id": 1039}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 355, "assignee": {"id": 554}, "organization": {"id": 115}, "project": {"id": 351, "owner": {"id": 75}, "assignee": {"id": 807}}, "task": {"id": 388, "owner": {"id": 978}, "assignee": {"id": 1010}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 324, "assignee": {"id": 546}, "organization": {"id": 620}, "project": {"id": 348, "owner": {"id": 83}, "assignee": {"id": 816}}, "task": {"id": 343, "owner": {"id": 973}, "assignee": {"id": 1084}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "assignee": {"id": 557}, "organization": {"id": 157}, "project": {"id": 374, "owner": {"id": 96}, "assignee": {"id": 801}}, "task": {"id": 367, "owner": {"id": 945}, "assignee": {"id": 1053}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "assignee": {"id": 514}, "organization": {"id": 603}, "project": {"id": 380, "owner": {"id": 93}, "assignee": {"id": 883}}, "task": {"id": 355, "owner": {"id": 993}, "assignee": {"id": 1027}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 61, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "assignee": {"id": 553}, "organization": {"id": 114}, "project": {"id": 305, "owner": {"id": 61}, "assignee": {"id": 838}}, "task": {"id": 335, "owner": {"id": 957}, "assignee": {"id": 1061}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "assignee": {"id": 545}, "organization": {"id": 657}, "project": {"id": 359, "owner": {"id": 89}, "assignee": {"id": 817}}, "task": {"id": 346, "owner": {"id": 995}, "assignee": {"id": 1002}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 347, "assignee": {"id": 536}, "organization": {"id": 168}, "project": {"id": 379, "owner": {"id": 79}, "assignee": {"id": 804}}, "task": {"id": 381, "owner": {"id": 979}, "assignee": {"id": 1088}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"id": 358, "assignee": {"id": 541}, "organization": {"id": 616}, "project": {"id": 347, "owner": {"id": 34}, "assignee": {"id": 880}}, "task": {"id": 327, "owner": {"id": 962}, "assignee": {"id": 1033}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 334, "assignee": {"id": 545}, "organization": {"id": 196}, "project": {"id": 393, "owner": {"id": 49}, "assignee": {"id": 890}}, "task": {"id": 385, "owner": {"id": 983}, "assignee": {"id": 1060}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 352, "assignee": {"id": 526}, "organization": {"id": 630}, "project": {"id": 343, "owner": {"id": 42}, "assignee": {"id": 834}}, "task": {"id": 323, "owner": {"id": 900}, "assignee": {"id": 1090}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 343, "assignee": {"id": 527}, "organization": {"id": 116}, "project": {"id": 301, "owner": {"id": 787}, "assignee": {"id": 60}}, "task": {"id": 320, "owner": {"id": 960}, "assignee": {"id": 1093}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 380, "assignee": {"id": 590}, "organization": {"id": 689}, "project": {"id": 399, "owner": {"id": 718}, "assignee": {"id": 86}}, "task": {"id": 349, "owner": {"id": 973}, "assignee": {"id": 1041}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "assignee": {"id": 507}, "organization": {"id": 151}, "project": {"id": 371, "owner": {"id": 774}, "assignee": {"id": 54}}, "task": {"id": 320, "owner": {"id": 994}, "assignee": {"id": 1082}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 330, "assignee": {"id": 552}, "organization": {"id": 654}, "project": {"id": 378, "owner": {"id": 769}, "assignee": {"id": 59}}, "task": {"id": 381, "owner": {"id": 923}, "assignee": {"id": 1099}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "assignee": {"id": 533}, "organization": {"id": 146}, "project": {"id": 322, "owner": {"id": 782}, "assignee": {"id": 88}}, "task": {"id": 376, "owner": {"id": 936}, "assignee": {"id": 1025}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "assignee": {"id": 561}, "organization": {"id": 677}, "project": {"id": 350, "owner": {"id": 713}, "assignee": {"id": 63}}, "task": {"id": 345, "owner": {"id": 928}, "assignee": {"id": 1061}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 387, "assignee": {"id": 567}, "organization": {"id": 108}, "project": {"id": 317, "owner": {"id": 735}, "assignee": {"id": 72}}, "task": {"id": 313, "owner": {"id": 953}, "assignee": {"id": 1036}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 314, "assignee": {"id": 549}, "organization": {"id": 624}, "project": {"id": 387, "owner": {"id": 754}, "assignee": {"id": 60}}, "task": {"id": 342, "owner": {"id": 902}, "assignee": {"id": 1087}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 377, "assignee": {"id": 522}, "organization": {"id": 178}, "project": {"id": 304, "owner": {"id": 712}, "assignee": {"id": 54}}, "task": {"id": 377, "owner": {"id": 909}, "assignee": {"id": 1044}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 367, "assignee": {"id": 507}, "organization": {"id": 661}, "project": {"id": 379, "owner": {"id": 765}, "assignee": {"id": 85}}, "task": {"id": 326, "owner": {"id": 906}, "assignee": {"id": 1061}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 367, "assignee": {"id": 508}, "organization": {"id": 118}, "project": {"id": 327, "owner": {"id": 796}, "assignee": {"id": 2}}, "task": {"id": 339, "owner": {"id": 994}, "assignee": {"id": 1074}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 398, "assignee": {"id": 561}, "organization": {"id": 638}, "project": {"id": 329, "owner": {"id": 722}, "assignee": {"id": 97}}, "task": {"id": 373, "owner": {"id": 991}, "assignee": {"id": 1022}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "assignee": {"id": 536}, "organization": {"id": 181}, "project": {"id": 370, "owner": {"id": 700}, "assignee": {"id": 73}}, "task": {"id": 389, "owner": {"id": 948}, "assignee": {"id": 1086}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "assignee": {"id": 578}, "organization": {"id": 615}, "project": {"id": 315, "owner": {"id": 782}, "assignee": {"id": 53}}, "task": {"id": 322, "owner": {"id": 973}, "assignee": {"id": 1038}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "assignee": {"id": 508}, "organization": {"id": 155}, "project": {"id": 369, "owner": {"id": 719}, "assignee": {"id": 33}}, "task": {"id": 359, "owner": {"id": 976}, "assignee": {"id": 1012}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "assignee": {"id": 544}, "organization": {"id": 612}, "project": {"id": 310, "owner": {"id": 783}, "assignee": {"id": 72}}, "task": {"id": 303, "owner": {"id": 924}, "assignee": {"id": 1029}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 347, "assignee": {"id": 577}, "organization": {"id": 127}, "project": {"id": 355, "owner": {"id": 787}, "assignee": {"id": 19}}, "task": {"id": 382, "owner": {"id": 974}, "assignee": {"id": 1032}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 337, "assignee": {"id": 524}, "organization": {"id": 671}, "project": {"id": 386, "owner": {"id": 726}, "assignee": {"id": 95}}, "task": {"id": 361, "owner": {"id": 945}, "assignee": {"id": 1086}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 367, "assignee": {"id": 564}, "organization": {"id": 180}, "project": {"id": 349, "owner": {"id": 731}, "assignee": {"id": 39}}, "task": {"id": 392, "owner": {"id": 961}, "assignee": {"id": 1030}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 380, "assignee": {"id": 599}, "organization": {"id": 641}, "project": {"id": 306, "owner": {"id": 794}, "assignee": {"id": 57}}, "task": {"id": 301, "owner": {"id": 993}, "assignee": {"id": 1022}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 387, "assignee": {"id": 510}, "organization": {"id": 142}, "project": {"id": 373, "owner": {"id": 726}, "assignee": {"id": 5}}, "task": {"id": 351, "owner": {"id": 920}, "assignee": {"id": 1045}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 325, "assignee": {"id": 520}, "organization": {"id": 654}, "project": {"id": 356, "owner": {"id": 779}, "assignee": {"id": 81}}, "task": {"id": 318, "owner": {"id": 935}, "assignee": {"id": 1083}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "assignee": {"id": 589}, "organization": {"id": 159}, "project": {"id": 331, "owner": {"id": 788}, "assignee": {"id": 91}}, "task": {"id": 318, "owner": {"id": 950}, "assignee": {"id": 1071}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "assignee": {"id": 562}, "organization": {"id": 675}, "project": {"id": 330, "owner": {"id": 793}, "assignee": {"id": 34}}, "task": {"id": 385, "owner": {"id": 967}, "assignee": {"id": 1072}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "assignee": {"id": 567}, "organization": {"id": 168}, "project": {"id": 356, "owner": {"id": 721}, "assignee": {"id": 63}}, "task": {"id": 362, "owner": {"id": 961}, "assignee": {"id": 1032}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "assignee": {"id": 510}, "organization": {"id": 606}, "project": {"id": 337, "owner": {"id": 702}, "assignee": {"id": 76}}, "task": {"id": 348, "owner": {"id": 990}, "assignee": {"id": 1021}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 348, "assignee": {"id": 540}, "organization": {"id": 109}, "project": {"id": 395, "owner": {"id": 736}, "assignee": {"id": 28}}, "task": {"id": 395, "owner": {"id": 940}, "assignee": {"id": 1062}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 365, "assignee": {"id": 506}, "organization": {"id": 618}, "project": {"id": 302, "owner": {"id": 736}, "assignee": {"id": 1}}, "task": {"id": 333, "owner": {"id": 909}, "assignee": {"id": 1090}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 372, "assignee": {"id": 508}, "organization": {"id": 107}, "project": {"id": 376, "owner": {"id": 799}, "assignee": {"id": 58}}, "task": {"id": 331, "owner": {"id": 988}, "assignee": {"id": 1031}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"id": 354, "assignee": {"id": 546}, "organization": {"id": 656}, "project": {"id": 367, "owner": {"id": 712}, "assignee": {"id": 45}}, "task": {"id": 379, "owner": {"id": 950}, "assignee": {"id": 1028}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 310, "assignee": {"id": 574}, "organization": {"id": 192}, "project": {"id": 347, "owner": {"id": 726}, "assignee": {"id": 14}}, "task": {"id": 384, "owner": {"id": 910}, "assignee": {"id": 1003}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 365, "assignee": {"id": 538}, "organization": {"id": 647}, "project": {"id": 350, "owner": {"id": 756}, "assignee": {"id": 7}}, "task": {"id": 311, "owner": {"id": 928}, "assignee": {"id": 1061}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 24, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "assignee": {"id": 589}, "organization": {"id": 111}, "project": {"id": 308, "owner": {"id": 785}, "assignee": {"id": 24}}, "task": {"id": 359, "owner": {"id": 935}, "assignee": {"id": 1072}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "assignee": {"id": 553}, "organization": {"id": 603}, "project": {"id": 363, "owner": {"id": 729}, "assignee": {"id": 89}}, "task": {"id": 323, "owner": {"id": 913}, "assignee": {"id": 1090}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "assignee": {"id": 527}, "organization": {"id": 112}, "project": {"id": 376, "owner": {"id": 761}, "assignee": {"id": 0}}, "task": {"id": 384, "owner": {"id": 905}, "assignee": {"id": 1010}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "assignee": {"id": 572}, "organization": {"id": 621}, "project": {"id": 352, "owner": {"id": 720}, "assignee": {"id": 20}}, "task": {"id": 370, "owner": {"id": 978}, "assignee": {"id": 1020}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 333, "assignee": {"id": 501}, "organization": {"id": 188}, "project": {"id": 353, "owner": {"id": 709}, "assignee": {"id": 34}}, "task": {"id": 367, "owner": {"id": 948}, "assignee": {"id": 1042}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 354, "assignee": {"id": 551}, "organization": {"id": 606}, "project": {"id": 321, "owner": {"id": 783}, "assignee": {"id": 43}}, "task": {"id": 310, "owner": {"id": 934}, "assignee": {"id": 1031}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 305, "assignee": {"id": 535}, "organization": {"id": 143}, "project": {"id": 310, "owner": {"id": 708}, "assignee": {"id": 38}}, "task": {"id": 391, "owner": {"id": 903}, "assignee": {"id": 1004}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 310, "assignee": {"id": 540}, "organization": {"id": 695}, "project": {"id": 331, "owner": {"id": 708}, "assignee": {"id": 78}}, "task": {"id": 314, "owner": {"id": 973}, "assignee": {"id": 1041}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 307, "assignee": {"id": 519}, "organization": {"id": 163}, "project": {"id": 351, "owner": {"id": 776}, "assignee": {"id": 96}}, "task": {"id": 324, "owner": {"id": 989}, "assignee": {"id": 1035}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 19, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 377, "assignee": {"id": 555}, "organization": {"id": 653}, "project": {"id": 306, "owner": {"id": 741}, "assignee": {"id": 19}}, "task": {"id": 364, "owner": {"id": 942}, "assignee": {"id": 1048}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "assignee": {"id": 501}, "organization": {"id": 149}, "project": {"id": 321, "owner": {"id": 722}, "assignee": {"id": 7}}, "task": {"id": 351, "owner": {"id": 933}, "assignee": {"id": 1096}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "assignee": {"id": 584}, "organization": {"id": 695}, "project": {"id": 388, "owner": {"id": 764}, "assignee": {"id": 93}}, "task": {"id": 396, "owner": {"id": 914}, "assignee": {"id": 1099}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 343, "assignee": {"id": 533}, "organization": {"id": 114}, "project": {"id": 394, "owner": {"id": 766}, "assignee": {"id": 13}}, "task": {"id": 363, "owner": {"id": 999}, "assignee": {"id": 1063}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 371, "assignee": {"id": 571}, "organization": {"id": 612}, "project": {"id": 348, "owner": {"id": 707}, "assignee": {"id": 72}}, "task": {"id": 371, "owner": {"id": 902}, "assignee": {"id": 1009}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 342, "assignee": {"id": 545}, "organization": {"id": 148}, "project": {"id": 305, "owner": {"id": 771}, "assignee": {"id": 70}}, "task": {"id": 351, "owner": {"id": 962}, "assignee": {"id": 1094}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 305, "assignee": {"id": 533}, "organization": {"id": 634}, "project": {"id": 393, "owner": {"id": 737}, "assignee": {"id": 17}}, "task": {"id": 338, "owner": {"id": 935}, "assignee": {"id": 1095}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"id": 398, "assignee": {"id": 518}, "organization": {"id": 189}, "project": {"id": 351, "owner": {"id": 763}, "assignee": {"id": 7}}, "task": {"id": 302, "owner": {"id": 967}, "assignee": {"id": 1068}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 305, "assignee": {"id": 508}, "organization": {"id": 642}, "project": {"id": 315, "owner": {"id": 729}, "assignee": {"id": 53}}, "task": {"id": 385, "owner": {"id": 965}, "assignee": {"id": 1084}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"id": 352, "assignee": {"id": 565}, "organization": {"id": 152}, "project": {"id": 379, "owner": {"id": 756}, "assignee": {"id": 805}}, "task": {"id": 337, "owner": {"id": 8}, "assignee": {"id": 1032}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 372, "assignee": {"id": 585}, "organization": {"id": 664}, "project": {"id": 314, "owner": {"id": 737}, "assignee": {"id": 819}}, "task": {"id": 300, "owner": {"id": 84}, "assignee": {"id": 1048}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "assignee": {"id": 583}, "organization": {"id": 146}, "project": {"id": 305, "owner": {"id": 754}, "assignee": {"id": 868}}, "task": {"id": 309, "owner": {"id": 54}, "assignee": {"id": 1028}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "assignee": {"id": 519}, "organization": {"id": 685}, "project": {"id": 328, "owner": {"id": 776}, "assignee": {"id": 895}}, "task": {"id": 383, "owner": {"id": 52}, "assignee": {"id": 1050}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 387, "assignee": {"id": 506}, "organization": {"id": 163}, "project": {"id": 332, "owner": {"id": 715}, "assignee": {"id": 858}}, "task": {"id": 310, "owner": {"id": 3}, "assignee": {"id": 1004}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "assignee": {"id": 510}, "organization": {"id": 688}, "project": {"id": 358, "owner": {"id": 744}, "assignee": {"id": 896}}, "task": {"id": 314, "owner": {"id": 68}, "assignee": {"id": 1095}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 357, "assignee": {"id": 560}, "organization": {"id": 155}, "project": {"id": 332, "owner": {"id": 722}, "assignee": {"id": 864}}, "task": {"id": 336, "owner": {"id": 58}, "assignee": {"id": 1046}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 367, "assignee": {"id": 580}, "organization": {"id": 654}, "project": {"id": 361, "owner": {"id": 761}, "assignee": {"id": 805}}, "task": {"id": 355, "owner": {"id": 16}, "assignee": {"id": 1062}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 377, "assignee": {"id": 592}, "organization": {"id": 133}, "project": {"id": 322, "owner": {"id": 770}, "assignee": {"id": 897}}, "task": {"id": 329, "owner": {"id": 15}, "assignee": {"id": 1075}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"id": 301, "assignee": {"id": 581}, "organization": {"id": 675}, "project": {"id": 319, "owner": {"id": 714}, "assignee": {"id": 846}}, "task": {"id": 320, "owner": {"id": 95}, "assignee": {"id": 1022}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 362, "assignee": {"id": 568}, "organization": {"id": 186}, "project": {"id": 325, "owner": {"id": 754}, "assignee": {"id": 859}}, "task": {"id": 335, "owner": {"id": 67}, "assignee": {"id": 1006}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 313, "assignee": {"id": 521}, "organization": {"id": 687}, "project": {"id": 398, "owner": {"id": 705}, "assignee": {"id": 844}}, "task": {"id": 375, "owner": {"id": 36}, "assignee": {"id": 1034}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "assignee": {"id": 598}, "organization": {"id": 185}, "project": {"id": 375, "owner": {"id": 794}, "assignee": {"id": 868}}, "task": {"id": 369, "owner": {"id": 22}, "assignee": {"id": 1011}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 321, "assignee": {"id": 543}, "organization": {"id": 696}, "project": {"id": 351, "owner": {"id": 716}, "assignee": {"id": 807}}, "task": {"id": 368, "owner": {"id": 12}, "assignee": {"id": 1053}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 371, "assignee": {"id": 569}, "organization": {"id": 183}, "project": {"id": 319, "owner": {"id": 745}, "assignee": {"id": 862}}, "task": {"id": 384, "owner": {"id": 51}, "assignee": {"id": 1008}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "assignee": {"id": 506}, "organization": {"id": 694}, "project": {"id": 383, "owner": {"id": 750}, "assignee": {"id": 891}}, "task": {"id": 330, "owner": {"id": 28}, "assignee": {"id": 1007}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 379, "assignee": {"id": 545}, "organization": {"id": 109}, "project": {"id": 313, "owner": {"id": 740}, "assignee": {"id": 815}}, "task": {"id": 350, "owner": {"id": 96}, "assignee": {"id": 1048}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 390, "assignee": {"id": 552}, "organization": {"id": 619}, "project": {"id": 373, "owner": {"id": 751}, "assignee": {"id": 844}}, "task": {"id": 369, "owner": {"id": 24}, "assignee": {"id": 1095}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 316, "assignee": {"id": 599}, "organization": {"id": 179}, "project": {"id": 331, "owner": {"id": 748}, "assignee": {"id": 865}}, "task": {"id": 362, "owner": {"id": 7}, "assignee": {"id": 1018}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 322, "assignee": {"id": 541}, "organization": {"id": 635}, "project": {"id": 346, "owner": {"id": 705}, "assignee": {"id": 870}}, "task": {"id": 302, "owner": {"id": 34}, "assignee": {"id": 1078}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 356, "assignee": {"id": 571}, "organization": {"id": 181}, "project": {"id": 326, "owner": {"id": 783}, "assignee": {"id": 871}}, "task": {"id": 363, "owner": {"id": 25}, "assignee": {"id": 1068}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 315, "assignee": {"id": 596}, "organization": {"id": 607}, "project": {"id": 306, "owner": {"id": 781}, "assignee": {"id": 800}}, "task": {"id": 355, "owner": {"id": 69}, "assignee": {"id": 1041}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "assignee": {"id": 530}, "organization": {"id": 155}, "project": {"id": 396, "owner": {"id": 772}, "assignee": {"id": 829}}, "task": {"id": 303, "owner": {"id": 35}, "assignee": {"id": 1000}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "assignee": {"id": 589}, "organization": {"id": 640}, "project": {"id": 383, "owner": {"id": 791}, "assignee": {"id": 853}}, "task": {"id": 300, "owner": {"id": 77}, "assignee": {"id": 1068}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "assignee": {"id": 504}, "organization": {"id": 100}, "project": {"id": 335, "owner": {"id": 772}, "assignee": {"id": 887}}, "task": {"id": 331, "owner": {"id": 79}, "assignee": {"id": 1047}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "assignee": {"id": 559}, "organization": {"id": 678}, "project": {"id": 306, "owner": {"id": 781}, "assignee": {"id": 840}}, "task": {"id": 395, "owner": {"id": 7}, "assignee": {"id": 1031}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 301, "assignee": {"id": 516}, "organization": {"id": 133}, "project": {"id": 383, "owner": {"id": 767}, "assignee": {"id": 873}}, "task": {"id": 303, "owner": {"id": 54}, "assignee": {"id": 1058}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 314, "assignee": {"id": 524}, "organization": {"id": 600}, "project": {"id": 387, "owner": {"id": 798}, "assignee": {"id": 806}}, "task": {"id": 341, "owner": {"id": 15}, "assignee": {"id": 1006}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 341, "assignee": {"id": 562}, "organization": {"id": 169}, "project": {"id": 338, "owner": {"id": 761}, "assignee": {"id": 826}}, "task": {"id": 369, "owner": {"id": 0}, "assignee": {"id": 1099}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"id": 323, "assignee": {"id": 562}, "organization": {"id": 639}, "project": {"id": 303, "owner": {"id": 748}, "assignee": {"id": 820}}, "task": {"id": 365, "owner": {"id": 41}, "assignee": {"id": 1064}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 320, "assignee": {"id": 544}, "organization": {"id": 146}, "project": {"id": 328, "owner": {"id": 723}, "assignee": {"id": 801}}, "task": {"id": 347, "owner": {"id": 68}, "assignee": {"id": 1017}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 340, "assignee": {"id": 547}, "organization": {"id": 607}, "project": {"id": 314, "owner": {"id": 724}, "assignee": {"id": 842}}, "task": {"id": 320, "owner": {"id": 10}, "assignee": {"id": 1059}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "assignee": {"id": 565}, "organization": {"id": 115}, "project": {"id": 386, "owner": {"id": 797}, "assignee": {"id": 899}}, "task": {"id": 344, "owner": {"id": 46}, "assignee": {"id": 1092}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "assignee": {"id": 595}, "organization": {"id": 688}, "project": {"id": 315, "owner": {"id": 767}, "assignee": {"id": 881}}, "task": {"id": 334, "owner": {"id": 3}, "assignee": {"id": 1065}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "assignee": {"id": 537}, "organization": {"id": 105}, "project": {"id": 316, "owner": {"id": 702}, "assignee": {"id": 891}}, "task": {"id": 300, "owner": {"id": 80}, "assignee": {"id": 1033}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "assignee": {"id": 547}, "organization": {"id": 608}, "project": {"id": 342, "owner": {"id": 754}, "assignee": {"id": 874}}, "task": {"id": 377, "owner": {"id": 98}, "assignee": {"id": 1027}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 352, "assignee": {"id": 589}, "organization": {"id": 157}, "project": {"id": 318, "owner": {"id": 799}, "assignee": {"id": 848}}, "task": {"id": 371, "owner": {"id": 33}, "assignee": {"id": 1074}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 365, "assignee": {"id": 559}, "organization": {"id": 678}, "project": {"id": 325, "owner": {"id": 705}, "assignee": {"id": 872}}, "task": {"id": 319, "owner": {"id": 22}, "assignee": {"id": 1047}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 306, "assignee": {"id": 548}, "organization": {"id": 119}, "project": {"id": 346, "owner": {"id": 752}, "assignee": {"id": 825}}, "task": {"id": 352, "owner": {"id": 10}, "assignee": {"id": 1056}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 315, "assignee": {"id": 526}, "organization": {"id": 661}, "project": {"id": 326, "owner": {"id": 778}, "assignee": {"id": 838}}, "task": {"id": 378, "owner": {"id": 82}, "assignee": {"id": 1017}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 308, "assignee": {"id": 572}, "organization": {"id": 126}, "project": {"id": 355, "owner": {"id": 749}, "assignee": {"id": 874}}, "task": {"id": 336, "owner": {"id": 38}, "assignee": {"id": 1055}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 344, "assignee": {"id": 586}, "organization": {"id": 688}, "project": {"id": 324, "owner": {"id": 710}, "assignee": {"id": 884}}, "task": {"id": 339, "owner": {"id": 88}, "assignee": {"id": 1040}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "assignee": {"id": 553}, "organization": {"id": 140}, "project": {"id": 397, "owner": {"id": 715}, "assignee": {"id": 847}}, "task": {"id": 304, "owner": {"id": 74}, "assignee": {"id": 1069}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "assignee": {"id": 548}, "organization": {"id": 689}, "project": {"id": 329, "owner": {"id": 783}, "assignee": {"id": 813}}, "task": {"id": 368, "owner": {"id": 70}, "assignee": {"id": 1079}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "assignee": {"id": 599}, "organization": {"id": 135}, "project": {"id": 330, "owner": {"id": 786}, "assignee": {"id": 897}}, "task": {"id": 305, "owner": {"id": 1}, "assignee": {"id": 1025}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "assignee": {"id": 530}, "organization": {"id": 628}, "project": {"id": 388, "owner": {"id": 766}, "assignee": {"id": 867}}, "task": {"id": 380, "owner": {"id": 13}, "assignee": {"id": 1030}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 349, "assignee": {"id": 500}, "organization": {"id": 119}, "project": {"id": 318, "owner": {"id": 741}, "assignee": {"id": 803}}, "task": {"id": 378, "owner": {"id": 84}, "assignee": {"id": 1091}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 302, "assignee": {"id": 533}, "organization": {"id": 600}, "project": {"id": 303, "owner": {"id": 799}, "assignee": {"id": 839}}, "task": {"id": 331, "owner": {"id": 55}, "assignee": {"id": 1069}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 365, "assignee": {"id": 538}, "organization": {"id": 120}, "project": {"id": 305, "owner": {"id": 763}, "assignee": {"id": 883}}, "task": {"id": 319, "owner": {"id": 94}, "assignee": {"id": 1005}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 340, "assignee": {"id": 561}, "organization": {"id": 693}, "project": {"id": 364, "owner": {"id": 777}, "assignee": {"id": 853}}, "task": {"id": 354, "owner": {"id": 64}, "assignee": {"id": 1052}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 326, "assignee": {"id": 562}, "organization": {"id": 124}, "project": {"id": 367, "owner": {"id": 707}, "assignee": {"id": 871}}, "task": {"id": 399, "owner": {"id": 967}, "assignee": {"id": 25}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 372, "assignee": {"id": 558}, "organization": {"id": 603}, "project": {"id": 311, "owner": {"id": 777}, "assignee": {"id": 874}}, "task": {"id": 369, "owner": {"id": 921}, "assignee": {"id": 59}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "assignee": {"id": 587}, "organization": {"id": 100}, "project": {"id": 346, "owner": {"id": 712}, "assignee": {"id": 867}}, "task": {"id": 388, "owner": {"id": 950}, "assignee": {"id": 13}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "assignee": {"id": 584}, "organization": {"id": 680}, "project": {"id": 383, "owner": {"id": 752}, "assignee": {"id": 824}}, "task": {"id": 351, "owner": {"id": 958}, "assignee": {"id": 87}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "assignee": {"id": 583}, "organization": {"id": 199}, "project": {"id": 354, "owner": {"id": 769}, "assignee": {"id": 873}}, "task": {"id": 349, "owner": {"id": 901}, "assignee": {"id": 48}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "assignee": {"id": 587}, "organization": {"id": 667}, "project": {"id": 308, "owner": {"id": 720}, "assignee": {"id": 862}}, "task": {"id": 375, "owner": {"id": 906}, "assignee": {"id": 93}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 321, "assignee": {"id": 569}, "organization": {"id": 199}, "project": {"id": 334, "owner": {"id": 748}, "assignee": {"id": 841}}, "task": {"id": 364, "owner": {"id": 902}, "assignee": {"id": 69}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 386, "assignee": {"id": 557}, "organization": {"id": 676}, "project": {"id": 317, "owner": {"id": 720}, "assignee": {"id": 880}}, "task": {"id": 336, "owner": {"id": 912}, "assignee": {"id": 78}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 377, "assignee": {"id": 556}, "organization": {"id": 133}, "project": {"id": 327, "owner": {"id": 715}, "assignee": {"id": 805}}, "task": {"id": 371, "owner": {"id": 907}, "assignee": {"id": 27}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 392, "assignee": {"id": 500}, "organization": {"id": 679}, "project": {"id": 369, "owner": {"id": 744}, "assignee": {"id": 892}}, "task": {"id": 333, "owner": {"id": 932}, "assignee": {"id": 58}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 305, "assignee": {"id": 534}, "organization": {"id": 188}, "project": {"id": 331, "owner": {"id": 724}, "assignee": {"id": 832}}, "task": {"id": 353, "owner": {"id": 940}, "assignee": {"id": 48}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 394, "assignee": {"id": 581}, "organization": {"id": 617}, "project": {"id": 349, "owner": {"id": 707}, "assignee": {"id": 823}}, "task": {"id": 312, "owner": {"id": 927}, "assignee": {"id": 85}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "assignee": {"id": 554}, "organization": {"id": 181}, "project": {"id": 354, "owner": {"id": 795}, "assignee": {"id": 893}}, "task": {"id": 353, "owner": {"id": 938}, "assignee": {"id": 40}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "assignee": {"id": 560}, "organization": {"id": 681}, "project": {"id": 387, "owner": {"id": 738}, "assignee": {"id": 828}}, "task": {"id": 381, "owner": {"id": 903}, "assignee": {"id": 63}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "assignee": {"id": 589}, "organization": {"id": 130}, "project": {"id": 356, "owner": {"id": 767}, "assignee": {"id": 822}}, "task": {"id": 382, "owner": {"id": 999}, "assignee": {"id": 90}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "assignee": {"id": 516}, "organization": {"id": 653}, "project": {"id": 394, "owner": {"id": 767}, "assignee": {"id": 867}}, "task": {"id": 363, "owner": {"id": 902}, "assignee": {"id": 10}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 362, "assignee": {"id": 569}, "organization": {"id": 109}, "project": {"id": 312, "owner": {"id": 730}, "assignee": {"id": 880}}, "task": {"id": 393, "owner": {"id": 956}, "assignee": {"id": 91}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 321, "assignee": {"id": 515}, "organization": {"id": 661}, "project": {"id": 385, "owner": {"id": 743}, "assignee": {"id": 849}}, "task": {"id": 317, "owner": {"id": 934}, "assignee": {"id": 76}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 392, "assignee": {"id": 532}, "organization": {"id": 192}, "project": {"id": 325, "owner": {"id": 714}, "assignee": {"id": 863}}, "task": {"id": 369, "owner": {"id": 920}, "assignee": {"id": 28}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"id": 345, "assignee": {"id": 583}, "organization": {"id": 678}, "project": {"id": 361, "owner": {"id": 752}, "assignee": {"id": 855}}, "task": {"id": 317, "owner": {"id": 904}, "assignee": {"id": 39}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 366, "assignee": {"id": 535}, "organization": {"id": 157}, "project": {"id": 351, "owner": {"id": 732}, "assignee": {"id": 801}}, "task": {"id": 397, "owner": {"id": 914}, "assignee": {"id": 56}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 352, "assignee": {"id": 549}, "organization": {"id": 617}, "project": {"id": 314, "owner": {"id": 776}, "assignee": {"id": 878}}, "task": {"id": 389, "owner": {"id": 962}, "assignee": {"id": 84}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "assignee": {"id": 580}, "organization": {"id": 171}, "project": {"id": 340, "owner": {"id": 743}, "assignee": {"id": 884}}, "task": {"id": 338, "owner": {"id": 919}, "assignee": {"id": 42}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "assignee": {"id": 558}, "organization": {"id": 622}, "project": {"id": 378, "owner": {"id": 722}, "assignee": {"id": 873}}, "task": {"id": 377, "owner": {"id": 907}, "assignee": {"id": 20}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "assignee": {"id": 560}, "organization": {"id": 199}, "project": {"id": 334, "owner": {"id": 705}, "assignee": {"id": 855}}, "task": {"id": 385, "owner": {"id": 903}, "assignee": {"id": 40}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "assignee": {"id": 529}, "organization": {"id": 666}, "project": {"id": 320, "owner": {"id": 756}, "assignee": {"id": 891}}, "task": {"id": 329, "owner": {"id": 971}, "assignee": {"id": 85}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 327, "assignee": {"id": 530}, "organization": {"id": 149}, "project": {"id": 317, "owner": {"id": 725}, "assignee": {"id": 868}}, "task": {"id": 385, "owner": {"id": 996}, "assignee": {"id": 67}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 319, "assignee": {"id": 545}, "organization": {"id": 682}, "project": {"id": 332, "owner": {"id": 754}, "assignee": {"id": 883}}, "task": {"id": 364, "owner": {"id": 994}, "assignee": {"id": 23}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 355, "assignee": {"id": 511}, "organization": {"id": 170}, "project": {"id": 329, "owner": {"id": 746}, "assignee": {"id": 851}}, "task": {"id": 347, "owner": {"id": 963}, "assignee": {"id": 82}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 371, "assignee": {"id": 539}, "organization": {"id": 625}, "project": {"id": 362, "owner": {"id": 783}, "assignee": {"id": 810}}, "task": {"id": 390, "owner": {"id": 939}, "assignee": {"id": 74}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 318, "assignee": {"id": 561}, "organization": {"id": 193}, "project": {"id": 380, "owner": {"id": 746}, "assignee": {"id": 800}}, "task": {"id": 382, "owner": {"id": 951}, "assignee": {"id": 6}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 319, "assignee": {"id": 554}, "organization": {"id": 652}, "project": {"id": 336, "owner": {"id": 749}, "assignee": {"id": 881}}, "task": {"id": 304, "owner": {"id": 974}, "assignee": {"id": 9}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "assignee": {"id": 572}, "organization": {"id": 185}, "project": {"id": 300, "owner": {"id": 706}, "assignee": {"id": 876}}, "task": {"id": 313, "owner": {"id": 955}, "assignee": {"id": 45}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "assignee": {"id": 539}, "organization": {"id": 643}, "project": {"id": 339, "owner": {"id": 792}, "assignee": {"id": 831}}, "task": {"id": 304, "owner": {"id": 906}, "assignee": {"id": 60}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "assignee": {"id": 516}, "organization": {"id": 120}, "project": {"id": 394, "owner": {"id": 762}, "assignee": {"id": 893}}, "task": {"id": 338, "owner": {"id": 997}, "assignee": {"id": 88}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "assignee": {"id": 540}, "organization": {"id": 623}, "project": {"id": 391, "owner": {"id": 716}, "assignee": {"id": 843}}, "task": {"id": 385, "owner": {"id": 986}, "assignee": {"id": 73}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 387, "assignee": {"id": 525}, "organization": {"id": 147}, "project": {"id": 363, "owner": {"id": 799}, "assignee": {"id": 825}}, "task": {"id": 320, "owner": {"id": 913}, "assignee": {"id": 50}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 351, "assignee": {"id": 572}, "organization": {"id": 613}, "project": {"id": 305, "owner": {"id": 795}, "assignee": {"id": 857}}, "task": {"id": 307, "owner": {"id": 980}, "assignee": {"id": 86}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 396, "assignee": {"id": 508}, "organization": {"id": 118}, "project": {"id": 363, "owner": {"id": 711}, "assignee": {"id": 827}}, "task": {"id": 385, "owner": {"id": 932}, "assignee": {"id": 81}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 304, "assignee": {"id": 502}, "organization": {"id": 652}, "project": {"id": 334, "owner": {"id": 722}, "assignee": {"id": 818}}, "task": {"id": 358, "owner": {"id": 953}, "assignee": {"id": 31}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 382, "assignee": {"id": 539}, "organization": {"id": 145}, "project": {"id": 385, "owner": {"id": 752}, "assignee": {"id": 843}}, "task": {"id": 317, "owner": {"id": 955}, "assignee": {"id": 87}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 340, "assignee": {"id": 524}, "organization": {"id": 636}, "project": {"id": 363, "owner": {"id": 762}, "assignee": {"id": 886}}, "task": {"id": 333, "owner": {"id": 910}, "assignee": {"id": 52}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "assignee": {"id": 547}, "organization": {"id": 163}, "project": {"id": 373, "owner": {"id": 745}, "assignee": {"id": 824}}, "task": {"id": 391, "owner": {"id": 970}, "assignee": {"id": 92}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "assignee": {"id": 576}, "organization": {"id": 681}, "project": {"id": 371, "owner": {"id": 763}, "assignee": {"id": 840}}, "task": {"id": 372, "owner": {"id": 994}, "assignee": {"id": 7}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "assignee": {"id": 586}, "organization": {"id": 106}, "project": {"id": 341, "owner": {"id": 720}, "assignee": {"id": 867}}, "task": {"id": 394, "owner": {"id": 921}, "assignee": {"id": 29}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "assignee": {"id": 535}, "organization": {"id": 693}, "project": {"id": 329, "owner": {"id": 702}, "assignee": {"id": 884}}, "task": {"id": 331, "owner": {"id": 980}, "assignee": {"id": 77}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 390, "assignee": {"id": 535}, "organization": {"id": 118}, "project": {"id": 382, "owner": {"id": 799}, "assignee": {"id": 836}}, "task": {"id": 329, "owner": {"id": 929}, "assignee": {"id": 91}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 389, "assignee": {"id": 539}, "organization": {"id": 644}, "project": {"id": 386, "owner": {"id": 758}, "assignee": {"id": 867}}, "task": {"id": 354, "owner": {"id": 963}, "assignee": {"id": 82}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 390, "assignee": {"id": 506}, "organization": {"id": 150}, "project": {"id": 360, "owner": {"id": 758}, "assignee": {"id": 816}}, "task": {"id": 333, "owner": {"id": 981}, "assignee": {"id": 97}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 335, "assignee": {"id": 579}, "organization": {"id": 661}, "project": {"id": 319, "owner": {"id": 794}, "assignee": {"id": 865}}, "task": {"id": 327, "owner": {"id": 984}, "assignee": {"id": 37}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 301, "assignee": {"id": 73}, "organization": {"id": 156}, "project": {"id": 380, "owner": {"id": 784}, "assignee": {"id": 809}}, "task": {"id": 302, "owner": {"id": 904}, "assignee": {"id": 1076}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"id": 337, "assignee": {"id": 8}, "organization": {"id": 622}, "project": {"id": 378, "owner": {"id": 765}, "assignee": {"id": 821}}, "task": {"id": 374, "owner": {"id": 972}, "assignee": {"id": 1031}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "assignee": {"id": 44}, "organization": {"id": 177}, "project": {"id": 316, "owner": {"id": 764}, "assignee": {"id": 816}}, "task": {"id": 354, "owner": {"id": 945}, "assignee": {"id": 1064}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "assignee": {"id": 43}, "organization": {"id": 698}, "project": {"id": 323, "owner": {"id": 736}, "assignee": {"id": 866}}, "task": {"id": 375, "owner": {"id": 909}, "assignee": {"id": 1000}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "assignee": {"id": 33}, "organization": {"id": 129}, "project": {"id": 372, "owner": {"id": 711}, "assignee": {"id": 846}}, "task": {"id": 398, "owner": {"id": 967}, "assignee": {"id": 1095}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 36, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "assignee": {"id": 36}, "organization": {"id": 648}, "project": {"id": 344, "owner": {"id": 714}, "assignee": {"id": 883}}, "task": {"id": 318, "owner": {"id": 998}, "assignee": {"id": 1028}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 335, "assignee": {"id": 53}, "organization": {"id": 183}, "project": {"id": 359, "owner": {"id": 788}, "assignee": {"id": 803}}, "task": {"id": 365, "owner": {"id": 998}, "assignee": {"id": 1002}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 309, "assignee": {"id": 41}, "organization": {"id": 630}, "project": {"id": 375, "owner": {"id": 742}, "assignee": {"id": 878}}, "task": {"id": 383, "owner": {"id": 937}, "assignee": {"id": 1030}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 395, "assignee": {"id": 88}, "organization": {"id": 193}, "project": {"id": 341, "owner": {"id": 779}, "assignee": {"id": 802}}, "task": {"id": 395, "owner": {"id": 960}, "assignee": {"id": 1026}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 319, "assignee": {"id": 39}, "organization": {"id": 620}, "project": {"id": 309, "owner": {"id": 781}, "assignee": {"id": 812}}, "task": {"id": 309, "owner": {"id": 923}, "assignee": {"id": 1050}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 312, "assignee": {"id": 70}, "organization": {"id": 164}, "project": {"id": 310, "owner": {"id": 740}, "assignee": {"id": 832}}, "task": {"id": 333, "owner": {"id": 998}, "assignee": {"id": 1063}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 327, "assignee": {"id": 3}, "organization": {"id": 659}, "project": {"id": 381, "owner": {"id": 758}, "assignee": {"id": 806}}, "task": {"id": 362, "owner": {"id": 907}, "assignee": {"id": 1047}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "assignee": {"id": 85}, "organization": {"id": 127}, "project": {"id": 392, "owner": {"id": 702}, "assignee": {"id": 881}}, "task": {"id": 351, "owner": {"id": 916}, "assignee": {"id": 1049}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "assignee": {"id": 54}, "organization": {"id": 622}, "project": {"id": 332, "owner": {"id": 791}, "assignee": {"id": 884}}, "task": {"id": 397, "owner": {"id": 925}, "assignee": {"id": 1016}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "assignee": {"id": 62}, "organization": {"id": 105}, "project": {"id": 363, "owner": {"id": 777}, "assignee": {"id": 867}}, "task": {"id": 306, "owner": {"id": 932}, "assignee": {"id": 1094}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "assignee": {"id": 63}, "organization": {"id": 695}, "project": {"id": 382, "owner": {"id": 730}, "assignee": {"id": 856}}, "task": {"id": 377, "owner": {"id": 966}, "assignee": {"id": 1063}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 320, "assignee": {"id": 49}, "organization": {"id": 172}, "project": {"id": 324, "owner": {"id": 779}, "assignee": {"id": 875}}, "task": {"id": 379, "owner": {"id": 955}, "assignee": {"id": 1024}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 366, "assignee": {"id": 86}, "organization": {"id": 646}, "project": {"id": 335, "owner": {"id": 734}, "assignee": {"id": 813}}, "task": {"id": 386, "owner": {"id": 975}, "assignee": {"id": 1069}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 346, "assignee": {"id": 95}, "organization": {"id": 177}, "project": {"id": 372, "owner": {"id": 719}, "assignee": {"id": 867}}, "task": {"id": 321, "owner": {"id": 951}, "assignee": {"id": 1018}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 312, "assignee": {"id": 21}, "organization": {"id": 645}, "project": {"id": 313, "owner": {"id": 740}, "assignee": {"id": 877}}, "task": {"id": 392, "owner": {"id": 973}, "assignee": {"id": 1040}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 357, "assignee": {"id": 28}, "organization": {"id": 124}, "project": {"id": 363, "owner": {"id": 712}, "assignee": {"id": 846}}, "task": {"id": 382, "owner": {"id": 942}, "assignee": {"id": 1094}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 309, "assignee": {"id": 82}, "organization": {"id": 657}, "project": {"id": 373, "owner": {"id": 799}, "assignee": {"id": 829}}, "task": {"id": 309, "owner": {"id": 985}, "assignee": {"id": 1027}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "assignee": {"id": 46}, "organization": {"id": 180}, "project": {"id": 378, "owner": {"id": 754}, "assignee": {"id": 895}}, "task": {"id": 312, "owner": {"id": 959}, "assignee": {"id": 1048}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "assignee": {"id": 39}, "organization": {"id": 602}, "project": {"id": 302, "owner": {"id": 705}, "assignee": {"id": 821}}, "task": {"id": 363, "owner": {"id": 967}, "assignee": {"id": 1054}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "assignee": {"id": 0}, "organization": {"id": 144}, "project": {"id": 366, "owner": {"id": 785}, "assignee": {"id": 896}}, "task": {"id": 359, "owner": {"id": 907}, "assignee": {"id": 1098}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "assignee": {"id": 24}, "organization": {"id": 641}, "project": {"id": 329, "owner": {"id": 765}, "assignee": {"id": 883}}, "task": {"id": 306, "owner": {"id": 983}, "assignee": {"id": 1053}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 389, "assignee": {"id": 93}, "organization": {"id": 171}, "project": {"id": 327, "owner": {"id": 763}, "assignee": {"id": 849}}, "task": {"id": 376, "owner": {"id": 926}, "assignee": {"id": 1021}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 381, "assignee": {"id": 99}, "organization": {"id": 687}, "project": {"id": 321, "owner": {"id": 790}, "assignee": {"id": 863}}, "task": {"id": 336, "owner": {"id": 986}, "assignee": {"id": 1049}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"id": 350, "assignee": {"id": 95}, "organization": {"id": 144}, "project": {"id": 378, "owner": {"id": 760}, "assignee": {"id": 840}}, "task": {"id": 324, "owner": {"id": 911}, "assignee": {"id": 1009}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 385, "assignee": {"id": 56}, "organization": {"id": 697}, "project": {"id": 326, "owner": {"id": 768}, "assignee": {"id": 862}}, "task": {"id": 317, "owner": {"id": 984}, "assignee": {"id": 1003}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 377, "assignee": {"id": 77}, "organization": {"id": 134}, "project": {"id": 312, "owner": {"id": 739}, "assignee": {"id": 883}}, "task": {"id": 338, "owner": {"id": 932}, "assignee": {"id": 1083}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 375, "assignee": {"id": 97}, "organization": {"id": 672}, "project": {"id": 348, "owner": {"id": 784}, "assignee": {"id": 834}}, "task": {"id": 340, "owner": {"id": 986}, "assignee": {"id": 1073}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "assignee": {"id": 73}, "organization": {"id": 191}, "project": {"id": 333, "owner": {"id": 785}, "assignee": {"id": 825}}, "task": {"id": 370, "owner": {"id": 935}, "assignee": {"id": 1000}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "assignee": {"id": 81}, "organization": {"id": 657}, "project": {"id": 385, "owner": {"id": 709}, "assignee": {"id": 845}}, "task": {"id": 357, "owner": {"id": 929}, "assignee": {"id": 1085}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "assignee": {"id": 19}, "organization": {"id": 144}, "project": {"id": 356, "owner": {"id": 707}, "assignee": {"id": 841}}, "task": {"id": 386, "owner": {"id": 914}, "assignee": {"id": 1069}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "assignee": {"id": 16}, "organization": {"id": 603}, "project": {"id": 324, "owner": {"id": 711}, "assignee": {"id": 883}}, "task": {"id": 368, "owner": {"id": 955}, "assignee": {"id": 1057}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 345, "assignee": {"id": 9}, "organization": {"id": 179}, "project": {"id": 335, "owner": {"id": 735}, "assignee": {"id": 894}}, "task": {"id": 347, "owner": {"id": 953}, "assignee": {"id": 1054}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 351, "assignee": {"id": 6}, "organization": {"id": 658}, "project": {"id": 387, "owner": {"id": 748}, "assignee": {"id": 801}}, "task": {"id": 311, "owner": {"id": 992}, "assignee": {"id": 1042}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 330, "assignee": {"id": 47}, "organization": {"id": 143}, "project": {"id": 398, "owner": {"id": 710}, "assignee": {"id": 800}}, "task": {"id": 323, "owner": {"id": 950}, "assignee": {"id": 1083}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 348, "assignee": {"id": 46}, "organization": {"id": 638}, "project": {"id": 359, "owner": {"id": 747}, "assignee": {"id": 853}}, "task": {"id": 382, "owner": {"id": 998}, "assignee": {"id": 1050}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 324, "assignee": {"id": 97}, "organization": {"id": 107}, "project": {"id": 375, "owner": {"id": 782}, "assignee": {"id": 861}}, "task": {"id": 361, "owner": {"id": 938}, "assignee": {"id": 1010}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 300, "assignee": {"id": 30}, "organization": {"id": 666}, "project": {"id": 341, "owner": {"id": 778}, "assignee": {"id": 802}}, "task": {"id": 396, "owner": {"id": 992}, "assignee": {"id": 1019}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "assignee": {"id": 62}, "organization": {"id": 181}, "project": {"id": 397, "owner": {"id": 789}, "assignee": {"id": 823}}, "task": {"id": 315, "owner": {"id": 939}, "assignee": {"id": 1089}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "assignee": {"id": 26}, "organization": {"id": 648}, "project": {"id": 342, "owner": {"id": 728}, "assignee": {"id": 859}}, "task": {"id": 328, "owner": {"id": 901}, "assignee": {"id": 1041}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "assignee": {"id": 53}, "organization": {"id": 119}, "project": {"id": 300, "owner": {"id": 762}, "assignee": {"id": 890}}, "task": {"id": 367, "owner": {"id": 908}, "assignee": {"id": 1081}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "assignee": {"id": 14}, "organization": {"id": 673}, "project": {"id": 383, "owner": {"id": 748}, "assignee": {"id": 814}}, "task": {"id": 345, "owner": {"id": 907}, "assignee": {"id": 1061}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 350, "assignee": {"id": 42}, "organization": {"id": 173}, "project": {"id": 377, "owner": {"id": 706}, "assignee": {"id": 828}}, "task": {"id": 355, "owner": {"id": 958}, "assignee": {"id": 1007}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 334, "assignee": {"id": 56}, "organization": {"id": 615}, "project": {"id": 358, "owner": {"id": 784}, "assignee": {"id": 873}}, "task": {"id": 381, "owner": {"id": 987}, "assignee": {"id": 1060}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 386, "assignee": {"id": 72}, "organization": {"id": 179}, "project": {"id": 376, "owner": {"id": 773}, "assignee": {"id": 836}}, "task": {"id": 352, "owner": {"id": 956}, "assignee": {"id": 1004}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 19, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 386, "assignee": {"id": 19}, "organization": {"id": 670}, "project": {"id": 359, "owner": {"id": 734}, "assignee": {"id": 878}}, "task": {"id": 353, "owner": {"id": 908}, "assignee": {"id": 1019}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 328, "assignee": {"id": 502}, "organization": {"id": 160}, "project": {"id": 385, "owner": {"id": 796}, "assignee": {"id": 862}}, "task": {"id": 369, "owner": {"id": 966}, "assignee": {"id": 1039}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 372, "assignee": {"id": 569}, "organization": {"id": 665}, "project": {"id": 364, "owner": {"id": 719}, "assignee": {"id": 832}}, "task": {"id": 399, "owner": {"id": 927}, "assignee": {"id": 1058}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "assignee": {"id": 594}, "organization": {"id": 123}, "project": {"id": 368, "owner": {"id": 787}, "assignee": {"id": 855}}, "task": {"id": 322, "owner": {"id": 957}, "assignee": {"id": 1032}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "assignee": {"id": 501}, "organization": {"id": 699}, "project": {"id": 304, "owner": {"id": 772}, "assignee": {"id": 891}}, "task": {"id": 356, "owner": {"id": 908}, "assignee": {"id": 1041}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "assignee": {"id": 545}, "organization": {"id": 193}, "project": {"id": 314, "owner": {"id": 724}, "assignee": {"id": 897}}, "task": {"id": 327, "owner": {"id": 949}, "assignee": {"id": 1057}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "assignee": {"id": 508}, "organization": {"id": 641}, "project": {"id": 348, "owner": {"id": 757}, "assignee": {"id": 897}}, "task": {"id": 393, "owner": {"id": 966}, "assignee": {"id": 1008}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 320, "assignee": {"id": 568}, "organization": {"id": 182}, "project": {"id": 337, "owner": {"id": 796}, "assignee": {"id": 851}}, "task": {"id": 339, "owner": {"id": 977}, "assignee": {"id": 1082}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 357, "assignee": {"id": 510}, "organization": {"id": 653}, "project": {"id": 341, "owner": {"id": 707}, "assignee": {"id": 872}}, "task": {"id": 335, "owner": {"id": 985}, "assignee": {"id": 1081}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 384, "assignee": {"id": 513}, "organization": {"id": 128}, "project": {"id": 372, "owner": {"id": 752}, "assignee": {"id": 881}}, "task": {"id": 330, "owner": {"id": 960}, "assignee": {"id": 1068}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 383, "assignee": {"id": 578}, "organization": {"id": 608}, "project": {"id": 346, "owner": {"id": 713}, "assignee": {"id": 865}}, "task": {"id": 393, "owner": {"id": 909}, "assignee": {"id": 1090}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 302, "assignee": {"id": 503}, "organization": {"id": 136}, "project": {"id": 356, "owner": {"id": 776}, "assignee": {"id": 806}}, "task": {"id": 338, "owner": {"id": 955}, "assignee": {"id": 1093}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 333, "assignee": {"id": 507}, "organization": {"id": 698}, "project": {"id": 344, "owner": {"id": 787}, "assignee": {"id": 869}}, "task": {"id": 308, "owner": {"id": 942}, "assignee": {"id": 1012}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "assignee": {"id": 532}, "organization": {"id": 179}, "project": {"id": 363, "owner": {"id": 771}, "assignee": {"id": 872}}, "task": {"id": 311, "owner": {"id": 990}, "assignee": {"id": 1080}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 320, "assignee": {"id": 555}, "organization": {"id": 668}, "project": {"id": 376, "owner": {"id": 706}, "assignee": {"id": 802}}, "task": {"id": 379, "owner": {"id": 964}, "assignee": {"id": 1054}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "assignee": {"id": 566}, "organization": {"id": 149}, "project": {"id": 337, "owner": {"id": 739}, "assignee": {"id": 810}}, "task": {"id": 354, "owner": {"id": 981}, "assignee": {"id": 1054}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "assignee": {"id": 561}, "organization": {"id": 697}, "project": {"id": 359, "owner": {"id": 787}, "assignee": {"id": 819}}, "task": {"id": 377, "owner": {"id": 935}, "assignee": {"id": 1020}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 306, "assignee": {"id": 571}, "organization": {"id": 135}, "project": {"id": 343, "owner": {"id": 794}, "assignee": {"id": 866}}, "task": {"id": 395, "owner": {"id": 944}, "assignee": {"id": 1070}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 301, "assignee": {"id": 532}, "organization": {"id": 679}, "project": {"id": 382, "owner": {"id": 761}, "assignee": {"id": 862}}, "task": {"id": 391, "owner": {"id": 987}, "assignee": {"id": 1075}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 361, "assignee": {"id": 522}, "organization": {"id": 108}, "project": {"id": 300, "owner": {"id": 704}, "assignee": {"id": 829}}, "task": {"id": 307, "owner": {"id": 925}, "assignee": {"id": 1010}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 366, "assignee": {"id": 552}, "organization": {"id": 611}, "project": {"id": 357, "owner": {"id": 744}, "assignee": {"id": 875}}, "task": {"id": 371, "owner": {"id": 977}, "assignee": {"id": 1055}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 387, "assignee": {"id": 539}, "organization": {"id": 178}, "project": {"id": 338, "owner": {"id": 781}, "assignee": {"id": 859}}, "task": {"id": 353, "owner": {"id": 933}, "assignee": {"id": 1082}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 375, "assignee": {"id": 544}, "organization": {"id": 664}, "project": {"id": 327, "owner": {"id": 723}, "assignee": {"id": 846}}, "task": {"id": 309, "owner": {"id": 976}, "assignee": {"id": 1073}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:commits", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "assignee": {"id": 551}, "organization": {"id": 162}, "project": {"id": 327, "owner": {"id": 733}, "assignee": {"id": 879}}, "task": {"id": 317, "owner": {"id": 918}, "assignee": {"id": 1056}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "assignee": {"id": 560}, "organization": {"id": 607}, "project": {"id": 368, "owner": {"id": 741}, "assignee": {"id": 873}}, "task": {"id": 339, "owner": {"id": 986}, "assignee": {"id": 1021}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "assignee": {"id": 578}, "organization": {"id": 135}, "project": {"id": 395, "owner": {"id": 746}, "assignee": {"id": 894}}, "task": {"id": 347, "owner": {"id": 933}, "assignee": {"id": 1025}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "assignee": {"id": 523}, "organization": {"id": 611}, "project": {"id": 330, "owner": {"id": 766}, "assignee": {"id": 881}}, "task": {"id": 300, "owner": {"id": 915}, "assignee": {"id": 1015}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 361, "assignee": {"id": 551}, "organization": {"id": 179}, "project": {"id": 335, "owner": {"id": 799}, "assignee": {"id": 812}}, "task": {"id": 386, "owner": {"id": 947}, "assignee": {"id": 1013}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 397, "assignee": {"id": 546}, "organization": {"id": 647}, "project": {"id": 331, "owner": {"id": 720}, "assignee": {"id": 826}}, "task": {"id": 360, "owner": {"id": 946}, "assignee": {"id": 1001}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 378, "assignee": {"id": 563}, "organization": {"id": 191}, "project": {"id": 315, "owner": {"id": 759}, "assignee": {"id": 840}}, "task": {"id": 321, "owner": {"id": 940}, "assignee": {"id": 1019}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 318, "assignee": {"id": 535}, "organization": {"id": 630}, "project": {"id": 332, "owner": {"id": 789}, "assignee": {"id": 818}}, "task": {"id": 312, "owner": {"id": 994}, "assignee": {"id": 1026}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 361, "assignee": {"id": 573}, "organization": {"id": 128}, "project": {"id": 341, "owner": {"id": 755}, "assignee": {"id": 821}}, "task": {"id": 370, "owner": {"id": 900}, "assignee": {"id": 1062}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 302, "assignee": {"id": 501}, "organization": {"id": 653}, "project": {"id": 390, "owner": {"id": 733}, "assignee": {"id": 888}}, "task": {"id": 341, "owner": {"id": 998}, "assignee": {"id": 1041}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "assignee": {"id": 566}, "organization": {"id": 166}, "project": {"id": 378, "owner": {"id": 737}, "assignee": {"id": 805}}, "task": {"id": 360, "owner": {"id": 986}, "assignee": {"id": 1069}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 24, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "assignee": {"id": 546}, "organization": {"id": 694}, "project": {"id": 344, "owner": {"id": 766}, "assignee": {"id": 856}}, "task": {"id": 395, "owner": {"id": 923}, "assignee": {"id": 1073}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "assignee": {"id": 502}, "organization": {"id": 159}, "project": {"id": 354, "owner": {"id": 796}, "assignee": {"id": 820}}, "task": {"id": 380, "owner": {"id": 981}, "assignee": {"id": 1046}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "assignee": {"id": 548}, "organization": {"id": 602}, "project": {"id": 367, "owner": {"id": 707}, "assignee": {"id": 847}}, "task": {"id": 345, "owner": {"id": 968}, "assignee": {"id": 1017}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 318, "assignee": {"id": 596}, "organization": {"id": 108}, "project": {"id": 390, "owner": {"id": 785}, "assignee": {"id": 810}}, "task": {"id": 352, "owner": {"id": 958}, "assignee": {"id": 1047}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 347, "assignee": {"id": 525}, "organization": {"id": 617}, "project": {"id": 381, "owner": {"id": 757}, "assignee": {"id": 895}}, "task": {"id": 303, "owner": {"id": 999}, "assignee": {"id": 1027}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 336, "assignee": {"id": 556}, "organization": {"id": 186}, "project": {"id": 343, "owner": {"id": 796}, "assignee": {"id": 848}}, "task": {"id": 389, "owner": {"id": 969}, "assignee": {"id": 1065}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"id": 327, "assignee": {"id": 594}, "organization": {"id": 662}, "project": {"id": 311, "owner": {"id": 730}, "assignee": {"id": 856}}, "task": {"id": 375, "owner": {"id": 975}, "assignee": {"id": 1068}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 303, "assignee": {"id": 588}, "organization": {"id": 109}, "project": {"id": 331, "owner": {"id": 764}, "assignee": {"id": 823}}, "task": {"id": 369, "owner": {"id": 974}, "assignee": {"id": 1070}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 390, "assignee": {"id": 519}, "organization": {"id": 683}, "project": {"id": 399, "owner": {"id": 728}, "assignee": {"id": 884}}, "task": {"id": 378, "owner": {"id": 949}, "assignee": {"id": 1042}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "assignee": {"id": 524}, "organization": {"id": 114}, "project": {"id": 382, "owner": {"id": 762}, "assignee": {"id": 897}}, "task": {"id": 349, "owner": {"id": 934}, "assignee": {"id": 1036}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "assignee": {"id": 541}, "organization": {"id": 649}, "project": {"id": 319, "owner": {"id": 721}, "assignee": {"id": 819}}, "task": {"id": 301, "owner": {"id": 969}, "assignee": {"id": 1084}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "assignee": {"id": 532}, "organization": {"id": 115}, "project": {"id": 334, "owner": {"id": 716}, "assignee": {"id": 875}}, "task": {"id": 372, "owner": {"id": 987}, "assignee": {"id": 1093}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "assignee": {"id": 507}, "organization": {"id": 657}, "project": {"id": 309, "owner": {"id": 771}, "assignee": {"id": 886}}, "task": {"id": 348, "owner": {"id": 905}, "assignee": {"id": 1093}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 383, "assignee": {"id": 525}, "organization": {"id": 167}, "project": {"id": 376, "owner": {"id": 733}, "assignee": {"id": 843}}, "task": {"id": 309, "owner": {"id": 904}, "assignee": {"id": 1049}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 366, "assignee": {"id": 592}, "organization": {"id": 619}, "project": {"id": 378, "owner": {"id": 718}, "assignee": {"id": 809}}, "task": {"id": 348, "owner": {"id": 918}, "assignee": {"id": 1074}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 301, "assignee": {"id": 539}, "organization": {"id": 196}, "project": {"id": 323, "owner": {"id": 762}, "assignee": {"id": 864}}, "task": {"id": 347, "owner": {"id": 989}, "assignee": {"id": 1063}}}} -} - -test_scope_VIEW_COMMITS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:commits", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 331, "assignee": {"id": 553}, "organization": {"id": 683}, "project": {"id": 324, "owner": {"id": 781}, "assignee": {"id": 801}}, "task": {"id": 346, "owner": {"id": 948}, "assignee": {"id": 1076}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": null}, "resource": {"id": 363, "assignee": {"id": 553}, "organization": {"id": 627}, "project": {"id": 371, "owner": {"id": 9}, "assignee": {"id": 899}}, "task": {"id": 309, "owner": {"id": 991}, "assignee": {"id": 1075}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": null}, "resource": {"id": 303, "assignee": {"id": 553}, "organization": {"id": 627}, "project": {"id": 303, "owner": {"id": 58}, "assignee": {"id": 814}}, "task": {"id": 348, "owner": {"id": 944}, "assignee": {"id": 1016}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": null}, "resource": {"id": 303, "assignee": {"id": 514}, "organization": {"id": 651}, "project": {"id": 390, "owner": {"id": 4}, "assignee": {"id": 853}}, "task": {"id": 316, "owner": {"id": 941}, "assignee": {"id": 1008}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": null}, "resource": {"id": 334, "assignee": {"id": 550}, "organization": {"id": 646}, "project": {"id": 300, "owner": {"id": 81}, "assignee": {"id": 828}}, "task": {"id": 373, "owner": {"id": 932}, "assignee": {"id": 1098}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": null}, "resource": {"id": 363, "assignee": {"id": 521}, "organization": {"id": 601}, "project": {"id": 318, "owner": {"id": 3}, "assignee": {"id": 832}}, "task": {"id": 371, "owner": {"id": 962}, "assignee": {"id": 1010}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": null}, "resource": {"id": 300, "assignee": {"id": 556}, "organization": {"id": 637}, "project": {"id": 314, "owner": {"id": 762}, "assignee": {"id": 22}}, "task": {"id": 354, "owner": {"id": 901}, "assignee": {"id": 1021}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": null}, "resource": {"id": 342, "assignee": {"id": 506}, "organization": {"id": 671}, "project": {"id": 333, "owner": {"id": 745}, "assignee": {"id": 83}}, "task": {"id": 395, "owner": {"id": 987}, "assignee": {"id": 1009}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": null}, "resource": {"id": 375, "assignee": {"id": 518}, "organization": {"id": 689}, "project": {"id": 388, "owner": {"id": 708}, "assignee": {"id": 2}}, "task": {"id": 382, "owner": {"id": 915}, "assignee": {"id": 1094}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": null}, "resource": {"id": 329, "assignee": {"id": 539}, "organization": {"id": 624}, "project": {"id": 302, "owner": {"id": 757}, "assignee": {"id": 19}}, "task": {"id": 366, "owner": {"id": 983}, "assignee": {"id": 1029}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": null}, "resource": {"id": 353, "assignee": {"id": 539}, "organization": {"id": 657}, "project": {"id": 324, "owner": {"id": 708}, "assignee": {"id": 65}}, "task": {"id": 312, "owner": {"id": 999}, "assignee": {"id": 1050}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": null}, "resource": {"id": 319, "assignee": {"id": 575}, "organization": {"id": 694}, "project": {"id": 325, "owner": {"id": 766}, "assignee": {"id": 895}}, "task": {"id": 300, "owner": {"id": 0}, "assignee": {"id": 1043}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": null}, "resource": {"id": 376, "assignee": {"id": 501}, "organization": {"id": 660}, "project": {"id": 320, "owner": {"id": 752}, "assignee": {"id": 888}}, "task": {"id": 387, "owner": {"id": 65}, "assignee": {"id": 1067}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 71, "privilege": "user"}, "organization": null}, "resource": {"id": 335, "assignee": {"id": 549}, "organization": {"id": 662}, "project": {"id": 304, "owner": {"id": 710}, "assignee": {"id": 835}}, "task": {"id": 390, "owner": {"id": 71}, "assignee": {"id": 1019}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": null}, "resource": {"id": 343, "assignee": {"id": 561}, "organization": {"id": 657}, "project": {"id": 361, "owner": {"id": 791}, "assignee": {"id": 863}}, "task": {"id": 367, "owner": {"id": 17}, "assignee": {"id": 1072}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": null}, "resource": {"id": 340, "assignee": {"id": 515}, "organization": {"id": 601}, "project": {"id": 367, "owner": {"id": 752}, "assignee": {"id": 899}}, "task": {"id": 313, "owner": {"id": 59}, "assignee": {"id": 1075}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": null}, "resource": {"id": 302, "assignee": {"id": 588}, "organization": {"id": 621}, "project": {"id": 337, "owner": {"id": 737}, "assignee": {"id": 888}}, "task": {"id": 347, "owner": {"id": 948}, "assignee": {"id": 59}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": null}, "resource": {"id": 320, "assignee": {"id": 583}, "organization": {"id": 695}, "project": {"id": 377, "owner": {"id": 726}, "assignee": {"id": 802}}, "task": {"id": 376, "owner": {"id": 982}, "assignee": {"id": 37}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 90, "privilege": "user"}, "organization": null}, "resource": {"id": 303, "assignee": {"id": 577}, "organization": {"id": 639}, "project": {"id": 342, "owner": {"id": 733}, "assignee": {"id": 885}}, "task": {"id": 303, "owner": {"id": 920}, "assignee": {"id": 90}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": null}, "resource": {"id": 320, "assignee": {"id": 570}, "organization": {"id": 660}, "project": {"id": 335, "owner": {"id": 707}, "assignee": {"id": 858}}, "task": {"id": 340, "owner": {"id": 911}, "assignee": {"id": 31}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": null}, "resource": {"id": 368, "assignee": {"id": 515}, "organization": {"id": 630}, "project": {"id": 301, "owner": {"id": 725}, "assignee": {"id": 818}}, "task": {"id": 395, "owner": {"id": 952}, "assignee": {"id": 38}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": null}, "resource": {"id": 334, "assignee": {"id": 88}, "organization": {"id": 640}, "project": {"id": 381, "owner": {"id": 758}, "assignee": {"id": 841}}, "task": {"id": 365, "owner": {"id": 988}, "assignee": {"id": 1034}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": null}, "resource": {"id": 352, "assignee": {"id": 9}, "organization": {"id": 686}, "project": {"id": 322, "owner": {"id": 755}, "assignee": {"id": 833}}, "task": {"id": 338, "owner": {"id": 986}, "assignee": {"id": 1006}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": null}, "resource": {"id": 355, "assignee": {"id": 27}, "organization": {"id": 612}, "project": {"id": 379, "owner": {"id": 792}, "assignee": {"id": 844}}, "task": {"id": 398, "owner": {"id": 975}, "assignee": {"id": 1058}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": null}, "resource": {"id": 344, "assignee": {"id": 77}, "organization": {"id": 656}, "project": {"id": 369, "owner": {"id": 788}, "assignee": {"id": 828}}, "task": {"id": 329, "owner": {"id": 976}, "assignee": {"id": 1031}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": null}, "resource": {"id": 306, "assignee": {"id": 84}, "organization": {"id": 670}, "project": {"id": 304, "owner": {"id": 785}, "assignee": {"id": 816}}, "task": {"id": 304, "owner": {"id": 962}, "assignee": {"id": 1043}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": null}, "resource": {"id": 356, "assignee": {"id": 543}, "organization": {"id": 653}, "project": {"id": 346, "owner": {"id": 717}, "assignee": {"id": 889}}, "task": {"id": 390, "owner": {"id": 903}, "assignee": {"id": 1069}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": null}, "resource": {"id": 384, "assignee": {"id": 532}, "organization": {"id": 660}, "project": {"id": 379, "owner": {"id": 768}, "assignee": {"id": 892}}, "task": {"id": 305, "owner": {"id": 992}, "assignee": {"id": 1013}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": null}, "resource": {"id": 398, "assignee": {"id": 559}, "organization": {"id": 644}, "project": {"id": 343, "owner": {"id": 733}, "assignee": {"id": 857}}, "task": {"id": 344, "owner": {"id": 925}, "assignee": {"id": 1090}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": null}, "resource": {"id": 347, "assignee": {"id": 516}, "organization": {"id": 610}, "project": {"id": 342, "owner": {"id": 719}, "assignee": {"id": 853}}, "task": {"id": 361, "owner": {"id": 925}, "assignee": {"id": 1083}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": null}, "resource": {"id": 382, "assignee": {"id": 598}, "organization": {"id": 612}, "project": {"id": 379, "owner": {"id": 778}, "assignee": {"id": 848}}, "task": {"id": 393, "owner": {"id": 985}, "assignee": {"id": 1080}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 343, "assignee": {"id": 591}, "organization": {"id": 177}, "project": {"id": 353, "owner": {"id": 82}, "assignee": {"id": 889}}, "task": {"id": 311, "owner": {"id": 946}, "assignee": {"id": 1081}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 344, "assignee": {"id": 587}, "organization": {"id": 687}, "project": {"id": 380, "owner": {"id": 37}, "assignee": {"id": 829}}, "task": {"id": 399, "owner": {"id": 964}, "assignee": {"id": 1099}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "assignee": {"id": 596}, "organization": {"id": 194}, "project": {"id": 374, "owner": {"id": 70}, "assignee": {"id": 899}}, "task": {"id": 302, "owner": {"id": 955}, "assignee": {"id": 1023}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "assignee": {"id": 511}, "organization": {"id": 641}, "project": {"id": 392, "owner": {"id": 84}, "assignee": {"id": 893}}, "task": {"id": 352, "owner": {"id": 950}, "assignee": {"id": 1006}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "assignee": {"id": 568}, "organization": {"id": 135}, "project": {"id": 344, "owner": {"id": 25}, "assignee": {"id": 881}}, "task": {"id": 366, "owner": {"id": 927}, "assignee": {"id": 1033}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "assignee": {"id": 552}, "organization": {"id": 631}, "project": {"id": 341, "owner": {"id": 63}, "assignee": {"id": 867}}, "task": {"id": 307, "owner": {"id": 988}, "assignee": {"id": 1066}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 380, "assignee": {"id": 596}, "organization": {"id": 190}, "project": {"id": 336, "owner": {"id": 12}, "assignee": {"id": 818}}, "task": {"id": 337, "owner": {"id": 989}, "assignee": {"id": 1033}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 359, "assignee": {"id": 549}, "organization": {"id": 618}, "project": {"id": 312, "owner": {"id": 2}, "assignee": {"id": 862}}, "task": {"id": 395, "owner": {"id": 937}, "assignee": {"id": 1030}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 336, "assignee": {"id": 563}, "organization": {"id": 130}, "project": {"id": 316, "owner": {"id": 67}, "assignee": {"id": 881}}, "task": {"id": 325, "owner": {"id": 917}, "assignee": {"id": 1050}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 338, "assignee": {"id": 566}, "organization": {"id": 661}, "project": {"id": 303, "owner": {"id": 42}, "assignee": {"id": 892}}, "task": {"id": 381, "owner": {"id": 922}, "assignee": {"id": 1074}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 386, "assignee": {"id": 521}, "organization": {"id": 167}, "project": {"id": 390, "owner": {"id": 33}, "assignee": {"id": 805}}, "task": {"id": 371, "owner": {"id": 939}, "assignee": {"id": 1044}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"id": 348, "assignee": {"id": 517}, "organization": {"id": 656}, "project": {"id": 361, "owner": {"id": 66}, "assignee": {"id": 828}}, "task": {"id": 313, "owner": {"id": 923}, "assignee": {"id": 1043}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "assignee": {"id": 598}, "organization": {"id": 113}, "project": {"id": 359, "owner": {"id": 32}, "assignee": {"id": 851}}, "task": {"id": 328, "owner": {"id": 934}, "assignee": {"id": 1000}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "assignee": {"id": 595}, "organization": {"id": 632}, "project": {"id": 333, "owner": {"id": 98}, "assignee": {"id": 854}}, "task": {"id": 343, "owner": {"id": 991}, "assignee": {"id": 1023}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "assignee": {"id": 578}, "organization": {"id": 108}, "project": {"id": 366, "owner": {"id": 22}, "assignee": {"id": 897}}, "task": {"id": 314, "owner": {"id": 952}, "assignee": {"id": 1075}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "assignee": {"id": 509}, "organization": {"id": 659}, "project": {"id": 313, "owner": {"id": 80}, "assignee": {"id": 847}}, "task": {"id": 388, "owner": {"id": 984}, "assignee": {"id": 1018}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 341, "assignee": {"id": 533}, "organization": {"id": 102}, "project": {"id": 358, "owner": {"id": 80}, "assignee": {"id": 891}}, "task": {"id": 380, "owner": {"id": 941}, "assignee": {"id": 1000}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 356, "assignee": {"id": 533}, "organization": {"id": 687}, "project": {"id": 342, "owner": {"id": 53}, "assignee": {"id": 867}}, "task": {"id": 305, "owner": {"id": 962}, "assignee": {"id": 1053}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 358, "assignee": {"id": 566}, "organization": {"id": 158}, "project": {"id": 314, "owner": {"id": 22}, "assignee": {"id": 869}}, "task": {"id": 385, "owner": {"id": 931}, "assignee": {"id": 1015}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 305, "assignee": {"id": 563}, "organization": {"id": 668}, "project": {"id": 398, "owner": {"id": 69}, "assignee": {"id": 825}}, "task": {"id": 344, "owner": {"id": 977}, "assignee": {"id": 1036}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 316, "assignee": {"id": 532}, "organization": {"id": 101}, "project": {"id": 316, "owner": {"id": 49}, "assignee": {"id": 896}}, "task": {"id": 369, "owner": {"id": 968}, "assignee": {"id": 1015}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 324, "assignee": {"id": 546}, "organization": {"id": 631}, "project": {"id": 339, "owner": {"id": 39}, "assignee": {"id": 862}}, "task": {"id": 354, "owner": {"id": 989}, "assignee": {"id": 1045}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "assignee": {"id": 512}, "organization": {"id": 112}, "project": {"id": 382, "owner": {"id": 83}, "assignee": {"id": 874}}, "task": {"id": 383, "owner": {"id": 913}, "assignee": {"id": 1004}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "assignee": {"id": 599}, "organization": {"id": 659}, "project": {"id": 328, "owner": {"id": 80}, "assignee": {"id": 882}}, "task": {"id": 384, "owner": {"id": 987}, "assignee": {"id": 1010}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "assignee": {"id": 583}, "organization": {"id": 186}, "project": {"id": 340, "owner": {"id": 1}, "assignee": {"id": 832}}, "task": {"id": 336, "owner": {"id": 971}, "assignee": {"id": 1090}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "assignee": {"id": 558}, "organization": {"id": 660}, "project": {"id": 309, "owner": {"id": 41}, "assignee": {"id": 856}}, "task": {"id": 362, "owner": {"id": 989}, "assignee": {"id": 1013}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 364, "assignee": {"id": 543}, "organization": {"id": 134}, "project": {"id": 377, "owner": {"id": 36}, "assignee": {"id": 875}}, "task": {"id": 312, "owner": {"id": 987}, "assignee": {"id": 1057}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 372, "assignee": {"id": 532}, "organization": {"id": 601}, "project": {"id": 367, "owner": {"id": 68}, "assignee": {"id": 884}}, "task": {"id": 324, "owner": {"id": 903}, "assignee": {"id": 1096}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 320, "assignee": {"id": 521}, "organization": {"id": 197}, "project": {"id": 381, "owner": {"id": 79}, "assignee": {"id": 851}}, "task": {"id": 333, "owner": {"id": 912}, "assignee": {"id": 1077}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 341, "assignee": {"id": 571}, "organization": {"id": 695}, "project": {"id": 337, "owner": {"id": 59}, "assignee": {"id": 819}}, "task": {"id": 388, "owner": {"id": 972}, "assignee": {"id": 1031}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 341, "assignee": {"id": 516}, "organization": {"id": 121}, "project": {"id": 381, "owner": {"id": 1}, "assignee": {"id": 871}}, "task": {"id": 357, "owner": {"id": 916}, "assignee": {"id": 1067}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 370, "assignee": {"id": 549}, "organization": {"id": 640}, "project": {"id": 353, "owner": {"id": 1}, "assignee": {"id": 852}}, "task": {"id": 305, "owner": {"id": 901}, "assignee": {"id": 1070}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "assignee": {"id": 503}, "organization": {"id": 189}, "project": {"id": 315, "owner": {"id": 0}, "assignee": {"id": 898}}, "task": {"id": 370, "owner": {"id": 965}, "assignee": {"id": 1001}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 67, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "assignee": {"id": 500}, "organization": {"id": 642}, "project": {"id": 324, "owner": {"id": 67}, "assignee": {"id": 868}}, "task": {"id": 319, "owner": {"id": 969}, "assignee": {"id": 1050}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 380, "assignee": {"id": 520}, "organization": {"id": 158}, "project": {"id": 383, "owner": {"id": 1}, "assignee": {"id": 819}}, "task": {"id": 306, "owner": {"id": 996}, "assignee": {"id": 1024}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "assignee": {"id": 569}, "organization": {"id": 608}, "project": {"id": 397, "owner": {"id": 26}, "assignee": {"id": 873}}, "task": {"id": 394, "owner": {"id": 921}, "assignee": {"id": 1021}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 359, "assignee": {"id": 548}, "organization": {"id": 189}, "project": {"id": 350, "owner": {"id": 44}, "assignee": {"id": 814}}, "task": {"id": 346, "owner": {"id": 934}, "assignee": {"id": 1008}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 374, "assignee": {"id": 571}, "organization": {"id": 607}, "project": {"id": 357, "owner": {"id": 93}, "assignee": {"id": 899}}, "task": {"id": 386, "owner": {"id": 916}, "assignee": {"id": 1058}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 384, "assignee": {"id": 521}, "organization": {"id": 142}, "project": {"id": 376, "owner": {"id": 27}, "assignee": {"id": 819}}, "task": {"id": 384, "owner": {"id": 971}, "assignee": {"id": 1052}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 398, "assignee": {"id": 530}, "organization": {"id": 639}, "project": {"id": 374, "owner": {"id": 74}, "assignee": {"id": 890}}, "task": {"id": 349, "owner": {"id": 925}, "assignee": {"id": 1071}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 369, "assignee": {"id": 562}, "organization": {"id": 106}, "project": {"id": 383, "owner": {"id": 11}, "assignee": {"id": 878}}, "task": {"id": 341, "owner": {"id": 944}, "assignee": {"id": 1077}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 318, "assignee": {"id": 598}, "organization": {"id": 699}, "project": {"id": 395, "owner": {"id": 64}, "assignee": {"id": 830}}, "task": {"id": 346, "owner": {"id": 946}, "assignee": {"id": 1067}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "assignee": {"id": 565}, "organization": {"id": 177}, "project": {"id": 328, "owner": {"id": 66}, "assignee": {"id": 851}}, "task": {"id": 383, "owner": {"id": 927}, "assignee": {"id": 1082}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "assignee": {"id": 510}, "organization": {"id": 684}, "project": {"id": 376, "owner": {"id": 46}, "assignee": {"id": 844}}, "task": {"id": 341, "owner": {"id": 971}, "assignee": {"id": 1062}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "assignee": {"id": 581}, "organization": {"id": 185}, "project": {"id": 375, "owner": {"id": 76}, "assignee": {"id": 811}}, "task": {"id": 334, "owner": {"id": 992}, "assignee": {"id": 1074}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "assignee": {"id": 586}, "organization": {"id": 678}, "project": {"id": 338, "owner": {"id": 80}, "assignee": {"id": 854}}, "task": {"id": 359, "owner": {"id": 972}, "assignee": {"id": 1041}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 383, "assignee": {"id": 505}, "organization": {"id": 188}, "project": {"id": 359, "owner": {"id": 93}, "assignee": {"id": 899}}, "task": {"id": 365, "owner": {"id": 978}, "assignee": {"id": 1087}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 335, "assignee": {"id": 542}, "organization": {"id": 633}, "project": {"id": 369, "owner": {"id": 60}, "assignee": {"id": 809}}, "task": {"id": 371, "owner": {"id": 978}, "assignee": {"id": 1015}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 365, "assignee": {"id": 535}, "organization": {"id": 132}, "project": {"id": 366, "owner": {"id": 75}, "assignee": {"id": 868}}, "task": {"id": 394, "owner": {"id": 961}, "assignee": {"id": 1034}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 305, "assignee": {"id": 573}, "organization": {"id": 622}, "project": {"id": 353, "owner": {"id": 44}, "assignee": {"id": 870}}, "task": {"id": 399, "owner": {"id": 966}, "assignee": {"id": 1050}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 302, "assignee": {"id": 563}, "organization": {"id": 145}, "project": {"id": 323, "owner": {"id": 702}, "assignee": {"id": 2}}, "task": {"id": 371, "owner": {"id": 981}, "assignee": {"id": 1084}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 302, "assignee": {"id": 510}, "organization": {"id": 672}, "project": {"id": 363, "owner": {"id": 736}, "assignee": {"id": 41}}, "task": {"id": 397, "owner": {"id": 984}, "assignee": {"id": 1085}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "assignee": {"id": 518}, "organization": {"id": 181}, "project": {"id": 378, "owner": {"id": 716}, "assignee": {"id": 47}}, "task": {"id": 344, "owner": {"id": 989}, "assignee": {"id": 1097}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "assignee": {"id": 503}, "organization": {"id": 689}, "project": {"id": 388, "owner": {"id": 770}, "assignee": {"id": 1}}, "task": {"id": 354, "owner": {"id": 976}, "assignee": {"id": 1093}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 343, "assignee": {"id": 588}, "organization": {"id": 134}, "project": {"id": 371, "owner": {"id": 714}, "assignee": {"id": 19}}, "task": {"id": 399, "owner": {"id": 927}, "assignee": {"id": 1048}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "assignee": {"id": 537}, "organization": {"id": 679}, "project": {"id": 382, "owner": {"id": 787}, "assignee": {"id": 0}}, "task": {"id": 361, "owner": {"id": 986}, "assignee": {"id": 1004}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 314, "assignee": {"id": 573}, "organization": {"id": 134}, "project": {"id": 305, "owner": {"id": 750}, "assignee": {"id": 88}}, "task": {"id": 357, "owner": {"id": 917}, "assignee": {"id": 1039}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 354, "assignee": {"id": 506}, "organization": {"id": 679}, "project": {"id": 346, "owner": {"id": 760}, "assignee": {"id": 68}}, "task": {"id": 362, "owner": {"id": 920}, "assignee": {"id": 1036}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 336, "assignee": {"id": 558}, "organization": {"id": 116}, "project": {"id": 331, "owner": {"id": 706}, "assignee": {"id": 56}}, "task": {"id": 368, "owner": {"id": 927}, "assignee": {"id": 1042}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 368, "assignee": {"id": 577}, "organization": {"id": 603}, "project": {"id": 379, "owner": {"id": 712}, "assignee": {"id": 88}}, "task": {"id": 307, "owner": {"id": 904}, "assignee": {"id": 1091}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 334, "assignee": {"id": 582}, "organization": {"id": 133}, "project": {"id": 339, "owner": {"id": 780}, "assignee": {"id": 1}}, "task": {"id": 386, "owner": {"id": 910}, "assignee": {"id": 1064}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 317, "assignee": {"id": 505}, "organization": {"id": 686}, "project": {"id": 319, "owner": {"id": 720}, "assignee": {"id": 72}}, "task": {"id": 301, "owner": {"id": 940}, "assignee": {"id": 1099}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 358, "assignee": {"id": 531}, "organization": {"id": 164}, "project": {"id": 399, "owner": {"id": 755}, "assignee": {"id": 23}}, "task": {"id": 399, "owner": {"id": 983}, "assignee": {"id": 1096}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "assignee": {"id": 544}, "organization": {"id": 657}, "project": {"id": 346, "owner": {"id": 793}, "assignee": {"id": 65}}, "task": {"id": 344, "owner": {"id": 917}, "assignee": {"id": 1042}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "assignee": {"id": 549}, "organization": {"id": 164}, "project": {"id": 346, "owner": {"id": 703}, "assignee": {"id": 34}}, "task": {"id": 354, "owner": {"id": 997}, "assignee": {"id": 1049}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "assignee": {"id": 521}, "organization": {"id": 684}, "project": {"id": 351, "owner": {"id": 739}, "assignee": {"id": 5}}, "task": {"id": 360, "owner": {"id": 914}, "assignee": {"id": 1028}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 322, "assignee": {"id": 543}, "organization": {"id": 136}, "project": {"id": 333, "owner": {"id": 751}, "assignee": {"id": 30}}, "task": {"id": 333, "owner": {"id": 943}, "assignee": {"id": 1031}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 379, "assignee": {"id": 565}, "organization": {"id": 644}, "project": {"id": 317, "owner": {"id": 774}, "assignee": {"id": 36}}, "task": {"id": 381, "owner": {"id": 980}, "assignee": {"id": 1065}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 300, "assignee": {"id": 536}, "organization": {"id": 195}, "project": {"id": 388, "owner": {"id": 789}, "assignee": {"id": 85}}, "task": {"id": 347, "owner": {"id": 904}, "assignee": {"id": 1042}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 327, "assignee": {"id": 597}, "organization": {"id": 625}, "project": {"id": 361, "owner": {"id": 705}, "assignee": {"id": 13}}, "task": {"id": 377, "owner": {"id": 942}, "assignee": {"id": 1083}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 313, "assignee": {"id": 575}, "organization": {"id": 183}, "project": {"id": 382, "owner": {"id": 715}, "assignee": {"id": 46}}, "task": {"id": 368, "owner": {"id": 982}, "assignee": {"id": 1056}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 344, "assignee": {"id": 541}, "organization": {"id": 672}, "project": {"id": 335, "owner": {"id": 720}, "assignee": {"id": 85}}, "task": {"id": 373, "owner": {"id": 967}, "assignee": {"id": 1013}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "assignee": {"id": 519}, "organization": {"id": 111}, "project": {"id": 309, "owner": {"id": 778}, "assignee": {"id": 92}}, "task": {"id": 378, "owner": {"id": 958}, "assignee": {"id": 1059}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "assignee": {"id": 500}, "organization": {"id": 613}, "project": {"id": 391, "owner": {"id": 788}, "assignee": {"id": 37}}, "task": {"id": 356, "owner": {"id": 989}, "assignee": {"id": 1058}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 19, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "assignee": {"id": 533}, "organization": {"id": 156}, "project": {"id": 379, "owner": {"id": 700}, "assignee": {"id": 19}}, "task": {"id": 366, "owner": {"id": 942}, "assignee": {"id": 1077}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "assignee": {"id": 528}, "organization": {"id": 687}, "project": {"id": 353, "owner": {"id": 773}, "assignee": {"id": 77}}, "task": {"id": 334, "owner": {"id": 960}, "assignee": {"id": 1032}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 339, "assignee": {"id": 599}, "organization": {"id": 164}, "project": {"id": 349, "owner": {"id": 789}, "assignee": {"id": 91}}, "task": {"id": 368, "owner": {"id": 974}, "assignee": {"id": 1027}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 310, "assignee": {"id": 550}, "organization": {"id": 680}, "project": {"id": 394, "owner": {"id": 711}, "assignee": {"id": 58}}, "task": {"id": 367, "owner": {"id": 985}, "assignee": {"id": 1061}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 393, "assignee": {"id": 540}, "organization": {"id": 153}, "project": {"id": 386, "owner": {"id": 707}, "assignee": {"id": 79}}, "task": {"id": 337, "owner": {"id": 924}, "assignee": {"id": 1010}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 340, "assignee": {"id": 520}, "organization": {"id": 692}, "project": {"id": 308, "owner": {"id": 788}, "assignee": {"id": 81}}, "task": {"id": 372, "owner": {"id": 994}, "assignee": {"id": 1004}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 324, "assignee": {"id": 584}, "organization": {"id": 138}, "project": {"id": 317, "owner": {"id": 753}, "assignee": {"id": 62}}, "task": {"id": 347, "owner": {"id": 940}, "assignee": {"id": 1089}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 317, "assignee": {"id": 580}, "organization": {"id": 668}, "project": {"id": 396, "owner": {"id": 738}, "assignee": {"id": 97}}, "task": {"id": 379, "owner": {"id": 947}, "assignee": {"id": 1068}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "assignee": {"id": 541}, "organization": {"id": 129}, "project": {"id": 372, "owner": {"id": 712}, "assignee": {"id": 11}}, "task": {"id": 321, "owner": {"id": 953}, "assignee": {"id": 1066}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "assignee": {"id": 566}, "organization": {"id": 630}, "project": {"id": 357, "owner": {"id": 726}, "assignee": {"id": 30}}, "task": {"id": 366, "owner": {"id": 988}, "assignee": {"id": 1088}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "assignee": {"id": 513}, "organization": {"id": 191}, "project": {"id": 394, "owner": {"id": 730}, "assignee": {"id": 74}}, "task": {"id": 395, "owner": {"id": 933}, "assignee": {"id": 1041}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "assignee": {"id": 522}, "organization": {"id": 647}, "project": {"id": 388, "owner": {"id": 766}, "assignee": {"id": 44}}, "task": {"id": 395, "owner": {"id": 923}, "assignee": {"id": 1036}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 309, "assignee": {"id": 513}, "organization": {"id": 142}, "project": {"id": 349, "owner": {"id": 722}, "assignee": {"id": 26}}, "task": {"id": 359, "owner": {"id": 934}, "assignee": {"id": 1098}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 336, "assignee": {"id": 576}, "organization": {"id": 616}, "project": {"id": 365, "owner": {"id": 752}, "assignee": {"id": 7}}, "task": {"id": 317, "owner": {"id": 963}, "assignee": {"id": 1089}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 312, "assignee": {"id": 559}, "organization": {"id": 148}, "project": {"id": 381, "owner": {"id": 704}, "assignee": {"id": 5}}, "task": {"id": 367, "owner": {"id": 995}, "assignee": {"id": 1009}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 399, "assignee": {"id": 580}, "organization": {"id": 662}, "project": {"id": 349, "owner": {"id": 729}, "assignee": {"id": 35}}, "task": {"id": 335, "owner": {"id": 926}, "assignee": {"id": 1026}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 50, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 300, "assignee": {"id": 523}, "organization": {"id": 135}, "project": {"id": 395, "owner": {"id": 748}, "assignee": {"id": 50}}, "task": {"id": 331, "owner": {"id": 992}, "assignee": {"id": 1046}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 390, "assignee": {"id": 551}, "organization": {"id": 681}, "project": {"id": 322, "owner": {"id": 775}, "assignee": {"id": 21}}, "task": {"id": 384, "owner": {"id": 963}, "assignee": {"id": 1004}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "assignee": {"id": 546}, "organization": {"id": 144}, "project": {"id": 392, "owner": {"id": 711}, "assignee": {"id": 29}}, "task": {"id": 386, "owner": {"id": 981}, "assignee": {"id": 1093}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "assignee": {"id": 516}, "organization": {"id": 683}, "project": {"id": 325, "owner": {"id": 785}, "assignee": {"id": 33}}, "task": {"id": 364, "owner": {"id": 946}, "assignee": {"id": 1005}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "assignee": {"id": 539}, "organization": {"id": 192}, "project": {"id": 346, "owner": {"id": 721}, "assignee": {"id": 18}}, "task": {"id": 306, "owner": {"id": 981}, "assignee": {"id": 1096}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "assignee": {"id": 536}, "organization": {"id": 683}, "project": {"id": 360, "owner": {"id": 719}, "assignee": {"id": 92}}, "task": {"id": 332, "owner": {"id": 904}, "assignee": {"id": 1040}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 305, "assignee": {"id": 597}, "organization": {"id": 146}, "project": {"id": 309, "owner": {"id": 714}, "assignee": {"id": 34}}, "task": {"id": 378, "owner": {"id": 902}, "assignee": {"id": 1000}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 367, "assignee": {"id": 577}, "organization": {"id": 617}, "project": {"id": 360, "owner": {"id": 746}, "assignee": {"id": 6}}, "task": {"id": 321, "owner": {"id": 925}, "assignee": {"id": 1034}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 304, "assignee": {"id": 596}, "organization": {"id": 145}, "project": {"id": 353, "owner": {"id": 771}, "assignee": {"id": 46}}, "task": {"id": 328, "owner": {"id": 928}, "assignee": {"id": 1042}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 330, "assignee": {"id": 565}, "organization": {"id": 647}, "project": {"id": 375, "owner": {"id": 771}, "assignee": {"id": 71}}, "task": {"id": 367, "owner": {"id": 998}, "assignee": {"id": 1019}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 378, "assignee": {"id": 572}, "organization": {"id": 105}, "project": {"id": 356, "owner": {"id": 738}, "assignee": {"id": 867}}, "task": {"id": 349, "owner": {"id": 5}, "assignee": {"id": 1071}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 391, "assignee": {"id": 546}, "organization": {"id": 662}, "project": {"id": 391, "owner": {"id": 726}, "assignee": {"id": 825}}, "task": {"id": 367, "owner": {"id": 79}, "assignee": {"id": 1058}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "assignee": {"id": 580}, "organization": {"id": 158}, "project": {"id": 300, "owner": {"id": 773}, "assignee": {"id": 886}}, "task": {"id": 336, "owner": {"id": 32}, "assignee": {"id": 1038}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "assignee": {"id": 513}, "organization": {"id": 658}, "project": {"id": 340, "owner": {"id": 701}, "assignee": {"id": 842}}, "task": {"id": 352, "owner": {"id": 44}, "assignee": {"id": 1050}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "assignee": {"id": 597}, "organization": {"id": 150}, "project": {"id": 381, "owner": {"id": 795}, "assignee": {"id": 804}}, "task": {"id": 382, "owner": {"id": 68}, "assignee": {"id": 1041}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "assignee": {"id": 595}, "organization": {"id": 691}, "project": {"id": 391, "owner": {"id": 717}, "assignee": {"id": 820}}, "task": {"id": 325, "owner": {"id": 23}, "assignee": {"id": 1037}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 330, "assignee": {"id": 502}, "organization": {"id": 154}, "project": {"id": 351, "owner": {"id": 730}, "assignee": {"id": 888}}, "task": {"id": 308, "owner": {"id": 4}, "assignee": {"id": 1013}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 360, "assignee": {"id": 512}, "organization": {"id": 694}, "project": {"id": 331, "owner": {"id": 748}, "assignee": {"id": 897}}, "task": {"id": 330, "owner": {"id": 10}, "assignee": {"id": 1075}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"id": 311, "assignee": {"id": 538}, "organization": {"id": 118}, "project": {"id": 318, "owner": {"id": 706}, "assignee": {"id": 819}}, "task": {"id": 370, "owner": {"id": 17}, "assignee": {"id": 1013}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 320, "assignee": {"id": 570}, "organization": {"id": 652}, "project": {"id": 386, "owner": {"id": 797}, "assignee": {"id": 815}}, "task": {"id": 334, "owner": {"id": 98}, "assignee": {"id": 1091}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 336, "assignee": {"id": 542}, "organization": {"id": 136}, "project": {"id": 317, "owner": {"id": 718}, "assignee": {"id": 833}}, "task": {"id": 394, "owner": {"id": 21}, "assignee": {"id": 1019}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 302, "assignee": {"id": 519}, "organization": {"id": 629}, "project": {"id": 388, "owner": {"id": 716}, "assignee": {"id": 899}}, "task": {"id": 389, "owner": {"id": 3}, "assignee": {"id": 1001}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "assignee": {"id": 557}, "organization": {"id": 184}, "project": {"id": 377, "owner": {"id": 721}, "assignee": {"id": 869}}, "task": {"id": 384, "owner": {"id": 33}, "assignee": {"id": 1020}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "assignee": {"id": 507}, "organization": {"id": 682}, "project": {"id": 375, "owner": {"id": 762}, "assignee": {"id": 872}}, "task": {"id": 312, "owner": {"id": 42}, "assignee": {"id": 1029}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "assignee": {"id": 577}, "organization": {"id": 135}, "project": {"id": 348, "owner": {"id": 714}, "assignee": {"id": 881}}, "task": {"id": 362, "owner": {"id": 75}, "assignee": {"id": 1023}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "assignee": {"id": 566}, "organization": {"id": 635}, "project": {"id": 352, "owner": {"id": 794}, "assignee": {"id": 862}}, "task": {"id": 348, "owner": {"id": 98}, "assignee": {"id": 1007}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 376, "assignee": {"id": 558}, "organization": {"id": 170}, "project": {"id": 374, "owner": {"id": 746}, "assignee": {"id": 827}}, "task": {"id": 348, "owner": {"id": 0}, "assignee": {"id": 1035}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 300, "assignee": {"id": 582}, "organization": {"id": 659}, "project": {"id": 305, "owner": {"id": 776}, "assignee": {"id": 806}}, "task": {"id": 350, "owner": {"id": 48}, "assignee": {"id": 1030}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 362, "assignee": {"id": 524}, "organization": {"id": 108}, "project": {"id": 392, "owner": {"id": 742}, "assignee": {"id": 854}}, "task": {"id": 360, "owner": {"id": 53}, "assignee": {"id": 1020}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 395, "assignee": {"id": 599}, "organization": {"id": 625}, "project": {"id": 354, "owner": {"id": 723}, "assignee": {"id": 875}}, "task": {"id": 318, "owner": {"id": 76}, "assignee": {"id": 1041}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 373, "assignee": {"id": 560}, "organization": {"id": 188}, "project": {"id": 357, "owner": {"id": 758}, "assignee": {"id": 825}}, "task": {"id": 369, "owner": {"id": 23}, "assignee": {"id": 1094}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 324, "assignee": {"id": 564}, "organization": {"id": 619}, "project": {"id": 308, "owner": {"id": 735}, "assignee": {"id": 855}}, "task": {"id": 321, "owner": {"id": 21}, "assignee": {"id": 1020}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "assignee": {"id": 528}, "organization": {"id": 192}, "project": {"id": 366, "owner": {"id": 792}, "assignee": {"id": 810}}, "task": {"id": 325, "owner": {"id": 22}, "assignee": {"id": 1041}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "assignee": {"id": 543}, "organization": {"id": 676}, "project": {"id": 303, "owner": {"id": 749}, "assignee": {"id": 818}}, "task": {"id": 362, "owner": {"id": 98}, "assignee": {"id": 1003}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "assignee": {"id": 505}, "organization": {"id": 143}, "project": {"id": 387, "owner": {"id": 712}, "assignee": {"id": 835}}, "task": {"id": 338, "owner": {"id": 39}, "assignee": {"id": 1021}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "assignee": {"id": 575}, "organization": {"id": 619}, "project": {"id": 332, "owner": {"id": 747}, "assignee": {"id": 849}}, "task": {"id": 356, "owner": {"id": 66}, "assignee": {"id": 1003}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 372, "assignee": {"id": 528}, "organization": {"id": 153}, "project": {"id": 390, "owner": {"id": 729}, "assignee": {"id": 889}}, "task": {"id": 382, "owner": {"id": 35}, "assignee": {"id": 1004}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 388, "assignee": {"id": 578}, "organization": {"id": 688}, "project": {"id": 324, "owner": {"id": 725}, "assignee": {"id": 882}}, "task": {"id": 358, "owner": {"id": 45}, "assignee": {"id": 1014}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"id": 370, "assignee": {"id": 593}, "organization": {"id": 146}, "project": {"id": 326, "owner": {"id": 791}, "assignee": {"id": 866}}, "task": {"id": 357, "owner": {"id": 74}, "assignee": {"id": 1082}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 310, "assignee": {"id": 593}, "organization": {"id": 678}, "project": {"id": 302, "owner": {"id": 743}, "assignee": {"id": 831}}, "task": {"id": 397, "owner": {"id": 81}, "assignee": {"id": 1074}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 343, "assignee": {"id": 571}, "organization": {"id": 144}, "project": {"id": 346, "owner": {"id": 773}, "assignee": {"id": 844}}, "task": {"id": 307, "owner": {"id": 23}, "assignee": {"id": 1089}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 316, "assignee": {"id": 528}, "organization": {"id": 623}, "project": {"id": 394, "owner": {"id": 789}, "assignee": {"id": 887}}, "task": {"id": 324, "owner": {"id": 61}, "assignee": {"id": 1000}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "assignee": {"id": 508}, "organization": {"id": 158}, "project": {"id": 355, "owner": {"id": 777}, "assignee": {"id": 838}}, "task": {"id": 364, "owner": {"id": 87}, "assignee": {"id": 1050}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "assignee": {"id": 592}, "organization": {"id": 680}, "project": {"id": 396, "owner": {"id": 744}, "assignee": {"id": 821}}, "task": {"id": 395, "owner": {"id": 34}, "assignee": {"id": 1012}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "assignee": {"id": 546}, "organization": {"id": 173}, "project": {"id": 348, "owner": {"id": 746}, "assignee": {"id": 805}}, "task": {"id": 371, "owner": {"id": 48}, "assignee": {"id": 1098}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "assignee": {"id": 517}, "organization": {"id": 658}, "project": {"id": 384, "owner": {"id": 700}, "assignee": {"id": 895}}, "task": {"id": 322, "owner": {"id": 86}, "assignee": {"id": 1016}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 381, "assignee": {"id": 585}, "organization": {"id": 196}, "project": {"id": 333, "owner": {"id": 780}, "assignee": {"id": 813}}, "task": {"id": 314, "owner": {"id": 7}, "assignee": {"id": 1085}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 345, "assignee": {"id": 594}, "organization": {"id": 652}, "project": {"id": 322, "owner": {"id": 783}, "assignee": {"id": 838}}, "task": {"id": 309, "owner": {"id": 84}, "assignee": {"id": 1054}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 353, "assignee": {"id": 582}, "organization": {"id": 172}, "project": {"id": 303, "owner": {"id": 782}, "assignee": {"id": 872}}, "task": {"id": 333, "owner": {"id": 40}, "assignee": {"id": 1094}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 338, "assignee": {"id": 561}, "organization": {"id": 604}, "project": {"id": 331, "owner": {"id": 725}, "assignee": {"id": 854}}, "task": {"id": 334, "owner": {"id": 98}, "assignee": {"id": 1036}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 325, "assignee": {"id": 591}, "organization": {"id": 117}, "project": {"id": 303, "owner": {"id": 755}, "assignee": {"id": 840}}, "task": {"id": 334, "owner": {"id": 28}, "assignee": {"id": 1093}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 381, "assignee": {"id": 508}, "organization": {"id": 637}, "project": {"id": 328, "owner": {"id": 738}, "assignee": {"id": 807}}, "task": {"id": 389, "owner": {"id": 26}, "assignee": {"id": 1098}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "assignee": {"id": 519}, "organization": {"id": 186}, "project": {"id": 334, "owner": {"id": 724}, "assignee": {"id": 815}}, "task": {"id": 305, "owner": {"id": 42}, "assignee": {"id": 1008}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "assignee": {"id": 531}, "organization": {"id": 683}, "project": {"id": 303, "owner": {"id": 779}, "assignee": {"id": 894}}, "task": {"id": 346, "owner": {"id": 9}, "assignee": {"id": 1093}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "assignee": {"id": 546}, "organization": {"id": 156}, "project": {"id": 394, "owner": {"id": 798}, "assignee": {"id": 851}}, "task": {"id": 335, "owner": {"id": 36}, "assignee": {"id": 1056}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "assignee": {"id": 507}, "organization": {"id": 655}, "project": {"id": 356, "owner": {"id": 783}, "assignee": {"id": 880}}, "task": {"id": 385, "owner": {"id": 36}, "assignee": {"id": 1037}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 352, "assignee": {"id": 580}, "organization": {"id": 110}, "project": {"id": 304, "owner": {"id": 759}, "assignee": {"id": 884}}, "task": {"id": 394, "owner": {"id": 67}, "assignee": {"id": 1058}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 305, "assignee": {"id": 593}, "organization": {"id": 608}, "project": {"id": 393, "owner": {"id": 704}, "assignee": {"id": 813}}, "task": {"id": 317, "owner": {"id": 67}, "assignee": {"id": 1037}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 347, "assignee": {"id": 550}, "organization": {"id": 161}, "project": {"id": 381, "owner": {"id": 738}, "assignee": {"id": 816}}, "task": {"id": 313, "owner": {"id": 65}, "assignee": {"id": 1094}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 391, "assignee": {"id": 575}, "organization": {"id": 683}, "project": {"id": 302, "owner": {"id": 703}, "assignee": {"id": 835}}, "task": {"id": 332, "owner": {"id": 6}, "assignee": {"id": 1008}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 392, "assignee": {"id": 507}, "organization": {"id": 172}, "project": {"id": 321, "owner": {"id": 789}, "assignee": {"id": 824}}, "task": {"id": 388, "owner": {"id": 909}, "assignee": {"id": 37}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 7, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 303, "assignee": {"id": 536}, "organization": {"id": 672}, "project": {"id": 376, "owner": {"id": 726}, "assignee": {"id": 802}}, "task": {"id": 391, "owner": {"id": 953}, "assignee": {"id": 7}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "assignee": {"id": 509}, "organization": {"id": 103}, "project": {"id": 358, "owner": {"id": 705}, "assignee": {"id": 885}}, "task": {"id": 335, "owner": {"id": 987}, "assignee": {"id": 9}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "assignee": {"id": 501}, "organization": {"id": 627}, "project": {"id": 311, "owner": {"id": 746}, "assignee": {"id": 893}}, "task": {"id": 366, "owner": {"id": 965}, "assignee": {"id": 70}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "assignee": {"id": 553}, "organization": {"id": 114}, "project": {"id": 398, "owner": {"id": 755}, "assignee": {"id": 856}}, "task": {"id": 345, "owner": {"id": 982}, "assignee": {"id": 34}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "assignee": {"id": 529}, "organization": {"id": 644}, "project": {"id": 309, "owner": {"id": 742}, "assignee": {"id": 851}}, "task": {"id": 302, "owner": {"id": 972}, "assignee": {"id": 15}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 316, "assignee": {"id": 558}, "organization": {"id": 169}, "project": {"id": 306, "owner": {"id": 787}, "assignee": {"id": 819}}, "task": {"id": 308, "owner": {"id": 943}, "assignee": {"id": 29}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 314, "assignee": {"id": 513}, "organization": {"id": 642}, "project": {"id": 315, "owner": {"id": 715}, "assignee": {"id": 810}}, "task": {"id": 390, "owner": {"id": 955}, "assignee": {"id": 92}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 332, "assignee": {"id": 526}, "organization": {"id": 113}, "project": {"id": 347, "owner": {"id": 778}, "assignee": {"id": 824}}, "task": {"id": 333, "owner": {"id": 914}, "assignee": {"id": 50}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 353, "assignee": {"id": 541}, "organization": {"id": 601}, "project": {"id": 380, "owner": {"id": 732}, "assignee": {"id": 889}}, "task": {"id": 363, "owner": {"id": 923}, "assignee": {"id": 44}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 389, "assignee": {"id": 504}, "organization": {"id": 118}, "project": {"id": 325, "owner": {"id": 763}, "assignee": {"id": 809}}, "task": {"id": 323, "owner": {"id": 918}, "assignee": {"id": 56}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 393, "assignee": {"id": 504}, "organization": {"id": 669}, "project": {"id": 382, "owner": {"id": 739}, "assignee": {"id": 841}}, "task": {"id": 392, "owner": {"id": 995}, "assignee": {"id": 38}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "assignee": {"id": 555}, "organization": {"id": 140}, "project": {"id": 304, "owner": {"id": 794}, "assignee": {"id": 878}}, "task": {"id": 354, "owner": {"id": 986}, "assignee": {"id": 16}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "assignee": {"id": 530}, "organization": {"id": 652}, "project": {"id": 304, "owner": {"id": 712}, "assignee": {"id": 886}}, "task": {"id": 301, "owner": {"id": 974}, "assignee": {"id": 83}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "assignee": {"id": 509}, "organization": {"id": 176}, "project": {"id": 312, "owner": {"id": 798}, "assignee": {"id": 890}}, "task": {"id": 334, "owner": {"id": 998}, "assignee": {"id": 3}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 387, "assignee": {"id": 564}, "organization": {"id": 614}, "project": {"id": 321, "owner": {"id": 792}, "assignee": {"id": 879}}, "task": {"id": 357, "owner": {"id": 990}, "assignee": {"id": 75}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 389, "assignee": {"id": 582}, "organization": {"id": 190}, "project": {"id": 366, "owner": {"id": 766}, "assignee": {"id": 857}}, "task": {"id": 339, "owner": {"id": 993}, "assignee": {"id": 42}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 332, "assignee": {"id": 579}, "organization": {"id": 619}, "project": {"id": 345, "owner": {"id": 733}, "assignee": {"id": 881}}, "task": {"id": 324, "owner": {"id": 938}, "assignee": {"id": 42}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 351, "assignee": {"id": 554}, "organization": {"id": 180}, "project": {"id": 382, "owner": {"id": 722}, "assignee": {"id": 861}}, "task": {"id": 331, "owner": {"id": 968}, "assignee": {"id": 55}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 350, "assignee": {"id": 555}, "organization": {"id": 635}, "project": {"id": 370, "owner": {"id": 708}, "assignee": {"id": 810}}, "task": {"id": 304, "owner": {"id": 942}, "assignee": {"id": 98}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 381, "assignee": {"id": 593}, "organization": {"id": 154}, "project": {"id": 389, "owner": {"id": 759}, "assignee": {"id": 818}}, "task": {"id": 334, "owner": {"id": 924}, "assignee": {"id": 94}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 360, "assignee": {"id": 563}, "organization": {"id": 679}, "project": {"id": 366, "owner": {"id": 729}, "assignee": {"id": 884}}, "task": {"id": 349, "owner": {"id": 958}, "assignee": {"id": 64}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "assignee": {"id": 500}, "organization": {"id": 181}, "project": {"id": 388, "owner": {"id": 717}, "assignee": {"id": 832}}, "task": {"id": 306, "owner": {"id": 964}, "assignee": {"id": 28}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "assignee": {"id": 591}, "organization": {"id": 688}, "project": {"id": 328, "owner": {"id": 724}, "assignee": {"id": 895}}, "task": {"id": 397, "owner": {"id": 912}, "assignee": {"id": 58}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "assignee": {"id": 571}, "organization": {"id": 182}, "project": {"id": 385, "owner": {"id": 731}, "assignee": {"id": 855}}, "task": {"id": 349, "owner": {"id": 910}, "assignee": {"id": 49}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "assignee": {"id": 510}, "organization": {"id": 657}, "project": {"id": 319, "owner": {"id": 775}, "assignee": {"id": 841}}, "task": {"id": 393, "owner": {"id": 914}, "assignee": {"id": 17}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"id": 351, "assignee": {"id": 507}, "organization": {"id": 102}, "project": {"id": 371, "owner": {"id": 753}, "assignee": {"id": 875}}, "task": {"id": 354, "owner": {"id": 999}, "assignee": {"id": 11}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 334, "assignee": {"id": 500}, "organization": {"id": 686}, "project": {"id": 330, "owner": {"id": 779}, "assignee": {"id": 803}}, "task": {"id": 395, "owner": {"id": 972}, "assignee": {"id": 84}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 361, "assignee": {"id": 550}, "organization": {"id": 129}, "project": {"id": 327, "owner": {"id": 796}, "assignee": {"id": 852}}, "task": {"id": 302, "owner": {"id": 999}, "assignee": {"id": 53}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 327, "assignee": {"id": 574}, "organization": {"id": 676}, "project": {"id": 382, "owner": {"id": 744}, "assignee": {"id": 805}}, "task": {"id": 350, "owner": {"id": 950}, "assignee": {"id": 51}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 354, "assignee": {"id": 501}, "organization": {"id": 104}, "project": {"id": 343, "owner": {"id": 745}, "assignee": {"id": 802}}, "task": {"id": 367, "owner": {"id": 982}, "assignee": {"id": 83}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 306, "assignee": {"id": 586}, "organization": {"id": 677}, "project": {"id": 306, "owner": {"id": 770}, "assignee": {"id": 827}}, "task": {"id": 305, "owner": {"id": 953}, "assignee": {"id": 79}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "assignee": {"id": 588}, "organization": {"id": 137}, "project": {"id": 375, "owner": {"id": 797}, "assignee": {"id": 864}}, "task": {"id": 304, "owner": {"id": 944}, "assignee": {"id": 55}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "assignee": {"id": 574}, "organization": {"id": 673}, "project": {"id": 395, "owner": {"id": 736}, "assignee": {"id": 899}}, "task": {"id": 308, "owner": {"id": 916}, "assignee": {"id": 27}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "assignee": {"id": 506}, "organization": {"id": 178}, "project": {"id": 301, "owner": {"id": 789}, "assignee": {"id": 823}}, "task": {"id": 376, "owner": {"id": 981}, "assignee": {"id": 74}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "assignee": {"id": 551}, "organization": {"id": 611}, "project": {"id": 374, "owner": {"id": 715}, "assignee": {"id": 897}}, "task": {"id": 380, "owner": {"id": 964}, "assignee": {"id": 94}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 368, "assignee": {"id": 526}, "organization": {"id": 111}, "project": {"id": 363, "owner": {"id": 766}, "assignee": {"id": 833}}, "task": {"id": 378, "owner": {"id": 901}, "assignee": {"id": 17}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 356, "assignee": {"id": 535}, "organization": {"id": 672}, "project": {"id": 389, "owner": {"id": 711}, "assignee": {"id": 815}}, "task": {"id": 398, "owner": {"id": 961}, "assignee": {"id": 56}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 302, "assignee": {"id": 588}, "organization": {"id": 194}, "project": {"id": 305, "owner": {"id": 735}, "assignee": {"id": 824}}, "task": {"id": 363, "owner": {"id": 943}, "assignee": {"id": 25}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 342, "assignee": {"id": 557}, "organization": {"id": 645}, "project": {"id": 382, "owner": {"id": 785}, "assignee": {"id": 816}}, "task": {"id": 322, "owner": {"id": 979}, "assignee": {"id": 6}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 331, "assignee": {"id": 571}, "organization": {"id": 137}, "project": {"id": 304, "owner": {"id": 725}, "assignee": {"id": 874}}, "task": {"id": 307, "owner": {"id": 927}, "assignee": {"id": 63}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 354, "assignee": {"id": 556}, "organization": {"id": 646}, "project": {"id": 350, "owner": {"id": 760}, "assignee": {"id": 847}}, "task": {"id": 326, "owner": {"id": 998}, "assignee": {"id": 9}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "assignee": {"id": 584}, "organization": {"id": 166}, "project": {"id": 363, "owner": {"id": 736}, "assignee": {"id": 825}}, "task": {"id": 376, "owner": {"id": 917}, "assignee": {"id": 0}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 321, "assignee": {"id": 507}, "organization": {"id": 658}, "project": {"id": 369, "owner": {"id": 705}, "assignee": {"id": 897}}, "task": {"id": 391, "owner": {"id": 903}, "assignee": {"id": 63}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "assignee": {"id": 514}, "organization": {"id": 132}, "project": {"id": 331, "owner": {"id": 781}, "assignee": {"id": 818}}, "task": {"id": 300, "owner": {"id": 964}, "assignee": {"id": 30}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "assignee": {"id": 551}, "organization": {"id": 601}, "project": {"id": 376, "owner": {"id": 787}, "assignee": {"id": 878}}, "task": {"id": 303, "owner": {"id": 973}, "assignee": {"id": 44}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 366, "assignee": {"id": 568}, "organization": {"id": 150}, "project": {"id": 314, "owner": {"id": 751}, "assignee": {"id": 851}}, "task": {"id": 310, "owner": {"id": 972}, "assignee": {"id": 63}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 339, "assignee": {"id": 534}, "organization": {"id": 676}, "project": {"id": 306, "owner": {"id": 735}, "assignee": {"id": 828}}, "task": {"id": 375, "owner": {"id": 936}, "assignee": {"id": 85}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 391, "assignee": {"id": 509}, "organization": {"id": 156}, "project": {"id": 382, "owner": {"id": 718}, "assignee": {"id": 816}}, "task": {"id": 388, "owner": {"id": 921}, "assignee": {"id": 88}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 355, "assignee": {"id": 513}, "organization": {"id": 602}, "project": {"id": 343, "owner": {"id": 734}, "assignee": {"id": 899}}, "task": {"id": 382, "owner": {"id": 904}, "assignee": {"id": 92}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 395, "assignee": {"id": 74}, "organization": {"id": 118}, "project": {"id": 383, "owner": {"id": 738}, "assignee": {"id": 852}}, "task": {"id": 345, "owner": {"id": 992}, "assignee": {"id": 1042}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 390, "assignee": {"id": 79}, "organization": {"id": 675}, "project": {"id": 340, "owner": {"id": 749}, "assignee": {"id": 869}}, "task": {"id": 364, "owner": {"id": 951}, "assignee": {"id": 1032}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "assignee": {"id": 68}, "organization": {"id": 105}, "project": {"id": 357, "owner": {"id": 735}, "assignee": {"id": 845}}, "task": {"id": 324, "owner": {"id": 977}, "assignee": {"id": 1008}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "assignee": {"id": 38}, "organization": {"id": 637}, "project": {"id": 371, "owner": {"id": 756}, "assignee": {"id": 852}}, "task": {"id": 310, "owner": {"id": 981}, "assignee": {"id": 1038}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "assignee": {"id": 98}, "organization": {"id": 182}, "project": {"id": 385, "owner": {"id": 786}, "assignee": {"id": 898}}, "task": {"id": 356, "owner": {"id": 929}, "assignee": {"id": 1048}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "assignee": {"id": 94}, "organization": {"id": 607}, "project": {"id": 365, "owner": {"id": 742}, "assignee": {"id": 856}}, "task": {"id": 343, "owner": {"id": 928}, "assignee": {"id": 1099}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 339, "assignee": {"id": 83}, "organization": {"id": 132}, "project": {"id": 396, "owner": {"id": 727}, "assignee": {"id": 813}}, "task": {"id": 367, "owner": {"id": 991}, "assignee": {"id": 1027}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 390, "assignee": {"id": 62}, "organization": {"id": 602}, "project": {"id": 301, "owner": {"id": 720}, "assignee": {"id": 836}}, "task": {"id": 375, "owner": {"id": 921}, "assignee": {"id": 1082}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 320, "assignee": {"id": 20}, "organization": {"id": 114}, "project": {"id": 351, "owner": {"id": 792}, "assignee": {"id": 884}}, "task": {"id": 310, "owner": {"id": 940}, "assignee": {"id": 1008}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 354, "assignee": {"id": 11}, "organization": {"id": 651}, "project": {"id": 394, "owner": {"id": 700}, "assignee": {"id": 866}}, "task": {"id": 377, "owner": {"id": 952}, "assignee": {"id": 1005}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 354, "assignee": {"id": 39}, "organization": {"id": 116}, "project": {"id": 379, "owner": {"id": 757}, "assignee": {"id": 864}}, "task": {"id": 386, "owner": {"id": 920}, "assignee": {"id": 1090}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 347, "assignee": {"id": 42}, "organization": {"id": 646}, "project": {"id": 370, "owner": {"id": 716}, "assignee": {"id": 896}}, "task": {"id": 373, "owner": {"id": 927}, "assignee": {"id": 1071}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "assignee": {"id": 2}, "organization": {"id": 188}, "project": {"id": 384, "owner": {"id": 738}, "assignee": {"id": 892}}, "task": {"id": 337, "owner": {"id": 980}, "assignee": {"id": 1043}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "assignee": {"id": 49}, "organization": {"id": 651}, "project": {"id": 324, "owner": {"id": 767}, "assignee": {"id": 825}}, "task": {"id": 395, "owner": {"id": 932}, "assignee": {"id": 1048}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "assignee": {"id": 17}, "organization": {"id": 177}, "project": {"id": 332, "owner": {"id": 737}, "assignee": {"id": 877}}, "task": {"id": 367, "owner": {"id": 950}, "assignee": {"id": 1005}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "assignee": {"id": 44}, "organization": {"id": 628}, "project": {"id": 323, "owner": {"id": 787}, "assignee": {"id": 871}}, "task": {"id": 390, "owner": {"id": 928}, "assignee": {"id": 1009}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 302, "assignee": {"id": 90}, "organization": {"id": 167}, "project": {"id": 359, "owner": {"id": 776}, "assignee": {"id": 813}}, "task": {"id": 379, "owner": {"id": 905}, "assignee": {"id": 1037}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 363, "assignee": {"id": 97}, "organization": {"id": 654}, "project": {"id": 302, "owner": {"id": 709}, "assignee": {"id": 845}}, "task": {"id": 307, "owner": {"id": 965}, "assignee": {"id": 1090}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 330, "assignee": {"id": 82}, "organization": {"id": 195}, "project": {"id": 309, "owner": {"id": 722}, "assignee": {"id": 877}}, "task": {"id": 367, "owner": {"id": 919}, "assignee": {"id": 1077}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 344, "assignee": {"id": 71}, "organization": {"id": 696}, "project": {"id": 311, "owner": {"id": 765}, "assignee": {"id": 826}}, "task": {"id": 325, "owner": {"id": 999}, "assignee": {"id": 1063}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 338, "assignee": {"id": 58}, "organization": {"id": 139}, "project": {"id": 396, "owner": {"id": 790}, "assignee": {"id": 839}}, "task": {"id": 318, "owner": {"id": 944}, "assignee": {"id": 1003}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 367, "assignee": {"id": 91}, "organization": {"id": 605}, "project": {"id": 325, "owner": {"id": 776}, "assignee": {"id": 845}}, "task": {"id": 386, "owner": {"id": 907}, "assignee": {"id": 1083}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "assignee": {"id": 41}, "organization": {"id": 124}, "project": {"id": 357, "owner": {"id": 742}, "assignee": {"id": 842}}, "task": {"id": 300, "owner": {"id": 904}, "assignee": {"id": 1099}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "assignee": {"id": 50}, "organization": {"id": 681}, "project": {"id": 380, "owner": {"id": 749}, "assignee": {"id": 891}}, "task": {"id": 307, "owner": {"id": 983}, "assignee": {"id": 1028}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "assignee": {"id": 45}, "organization": {"id": 197}, "project": {"id": 334, "owner": {"id": 723}, "assignee": {"id": 832}}, "task": {"id": 360, "owner": {"id": 935}, "assignee": {"id": 1010}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "assignee": {"id": 8}, "organization": {"id": 628}, "project": {"id": 319, "owner": {"id": 778}, "assignee": {"id": 840}}, "task": {"id": 355, "owner": {"id": 953}, "assignee": {"id": 1090}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 365, "assignee": {"id": 38}, "organization": {"id": 169}, "project": {"id": 320, "owner": {"id": 789}, "assignee": {"id": 833}}, "task": {"id": 383, "owner": {"id": 930}, "assignee": {"id": 1053}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 309, "assignee": {"id": 63}, "organization": {"id": 667}, "project": {"id": 320, "owner": {"id": 789}, "assignee": {"id": 857}}, "task": {"id": 387, "owner": {"id": 946}, "assignee": {"id": 1095}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 307, "assignee": {"id": 85}, "organization": {"id": 132}, "project": {"id": 308, "owner": {"id": 733}, "assignee": {"id": 850}}, "task": {"id": 303, "owner": {"id": 910}, "assignee": {"id": 1063}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 311, "assignee": {"id": 75}, "organization": {"id": 648}, "project": {"id": 339, "owner": {"id": 703}, "assignee": {"id": 892}}, "task": {"id": 307, "owner": {"id": 907}, "assignee": {"id": 1093}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 352, "assignee": {"id": 16}, "organization": {"id": 157}, "project": {"id": 325, "owner": {"id": 786}, "assignee": {"id": 842}}, "task": {"id": 376, "owner": {"id": 983}, "assignee": {"id": 1054}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 331, "assignee": {"id": 0}, "organization": {"id": 671}, "project": {"id": 360, "owner": {"id": 761}, "assignee": {"id": 861}}, "task": {"id": 348, "owner": {"id": 942}, "assignee": {"id": 1033}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "assignee": {"id": 34}, "organization": {"id": 184}, "project": {"id": 315, "owner": {"id": 736}, "assignee": {"id": 844}}, "task": {"id": 314, "owner": {"id": 924}, "assignee": {"id": 1057}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "assignee": {"id": 55}, "organization": {"id": 668}, "project": {"id": 382, "owner": {"id": 720}, "assignee": {"id": 853}}, "task": {"id": 345, "owner": {"id": 982}, "assignee": {"id": 1098}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "assignee": {"id": 47}, "organization": {"id": 197}, "project": {"id": 348, "owner": {"id": 761}, "assignee": {"id": 846}}, "task": {"id": 349, "owner": {"id": 922}, "assignee": {"id": 1058}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 343, "assignee": {"id": 65}, "organization": {"id": 633}, "project": {"id": 301, "owner": {"id": 729}, "assignee": {"id": 899}}, "task": {"id": 339, "owner": {"id": 974}, "assignee": {"id": 1081}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 331, "assignee": {"id": 84}, "organization": {"id": 138}, "project": {"id": 346, "owner": {"id": 779}, "assignee": {"id": 845}}, "task": {"id": 342, "owner": {"id": 930}, "assignee": {"id": 1051}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 321, "assignee": {"id": 32}, "organization": {"id": 687}, "project": {"id": 306, "owner": {"id": 774}, "assignee": {"id": 833}}, "task": {"id": 356, "owner": {"id": 904}, "assignee": {"id": 1042}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 350, "assignee": {"id": 90}, "organization": {"id": 101}, "project": {"id": 390, "owner": {"id": 789}, "assignee": {"id": 825}}, "task": {"id": 378, "owner": {"id": 984}, "assignee": {"id": 1098}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 371, "assignee": {"id": 57}, "organization": {"id": 683}, "project": {"id": 359, "owner": {"id": 749}, "assignee": {"id": 898}}, "task": {"id": 388, "owner": {"id": 977}, "assignee": {"id": 1021}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 330, "assignee": {"id": 45}, "organization": {"id": 198}, "project": {"id": 342, "owner": {"id": 792}, "assignee": {"id": 818}}, "task": {"id": 366, "owner": {"id": 957}, "assignee": {"id": 1008}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 366, "assignee": {"id": 16}, "organization": {"id": 634}, "project": {"id": 383, "owner": {"id": 783}, "assignee": {"id": 899}}, "task": {"id": 334, "owner": {"id": 928}, "assignee": {"id": 1003}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "assignee": {"id": 22}, "organization": {"id": 135}, "project": {"id": 391, "owner": {"id": 730}, "assignee": {"id": 870}}, "task": {"id": 340, "owner": {"id": 939}, "assignee": {"id": 1034}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "assignee": {"id": 54}, "organization": {"id": 698}, "project": {"id": 333, "owner": {"id": 768}, "assignee": {"id": 897}}, "task": {"id": 300, "owner": {"id": 938}, "assignee": {"id": 1089}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "assignee": {"id": 5}, "organization": {"id": 169}, "project": {"id": 380, "owner": {"id": 779}, "assignee": {"id": 891}}, "task": {"id": 371, "owner": {"id": 981}, "assignee": {"id": 1079}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "assignee": {"id": 56}, "organization": {"id": 625}, "project": {"id": 332, "owner": {"id": 784}, "assignee": {"id": 822}}, "task": {"id": 362, "owner": {"id": 921}, "assignee": {"id": 1039}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 314, "assignee": {"id": 43}, "organization": {"id": 152}, "project": {"id": 370, "owner": {"id": 758}, "assignee": {"id": 824}}, "task": {"id": 361, "owner": {"id": 968}, "assignee": {"id": 1010}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 351, "assignee": {"id": 30}, "organization": {"id": 608}, "project": {"id": 394, "owner": {"id": 762}, "assignee": {"id": 827}}, "task": {"id": 348, "owner": {"id": 960}, "assignee": {"id": 1010}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 392, "assignee": {"id": 9}, "organization": {"id": 172}, "project": {"id": 308, "owner": {"id": 737}, "assignee": {"id": 802}}, "task": {"id": 389, "owner": {"id": 981}, "assignee": {"id": 1027}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 315, "assignee": {"id": 39}, "organization": {"id": 654}, "project": {"id": 353, "owner": {"id": 799}, "assignee": {"id": 891}}, "task": {"id": 315, "owner": {"id": 954}, "assignee": {"id": 1021}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 384, "assignee": {"id": 550}, "organization": {"id": 155}, "project": {"id": 392, "owner": {"id": 769}, "assignee": {"id": 866}}, "task": {"id": 392, "owner": {"id": 973}, "assignee": {"id": 1082}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 350, "assignee": {"id": 522}, "organization": {"id": 694}, "project": {"id": 309, "owner": {"id": 764}, "assignee": {"id": 817}}, "task": {"id": 323, "owner": {"id": 939}, "assignee": {"id": 1059}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "assignee": {"id": 516}, "organization": {"id": 187}, "project": {"id": 363, "owner": {"id": 751}, "assignee": {"id": 883}}, "task": {"id": 370, "owner": {"id": 954}, "assignee": {"id": 1056}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "assignee": {"id": 550}, "organization": {"id": 656}, "project": {"id": 311, "owner": {"id": 781}, "assignee": {"id": 834}}, "task": {"id": 366, "owner": {"id": 985}, "assignee": {"id": 1073}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "assignee": {"id": 542}, "organization": {"id": 176}, "project": {"id": 368, "owner": {"id": 747}, "assignee": {"id": 888}}, "task": {"id": 322, "owner": {"id": 924}, "assignee": {"id": 1040}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "assignee": {"id": 503}, "organization": {"id": 679}, "project": {"id": 324, "owner": {"id": 737}, "assignee": {"id": 897}}, "task": {"id": 308, "owner": {"id": 928}, "assignee": {"id": 1099}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 343, "assignee": {"id": 534}, "organization": {"id": 166}, "project": {"id": 336, "owner": {"id": 761}, "assignee": {"id": 896}}, "task": {"id": 312, "owner": {"id": 908}, "assignee": {"id": 1044}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 323, "assignee": {"id": 508}, "organization": {"id": 671}, "project": {"id": 314, "owner": {"id": 772}, "assignee": {"id": 842}}, "task": {"id": 310, "owner": {"id": 956}, "assignee": {"id": 1011}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 303, "assignee": {"id": 555}, "organization": {"id": 126}, "project": {"id": 360, "owner": {"id": 783}, "assignee": {"id": 854}}, "task": {"id": 385, "owner": {"id": 977}, "assignee": {"id": 1025}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 350, "assignee": {"id": 538}, "organization": {"id": 640}, "project": {"id": 331, "owner": {"id": 770}, "assignee": {"id": 825}}, "task": {"id": 324, "owner": {"id": 951}, "assignee": {"id": 1037}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 301, "assignee": {"id": 528}, "organization": {"id": 193}, "project": {"id": 331, "owner": {"id": 731}, "assignee": {"id": 888}}, "task": {"id": 394, "owner": {"id": 995}, "assignee": {"id": 1092}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 304, "assignee": {"id": 512}, "organization": {"id": 620}, "project": {"id": 343, "owner": {"id": 738}, "assignee": {"id": 889}}, "task": {"id": 351, "owner": {"id": 957}, "assignee": {"id": 1041}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "assignee": {"id": 574}, "organization": {"id": 160}, "project": {"id": 385, "owner": {"id": 777}, "assignee": {"id": 845}}, "task": {"id": 373, "owner": {"id": 997}, "assignee": {"id": 1096}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "assignee": {"id": 512}, "organization": {"id": 689}, "project": {"id": 361, "owner": {"id": 700}, "assignee": {"id": 846}}, "task": {"id": 354, "owner": {"id": 968}, "assignee": {"id": 1084}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "assignee": {"id": 525}, "organization": {"id": 149}, "project": {"id": 305, "owner": {"id": 708}, "assignee": {"id": 834}}, "task": {"id": 327, "owner": {"id": 942}, "assignee": {"id": 1039}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "assignee": {"id": 560}, "organization": {"id": 678}, "project": {"id": 365, "owner": {"id": 765}, "assignee": {"id": 887}}, "task": {"id": 329, "owner": {"id": 955}, "assignee": {"id": 1064}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 380, "assignee": {"id": 538}, "organization": {"id": 184}, "project": {"id": 339, "owner": {"id": 792}, "assignee": {"id": 839}}, "task": {"id": 374, "owner": {"id": 964}, "assignee": {"id": 1014}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 81, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 324, "assignee": {"id": 596}, "organization": {"id": 616}, "project": {"id": 352, "owner": {"id": 757}, "assignee": {"id": 897}}, "task": {"id": 324, "owner": {"id": 972}, "assignee": {"id": 1017}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 390, "assignee": {"id": 502}, "organization": {"id": 196}, "project": {"id": 317, "owner": {"id": 774}, "assignee": {"id": 837}}, "task": {"id": 318, "owner": {"id": 978}, "assignee": {"id": 1078}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 311, "assignee": {"id": 578}, "organization": {"id": 622}, "project": {"id": 334, "owner": {"id": 757}, "assignee": {"id": 833}}, "task": {"id": 327, "owner": {"id": 982}, "assignee": {"id": 1097}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 355, "assignee": {"id": 577}, "organization": {"id": 126}, "project": {"id": 361, "owner": {"id": 769}, "assignee": {"id": 821}}, "task": {"id": 307, "owner": {"id": 973}, "assignee": {"id": 1074}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 361, "assignee": {"id": 517}, "organization": {"id": 615}, "project": {"id": 312, "owner": {"id": 717}, "assignee": {"id": 802}}, "task": {"id": 327, "owner": {"id": 965}, "assignee": {"id": 1019}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "assignee": {"id": 524}, "organization": {"id": 185}, "project": {"id": 396, "owner": {"id": 776}, "assignee": {"id": 805}}, "task": {"id": 313, "owner": {"id": 947}, "assignee": {"id": 1000}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 71, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "assignee": {"id": 547}, "organization": {"id": 679}, "project": {"id": 344, "owner": {"id": 738}, "assignee": {"id": 862}}, "task": {"id": 354, "owner": {"id": 910}, "assignee": {"id": 1055}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "assignee": {"id": 580}, "organization": {"id": 100}, "project": {"id": 365, "owner": {"id": 704}, "assignee": {"id": 830}}, "task": {"id": 304, "owner": {"id": 939}, "assignee": {"id": 1093}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 387, "assignee": {"id": 589}, "organization": {"id": 634}, "project": {"id": 353, "owner": {"id": 766}, "assignee": {"id": 802}}, "task": {"id": 310, "owner": {"id": 989}, "assignee": {"id": 1098}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 327, "assignee": {"id": 530}, "organization": {"id": 194}, "project": {"id": 300, "owner": {"id": 745}, "assignee": {"id": 863}}, "task": {"id": 333, "owner": {"id": 925}, "assignee": {"id": 1023}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 315, "assignee": {"id": 544}, "organization": {"id": 634}, "project": {"id": 373, "owner": {"id": 742}, "assignee": {"id": 879}}, "task": {"id": 380, "owner": {"id": 994}, "assignee": {"id": 1083}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 373, "assignee": {"id": 510}, "organization": {"id": 179}, "project": {"id": 387, "owner": {"id": 760}, "assignee": {"id": 876}}, "task": {"id": 394, "owner": {"id": 913}, "assignee": {"id": 1076}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 306, "assignee": {"id": 577}, "organization": {"id": 608}, "project": {"id": 330, "owner": {"id": 748}, "assignee": {"id": 837}}, "task": {"id": 308, "owner": {"id": 962}, "assignee": {"id": 1082}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 372, "assignee": {"id": 516}, "organization": {"id": 103}, "project": {"id": 347, "owner": {"id": 773}, "assignee": {"id": 838}}, "task": {"id": 369, "owner": {"id": 981}, "assignee": {"id": 1026}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 303, "assignee": {"id": 509}, "organization": {"id": 653}, "project": {"id": 366, "owner": {"id": 701}, "assignee": {"id": 813}}, "task": {"id": 396, "owner": {"id": 910}, "assignee": {"id": 1043}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "assignee": {"id": 502}, "organization": {"id": 125}, "project": {"id": 349, "owner": {"id": 737}, "assignee": {"id": 826}}, "task": {"id": 377, "owner": {"id": 938}, "assignee": {"id": 1046}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "assignee": {"id": 577}, "organization": {"id": 663}, "project": {"id": 326, "owner": {"id": 716}, "assignee": {"id": 807}}, "task": {"id": 300, "owner": {"id": 974}, "assignee": {"id": 1052}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "assignee": {"id": 542}, "organization": {"id": 155}, "project": {"id": 380, "owner": {"id": 703}, "assignee": {"id": 845}}, "task": {"id": 328, "owner": {"id": 922}, "assignee": {"id": 1098}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "assignee": {"id": 539}, "organization": {"id": 686}, "project": {"id": 371, "owner": {"id": 769}, "assignee": {"id": 894}}, "task": {"id": 371, "owner": {"id": 982}, "assignee": {"id": 1088}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 376, "assignee": {"id": 563}, "organization": {"id": 145}, "project": {"id": 333, "owner": {"id": 752}, "assignee": {"id": 835}}, "task": {"id": 370, "owner": {"id": 989}, "assignee": {"id": 1042}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 387, "assignee": {"id": 551}, "organization": {"id": 672}, "project": {"id": 393, "owner": {"id": 726}, "assignee": {"id": 820}}, "task": {"id": 391, "owner": {"id": 936}, "assignee": {"id": 1004}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 357, "assignee": {"id": 596}, "organization": {"id": 125}, "project": {"id": 337, "owner": {"id": 712}, "assignee": {"id": 810}}, "task": {"id": 381, "owner": {"id": 972}, "assignee": {"id": 1026}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 312, "assignee": {"id": 580}, "organization": {"id": 600}, "project": {"id": 330, "owner": {"id": 765}, "assignee": {"id": 882}}, "task": {"id": 399, "owner": {"id": 974}, "assignee": {"id": 1009}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 351, "assignee": {"id": 563}, "organization": {"id": 164}, "project": {"id": 387, "owner": {"id": 703}, "assignee": {"id": 879}}, "task": {"id": 386, "owner": {"id": 946}, "assignee": {"id": 1019}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 386, "assignee": {"id": 564}, "organization": {"id": 648}, "project": {"id": 367, "owner": {"id": 791}, "assignee": {"id": 805}}, "task": {"id": 333, "owner": {"id": 988}, "assignee": {"id": 1024}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "assignee": {"id": 501}, "organization": {"id": 199}, "project": {"id": 365, "owner": {"id": 786}, "assignee": {"id": 884}}, "task": {"id": 367, "owner": {"id": 975}, "assignee": {"id": 1018}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "assignee": {"id": 541}, "organization": {"id": 661}, "project": {"id": 365, "owner": {"id": 725}, "assignee": {"id": 877}}, "task": {"id": 391, "owner": {"id": 969}, "assignee": {"id": 1005}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "assignee": {"id": 557}, "organization": {"id": 171}, "project": {"id": 326, "owner": {"id": 796}, "assignee": {"id": 810}}, "task": {"id": 319, "owner": {"id": 906}, "assignee": {"id": 1047}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "assignee": {"id": 582}, "organization": {"id": 688}, "project": {"id": 339, "owner": {"id": 766}, "assignee": {"id": 845}}, "task": {"id": 326, "owner": {"id": 988}, "assignee": {"id": 1007}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 358, "assignee": {"id": 570}, "organization": {"id": 183}, "project": {"id": 324, "owner": {"id": 732}, "assignee": {"id": 802}}, "task": {"id": 392, "owner": {"id": 975}, "assignee": {"id": 1044}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 335, "assignee": {"id": 501}, "organization": {"id": 640}, "project": {"id": 307, "owner": {"id": 795}, "assignee": {"id": 809}}, "task": {"id": 370, "owner": {"id": 912}, "assignee": {"id": 1031}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 309, "assignee": {"id": 563}, "organization": {"id": 184}, "project": {"id": 300, "owner": {"id": 704}, "assignee": {"id": 835}}, "task": {"id": 365, "owner": {"id": 945}, "assignee": {"id": 1038}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 392, "assignee": {"id": 598}, "organization": {"id": 694}, "project": {"id": 317, "owner": {"id": 787}, "assignee": {"id": 824}}, "task": {"id": 385, "owner": {"id": 932}, "assignee": {"id": 1064}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": null}, "resource": {"id": 311, "assignee": {"id": 589}, "organization": {"id": 681}, "project": {"id": 307, "owner": {"id": 26}, "assignee": {"id": 809}}, "task": {"id": 308, "owner": {"id": 921}, "assignee": {"id": 1090}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": null}, "resource": {"id": 306, "assignee": {"id": 547}, "organization": {"id": 674}, "project": {"id": 310, "owner": {"id": 95}, "assignee": {"id": 894}}, "task": {"id": 358, "owner": {"id": 973}, "assignee": {"id": 1065}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": null}, "resource": {"id": 328, "assignee": {"id": 502}, "organization": {"id": 601}, "project": {"id": 314, "owner": {"id": 38}, "assignee": {"id": 826}}, "task": {"id": 308, "owner": {"id": 936}, "assignee": {"id": 1054}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": null}, "resource": {"id": 306, "assignee": {"id": 584}, "organization": {"id": 699}, "project": {"id": 345, "owner": {"id": 8}, "assignee": {"id": 823}}, "task": {"id": 316, "owner": {"id": 905}, "assignee": {"id": 1012}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": null}, "resource": {"id": 391, "assignee": {"id": 548}, "organization": {"id": 694}, "project": {"id": 374, "owner": {"id": 82}, "assignee": {"id": 857}}, "task": {"id": 308, "owner": {"id": 935}, "assignee": {"id": 1059}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": null}, "resource": {"id": 381, "assignee": {"id": 581}, "organization": {"id": 613}, "project": {"id": 381, "owner": {"id": 766}, "assignee": {"id": 63}}, "task": {"id": 313, "owner": {"id": 940}, "assignee": {"id": 1053}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": null}, "resource": {"id": 397, "assignee": {"id": 595}, "organization": {"id": 634}, "project": {"id": 327, "owner": {"id": 756}, "assignee": {"id": 17}}, "task": {"id": 319, "owner": {"id": 964}, "assignee": {"id": 1095}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": null}, "resource": {"id": 303, "assignee": {"id": 504}, "organization": {"id": 686}, "project": {"id": 321, "owner": {"id": 704}, "assignee": {"id": 51}}, "task": {"id": 372, "owner": {"id": 948}, "assignee": {"id": 1062}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": null}, "resource": {"id": 315, "assignee": {"id": 513}, "organization": {"id": 608}, "project": {"id": 326, "owner": {"id": 704}, "assignee": {"id": 74}}, "task": {"id": 344, "owner": {"id": 922}, "assignee": {"id": 1087}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": null}, "resource": {"id": 337, "assignee": {"id": 510}, "organization": {"id": 675}, "project": {"id": 395, "owner": {"id": 705}, "assignee": {"id": 59}}, "task": {"id": 333, "owner": {"id": 925}, "assignee": {"id": 1062}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": null}, "resource": {"id": 342, "assignee": {"id": 561}, "organization": {"id": 649}, "project": {"id": 311, "owner": {"id": 762}, "assignee": {"id": 851}}, "task": {"id": 347, "owner": {"id": 20}, "assignee": {"id": 1062}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": null}, "resource": {"id": 322, "assignee": {"id": 563}, "organization": {"id": 672}, "project": {"id": 329, "owner": {"id": 774}, "assignee": {"id": 822}}, "task": {"id": 380, "owner": {"id": 52}, "assignee": {"id": 1087}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": null}, "resource": {"id": 390, "assignee": {"id": 590}, "organization": {"id": 661}, "project": {"id": 322, "owner": {"id": 723}, "assignee": {"id": 818}}, "task": {"id": 313, "owner": {"id": 30}, "assignee": {"id": 1044}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": null}, "resource": {"id": 374, "assignee": {"id": 588}, "organization": {"id": 685}, "project": {"id": 365, "owner": {"id": 743}, "assignee": {"id": 808}}, "task": {"id": 348, "owner": {"id": 53}, "assignee": {"id": 1094}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": null}, "resource": {"id": 341, "assignee": {"id": 512}, "organization": {"id": 604}, "project": {"id": 384, "owner": {"id": 722}, "assignee": {"id": 875}}, "task": {"id": 346, "owner": {"id": 93}, "assignee": {"id": 1030}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": null}, "resource": {"id": 344, "assignee": {"id": 558}, "organization": {"id": 615}, "project": {"id": 386, "owner": {"id": 771}, "assignee": {"id": 853}}, "task": {"id": 373, "owner": {"id": 987}, "assignee": {"id": 96}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": null}, "resource": {"id": 357, "assignee": {"id": 518}, "organization": {"id": 606}, "project": {"id": 334, "owner": {"id": 711}, "assignee": {"id": 870}}, "task": {"id": 355, "owner": {"id": 921}, "assignee": {"id": 25}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": null}, "resource": {"id": 320, "assignee": {"id": 564}, "organization": {"id": 696}, "project": {"id": 366, "owner": {"id": 723}, "assignee": {"id": 824}}, "task": {"id": 314, "owner": {"id": 926}, "assignee": {"id": 79}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": null}, "resource": {"id": 373, "assignee": {"id": 593}, "organization": {"id": 659}, "project": {"id": 390, "owner": {"id": 719}, "assignee": {"id": 866}}, "task": {"id": 342, "owner": {"id": 941}, "assignee": {"id": 80}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": null}, "resource": {"id": 335, "assignee": {"id": 552}, "organization": {"id": 613}, "project": {"id": 346, "owner": {"id": 792}, "assignee": {"id": 805}}, "task": {"id": 334, "owner": {"id": 915}, "assignee": {"id": 94}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": null}, "resource": {"id": 371, "assignee": {"id": 15}, "organization": {"id": 606}, "project": {"id": 371, "owner": {"id": 717}, "assignee": {"id": 837}}, "task": {"id": 311, "owner": {"id": 926}, "assignee": {"id": 1005}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": null}, "resource": {"id": 386, "assignee": {"id": 54}, "organization": {"id": 685}, "project": {"id": 345, "owner": {"id": 757}, "assignee": {"id": 877}}, "task": {"id": 340, "owner": {"id": 930}, "assignee": {"id": 1045}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": null}, "resource": {"id": 337, "assignee": {"id": 50}, "organization": {"id": 685}, "project": {"id": 306, "owner": {"id": 722}, "assignee": {"id": 888}}, "task": {"id": 338, "owner": {"id": 973}, "assignee": {"id": 1049}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": null}, "resource": {"id": 316, "assignee": {"id": 22}, "organization": {"id": 697}, "project": {"id": 308, "owner": {"id": 707}, "assignee": {"id": 819}}, "task": {"id": 396, "owner": {"id": 976}, "assignee": {"id": 1058}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": null}, "resource": {"id": 325, "assignee": {"id": 37}, "organization": {"id": 657}, "project": {"id": 397, "owner": {"id": 771}, "assignee": {"id": 890}}, "task": {"id": 322, "owner": {"id": 944}, "assignee": {"id": 1053}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": null}, "resource": {"id": 397, "assignee": {"id": 559}, "organization": {"id": 642}, "project": {"id": 300, "owner": {"id": 780}, "assignee": {"id": 881}}, "task": {"id": 320, "owner": {"id": 903}, "assignee": {"id": 1081}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": null}, "resource": {"id": 383, "assignee": {"id": 586}, "organization": {"id": 641}, "project": {"id": 310, "owner": {"id": 716}, "assignee": {"id": 800}}, "task": {"id": 373, "owner": {"id": 988}, "assignee": {"id": 1005}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": null}, "resource": {"id": 370, "assignee": {"id": 556}, "organization": {"id": 622}, "project": {"id": 341, "owner": {"id": 742}, "assignee": {"id": 804}}, "task": {"id": 390, "owner": {"id": 947}, "assignee": {"id": 1039}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": null}, "resource": {"id": 317, "assignee": {"id": 503}, "organization": {"id": 679}, "project": {"id": 397, "owner": {"id": 733}, "assignee": {"id": 846}}, "task": {"id": 375, "owner": {"id": 990}, "assignee": {"id": 1099}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": null}, "resource": {"id": 395, "assignee": {"id": 565}, "organization": {"id": 662}, "project": {"id": 397, "owner": {"id": 778}, "assignee": {"id": 882}}, "task": {"id": 305, "owner": {"id": 965}, "assignee": {"id": 1092}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 306, "assignee": {"id": 539}, "organization": {"id": 177}, "project": {"id": 366, "owner": {"id": 14}, "assignee": {"id": 884}}, "task": {"id": 391, "owner": {"id": 930}, "assignee": {"id": 1040}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 365, "assignee": {"id": 599}, "organization": {"id": 699}, "project": {"id": 371, "owner": {"id": 60}, "assignee": {"id": 853}}, "task": {"id": 332, "owner": {"id": 975}, "assignee": {"id": 1045}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "assignee": {"id": 537}, "organization": {"id": 180}, "project": {"id": 385, "owner": {"id": 90}, "assignee": {"id": 879}}, "task": {"id": 375, "owner": {"id": 902}, "assignee": {"id": 1001}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "assignee": {"id": 537}, "organization": {"id": 621}, "project": {"id": 317, "owner": {"id": 90}, "assignee": {"id": 897}}, "task": {"id": 312, "owner": {"id": 963}, "assignee": {"id": 1005}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "assignee": {"id": 583}, "organization": {"id": 126}, "project": {"id": 380, "owner": {"id": 35}, "assignee": {"id": 830}}, "task": {"id": 363, "owner": {"id": 963}, "assignee": {"id": 1086}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "assignee": {"id": 528}, "organization": {"id": 607}, "project": {"id": 343, "owner": {"id": 42}, "assignee": {"id": 885}}, "task": {"id": 360, "owner": {"id": 973}, "assignee": {"id": 1021}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 311, "assignee": {"id": 563}, "organization": {"id": 164}, "project": {"id": 328, "owner": {"id": 52}, "assignee": {"id": 844}}, "task": {"id": 366, "owner": {"id": 914}, "assignee": {"id": 1029}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 397, "assignee": {"id": 520}, "organization": {"id": 606}, "project": {"id": 310, "owner": {"id": 62}, "assignee": {"id": 842}}, "task": {"id": 319, "owner": {"id": 978}, "assignee": {"id": 1088}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 370, "assignee": {"id": 547}, "organization": {"id": 181}, "project": {"id": 351, "owner": {"id": 1}, "assignee": {"id": 810}}, "task": {"id": 311, "owner": {"id": 949}, "assignee": {"id": 1057}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 353, "assignee": {"id": 521}, "organization": {"id": 605}, "project": {"id": 365, "owner": {"id": 58}, "assignee": {"id": 813}}, "task": {"id": 316, "owner": {"id": 934}, "assignee": {"id": 1001}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 348, "assignee": {"id": 555}, "organization": {"id": 119}, "project": {"id": 392, "owner": {"id": 49}, "assignee": {"id": 881}}, "task": {"id": 343, "owner": {"id": 985}, "assignee": {"id": 1027}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 316, "assignee": {"id": 514}, "organization": {"id": 696}, "project": {"id": 389, "owner": {"id": 12}, "assignee": {"id": 892}}, "task": {"id": 342, "owner": {"id": 905}, "assignee": {"id": 1081}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "assignee": {"id": 532}, "organization": {"id": 116}, "project": {"id": 348, "owner": {"id": 75}, "assignee": {"id": 888}}, "task": {"id": 374, "owner": {"id": 941}, "assignee": {"id": 1003}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "assignee": {"id": 567}, "organization": {"id": 636}, "project": {"id": 365, "owner": {"id": 85}, "assignee": {"id": 875}}, "task": {"id": 332, "owner": {"id": 945}, "assignee": {"id": 1034}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "assignee": {"id": 594}, "organization": {"id": 197}, "project": {"id": 356, "owner": {"id": 84}, "assignee": {"id": 845}}, "task": {"id": 337, "owner": {"id": 959}, "assignee": {"id": 1018}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "assignee": {"id": 562}, "organization": {"id": 632}, "project": {"id": 339, "owner": {"id": 52}, "assignee": {"id": 886}}, "task": {"id": 313, "owner": {"id": 957}, "assignee": {"id": 1046}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 332, "assignee": {"id": 575}, "organization": {"id": 139}, "project": {"id": 333, "owner": {"id": 33}, "assignee": {"id": 841}}, "task": {"id": 312, "owner": {"id": 936}, "assignee": {"id": 1038}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 388, "assignee": {"id": 546}, "organization": {"id": 662}, "project": {"id": 339, "owner": {"id": 20}, "assignee": {"id": 808}}, "task": {"id": 337, "owner": {"id": 994}, "assignee": {"id": 1040}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 390, "assignee": {"id": 565}, "organization": {"id": 102}, "project": {"id": 365, "owner": {"id": 40}, "assignee": {"id": 885}}, "task": {"id": 350, "owner": {"id": 938}, "assignee": {"id": 1048}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 378, "assignee": {"id": 529}, "organization": {"id": 603}, "project": {"id": 332, "owner": {"id": 19}, "assignee": {"id": 810}}, "task": {"id": 360, "owner": {"id": 971}, "assignee": {"id": 1037}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 376, "assignee": {"id": 512}, "organization": {"id": 133}, "project": {"id": 399, "owner": {"id": 43}, "assignee": {"id": 889}}, "task": {"id": 377, "owner": {"id": 979}, "assignee": {"id": 1063}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 328, "assignee": {"id": 578}, "organization": {"id": 627}, "project": {"id": 362, "owner": {"id": 56}, "assignee": {"id": 861}}, "task": {"id": 316, "owner": {"id": 995}, "assignee": {"id": 1099}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "assignee": {"id": 532}, "organization": {"id": 191}, "project": {"id": 320, "owner": {"id": 0}, "assignee": {"id": 814}}, "task": {"id": 321, "owner": {"id": 940}, "assignee": {"id": 1097}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "assignee": {"id": 586}, "organization": {"id": 626}, "project": {"id": 335, "owner": {"id": 17}, "assignee": {"id": 812}}, "task": {"id": 323, "owner": {"id": 936}, "assignee": {"id": 1060}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "assignee": {"id": 518}, "organization": {"id": 161}, "project": {"id": 356, "owner": {"id": 27}, "assignee": {"id": 808}}, "task": {"id": 376, "owner": {"id": 961}, "assignee": {"id": 1044}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "assignee": {"id": 506}, "organization": {"id": 654}, "project": {"id": 330, "owner": {"id": 84}, "assignee": {"id": 830}}, "task": {"id": 376, "owner": {"id": 977}, "assignee": {"id": 1071}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 362, "assignee": {"id": 558}, "organization": {"id": 167}, "project": {"id": 328, "owner": {"id": 43}, "assignee": {"id": 820}}, "task": {"id": 312, "owner": {"id": 900}, "assignee": {"id": 1067}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 381, "assignee": {"id": 558}, "organization": {"id": 646}, "project": {"id": 345, "owner": {"id": 20}, "assignee": {"id": 869}}, "task": {"id": 322, "owner": {"id": 953}, "assignee": {"id": 1028}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 377, "assignee": {"id": 535}, "organization": {"id": 144}, "project": {"id": 398, "owner": {"id": 66}, "assignee": {"id": 812}}, "task": {"id": 393, "owner": {"id": 907}, "assignee": {"id": 1071}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 364, "assignee": {"id": 572}, "organization": {"id": 690}, "project": {"id": 388, "owner": {"id": 67}, "assignee": {"id": 866}}, "task": {"id": 390, "owner": {"id": 985}, "assignee": {"id": 1011}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 377, "assignee": {"id": 579}, "organization": {"id": 136}, "project": {"id": 323, "owner": {"id": 30}, "assignee": {"id": 815}}, "task": {"id": 363, "owner": {"id": 990}, "assignee": {"id": 1071}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 399, "assignee": {"id": 582}, "organization": {"id": 600}, "project": {"id": 352, "owner": {"id": 95}, "assignee": {"id": 824}}, "task": {"id": 325, "owner": {"id": 984}, "assignee": {"id": 1075}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "assignee": {"id": 524}, "organization": {"id": 112}, "project": {"id": 325, "owner": {"id": 91}, "assignee": {"id": 836}}, "task": {"id": 372, "owner": {"id": 986}, "assignee": {"id": 1058}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "assignee": {"id": 556}, "organization": {"id": 616}, "project": {"id": 380, "owner": {"id": 27}, "assignee": {"id": 834}}, "task": {"id": 306, "owner": {"id": 972}, "assignee": {"id": 1086}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "assignee": {"id": 535}, "organization": {"id": 110}, "project": {"id": 325, "owner": {"id": 82}, "assignee": {"id": 898}}, "task": {"id": 304, "owner": {"id": 903}, "assignee": {"id": 1078}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "assignee": {"id": 597}, "organization": {"id": 658}, "project": {"id": 328, "owner": {"id": 37}, "assignee": {"id": 848}}, "task": {"id": 324, "owner": {"id": 928}, "assignee": {"id": 1017}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 300, "assignee": {"id": 584}, "organization": {"id": 161}, "project": {"id": 383, "owner": {"id": 32}, "assignee": {"id": 863}}, "task": {"id": 397, "owner": {"id": 921}, "assignee": {"id": 1039}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 330, "assignee": {"id": 573}, "organization": {"id": 694}, "project": {"id": 303, "owner": {"id": 46}, "assignee": {"id": 815}}, "task": {"id": 317, "owner": {"id": 910}, "assignee": {"id": 1021}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 369, "assignee": {"id": 575}, "organization": {"id": 164}, "project": {"id": 376, "owner": {"id": 72}, "assignee": {"id": 806}}, "task": {"id": 318, "owner": {"id": 938}, "assignee": {"id": 1014}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"id": 322, "assignee": {"id": 560}, "organization": {"id": 697}, "project": {"id": 320, "owner": {"id": 22}, "assignee": {"id": 837}}, "task": {"id": 383, "owner": {"id": 979}, "assignee": {"id": 1046}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 349, "assignee": {"id": 573}, "organization": {"id": 111}, "project": {"id": 380, "owner": {"id": 10}, "assignee": {"id": 845}}, "task": {"id": 318, "owner": {"id": 969}, "assignee": {"id": 1026}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 372, "assignee": {"id": 559}, "organization": {"id": 663}, "project": {"id": 364, "owner": {"id": 45}, "assignee": {"id": 845}}, "task": {"id": 313, "owner": {"id": 954}, "assignee": {"id": 1051}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "assignee": {"id": 506}, "organization": {"id": 156}, "project": {"id": 347, "owner": {"id": 59}, "assignee": {"id": 837}}, "task": {"id": 302, "owner": {"id": 996}, "assignee": {"id": 1018}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "assignee": {"id": 514}, "organization": {"id": 685}, "project": {"id": 316, "owner": {"id": 60}, "assignee": {"id": 812}}, "task": {"id": 349, "owner": {"id": 917}, "assignee": {"id": 1043}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "assignee": {"id": 504}, "organization": {"id": 139}, "project": {"id": 327, "owner": {"id": 60}, "assignee": {"id": 852}}, "task": {"id": 396, "owner": {"id": 968}, "assignee": {"id": 1044}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "assignee": {"id": 599}, "organization": {"id": 660}, "project": {"id": 382, "owner": {"id": 11}, "assignee": {"id": 870}}, "task": {"id": 334, "owner": {"id": 957}, "assignee": {"id": 1081}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 369, "assignee": {"id": 534}, "organization": {"id": 122}, "project": {"id": 364, "owner": {"id": 13}, "assignee": {"id": 849}}, "task": {"id": 329, "owner": {"id": 906}, "assignee": {"id": 1022}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 309, "assignee": {"id": 568}, "organization": {"id": 620}, "project": {"id": 324, "owner": {"id": 14}, "assignee": {"id": 824}}, "task": {"id": 360, "owner": {"id": 917}, "assignee": {"id": 1042}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 376, "assignee": {"id": 584}, "organization": {"id": 119}, "project": {"id": 304, "owner": {"id": 6}, "assignee": {"id": 826}}, "task": {"id": 396, "owner": {"id": 992}, "assignee": {"id": 1011}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 319, "assignee": {"id": 529}, "organization": {"id": 656}, "project": {"id": 303, "owner": {"id": 37}, "assignee": {"id": 804}}, "task": {"id": 349, "owner": {"id": 958}, "assignee": {"id": 1086}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 322, "assignee": {"id": 586}, "organization": {"id": 143}, "project": {"id": 320, "owner": {"id": 719}, "assignee": {"id": 50}}, "task": {"id": 320, "owner": {"id": 941}, "assignee": {"id": 1036}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 390, "assignee": {"id": 586}, "organization": {"id": 635}, "project": {"id": 363, "owner": {"id": 748}, "assignee": {"id": 11}}, "task": {"id": 309, "owner": {"id": 955}, "assignee": {"id": 1077}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 36, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "assignee": {"id": 576}, "organization": {"id": 120}, "project": {"id": 326, "owner": {"id": 749}, "assignee": {"id": 36}}, "task": {"id": 328, "owner": {"id": 945}, "assignee": {"id": 1095}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "assignee": {"id": 520}, "organization": {"id": 632}, "project": {"id": 355, "owner": {"id": 754}, "assignee": {"id": 21}}, "task": {"id": 349, "owner": {"id": 995}, "assignee": {"id": 1016}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "assignee": {"id": 549}, "organization": {"id": 145}, "project": {"id": 363, "owner": {"id": 738}, "assignee": {"id": 35}}, "task": {"id": 356, "owner": {"id": 975}, "assignee": {"id": 1001}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "assignee": {"id": 521}, "organization": {"id": 696}, "project": {"id": 318, "owner": {"id": 737}, "assignee": {"id": 5}}, "task": {"id": 396, "owner": {"id": 921}, "assignee": {"id": 1088}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 354, "assignee": {"id": 533}, "organization": {"id": 134}, "project": {"id": 346, "owner": {"id": 736}, "assignee": {"id": 48}}, "task": {"id": 357, "owner": {"id": 968}, "assignee": {"id": 1006}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 361, "assignee": {"id": 510}, "organization": {"id": 679}, "project": {"id": 383, "owner": {"id": 750}, "assignee": {"id": 37}}, "task": {"id": 388, "owner": {"id": 982}, "assignee": {"id": 1024}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 379, "assignee": {"id": 562}, "organization": {"id": 143}, "project": {"id": 308, "owner": {"id": 713}, "assignee": {"id": 48}}, "task": {"id": 305, "owner": {"id": 915}, "assignee": {"id": 1044}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 372, "assignee": {"id": 577}, "organization": {"id": 647}, "project": {"id": 323, "owner": {"id": 711}, "assignee": {"id": 93}}, "task": {"id": 398, "owner": {"id": 994}, "assignee": {"id": 1081}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 335, "assignee": {"id": 523}, "organization": {"id": 127}, "project": {"id": 300, "owner": {"id": 711}, "assignee": {"id": 33}}, "task": {"id": 302, "owner": {"id": 986}, "assignee": {"id": 1094}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 359, "assignee": {"id": 578}, "organization": {"id": 607}, "project": {"id": 390, "owner": {"id": 767}, "assignee": {"id": 65}}, "task": {"id": 370, "owner": {"id": 903}, "assignee": {"id": 1067}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "assignee": {"id": 591}, "organization": {"id": 141}, "project": {"id": 347, "owner": {"id": 745}, "assignee": {"id": 33}}, "task": {"id": 382, "owner": {"id": 928}, "assignee": {"id": 1054}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "assignee": {"id": 571}, "organization": {"id": 657}, "project": {"id": 347, "owner": {"id": 797}, "assignee": {"id": 98}}, "task": {"id": 357, "owner": {"id": 973}, "assignee": {"id": 1072}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "assignee": {"id": 533}, "organization": {"id": 107}, "project": {"id": 344, "owner": {"id": 793}, "assignee": {"id": 82}}, "task": {"id": 320, "owner": {"id": 980}, "assignee": {"id": 1074}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "assignee": {"id": 538}, "organization": {"id": 627}, "project": {"id": 349, "owner": {"id": 767}, "assignee": {"id": 65}}, "task": {"id": 361, "owner": {"id": 941}, "assignee": {"id": 1051}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 363, "assignee": {"id": 586}, "organization": {"id": 161}, "project": {"id": 341, "owner": {"id": 707}, "assignee": {"id": 55}}, "task": {"id": 357, "owner": {"id": 966}, "assignee": {"id": 1082}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 397, "assignee": {"id": 540}, "organization": {"id": 629}, "project": {"id": 307, "owner": {"id": 797}, "assignee": {"id": 0}}, "task": {"id": 313, "owner": {"id": 942}, "assignee": {"id": 1067}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 356, "assignee": {"id": 566}, "organization": {"id": 128}, "project": {"id": 399, "owner": {"id": 776}, "assignee": {"id": 77}}, "task": {"id": 347, "owner": {"id": 913}, "assignee": {"id": 1013}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 320, "assignee": {"id": 536}, "organization": {"id": 652}, "project": {"id": 361, "owner": {"id": 709}, "assignee": {"id": 78}}, "task": {"id": 391, "owner": {"id": 982}, "assignee": {"id": 1072}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 359, "assignee": {"id": 543}, "organization": {"id": 193}, "project": {"id": 327, "owner": {"id": 756}, "assignee": {"id": 18}}, "task": {"id": 302, "owner": {"id": 901}, "assignee": {"id": 1092}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 347, "assignee": {"id": 578}, "organization": {"id": 682}, "project": {"id": 349, "owner": {"id": 724}, "assignee": {"id": 62}}, "task": {"id": 309, "owner": {"id": 998}, "assignee": {"id": 1071}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "assignee": {"id": 546}, "organization": {"id": 128}, "project": {"id": 323, "owner": {"id": 705}, "assignee": {"id": 9}}, "task": {"id": 391, "owner": {"id": 931}, "assignee": {"id": 1048}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "assignee": {"id": 502}, "organization": {"id": 608}, "project": {"id": 336, "owner": {"id": 739}, "assignee": {"id": 61}}, "task": {"id": 335, "owner": {"id": 913}, "assignee": {"id": 1079}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "assignee": {"id": 584}, "organization": {"id": 167}, "project": {"id": 309, "owner": {"id": 784}, "assignee": {"id": 41}}, "task": {"id": 327, "owner": {"id": 954}, "assignee": {"id": 1063}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "assignee": {"id": 572}, "organization": {"id": 699}, "project": {"id": 392, "owner": {"id": 728}, "assignee": {"id": 98}}, "task": {"id": 390, "owner": {"id": 993}, "assignee": {"id": 1098}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 375, "assignee": {"id": 534}, "organization": {"id": 131}, "project": {"id": 309, "owner": {"id": 711}, "assignee": {"id": 96}}, "task": {"id": 309, "owner": {"id": 924}, "assignee": {"id": 1004}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"id": 362, "assignee": {"id": 503}, "organization": {"id": 679}, "project": {"id": 358, "owner": {"id": 712}, "assignee": {"id": 75}}, "task": {"id": 333, "owner": {"id": 952}, "assignee": {"id": 1058}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 359, "assignee": {"id": 560}, "organization": {"id": 118}, "project": {"id": 329, "owner": {"id": 760}, "assignee": {"id": 73}}, "task": {"id": 381, "owner": {"id": 913}, "assignee": {"id": 1053}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 344, "assignee": {"id": 578}, "organization": {"id": 621}, "project": {"id": 362, "owner": {"id": 739}, "assignee": {"id": 2}}, "task": {"id": 306, "owner": {"id": 910}, "assignee": {"id": 1005}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 377, "assignee": {"id": 583}, "organization": {"id": 107}, "project": {"id": 360, "owner": {"id": 737}, "assignee": {"id": 59}}, "task": {"id": 300, "owner": {"id": 976}, "assignee": {"id": 1088}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 365, "assignee": {"id": 527}, "organization": {"id": 616}, "project": {"id": 347, "owner": {"id": 780}, "assignee": {"id": 95}}, "task": {"id": 388, "owner": {"id": 950}, "assignee": {"id": 1048}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 301, "assignee": {"id": 548}, "organization": {"id": 163}, "project": {"id": 300, "owner": {"id": 767}, "assignee": {"id": 0}}, "task": {"id": 331, "owner": {"id": 958}, "assignee": {"id": 1005}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "assignee": {"id": 512}, "organization": {"id": 600}, "project": {"id": 319, "owner": {"id": 796}, "assignee": {"id": 21}}, "task": {"id": 316, "owner": {"id": 992}, "assignee": {"id": 1014}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 371, "assignee": {"id": 527}, "organization": {"id": 197}, "project": {"id": 305, "owner": {"id": 740}, "assignee": {"id": 9}}, "task": {"id": 395, "owner": {"id": 904}, "assignee": {"id": 1015}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "assignee": {"id": 593}, "organization": {"id": 648}, "project": {"id": 372, "owner": {"id": 725}, "assignee": {"id": 0}}, "task": {"id": 392, "owner": {"id": 975}, "assignee": {"id": 1014}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 355, "assignee": {"id": 578}, "organization": {"id": 110}, "project": {"id": 361, "owner": {"id": 708}, "assignee": {"id": 39}}, "task": {"id": 314, "owner": {"id": 936}, "assignee": {"id": 1078}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 399, "assignee": {"id": 554}, "organization": {"id": 629}, "project": {"id": 322, "owner": {"id": 771}, "assignee": {"id": 14}}, "task": {"id": 395, "owner": {"id": 919}, "assignee": {"id": 1046}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 332, "assignee": {"id": 598}, "organization": {"id": 157}, "project": {"id": 375, "owner": {"id": 742}, "assignee": {"id": 55}}, "task": {"id": 380, "owner": {"id": 949}, "assignee": {"id": 1015}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 313, "assignee": {"id": 508}, "organization": {"id": 662}, "project": {"id": 302, "owner": {"id": 719}, "assignee": {"id": 49}}, "task": {"id": 332, "owner": {"id": 938}, "assignee": {"id": 1076}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 304, "assignee": {"id": 520}, "organization": {"id": 118}, "project": {"id": 335, "owner": {"id": 794}, "assignee": {"id": 84}}, "task": {"id": 391, "owner": {"id": 910}, "assignee": {"id": 1066}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 333, "assignee": {"id": 581}, "organization": {"id": 667}, "project": {"id": 306, "owner": {"id": 742}, "assignee": {"id": 42}}, "task": {"id": 359, "owner": {"id": 944}, "assignee": {"id": 1079}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "assignee": {"id": 518}, "organization": {"id": 122}, "project": {"id": 383, "owner": {"id": 798}, "assignee": {"id": 47}}, "task": {"id": 353, "owner": {"id": 927}, "assignee": {"id": 1031}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "assignee": {"id": 584}, "organization": {"id": 659}, "project": {"id": 380, "owner": {"id": 741}, "assignee": {"id": 15}}, "task": {"id": 364, "owner": {"id": 956}, "assignee": {"id": 1063}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "assignee": {"id": 500}, "organization": {"id": 116}, "project": {"id": 302, "owner": {"id": 751}, "assignee": {"id": 81}}, "task": {"id": 388, "owner": {"id": 926}, "assignee": {"id": 1078}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "assignee": {"id": 513}, "organization": {"id": 699}, "project": {"id": 367, "owner": {"id": 753}, "assignee": {"id": 35}}, "task": {"id": 354, "owner": {"id": 993}, "assignee": {"id": 1059}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 321, "assignee": {"id": 522}, "organization": {"id": 107}, "project": {"id": 395, "owner": {"id": 762}, "assignee": {"id": 78}}, "task": {"id": 301, "owner": {"id": 963}, "assignee": {"id": 1024}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 338, "assignee": {"id": 578}, "organization": {"id": 655}, "project": {"id": 329, "owner": {"id": 704}, "assignee": {"id": 50}}, "task": {"id": 374, "owner": {"id": 949}, "assignee": {"id": 1053}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 355, "assignee": {"id": 522}, "organization": {"id": 183}, "project": {"id": 348, "owner": {"id": 704}, "assignee": {"id": 55}}, "task": {"id": 320, "owner": {"id": 990}, "assignee": {"id": 1077}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 378, "assignee": {"id": 576}, "organization": {"id": 608}, "project": {"id": 381, "owner": {"id": 705}, "assignee": {"id": 53}}, "task": {"id": 391, "owner": {"id": 963}, "assignee": {"id": 1015}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 341, "assignee": {"id": 532}, "organization": {"id": 159}, "project": {"id": 381, "owner": {"id": 764}, "assignee": {"id": 833}}, "task": {"id": 393, "owner": {"id": 44}, "assignee": {"id": 1052}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 391, "assignee": {"id": 515}, "organization": {"id": 631}, "project": {"id": 388, "owner": {"id": 781}, "assignee": {"id": 857}}, "task": {"id": 314, "owner": {"id": 32}, "assignee": {"id": 1025}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "assignee": {"id": 595}, "organization": {"id": 118}, "project": {"id": 327, "owner": {"id": 781}, "assignee": {"id": 822}}, "task": {"id": 366, "owner": {"id": 27}, "assignee": {"id": 1098}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "assignee": {"id": 559}, "organization": {"id": 698}, "project": {"id": 348, "owner": {"id": 754}, "assignee": {"id": 841}}, "task": {"id": 332, "owner": {"id": 68}, "assignee": {"id": 1093}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "assignee": {"id": 563}, "organization": {"id": 143}, "project": {"id": 398, "owner": {"id": 776}, "assignee": {"id": 898}}, "task": {"id": 337, "owner": {"id": 39}, "assignee": {"id": 1088}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "assignee": {"id": 582}, "organization": {"id": 607}, "project": {"id": 324, "owner": {"id": 793}, "assignee": {"id": 803}}, "task": {"id": 392, "owner": {"id": 82}, "assignee": {"id": 1019}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 329, "assignee": {"id": 549}, "organization": {"id": 170}, "project": {"id": 341, "owner": {"id": 796}, "assignee": {"id": 872}}, "task": {"id": 337, "owner": {"id": 70}, "assignee": {"id": 1025}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 327, "assignee": {"id": 517}, "organization": {"id": 631}, "project": {"id": 339, "owner": {"id": 742}, "assignee": {"id": 892}}, "task": {"id": 331, "owner": {"id": 49}, "assignee": {"id": 1044}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 320, "assignee": {"id": 516}, "organization": {"id": 198}, "project": {"id": 397, "owner": {"id": 767}, "assignee": {"id": 876}}, "task": {"id": 393, "owner": {"id": 46}, "assignee": {"id": 1053}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 385, "assignee": {"id": 547}, "organization": {"id": 638}, "project": {"id": 377, "owner": {"id": 781}, "assignee": {"id": 819}}, "task": {"id": 385, "owner": {"id": 89}, "assignee": {"id": 1028}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 300, "assignee": {"id": 514}, "organization": {"id": 109}, "project": {"id": 329, "owner": {"id": 781}, "assignee": {"id": 859}}, "task": {"id": 381, "owner": {"id": 78}, "assignee": {"id": 1009}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 386, "assignee": {"id": 558}, "organization": {"id": 661}, "project": {"id": 301, "owner": {"id": 712}, "assignee": {"id": 839}}, "task": {"id": 311, "owner": {"id": 45}, "assignee": {"id": 1010}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "assignee": {"id": 513}, "organization": {"id": 134}, "project": {"id": 348, "owner": {"id": 719}, "assignee": {"id": 827}}, "task": {"id": 308, "owner": {"id": 78}, "assignee": {"id": 1031}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "assignee": {"id": 509}, "organization": {"id": 614}, "project": {"id": 345, "owner": {"id": 769}, "assignee": {"id": 859}}, "task": {"id": 392, "owner": {"id": 4}, "assignee": {"id": 1043}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "assignee": {"id": 548}, "organization": {"id": 195}, "project": {"id": 376, "owner": {"id": 757}, "assignee": {"id": 881}}, "task": {"id": 346, "owner": {"id": 56}, "assignee": {"id": 1047}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "assignee": {"id": 597}, "organization": {"id": 617}, "project": {"id": 315, "owner": {"id": 747}, "assignee": {"id": 808}}, "task": {"id": 304, "owner": {"id": 71}, "assignee": {"id": 1077}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 303, "assignee": {"id": 582}, "organization": {"id": 162}, "project": {"id": 333, "owner": {"id": 737}, "assignee": {"id": 828}}, "task": {"id": 301, "owner": {"id": 58}, "assignee": {"id": 1017}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"id": 317, "assignee": {"id": 596}, "organization": {"id": 601}, "project": {"id": 386, "owner": {"id": 748}, "assignee": {"id": 842}}, "task": {"id": 350, "owner": {"id": 18}, "assignee": {"id": 1037}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 352, "assignee": {"id": 580}, "organization": {"id": 121}, "project": {"id": 370, "owner": {"id": 701}, "assignee": {"id": 881}}, "task": {"id": 367, "owner": {"id": 25}, "assignee": {"id": 1048}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 356, "assignee": {"id": 553}, "organization": {"id": 694}, "project": {"id": 328, "owner": {"id": 788}, "assignee": {"id": 882}}, "task": {"id": 312, "owner": {"id": 31}, "assignee": {"id": 1039}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 307, "assignee": {"id": 558}, "organization": {"id": 134}, "project": {"id": 329, "owner": {"id": 776}, "assignee": {"id": 864}}, "task": {"id": 360, "owner": {"id": 13}, "assignee": {"id": 1035}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 355, "assignee": {"id": 592}, "organization": {"id": 637}, "project": {"id": 317, "owner": {"id": 775}, "assignee": {"id": 828}}, "task": {"id": 303, "owner": {"id": 32}, "assignee": {"id": 1085}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "assignee": {"id": 536}, "organization": {"id": 152}, "project": {"id": 364, "owner": {"id": 793}, "assignee": {"id": 825}}, "task": {"id": 393, "owner": {"id": 8}, "assignee": {"id": 1095}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "assignee": {"id": 590}, "organization": {"id": 692}, "project": {"id": 317, "owner": {"id": 788}, "assignee": {"id": 869}}, "task": {"id": 392, "owner": {"id": 39}, "assignee": {"id": 1040}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "assignee": {"id": 536}, "organization": {"id": 143}, "project": {"id": 360, "owner": {"id": 733}, "assignee": {"id": 831}}, "task": {"id": 371, "owner": {"id": 62}, "assignee": {"id": 1037}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "assignee": {"id": 575}, "organization": {"id": 661}, "project": {"id": 320, "owner": {"id": 783}, "assignee": {"id": 839}}, "task": {"id": 342, "owner": {"id": 72}, "assignee": {"id": 1058}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 369, "assignee": {"id": 522}, "organization": {"id": 183}, "project": {"id": 336, "owner": {"id": 743}, "assignee": {"id": 844}}, "task": {"id": 388, "owner": {"id": 93}, "assignee": {"id": 1003}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 319, "assignee": {"id": 515}, "organization": {"id": 602}, "project": {"id": 301, "owner": {"id": 714}, "assignee": {"id": 838}}, "task": {"id": 381, "owner": {"id": 51}, "assignee": {"id": 1078}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 397, "assignee": {"id": 560}, "organization": {"id": 183}, "project": {"id": 367, "owner": {"id": 741}, "assignee": {"id": 835}}, "task": {"id": 347, "owner": {"id": 94}, "assignee": {"id": 1072}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 392, "assignee": {"id": 544}, "organization": {"id": 656}, "project": {"id": 390, "owner": {"id": 779}, "assignee": {"id": 869}}, "task": {"id": 348, "owner": {"id": 95}, "assignee": {"id": 1016}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 322, "assignee": {"id": 527}, "organization": {"id": 185}, "project": {"id": 372, "owner": {"id": 743}, "assignee": {"id": 830}}, "task": {"id": 393, "owner": {"id": 95}, "assignee": {"id": 1004}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 316, "assignee": {"id": 583}, "organization": {"id": 644}, "project": {"id": 394, "owner": {"id": 744}, "assignee": {"id": 825}}, "task": {"id": 376, "owner": {"id": 23}, "assignee": {"id": 1084}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "assignee": {"id": 588}, "organization": {"id": 145}, "project": {"id": 358, "owner": {"id": 762}, "assignee": {"id": 885}}, "task": {"id": 395, "owner": {"id": 22}, "assignee": {"id": 1013}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "assignee": {"id": 546}, "organization": {"id": 667}, "project": {"id": 392, "owner": {"id": 762}, "assignee": {"id": 804}}, "task": {"id": 315, "owner": {"id": 94}, "assignee": {"id": 1012}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "assignee": {"id": 544}, "organization": {"id": 152}, "project": {"id": 362, "owner": {"id": 730}, "assignee": {"id": 885}}, "task": {"id": 326, "owner": {"id": 25}, "assignee": {"id": 1071}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "assignee": {"id": 572}, "organization": {"id": 680}, "project": {"id": 322, "owner": {"id": 715}, "assignee": {"id": 843}}, "task": {"id": 311, "owner": {"id": 74}, "assignee": {"id": 1054}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 328, "assignee": {"id": 570}, "organization": {"id": 187}, "project": {"id": 370, "owner": {"id": 760}, "assignee": {"id": 808}}, "task": {"id": 358, "owner": {"id": 41}, "assignee": {"id": 1029}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 327, "assignee": {"id": 544}, "organization": {"id": 689}, "project": {"id": 385, "owner": {"id": 765}, "assignee": {"id": 887}}, "task": {"id": 374, "owner": {"id": 44}, "assignee": {"id": 1007}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 398, "assignee": {"id": 599}, "organization": {"id": 154}, "project": {"id": 342, "owner": {"id": 755}, "assignee": {"id": 820}}, "task": {"id": 392, "owner": {"id": 78}, "assignee": {"id": 1027}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 325, "assignee": {"id": 586}, "organization": {"id": 699}, "project": {"id": 325, "owner": {"id": 715}, "assignee": {"id": 855}}, "task": {"id": 310, "owner": {"id": 0}, "assignee": {"id": 1019}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 378, "assignee": {"id": 518}, "organization": {"id": 171}, "project": {"id": 353, "owner": {"id": 784}, "assignee": {"id": 868}}, "task": {"id": 384, "owner": {"id": 60}, "assignee": {"id": 1090}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 319, "assignee": {"id": 585}, "organization": {"id": 688}, "project": {"id": 360, "owner": {"id": 761}, "assignee": {"id": 842}}, "task": {"id": 313, "owner": {"id": 50}, "assignee": {"id": 1028}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "assignee": {"id": 506}, "organization": {"id": 178}, "project": {"id": 375, "owner": {"id": 756}, "assignee": {"id": 895}}, "task": {"id": 345, "owner": {"id": 48}, "assignee": {"id": 1049}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "assignee": {"id": 587}, "organization": {"id": 682}, "project": {"id": 316, "owner": {"id": 793}, "assignee": {"id": 869}}, "task": {"id": 340, "owner": {"id": 66}, "assignee": {"id": 1050}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "assignee": {"id": 537}, "organization": {"id": 110}, "project": {"id": 353, "owner": {"id": 736}, "assignee": {"id": 873}}, "task": {"id": 330, "owner": {"id": 98}, "assignee": {"id": 1012}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 340, "assignee": {"id": 548}, "organization": {"id": 696}, "project": {"id": 381, "owner": {"id": 790}, "assignee": {"id": 869}}, "task": {"id": 340, "owner": {"id": 21}, "assignee": {"id": 1003}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 316, "assignee": {"id": 512}, "organization": {"id": 131}, "project": {"id": 305, "owner": {"id": 750}, "assignee": {"id": 891}}, "task": {"id": 388, "owner": {"id": 91}, "assignee": {"id": 1001}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 352, "assignee": {"id": 531}, "organization": {"id": 621}, "project": {"id": 329, "owner": {"id": 787}, "assignee": {"id": 847}}, "task": {"id": 394, "owner": {"id": 41}, "assignee": {"id": 1070}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 376, "assignee": {"id": 584}, "organization": {"id": 156}, "project": {"id": 354, "owner": {"id": 745}, "assignee": {"id": 851}}, "task": {"id": 311, "owner": {"id": 7}, "assignee": {"id": 1088}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 330, "assignee": {"id": 579}, "organization": {"id": 665}, "project": {"id": 356, "owner": {"id": 710}, "assignee": {"id": 882}}, "task": {"id": 385, "owner": {"id": 37}, "assignee": {"id": 1065}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 334, "assignee": {"id": 539}, "organization": {"id": 197}, "project": {"id": 303, "owner": {"id": 700}, "assignee": {"id": 859}}, "task": {"id": 382, "owner": {"id": 937}, "assignee": {"id": 86}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 394, "assignee": {"id": 562}, "organization": {"id": 660}, "project": {"id": 337, "owner": {"id": 715}, "assignee": {"id": 882}}, "task": {"id": 337, "owner": {"id": 953}, "assignee": {"id": 44}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "assignee": {"id": 512}, "organization": {"id": 190}, "project": {"id": 331, "owner": {"id": 725}, "assignee": {"id": 896}}, "task": {"id": 322, "owner": {"id": 946}, "assignee": {"id": 31}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "assignee": {"id": 505}, "organization": {"id": 642}, "project": {"id": 358, "owner": {"id": 794}, "assignee": {"id": 845}}, "task": {"id": 359, "owner": {"id": 988}, "assignee": {"id": 48}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "assignee": {"id": 507}, "organization": {"id": 105}, "project": {"id": 343, "owner": {"id": 702}, "assignee": {"id": 858}}, "task": {"id": 392, "owner": {"id": 948}, "assignee": {"id": 54}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "assignee": {"id": 582}, "organization": {"id": 686}, "project": {"id": 345, "owner": {"id": 702}, "assignee": {"id": 865}}, "task": {"id": 346, "owner": {"id": 991}, "assignee": {"id": 54}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 353, "assignee": {"id": 565}, "organization": {"id": 197}, "project": {"id": 352, "owner": {"id": 747}, "assignee": {"id": 844}}, "task": {"id": 394, "owner": {"id": 926}, "assignee": {"id": 49}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 363, "assignee": {"id": 534}, "organization": {"id": 613}, "project": {"id": 383, "owner": {"id": 790}, "assignee": {"id": 833}}, "task": {"id": 308, "owner": {"id": 923}, "assignee": {"id": 34}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 396, "assignee": {"id": 533}, "organization": {"id": 174}, "project": {"id": 372, "owner": {"id": 755}, "assignee": {"id": 866}}, "task": {"id": 336, "owner": {"id": 965}, "assignee": {"id": 40}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 349, "assignee": {"id": 506}, "organization": {"id": 600}, "project": {"id": 300, "owner": {"id": 708}, "assignee": {"id": 870}}, "task": {"id": 384, "owner": {"id": 987}, "assignee": {"id": 0}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 313, "assignee": {"id": 549}, "organization": {"id": 186}, "project": {"id": 327, "owner": {"id": 767}, "assignee": {"id": 870}}, "task": {"id": 315, "owner": {"id": 975}, "assignee": {"id": 90}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 380, "assignee": {"id": 582}, "organization": {"id": 618}, "project": {"id": 361, "owner": {"id": 710}, "assignee": {"id": 872}}, "task": {"id": 312, "owner": {"id": 964}, "assignee": {"id": 73}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "assignee": {"id": 578}, "organization": {"id": 112}, "project": {"id": 361, "owner": {"id": 777}, "assignee": {"id": 816}}, "task": {"id": 312, "owner": {"id": 952}, "assignee": {"id": 0}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "assignee": {"id": 559}, "organization": {"id": 694}, "project": {"id": 346, "owner": {"id": 758}, "assignee": {"id": 853}}, "task": {"id": 395, "owner": {"id": 901}, "assignee": {"id": 65}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "assignee": {"id": 591}, "organization": {"id": 139}, "project": {"id": 387, "owner": {"id": 740}, "assignee": {"id": 895}}, "task": {"id": 316, "owner": {"id": 916}, "assignee": {"id": 16}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "assignee": {"id": 542}, "organization": {"id": 616}, "project": {"id": 387, "owner": {"id": 766}, "assignee": {"id": 878}}, "task": {"id": 328, "owner": {"id": 921}, "assignee": {"id": 13}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 343, "assignee": {"id": 595}, "organization": {"id": 198}, "project": {"id": 362, "owner": {"id": 762}, "assignee": {"id": 825}}, "task": {"id": 309, "owner": {"id": 926}, "assignee": {"id": 78}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 337, "assignee": {"id": 572}, "organization": {"id": 631}, "project": {"id": 314, "owner": {"id": 730}, "assignee": {"id": 841}}, "task": {"id": 317, "owner": {"id": 991}, "assignee": {"id": 62}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 323, "assignee": {"id": 544}, "organization": {"id": 111}, "project": {"id": 378, "owner": {"id": 731}, "assignee": {"id": 862}}, "task": {"id": 354, "owner": {"id": 984}, "assignee": {"id": 8}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 316, "assignee": {"id": 541}, "organization": {"id": 655}, "project": {"id": 396, "owner": {"id": 754}, "assignee": {"id": 880}}, "task": {"id": 399, "owner": {"id": 943}, "assignee": {"id": 49}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 314, "assignee": {"id": 558}, "organization": {"id": 124}, "project": {"id": 360, "owner": {"id": 712}, "assignee": {"id": 898}}, "task": {"id": 342, "owner": {"id": 932}, "assignee": {"id": 88}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 322, "assignee": {"id": 568}, "organization": {"id": 611}, "project": {"id": 394, "owner": {"id": 724}, "assignee": {"id": 836}}, "task": {"id": 315, "owner": {"id": 929}, "assignee": {"id": 3}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "assignee": {"id": 551}, "organization": {"id": 156}, "project": {"id": 391, "owner": {"id": 760}, "assignee": {"id": 839}}, "task": {"id": 375, "owner": {"id": 953}, "assignee": {"id": 64}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "assignee": {"id": 538}, "organization": {"id": 682}, "project": {"id": 395, "owner": {"id": 737}, "assignee": {"id": 854}}, "task": {"id": 389, "owner": {"id": 940}, "assignee": {"id": 90}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "assignee": {"id": 514}, "organization": {"id": 197}, "project": {"id": 362, "owner": {"id": 727}, "assignee": {"id": 878}}, "task": {"id": 371, "owner": {"id": 984}, "assignee": {"id": 13}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "assignee": {"id": 541}, "organization": {"id": 665}, "project": {"id": 369, "owner": {"id": 762}, "assignee": {"id": 860}}, "task": {"id": 335, "owner": {"id": 905}, "assignee": {"id": 44}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 398, "assignee": {"id": 508}, "organization": {"id": 106}, "project": {"id": 308, "owner": {"id": 726}, "assignee": {"id": 839}}, "task": {"id": 397, "owner": {"id": 985}, "assignee": {"id": 47}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 390, "assignee": {"id": 584}, "organization": {"id": 653}, "project": {"id": 341, "owner": {"id": 788}, "assignee": {"id": 853}}, "task": {"id": 379, "owner": {"id": 972}, "assignee": {"id": 88}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 369, "assignee": {"id": 562}, "organization": {"id": 121}, "project": {"id": 337, "owner": {"id": 761}, "assignee": {"id": 862}}, "task": {"id": 310, "owner": {"id": 929}, "assignee": {"id": 11}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 395, "assignee": {"id": 530}, "organization": {"id": 682}, "project": {"id": 366, "owner": {"id": 789}, "assignee": {"id": 899}}, "task": {"id": 381, "owner": {"id": 931}, "assignee": {"id": 11}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 347, "assignee": {"id": 599}, "organization": {"id": 148}, "project": {"id": 317, "owner": {"id": 778}, "assignee": {"id": 893}}, "task": {"id": 392, "owner": {"id": 979}, "assignee": {"id": 53}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 353, "assignee": {"id": 597}, "organization": {"id": 620}, "project": {"id": 391, "owner": {"id": 798}, "assignee": {"id": 805}}, "task": {"id": 353, "owner": {"id": 963}, "assignee": {"id": 6}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "assignee": {"id": 527}, "organization": {"id": 104}, "project": {"id": 356, "owner": {"id": 787}, "assignee": {"id": 862}}, "task": {"id": 358, "owner": {"id": 932}, "assignee": {"id": 12}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "assignee": {"id": 571}, "organization": {"id": 632}, "project": {"id": 325, "owner": {"id": 774}, "assignee": {"id": 860}}, "task": {"id": 315, "owner": {"id": 995}, "assignee": {"id": 97}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "assignee": {"id": 590}, "organization": {"id": 131}, "project": {"id": 301, "owner": {"id": 727}, "assignee": {"id": 885}}, "task": {"id": 335, "owner": {"id": 904}, "assignee": {"id": 94}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "assignee": {"id": 596}, "organization": {"id": 665}, "project": {"id": 323, "owner": {"id": 761}, "assignee": {"id": 894}}, "task": {"id": 387, "owner": {"id": 914}, "assignee": {"id": 25}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 317, "assignee": {"id": 506}, "organization": {"id": 155}, "project": {"id": 310, "owner": {"id": 785}, "assignee": {"id": 801}}, "task": {"id": 355, "owner": {"id": 950}, "assignee": {"id": 36}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 346, "assignee": {"id": 512}, "organization": {"id": 664}, "project": {"id": 334, "owner": {"id": 760}, "assignee": {"id": 865}}, "task": {"id": 365, "owner": {"id": 963}, "assignee": {"id": 82}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 367, "assignee": {"id": 570}, "organization": {"id": 179}, "project": {"id": 338, "owner": {"id": 744}, "assignee": {"id": 864}}, "task": {"id": 380, "owner": {"id": 990}, "assignee": {"id": 62}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 345, "assignee": {"id": 559}, "organization": {"id": 689}, "project": {"id": 374, "owner": {"id": 761}, "assignee": {"id": 810}}, "task": {"id": 312, "owner": {"id": 937}, "assignee": {"id": 11}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 337, "assignee": {"id": 553}, "organization": {"id": 128}, "project": {"id": 382, "owner": {"id": 778}, "assignee": {"id": 806}}, "task": {"id": 348, "owner": {"id": 975}, "assignee": {"id": 22}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 391, "assignee": {"id": 573}, "organization": {"id": 645}, "project": {"id": 312, "owner": {"id": 702}, "assignee": {"id": 868}}, "task": {"id": 383, "owner": {"id": 992}, "assignee": {"id": 94}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "assignee": {"id": 563}, "organization": {"id": 177}, "project": {"id": 366, "owner": {"id": 750}, "assignee": {"id": 850}}, "task": {"id": 366, "owner": {"id": 954}, "assignee": {"id": 84}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "assignee": {"id": 538}, "organization": {"id": 618}, "project": {"id": 302, "owner": {"id": 702}, "assignee": {"id": 829}}, "task": {"id": 323, "owner": {"id": 949}, "assignee": {"id": 7}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "assignee": {"id": 540}, "organization": {"id": 193}, "project": {"id": 333, "owner": {"id": 712}, "assignee": {"id": 812}}, "task": {"id": 334, "owner": {"id": 996}, "assignee": {"id": 5}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "assignee": {"id": 547}, "organization": {"id": 612}, "project": {"id": 328, "owner": {"id": 727}, "assignee": {"id": 843}}, "task": {"id": 322, "owner": {"id": 972}, "assignee": {"id": 76}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 355, "assignee": {"id": 506}, "organization": {"id": 103}, "project": {"id": 391, "owner": {"id": 780}, "assignee": {"id": 896}}, "task": {"id": 372, "owner": {"id": 953}, "assignee": {"id": 9}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 334, "assignee": {"id": 580}, "organization": {"id": 687}, "project": {"id": 372, "owner": {"id": 721}, "assignee": {"id": 896}}, "task": {"id": 391, "owner": {"id": 975}, "assignee": {"id": 6}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 340, "assignee": {"id": 526}, "organization": {"id": 196}, "project": {"id": 354, "owner": {"id": 769}, "assignee": {"id": 856}}, "task": {"id": 350, "owner": {"id": 908}, "assignee": {"id": 88}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 357, "assignee": {"id": 552}, "organization": {"id": 662}, "project": {"id": 348, "owner": {"id": 719}, "assignee": {"id": 814}}, "task": {"id": 381, "owner": {"id": 925}, "assignee": {"id": 38}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 351, "assignee": {"id": 25}, "organization": {"id": 185}, "project": {"id": 335, "owner": {"id": 792}, "assignee": {"id": 829}}, "task": {"id": 315, "owner": {"id": 944}, "assignee": {"id": 1094}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 380, "assignee": {"id": 46}, "organization": {"id": 687}, "project": {"id": 338, "owner": {"id": 771}, "assignee": {"id": 882}}, "task": {"id": 373, "owner": {"id": 975}, "assignee": {"id": 1091}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "assignee": {"id": 6}, "organization": {"id": 199}, "project": {"id": 366, "owner": {"id": 798}, "assignee": {"id": 842}}, "task": {"id": 373, "owner": {"id": 905}, "assignee": {"id": 1039}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "assignee": {"id": 32}, "organization": {"id": 613}, "project": {"id": 386, "owner": {"id": 757}, "assignee": {"id": 804}}, "task": {"id": 327, "owner": {"id": 951}, "assignee": {"id": 1091}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "assignee": {"id": 39}, "organization": {"id": 108}, "project": {"id": 327, "owner": {"id": 709}, "assignee": {"id": 826}}, "task": {"id": 338, "owner": {"id": 981}, "assignee": {"id": 1019}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 380, "assignee": {"id": 97}, "organization": {"id": 615}, "project": {"id": 365, "owner": {"id": 773}, "assignee": {"id": 861}}, "task": {"id": 350, "owner": {"id": 920}, "assignee": {"id": 1009}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 377, "assignee": {"id": 22}, "organization": {"id": 112}, "project": {"id": 393, "owner": {"id": 737}, "assignee": {"id": 893}}, "task": {"id": 318, "owner": {"id": 982}, "assignee": {"id": 1078}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 313, "assignee": {"id": 90}, "organization": {"id": 617}, "project": {"id": 363, "owner": {"id": 734}, "assignee": {"id": 869}}, "task": {"id": 398, "owner": {"id": 917}, "assignee": {"id": 1010}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 361, "assignee": {"id": 30}, "organization": {"id": 110}, "project": {"id": 302, "owner": {"id": 793}, "assignee": {"id": 862}}, "task": {"id": 387, "owner": {"id": 972}, "assignee": {"id": 1053}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 318, "assignee": {"id": 10}, "organization": {"id": 687}, "project": {"id": 307, "owner": {"id": 784}, "assignee": {"id": 893}}, "task": {"id": 335, "owner": {"id": 975}, "assignee": {"id": 1049}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 389, "assignee": {"id": 61}, "organization": {"id": 111}, "project": {"id": 340, "owner": {"id": 711}, "assignee": {"id": 878}}, "task": {"id": 350, "owner": {"id": 950}, "assignee": {"id": 1021}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 344, "assignee": {"id": 99}, "organization": {"id": 606}, "project": {"id": 354, "owner": {"id": 740}, "assignee": {"id": 888}}, "task": {"id": 368, "owner": {"id": 988}, "assignee": {"id": 1055}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 320, "assignee": {"id": 59}, "organization": {"id": 112}, "project": {"id": 356, "owner": {"id": 765}, "assignee": {"id": 847}}, "task": {"id": 389, "owner": {"id": 996}, "assignee": {"id": 1057}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "assignee": {"id": 83}, "organization": {"id": 622}, "project": {"id": 308, "owner": {"id": 773}, "assignee": {"id": 875}}, "task": {"id": 373, "owner": {"id": 924}, "assignee": {"id": 1088}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "assignee": {"id": 81}, "organization": {"id": 101}, "project": {"id": 395, "owner": {"id": 761}, "assignee": {"id": 800}}, "task": {"id": 385, "owner": {"id": 996}, "assignee": {"id": 1062}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "assignee": {"id": 35}, "organization": {"id": 682}, "project": {"id": 356, "owner": {"id": 773}, "assignee": {"id": 854}}, "task": {"id": 399, "owner": {"id": 920}, "assignee": {"id": 1094}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 323, "assignee": {"id": 77}, "organization": {"id": 169}, "project": {"id": 337, "owner": {"id": 725}, "assignee": {"id": 800}}, "task": {"id": 389, "owner": {"id": 901}, "assignee": {"id": 1028}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 364, "assignee": {"id": 39}, "organization": {"id": 696}, "project": {"id": 305, "owner": {"id": 753}, "assignee": {"id": 836}}, "task": {"id": 354, "owner": {"id": 943}, "assignee": {"id": 1072}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 311, "assignee": {"id": 76}, "organization": {"id": 183}, "project": {"id": 369, "owner": {"id": 753}, "assignee": {"id": 869}}, "task": {"id": 382, "owner": {"id": 993}, "assignee": {"id": 1038}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 362, "assignee": {"id": 26}, "organization": {"id": 634}, "project": {"id": 377, "owner": {"id": 790}, "assignee": {"id": 824}}, "task": {"id": 389, "owner": {"id": 922}, "assignee": {"id": 1000}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 318, "assignee": {"id": 87}, "organization": {"id": 126}, "project": {"id": 370, "owner": {"id": 751}, "assignee": {"id": 864}}, "task": {"id": 360, "owner": {"id": 903}, "assignee": {"id": 1082}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 346, "assignee": {"id": 90}, "organization": {"id": 694}, "project": {"id": 362, "owner": {"id": 768}, "assignee": {"id": 847}}, "task": {"id": 336, "owner": {"id": 941}, "assignee": {"id": 1061}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "assignee": {"id": 26}, "organization": {"id": 102}, "project": {"id": 374, "owner": {"id": 718}, "assignee": {"id": 833}}, "task": {"id": 395, "owner": {"id": 953}, "assignee": {"id": 1036}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "assignee": {"id": 33}, "organization": {"id": 616}, "project": {"id": 319, "owner": {"id": 722}, "assignee": {"id": 844}}, "task": {"id": 358, "owner": {"id": 947}, "assignee": {"id": 1002}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "assignee": {"id": 97}, "organization": {"id": 100}, "project": {"id": 339, "owner": {"id": 796}, "assignee": {"id": 830}}, "task": {"id": 388, "owner": {"id": 947}, "assignee": {"id": 1093}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "assignee": {"id": 36}, "organization": {"id": 647}, "project": {"id": 394, "owner": {"id": 782}, "assignee": {"id": 882}}, "task": {"id": 356, "owner": {"id": 929}, "assignee": {"id": 1012}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 319, "assignee": {"id": 56}, "organization": {"id": 154}, "project": {"id": 354, "owner": {"id": 722}, "assignee": {"id": 818}}, "task": {"id": 384, "owner": {"id": 932}, "assignee": {"id": 1062}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 325, "assignee": {"id": 6}, "organization": {"id": 619}, "project": {"id": 387, "owner": {"id": 764}, "assignee": {"id": 807}}, "task": {"id": 361, "owner": {"id": 908}, "assignee": {"id": 1007}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 340, "assignee": {"id": 14}, "organization": {"id": 180}, "project": {"id": 391, "owner": {"id": 767}, "assignee": {"id": 886}}, "task": {"id": 397, "owner": {"id": 954}, "assignee": {"id": 1034}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 383, "assignee": {"id": 31}, "organization": {"id": 630}, "project": {"id": 376, "owner": {"id": 777}, "assignee": {"id": 849}}, "task": {"id": 378, "owner": {"id": 961}, "assignee": {"id": 1077}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 381, "assignee": {"id": 92}, "organization": {"id": 125}, "project": {"id": 378, "owner": {"id": 798}, "assignee": {"id": 825}}, "task": {"id": 331, "owner": {"id": 964}, "assignee": {"id": 1025}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 357, "assignee": {"id": 74}, "organization": {"id": 670}, "project": {"id": 365, "owner": {"id": 726}, "assignee": {"id": 870}}, "task": {"id": 392, "owner": {"id": 951}, "assignee": {"id": 1066}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "assignee": {"id": 13}, "organization": {"id": 148}, "project": {"id": 357, "owner": {"id": 726}, "assignee": {"id": 871}}, "task": {"id": 392, "owner": {"id": 955}, "assignee": {"id": 1068}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "assignee": {"id": 90}, "organization": {"id": 618}, "project": {"id": 331, "owner": {"id": 742}, "assignee": {"id": 804}}, "task": {"id": 362, "owner": {"id": 981}, "assignee": {"id": 1077}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "assignee": {"id": 14}, "organization": {"id": 174}, "project": {"id": 362, "owner": {"id": 729}, "assignee": {"id": 893}}, "task": {"id": 380, "owner": {"id": 946}, "assignee": {"id": 1017}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "assignee": {"id": 25}, "organization": {"id": 648}, "project": {"id": 366, "owner": {"id": 732}, "assignee": {"id": 876}}, "task": {"id": 351, "owner": {"id": 903}, "assignee": {"id": 1085}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 322, "assignee": {"id": 59}, "organization": {"id": 119}, "project": {"id": 378, "owner": {"id": 792}, "assignee": {"id": 844}}, "task": {"id": 307, "owner": {"id": 969}, "assignee": {"id": 1050}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 319, "assignee": {"id": 57}, "organization": {"id": 684}, "project": {"id": 380, "owner": {"id": 755}, "assignee": {"id": 823}}, "task": {"id": 368, "owner": {"id": 911}, "assignee": {"id": 1007}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 358, "assignee": {"id": 29}, "organization": {"id": 189}, "project": {"id": 399, "owner": {"id": 768}, "assignee": {"id": 852}}, "task": {"id": 356, "owner": {"id": 985}, "assignee": {"id": 1091}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 361, "assignee": {"id": 56}, "organization": {"id": 668}, "project": {"id": 308, "owner": {"id": 777}, "assignee": {"id": 805}}, "task": {"id": 345, "owner": {"id": 983}, "assignee": {"id": 1073}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 364, "assignee": {"id": 62}, "organization": {"id": 135}, "project": {"id": 329, "owner": {"id": 727}, "assignee": {"id": 804}}, "task": {"id": 346, "owner": {"id": 927}, "assignee": {"id": 1088}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 385, "assignee": {"id": 30}, "organization": {"id": 620}, "project": {"id": 332, "owner": {"id": 717}, "assignee": {"id": 849}}, "task": {"id": 315, "owner": {"id": 907}, "assignee": {"id": 1090}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "assignee": {"id": 67}, "organization": {"id": 168}, "project": {"id": 360, "owner": {"id": 763}, "assignee": {"id": 824}}, "task": {"id": 349, "owner": {"id": 944}, "assignee": {"id": 1013}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "assignee": {"id": 27}, "organization": {"id": 614}, "project": {"id": 378, "owner": {"id": 768}, "assignee": {"id": 852}}, "task": {"id": 396, "owner": {"id": 950}, "assignee": {"id": 1010}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "assignee": {"id": 51}, "organization": {"id": 126}, "project": {"id": 330, "owner": {"id": 746}, "assignee": {"id": 860}}, "task": {"id": 323, "owner": {"id": 933}, "assignee": {"id": 1059}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "assignee": {"id": 41}, "organization": {"id": 660}, "project": {"id": 397, "owner": {"id": 718}, "assignee": {"id": 850}}, "task": {"id": 384, "owner": {"id": 989}, "assignee": {"id": 1066}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 359, "assignee": {"id": 91}, "organization": {"id": 188}, "project": {"id": 386, "owner": {"id": 790}, "assignee": {"id": 838}}, "task": {"id": 329, "owner": {"id": 965}, "assignee": {"id": 1082}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 367, "assignee": {"id": 55}, "organization": {"id": 601}, "project": {"id": 303, "owner": {"id": 774}, "assignee": {"id": 879}}, "task": {"id": 375, "owner": {"id": 965}, "assignee": {"id": 1054}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 372, "assignee": {"id": 8}, "organization": {"id": 134}, "project": {"id": 334, "owner": {"id": 782}, "assignee": {"id": 840}}, "task": {"id": 388, "owner": {"id": 902}, "assignee": {"id": 1041}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 303, "assignee": {"id": 77}, "organization": {"id": 664}, "project": {"id": 396, "owner": {"id": 759}, "assignee": {"id": 895}}, "task": {"id": 328, "owner": {"id": 944}, "assignee": {"id": 1092}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 334, "assignee": {"id": 528}, "organization": {"id": 112}, "project": {"id": 341, "owner": {"id": 730}, "assignee": {"id": 848}}, "task": {"id": 337, "owner": {"id": 979}, "assignee": {"id": 1072}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 307, "assignee": {"id": 562}, "organization": {"id": 663}, "project": {"id": 392, "owner": {"id": 773}, "assignee": {"id": 877}}, "task": {"id": 381, "owner": {"id": 956}, "assignee": {"id": 1058}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "assignee": {"id": 589}, "organization": {"id": 130}, "project": {"id": 339, "owner": {"id": 748}, "assignee": {"id": 893}}, "task": {"id": 386, "owner": {"id": 910}, "assignee": {"id": 1096}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "assignee": {"id": 501}, "organization": {"id": 618}, "project": {"id": 363, "owner": {"id": 701}, "assignee": {"id": 817}}, "task": {"id": 358, "owner": {"id": 999}, "assignee": {"id": 1046}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "assignee": {"id": 578}, "organization": {"id": 188}, "project": {"id": 397, "owner": {"id": 788}, "assignee": {"id": 855}}, "task": {"id": 388, "owner": {"id": 972}, "assignee": {"id": 1031}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"id": 340, "assignee": {"id": 513}, "organization": {"id": 632}, "project": {"id": 345, "owner": {"id": 730}, "assignee": {"id": 870}}, "task": {"id": 348, "owner": {"id": 983}, "assignee": {"id": 1076}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 355, "assignee": {"id": 566}, "organization": {"id": 103}, "project": {"id": 319, "owner": {"id": 797}, "assignee": {"id": 804}}, "task": {"id": 363, "owner": {"id": 943}, "assignee": {"id": 1000}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 378, "assignee": {"id": 598}, "organization": {"id": 679}, "project": {"id": 387, "owner": {"id": 710}, "assignee": {"id": 844}}, "task": {"id": 346, "owner": {"id": 967}, "assignee": {"id": 1044}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 384, "assignee": {"id": 520}, "organization": {"id": 127}, "project": {"id": 333, "owner": {"id": 732}, "assignee": {"id": 840}}, "task": {"id": 345, "owner": {"id": 955}, "assignee": {"id": 1043}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"id": 316, "assignee": {"id": 512}, "organization": {"id": 638}, "project": {"id": 395, "owner": {"id": 768}, "assignee": {"id": 878}}, "task": {"id": 339, "owner": {"id": 935}, "assignee": {"id": 1098}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 399, "assignee": {"id": 573}, "organization": {"id": 125}, "project": {"id": 347, "owner": {"id": 783}, "assignee": {"id": 810}}, "task": {"id": 357, "owner": {"id": 951}, "assignee": {"id": 1072}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 306, "assignee": {"id": 530}, "organization": {"id": 670}, "project": {"id": 310, "owner": {"id": 740}, "assignee": {"id": 855}}, "task": {"id": 374, "owner": {"id": 941}, "assignee": {"id": 1075}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "assignee": {"id": 594}, "organization": {"id": 101}, "project": {"id": 386, "owner": {"id": 797}, "assignee": {"id": 855}}, "task": {"id": 376, "owner": {"id": 947}, "assignee": {"id": 1090}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "assignee": {"id": 552}, "organization": {"id": 614}, "project": {"id": 383, "owner": {"id": 708}, "assignee": {"id": 817}}, "task": {"id": 366, "owner": {"id": 962}, "assignee": {"id": 1037}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "assignee": {"id": 514}, "organization": {"id": 129}, "project": {"id": 358, "owner": {"id": 724}, "assignee": {"id": 803}}, "task": {"id": 387, "owner": {"id": 948}, "assignee": {"id": 1073}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "assignee": {"id": 508}, "organization": {"id": 635}, "project": {"id": 340, "owner": {"id": 716}, "assignee": {"id": 869}}, "task": {"id": 356, "owner": {"id": 966}, "assignee": {"id": 1074}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 372, "assignee": {"id": 550}, "organization": {"id": 170}, "project": {"id": 364, "owner": {"id": 773}, "assignee": {"id": 830}}, "task": {"id": 300, "owner": {"id": 999}, "assignee": {"id": 1082}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 307, "assignee": {"id": 546}, "organization": {"id": 618}, "project": {"id": 309, "owner": {"id": 764}, "assignee": {"id": 845}}, "task": {"id": 306, "owner": {"id": 941}, "assignee": {"id": 1049}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 395, "assignee": {"id": 513}, "organization": {"id": 193}, "project": {"id": 312, "owner": {"id": 719}, "assignee": {"id": 883}}, "task": {"id": 352, "owner": {"id": 906}, "assignee": {"id": 1033}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 345, "assignee": {"id": 595}, "organization": {"id": 667}, "project": {"id": 372, "owner": {"id": 753}, "assignee": {"id": 841}}, "task": {"id": 333, "owner": {"id": 978}, "assignee": {"id": 1070}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"id": 334, "assignee": {"id": 501}, "organization": {"id": 179}, "project": {"id": 330, "owner": {"id": 769}, "assignee": {"id": 854}}, "task": {"id": 345, "owner": {"id": 939}, "assignee": {"id": 1058}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 323, "assignee": {"id": 563}, "organization": {"id": 682}, "project": {"id": 306, "owner": {"id": 787}, "assignee": {"id": 847}}, "task": {"id": 332, "owner": {"id": 965}, "assignee": {"id": 1058}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "assignee": {"id": 543}, "organization": {"id": 150}, "project": {"id": 348, "owner": {"id": 719}, "assignee": {"id": 828}}, "task": {"id": 303, "owner": {"id": 993}, "assignee": {"id": 1006}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "assignee": {"id": 583}, "organization": {"id": 639}, "project": {"id": 334, "owner": {"id": 780}, "assignee": {"id": 850}}, "task": {"id": 313, "owner": {"id": 946}, "assignee": {"id": 1001}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "assignee": {"id": 599}, "organization": {"id": 148}, "project": {"id": 328, "owner": {"id": 742}, "assignee": {"id": 806}}, "task": {"id": 353, "owner": {"id": 950}, "assignee": {"id": 1080}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "assignee": {"id": 546}, "organization": {"id": 603}, "project": {"id": 344, "owner": {"id": 779}, "assignee": {"id": 802}}, "task": {"id": 365, "owner": {"id": 946}, "assignee": {"id": 1082}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 354, "assignee": {"id": 542}, "organization": {"id": 174}, "project": {"id": 368, "owner": {"id": 773}, "assignee": {"id": 827}}, "task": {"id": 360, "owner": {"id": 973}, "assignee": {"id": 1089}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 377, "assignee": {"id": 539}, "organization": {"id": 662}, "project": {"id": 334, "owner": {"id": 728}, "assignee": {"id": 859}}, "task": {"id": 319, "owner": {"id": 972}, "assignee": {"id": 1075}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 341, "assignee": {"id": 519}, "organization": {"id": 175}, "project": {"id": 388, "owner": {"id": 798}, "assignee": {"id": 899}}, "task": {"id": 372, "owner": {"id": 993}, "assignee": {"id": 1049}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 303, "assignee": {"id": 517}, "organization": {"id": 658}, "project": {"id": 354, "owner": {"id": 734}, "assignee": {"id": 863}}, "task": {"id": 309, "owner": {"id": 997}, "assignee": {"id": 1098}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 386, "assignee": {"id": 583}, "organization": {"id": 116}, "project": {"id": 321, "owner": {"id": 710}, "assignee": {"id": 812}}, "task": {"id": 309, "owner": {"id": 980}, "assignee": {"id": 1074}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 382, "assignee": {"id": 553}, "organization": {"id": 697}, "project": {"id": 386, "owner": {"id": 717}, "assignee": {"id": 830}}, "task": {"id": 362, "owner": {"id": 957}, "assignee": {"id": 1024}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "assignee": {"id": 531}, "organization": {"id": 131}, "project": {"id": 378, "owner": {"id": 768}, "assignee": {"id": 831}}, "task": {"id": 312, "owner": {"id": 933}, "assignee": {"id": 1047}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "assignee": {"id": 598}, "organization": {"id": 601}, "project": {"id": 326, "owner": {"id": 739}, "assignee": {"id": 849}}, "task": {"id": 327, "owner": {"id": 925}, "assignee": {"id": 1094}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "assignee": {"id": 581}, "organization": {"id": 197}, "project": {"id": 346, "owner": {"id": 753}, "assignee": {"id": 840}}, "task": {"id": 351, "owner": {"id": 970}, "assignee": {"id": 1050}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "assignee": {"id": 595}, "organization": {"id": 684}, "project": {"id": 342, "owner": {"id": 770}, "assignee": {"id": 805}}, "task": {"id": 304, "owner": {"id": 906}, "assignee": {"id": 1091}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 384, "assignee": {"id": 544}, "organization": {"id": 106}, "project": {"id": 396, "owner": {"id": 727}, "assignee": {"id": 869}}, "task": {"id": 314, "owner": {"id": 941}, "assignee": {"id": 1060}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 340, "assignee": {"id": 534}, "organization": {"id": 628}, "project": {"id": 387, "owner": {"id": 769}, "assignee": {"id": 888}}, "task": {"id": 395, "owner": {"id": 942}, "assignee": {"id": 1058}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"id": 381, "assignee": {"id": 506}, "organization": {"id": 136}, "project": {"id": 358, "owner": {"id": 779}, "assignee": {"id": 891}}, "task": {"id": 335, "owner": {"id": 979}, "assignee": {"id": 1092}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 366, "assignee": {"id": 514}, "organization": {"id": 644}, "project": {"id": 385, "owner": {"id": 796}, "assignee": {"id": 881}}, "task": {"id": 314, "owner": {"id": 937}, "assignee": {"id": 1034}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 376, "assignee": {"id": 584}, "organization": {"id": 152}, "project": {"id": 343, "owner": {"id": 732}, "assignee": {"id": 814}}, "task": {"id": 358, "owner": {"id": 911}, "assignee": {"id": 1004}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 353, "assignee": {"id": 518}, "organization": {"id": 650}, "project": {"id": 350, "owner": {"id": 754}, "assignee": {"id": 868}}, "task": {"id": 370, "owner": {"id": 946}, "assignee": {"id": 1037}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 330, "assignee": {"id": 599}, "organization": {"id": 146}, "project": {"id": 387, "owner": {"id": 751}, "assignee": {"id": 828}}, "task": {"id": 363, "owner": {"id": 963}, "assignee": {"id": 1054}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "assignee": {"id": 545}, "organization": {"id": 679}, "project": {"id": 376, "owner": {"id": 705}, "assignee": {"id": 821}}, "task": {"id": 384, "owner": {"id": 929}, "assignee": {"id": 1035}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "assignee": {"id": 571}, "organization": {"id": 139}, "project": {"id": 354, "owner": {"id": 723}, "assignee": {"id": 823}}, "task": {"id": 348, "owner": {"id": 954}, "assignee": {"id": 1034}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "assignee": {"id": 513}, "organization": {"id": 667}, "project": {"id": 382, "owner": {"id": 750}, "assignee": {"id": 812}}, "task": {"id": 339, "owner": {"id": 949}, "assignee": {"id": 1020}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 351, "assignee": {"id": 527}, "organization": {"id": 125}, "project": {"id": 342, "owner": {"id": 768}, "assignee": {"id": 807}}, "task": {"id": 384, "owner": {"id": 947}, "assignee": {"id": 1096}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 384, "assignee": {"id": 546}, "organization": {"id": 610}, "project": {"id": 380, "owner": {"id": 725}, "assignee": {"id": 809}}, "task": {"id": 386, "owner": {"id": 925}, "assignee": {"id": 1044}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 356, "assignee": {"id": 500}, "organization": {"id": 158}, "project": {"id": 362, "owner": {"id": 764}, "assignee": {"id": 837}}, "task": {"id": 360, "owner": {"id": 924}, "assignee": {"id": 1038}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 324, "assignee": {"id": 557}, "organization": {"id": 621}, "project": {"id": 395, "owner": {"id": 722}, "assignee": {"id": 829}}, "task": {"id": 398, "owner": {"id": 979}, "assignee": {"id": 1095}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": null}, "resource": {"id": 309, "assignee": {"id": 574}, "organization": {"id": 684}, "project": {"id": 316, "owner": {"id": 55}, "assignee": {"id": 813}}, "task": {"id": 347, "owner": {"id": 916}, "assignee": {"id": 1065}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": null}, "resource": {"id": 383, "assignee": {"id": 545}, "organization": {"id": 641}, "project": {"id": 368, "owner": {"id": 49}, "assignee": {"id": 824}}, "task": {"id": 369, "owner": {"id": 962}, "assignee": {"id": 1027}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": null}, "resource": {"id": 333, "assignee": {"id": 526}, "organization": {"id": 618}, "project": {"id": 383, "owner": {"id": 33}, "assignee": {"id": 805}}, "task": {"id": 342, "owner": {"id": 974}, "assignee": {"id": 1006}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": null}, "resource": {"id": 305, "assignee": {"id": 505}, "organization": {"id": 652}, "project": {"id": 316, "owner": {"id": 23}, "assignee": {"id": 896}}, "task": {"id": 382, "owner": {"id": 973}, "assignee": {"id": 1084}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": null}, "resource": {"id": 322, "assignee": {"id": 509}, "organization": {"id": 638}, "project": {"id": 336, "owner": {"id": 86}, "assignee": {"id": 865}}, "task": {"id": 327, "owner": {"id": 942}, "assignee": {"id": 1036}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": null}, "resource": {"id": 312, "assignee": {"id": 553}, "organization": {"id": 676}, "project": {"id": 365, "owner": {"id": 728}, "assignee": {"id": 45}}, "task": {"id": 324, "owner": {"id": 919}, "assignee": {"id": 1071}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": null}, "resource": {"id": 390, "assignee": {"id": 570}, "organization": {"id": 612}, "project": {"id": 345, "owner": {"id": 737}, "assignee": {"id": 71}}, "task": {"id": 343, "owner": {"id": 917}, "assignee": {"id": 1058}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": null}, "resource": {"id": 326, "assignee": {"id": 542}, "organization": {"id": 626}, "project": {"id": 325, "owner": {"id": 721}, "assignee": {"id": 99}}, "task": {"id": 304, "owner": {"id": 916}, "assignee": {"id": 1064}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": null}, "resource": {"id": 372, "assignee": {"id": 535}, "organization": {"id": 698}, "project": {"id": 342, "owner": {"id": 721}, "assignee": {"id": 90}}, "task": {"id": 312, "owner": {"id": 921}, "assignee": {"id": 1044}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": null}, "resource": {"id": 368, "assignee": {"id": 510}, "organization": {"id": 658}, "project": {"id": 336, "owner": {"id": 790}, "assignee": {"id": 86}}, "task": {"id": 335, "owner": {"id": 917}, "assignee": {"id": 1047}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": null}, "resource": {"id": 359, "assignee": {"id": 597}, "organization": {"id": 661}, "project": {"id": 344, "owner": {"id": 770}, "assignee": {"id": 858}}, "task": {"id": 323, "owner": {"id": 25}, "assignee": {"id": 1047}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": null}, "resource": {"id": 395, "assignee": {"id": 538}, "organization": {"id": 641}, "project": {"id": 321, "owner": {"id": 723}, "assignee": {"id": 865}}, "task": {"id": 396, "owner": {"id": 27}, "assignee": {"id": 1017}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": null}, "resource": {"id": 377, "assignee": {"id": 580}, "organization": {"id": 650}, "project": {"id": 325, "owner": {"id": 752}, "assignee": {"id": 838}}, "task": {"id": 321, "owner": {"id": 93}, "assignee": {"id": 1019}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": null}, "resource": {"id": 319, "assignee": {"id": 550}, "organization": {"id": 603}, "project": {"id": 353, "owner": {"id": 765}, "assignee": {"id": 823}}, "task": {"id": 320, "owner": {"id": 72}, "assignee": {"id": 1058}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": null}, "resource": {"id": 370, "assignee": {"id": 519}, "organization": {"id": 628}, "project": {"id": 328, "owner": {"id": 773}, "assignee": {"id": 869}}, "task": {"id": 379, "owner": {"id": 8}, "assignee": {"id": 1045}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": null}, "resource": {"id": 397, "assignee": {"id": 500}, "organization": {"id": 666}, "project": {"id": 334, "owner": {"id": 730}, "assignee": {"id": 882}}, "task": {"id": 327, "owner": {"id": 974}, "assignee": {"id": 37}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": null}, "resource": {"id": 360, "assignee": {"id": 552}, "organization": {"id": 620}, "project": {"id": 322, "owner": {"id": 753}, "assignee": {"id": 893}}, "task": {"id": 342, "owner": {"id": 976}, "assignee": {"id": 15}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": null}, "resource": {"id": 354, "assignee": {"id": 529}, "organization": {"id": 610}, "project": {"id": 351, "owner": {"id": 763}, "assignee": {"id": 848}}, "task": {"id": 350, "owner": {"id": 906}, "assignee": {"id": 57}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": null}, "resource": {"id": 396, "assignee": {"id": 502}, "organization": {"id": 697}, "project": {"id": 302, "owner": {"id": 711}, "assignee": {"id": 875}}, "task": {"id": 357, "owner": {"id": 953}, "assignee": {"id": 92}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": null}, "resource": {"id": 352, "assignee": {"id": 525}, "organization": {"id": 683}, "project": {"id": 351, "owner": {"id": 719}, "assignee": {"id": 803}}, "task": {"id": 390, "owner": {"id": 974}, "assignee": {"id": 52}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": null}, "resource": {"id": 388, "assignee": {"id": 72}, "organization": {"id": 680}, "project": {"id": 367, "owner": {"id": 798}, "assignee": {"id": 872}}, "task": {"id": 324, "owner": {"id": 997}, "assignee": {"id": 1047}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": null}, "resource": {"id": 394, "assignee": {"id": 55}, "organization": {"id": 672}, "project": {"id": 384, "owner": {"id": 702}, "assignee": {"id": 813}}, "task": {"id": 338, "owner": {"id": 905}, "assignee": {"id": 1043}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": null}, "resource": {"id": 369, "assignee": {"id": 81}, "organization": {"id": 678}, "project": {"id": 359, "owner": {"id": 769}, "assignee": {"id": 869}}, "task": {"id": 393, "owner": {"id": 911}, "assignee": {"id": 1085}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": null}, "resource": {"id": 325, "assignee": {"id": 61}, "organization": {"id": 656}, "project": {"id": 396, "owner": {"id": 723}, "assignee": {"id": 827}}, "task": {"id": 352, "owner": {"id": 984}, "assignee": {"id": 1020}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": null}, "resource": {"id": 304, "assignee": {"id": 43}, "organization": {"id": 667}, "project": {"id": 303, "owner": {"id": 744}, "assignee": {"id": 858}}, "task": {"id": 397, "owner": {"id": 975}, "assignee": {"id": 1089}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": null}, "resource": {"id": 323, "assignee": {"id": 535}, "organization": {"id": 614}, "project": {"id": 397, "owner": {"id": 737}, "assignee": {"id": 864}}, "task": {"id": 336, "owner": {"id": 919}, "assignee": {"id": 1053}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": null}, "resource": {"id": 309, "assignee": {"id": 502}, "organization": {"id": 624}, "project": {"id": 308, "owner": {"id": 767}, "assignee": {"id": 868}}, "task": {"id": 356, "owner": {"id": 999}, "assignee": {"id": 1022}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": null}, "resource": {"id": 394, "assignee": {"id": 544}, "organization": {"id": 672}, "project": {"id": 330, "owner": {"id": 778}, "assignee": {"id": 853}}, "task": {"id": 359, "owner": {"id": 904}, "assignee": {"id": 1013}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": null}, "resource": {"id": 381, "assignee": {"id": 530}, "organization": {"id": 653}, "project": {"id": 349, "owner": {"id": 774}, "assignee": {"id": 892}}, "task": {"id": 333, "owner": {"id": 979}, "assignee": {"id": 1066}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": null}, "resource": {"id": 387, "assignee": {"id": 505}, "organization": {"id": 674}, "project": {"id": 322, "owner": {"id": 758}, "assignee": {"id": 839}}, "task": {"id": 374, "owner": {"id": 931}, "assignee": {"id": 1087}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 323, "assignee": {"id": 596}, "organization": {"id": 145}, "project": {"id": 343, "owner": {"id": 64}, "assignee": {"id": 812}}, "task": {"id": 317, "owner": {"id": 982}, "assignee": {"id": 1087}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 326, "assignee": {"id": 549}, "organization": {"id": 665}, "project": {"id": 335, "owner": {"id": 49}, "assignee": {"id": 841}}, "task": {"id": 337, "owner": {"id": 913}, "assignee": {"id": 1091}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 321, "assignee": {"id": 529}, "organization": {"id": 147}, "project": {"id": 301, "owner": {"id": 60}, "assignee": {"id": 898}}, "task": {"id": 368, "owner": {"id": 957}, "assignee": {"id": 1063}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "assignee": {"id": 506}, "organization": {"id": 696}, "project": {"id": 305, "owner": {"id": 3}, "assignee": {"id": 822}}, "task": {"id": 320, "owner": {"id": 992}, "assignee": {"id": 1055}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "assignee": {"id": 597}, "organization": {"id": 132}, "project": {"id": 365, "owner": {"id": 59}, "assignee": {"id": 836}}, "task": {"id": 330, "owner": {"id": 920}, "assignee": {"id": 1054}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "assignee": {"id": 554}, "organization": {"id": 634}, "project": {"id": 381, "owner": {"id": 17}, "assignee": {"id": 809}}, "task": {"id": 399, "owner": {"id": 907}, "assignee": {"id": 1026}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 369, "assignee": {"id": 584}, "organization": {"id": 107}, "project": {"id": 332, "owner": {"id": 30}, "assignee": {"id": 857}}, "task": {"id": 391, "owner": {"id": 955}, "assignee": {"id": 1061}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 345, "assignee": {"id": 570}, "organization": {"id": 643}, "project": {"id": 368, "owner": {"id": 35}, "assignee": {"id": 809}}, "task": {"id": 379, "owner": {"id": 954}, "assignee": {"id": 1095}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 377, "assignee": {"id": 578}, "organization": {"id": 187}, "project": {"id": 369, "owner": {"id": 17}, "assignee": {"id": 817}}, "task": {"id": 334, "owner": {"id": 926}, "assignee": {"id": 1011}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 310, "assignee": {"id": 519}, "organization": {"id": 645}, "project": {"id": 346, "owner": {"id": 94}, "assignee": {"id": 864}}, "task": {"id": 378, "owner": {"id": 966}, "assignee": {"id": 1025}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 388, "assignee": {"id": 526}, "organization": {"id": 198}, "project": {"id": 361, "owner": {"id": 99}, "assignee": {"id": 815}}, "task": {"id": 334, "owner": {"id": 914}, "assignee": {"id": 1016}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 359, "assignee": {"id": 502}, "organization": {"id": 684}, "project": {"id": 352, "owner": {"id": 90}, "assignee": {"id": 807}}, "task": {"id": 358, "owner": {"id": 963}, "assignee": {"id": 1079}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 94, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "assignee": {"id": 583}, "organization": {"id": 160}, "project": {"id": 323, "owner": {"id": 94}, "assignee": {"id": 832}}, "task": {"id": 391, "owner": {"id": 943}, "assignee": {"id": 1038}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "assignee": {"id": 577}, "organization": {"id": 656}, "project": {"id": 308, "owner": {"id": 88}, "assignee": {"id": 829}}, "task": {"id": 314, "owner": {"id": 947}, "assignee": {"id": 1096}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "assignee": {"id": 526}, "organization": {"id": 140}, "project": {"id": 386, "owner": {"id": 37}, "assignee": {"id": 816}}, "task": {"id": 338, "owner": {"id": 920}, "assignee": {"id": 1049}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "assignee": {"id": 554}, "organization": {"id": 629}, "project": {"id": 373, "owner": {"id": 65}, "assignee": {"id": 854}}, "task": {"id": 367, "owner": {"id": 936}, "assignee": {"id": 1047}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 312, "assignee": {"id": 501}, "organization": {"id": 191}, "project": {"id": 301, "owner": {"id": 64}, "assignee": {"id": 844}}, "task": {"id": 371, "owner": {"id": 986}, "assignee": {"id": 1044}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 317, "assignee": {"id": 548}, "organization": {"id": 624}, "project": {"id": 387, "owner": {"id": 23}, "assignee": {"id": 888}}, "task": {"id": 360, "owner": {"id": 944}, "assignee": {"id": 1004}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 309, "assignee": {"id": 577}, "organization": {"id": 130}, "project": {"id": 349, "owner": {"id": 22}, "assignee": {"id": 823}}, "task": {"id": 314, "owner": {"id": 995}, "assignee": {"id": 1000}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 399, "assignee": {"id": 556}, "organization": {"id": 620}, "project": {"id": 366, "owner": {"id": 53}, "assignee": {"id": 803}}, "task": {"id": 362, "owner": {"id": 931}, "assignee": {"id": 1055}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 391, "assignee": {"id": 581}, "organization": {"id": 174}, "project": {"id": 372, "owner": {"id": 40}, "assignee": {"id": 805}}, "task": {"id": 348, "owner": {"id": 983}, "assignee": {"id": 1079}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 379, "assignee": {"id": 500}, "organization": {"id": 693}, "project": {"id": 393, "owner": {"id": 84}, "assignee": {"id": 880}}, "task": {"id": 314, "owner": {"id": 972}, "assignee": {"id": 1051}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "assignee": {"id": 595}, "organization": {"id": 142}, "project": {"id": 391, "owner": {"id": 74}, "assignee": {"id": 844}}, "task": {"id": 352, "owner": {"id": 918}, "assignee": {"id": 1024}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "assignee": {"id": 509}, "organization": {"id": 609}, "project": {"id": 315, "owner": {"id": 0}, "assignee": {"id": 860}}, "task": {"id": 300, "owner": {"id": 987}, "assignee": {"id": 1005}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "assignee": {"id": 522}, "organization": {"id": 169}, "project": {"id": 307, "owner": {"id": 5}, "assignee": {"id": 830}}, "task": {"id": 316, "owner": {"id": 995}, "assignee": {"id": 1021}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "assignee": {"id": 573}, "organization": {"id": 691}, "project": {"id": 345, "owner": {"id": 67}, "assignee": {"id": 898}}, "task": {"id": 306, "owner": {"id": 967}, "assignee": {"id": 1073}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 354, "assignee": {"id": 549}, "organization": {"id": 123}, "project": {"id": 357, "owner": {"id": 68}, "assignee": {"id": 801}}, "task": {"id": 311, "owner": {"id": 936}, "assignee": {"id": 1060}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 359, "assignee": {"id": 545}, "organization": {"id": 672}, "project": {"id": 378, "owner": {"id": 24}, "assignee": {"id": 812}}, "task": {"id": 398, "owner": {"id": 915}, "assignee": {"id": 1062}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 350, "assignee": {"id": 553}, "organization": {"id": 164}, "project": {"id": 307, "owner": {"id": 93}, "assignee": {"id": 851}}, "task": {"id": 365, "owner": {"id": 967}, "assignee": {"id": 1080}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 359, "assignee": {"id": 591}, "organization": {"id": 654}, "project": {"id": 399, "owner": {"id": 54}, "assignee": {"id": 823}}, "task": {"id": 359, "owner": {"id": 925}, "assignee": {"id": 1015}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 344, "assignee": {"id": 506}, "organization": {"id": 194}, "project": {"id": 388, "owner": {"id": 16}, "assignee": {"id": 843}}, "task": {"id": 301, "owner": {"id": 950}, "assignee": {"id": 1025}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 307, "assignee": {"id": 588}, "organization": {"id": 688}, "project": {"id": 386, "owner": {"id": 54}, "assignee": {"id": 819}}, "task": {"id": 335, "owner": {"id": 911}, "assignee": {"id": 1084}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "assignee": {"id": 598}, "organization": {"id": 148}, "project": {"id": 395, "owner": {"id": 53}, "assignee": {"id": 855}}, "task": {"id": 338, "owner": {"id": 948}, "assignee": {"id": 1068}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "assignee": {"id": 598}, "organization": {"id": 681}, "project": {"id": 384, "owner": {"id": 15}, "assignee": {"id": 891}}, "task": {"id": 332, "owner": {"id": 952}, "assignee": {"id": 1078}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "assignee": {"id": 564}, "organization": {"id": 197}, "project": {"id": 301, "owner": {"id": 27}, "assignee": {"id": 800}}, "task": {"id": 301, "owner": {"id": 989}, "assignee": {"id": 1014}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "assignee": {"id": 524}, "organization": {"id": 657}, "project": {"id": 365, "owner": {"id": 97}, "assignee": {"id": 862}}, "task": {"id": 393, "owner": {"id": 912}, "assignee": {"id": 1002}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 364, "assignee": {"id": 522}, "organization": {"id": 188}, "project": {"id": 323, "owner": {"id": 69}, "assignee": {"id": 841}}, "task": {"id": 392, "owner": {"id": 984}, "assignee": {"id": 1087}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 328, "assignee": {"id": 561}, "organization": {"id": 654}, "project": {"id": 399, "owner": {"id": 26}, "assignee": {"id": 821}}, "task": {"id": 382, "owner": {"id": 993}, "assignee": {"id": 1018}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 334, "assignee": {"id": 542}, "organization": {"id": 147}, "project": {"id": 314, "owner": {"id": 51}, "assignee": {"id": 835}}, "task": {"id": 315, "owner": {"id": 960}, "assignee": {"id": 1063}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 368, "assignee": {"id": 553}, "organization": {"id": 655}, "project": {"id": 310, "owner": {"id": 2}, "assignee": {"id": 889}}, "task": {"id": 383, "owner": {"id": 906}, "assignee": {"id": 1004}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 311, "assignee": {"id": 515}, "organization": {"id": 196}, "project": {"id": 348, "owner": {"id": 77}, "assignee": {"id": 882}}, "task": {"id": 393, "owner": {"id": 934}, "assignee": {"id": 1063}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 379, "assignee": {"id": 527}, "organization": {"id": 680}, "project": {"id": 326, "owner": {"id": 36}, "assignee": {"id": 865}}, "task": {"id": 385, "owner": {"id": 973}, "assignee": {"id": 1010}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "assignee": {"id": 575}, "organization": {"id": 181}, "project": {"id": 386, "owner": {"id": 44}, "assignee": {"id": 828}}, "task": {"id": 311, "owner": {"id": 940}, "assignee": {"id": 1089}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "assignee": {"id": 567}, "organization": {"id": 606}, "project": {"id": 383, "owner": {"id": 98}, "assignee": {"id": 864}}, "task": {"id": 361, "owner": {"id": 947}, "assignee": {"id": 1063}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "assignee": {"id": 512}, "organization": {"id": 170}, "project": {"id": 327, "owner": {"id": 92}, "assignee": {"id": 865}}, "task": {"id": 397, "owner": {"id": 928}, "assignee": {"id": 1094}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 324, "assignee": {"id": 562}, "organization": {"id": 606}, "project": {"id": 385, "owner": {"id": 49}, "assignee": {"id": 868}}, "task": {"id": 335, "owner": {"id": 935}, "assignee": {"id": 1032}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 340, "assignee": {"id": 502}, "organization": {"id": 146}, "project": {"id": 385, "owner": {"id": 64}, "assignee": {"id": 880}}, "task": {"id": 369, "owner": {"id": 911}, "assignee": {"id": 1031}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 386, "assignee": {"id": 538}, "organization": {"id": 613}, "project": {"id": 370, "owner": {"id": 51}, "assignee": {"id": 822}}, "task": {"id": 378, "owner": {"id": 928}, "assignee": {"id": 1020}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 341, "assignee": {"id": 558}, "organization": {"id": 104}, "project": {"id": 308, "owner": {"id": 84}, "assignee": {"id": 857}}, "task": {"id": 331, "owner": {"id": 929}, "assignee": {"id": 1062}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 306, "assignee": {"id": 554}, "organization": {"id": 646}, "project": {"id": 324, "owner": {"id": 72}, "assignee": {"id": 805}}, "task": {"id": 344, "owner": {"id": 937}, "assignee": {"id": 1092}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 323, "assignee": {"id": 560}, "organization": {"id": 121}, "project": {"id": 329, "owner": {"id": 710}, "assignee": {"id": 49}}, "task": {"id": 304, "owner": {"id": 968}, "assignee": {"id": 1019}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 382, "assignee": {"id": 561}, "organization": {"id": 659}, "project": {"id": 340, "owner": {"id": 753}, "assignee": {"id": 90}}, "task": {"id": 393, "owner": {"id": 976}, "assignee": {"id": 1077}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "assignee": {"id": 555}, "organization": {"id": 101}, "project": {"id": 302, "owner": {"id": 738}, "assignee": {"id": 49}}, "task": {"id": 364, "owner": {"id": 955}, "assignee": {"id": 1078}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "assignee": {"id": 549}, "organization": {"id": 651}, "project": {"id": 312, "owner": {"id": 710}, "assignee": {"id": 73}}, "task": {"id": 371, "owner": {"id": 923}, "assignee": {"id": 1070}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 390, "assignee": {"id": 502}, "organization": {"id": 130}, "project": {"id": 340, "owner": {"id": 764}, "assignee": {"id": 71}}, "task": {"id": 338, "owner": {"id": 928}, "assignee": {"id": 1046}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "assignee": {"id": 563}, "organization": {"id": 641}, "project": {"id": 328, "owner": {"id": 725}, "assignee": {"id": 33}}, "task": {"id": 348, "owner": {"id": 925}, "assignee": {"id": 1014}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 364, "assignee": {"id": 580}, "organization": {"id": 184}, "project": {"id": 352, "owner": {"id": 774}, "assignee": {"id": 15}}, "task": {"id": 366, "owner": {"id": 987}, "assignee": {"id": 1051}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 340, "assignee": {"id": 582}, "organization": {"id": 650}, "project": {"id": 369, "owner": {"id": 755}, "assignee": {"id": 35}}, "task": {"id": 332, "owner": {"id": 940}, "assignee": {"id": 1084}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 335, "assignee": {"id": 585}, "organization": {"id": 173}, "project": {"id": 321, "owner": {"id": 722}, "assignee": {"id": 97}}, "task": {"id": 353, "owner": {"id": 998}, "assignee": {"id": 1072}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 319, "assignee": {"id": 543}, "organization": {"id": 699}, "project": {"id": 343, "owner": {"id": 767}, "assignee": {"id": 25}}, "task": {"id": 330, "owner": {"id": 906}, "assignee": {"id": 1001}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 307, "assignee": {"id": 584}, "organization": {"id": 131}, "project": {"id": 390, "owner": {"id": 770}, "assignee": {"id": 80}}, "task": {"id": 358, "owner": {"id": 947}, "assignee": {"id": 1051}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 395, "assignee": {"id": 537}, "organization": {"id": 678}, "project": {"id": 312, "owner": {"id": 792}, "assignee": {"id": 29}}, "task": {"id": 364, "owner": {"id": 966}, "assignee": {"id": 1044}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "assignee": {"id": 530}, "organization": {"id": 156}, "project": {"id": 377, "owner": {"id": 796}, "assignee": {"id": 57}}, "task": {"id": 356, "owner": {"id": 992}, "assignee": {"id": 1020}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "assignee": {"id": 536}, "organization": {"id": 606}, "project": {"id": 363, "owner": {"id": 774}, "assignee": {"id": 64}}, "task": {"id": 380, "owner": {"id": 924}, "assignee": {"id": 1017}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "assignee": {"id": 549}, "organization": {"id": 100}, "project": {"id": 360, "owner": {"id": 711}, "assignee": {"id": 15}}, "task": {"id": 357, "owner": {"id": 985}, "assignee": {"id": 1012}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "assignee": {"id": 505}, "organization": {"id": 622}, "project": {"id": 306, "owner": {"id": 762}, "assignee": {"id": 39}}, "task": {"id": 355, "owner": {"id": 908}, "assignee": {"id": 1063}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 81, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 396, "assignee": {"id": 533}, "organization": {"id": 167}, "project": {"id": 360, "owner": {"id": 780}, "assignee": {"id": 81}}, "task": {"id": 308, "owner": {"id": 964}, "assignee": {"id": 1034}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 302, "assignee": {"id": 507}, "organization": {"id": 603}, "project": {"id": 396, "owner": {"id": 701}, "assignee": {"id": 87}}, "task": {"id": 329, "owner": {"id": 930}, "assignee": {"id": 1007}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 392, "assignee": {"id": 515}, "organization": {"id": 193}, "project": {"id": 370, "owner": {"id": 775}, "assignee": {"id": 11}}, "task": {"id": 332, "owner": {"id": 901}, "assignee": {"id": 1010}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 398, "assignee": {"id": 582}, "organization": {"id": 673}, "project": {"id": 320, "owner": {"id": 713}, "assignee": {"id": 92}}, "task": {"id": 384, "owner": {"id": 981}, "assignee": {"id": 1071}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 319, "assignee": {"id": 559}, "organization": {"id": 190}, "project": {"id": 362, "owner": {"id": 718}, "assignee": {"id": 57}}, "task": {"id": 336, "owner": {"id": 931}, "assignee": {"id": 1082}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 71, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 336, "assignee": {"id": 541}, "organization": {"id": 648}, "project": {"id": 309, "owner": {"id": 766}, "assignee": {"id": 71}}, "task": {"id": 394, "owner": {"id": 939}, "assignee": {"id": 1054}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "assignee": {"id": 588}, "organization": {"id": 197}, "project": {"id": 369, "owner": {"id": 795}, "assignee": {"id": 79}}, "task": {"id": 326, "owner": {"id": 950}, "assignee": {"id": 1042}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "assignee": {"id": 562}, "organization": {"id": 605}, "project": {"id": 380, "owner": {"id": 775}, "assignee": {"id": 94}}, "task": {"id": 337, "owner": {"id": 965}, "assignee": {"id": 1059}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "assignee": {"id": 523}, "organization": {"id": 166}, "project": {"id": 386, "owner": {"id": 777}, "assignee": {"id": 28}}, "task": {"id": 301, "owner": {"id": 965}, "assignee": {"id": 1028}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "assignee": {"id": 548}, "organization": {"id": 644}, "project": {"id": 354, "owner": {"id": 715}, "assignee": {"id": 99}}, "task": {"id": 360, "owner": {"id": 968}, "assignee": {"id": 1081}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 369, "assignee": {"id": 509}, "organization": {"id": 149}, "project": {"id": 348, "owner": {"id": 751}, "assignee": {"id": 15}}, "task": {"id": 387, "owner": {"id": 978}, "assignee": {"id": 1074}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 373, "assignee": {"id": 572}, "organization": {"id": 620}, "project": {"id": 393, "owner": {"id": 791}, "assignee": {"id": 86}}, "task": {"id": 357, "owner": {"id": 986}, "assignee": {"id": 1003}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 354, "assignee": {"id": 589}, "organization": {"id": 176}, "project": {"id": 345, "owner": {"id": 758}, "assignee": {"id": 47}}, "task": {"id": 368, "owner": {"id": 993}, "assignee": {"id": 1054}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 356, "assignee": {"id": 584}, "organization": {"id": 640}, "project": {"id": 376, "owner": {"id": 759}, "assignee": {"id": 88}}, "task": {"id": 355, "owner": {"id": 961}, "assignee": {"id": 1027}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 364, "assignee": {"id": 502}, "organization": {"id": 124}, "project": {"id": 359, "owner": {"id": 740}, "assignee": {"id": 17}}, "task": {"id": 393, "owner": {"id": 952}, "assignee": {"id": 1067}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 393, "assignee": {"id": 531}, "organization": {"id": 699}, "project": {"id": 360, "owner": {"id": 730}, "assignee": {"id": 59}}, "task": {"id": 372, "owner": {"id": 930}, "assignee": {"id": 1035}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "assignee": {"id": 511}, "organization": {"id": 143}, "project": {"id": 392, "owner": {"id": 722}, "assignee": {"id": 51}}, "task": {"id": 363, "owner": {"id": 971}, "assignee": {"id": 1064}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "assignee": {"id": 557}, "organization": {"id": 631}, "project": {"id": 382, "owner": {"id": 769}, "assignee": {"id": 95}}, "task": {"id": 333, "owner": {"id": 951}, "assignee": {"id": 1000}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "assignee": {"id": 519}, "organization": {"id": 181}, "project": {"id": 358, "owner": {"id": 726}, "assignee": {"id": 0}}, "task": {"id": 308, "owner": {"id": 931}, "assignee": {"id": 1027}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "assignee": {"id": 556}, "organization": {"id": 687}, "project": {"id": 371, "owner": {"id": 774}, "assignee": {"id": 1}}, "task": {"id": 380, "owner": {"id": 965}, "assignee": {"id": 1067}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 399, "assignee": {"id": 586}, "organization": {"id": 150}, "project": {"id": 375, "owner": {"id": 784}, "assignee": {"id": 63}}, "task": {"id": 342, "owner": {"id": 999}, "assignee": {"id": 1096}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 396, "assignee": {"id": 527}, "organization": {"id": 607}, "project": {"id": 365, "owner": {"id": 766}, "assignee": {"id": 4}}, "task": {"id": 327, "owner": {"id": 963}, "assignee": {"id": 1087}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 393, "assignee": {"id": 574}, "organization": {"id": 116}, "project": {"id": 308, "owner": {"id": 788}, "assignee": {"id": 53}}, "task": {"id": 376, "owner": {"id": 992}, "assignee": {"id": 1001}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"id": 387, "assignee": {"id": 584}, "organization": {"id": 683}, "project": {"id": 310, "owner": {"id": 744}, "assignee": {"id": 39}}, "task": {"id": 336, "owner": {"id": 928}, "assignee": {"id": 1098}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 310, "assignee": {"id": 572}, "organization": {"id": 195}, "project": {"id": 339, "owner": {"id": 758}, "assignee": {"id": 69}}, "task": {"id": 381, "owner": {"id": 969}, "assignee": {"id": 1036}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 362, "assignee": {"id": 515}, "organization": {"id": 614}, "project": {"id": 390, "owner": {"id": 756}, "assignee": {"id": 78}}, "task": {"id": 398, "owner": {"id": 920}, "assignee": {"id": 1037}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "assignee": {"id": 574}, "organization": {"id": 178}, "project": {"id": 330, "owner": {"id": 732}, "assignee": {"id": 6}}, "task": {"id": 354, "owner": {"id": 947}, "assignee": {"id": 1092}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "assignee": {"id": 553}, "organization": {"id": 618}, "project": {"id": 380, "owner": {"id": 789}, "assignee": {"id": 58}}, "task": {"id": 388, "owner": {"id": 998}, "assignee": {"id": 1050}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "assignee": {"id": 564}, "organization": {"id": 191}, "project": {"id": 348, "owner": {"id": 720}, "assignee": {"id": 10}}, "task": {"id": 385, "owner": {"id": 963}, "assignee": {"id": 1007}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "assignee": {"id": 512}, "organization": {"id": 647}, "project": {"id": 350, "owner": {"id": 754}, "assignee": {"id": 79}}, "task": {"id": 307, "owner": {"id": 908}, "assignee": {"id": 1086}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 359, "assignee": {"id": 515}, "organization": {"id": 176}, "project": {"id": 314, "owner": {"id": 700}, "assignee": {"id": 73}}, "task": {"id": 342, "owner": {"id": 991}, "assignee": {"id": 1078}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 19, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 391, "assignee": {"id": 505}, "organization": {"id": 660}, "project": {"id": 310, "owner": {"id": 766}, "assignee": {"id": 19}}, "task": {"id": 370, "owner": {"id": 985}, "assignee": {"id": 1002}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 331, "assignee": {"id": 513}, "organization": {"id": 139}, "project": {"id": 374, "owner": {"id": 782}, "assignee": {"id": 24}}, "task": {"id": 304, "owner": {"id": 940}, "assignee": {"id": 1004}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 313, "assignee": {"id": 581}, "organization": {"id": 611}, "project": {"id": 360, "owner": {"id": 730}, "assignee": {"id": 32}}, "task": {"id": 311, "owner": {"id": 961}, "assignee": {"id": 1090}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 352, "assignee": {"id": 544}, "organization": {"id": 146}, "project": {"id": 338, "owner": {"id": 741}, "assignee": {"id": 810}}, "task": {"id": 323, "owner": {"id": 43}, "assignee": {"id": 1026}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 309, "assignee": {"id": 553}, "organization": {"id": 696}, "project": {"id": 338, "owner": {"id": 795}, "assignee": {"id": 879}}, "task": {"id": 311, "owner": {"id": 52}, "assignee": {"id": 1083}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "assignee": {"id": 588}, "organization": {"id": 165}, "project": {"id": 348, "owner": {"id": 725}, "assignee": {"id": 829}}, "task": {"id": 365, "owner": {"id": 39}, "assignee": {"id": 1091}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "assignee": {"id": 502}, "organization": {"id": 606}, "project": {"id": 357, "owner": {"id": 737}, "assignee": {"id": 833}}, "task": {"id": 326, "owner": {"id": 40}, "assignee": {"id": 1022}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "assignee": {"id": 572}, "organization": {"id": 150}, "project": {"id": 352, "owner": {"id": 746}, "assignee": {"id": 829}}, "task": {"id": 350, "owner": {"id": 2}, "assignee": {"id": 1059}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "assignee": {"id": 578}, "organization": {"id": 654}, "project": {"id": 380, "owner": {"id": 799}, "assignee": {"id": 886}}, "task": {"id": 361, "owner": {"id": 80}, "assignee": {"id": 1064}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 333, "assignee": {"id": 508}, "organization": {"id": 198}, "project": {"id": 343, "owner": {"id": 719}, "assignee": {"id": 835}}, "task": {"id": 335, "owner": {"id": 35}, "assignee": {"id": 1055}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 308, "assignee": {"id": 587}, "organization": {"id": 640}, "project": {"id": 327, "owner": {"id": 744}, "assignee": {"id": 803}}, "task": {"id": 373, "owner": {"id": 33}, "assignee": {"id": 1085}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 394, "assignee": {"id": 596}, "organization": {"id": 176}, "project": {"id": 366, "owner": {"id": 735}, "assignee": {"id": 805}}, "task": {"id": 348, "owner": {"id": 19}, "assignee": {"id": 1076}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 332, "assignee": {"id": 581}, "organization": {"id": 693}, "project": {"id": 351, "owner": {"id": 746}, "assignee": {"id": 812}}, "task": {"id": 399, "owner": {"id": 58}, "assignee": {"id": 1018}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 304, "assignee": {"id": 538}, "organization": {"id": 135}, "project": {"id": 383, "owner": {"id": 774}, "assignee": {"id": 813}}, "task": {"id": 322, "owner": {"id": 99}, "assignee": {"id": 1098}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 330, "assignee": {"id": 566}, "organization": {"id": 633}, "project": {"id": 396, "owner": {"id": 760}, "assignee": {"id": 891}}, "task": {"id": 303, "owner": {"id": 71}, "assignee": {"id": 1078}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 320, "assignee": {"id": 582}, "organization": {"id": 172}, "project": {"id": 346, "owner": {"id": 706}, "assignee": {"id": 877}}, "task": {"id": 312, "owner": {"id": 30}, "assignee": {"id": 1027}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "assignee": {"id": 519}, "organization": {"id": 684}, "project": {"id": 331, "owner": {"id": 750}, "assignee": {"id": 816}}, "task": {"id": 340, "owner": {"id": 17}, "assignee": {"id": 1028}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "assignee": {"id": 562}, "organization": {"id": 173}, "project": {"id": 315, "owner": {"id": 714}, "assignee": {"id": 888}}, "task": {"id": 377, "owner": {"id": 37}, "assignee": {"id": 1090}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "assignee": {"id": 517}, "organization": {"id": 665}, "project": {"id": 398, "owner": {"id": 795}, "assignee": {"id": 898}}, "task": {"id": 327, "owner": {"id": 54}, "assignee": {"id": 1003}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 397, "assignee": {"id": 568}, "organization": {"id": 114}, "project": {"id": 365, "owner": {"id": 727}, "assignee": {"id": 883}}, "task": {"id": 379, "owner": {"id": 46}, "assignee": {"id": 1034}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 363, "assignee": {"id": 573}, "organization": {"id": 611}, "project": {"id": 363, "owner": {"id": 757}, "assignee": {"id": 851}}, "task": {"id": 315, "owner": {"id": 73}, "assignee": {"id": 1091}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 362, "assignee": {"id": 579}, "organization": {"id": 190}, "project": {"id": 312, "owner": {"id": 760}, "assignee": {"id": 818}}, "task": {"id": 378, "owner": {"id": 29}, "assignee": {"id": 1030}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 31, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 372, "assignee": {"id": 515}, "organization": {"id": 631}, "project": {"id": 393, "owner": {"id": 726}, "assignee": {"id": 846}}, "task": {"id": 326, "owner": {"id": 31}, "assignee": {"id": 1047}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 321, "assignee": {"id": 591}, "organization": {"id": 189}, "project": {"id": 369, "owner": {"id": 758}, "assignee": {"id": 892}}, "task": {"id": 317, "owner": {"id": 45}, "assignee": {"id": 1039}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 302, "assignee": {"id": 598}, "organization": {"id": 634}, "project": {"id": 391, "owner": {"id": 788}, "assignee": {"id": 803}}, "task": {"id": 373, "owner": {"id": 34}, "assignee": {"id": 1013}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "assignee": {"id": 511}, "organization": {"id": 122}, "project": {"id": 354, "owner": {"id": 770}, "assignee": {"id": 821}}, "task": {"id": 368, "owner": {"id": 68}, "assignee": {"id": 1078}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "assignee": {"id": 583}, "organization": {"id": 616}, "project": {"id": 337, "owner": {"id": 736}, "assignee": {"id": 849}}, "task": {"id": 370, "owner": {"id": 51}, "assignee": {"id": 1012}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "assignee": {"id": 576}, "organization": {"id": 189}, "project": {"id": 300, "owner": {"id": 727}, "assignee": {"id": 866}}, "task": {"id": 355, "owner": {"id": 82}, "assignee": {"id": 1036}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "assignee": {"id": 582}, "organization": {"id": 656}, "project": {"id": 329, "owner": {"id": 718}, "assignee": {"id": 891}}, "task": {"id": 320, "owner": {"id": 17}, "assignee": {"id": 1017}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 355, "assignee": {"id": 525}, "organization": {"id": 120}, "project": {"id": 371, "owner": {"id": 792}, "assignee": {"id": 827}}, "task": {"id": 350, "owner": {"id": 10}, "assignee": {"id": 1095}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 332, "assignee": {"id": 513}, "organization": {"id": 637}, "project": {"id": 343, "owner": {"id": 717}, "assignee": {"id": 866}}, "task": {"id": 399, "owner": {"id": 35}, "assignee": {"id": 1069}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"id": 378, "assignee": {"id": 500}, "organization": {"id": 139}, "project": {"id": 333, "owner": {"id": 759}, "assignee": {"id": 836}}, "task": {"id": 389, "owner": {"id": 54}, "assignee": {"id": 1056}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 334, "assignee": {"id": 534}, "organization": {"id": 609}, "project": {"id": 300, "owner": {"id": 744}, "assignee": {"id": 858}}, "task": {"id": 375, "owner": {"id": 93}, "assignee": {"id": 1085}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 388, "assignee": {"id": 541}, "organization": {"id": 116}, "project": {"id": 396, "owner": {"id": 744}, "assignee": {"id": 827}}, "task": {"id": 322, "owner": {"id": 80}, "assignee": {"id": 1031}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 338, "assignee": {"id": 534}, "organization": {"id": 684}, "project": {"id": 368, "owner": {"id": 796}, "assignee": {"id": 829}}, "task": {"id": 335, "owner": {"id": 15}, "assignee": {"id": 1047}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "assignee": {"id": 540}, "organization": {"id": 140}, "project": {"id": 396, "owner": {"id": 770}, "assignee": {"id": 883}}, "task": {"id": 389, "owner": {"id": 61}, "assignee": {"id": 1057}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "assignee": {"id": 517}, "organization": {"id": 691}, "project": {"id": 369, "owner": {"id": 715}, "assignee": {"id": 895}}, "task": {"id": 341, "owner": {"id": 3}, "assignee": {"id": 1057}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "assignee": {"id": 544}, "organization": {"id": 138}, "project": {"id": 300, "owner": {"id": 713}, "assignee": {"id": 890}}, "task": {"id": 354, "owner": {"id": 3}, "assignee": {"id": 1023}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "assignee": {"id": 557}, "organization": {"id": 656}, "project": {"id": 315, "owner": {"id": 733}, "assignee": {"id": 878}}, "task": {"id": 336, "owner": {"id": 21}, "assignee": {"id": 1060}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 332, "assignee": {"id": 574}, "organization": {"id": 186}, "project": {"id": 354, "owner": {"id": 714}, "assignee": {"id": 844}}, "task": {"id": 322, "owner": {"id": 87}, "assignee": {"id": 1096}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 300, "assignee": {"id": 541}, "organization": {"id": 696}, "project": {"id": 354, "owner": {"id": 770}, "assignee": {"id": 817}}, "task": {"id": 393, "owner": {"id": 6}, "assignee": {"id": 1071}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 302, "assignee": {"id": 592}, "organization": {"id": 121}, "project": {"id": 382, "owner": {"id": 764}, "assignee": {"id": 800}}, "task": {"id": 376, "owner": {"id": 23}, "assignee": {"id": 1065}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 374, "assignee": {"id": 516}, "organization": {"id": 645}, "project": {"id": 322, "owner": {"id": 780}, "assignee": {"id": 814}}, "task": {"id": 300, "owner": {"id": 75}, "assignee": {"id": 1090}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 318, "assignee": {"id": 525}, "organization": {"id": 106}, "project": {"id": 344, "owner": {"id": 786}, "assignee": {"id": 833}}, "task": {"id": 362, "owner": {"id": 27}, "assignee": {"id": 1010}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 320, "assignee": {"id": 562}, "organization": {"id": 699}, "project": {"id": 374, "owner": {"id": 716}, "assignee": {"id": 875}}, "task": {"id": 374, "owner": {"id": 40}, "assignee": {"id": 1021}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 301, "assignee": {"id": 586}, "organization": {"id": 173}, "project": {"id": 321, "owner": {"id": 761}, "assignee": {"id": 876}}, "task": {"id": 371, "owner": {"id": 59}, "assignee": {"id": 1046}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "assignee": {"id": 567}, "organization": {"id": 631}, "project": {"id": 342, "owner": {"id": 778}, "assignee": {"id": 888}}, "task": {"id": 394, "owner": {"id": 27}, "assignee": {"id": 1032}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "assignee": {"id": 529}, "organization": {"id": 160}, "project": {"id": 321, "owner": {"id": 738}, "assignee": {"id": 806}}, "task": {"id": 370, "owner": {"id": 59}, "assignee": {"id": 1083}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "assignee": {"id": 501}, "organization": {"id": 629}, "project": {"id": 361, "owner": {"id": 798}, "assignee": {"id": 868}}, "task": {"id": 313, "owner": {"id": 44}, "assignee": {"id": 1013}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 369, "assignee": {"id": 541}, "organization": {"id": 147}, "project": {"id": 337, "owner": {"id": 748}, "assignee": {"id": 801}}, "task": {"id": 364, "owner": {"id": 74}, "assignee": {"id": 1071}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"id": 320, "assignee": {"id": 586}, "organization": {"id": 606}, "project": {"id": 369, "owner": {"id": 741}, "assignee": {"id": 814}}, "task": {"id": 345, "owner": {"id": 23}, "assignee": {"id": 1099}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 365, "assignee": {"id": 553}, "organization": {"id": 188}, "project": {"id": 305, "owner": {"id": 702}, "assignee": {"id": 873}}, "task": {"id": 374, "owner": {"id": 58}, "assignee": {"id": 1091}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 373, "assignee": {"id": 535}, "organization": {"id": 614}, "project": {"id": 313, "owner": {"id": 799}, "assignee": {"id": 856}}, "task": {"id": 314, "owner": {"id": 7}, "assignee": {"id": 1074}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 337, "assignee": {"id": 564}, "organization": {"id": 186}, "project": {"id": 362, "owner": {"id": 731}, "assignee": {"id": 860}}, "task": {"id": 316, "owner": {"id": 989}, "assignee": {"id": 78}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 399, "assignee": {"id": 502}, "organization": {"id": 696}, "project": {"id": 313, "owner": {"id": 718}, "assignee": {"id": 840}}, "task": {"id": 377, "owner": {"id": 973}, "assignee": {"id": 64}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "assignee": {"id": 526}, "organization": {"id": 156}, "project": {"id": 397, "owner": {"id": 729}, "assignee": {"id": 889}}, "task": {"id": 317, "owner": {"id": 972}, "assignee": {"id": 88}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "assignee": {"id": 554}, "organization": {"id": 680}, "project": {"id": 362, "owner": {"id": 709}, "assignee": {"id": 842}}, "task": {"id": 339, "owner": {"id": 984}, "assignee": {"id": 93}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "assignee": {"id": 543}, "organization": {"id": 138}, "project": {"id": 379, "owner": {"id": 776}, "assignee": {"id": 897}}, "task": {"id": 341, "owner": {"id": 962}, "assignee": {"id": 74}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "assignee": {"id": 583}, "organization": {"id": 663}, "project": {"id": 306, "owner": {"id": 705}, "assignee": {"id": 859}}, "task": {"id": 311, "owner": {"id": 976}, "assignee": {"id": 94}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 395, "assignee": {"id": 506}, "organization": {"id": 119}, "project": {"id": 346, "owner": {"id": 724}, "assignee": {"id": 828}}, "task": {"id": 351, "owner": {"id": 928}, "assignee": {"id": 79}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 380, "assignee": {"id": 560}, "organization": {"id": 622}, "project": {"id": 325, "owner": {"id": 734}, "assignee": {"id": 801}}, "task": {"id": 343, "owner": {"id": 996}, "assignee": {"id": 11}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 368, "assignee": {"id": 592}, "organization": {"id": 134}, "project": {"id": 382, "owner": {"id": 755}, "assignee": {"id": 853}}, "task": {"id": 331, "owner": {"id": 914}, "assignee": {"id": 83}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"id": 328, "assignee": {"id": 569}, "organization": {"id": 659}, "project": {"id": 307, "owner": {"id": 748}, "assignee": {"id": 814}}, "task": {"id": 308, "owner": {"id": 943}, "assignee": {"id": 18}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 389, "assignee": {"id": 566}, "organization": {"id": 114}, "project": {"id": 364, "owner": {"id": 779}, "assignee": {"id": 843}}, "task": {"id": 378, "owner": {"id": 932}, "assignee": {"id": 90}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 318, "assignee": {"id": 592}, "organization": {"id": 690}, "project": {"id": 349, "owner": {"id": 741}, "assignee": {"id": 885}}, "task": {"id": 374, "owner": {"id": 942}, "assignee": {"id": 60}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "assignee": {"id": 583}, "organization": {"id": 127}, "project": {"id": 354, "owner": {"id": 739}, "assignee": {"id": 870}}, "task": {"id": 315, "owner": {"id": 935}, "assignee": {"id": 11}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "assignee": {"id": 502}, "organization": {"id": 697}, "project": {"id": 395, "owner": {"id": 700}, "assignee": {"id": 889}}, "task": {"id": 311, "owner": {"id": 972}, "assignee": {"id": 7}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "assignee": {"id": 552}, "organization": {"id": 149}, "project": {"id": 371, "owner": {"id": 721}, "assignee": {"id": 823}}, "task": {"id": 335, "owner": {"id": 934}, "assignee": {"id": 20}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "assignee": {"id": 533}, "organization": {"id": 672}, "project": {"id": 393, "owner": {"id": 740}, "assignee": {"id": 810}}, "task": {"id": 385, "owner": {"id": 965}, "assignee": {"id": 80}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 315, "assignee": {"id": 582}, "organization": {"id": 157}, "project": {"id": 362, "owner": {"id": 764}, "assignee": {"id": 883}}, "task": {"id": 384, "owner": {"id": 942}, "assignee": {"id": 8}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 314, "assignee": {"id": 544}, "organization": {"id": 636}, "project": {"id": 330, "owner": {"id": 751}, "assignee": {"id": 874}}, "task": {"id": 371, "owner": {"id": 905}, "assignee": {"id": 27}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"id": 377, "assignee": {"id": 591}, "organization": {"id": 106}, "project": {"id": 368, "owner": {"id": 776}, "assignee": {"id": 826}}, "task": {"id": 303, "owner": {"id": 936}, "assignee": {"id": 34}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 305, "assignee": {"id": 577}, "organization": {"id": 608}, "project": {"id": 304, "owner": {"id": 700}, "assignee": {"id": 853}}, "task": {"id": 375, "owner": {"id": 941}, "assignee": {"id": 78}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 377, "assignee": {"id": 568}, "organization": {"id": 197}, "project": {"id": 327, "owner": {"id": 724}, "assignee": {"id": 824}}, "task": {"id": 310, "owner": {"id": 950}, "assignee": {"id": 75}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 349, "assignee": {"id": 549}, "organization": {"id": 636}, "project": {"id": 302, "owner": {"id": 797}, "assignee": {"id": 889}}, "task": {"id": 330, "owner": {"id": 990}, "assignee": {"id": 57}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "assignee": {"id": 572}, "organization": {"id": 114}, "project": {"id": 372, "owner": {"id": 703}, "assignee": {"id": 883}}, "task": {"id": 355, "owner": {"id": 935}, "assignee": {"id": 66}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "assignee": {"id": 557}, "organization": {"id": 614}, "project": {"id": 307, "owner": {"id": 773}, "assignee": {"id": 813}}, "task": {"id": 356, "owner": {"id": 979}, "assignee": {"id": 47}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "assignee": {"id": 577}, "organization": {"id": 137}, "project": {"id": 303, "owner": {"id": 769}, "assignee": {"id": 848}}, "task": {"id": 342, "owner": {"id": 927}, "assignee": {"id": 63}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "assignee": {"id": 545}, "organization": {"id": 688}, "project": {"id": 345, "owner": {"id": 791}, "assignee": {"id": 868}}, "task": {"id": 325, "owner": {"id": 976}, "assignee": {"id": 10}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 393, "assignee": {"id": 555}, "organization": {"id": 159}, "project": {"id": 393, "owner": {"id": 791}, "assignee": {"id": 842}}, "task": {"id": 332, "owner": {"id": 972}, "assignee": {"id": 32}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 313, "assignee": {"id": 518}, "organization": {"id": 698}, "project": {"id": 352, "owner": {"id": 766}, "assignee": {"id": 870}}, "task": {"id": 365, "owner": {"id": 993}, "assignee": {"id": 0}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 380, "assignee": {"id": 594}, "organization": {"id": 110}, "project": {"id": 348, "owner": {"id": 790}, "assignee": {"id": 880}}, "task": {"id": 385, "owner": {"id": 930}, "assignee": {"id": 7}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 359, "assignee": {"id": 505}, "organization": {"id": 680}, "project": {"id": 327, "owner": {"id": 702}, "assignee": {"id": 862}}, "task": {"id": 380, "owner": {"id": 999}, "assignee": {"id": 15}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 354, "assignee": {"id": 516}, "organization": {"id": 110}, "project": {"id": 391, "owner": {"id": 722}, "assignee": {"id": 841}}, "task": {"id": 342, "owner": {"id": 967}, "assignee": {"id": 14}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 394, "assignee": {"id": 591}, "organization": {"id": 679}, "project": {"id": 383, "owner": {"id": 714}, "assignee": {"id": 821}}, "task": {"id": 394, "owner": {"id": 956}, "assignee": {"id": 53}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "assignee": {"id": 569}, "organization": {"id": 159}, "project": {"id": 357, "owner": {"id": 764}, "assignee": {"id": 834}}, "task": {"id": 339, "owner": {"id": 916}, "assignee": {"id": 49}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 389, "assignee": {"id": 502}, "organization": {"id": 607}, "project": {"id": 332, "owner": {"id": 784}, "assignee": {"id": 817}}, "task": {"id": 344, "owner": {"id": 977}, "assignee": {"id": 52}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "assignee": {"id": 523}, "organization": {"id": 185}, "project": {"id": 332, "owner": {"id": 738}, "assignee": {"id": 844}}, "task": {"id": 369, "owner": {"id": 938}, "assignee": {"id": 72}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "assignee": {"id": 576}, "organization": {"id": 650}, "project": {"id": 308, "owner": {"id": 732}, "assignee": {"id": 873}}, "task": {"id": 378, "owner": {"id": 902}, "assignee": {"id": 84}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 303, "assignee": {"id": 588}, "organization": {"id": 154}, "project": {"id": 302, "owner": {"id": 742}, "assignee": {"id": 838}}, "task": {"id": 382, "owner": {"id": 938}, "assignee": {"id": 73}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 383, "assignee": {"id": 595}, "organization": {"id": 647}, "project": {"id": 318, "owner": {"id": 714}, "assignee": {"id": 853}}, "task": {"id": 344, "owner": {"id": 931}, "assignee": {"id": 78}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 394, "assignee": {"id": 527}, "organization": {"id": 162}, "project": {"id": 386, "owner": {"id": 706}, "assignee": {"id": 858}}, "task": {"id": 351, "owner": {"id": 949}, "assignee": {"id": 51}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 389, "assignee": {"id": 519}, "organization": {"id": 632}, "project": {"id": 382, "owner": {"id": 738}, "assignee": {"id": 823}}, "task": {"id": 301, "owner": {"id": 930}, "assignee": {"id": 98}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 375, "assignee": {"id": 575}, "organization": {"id": 135}, "project": {"id": 301, "owner": {"id": 751}, "assignee": {"id": 844}}, "task": {"id": 371, "owner": {"id": 908}, "assignee": {"id": 16}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 396, "assignee": {"id": 507}, "organization": {"id": 660}, "project": {"id": 356, "owner": {"id": 770}, "assignee": {"id": 829}}, "task": {"id": 355, "owner": {"id": 928}, "assignee": {"id": 5}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "assignee": {"id": 594}, "organization": {"id": 197}, "project": {"id": 306, "owner": {"id": 713}, "assignee": {"id": 872}}, "task": {"id": 317, "owner": {"id": 918}, "assignee": {"id": 15}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "assignee": {"id": 553}, "organization": {"id": 621}, "project": {"id": 326, "owner": {"id": 777}, "assignee": {"id": 882}}, "task": {"id": 329, "owner": {"id": 945}, "assignee": {"id": 53}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "assignee": {"id": 580}, "organization": {"id": 116}, "project": {"id": 322, "owner": {"id": 753}, "assignee": {"id": 843}}, "task": {"id": 342, "owner": {"id": 964}, "assignee": {"id": 26}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "assignee": {"id": 524}, "organization": {"id": 642}, "project": {"id": 383, "owner": {"id": 733}, "assignee": {"id": 817}}, "task": {"id": 357, "owner": {"id": 900}, "assignee": {"id": 85}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 327, "assignee": {"id": 525}, "organization": {"id": 141}, "project": {"id": 399, "owner": {"id": 716}, "assignee": {"id": 882}}, "task": {"id": 380, "owner": {"id": 907}, "assignee": {"id": 21}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 328, "assignee": {"id": 505}, "organization": {"id": 635}, "project": {"id": 392, "owner": {"id": 751}, "assignee": {"id": 860}}, "task": {"id": 393, "owner": {"id": 939}, "assignee": {"id": 99}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 369, "assignee": {"id": 598}, "organization": {"id": 151}, "project": {"id": 347, "owner": {"id": 728}, "assignee": {"id": 829}}, "task": {"id": 314, "owner": {"id": 997}, "assignee": {"id": 43}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 389, "assignee": {"id": 564}, "organization": {"id": 628}, "project": {"id": 341, "owner": {"id": 753}, "assignee": {"id": 822}}, "task": {"id": 394, "owner": {"id": 971}, "assignee": {"id": 43}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 313, "assignee": {"id": 72}, "organization": {"id": 119}, "project": {"id": 333, "owner": {"id": 769}, "assignee": {"id": 830}}, "task": {"id": 330, "owner": {"id": 948}, "assignee": {"id": 1036}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 344, "assignee": {"id": 96}, "organization": {"id": 690}, "project": {"id": 375, "owner": {"id": 753}, "assignee": {"id": 832}}, "task": {"id": 346, "owner": {"id": 966}, "assignee": {"id": 1059}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "assignee": {"id": 20}, "organization": {"id": 112}, "project": {"id": 378, "owner": {"id": 726}, "assignee": {"id": 891}}, "task": {"id": 306, "owner": {"id": 926}, "assignee": {"id": 1016}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "assignee": {"id": 19}, "organization": {"id": 691}, "project": {"id": 365, "owner": {"id": 705}, "assignee": {"id": 859}}, "task": {"id": 300, "owner": {"id": 912}, "assignee": {"id": 1065}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "assignee": {"id": 12}, "organization": {"id": 122}, "project": {"id": 333, "owner": {"id": 786}, "assignee": {"id": 811}}, "task": {"id": 317, "owner": {"id": 996}, "assignee": {"id": 1047}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 369, "assignee": {"id": 60}, "organization": {"id": 624}, "project": {"id": 388, "owner": {"id": 724}, "assignee": {"id": 837}}, "task": {"id": 301, "owner": {"id": 983}, "assignee": {"id": 1009}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 309, "assignee": {"id": 60}, "organization": {"id": 155}, "project": {"id": 334, "owner": {"id": 789}, "assignee": {"id": 890}}, "task": {"id": 343, "owner": {"id": 980}, "assignee": {"id": 1046}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 349, "assignee": {"id": 57}, "organization": {"id": 696}, "project": {"id": 391, "owner": {"id": 748}, "assignee": {"id": 819}}, "task": {"id": 344, "owner": {"id": 925}, "assignee": {"id": 1052}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 362, "assignee": {"id": 61}, "organization": {"id": 188}, "project": {"id": 317, "owner": {"id": 705}, "assignee": {"id": 829}}, "task": {"id": 339, "owner": {"id": 946}, "assignee": {"id": 1088}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 315, "assignee": {"id": 26}, "organization": {"id": 656}, "project": {"id": 343, "owner": {"id": 748}, "assignee": {"id": 844}}, "task": {"id": 379, "owner": {"id": 992}, "assignee": {"id": 1022}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 316, "assignee": {"id": 49}, "organization": {"id": 139}, "project": {"id": 322, "owner": {"id": 716}, "assignee": {"id": 829}}, "task": {"id": 357, "owner": {"id": 911}, "assignee": {"id": 1051}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 327, "assignee": {"id": 79}, "organization": {"id": 693}, "project": {"id": 324, "owner": {"id": 794}, "assignee": {"id": 888}}, "task": {"id": 345, "owner": {"id": 910}, "assignee": {"id": 1076}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "assignee": {"id": 20}, "organization": {"id": 156}, "project": {"id": 308, "owner": {"id": 708}, "assignee": {"id": 808}}, "task": {"id": 340, "owner": {"id": 917}, "assignee": {"id": 1078}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 301, "assignee": {"id": 54}, "organization": {"id": 687}, "project": {"id": 374, "owner": {"id": 727}, "assignee": {"id": 892}}, "task": {"id": 307, "owner": {"id": 953}, "assignee": {"id": 1060}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "assignee": {"id": 63}, "organization": {"id": 197}, "project": {"id": 391, "owner": {"id": 789}, "assignee": {"id": 814}}, "task": {"id": 393, "owner": {"id": 998}, "assignee": {"id": 1011}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "assignee": {"id": 98}, "organization": {"id": 605}, "project": {"id": 309, "owner": {"id": 705}, "assignee": {"id": 878}}, "task": {"id": 314, "owner": {"id": 903}, "assignee": {"id": 1087}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 304, "assignee": {"id": 49}, "organization": {"id": 153}, "project": {"id": 323, "owner": {"id": 782}, "assignee": {"id": 805}}, "task": {"id": 339, "owner": {"id": 974}, "assignee": {"id": 1043}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 26, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 351, "assignee": {"id": 26}, "organization": {"id": 644}, "project": {"id": 311, "owner": {"id": 702}, "assignee": {"id": 825}}, "task": {"id": 370, "owner": {"id": 976}, "assignee": {"id": 1045}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 381, "assignee": {"id": 73}, "organization": {"id": 123}, "project": {"id": 358, "owner": {"id": 798}, "assignee": {"id": 890}}, "task": {"id": 399, "owner": {"id": 967}, "assignee": {"id": 1029}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 376, "assignee": {"id": 69}, "organization": {"id": 621}, "project": {"id": 343, "owner": {"id": 727}, "assignee": {"id": 823}}, "task": {"id": 339, "owner": {"id": 934}, "assignee": {"id": 1067}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 362, "assignee": {"id": 60}, "organization": {"id": 151}, "project": {"id": 376, "owner": {"id": 792}, "assignee": {"id": 890}}, "task": {"id": 355, "owner": {"id": 945}, "assignee": {"id": 1059}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 339, "assignee": {"id": 32}, "organization": {"id": 673}, "project": {"id": 345, "owner": {"id": 776}, "assignee": {"id": 821}}, "task": {"id": 370, "owner": {"id": 972}, "assignee": {"id": 1012}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "assignee": {"id": 33}, "organization": {"id": 158}, "project": {"id": 383, "owner": {"id": 798}, "assignee": {"id": 837}}, "task": {"id": 343, "owner": {"id": 987}, "assignee": {"id": 1030}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "assignee": {"id": 33}, "organization": {"id": 687}, "project": {"id": 308, "owner": {"id": 709}, "assignee": {"id": 851}}, "task": {"id": 304, "owner": {"id": 993}, "assignee": {"id": 1065}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 369, "assignee": {"id": 91}, "organization": {"id": 134}, "project": {"id": 371, "owner": {"id": 720}, "assignee": {"id": 818}}, "task": {"id": 320, "owner": {"id": 927}, "assignee": {"id": 1082}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "assignee": {"id": 38}, "organization": {"id": 673}, "project": {"id": 337, "owner": {"id": 735}, "assignee": {"id": 858}}, "task": {"id": 385, "owner": {"id": 938}, "assignee": {"id": 1068}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 385, "assignee": {"id": 89}, "organization": {"id": 133}, "project": {"id": 379, "owner": {"id": 794}, "assignee": {"id": 839}}, "task": {"id": 338, "owner": {"id": 942}, "assignee": {"id": 1010}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 315, "assignee": {"id": 32}, "organization": {"id": 647}, "project": {"id": 359, "owner": {"id": 717}, "assignee": {"id": 879}}, "task": {"id": 395, "owner": {"id": 975}, "assignee": {"id": 1011}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 391, "assignee": {"id": 29}, "organization": {"id": 168}, "project": {"id": 308, "owner": {"id": 728}, "assignee": {"id": 825}}, "task": {"id": 374, "owner": {"id": 910}, "assignee": {"id": 1034}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 356, "assignee": {"id": 93}, "organization": {"id": 636}, "project": {"id": 384, "owner": {"id": 750}, "assignee": {"id": 814}}, "task": {"id": 398, "owner": {"id": 916}, "assignee": {"id": 1027}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 341, "assignee": {"id": 99}, "organization": {"id": 114}, "project": {"id": 394, "owner": {"id": 781}, "assignee": {"id": 818}}, "task": {"id": 342, "owner": {"id": 992}, "assignee": {"id": 1073}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 356, "assignee": {"id": 7}, "organization": {"id": 601}, "project": {"id": 352, "owner": {"id": 759}, "assignee": {"id": 856}}, "task": {"id": 381, "owner": {"id": 985}, "assignee": {"id": 1027}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 358, "assignee": {"id": 51}, "organization": {"id": 171}, "project": {"id": 330, "owner": {"id": 778}, "assignee": {"id": 878}}, "task": {"id": 392, "owner": {"id": 927}, "assignee": {"id": 1032}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 320, "assignee": {"id": 11}, "organization": {"id": 691}, "project": {"id": 361, "owner": {"id": 743}, "assignee": {"id": 827}}, "task": {"id": 372, "owner": {"id": 914}, "assignee": {"id": 1076}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "assignee": {"id": 65}, "organization": {"id": 192}, "project": {"id": 370, "owner": {"id": 720}, "assignee": {"id": 866}}, "task": {"id": 387, "owner": {"id": 972}, "assignee": {"id": 1010}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "assignee": {"id": 81}, "organization": {"id": 601}, "project": {"id": 356, "owner": {"id": 730}, "assignee": {"id": 879}}, "task": {"id": 364, "owner": {"id": 938}, "assignee": {"id": 1068}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 301, "assignee": {"id": 11}, "organization": {"id": 133}, "project": {"id": 350, "owner": {"id": 765}, "assignee": {"id": 815}}, "task": {"id": 344, "owner": {"id": 912}, "assignee": {"id": 1087}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 317, "assignee": {"id": 9}, "organization": {"id": 664}, "project": {"id": 342, "owner": {"id": 750}, "assignee": {"id": 898}}, "task": {"id": 381, "owner": {"id": 952}, "assignee": {"id": 1020}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 396, "assignee": {"id": 64}, "organization": {"id": 115}, "project": {"id": 386, "owner": {"id": 759}, "assignee": {"id": 891}}, "task": {"id": 322, "owner": {"id": 939}, "assignee": {"id": 1029}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 334, "assignee": {"id": 57}, "organization": {"id": 652}, "project": {"id": 344, "owner": {"id": 710}, "assignee": {"id": 890}}, "task": {"id": 334, "owner": {"id": 975}, "assignee": {"id": 1077}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 383, "assignee": {"id": 69}, "organization": {"id": 133}, "project": {"id": 337, "owner": {"id": 733}, "assignee": {"id": 849}}, "task": {"id": 395, "owner": {"id": 927}, "assignee": {"id": 1031}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 341, "assignee": {"id": 9}, "organization": {"id": 642}, "project": {"id": 300, "owner": {"id": 711}, "assignee": {"id": 816}}, "task": {"id": 383, "owner": {"id": 918}, "assignee": {"id": 1017}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "assignee": {"id": 6}, "organization": {"id": 145}, "project": {"id": 338, "owner": {"id": 771}, "assignee": {"id": 812}}, "task": {"id": 326, "owner": {"id": 910}, "assignee": {"id": 1016}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "assignee": {"id": 72}, "organization": {"id": 670}, "project": {"id": 373, "owner": {"id": 766}, "assignee": {"id": 879}}, "task": {"id": 391, "owner": {"id": 929}, "assignee": {"id": 1003}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "assignee": {"id": 63}, "organization": {"id": 154}, "project": {"id": 391, "owner": {"id": 705}, "assignee": {"id": 821}}, "task": {"id": 391, "owner": {"id": 939}, "assignee": {"id": 1008}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "assignee": {"id": 20}, "organization": {"id": 605}, "project": {"id": 387, "owner": {"id": 751}, "assignee": {"id": 867}}, "task": {"id": 325, "owner": {"id": 989}, "assignee": {"id": 1070}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 348, "assignee": {"id": 0}, "organization": {"id": 176}, "project": {"id": 357, "owner": {"id": 737}, "assignee": {"id": 807}}, "task": {"id": 387, "owner": {"id": 902}, "assignee": {"id": 1085}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 361, "assignee": {"id": 23}, "organization": {"id": 628}, "project": {"id": 341, "owner": {"id": 788}, "assignee": {"id": 837}}, "task": {"id": 374, "owner": {"id": 984}, "assignee": {"id": 1052}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 376, "assignee": {"id": 46}, "organization": {"id": 142}, "project": {"id": 302, "owner": {"id": 793}, "assignee": {"id": 814}}, "task": {"id": 318, "owner": {"id": 911}, "assignee": {"id": 1027}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 306, "assignee": {"id": 93}, "organization": {"id": 620}, "project": {"id": 343, "owner": {"id": 728}, "assignee": {"id": 832}}, "task": {"id": 387, "owner": {"id": 925}, "assignee": {"id": 1055}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 354, "assignee": {"id": 574}, "organization": {"id": 138}, "project": {"id": 359, "owner": {"id": 707}, "assignee": {"id": 854}}, "task": {"id": 360, "owner": {"id": 981}, "assignee": {"id": 1042}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 302, "assignee": {"id": 526}, "organization": {"id": 680}, "project": {"id": 311, "owner": {"id": 734}, "assignee": {"id": 865}}, "task": {"id": 322, "owner": {"id": 923}, "assignee": {"id": 1015}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "assignee": {"id": 542}, "organization": {"id": 129}, "project": {"id": 389, "owner": {"id": 763}, "assignee": {"id": 823}}, "task": {"id": 302, "owner": {"id": 944}, "assignee": {"id": 1047}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "assignee": {"id": 550}, "organization": {"id": 694}, "project": {"id": 394, "owner": {"id": 783}, "assignee": {"id": 899}}, "task": {"id": 399, "owner": {"id": 970}, "assignee": {"id": 1041}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "assignee": {"id": 549}, "organization": {"id": 150}, "project": {"id": 336, "owner": {"id": 747}, "assignee": {"id": 801}}, "task": {"id": 345, "owner": {"id": 966}, "assignee": {"id": 1026}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "assignee": {"id": 520}, "organization": {"id": 619}, "project": {"id": 371, "owner": {"id": 764}, "assignee": {"id": 836}}, "task": {"id": 374, "owner": {"id": 973}, "assignee": {"id": 1025}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 368, "assignee": {"id": 581}, "organization": {"id": 167}, "project": {"id": 393, "owner": {"id": 791}, "assignee": {"id": 891}}, "task": {"id": 352, "owner": {"id": 949}, "assignee": {"id": 1064}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 312, "assignee": {"id": 503}, "organization": {"id": 651}, "project": {"id": 380, "owner": {"id": 786}, "assignee": {"id": 843}}, "task": {"id": 398, "owner": {"id": 992}, "assignee": {"id": 1023}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 339, "assignee": {"id": 593}, "organization": {"id": 113}, "project": {"id": 304, "owner": {"id": 740}, "assignee": {"id": 822}}, "task": {"id": 384, "owner": {"id": 927}, "assignee": {"id": 1095}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"id": 397, "assignee": {"id": 512}, "organization": {"id": 655}, "project": {"id": 329, "owner": {"id": 783}, "assignee": {"id": 856}}, "task": {"id": 302, "owner": {"id": 958}, "assignee": {"id": 1081}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 390, "assignee": {"id": 517}, "organization": {"id": 179}, "project": {"id": 305, "owner": {"id": 784}, "assignee": {"id": 881}}, "task": {"id": 344, "owner": {"id": 906}, "assignee": {"id": 1023}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 300, "assignee": {"id": 556}, "organization": {"id": 672}, "project": {"id": 378, "owner": {"id": 729}, "assignee": {"id": 877}}, "task": {"id": 356, "owner": {"id": 960}, "assignee": {"id": 1093}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "assignee": {"id": 533}, "organization": {"id": 194}, "project": {"id": 347, "owner": {"id": 774}, "assignee": {"id": 812}}, "task": {"id": 344, "owner": {"id": 998}, "assignee": {"id": 1076}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "assignee": {"id": 521}, "organization": {"id": 637}, "project": {"id": 371, "owner": {"id": 796}, "assignee": {"id": 857}}, "task": {"id": 366, "owner": {"id": 936}, "assignee": {"id": 1081}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "assignee": {"id": 539}, "organization": {"id": 159}, "project": {"id": 313, "owner": {"id": 733}, "assignee": {"id": 800}}, "task": {"id": 387, "owner": {"id": 965}, "assignee": {"id": 1096}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "assignee": {"id": 597}, "organization": {"id": 644}, "project": {"id": 309, "owner": {"id": 741}, "assignee": {"id": 889}}, "task": {"id": 351, "owner": {"id": 978}, "assignee": {"id": 1075}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"id": 314, "assignee": {"id": 582}, "organization": {"id": 150}, "project": {"id": 358, "owner": {"id": 780}, "assignee": {"id": 898}}, "task": {"id": 374, "owner": {"id": 904}, "assignee": {"id": 1080}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 367, "assignee": {"id": 536}, "organization": {"id": 686}, "project": {"id": 301, "owner": {"id": 739}, "assignee": {"id": 889}}, "task": {"id": 361, "owner": {"id": 951}, "assignee": {"id": 1088}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 399, "assignee": {"id": 579}, "organization": {"id": 139}, "project": {"id": 374, "owner": {"id": 739}, "assignee": {"id": 860}}, "task": {"id": 399, "owner": {"id": 982}, "assignee": {"id": 1076}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 340, "assignee": {"id": 583}, "organization": {"id": 673}, "project": {"id": 323, "owner": {"id": 798}, "assignee": {"id": 864}}, "task": {"id": 338, "owner": {"id": 917}, "assignee": {"id": 1059}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 335, "assignee": {"id": 513}, "organization": {"id": 148}, "project": {"id": 343, "owner": {"id": 730}, "assignee": {"id": 899}}, "task": {"id": 356, "owner": {"id": 935}, "assignee": {"id": 1052}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 356, "assignee": {"id": 571}, "organization": {"id": 643}, "project": {"id": 353, "owner": {"id": 726}, "assignee": {"id": 887}}, "task": {"id": 356, "owner": {"id": 912}, "assignee": {"id": 1048}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "assignee": {"id": 583}, "organization": {"id": 117}, "project": {"id": 314, "owner": {"id": 712}, "assignee": {"id": 851}}, "task": {"id": 366, "owner": {"id": 947}, "assignee": {"id": 1075}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "assignee": {"id": 563}, "organization": {"id": 615}, "project": {"id": 355, "owner": {"id": 766}, "assignee": {"id": 863}}, "task": {"id": 338, "owner": {"id": 962}, "assignee": {"id": 1070}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "assignee": {"id": 531}, "organization": {"id": 115}, "project": {"id": 393, "owner": {"id": 794}, "assignee": {"id": 826}}, "task": {"id": 322, "owner": {"id": 941}, "assignee": {"id": 1011}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "assignee": {"id": 521}, "organization": {"id": 684}, "project": {"id": 371, "owner": {"id": 766}, "assignee": {"id": 825}}, "task": {"id": 388, "owner": {"id": 915}, "assignee": {"id": 1034}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 308, "assignee": {"id": 534}, "organization": {"id": 182}, "project": {"id": 306, "owner": {"id": 710}, "assignee": {"id": 811}}, "task": {"id": 394, "owner": {"id": 916}, "assignee": {"id": 1005}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 339, "assignee": {"id": 559}, "organization": {"id": 633}, "project": {"id": 389, "owner": {"id": 771}, "assignee": {"id": 811}}, "task": {"id": 340, "owner": {"id": 987}, "assignee": {"id": 1060}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 375, "assignee": {"id": 535}, "organization": {"id": 122}, "project": {"id": 324, "owner": {"id": 799}, "assignee": {"id": 864}}, "task": {"id": 307, "owner": {"id": 923}, "assignee": {"id": 1094}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 341, "assignee": {"id": 588}, "organization": {"id": 668}, "project": {"id": 319, "owner": {"id": 733}, "assignee": {"id": 899}}, "task": {"id": 361, "owner": {"id": 995}, "assignee": {"id": 1001}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 363, "assignee": {"id": 505}, "organization": {"id": 193}, "project": {"id": 323, "owner": {"id": 759}, "assignee": {"id": 866}}, "task": {"id": 382, "owner": {"id": 946}, "assignee": {"id": 1057}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 352, "assignee": {"id": 588}, "organization": {"id": 636}, "project": {"id": 320, "owner": {"id": 742}, "assignee": {"id": 835}}, "task": {"id": 322, "owner": {"id": 986}, "assignee": {"id": 1039}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "assignee": {"id": 549}, "organization": {"id": 155}, "project": {"id": 313, "owner": {"id": 780}, "assignee": {"id": 840}}, "task": {"id": 384, "owner": {"id": 937}, "assignee": {"id": 1051}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "assignee": {"id": 516}, "organization": {"id": 600}, "project": {"id": 361, "owner": {"id": 799}, "assignee": {"id": 889}}, "task": {"id": 322, "owner": {"id": 973}, "assignee": {"id": 1058}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "assignee": {"id": 530}, "organization": {"id": 152}, "project": {"id": 314, "owner": {"id": 792}, "assignee": {"id": 866}}, "task": {"id": 382, "owner": {"id": 956}, "assignee": {"id": 1003}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "assignee": {"id": 526}, "organization": {"id": 638}, "project": {"id": 396, "owner": {"id": 793}, "assignee": {"id": 835}}, "task": {"id": 344, "owner": {"id": 929}, "assignee": {"id": 1074}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 370, "assignee": {"id": 522}, "organization": {"id": 149}, "project": {"id": 383, "owner": {"id": 702}, "assignee": {"id": 888}}, "task": {"id": 325, "owner": {"id": 965}, "assignee": {"id": 1092}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 376, "assignee": {"id": 564}, "organization": {"id": 605}, "project": {"id": 317, "owner": {"id": 771}, "assignee": {"id": 838}}, "task": {"id": 335, "owner": {"id": 900}, "assignee": {"id": 1019}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 353, "assignee": {"id": 588}, "organization": {"id": 113}, "project": {"id": 384, "owner": {"id": 748}, "assignee": {"id": 870}}, "task": {"id": 391, "owner": {"id": 935}, "assignee": {"id": 1079}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 386, "assignee": {"id": 537}, "organization": {"id": 658}, "project": {"id": 376, "owner": {"id": 707}, "assignee": {"id": 833}}, "task": {"id": 336, "owner": {"id": 958}, "assignee": {"id": 1041}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 362, "assignee": {"id": 581}, "organization": {"id": 169}, "project": {"id": 321, "owner": {"id": 751}, "assignee": {"id": 881}}, "task": {"id": 302, "owner": {"id": 997}, "assignee": {"id": 1055}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 316, "assignee": {"id": 531}, "organization": {"id": 687}, "project": {"id": 366, "owner": {"id": 718}, "assignee": {"id": 801}}, "task": {"id": 387, "owner": {"id": 902}, "assignee": {"id": 1001}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "assignee": {"id": 560}, "organization": {"id": 180}, "project": {"id": 301, "owner": {"id": 753}, "assignee": {"id": 881}}, "task": {"id": 361, "owner": {"id": 993}, "assignee": {"id": 1070}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "assignee": {"id": 540}, "organization": {"id": 680}, "project": {"id": 340, "owner": {"id": 725}, "assignee": {"id": 800}}, "task": {"id": 378, "owner": {"id": 918}, "assignee": {"id": 1019}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "assignee": {"id": 565}, "organization": {"id": 127}, "project": {"id": 313, "owner": {"id": 751}, "assignee": {"id": 879}}, "task": {"id": 302, "owner": {"id": 926}, "assignee": {"id": 1040}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "assignee": {"id": 591}, "organization": {"id": 619}, "project": {"id": 329, "owner": {"id": 721}, "assignee": {"id": 863}}, "task": {"id": 318, "owner": {"id": 928}, "assignee": {"id": 1039}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 309, "assignee": {"id": 598}, "organization": {"id": 110}, "project": {"id": 307, "owner": {"id": 766}, "assignee": {"id": 827}}, "task": {"id": 371, "owner": {"id": 967}, "assignee": {"id": 1082}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 396, "assignee": {"id": 569}, "organization": {"id": 674}, "project": {"id": 382, "owner": {"id": 776}, "assignee": {"id": 834}}, "task": {"id": 369, "owner": {"id": 985}, "assignee": {"id": 1021}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 50, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 387, "assignee": {"id": 524}, "organization": {"id": 115}, "project": {"id": 322, "owner": {"id": 764}, "assignee": {"id": 893}}, "task": {"id": 338, "owner": {"id": 954}, "assignee": {"id": 1096}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 374, "assignee": {"id": 572}, "organization": {"id": 656}, "project": {"id": 310, "owner": {"id": 705}, "assignee": {"id": 865}}, "task": {"id": 390, "owner": {"id": 912}, "assignee": {"id": 1098}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": null}, "resource": {"id": 362, "assignee": {"id": 531}, "organization": {"id": 655}, "project": {"id": 395, "owner": {"id": 64}, "assignee": {"id": 848}}, "task": {"id": 361, "owner": {"id": 997}, "assignee": {"id": 1046}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": null}, "resource": {"id": 388, "assignee": {"id": 502}, "organization": {"id": 608}, "project": {"id": 314, "owner": {"id": 88}, "assignee": {"id": 841}}, "task": {"id": 381, "owner": {"id": 942}, "assignee": {"id": 1042}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": null}, "resource": {"id": 319, "assignee": {"id": 591}, "organization": {"id": 673}, "project": {"id": 347, "owner": {"id": 65}, "assignee": {"id": 803}}, "task": {"id": 399, "owner": {"id": 934}, "assignee": {"id": 1070}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": null}, "resource": {"id": 343, "assignee": {"id": 533}, "organization": {"id": 685}, "project": {"id": 321, "owner": {"id": 58}, "assignee": {"id": 899}}, "task": {"id": 322, "owner": {"id": 941}, "assignee": {"id": 1042}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": null}, "resource": {"id": 378, "assignee": {"id": 548}, "organization": {"id": 668}, "project": {"id": 329, "owner": {"id": 80}, "assignee": {"id": 888}}, "task": {"id": 382, "owner": {"id": 968}, "assignee": {"id": 1055}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": null}, "resource": {"id": 336, "assignee": {"id": 561}, "organization": {"id": 620}, "project": {"id": 356, "owner": {"id": 766}, "assignee": {"id": 37}}, "task": {"id": 390, "owner": {"id": 976}, "assignee": {"id": 1022}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": null}, "resource": {"id": 340, "assignee": {"id": 553}, "organization": {"id": 616}, "project": {"id": 398, "owner": {"id": 764}, "assignee": {"id": 86}}, "task": {"id": 337, "owner": {"id": 929}, "assignee": {"id": 1062}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": null}, "resource": {"id": 392, "assignee": {"id": 534}, "organization": {"id": 679}, "project": {"id": 395, "owner": {"id": 754}, "assignee": {"id": 11}}, "task": {"id": 331, "owner": {"id": 965}, "assignee": {"id": 1043}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": null}, "resource": {"id": 372, "assignee": {"id": 501}, "organization": {"id": 656}, "project": {"id": 340, "owner": {"id": 710}, "assignee": {"id": 51}}, "task": {"id": 325, "owner": {"id": 969}, "assignee": {"id": 1000}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": null}, "resource": {"id": 324, "assignee": {"id": 553}, "organization": {"id": 679}, "project": {"id": 331, "owner": {"id": 769}, "assignee": {"id": 32}}, "task": {"id": 305, "owner": {"id": 944}, "assignee": {"id": 1068}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": null}, "resource": {"id": 360, "assignee": {"id": 524}, "organization": {"id": 623}, "project": {"id": 310, "owner": {"id": 760}, "assignee": {"id": 881}}, "task": {"id": 357, "owner": {"id": 41}, "assignee": {"id": 1097}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": null}, "resource": {"id": 351, "assignee": {"id": 581}, "organization": {"id": 639}, "project": {"id": 372, "owner": {"id": 799}, "assignee": {"id": 825}}, "task": {"id": 320, "owner": {"id": 42}, "assignee": {"id": 1062}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": null}, "resource": {"id": 318, "assignee": {"id": 593}, "organization": {"id": 677}, "project": {"id": 397, "owner": {"id": 737}, "assignee": {"id": 897}}, "task": {"id": 320, "owner": {"id": 97}, "assignee": {"id": 1007}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": null}, "resource": {"id": 303, "assignee": {"id": 596}, "organization": {"id": 681}, "project": {"id": 328, "owner": {"id": 757}, "assignee": {"id": 844}}, "task": {"id": 313, "owner": {"id": 48}, "assignee": {"id": 1013}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": null}, "resource": {"id": 340, "assignee": {"id": 518}, "organization": {"id": 698}, "project": {"id": 309, "owner": {"id": 700}, "assignee": {"id": 817}}, "task": {"id": 304, "owner": {"id": 26}, "assignee": {"id": 1097}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": null}, "resource": {"id": 382, "assignee": {"id": 563}, "organization": {"id": 618}, "project": {"id": 391, "owner": {"id": 730}, "assignee": {"id": 842}}, "task": {"id": 397, "owner": {"id": 967}, "assignee": {"id": 99}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": null}, "resource": {"id": 369, "assignee": {"id": 540}, "organization": {"id": 688}, "project": {"id": 321, "owner": {"id": 707}, "assignee": {"id": 827}}, "task": {"id": 374, "owner": {"id": 963}, "assignee": {"id": 5}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": null}, "resource": {"id": 354, "assignee": {"id": 549}, "organization": {"id": 607}, "project": {"id": 378, "owner": {"id": 745}, "assignee": {"id": 822}}, "task": {"id": 324, "owner": {"id": 965}, "assignee": {"id": 35}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": null}, "resource": {"id": 362, "assignee": {"id": 596}, "organization": {"id": 665}, "project": {"id": 341, "owner": {"id": 767}, "assignee": {"id": 813}}, "task": {"id": 334, "owner": {"id": 985}, "assignee": {"id": 86}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": null}, "resource": {"id": 312, "assignee": {"id": 551}, "organization": {"id": 679}, "project": {"id": 398, "owner": {"id": 761}, "assignee": {"id": 853}}, "task": {"id": 378, "owner": {"id": 901}, "assignee": {"id": 34}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": null}, "resource": {"id": 326, "assignee": {"id": 24}, "organization": {"id": 602}, "project": {"id": 387, "owner": {"id": 740}, "assignee": {"id": 838}}, "task": {"id": 337, "owner": {"id": 946}, "assignee": {"id": 1079}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": null}, "resource": {"id": 300, "assignee": {"id": 16}, "organization": {"id": 612}, "project": {"id": 370, "owner": {"id": 706}, "assignee": {"id": 854}}, "task": {"id": 396, "owner": {"id": 955}, "assignee": {"id": 1062}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": null}, "resource": {"id": 333, "assignee": {"id": 32}, "organization": {"id": 650}, "project": {"id": 381, "owner": {"id": 774}, "assignee": {"id": 800}}, "task": {"id": 324, "owner": {"id": 929}, "assignee": {"id": 1066}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": null}, "resource": {"id": 388, "assignee": {"id": 41}, "organization": {"id": 628}, "project": {"id": 390, "owner": {"id": 782}, "assignee": {"id": 839}}, "task": {"id": 337, "owner": {"id": 940}, "assignee": {"id": 1092}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": null}, "resource": {"id": 312, "assignee": {"id": 27}, "organization": {"id": 665}, "project": {"id": 331, "owner": {"id": 733}, "assignee": {"id": 846}}, "task": {"id": 352, "owner": {"id": 921}, "assignee": {"id": 1072}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": null}, "resource": {"id": 389, "assignee": {"id": 550}, "organization": {"id": 688}, "project": {"id": 384, "owner": {"id": 765}, "assignee": {"id": 853}}, "task": {"id": 357, "owner": {"id": 988}, "assignee": {"id": 1033}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": null}, "resource": {"id": 367, "assignee": {"id": 587}, "organization": {"id": 642}, "project": {"id": 364, "owner": {"id": 772}, "assignee": {"id": 882}}, "task": {"id": 399, "owner": {"id": 927}, "assignee": {"id": 1083}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": null}, "resource": {"id": 335, "assignee": {"id": 568}, "organization": {"id": 664}, "project": {"id": 362, "owner": {"id": 750}, "assignee": {"id": 879}}, "task": {"id": 384, "owner": {"id": 910}, "assignee": {"id": 1068}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": null}, "resource": {"id": 364, "assignee": {"id": 543}, "organization": {"id": 670}, "project": {"id": 397, "owner": {"id": 752}, "assignee": {"id": 858}}, "task": {"id": 356, "owner": {"id": 967}, "assignee": {"id": 1077}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": null}, "resource": {"id": 324, "assignee": {"id": 590}, "organization": {"id": 670}, "project": {"id": 385, "owner": {"id": 796}, "assignee": {"id": 814}}, "task": {"id": 326, "owner": {"id": 979}, "assignee": {"id": 1018}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 329, "assignee": {"id": 562}, "organization": {"id": 168}, "project": {"id": 395, "owner": {"id": 82}, "assignee": {"id": 870}}, "task": {"id": 323, "owner": {"id": 903}, "assignee": {"id": 1038}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 372, "assignee": {"id": 591}, "organization": {"id": 694}, "project": {"id": 327, "owner": {"id": 22}, "assignee": {"id": 892}}, "task": {"id": 305, "owner": {"id": 996}, "assignee": {"id": 1011}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "assignee": {"id": 598}, "organization": {"id": 160}, "project": {"id": 389, "owner": {"id": 80}, "assignee": {"id": 895}}, "task": {"id": 327, "owner": {"id": 994}, "assignee": {"id": 1063}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "assignee": {"id": 544}, "organization": {"id": 676}, "project": {"id": 300, "owner": {"id": 87}, "assignee": {"id": 822}}, "task": {"id": 376, "owner": {"id": 916}, "assignee": {"id": 1075}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 36, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "assignee": {"id": 519}, "organization": {"id": 141}, "project": {"id": 308, "owner": {"id": 36}, "assignee": {"id": 826}}, "task": {"id": 356, "owner": {"id": 901}, "assignee": {"id": 1095}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "assignee": {"id": 591}, "organization": {"id": 600}, "project": {"id": 384, "owner": {"id": 90}, "assignee": {"id": 841}}, "task": {"id": 306, "owner": {"id": 992}, "assignee": {"id": 1060}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 381, "assignee": {"id": 510}, "organization": {"id": 174}, "project": {"id": 328, "owner": {"id": 52}, "assignee": {"id": 819}}, "task": {"id": 368, "owner": {"id": 917}, "assignee": {"id": 1025}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 395, "assignee": {"id": 539}, "organization": {"id": 679}, "project": {"id": 330, "owner": {"id": 28}, "assignee": {"id": 818}}, "task": {"id": 398, "owner": {"id": 955}, "assignee": {"id": 1071}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 370, "assignee": {"id": 501}, "organization": {"id": 130}, "project": {"id": 302, "owner": {"id": 25}, "assignee": {"id": 887}}, "task": {"id": 327, "owner": {"id": 931}, "assignee": {"id": 1071}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 395, "assignee": {"id": 558}, "organization": {"id": 695}, "project": {"id": 398, "owner": {"id": 92}, "assignee": {"id": 889}}, "task": {"id": 351, "owner": {"id": 908}, "assignee": {"id": 1038}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 363, "assignee": {"id": 586}, "organization": {"id": 192}, "project": {"id": 309, "owner": {"id": 85}, "assignee": {"id": 836}}, "task": {"id": 346, "owner": {"id": 953}, "assignee": {"id": 1011}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 368, "assignee": {"id": 513}, "organization": {"id": 664}, "project": {"id": 314, "owner": {"id": 78}, "assignee": {"id": 809}}, "task": {"id": 301, "owner": {"id": 950}, "assignee": {"id": 1089}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "assignee": {"id": 519}, "organization": {"id": 195}, "project": {"id": 323, "owner": {"id": 62}, "assignee": {"id": 830}}, "task": {"id": 308, "owner": {"id": 995}, "assignee": {"id": 1079}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "assignee": {"id": 591}, "organization": {"id": 643}, "project": {"id": 391, "owner": {"id": 83}, "assignee": {"id": 866}}, "task": {"id": 374, "owner": {"id": 926}, "assignee": {"id": 1082}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "assignee": {"id": 504}, "organization": {"id": 120}, "project": {"id": 371, "owner": {"id": 61}, "assignee": {"id": 866}}, "task": {"id": 388, "owner": {"id": 909}, "assignee": {"id": 1000}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "assignee": {"id": 593}, "organization": {"id": 618}, "project": {"id": 383, "owner": {"id": 66}, "assignee": {"id": 863}}, "task": {"id": 338, "owner": {"id": 994}, "assignee": {"id": 1056}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 26, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 311, "assignee": {"id": 579}, "organization": {"id": 139}, "project": {"id": 339, "owner": {"id": 26}, "assignee": {"id": 815}}, "task": {"id": 300, "owner": {"id": 965}, "assignee": {"id": 1068}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 334, "assignee": {"id": 532}, "organization": {"id": 619}, "project": {"id": 343, "owner": {"id": 76}, "assignee": {"id": 862}}, "task": {"id": 337, "owner": {"id": 917}, "assignee": {"id": 1034}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"id": 311, "assignee": {"id": 563}, "organization": {"id": 119}, "project": {"id": 342, "owner": {"id": 5}, "assignee": {"id": 833}}, "task": {"id": 360, "owner": {"id": 995}, "assignee": {"id": 1063}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"id": 374, "assignee": {"id": 516}, "organization": {"id": 664}, "project": {"id": 385, "owner": {"id": 8}, "assignee": {"id": 824}}, "task": {"id": 310, "owner": {"id": 907}, "assignee": {"id": 1077}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 308, "assignee": {"id": 576}, "organization": {"id": 198}, "project": {"id": 301, "owner": {"id": 56}, "assignee": {"id": 882}}, "task": {"id": 330, "owner": {"id": 994}, "assignee": {"id": 1075}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 390, "assignee": {"id": 522}, "organization": {"id": 630}, "project": {"id": 339, "owner": {"id": 38}, "assignee": {"id": 803}}, "task": {"id": 385, "owner": {"id": 995}, "assignee": {"id": 1019}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "assignee": {"id": 541}, "organization": {"id": 120}, "project": {"id": 387, "owner": {"id": 97}, "assignee": {"id": 826}}, "task": {"id": 313, "owner": {"id": 907}, "assignee": {"id": 1048}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "assignee": {"id": 537}, "organization": {"id": 636}, "project": {"id": 308, "owner": {"id": 69}, "assignee": {"id": 859}}, "task": {"id": 359, "owner": {"id": 955}, "assignee": {"id": 1086}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "assignee": {"id": 588}, "organization": {"id": 153}, "project": {"id": 354, "owner": {"id": 72}, "assignee": {"id": 868}}, "task": {"id": 356, "owner": {"id": 989}, "assignee": {"id": 1023}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "assignee": {"id": 502}, "organization": {"id": 638}, "project": {"id": 321, "owner": {"id": 69}, "assignee": {"id": 875}}, "task": {"id": 363, "owner": {"id": 946}, "assignee": {"id": 1090}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 307, "assignee": {"id": 511}, "organization": {"id": 119}, "project": {"id": 339, "owner": {"id": 93}, "assignee": {"id": 806}}, "task": {"id": 392, "owner": {"id": 903}, "assignee": {"id": 1067}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 375, "assignee": {"id": 581}, "organization": {"id": 622}, "project": {"id": 327, "owner": {"id": 61}, "assignee": {"id": 849}}, "task": {"id": 344, "owner": {"id": 912}, "assignee": {"id": 1014}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 320, "assignee": {"id": 541}, "organization": {"id": 177}, "project": {"id": 340, "owner": {"id": 39}, "assignee": {"id": 864}}, "task": {"id": 365, "owner": {"id": 903}, "assignee": {"id": 1005}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 303, "assignee": {"id": 546}, "organization": {"id": 635}, "project": {"id": 353, "owner": {"id": 38}, "assignee": {"id": 803}}, "task": {"id": 347, "owner": {"id": 905}, "assignee": {"id": 1064}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 375, "assignee": {"id": 594}, "organization": {"id": 106}, "project": {"id": 384, "owner": {"id": 16}, "assignee": {"id": 860}}, "task": {"id": 395, "owner": {"id": 901}, "assignee": {"id": 1033}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 336, "assignee": {"id": 561}, "organization": {"id": 626}, "project": {"id": 302, "owner": {"id": 42}, "assignee": {"id": 856}}, "task": {"id": 371, "owner": {"id": 969}, "assignee": {"id": 1056}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 29, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "assignee": {"id": 520}, "organization": {"id": 186}, "project": {"id": 395, "owner": {"id": 29}, "assignee": {"id": 832}}, "task": {"id": 337, "owner": {"id": 914}, "assignee": {"id": 1029}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "assignee": {"id": 570}, "organization": {"id": 683}, "project": {"id": 306, "owner": {"id": 61}, "assignee": {"id": 887}}, "task": {"id": 309, "owner": {"id": 907}, "assignee": {"id": 1027}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "assignee": {"id": 503}, "organization": {"id": 103}, "project": {"id": 330, "owner": {"id": 42}, "assignee": {"id": 840}}, "task": {"id": 369, "owner": {"id": 917}, "assignee": {"id": 1025}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "assignee": {"id": 559}, "organization": {"id": 639}, "project": {"id": 385, "owner": {"id": 65}, "assignee": {"id": 894}}, "task": {"id": 347, "owner": {"id": 960}, "assignee": {"id": 1006}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 321, "assignee": {"id": 564}, "organization": {"id": 143}, "project": {"id": 304, "owner": {"id": 28}, "assignee": {"id": 812}}, "task": {"id": 348, "owner": {"id": 912}, "assignee": {"id": 1039}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 328, "assignee": {"id": 591}, "organization": {"id": 638}, "project": {"id": 374, "owner": {"id": 64}, "assignee": {"id": 891}}, "task": {"id": 396, "owner": {"id": 982}, "assignee": {"id": 1090}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 339, "assignee": {"id": 544}, "organization": {"id": 137}, "project": {"id": 340, "owner": {"id": 80}, "assignee": {"id": 893}}, "task": {"id": 336, "owner": {"id": 983}, "assignee": {"id": 1053}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 329, "assignee": {"id": 525}, "organization": {"id": 629}, "project": {"id": 307, "owner": {"id": 85}, "assignee": {"id": 802}}, "task": {"id": 327, "owner": {"id": 905}, "assignee": {"id": 1085}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 370, "assignee": {"id": 599}, "organization": {"id": 143}, "project": {"id": 364, "owner": {"id": 30}, "assignee": {"id": 846}}, "task": {"id": 384, "owner": {"id": 965}, "assignee": {"id": 1044}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 355, "assignee": {"id": 516}, "organization": {"id": 677}, "project": {"id": 319, "owner": {"id": 95}, "assignee": {"id": 868}}, "task": {"id": 384, "owner": {"id": 904}, "assignee": {"id": 1093}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "assignee": {"id": 578}, "organization": {"id": 125}, "project": {"id": 372, "owner": {"id": 56}, "assignee": {"id": 898}}, "task": {"id": 332, "owner": {"id": 999}, "assignee": {"id": 1030}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "assignee": {"id": 508}, "organization": {"id": 622}, "project": {"id": 378, "owner": {"id": 45}, "assignee": {"id": 889}}, "task": {"id": 367, "owner": {"id": 948}, "assignee": {"id": 1094}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "assignee": {"id": 570}, "organization": {"id": 102}, "project": {"id": 384, "owner": {"id": 68}, "assignee": {"id": 820}}, "task": {"id": 317, "owner": {"id": 901}, "assignee": {"id": 1081}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 324, "assignee": {"id": 569}, "organization": {"id": 690}, "project": {"id": 338, "owner": {"id": 89}, "assignee": {"id": 863}}, "task": {"id": 386, "owner": {"id": 986}, "assignee": {"id": 1073}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 376, "assignee": {"id": 547}, "organization": {"id": 109}, "project": {"id": 327, "owner": {"id": 41}, "assignee": {"id": 899}}, "task": {"id": 395, "owner": {"id": 935}, "assignee": {"id": 1050}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 324, "assignee": {"id": 587}, "organization": {"id": 647}, "project": {"id": 376, "owner": {"id": 21}, "assignee": {"id": 832}}, "task": {"id": 355, "owner": {"id": 914}, "assignee": {"id": 1080}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 393, "assignee": {"id": 533}, "organization": {"id": 100}, "project": {"id": 393, "owner": {"id": 2}, "assignee": {"id": 875}}, "task": {"id": 364, "owner": {"id": 928}, "assignee": {"id": 1035}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 356, "assignee": {"id": 509}, "organization": {"id": 687}, "project": {"id": 383, "owner": {"id": 3}, "assignee": {"id": 880}}, "task": {"id": 307, "owner": {"id": 912}, "assignee": {"id": 1094}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 393, "assignee": {"id": 528}, "organization": {"id": 155}, "project": {"id": 314, "owner": {"id": 756}, "assignee": {"id": 72}}, "task": {"id": 339, "owner": {"id": 977}, "assignee": {"id": 1092}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 322, "assignee": {"id": 512}, "organization": {"id": 647}, "project": {"id": 346, "owner": {"id": 728}, "assignee": {"id": 59}}, "task": {"id": 397, "owner": {"id": 930}, "assignee": {"id": 1078}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "assignee": {"id": 563}, "organization": {"id": 132}, "project": {"id": 316, "owner": {"id": 769}, "assignee": {"id": 20}}, "task": {"id": 312, "owner": {"id": 923}, "assignee": {"id": 1084}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "assignee": {"id": 585}, "organization": {"id": 606}, "project": {"id": 304, "owner": {"id": 717}, "assignee": {"id": 90}}, "task": {"id": 373, "owner": {"id": 925}, "assignee": {"id": 1063}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "assignee": {"id": 568}, "organization": {"id": 160}, "project": {"id": 343, "owner": {"id": 704}, "assignee": {"id": 71}}, "task": {"id": 305, "owner": {"id": 923}, "assignee": {"id": 1018}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "assignee": {"id": 501}, "organization": {"id": 685}, "project": {"id": 367, "owner": {"id": 775}, "assignee": {"id": 90}}, "task": {"id": 347, "owner": {"id": 982}, "assignee": {"id": 1062}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 333, "assignee": {"id": 517}, "organization": {"id": 120}, "project": {"id": 344, "owner": {"id": 710}, "assignee": {"id": 90}}, "task": {"id": 371, "owner": {"id": 986}, "assignee": {"id": 1004}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 339, "assignee": {"id": 523}, "organization": {"id": 614}, "project": {"id": 381, "owner": {"id": 738}, "assignee": {"id": 65}}, "task": {"id": 317, "owner": {"id": 968}, "assignee": {"id": 1090}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 349, "assignee": {"id": 592}, "organization": {"id": 123}, "project": {"id": 390, "owner": {"id": 735}, "assignee": {"id": 75}}, "task": {"id": 362, "owner": {"id": 959}, "assignee": {"id": 1083}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 382, "assignee": {"id": 579}, "organization": {"id": 653}, "project": {"id": 378, "owner": {"id": 795}, "assignee": {"id": 0}}, "task": {"id": 379, "owner": {"id": 985}, "assignee": {"id": 1019}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 310, "assignee": {"id": 546}, "organization": {"id": 194}, "project": {"id": 383, "owner": {"id": 759}, "assignee": {"id": 24}}, "task": {"id": 332, "owner": {"id": 945}, "assignee": {"id": 1091}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 329, "assignee": {"id": 501}, "organization": {"id": 637}, "project": {"id": 328, "owner": {"id": 732}, "assignee": {"id": 46}}, "task": {"id": 334, "owner": {"id": 971}, "assignee": {"id": 1014}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "assignee": {"id": 518}, "organization": {"id": 186}, "project": {"id": 349, "owner": {"id": 766}, "assignee": {"id": 30}}, "task": {"id": 337, "owner": {"id": 937}, "assignee": {"id": 1028}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "assignee": {"id": 514}, "organization": {"id": 633}, "project": {"id": 380, "owner": {"id": 701}, "assignee": {"id": 2}}, "task": {"id": 377, "owner": {"id": 902}, "assignee": {"id": 1029}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "assignee": {"id": 587}, "organization": {"id": 101}, "project": {"id": 328, "owner": {"id": 777}, "assignee": {"id": 38}}, "task": {"id": 308, "owner": {"id": 914}, "assignee": {"id": 1082}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "assignee": {"id": 547}, "organization": {"id": 673}, "project": {"id": 359, "owner": {"id": 768}, "assignee": {"id": 27}}, "task": {"id": 321, "owner": {"id": 909}, "assignee": {"id": 1053}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 339, "assignee": {"id": 594}, "organization": {"id": 196}, "project": {"id": 336, "owner": {"id": 729}, "assignee": {"id": 33}}, "task": {"id": 342, "owner": {"id": 927}, "assignee": {"id": 1038}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 361, "assignee": {"id": 543}, "organization": {"id": 645}, "project": {"id": 302, "owner": {"id": 765}, "assignee": {"id": 67}}, "task": {"id": 329, "owner": {"id": 970}, "assignee": {"id": 1018}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 371, "assignee": {"id": 512}, "organization": {"id": 187}, "project": {"id": 310, "owner": {"id": 729}, "assignee": {"id": 41}}, "task": {"id": 383, "owner": {"id": 910}, "assignee": {"id": 1074}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"id": 368, "assignee": {"id": 598}, "organization": {"id": 603}, "project": {"id": 362, "owner": {"id": 728}, "assignee": {"id": 48}}, "task": {"id": 362, "owner": {"id": 915}, "assignee": {"id": 1039}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 343, "assignee": {"id": 537}, "organization": {"id": 180}, "project": {"id": 368, "owner": {"id": 739}, "assignee": {"id": 97}}, "task": {"id": 366, "owner": {"id": 953}, "assignee": {"id": 1027}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 399, "assignee": {"id": 569}, "organization": {"id": 656}, "project": {"id": 322, "owner": {"id": 706}, "assignee": {"id": 28}}, "task": {"id": 321, "owner": {"id": 925}, "assignee": {"id": 1067}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "assignee": {"id": 516}, "organization": {"id": 188}, "project": {"id": 307, "owner": {"id": 739}, "assignee": {"id": 61}}, "task": {"id": 333, "owner": {"id": 930}, "assignee": {"id": 1017}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "assignee": {"id": 520}, "organization": {"id": 648}, "project": {"id": 345, "owner": {"id": 743}, "assignee": {"id": 33}}, "task": {"id": 341, "owner": {"id": 978}, "assignee": {"id": 1023}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "assignee": {"id": 521}, "organization": {"id": 164}, "project": {"id": 392, "owner": {"id": 793}, "assignee": {"id": 12}}, "task": {"id": 315, "owner": {"id": 903}, "assignee": {"id": 1064}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "assignee": {"id": 535}, "organization": {"id": 692}, "project": {"id": 368, "owner": {"id": 793}, "assignee": {"id": 11}}, "task": {"id": 341, "owner": {"id": 995}, "assignee": {"id": 1087}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 384, "assignee": {"id": 566}, "organization": {"id": 134}, "project": {"id": 390, "owner": {"id": 722}, "assignee": {"id": 99}}, "task": {"id": 328, "owner": {"id": 962}, "assignee": {"id": 1081}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 305, "assignee": {"id": 575}, "organization": {"id": 673}, "project": {"id": 333, "owner": {"id": 784}, "assignee": {"id": 82}}, "task": {"id": 363, "owner": {"id": 911}, "assignee": {"id": 1068}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 392, "assignee": {"id": 525}, "organization": {"id": 136}, "project": {"id": 337, "owner": {"id": 797}, "assignee": {"id": 92}}, "task": {"id": 352, "owner": {"id": 919}, "assignee": {"id": 1009}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 312, "assignee": {"id": 529}, "organization": {"id": 627}, "project": {"id": 344, "owner": {"id": 733}, "assignee": {"id": 60}}, "task": {"id": 324, "owner": {"id": 992}, "assignee": {"id": 1031}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 398, "assignee": {"id": 541}, "organization": {"id": 180}, "project": {"id": 344, "owner": {"id": 796}, "assignee": {"id": 37}}, "task": {"id": 388, "owner": {"id": 950}, "assignee": {"id": 1024}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 315, "assignee": {"id": 533}, "organization": {"id": 614}, "project": {"id": 382, "owner": {"id": 745}, "assignee": {"id": 71}}, "task": {"id": 358, "owner": {"id": 985}, "assignee": {"id": 1014}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "assignee": {"id": 532}, "organization": {"id": 154}, "project": {"id": 317, "owner": {"id": 718}, "assignee": {"id": 79}}, "task": {"id": 384, "owner": {"id": 982}, "assignee": {"id": 1024}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "assignee": {"id": 517}, "organization": {"id": 668}, "project": {"id": 381, "owner": {"id": 746}, "assignee": {"id": 13}}, "task": {"id": 313, "owner": {"id": 981}, "assignee": {"id": 1033}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "assignee": {"id": 596}, "organization": {"id": 147}, "project": {"id": 398, "owner": {"id": 757}, "assignee": {"id": 35}}, "task": {"id": 340, "owner": {"id": 984}, "assignee": {"id": 1057}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "assignee": {"id": 574}, "organization": {"id": 683}, "project": {"id": 396, "owner": {"id": 777}, "assignee": {"id": 54}}, "task": {"id": 347, "owner": {"id": 902}, "assignee": {"id": 1062}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 29, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 360, "assignee": {"id": 588}, "organization": {"id": 163}, "project": {"id": 353, "owner": {"id": 736}, "assignee": {"id": 29}}, "task": {"id": 325, "owner": {"id": 947}, "assignee": {"id": 1096}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 323, "assignee": {"id": 512}, "organization": {"id": 637}, "project": {"id": 350, "owner": {"id": 731}, "assignee": {"id": 7}}, "task": {"id": 363, "owner": {"id": 907}, "assignee": {"id": 1083}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 367, "assignee": {"id": 526}, "organization": {"id": 119}, "project": {"id": 332, "owner": {"id": 721}, "assignee": {"id": 27}}, "task": {"id": 396, "owner": {"id": 969}, "assignee": {"id": 1050}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 308, "assignee": {"id": 506}, "organization": {"id": 622}, "project": {"id": 351, "owner": {"id": 745}, "assignee": {"id": 61}}, "task": {"id": 340, "owner": {"id": 963}, "assignee": {"id": 1036}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 337, "assignee": {"id": 577}, "organization": {"id": 151}, "project": {"id": 350, "owner": {"id": 750}, "assignee": {"id": 12}}, "task": {"id": 329, "owner": {"id": 941}, "assignee": {"id": 1018}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 366, "assignee": {"id": 531}, "organization": {"id": 638}, "project": {"id": 305, "owner": {"id": 721}, "assignee": {"id": 99}}, "task": {"id": 375, "owner": {"id": 958}, "assignee": {"id": 1035}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 50, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "assignee": {"id": 597}, "organization": {"id": 135}, "project": {"id": 374, "owner": {"id": 726}, "assignee": {"id": 50}}, "task": {"id": 378, "owner": {"id": 988}, "assignee": {"id": 1088}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "assignee": {"id": 525}, "organization": {"id": 646}, "project": {"id": 328, "owner": {"id": 779}, "assignee": {"id": 13}}, "task": {"id": 343, "owner": {"id": 949}, "assignee": {"id": 1020}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "assignee": {"id": 519}, "organization": {"id": 177}, "project": {"id": 353, "owner": {"id": 717}, "assignee": {"id": 68}}, "task": {"id": 358, "owner": {"id": 910}, "assignee": {"id": 1067}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "assignee": {"id": 552}, "organization": {"id": 694}, "project": {"id": 361, "owner": {"id": 707}, "assignee": {"id": 74}}, "task": {"id": 326, "owner": {"id": 955}, "assignee": {"id": 1008}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 349, "assignee": {"id": 556}, "organization": {"id": 183}, "project": {"id": 323, "owner": {"id": 718}, "assignee": {"id": 58}}, "task": {"id": 389, "owner": {"id": 994}, "assignee": {"id": 1082}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 357, "assignee": {"id": 544}, "organization": {"id": 675}, "project": {"id": 335, "owner": {"id": 708}, "assignee": {"id": 94}}, "task": {"id": 333, "owner": {"id": 962}, "assignee": {"id": 1061}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 398, "assignee": {"id": 535}, "organization": {"id": 176}, "project": {"id": 328, "owner": {"id": 728}, "assignee": {"id": 58}}, "task": {"id": 393, "owner": {"id": 949}, "assignee": {"id": 1075}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 389, "assignee": {"id": 555}, "organization": {"id": 617}, "project": {"id": 358, "owner": {"id": 751}, "assignee": {"id": 52}}, "task": {"id": 334, "owner": {"id": 931}, "assignee": {"id": 1073}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 396, "assignee": {"id": 551}, "organization": {"id": 190}, "project": {"id": 304, "owner": {"id": 704}, "assignee": {"id": 859}}, "task": {"id": 375, "owner": {"id": 26}, "assignee": {"id": 1022}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 381, "assignee": {"id": 598}, "organization": {"id": 693}, "project": {"id": 371, "owner": {"id": 774}, "assignee": {"id": 809}}, "task": {"id": 360, "owner": {"id": 96}, "assignee": {"id": 1062}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "assignee": {"id": 546}, "organization": {"id": 170}, "project": {"id": 328, "owner": {"id": 779}, "assignee": {"id": 823}}, "task": {"id": 309, "owner": {"id": 58}, "assignee": {"id": 1064}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "assignee": {"id": 594}, "organization": {"id": 649}, "project": {"id": 318, "owner": {"id": 749}, "assignee": {"id": 882}}, "task": {"id": 373, "owner": {"id": 56}, "assignee": {"id": 1061}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "assignee": {"id": 586}, "organization": {"id": 138}, "project": {"id": 306, "owner": {"id": 745}, "assignee": {"id": 887}}, "task": {"id": 381, "owner": {"id": 27}, "assignee": {"id": 1059}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "assignee": {"id": 552}, "organization": {"id": 666}, "project": {"id": 343, "owner": {"id": 700}, "assignee": {"id": 804}}, "task": {"id": 379, "owner": {"id": 78}, "assignee": {"id": 1057}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 358, "assignee": {"id": 596}, "organization": {"id": 199}, "project": {"id": 397, "owner": {"id": 775}, "assignee": {"id": 820}}, "task": {"id": 374, "owner": {"id": 51}, "assignee": {"id": 1082}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 312, "assignee": {"id": 549}, "organization": {"id": 652}, "project": {"id": 319, "owner": {"id": 793}, "assignee": {"id": 889}}, "task": {"id": 378, "owner": {"id": 56}, "assignee": {"id": 1069}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 372, "assignee": {"id": 550}, "organization": {"id": 157}, "project": {"id": 349, "owner": {"id": 729}, "assignee": {"id": 882}}, "task": {"id": 354, "owner": {"id": 62}, "assignee": {"id": 1095}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 329, "assignee": {"id": 579}, "organization": {"id": 648}, "project": {"id": 349, "owner": {"id": 729}, "assignee": {"id": 847}}, "task": {"id": 316, "owner": {"id": 51}, "assignee": {"id": 1030}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 357, "assignee": {"id": 546}, "organization": {"id": 190}, "project": {"id": 301, "owner": {"id": 732}, "assignee": {"id": 801}}, "task": {"id": 383, "owner": {"id": 14}, "assignee": {"id": 1035}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 365, "assignee": {"id": 529}, "organization": {"id": 699}, "project": {"id": 364, "owner": {"id": 773}, "assignee": {"id": 806}}, "task": {"id": 312, "owner": {"id": 40}, "assignee": {"id": 1058}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "assignee": {"id": 516}, "organization": {"id": 174}, "project": {"id": 382, "owner": {"id": 760}, "assignee": {"id": 876}}, "task": {"id": 301, "owner": {"id": 82}, "assignee": {"id": 1061}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "assignee": {"id": 592}, "organization": {"id": 692}, "project": {"id": 368, "owner": {"id": 787}, "assignee": {"id": 851}}, "task": {"id": 315, "owner": {"id": 47}, "assignee": {"id": 1022}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "assignee": {"id": 553}, "organization": {"id": 171}, "project": {"id": 333, "owner": {"id": 705}, "assignee": {"id": 821}}, "task": {"id": 370, "owner": {"id": 16}, "assignee": {"id": 1000}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "assignee": {"id": 521}, "organization": {"id": 622}, "project": {"id": 386, "owner": {"id": 738}, "assignee": {"id": 837}}, "task": {"id": 349, "owner": {"id": 89}, "assignee": {"id": 1010}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 311, "assignee": {"id": 560}, "organization": {"id": 145}, "project": {"id": 346, "owner": {"id": 771}, "assignee": {"id": 855}}, "task": {"id": 350, "owner": {"id": 51}, "assignee": {"id": 1023}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 306, "assignee": {"id": 538}, "organization": {"id": 627}, "project": {"id": 369, "owner": {"id": 767}, "assignee": {"id": 825}}, "task": {"id": 325, "owner": {"id": 22}, "assignee": {"id": 1073}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 393, "assignee": {"id": 566}, "organization": {"id": 150}, "project": {"id": 303, "owner": {"id": 779}, "assignee": {"id": 873}}, "task": {"id": 391, "owner": {"id": 99}, "assignee": {"id": 1023}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 309, "assignee": {"id": 558}, "organization": {"id": 651}, "project": {"id": 398, "owner": {"id": 732}, "assignee": {"id": 873}}, "task": {"id": 371, "owner": {"id": 56}, "assignee": {"id": 1057}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 356, "assignee": {"id": 526}, "organization": {"id": 158}, "project": {"id": 372, "owner": {"id": 770}, "assignee": {"id": 833}}, "task": {"id": 307, "owner": {"id": 87}, "assignee": {"id": 1087}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 392, "assignee": {"id": 541}, "organization": {"id": 638}, "project": {"id": 359, "owner": {"id": 719}, "assignee": {"id": 806}}, "task": {"id": 396, "owner": {"id": 55}, "assignee": {"id": 1017}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "assignee": {"id": 541}, "organization": {"id": 114}, "project": {"id": 375, "owner": {"id": 752}, "assignee": {"id": 858}}, "task": {"id": 391, "owner": {"id": 60}, "assignee": {"id": 1032}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "assignee": {"id": 509}, "organization": {"id": 689}, "project": {"id": 354, "owner": {"id": 752}, "assignee": {"id": 869}}, "task": {"id": 305, "owner": {"id": 91}, "assignee": {"id": 1029}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "assignee": {"id": 503}, "organization": {"id": 105}, "project": {"id": 357, "owner": {"id": 772}, "assignee": {"id": 860}}, "task": {"id": 360, "owner": {"id": 85}, "assignee": {"id": 1049}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "assignee": {"id": 520}, "organization": {"id": 601}, "project": {"id": 303, "owner": {"id": 782}, "assignee": {"id": 831}}, "task": {"id": 388, "owner": {"id": 39}, "assignee": {"id": 1055}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 327, "assignee": {"id": 565}, "organization": {"id": 177}, "project": {"id": 317, "owner": {"id": 731}, "assignee": {"id": 843}}, "task": {"id": 340, "owner": {"id": 3}, "assignee": {"id": 1018}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 312, "assignee": {"id": 521}, "organization": {"id": 633}, "project": {"id": 343, "owner": {"id": 783}, "assignee": {"id": 890}}, "task": {"id": 351, "owner": {"id": 80}, "assignee": {"id": 1081}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 394, "assignee": {"id": 502}, "organization": {"id": 110}, "project": {"id": 346, "owner": {"id": 733}, "assignee": {"id": 882}}, "task": {"id": 303, "owner": {"id": 13}, "assignee": {"id": 1032}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 372, "assignee": {"id": 551}, "organization": {"id": 642}, "project": {"id": 333, "owner": {"id": 744}, "assignee": {"id": 820}}, "task": {"id": 342, "owner": {"id": 12}, "assignee": {"id": 1040}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 349, "assignee": {"id": 540}, "organization": {"id": 141}, "project": {"id": 391, "owner": {"id": 778}, "assignee": {"id": 871}}, "task": {"id": 328, "owner": {"id": 77}, "assignee": {"id": 1038}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 376, "assignee": {"id": 583}, "organization": {"id": 622}, "project": {"id": 352, "owner": {"id": 718}, "assignee": {"id": 865}}, "task": {"id": 378, "owner": {"id": 86}, "assignee": {"id": 1047}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "assignee": {"id": 593}, "organization": {"id": 101}, "project": {"id": 392, "owner": {"id": 724}, "assignee": {"id": 891}}, "task": {"id": 312, "owner": {"id": 25}, "assignee": {"id": 1088}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "assignee": {"id": 538}, "organization": {"id": 630}, "project": {"id": 322, "owner": {"id": 765}, "assignee": {"id": 864}}, "task": {"id": 346, "owner": {"id": 79}, "assignee": {"id": 1073}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "assignee": {"id": 576}, "organization": {"id": 170}, "project": {"id": 374, "owner": {"id": 702}, "assignee": {"id": 853}}, "task": {"id": 376, "owner": {"id": 94}, "assignee": {"id": 1093}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "assignee": {"id": 572}, "organization": {"id": 616}, "project": {"id": 328, "owner": {"id": 760}, "assignee": {"id": 809}}, "task": {"id": 307, "owner": {"id": 74}, "assignee": {"id": 1038}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 312, "assignee": {"id": 584}, "organization": {"id": 106}, "project": {"id": 328, "owner": {"id": 784}, "assignee": {"id": 854}}, "task": {"id": 332, "owner": {"id": 78}, "assignee": {"id": 1069}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 390, "assignee": {"id": 568}, "organization": {"id": 667}, "project": {"id": 359, "owner": {"id": 765}, "assignee": {"id": 840}}, "task": {"id": 368, "owner": {"id": 76}, "assignee": {"id": 1024}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 382, "assignee": {"id": 558}, "organization": {"id": 163}, "project": {"id": 379, "owner": {"id": 704}, "assignee": {"id": 843}}, "task": {"id": 324, "owner": {"id": 95}, "assignee": {"id": 1069}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 309, "assignee": {"id": 592}, "organization": {"id": 688}, "project": {"id": 364, "owner": {"id": 788}, "assignee": {"id": 879}}, "task": {"id": 343, "owner": {"id": 97}, "assignee": {"id": 1093}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 373, "assignee": {"id": 557}, "organization": {"id": 163}, "project": {"id": 306, "owner": {"id": 729}, "assignee": {"id": 872}}, "task": {"id": 395, "owner": {"id": 97}, "assignee": {"id": 1093}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 329, "assignee": {"id": 565}, "organization": {"id": 600}, "project": {"id": 303, "owner": {"id": 732}, "assignee": {"id": 811}}, "task": {"id": 332, "owner": {"id": 21}, "assignee": {"id": 1024}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "assignee": {"id": 553}, "organization": {"id": 101}, "project": {"id": 387, "owner": {"id": 782}, "assignee": {"id": 878}}, "task": {"id": 339, "owner": {"id": 15}, "assignee": {"id": 1038}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "assignee": {"id": 517}, "organization": {"id": 626}, "project": {"id": 318, "owner": {"id": 701}, "assignee": {"id": 804}}, "task": {"id": 389, "owner": {"id": 49}, "assignee": {"id": 1070}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 348, "assignee": {"id": 522}, "organization": {"id": 108}, "project": {"id": 388, "owner": {"id": 724}, "assignee": {"id": 828}}, "task": {"id": 333, "owner": {"id": 67}, "assignee": {"id": 1062}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 50, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "assignee": {"id": 538}, "organization": {"id": 621}, "project": {"id": 311, "owner": {"id": 708}, "assignee": {"id": 836}}, "task": {"id": 356, "owner": {"id": 50}, "assignee": {"id": 1036}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 362, "assignee": {"id": 528}, "organization": {"id": 142}, "project": {"id": 389, "owner": {"id": 740}, "assignee": {"id": 810}}, "task": {"id": 390, "owner": {"id": 13}, "assignee": {"id": 1032}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 308, "assignee": {"id": 558}, "organization": {"id": 624}, "project": {"id": 311, "owner": {"id": 722}, "assignee": {"id": 835}}, "task": {"id": 328, "owner": {"id": 93}, "assignee": {"id": 1014}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 373, "assignee": {"id": 519}, "organization": {"id": 106}, "project": {"id": 360, "owner": {"id": 789}, "assignee": {"id": 889}}, "task": {"id": 351, "owner": {"id": 35}, "assignee": {"id": 1059}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_OWNER_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 341, "assignee": {"id": 581}, "organization": {"id": 691}, "project": {"id": 326, "owner": {"id": 790}, "assignee": {"id": 804}}, "task": {"id": 305, "owner": {"id": 49}, "assignee": {"id": 1042}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 315, "assignee": {"id": 557}, "organization": {"id": 142}, "project": {"id": 362, "owner": {"id": 726}, "assignee": {"id": 834}}, "task": {"id": 307, "owner": {"id": 950}, "assignee": {"id": 62}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 314, "assignee": {"id": 529}, "organization": {"id": 699}, "project": {"id": 323, "owner": {"id": 749}, "assignee": {"id": 824}}, "task": {"id": 391, "owner": {"id": 990}, "assignee": {"id": 85}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "assignee": {"id": 570}, "organization": {"id": 105}, "project": {"id": 396, "owner": {"id": 774}, "assignee": {"id": 816}}, "task": {"id": 316, "owner": {"id": 978}, "assignee": {"id": 25}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "assignee": {"id": 518}, "organization": {"id": 609}, "project": {"id": 397, "owner": {"id": 728}, "assignee": {"id": 826}}, "task": {"id": 359, "owner": {"id": 903}, "assignee": {"id": 85}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "assignee": {"id": 527}, "organization": {"id": 124}, "project": {"id": 365, "owner": {"id": 752}, "assignee": {"id": 802}}, "task": {"id": 363, "owner": {"id": 921}, "assignee": {"id": 38}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "assignee": {"id": 517}, "organization": {"id": 664}, "project": {"id": 358, "owner": {"id": 724}, "assignee": {"id": 898}}, "task": {"id": 335, "owner": {"id": 942}, "assignee": {"id": 17}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 314, "assignee": {"id": 578}, "organization": {"id": 169}, "project": {"id": 386, "owner": {"id": 787}, "assignee": {"id": 818}}, "task": {"id": 368, "owner": {"id": 993}, "assignee": {"id": 42}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 363, "assignee": {"id": 579}, "organization": {"id": 692}, "project": {"id": 330, "owner": {"id": 715}, "assignee": {"id": 848}}, "task": {"id": 305, "owner": {"id": 982}, "assignee": {"id": 60}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 325, "assignee": {"id": 593}, "organization": {"id": 150}, "project": {"id": 337, "owner": {"id": 768}, "assignee": {"id": 856}}, "task": {"id": 353, "owner": {"id": 999}, "assignee": {"id": 92}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 312, "assignee": {"id": 517}, "organization": {"id": 667}, "project": {"id": 307, "owner": {"id": 752}, "assignee": {"id": 877}}, "task": {"id": 344, "owner": {"id": 940}, "assignee": {"id": 20}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 304, "assignee": {"id": 589}, "organization": {"id": 148}, "project": {"id": 397, "owner": {"id": 742}, "assignee": {"id": 827}}, "task": {"id": 310, "owner": {"id": 950}, "assignee": {"id": 42}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 360, "assignee": {"id": 591}, "organization": {"id": 670}, "project": {"id": 387, "owner": {"id": 743}, "assignee": {"id": 878}}, "task": {"id": 356, "owner": {"id": 996}, "assignee": {"id": 27}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "assignee": {"id": 516}, "organization": {"id": 134}, "project": {"id": 318, "owner": {"id": 780}, "assignee": {"id": 868}}, "task": {"id": 387, "owner": {"id": 966}, "assignee": {"id": 1}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "assignee": {"id": 570}, "organization": {"id": 680}, "project": {"id": 385, "owner": {"id": 741}, "assignee": {"id": 880}}, "task": {"id": 323, "owner": {"id": 932}, "assignee": {"id": 79}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "assignee": {"id": 545}, "organization": {"id": 166}, "project": {"id": 345, "owner": {"id": 705}, "assignee": {"id": 864}}, "task": {"id": 341, "owner": {"id": 941}, "assignee": {"id": 69}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "assignee": {"id": 565}, "organization": {"id": 680}, "project": {"id": 399, "owner": {"id": 788}, "assignee": {"id": 805}}, "task": {"id": 349, "owner": {"id": 973}, "assignee": {"id": 39}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 370, "assignee": {"id": 560}, "organization": {"id": 181}, "project": {"id": 367, "owner": {"id": 769}, "assignee": {"id": 877}}, "task": {"id": 374, "owner": {"id": 973}, "assignee": {"id": 79}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 338, "assignee": {"id": 598}, "organization": {"id": 635}, "project": {"id": 300, "owner": {"id": 750}, "assignee": {"id": 804}}, "task": {"id": 318, "owner": {"id": 949}, "assignee": {"id": 96}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"id": 381, "assignee": {"id": 546}, "organization": {"id": 172}, "project": {"id": 339, "owner": {"id": 706}, "assignee": {"id": 844}}, "task": {"id": 386, "owner": {"id": 982}, "assignee": {"id": 13}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 373, "assignee": {"id": 579}, "organization": {"id": 602}, "project": {"id": 323, "owner": {"id": 700}, "assignee": {"id": 898}}, "task": {"id": 363, "owner": {"id": 959}, "assignee": {"id": 24}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 364, "assignee": {"id": 511}, "organization": {"id": 149}, "project": {"id": 329, "owner": {"id": 702}, "assignee": {"id": 820}}, "task": {"id": 374, "owner": {"id": 928}, "assignee": {"id": 25}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 357, "assignee": {"id": 507}, "organization": {"id": 644}, "project": {"id": 318, "owner": {"id": 772}, "assignee": {"id": 863}}, "task": {"id": 374, "owner": {"id": 917}, "assignee": {"id": 29}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "assignee": {"id": 590}, "organization": {"id": 118}, "project": {"id": 318, "owner": {"id": 789}, "assignee": {"id": 857}}, "task": {"id": 375, "owner": {"id": 980}, "assignee": {"id": 28}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "assignee": {"id": 531}, "organization": {"id": 617}, "project": {"id": 389, "owner": {"id": 745}, "assignee": {"id": 866}}, "task": {"id": 396, "owner": {"id": 971}, "assignee": {"id": 33}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "assignee": {"id": 588}, "organization": {"id": 122}, "project": {"id": 338, "owner": {"id": 797}, "assignee": {"id": 810}}, "task": {"id": 354, "owner": {"id": 922}, "assignee": {"id": 35}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "assignee": {"id": 516}, "organization": {"id": 685}, "project": {"id": 314, "owner": {"id": 711}, "assignee": {"id": 895}}, "task": {"id": 397, "owner": {"id": 941}, "assignee": {"id": 83}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 382, "assignee": {"id": 565}, "organization": {"id": 189}, "project": {"id": 344, "owner": {"id": 701}, "assignee": {"id": 818}}, "task": {"id": 386, "owner": {"id": 938}, "assignee": {"id": 52}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 302, "assignee": {"id": 586}, "organization": {"id": 688}, "project": {"id": 309, "owner": {"id": 749}, "assignee": {"id": 868}}, "task": {"id": 311, "owner": {"id": 900}, "assignee": {"id": 13}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 362, "assignee": {"id": 586}, "organization": {"id": 142}, "project": {"id": 395, "owner": {"id": 762}, "assignee": {"id": 829}}, "task": {"id": 301, "owner": {"id": 979}, "assignee": {"id": 80}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 390, "assignee": {"id": 538}, "organization": {"id": 681}, "project": {"id": 350, "owner": {"id": 701}, "assignee": {"id": 857}}, "task": {"id": 324, "owner": {"id": 963}, "assignee": {"id": 7}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 331, "assignee": {"id": 581}, "organization": {"id": 120}, "project": {"id": 386, "owner": {"id": 738}, "assignee": {"id": 801}}, "task": {"id": 336, "owner": {"id": 938}, "assignee": {"id": 13}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 356, "assignee": {"id": 571}, "organization": {"id": 643}, "project": {"id": 354, "owner": {"id": 790}, "assignee": {"id": 881}}, "task": {"id": 326, "owner": {"id": 983}, "assignee": {"id": 39}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "assignee": {"id": 535}, "organization": {"id": 130}, "project": {"id": 346, "owner": {"id": 704}, "assignee": {"id": 810}}, "task": {"id": 320, "owner": {"id": 976}, "assignee": {"id": 32}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 320, "assignee": {"id": 567}, "organization": {"id": 655}, "project": {"id": 368, "owner": {"id": 754}, "assignee": {"id": 854}}, "task": {"id": 358, "owner": {"id": 956}, "assignee": {"id": 49}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "assignee": {"id": 564}, "organization": {"id": 104}, "project": {"id": 385, "owner": {"id": 725}, "assignee": {"id": 848}}, "task": {"id": 330, "owner": {"id": 926}, "assignee": {"id": 19}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "assignee": {"id": 566}, "organization": {"id": 695}, "project": {"id": 312, "owner": {"id": 752}, "assignee": {"id": 864}}, "task": {"id": 345, "owner": {"id": 924}, "assignee": {"id": 74}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 376, "assignee": {"id": 500}, "organization": {"id": 114}, "project": {"id": 367, "owner": {"id": 760}, "assignee": {"id": 804}}, "task": {"id": 308, "owner": {"id": 996}, "assignee": {"id": 48}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 360, "assignee": {"id": 507}, "organization": {"id": 680}, "project": {"id": 390, "owner": {"id": 720}, "assignee": {"id": 860}}, "task": {"id": 389, "owner": {"id": 929}, "assignee": {"id": 16}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 359, "assignee": {"id": 568}, "organization": {"id": 142}, "project": {"id": 329, "owner": {"id": 711}, "assignee": {"id": 839}}, "task": {"id": 388, "owner": {"id": 949}, "assignee": {"id": 20}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"id": 303, "assignee": {"id": 565}, "organization": {"id": 666}, "project": {"id": 393, "owner": {"id": 722}, "assignee": {"id": 830}}, "task": {"id": 318, "owner": {"id": 999}, "assignee": {"id": 80}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 352, "assignee": {"id": 573}, "organization": {"id": 162}, "project": {"id": 380, "owner": {"id": 792}, "assignee": {"id": 839}}, "task": {"id": 391, "owner": {"id": 985}, "assignee": {"id": 86}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 319, "assignee": {"id": 531}, "organization": {"id": 662}, "project": {"id": 320, "owner": {"id": 732}, "assignee": {"id": 875}}, "task": {"id": 391, "owner": {"id": 991}, "assignee": {"id": 77}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "assignee": {"id": 531}, "organization": {"id": 187}, "project": {"id": 317, "owner": {"id": 739}, "assignee": {"id": 800}}, "task": {"id": 350, "owner": {"id": 909}, "assignee": {"id": 51}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "assignee": {"id": 536}, "organization": {"id": 651}, "project": {"id": 302, "owner": {"id": 745}, "assignee": {"id": 850}}, "task": {"id": 375, "owner": {"id": 919}, "assignee": {"id": 32}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "assignee": {"id": 592}, "organization": {"id": 110}, "project": {"id": 352, "owner": {"id": 779}, "assignee": {"id": 845}}, "task": {"id": 385, "owner": {"id": 967}, "assignee": {"id": 48}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "assignee": {"id": 574}, "organization": {"id": 612}, "project": {"id": 325, "owner": {"id": 735}, "assignee": {"id": 828}}, "task": {"id": 380, "owner": {"id": 997}, "assignee": {"id": 86}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 319, "assignee": {"id": 597}, "organization": {"id": 176}, "project": {"id": 371, "owner": {"id": 706}, "assignee": {"id": 823}}, "task": {"id": 340, "owner": {"id": 950}, "assignee": {"id": 10}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 334, "assignee": {"id": 560}, "organization": {"id": 655}, "project": {"id": 306, "owner": {"id": 738}, "assignee": {"id": 893}}, "task": {"id": 338, "owner": {"id": 907}, "assignee": {"id": 18}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 336, "assignee": {"id": 518}, "organization": {"id": 150}, "project": {"id": 386, "owner": {"id": 753}, "assignee": {"id": 840}}, "task": {"id": 348, "owner": {"id": 919}, "assignee": {"id": 9}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_TASK_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 332, "assignee": {"id": 551}, "organization": {"id": 638}, "project": {"id": 331, "owner": {"id": 703}, "assignee": {"id": 892}}, "task": {"id": 303, "owner": {"id": 956}, "assignee": {"id": 39}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 349, "assignee": {"id": 78}, "organization": {"id": 190}, "project": {"id": 345, "owner": {"id": 799}, "assignee": {"id": 891}}, "task": {"id": 327, "owner": {"id": 909}, "assignee": {"id": 1027}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 396, "assignee": {"id": 77}, "organization": {"id": 626}, "project": {"id": 359, "owner": {"id": 736}, "assignee": {"id": 861}}, "task": {"id": 348, "owner": {"id": 948}, "assignee": {"id": 1092}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "assignee": {"id": 21}, "organization": {"id": 161}, "project": {"id": 323, "owner": {"id": 739}, "assignee": {"id": 898}}, "task": {"id": 395, "owner": {"id": 922}, "assignee": {"id": 1032}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "assignee": {"id": 98}, "organization": {"id": 609}, "project": {"id": 322, "owner": {"id": 768}, "assignee": {"id": 885}}, "task": {"id": 362, "owner": {"id": 981}, "assignee": {"id": 1052}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "assignee": {"id": 74}, "organization": {"id": 178}, "project": {"id": 318, "owner": {"id": 754}, "assignee": {"id": 813}}, "task": {"id": 320, "owner": {"id": 935}, "assignee": {"id": 1091}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "assignee": {"id": 74}, "organization": {"id": 677}, "project": {"id": 372, "owner": {"id": 776}, "assignee": {"id": 836}}, "task": {"id": 384, "owner": {"id": 964}, "assignee": {"id": 1009}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 304, "assignee": {"id": 11}, "organization": {"id": 192}, "project": {"id": 370, "owner": {"id": 715}, "assignee": {"id": 822}}, "task": {"id": 358, "owner": {"id": 944}, "assignee": {"id": 1051}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 337, "assignee": {"id": 50}, "organization": {"id": 671}, "project": {"id": 354, "owner": {"id": 760}, "assignee": {"id": 824}}, "task": {"id": 318, "owner": {"id": 941}, "assignee": {"id": 1066}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 366, "assignee": {"id": 44}, "organization": {"id": 150}, "project": {"id": 348, "owner": {"id": 720}, "assignee": {"id": 835}}, "task": {"id": 358, "owner": {"id": 909}, "assignee": {"id": 1049}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 324, "assignee": {"id": 23}, "organization": {"id": 696}, "project": {"id": 389, "owner": {"id": 768}, "assignee": {"id": 894}}, "task": {"id": 353, "owner": {"id": 940}, "assignee": {"id": 1008}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 333, "assignee": {"id": 53}, "organization": {"id": 196}, "project": {"id": 316, "owner": {"id": 764}, "assignee": {"id": 803}}, "task": {"id": 393, "owner": {"id": 961}, "assignee": {"id": 1064}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 359, "assignee": {"id": 2}, "organization": {"id": 661}, "project": {"id": 300, "owner": {"id": 714}, "assignee": {"id": 853}}, "task": {"id": 374, "owner": {"id": 948}, "assignee": {"id": 1017}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "assignee": {"id": 98}, "organization": {"id": 131}, "project": {"id": 348, "owner": {"id": 716}, "assignee": {"id": 862}}, "task": {"id": 303, "owner": {"id": 951}, "assignee": {"id": 1047}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "assignee": {"id": 17}, "organization": {"id": 626}, "project": {"id": 360, "owner": {"id": 769}, "assignee": {"id": 875}}, "task": {"id": 342, "owner": {"id": 949}, "assignee": {"id": 1088}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "assignee": {"id": 46}, "organization": {"id": 169}, "project": {"id": 383, "owner": {"id": 708}, "assignee": {"id": 820}}, "task": {"id": 375, "owner": {"id": 902}, "assignee": {"id": 1039}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "assignee": {"id": 6}, "organization": {"id": 690}, "project": {"id": 370, "owner": {"id": 745}, "assignee": {"id": 877}}, "task": {"id": 346, "owner": {"id": 917}, "assignee": {"id": 1037}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 307, "assignee": {"id": 48}, "organization": {"id": 197}, "project": {"id": 311, "owner": {"id": 795}, "assignee": {"id": 802}}, "task": {"id": 393, "owner": {"id": 951}, "assignee": {"id": 1082}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 301, "assignee": {"id": 82}, "organization": {"id": 671}, "project": {"id": 365, "owner": {"id": 705}, "assignee": {"id": 874}}, "task": {"id": 340, "owner": {"id": 972}, "assignee": {"id": 1020}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 31, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 374, "assignee": {"id": 31}, "organization": {"id": 120}, "project": {"id": 364, "owner": {"id": 710}, "assignee": {"id": 843}}, "task": {"id": 367, "owner": {"id": 980}, "assignee": {"id": 1065}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 347, "assignee": {"id": 49}, "organization": {"id": 607}, "project": {"id": 321, "owner": {"id": 714}, "assignee": {"id": 813}}, "task": {"id": 352, "owner": {"id": 969}, "assignee": {"id": 1095}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 305, "assignee": {"id": 32}, "organization": {"id": 178}, "project": {"id": 377, "owner": {"id": 785}, "assignee": {"id": 889}}, "task": {"id": 323, "owner": {"id": 967}, "assignee": {"id": 1011}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 377, "assignee": {"id": 61}, "organization": {"id": 644}, "project": {"id": 355, "owner": {"id": 784}, "assignee": {"id": 875}}, "task": {"id": 384, "owner": {"id": 912}, "assignee": {"id": 1091}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "assignee": {"id": 11}, "organization": {"id": 194}, "project": {"id": 386, "owner": {"id": 796}, "assignee": {"id": 870}}, "task": {"id": 389, "owner": {"id": 924}, "assignee": {"id": 1049}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "assignee": {"id": 81}, "organization": {"id": 630}, "project": {"id": 371, "owner": {"id": 728}, "assignee": {"id": 828}}, "task": {"id": 348, "owner": {"id": 949}, "assignee": {"id": 1097}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "assignee": {"id": 29}, "organization": {"id": 137}, "project": {"id": 336, "owner": {"id": 759}, "assignee": {"id": 889}}, "task": {"id": 336, "owner": {"id": 929}, "assignee": {"id": 1006}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "assignee": {"id": 55}, "organization": {"id": 659}, "project": {"id": 370, "owner": {"id": 795}, "assignee": {"id": 899}}, "task": {"id": 334, "owner": {"id": 943}, "assignee": {"id": 1050}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 313, "assignee": {"id": 0}, "organization": {"id": 176}, "project": {"id": 344, "owner": {"id": 751}, "assignee": {"id": 871}}, "task": {"id": 382, "owner": {"id": 909}, "assignee": {"id": 1052}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 339, "assignee": {"id": 3}, "organization": {"id": 607}, "project": {"id": 347, "owner": {"id": 756}, "assignee": {"id": 865}}, "task": {"id": 363, "owner": {"id": 954}, "assignee": {"id": 1053}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 393, "assignee": {"id": 36}, "organization": {"id": 195}, "project": {"id": 369, "owner": {"id": 720}, "assignee": {"id": 886}}, "task": {"id": 379, "owner": {"id": 948}, "assignee": {"id": 1012}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 360, "assignee": {"id": 58}, "organization": {"id": 602}, "project": {"id": 357, "owner": {"id": 737}, "assignee": {"id": 869}}, "task": {"id": 392, "owner": {"id": 903}, "assignee": {"id": 1019}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 393, "assignee": {"id": 78}, "organization": {"id": 154}, "project": {"id": 317, "owner": {"id": 763}, "assignee": {"id": 825}}, "task": {"id": 301, "owner": {"id": 914}, "assignee": {"id": 1075}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 374, "assignee": {"id": 83}, "organization": {"id": 650}, "project": {"id": 347, "owner": {"id": 719}, "assignee": {"id": 813}}, "task": {"id": 360, "owner": {"id": 937}, "assignee": {"id": 1047}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "assignee": {"id": 71}, "organization": {"id": 137}, "project": {"id": 369, "owner": {"id": 768}, "assignee": {"id": 834}}, "task": {"id": 325, "owner": {"id": 970}, "assignee": {"id": 1054}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "assignee": {"id": 38}, "organization": {"id": 671}, "project": {"id": 302, "owner": {"id": 785}, "assignee": {"id": 850}}, "task": {"id": 366, "owner": {"id": 935}, "assignee": {"id": 1013}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "assignee": {"id": 43}, "organization": {"id": 181}, "project": {"id": 394, "owner": {"id": 792}, "assignee": {"id": 858}}, "task": {"id": 325, "owner": {"id": 970}, "assignee": {"id": 1008}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "assignee": {"id": 44}, "organization": {"id": 673}, "project": {"id": 376, "owner": {"id": 760}, "assignee": {"id": 882}}, "task": {"id": 316, "owner": {"id": 967}, "assignee": {"id": 1010}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 324, "assignee": {"id": 27}, "organization": {"id": 176}, "project": {"id": 316, "owner": {"id": 780}, "assignee": {"id": 829}}, "task": {"id": 320, "owner": {"id": 961}, "assignee": {"id": 1051}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 350, "assignee": {"id": 26}, "organization": {"id": 680}, "project": {"id": 399, "owner": {"id": 779}, "assignee": {"id": 836}}, "task": {"id": 399, "owner": {"id": 977}, "assignee": {"id": 1063}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 357, "assignee": {"id": 52}, "organization": {"id": 137}, "project": {"id": 359, "owner": {"id": 787}, "assignee": {"id": 888}}, "task": {"id": 349, "owner": {"id": 946}, "assignee": {"id": 1074}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 313, "assignee": {"id": 74}, "organization": {"id": 610}, "project": {"id": 386, "owner": {"id": 761}, "assignee": {"id": 845}}, "task": {"id": 329, "owner": {"id": 934}, "assignee": {"id": 1004}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 381, "assignee": {"id": 11}, "organization": {"id": 162}, "project": {"id": 379, "owner": {"id": 756}, "assignee": {"id": 898}}, "task": {"id": 380, "owner": {"id": 944}, "assignee": {"id": 1014}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 353, "assignee": {"id": 4}, "organization": {"id": 636}, "project": {"id": 335, "owner": {"id": 707}, "assignee": {"id": 852}}, "task": {"id": 306, "owner": {"id": 919}, "assignee": {"id": 1015}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "assignee": {"id": 98}, "organization": {"id": 199}, "project": {"id": 378, "owner": {"id": 753}, "assignee": {"id": 879}}, "task": {"id": 353, "owner": {"id": 961}, "assignee": {"id": 1020}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "assignee": {"id": 25}, "organization": {"id": 630}, "project": {"id": 327, "owner": {"id": 722}, "assignee": {"id": 822}}, "task": {"id": 348, "owner": {"id": 926}, "assignee": {"id": 1062}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "assignee": {"id": 96}, "organization": {"id": 116}, "project": {"id": 338, "owner": {"id": 724}, "assignee": {"id": 853}}, "task": {"id": 374, "owner": {"id": 964}, "assignee": {"id": 1009}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "assignee": {"id": 58}, "organization": {"id": 660}, "project": {"id": 371, "owner": {"id": 788}, "assignee": {"id": 878}}, "task": {"id": 357, "owner": {"id": 920}, "assignee": {"id": 1054}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 354, "assignee": {"id": 9}, "organization": {"id": 120}, "project": {"id": 381, "owner": {"id": 738}, "assignee": {"id": 892}}, "task": {"id": 391, "owner": {"id": 959}, "assignee": {"id": 1001}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 369, "assignee": {"id": 45}, "organization": {"id": 686}, "project": {"id": 398, "owner": {"id": 775}, "assignee": {"id": 895}}, "task": {"id": 398, "owner": {"id": 932}, "assignee": {"id": 1087}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 348, "assignee": {"id": 0}, "organization": {"id": 155}, "project": {"id": 303, "owner": {"id": 762}, "assignee": {"id": 887}}, "task": {"id": 313, "owner": {"id": 944}, "assignee": {"id": 1005}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 388, "assignee": {"id": 4}, "organization": {"id": 650}, "project": {"id": 344, "owner": {"id": 721}, "assignee": {"id": 870}}, "task": {"id": 342, "owner": {"id": 925}, "assignee": {"id": 1006}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 347, "assignee": {"id": 560}, "organization": {"id": 119}, "project": {"id": 383, "owner": {"id": 765}, "assignee": {"id": 851}}, "task": {"id": 368, "owner": {"id": 942}, "assignee": {"id": 1079}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 316, "assignee": {"id": 594}, "organization": {"id": 606}, "project": {"id": 302, "owner": {"id": 798}, "assignee": {"id": 849}}, "task": {"id": 344, "owner": {"id": 992}, "assignee": {"id": 1086}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "assignee": {"id": 539}, "organization": {"id": 164}, "project": {"id": 314, "owner": {"id": 738}, "assignee": {"id": 834}}, "task": {"id": 317, "owner": {"id": 981}, "assignee": {"id": 1007}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "assignee": {"id": 526}, "organization": {"id": 636}, "project": {"id": 318, "owner": {"id": 700}, "assignee": {"id": 891}}, "task": {"id": 348, "owner": {"id": 993}, "assignee": {"id": 1070}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "assignee": {"id": 503}, "organization": {"id": 184}, "project": {"id": 392, "owner": {"id": 754}, "assignee": {"id": 853}}, "task": {"id": 367, "owner": {"id": 960}, "assignee": {"id": 1082}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "assignee": {"id": 571}, "organization": {"id": 615}, "project": {"id": 362, "owner": {"id": 778}, "assignee": {"id": 849}}, "task": {"id": 318, "owner": {"id": 915}, "assignee": {"id": 1010}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 318, "assignee": {"id": 530}, "organization": {"id": 146}, "project": {"id": 333, "owner": {"id": 749}, "assignee": {"id": 889}}, "task": {"id": 343, "owner": {"id": 964}, "assignee": {"id": 1028}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 377, "assignee": {"id": 569}, "organization": {"id": 600}, "project": {"id": 395, "owner": {"id": 795}, "assignee": {"id": 886}}, "task": {"id": 380, "owner": {"id": 992}, "assignee": {"id": 1012}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 345, "assignee": {"id": 569}, "organization": {"id": 197}, "project": {"id": 313, "owner": {"id": 728}, "assignee": {"id": 854}}, "task": {"id": 352, "owner": {"id": 989}, "assignee": {"id": 1020}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 304, "assignee": {"id": 569}, "organization": {"id": 648}, "project": {"id": 308, "owner": {"id": 787}, "assignee": {"id": 803}}, "task": {"id": 317, "owner": {"id": 912}, "assignee": {"id": 1030}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 346, "assignee": {"id": 503}, "organization": {"id": 124}, "project": {"id": 348, "owner": {"id": 730}, "assignee": {"id": 877}}, "task": {"id": 373, "owner": {"id": 933}, "assignee": {"id": 1062}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 367, "assignee": {"id": 570}, "organization": {"id": 609}, "project": {"id": 388, "owner": {"id": 734}, "assignee": {"id": 850}}, "task": {"id": 300, "owner": {"id": 996}, "assignee": {"id": 1086}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "assignee": {"id": 589}, "organization": {"id": 126}, "project": {"id": 338, "owner": {"id": 701}, "assignee": {"id": 894}}, "task": {"id": 359, "owner": {"id": 972}, "assignee": {"id": 1088}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "assignee": {"id": 536}, "organization": {"id": 614}, "project": {"id": 385, "owner": {"id": 759}, "assignee": {"id": 847}}, "task": {"id": 348, "owner": {"id": 954}, "assignee": {"id": 1049}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "assignee": {"id": 511}, "organization": {"id": 114}, "project": {"id": 321, "owner": {"id": 730}, "assignee": {"id": 874}}, "task": {"id": 323, "owner": {"id": 979}, "assignee": {"id": 1047}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "assignee": {"id": 561}, "organization": {"id": 649}, "project": {"id": 310, "owner": {"id": 705}, "assignee": {"id": 897}}, "task": {"id": 324, "owner": {"id": 917}, "assignee": {"id": 1013}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 390, "assignee": {"id": 500}, "organization": {"id": 188}, "project": {"id": 358, "owner": {"id": 719}, "assignee": {"id": 848}}, "task": {"id": 385, "owner": {"id": 960}, "assignee": {"id": 1086}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 384, "assignee": {"id": 509}, "organization": {"id": 693}, "project": {"id": 314, "owner": {"id": 779}, "assignee": {"id": 828}}, "task": {"id": 367, "owner": {"id": 968}, "assignee": {"id": 1027}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 302, "assignee": {"id": 534}, "organization": {"id": 176}, "project": {"id": 380, "owner": {"id": 765}, "assignee": {"id": 811}}, "task": {"id": 350, "owner": {"id": 985}, "assignee": {"id": 1060}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 376, "assignee": {"id": 531}, "organization": {"id": 601}, "project": {"id": 334, "owner": {"id": 716}, "assignee": {"id": 899}}, "task": {"id": 304, "owner": {"id": 911}, "assignee": {"id": 1071}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 398, "assignee": {"id": 544}, "organization": {"id": 150}, "project": {"id": 361, "owner": {"id": 729}, "assignee": {"id": 814}}, "task": {"id": 310, "owner": {"id": 997}, "assignee": {"id": 1070}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 352, "assignee": {"id": 562}, "organization": {"id": 623}, "project": {"id": 323, "owner": {"id": 735}, "assignee": {"id": 813}}, "task": {"id": 320, "owner": {"id": 965}, "assignee": {"id": 1049}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 389, "assignee": {"id": 531}, "organization": {"id": 174}, "project": {"id": 339, "owner": {"id": 715}, "assignee": {"id": 806}}, "task": {"id": 312, "owner": {"id": 986}, "assignee": {"id": 1072}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "assignee": {"id": 591}, "organization": {"id": 623}, "project": {"id": 320, "owner": {"id": 723}, "assignee": {"id": 833}}, "task": {"id": 374, "owner": {"id": 922}, "assignee": {"id": 1088}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "assignee": {"id": 591}, "organization": {"id": 188}, "project": {"id": 351, "owner": {"id": 755}, "assignee": {"id": 810}}, "task": {"id": 344, "owner": {"id": 973}, "assignee": {"id": 1080}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "assignee": {"id": 506}, "organization": {"id": 675}, "project": {"id": 362, "owner": {"id": 749}, "assignee": {"id": 889}}, "task": {"id": 386, "owner": {"id": 935}, "assignee": {"id": 1069}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 324, "assignee": {"id": 595}, "organization": {"id": 128}, "project": {"id": 321, "owner": {"id": 744}, "assignee": {"id": 843}}, "task": {"id": 388, "owner": {"id": 975}, "assignee": {"id": 1015}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 309, "assignee": {"id": 514}, "organization": {"id": 690}, "project": {"id": 361, "owner": {"id": 721}, "assignee": {"id": 835}}, "task": {"id": 344, "owner": {"id": 948}, "assignee": {"id": 1094}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 309, "assignee": {"id": 565}, "organization": {"id": 157}, "project": {"id": 307, "owner": {"id": 767}, "assignee": {"id": 881}}, "task": {"id": 304, "owner": {"id": 970}, "assignee": {"id": 1052}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 300, "assignee": {"id": 567}, "organization": {"id": 663}, "project": {"id": 314, "owner": {"id": 725}, "assignee": {"id": 843}}, "task": {"id": 328, "owner": {"id": 966}, "assignee": {"id": 1091}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 319, "assignee": {"id": 533}, "organization": {"id": 155}, "project": {"id": 307, "owner": {"id": 788}, "assignee": {"id": 845}}, "task": {"id": 359, "owner": {"id": 907}, "assignee": {"id": 1095}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 372, "assignee": {"id": 598}, "organization": {"id": 647}, "project": {"id": 374, "owner": {"id": 723}, "assignee": {"id": 840}}, "task": {"id": 361, "owner": {"id": 903}, "assignee": {"id": 1063}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "assignee": {"id": 595}, "organization": {"id": 195}, "project": {"id": 320, "owner": {"id": 776}, "assignee": {"id": 800}}, "task": {"id": 389, "owner": {"id": 933}, "assignee": {"id": 1090}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "assignee": {"id": 578}, "organization": {"id": 668}, "project": {"id": 396, "owner": {"id": 709}, "assignee": {"id": 808}}, "task": {"id": 393, "owner": {"id": 956}, "assignee": {"id": 1018}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "assignee": {"id": 506}, "organization": {"id": 149}, "project": {"id": 389, "owner": {"id": 755}, "assignee": {"id": 892}}, "task": {"id": 309, "owner": {"id": 949}, "assignee": {"id": 1062}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "assignee": {"id": 523}, "organization": {"id": 663}, "project": {"id": 306, "owner": {"id": 719}, "assignee": {"id": 818}}, "task": {"id": 393, "owner": {"id": 937}, "assignee": {"id": 1010}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 320, "assignee": {"id": 512}, "organization": {"id": 197}, "project": {"id": 368, "owner": {"id": 726}, "assignee": {"id": 801}}, "task": {"id": 370, "owner": {"id": 926}, "assignee": {"id": 1023}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 311, "assignee": {"id": 538}, "organization": {"id": 690}, "project": {"id": 328, "owner": {"id": 781}, "assignee": {"id": 815}}, "task": {"id": 373, "owner": {"id": 930}, "assignee": {"id": 1068}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 331, "assignee": {"id": 511}, "organization": {"id": 161}, "project": {"id": 308, "owner": {"id": 790}, "assignee": {"id": 866}}, "task": {"id": 376, "owner": {"id": 921}, "assignee": {"id": 1029}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 310, "assignee": {"id": 529}, "organization": {"id": 675}, "project": {"id": 359, "owner": {"id": 718}, "assignee": {"id": 872}}, "task": {"id": 369, "owner": {"id": 966}, "assignee": {"id": 1060}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 359, "assignee": {"id": 509}, "organization": {"id": 185}, "project": {"id": 395, "owner": {"id": 705}, "assignee": {"id": 838}}, "task": {"id": 318, "owner": {"id": 929}, "assignee": {"id": 1064}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 364, "assignee": {"id": 502}, "organization": {"id": 694}, "project": {"id": 375, "owner": {"id": 700}, "assignee": {"id": 801}}, "task": {"id": 394, "owner": {"id": 961}, "assignee": {"id": 1086}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "assignee": {"id": 536}, "organization": {"id": 167}, "project": {"id": 391, "owner": {"id": 758}, "assignee": {"id": 858}}, "task": {"id": 394, "owner": {"id": 904}, "assignee": {"id": 1077}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "assignee": {"id": 547}, "organization": {"id": 631}, "project": {"id": 398, "owner": {"id": 775}, "assignee": {"id": 879}}, "task": {"id": 308, "owner": {"id": 924}, "assignee": {"id": 1067}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "assignee": {"id": 515}, "organization": {"id": 182}, "project": {"id": 358, "owner": {"id": 780}, "assignee": {"id": 883}}, "task": {"id": 333, "owner": {"id": 932}, "assignee": {"id": 1068}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "assignee": {"id": 515}, "organization": {"id": 674}, "project": {"id": 345, "owner": {"id": 732}, "assignee": {"id": 835}}, "task": {"id": 321, "owner": {"id": 985}, "assignee": {"id": 1028}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 305, "assignee": {"id": 522}, "organization": {"id": 101}, "project": {"id": 391, "owner": {"id": 771}, "assignee": {"id": 883}}, "task": {"id": 364, "owner": {"id": 946}, "assignee": {"id": 1042}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 367, "assignee": {"id": 577}, "organization": {"id": 619}, "project": {"id": 381, "owner": {"id": 713}, "assignee": {"id": 856}}, "task": {"id": 312, "owner": {"id": 900}, "assignee": {"id": 1066}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 368, "assignee": {"id": 541}, "organization": {"id": 136}, "project": {"id": 310, "owner": {"id": 743}, "assignee": {"id": 877}}, "task": {"id": 380, "owner": {"id": 995}, "assignee": {"id": 1076}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 350, "assignee": {"id": 589}, "organization": {"id": 601}, "project": {"id": 371, "owner": {"id": 795}, "assignee": {"id": 857}}, "task": {"id": 387, "owner": {"id": 917}, "assignee": {"id": 1043}}}} -} - - - -# jobs_test.gen.rego.py -# # Copyright (C) 2021-2022 Intel Corporation -# # -# # SPDX-License-Identifier: MIT -# -# import csv -# import json -# import random -# import sys -# import os -# from itertools import product -# -# random.seed(42) -# -# NAME = 'jobs' -# -# def read_rules(name): -# rules = [] -# with open(os.path.join(sys.argv[1], f'{name}.csv')) as f: -# reader = csv.DictReader(f) -# for row in reader: -# row = {k.lower():v.lower().replace('n/a','na') for k,v in row.items()} -# row['limit'] = row['limit'].replace('none', 'None') -# found = False -# for col,val in row.items(): -# if col in ["limit", "method", "url", "resource"]: -# continue -# complex_val = [v.strip() for v in val.split(',')] -# if len(complex_val) > 1: -# found = True -# for item in complex_val: -# new_row = row.copy() -# new_row[col] = item -# rules.append(new_row) -# if not found: -# rules.append(row) -# -# return rules -# -# simple_rules = read_rules(NAME) -# -# SCOPES = list({rule['scope'] for rule in simple_rules}) -# CONTEXTS = ['sandbox', 'organization'] -# OWNERSHIPS = ['project:owner', 'project:assignee', 'task:owner', 'task:assignee', 'assignee', 'none'] -# GROUPS = ['admin', 'business', 'user', 'worker', 'none'] -# ORG_ROLES = ['owner', 'maintainer', 'supervisor', 'worker', None] -# SAME_ORG = [True, False] -# -# def RESOURCES(scope): -# if scope == 'list': -# return [None] -# else: -# return [{ -# "id": random.randrange(300, 400), -# "assignee": { "id": random.randrange(500, 600) }, -# "organization": { -# "id": random.randrange(600, 700) -# }, -# "project": { -# "id": random.randrange(300, 400), -# "owner": { "id": random.randrange(700, 800) }, -# "assignee": { "id": random.randrange(800, 900) } -# }, -# "task": { -# "id": random.randrange(300, 400), -# "owner": { "id": random.randrange(900, 1000) }, -# "assignee": { "id": random.randrange(1000, 1100) } -# } -# }] -# -# def is_same_org(org1, org2): -# if org1 != None and org2 != None: -# return org1['id'] == org2['id'] -# elif org1 == None and org2 == None: -# return True -# else: -# return False -# -# def eval_rule(scope, context, ownership, privilege, membership, data): -# if privilege == 'admin': -# return True -# -# rules = list(filter(lambda r: scope == r['scope'], simple_rules)) -# rules = list(filter(lambda r: r['context'] == 'na' or context == r['context'], rules)) -# rules = list(filter(lambda r: r['ownership'] == 'na' or ownership == r['ownership'], rules)) -# rules = list(filter(lambda r: r['membership'] == 'na' or -# ORG_ROLES.index(membership) <= ORG_ROLES.index(r['membership']), rules)) -# rules = list(filter(lambda r: GROUPS.index(privilege) <= GROUPS.index(r['privilege']), rules)) -# resource = data['resource'] -# rules = list(filter(lambda r: not r['limit'] or eval(r['limit'], {'resource': resource}), rules)) -# if not is_same_org(data['auth']['organization'], data['resource']['organization']) and context != 'sandbox': -# return False -# -# return bool(rules) -# -# def get_data(scope, context, ownership, privilege, membership, resource, same_org): -# data = { -# "scope": scope, -# "auth": { -# "user": { "id": random.randrange(0,100), "privilege": privilege }, -# "organization": { -# "id": random.randrange(100,200), -# "owner": { "id": random.randrange(200, 300) }, -# "user": { "role": membership } -# } if context == 'organization' else None -# }, -# "resource": resource -# } -# -# user_id = data['auth']['user']['id'] -# if context == 'organization': -# org_id = data['auth']['organization']['id'] -# if data['auth']['organization']['user']['role'] == 'owner': -# data['auth']['organization']['owner']['id'] = user_id -# -# if same_org: -# data['resource']['organization']['id'] = org_id -# -# if ownership == 'assignee': -# data['resource']['assignee']['id'] = user_id -# -# if ownership == 'project:owner': -# data['resource']['project']['owner']['id'] = user_id -# -# if ownership == 'project:assignee': -# data['resource']['project']['assignee']['id'] = user_id -# -# if ownership == 'task:owner': -# data['resource']['task']['owner']['id'] = user_id -# -# if ownership == 'task:assignee': -# data['resource']['task']['assignee']['id'] = user_id -# -# return data -# -# def _get_name(prefix, **kwargs): -# name = prefix -# for k,v in kwargs.items(): -# if k == 'resource': -# continue -# prefix = '_' + str(k) -# if isinstance(v, dict): -# if 'id' in v: -# v = v.copy() -# v.pop('id') -# if v: -# name += _get_name(prefix, **v) -# else: -# name += ''.join(map(lambda c: c if c.isalnum() else {'@':'_IN_'}.get(c, '_'), -# f'{prefix}_{str(v).upper()}')) -# -# return name -# -# def get_name(scope, context, ownership, privilege, membership, resource, same_org): -# return _get_name('test', **locals()) -# -# def is_valid(scope, context, ownership, privilege, membership, resource, same_org): -# if context == "sandbox" and membership: -# return False -# if scope == 'list' and ownership != 'None': -# return False -# if context == 'sandbox' and same_org == False: -# return False -# -# return True -# -# def gen_test_rego(name): -# with open(f'{name}_test.gen.rego', 'wt') as f: -# f.write(f'package {name}\n\n') -# for scope, context, ownership, privilege, membership, same_org in product( -# SCOPES, CONTEXTS, OWNERSHIPS, GROUPS, ORG_ROLES, SAME_ORG): -# for resource in RESOURCES(scope): -# if not is_valid(scope, context, ownership, privilege, membership, resource, same_org): -# continue -# -# data = get_data(scope, context, ownership, privilege, membership, resource, same_org) -# test_name = get_name(scope, context, ownership, privilege, membership, resource, same_org) -# result = eval_rule(scope, context, ownership, privilege, membership, data) -# f.write('{test_name} {{\n {allow} with input as {data}\n}}\n\n'.format( -# test_name=test_name, allow='allow' if result else 'not allow', -# data=json.dumps(data))) -# -# # Write the script which is used to generate the file -# with open(sys.argv[0]) as this_file: -# f.write(f'\n\n# {os.path.split(sys.argv[0])[1]}\n') -# for line in this_file: -# if line.strip(): -# f.write(f'# {line}') -# else: -# f.write(f'#\n') -# -# # Write rules which are used to generate the file -# with open(os.path.join(sys.argv[1], f'{name}.csv')) as rego_file: -# f.write(f'\n\n# {name}.csv\n') -# for line in rego_file: -# if line.strip(): -# f.write(f'# {line}') -# else: -# f.write(f'#\n') -# -# gen_test_rego(NAME) - -# jobs.csv -# Scope,Resource,Context,Ownership,Limit,Method,URL,Privilege,Membership -# list,N/A,Sandbox,N/A,,GET,/tasks/{id}/jobs,None,N/A -# list,N/A,Organization,N/A,,GET,/tasks/{id}/jobs,None,Worker -# view,Job,Sandbox,None,,GET,/jobs/{id},Admin,N/A -# view,Job,Sandbox,"Project:owner, Project:assignee, Task:owner, Task:assignee, Assignee",,GET,/jobs/{id},None,N/A -# view,Job,Organization,None,,GET,/jobs/{id},User,Maintainer -# view,Job,Organization,"Project:owner, Project:assignee, Task:owner, Task:assignee, Assignee",,GET,/jobs/{id},None,Worker -# update:stage,Job,Sandbox,"None, Assignee",,PATCH,/jobs/{id},Admin,N/A -# update:stage,Job,Sandbox,"Project:owner, Project:assignee, Task:owner, Task:assignee",,PATCH,/jobs/{id},Worker,N/A -# update:stage,Job,Organization,"None, Assignee",,PATCH,/jobs/{id},User,Maintainer -# update:stage,Job,Organization,"Project:owner, Project:assignee, Task:owner, Task:assignee",,PATCH,/jobs/{id},Worker,Worker -# update:state,Job,Sandbox,None,,PATCH,/jobs/{id},Admin,N/A -# update:state,Job,Sandbox,"Project:owner, Project:assignee, Task:owner, Task:assignee, Assignee",,PATCH,/jobs/{id},Worker,N/A -# update:state,Job,Organization,None,,PATCH,/jobs/{id},User,Maintainer -# update:state,Job,Organization,"Project:owner, Project:assignee, Task:owner, Task:assignee, Assignee",,PATCH,/jobs/{id},Worker,Worker -# update:assignee,Job,Sandbox,"None, Assignee",,PATCH,/jobs/{id},Admin,N/A -# update:assignee,Job,Sandbox,"Project:owner, Project:assignee, Task:owner, Task:assignee",,PATCH,/jobs/{id},Worker,N/A -# update:assignee,Job,Organization,"None, Assignee",,PATCH,/jobs/{id},User,Maintainer -# update:assignee,Job,Organization,"Project:owner, Project:assignee, Task:owner, Task:assignee",,PATCH,/jobs/{id},Worker,Worker -# view:annotations,Job,Sandbox,None,,GET,/jobs/{id}/annotations,Admin,N/A -# view:annotations,Job,Sandbox,"Project:owner, Project:assignee, Task:owner, Task:assignee, Assignee",,GET,/jobs/{id}/annotations,None,N/A -# view:annotations,Job,Organization,None,,GET,/jobs/{id}/annotations,User,Maintainer -# view:annotations,Job,Organization,"Project:owner, Project:assignee, Task:owner, Task:assignee, Assignee",,GET,/jobs/{id}/annotations,None,Worker -# export:annotations,Job,Sandbox,None,,GET,/jobs/{id}/annotations?format={format},Admin,N/A -# export:annotations,Job,Sandbox,"Project:owner, Project:assignee, Task:owner, Task:assignee, Assignee",,GET,/jobs/{id}/annotations?format={format},None,N/A -# export:annotations,Job,Organization,None,,GET,/jobs/{id}/annotations?format={format},User,Maintainer -# export:annotations,Job,Organization,"Project:owner, Project:assignee, Task:owner, Task:assignee, Assignee",,GET,/jobs/{id}/annotations?format={format},None,Worker -# export:dataset,Job,Sandbox,None,,GET,/jobs/{id}/dataset,Admin,N/A -# export:dataset,Job,Sandbox,"Project:owner, Project:assignee, Task:owner, Task:assignee, Assignee",,GET,/jobs/{id}/dataset,None,N/A -# export:dataset,Job,Organization,None,,GET,/jobs/{id}/dataset,User,Maintainer -# export:dataset,Job,Organization,"Project:owner, Project:assignee, Task:owner, Task:assignee, Assignee",,GET,/jobs/{id}/dataset,None,Worker -# update:annotations,Job,Sandbox,None,,PATCH,/jobs/{id}/annotations,Admin,N/A -# update:annotations,Job,Sandbox,"Project:owner, Project:assignee, Task:owner, Task:assignee, Assignee",,PATCH,/jobs/{id}/annotations,Worker,N/A -# update:annotations,Job,Organization,None,,PATCH,/jobs/{id}/annotations,User,Maintainer -# update:annotations,Job,Organization,"Project:owner, Project:assignee, Task:owner, Task:assignee, Assignee",,PATCH,/jobs/{id}/annotations,Worker,Worker -# delete:annotations,Job,Sandbox,None,,DELETE,/jobs/{id}/annotations,Admin,N/A -# delete:annotations,Job,Sandbox,"Project:owner, Project:assignee, Task:owner, Task:assignee, Assignee",,DELETE,/jobs/{id}/annotations,Worker,N/A -# delete:annotations,Job,Organization,None,,DELETE,/jobs/{id}/annotations,User,Maintainer -# delete:annotations,Job,Organization,"Project:owner, Project:assignee, Task:owner, Task:assignee, Assignee",,DELETE,/jobs/{id}/annotations,Worker,Worker -# view:data,Job,Sandbox,None,,GET,/jobs/{id}/data,Admin,N/A -# view:data,Job,Sandbox,"Project:owner, Project:assignee, Task:owner, Task:assignee, Assignee",,GET,/jobs/{id}/data,None,N/A -# view:data,Job,Organization,None,,GET,/jobs/{id}/data,User,Maintainer -# view:data,Job,Organization,"Project:owner, Project:assignee, Task:owner, Task:assignee, Assignee",,GET,/jobs/{id}/data,None,Worker -# view:metadata,Job,Sandbox,None,,GET,/jobs/{id}/data/meta,Admin,N/A -# view:metadata,Job,Sandbox,"Project:owner, Project:assignee, Task:owner, Task:assignee, Assignee",,GET,/jobs/{id}/data/meta,None,N/A -# view:metadata,Job,Organization,None,,GET,/jobs/{id}/data/meta,User,Maintainer -# view:metadata,Job,Organization,"Project:owner, Project:assignee, Task:owner, Task:assignee, Assignee",,GET,/jobs/{id}/data/meta,None,Worker -# update:metadata,Job,Sandbox,None,,PATCH,/jobs/{id}/data/meta,Admin,N/A -# update:metadata,Job,Sandbox,"Project:owner, Project:assignee, Task:owner, Task:assignee, Assignee",,PATCH,/jobs/{id}/data/meta,Worker,N/A -# update:metadata,Job,Organization,None,,PATCH,/jobs/{id}/data/meta,User,Maintainer -# update:metadata,Job,Organization,"Project:owner, Project:assignee, Task:owner, Task:assignee, Assignee",,PATCH,/jobs/{id}/data/meta,Worker,Worker -# view:commits,Job,Sandbox,None,,GET,/jobs/{id}/commits,Admin,N/A -# view:commits,Job,Sandbox,"Project:owner, Project:assignee, Task:owner, Task:assignee, Assignee",,GET,/jobs/{id}/commits,None,N/A -# view:commits,Job,Organization,None,,GET,/jobs/{id}/commits,User,Maintainer -# view:commits,Job,Organization,"Project:owner, Project:assignee, Task:owner, Task:assignee, Assignee",,GET,/jobs/{id}/commits,None,Worker -# import:annotations,Job,Sandbox,None,,PUT,/jobs/{id}/annotations?format=,Admin,N/A -# import:annotations,Job,Sandbox,"Project:owner, Project:assignee, Task:owner, Task:assignee, Assignee",,PUT,/jobs/{id}/annotations?format=,Worker,N/A -# import:annotations,Job,Organization,None,,PUT,/jobs/{id}/annotations?format=,User,Maintainer -# import:annotations,Job,Organization,"Project:owner, Project:assignee, Task:owner, Task:assignee, Assignee",,PUT,/jobs/{id}/annotations?format=,Worker,Worker diff --git a/cvat/apps/iam/rules/lambda_test.gen.rego b/cvat/apps/iam/rules/lambda_test.gen.rego deleted file mode 100644 index 5774d6c0..00000000 --- a/cvat/apps/iam/rules/lambda_test.gen.rego +++ /dev/null @@ -1,525 +0,0 @@ -package lambda - -test_scope_CALL_ONLINE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE { - allow with input as {"scope": "call:online", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": null}, "resource": null} -} - -test_scope_CALL_ONLINE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE { - allow with input as {"scope": "call:online", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": null}, "resource": null} -} - -test_scope_CALL_ONLINE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE { - allow with input as {"scope": "call:online", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": null}, "resource": null} -} - -test_scope_CALL_ONLINE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE { - allow with input as {"scope": "call:online", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": null}, "resource": null} -} - -test_scope_CALL_ONLINE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE { - not allow with input as {"scope": "call:online", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": null}, "resource": null} -} - -test_scope_CALL_ONLINE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER { - allow with input as {"scope": "call:online", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": null} -} - -test_scope_CALL_ONLINE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER { - allow with input as {"scope": "call:online", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": null} -} - -test_scope_CALL_ONLINE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR { - allow with input as {"scope": "call:online", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": null} -} - -test_scope_CALL_ONLINE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER { - allow with input as {"scope": "call:online", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": null} -} - -test_scope_CALL_ONLINE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE { - allow with input as {"scope": "call:online", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 209}, "user": {"role": null}}}, "resource": null} -} - -test_scope_CALL_ONLINE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER { - allow with input as {"scope": "call:online", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": null} -} - -test_scope_CALL_ONLINE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER { - allow with input as {"scope": "call:online", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": null} -} - -test_scope_CALL_ONLINE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR { - allow with input as {"scope": "call:online", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": null} -} - -test_scope_CALL_ONLINE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER { - allow with input as {"scope": "call:online", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": null} -} - -test_scope_CALL_ONLINE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE { - allow with input as {"scope": "call:online", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 232}, "user": {"role": null}}}, "resource": null} -} - -test_scope_CALL_ONLINE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER { - allow with input as {"scope": "call:online", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": null} -} - -test_scope_CALL_ONLINE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER { - allow with input as {"scope": "call:online", "auth": {"user": {"id": 90, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": null} -} - -test_scope_CALL_ONLINE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR { - allow with input as {"scope": "call:online", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": null} -} - -test_scope_CALL_ONLINE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER { - allow with input as {"scope": "call:online", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": null} -} - -test_scope_CALL_ONLINE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE { - allow with input as {"scope": "call:online", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 275}, "user": {"role": null}}}, "resource": null} -} - -test_scope_CALL_ONLINE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER { - allow with input as {"scope": "call:online", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": null} -} - -test_scope_CALL_ONLINE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER { - allow with input as {"scope": "call:online", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": null} -} - -test_scope_CALL_ONLINE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR { - allow with input as {"scope": "call:online", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": null} -} - -test_scope_CALL_ONLINE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER { - allow with input as {"scope": "call:online", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": null} -} - -test_scope_CALL_ONLINE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE { - allow with input as {"scope": "call:online", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 230}, "user": {"role": null}}}, "resource": null} -} - -test_scope_CALL_ONLINE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER { - not allow with input as {"scope": "call:online", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": null} -} - -test_scope_CALL_ONLINE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER { - not allow with input as {"scope": "call:online", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": null} -} - -test_scope_CALL_ONLINE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR { - not allow with input as {"scope": "call:online", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": null} -} - -test_scope_CALL_ONLINE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER { - not allow with input as {"scope": "call:online", "auth": {"user": {"id": 19, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": null} -} - -test_scope_CALL_ONLINE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE { - not allow with input as {"scope": "call:online", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 281}, "user": {"role": null}}}, "resource": null} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": null}, "resource": null} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": null}, "resource": null} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": null}, "resource": null} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": null}, "resource": null} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": null}, "resource": null} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": null} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": null} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": null} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": null} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 216}, "user": {"role": null}}}, "resource": null} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": null} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": null} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": null} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": null} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 235}, "user": {"role": null}}}, "resource": null} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": null} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": null} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": null} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": null} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 233}, "user": {"role": null}}}, "resource": null} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": null} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": null} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": null} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": null} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 279}, "user": {"role": null}}}, "resource": null} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": null} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": null} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": null} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": null} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 247}, "user": {"role": null}}}, "resource": null} -} - -test_scope_CALL_OFFLINE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE { - allow with input as {"scope": "call:offline", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": null}, "resource": null} -} - -test_scope_CALL_OFFLINE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE { - allow with input as {"scope": "call:offline", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": null}, "resource": null} -} - -test_scope_CALL_OFFLINE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE { - not allow with input as {"scope": "call:offline", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": null}, "resource": null} -} - -test_scope_CALL_OFFLINE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE { - not allow with input as {"scope": "call:offline", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": null}, "resource": null} -} - -test_scope_CALL_OFFLINE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE { - not allow with input as {"scope": "call:offline", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": null}, "resource": null} -} - -test_scope_CALL_OFFLINE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER { - allow with input as {"scope": "call:offline", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": null} -} - -test_scope_CALL_OFFLINE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER { - allow with input as {"scope": "call:offline", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": null} -} - -test_scope_CALL_OFFLINE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR { - allow with input as {"scope": "call:offline", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": null} -} - -test_scope_CALL_OFFLINE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER { - allow with input as {"scope": "call:offline", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": null} -} - -test_scope_CALL_OFFLINE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE { - allow with input as {"scope": "call:offline", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 236}, "user": {"role": null}}}, "resource": null} -} - -test_scope_CALL_OFFLINE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER { - allow with input as {"scope": "call:offline", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": null} -} - -test_scope_CALL_OFFLINE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER { - allow with input as {"scope": "call:offline", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": null} -} - -test_scope_CALL_OFFLINE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR { - allow with input as {"scope": "call:offline", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": null} -} - -test_scope_CALL_OFFLINE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER { - allow with input as {"scope": "call:offline", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": null} -} - -test_scope_CALL_OFFLINE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE { - allow with input as {"scope": "call:offline", "auth": {"user": {"id": 81, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 234}, "user": {"role": null}}}, "resource": null} -} - -test_scope_CALL_OFFLINE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER { - not allow with input as {"scope": "call:offline", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": null} -} - -test_scope_CALL_OFFLINE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER { - not allow with input as {"scope": "call:offline", "auth": {"user": {"id": 71, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": null} -} - -test_scope_CALL_OFFLINE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR { - not allow with input as {"scope": "call:offline", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": null} -} - -test_scope_CALL_OFFLINE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER { - not allow with input as {"scope": "call:offline", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": null} -} - -test_scope_CALL_OFFLINE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE { - not allow with input as {"scope": "call:offline", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 251}, "user": {"role": null}}}, "resource": null} -} - -test_scope_CALL_OFFLINE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER { - not allow with input as {"scope": "call:offline", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": null} -} - -test_scope_CALL_OFFLINE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER { - not allow with input as {"scope": "call:offline", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": null} -} - -test_scope_CALL_OFFLINE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR { - not allow with input as {"scope": "call:offline", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": null} -} - -test_scope_CALL_OFFLINE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER { - not allow with input as {"scope": "call:offline", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": null} -} - -test_scope_CALL_OFFLINE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE { - not allow with input as {"scope": "call:offline", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 294}, "user": {"role": null}}}, "resource": null} -} - -test_scope_CALL_OFFLINE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER { - not allow with input as {"scope": "call:offline", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": null} -} - -test_scope_CALL_OFFLINE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER { - not allow with input as {"scope": "call:offline", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": null} -} - -test_scope_CALL_OFFLINE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR { - not allow with input as {"scope": "call:offline", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": null} -} - -test_scope_CALL_OFFLINE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER { - not allow with input as {"scope": "call:offline", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": null} -} - -test_scope_CALL_OFFLINE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE { - not allow with input as {"scope": "call:offline", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 242}, "user": {"role": null}}}, "resource": null} -} - - - -# lambda_test.gen.repo.py -# # Copyright (C) 2021-2022 Intel Corporation -# # -# # SPDX-License-Identifier: MIT -# -# # Copyright (C) 2021-2022 Intel Corporation -# # -# # SPDX-License-Identifier: MIT -# -# import csv -# import json -# import random -# import sys -# import os -# from itertools import product -# -# -# NAME = 'lambda' -# -# def read_rules(name): -# rules = [] -# with open(os.path.join(sys.argv[1], f'{name}.csv')) as f: -# reader = csv.DictReader(f) -# for row in reader: -# row = {k.lower():v.lower().replace('n/a','na') for k,v in row.items()} -# row['limit'] = row['limit'].replace('none', 'None') -# found = False -# for col,val in row.items(): -# if col in ["limit", "method", "url", "resource"]: -# continue -# complex_val = [v.strip() for v in val.split(',')] -# if len(complex_val) > 1: -# found = True -# for item in complex_val: -# new_row = row.copy() -# new_row[col] = item -# rules.append(new_row) -# if not found: -# rules.append(row) -# -# return rules -# -# simple_rules = read_rules(NAME) -# -# SCOPES = list({rule['scope'] for rule in simple_rules}) -# CONTEXTS = ['sandbox', 'organization'] -# OWNERSHIPS = ['none'] -# GROUPS = ['admin', 'business', 'user', 'worker', 'none'] -# ORG_ROLES = ['owner', 'maintainer', 'supervisor', 'worker', None] -# -# def RESOURCES(scope): -# return [None] -# -# def eval_rule(scope, context, ownership, privilege, membership, data): -# if privilege == 'admin': -# return True -# -# rules = list(filter(lambda r: scope == r['scope'], simple_rules)) -# rules = list(filter(lambda r: r['context'] == 'na' or context == r['context'], rules)) -# rules = list(filter(lambda r: r['ownership'] == 'na' or ownership == r['ownership'], rules)) -# rules = list(filter(lambda r: r['membership'] == 'na' or -# ORG_ROLES.index(membership) <= ORG_ROLES.index(r['membership']), rules)) -# rules = list(filter(lambda r: GROUPS.index(privilege) <= GROUPS.index(r['privilege']), rules)) -# resource = data['resource'] -# rules = list(filter(lambda r: not r['limit'] or eval(r['limit'], {'resource': resource}), rules)) -# -# return bool(rules) -# -# def get_data(scope, context, ownership, privilege, membership, resource): -# data = { -# "scope": scope, -# "auth": { -# "user": { "id": random.randrange(0,100), "privilege": privilege }, -# "organization": { -# "id": random.randrange(100,200), -# "owner": { "id": random.randrange(200, 300) }, -# "user": { "role": membership } -# } if context == 'organization' else None -# }, -# "resource": resource -# } -# -# user_id = data['auth']['user']['id'] -# if context == 'organization': -# if data['auth']['organization']['user']['role'] == 'owner': -# data['auth']['organization']['owner']['id'] = user_id -# -# return data -# -# def _get_name(prefix, **kwargs): -# name = prefix -# for k,v in kwargs.items(): -# if k == 'resource': -# continue -# prefix = '_' + str(k) -# if isinstance(v, dict): -# if 'id' in v: -# v = v.copy() -# v.pop('id') -# if v: -# name += _get_name(prefix, **v) -# else: -# name += ''.join(map(lambda c: c if c.isalnum() else {'@':'_IN_'}.get(c, '_'), -# f'{prefix}_{str(v).upper()}')) -# -# return name -# -# def get_name(scope, context, ownership, privilege, membership, resource): -# return _get_name('test', **locals()) -# -# def is_valid(scope, context, ownership, privilege, membership, resource): -# if context == "sandbox" and membership: -# return False -# if scope == 'list' and ownership != 'None': -# return False -# -# return True -# -# def gen_test_rego(name): -# with open(f'{name}_test.gen.rego', 'wt') as f: -# f.write(f'package {name}\n\n') -# for scope, context, ownership, privilege, membership in product( -# SCOPES, CONTEXTS, OWNERSHIPS, GROUPS, ORG_ROLES): -# for resource in RESOURCES(scope): -# if not is_valid(scope, context, ownership, privilege, membership, resource): -# continue -# -# data = get_data(scope, context, ownership, privilege, membership, resource) -# test_name = get_name(scope, context, ownership, privilege, membership, resource) -# result = eval_rule(scope, context, ownership, privilege, membership, data) -# f.write('{test_name} {{\n {allow} with input as {data}\n}}\n\n'.format( -# test_name=test_name, allow='allow' if result else 'not allow', -# data=json.dumps(data))) -# -# # Write the script which is used to generate the file -# with open(sys.argv[0]) as this_file: -# f.write(f'\n\n# {os.path.split(sys.argv[0])[1]}\n') -# for line in this_file: -# if line.strip(): -# f.write(f'# {line}') -# else: -# f.write(f'#\n') -# -# # Write rules which are used to generate the file -# with open(os.path.join(sys.argv[1], f'{name}.csv')) as rego_file: -# f.write(f'\n\n# {name}.csv\n') -# for line in rego_file: -# if line.strip(): -# f.write(f'# {line}') -# else: -# f.write(f'#\n') -# -# gen_test_rego(NAME) - -# lambda.csv -# Scope,Resource,Context,Ownership,Limit,Method,URL,Privilege,Membership -# list,N/A,N/A,N/A,,GET,/lambda/functions,None,N/A -# view,LambdaFunction,N/A,N/A,,GET,/lambda/functions/{func_id},None,N/A -# call:online,"LambdaFunction, Job",N/A,N/A,,POST,/lambda/functions/{func_id},Worker,N/A -# call:offline,"LambdaFunction, Task",N/A,N/A,,POST,/lambda/requests,Business,N/A -# call:offline,"LambdaFunction, Task",N/A,N/A,,GET,"/lambda/requests/{id}, /lambda/requests",Business,N/A diff --git a/cvat/apps/iam/rules/memberships_test.gen.rego b/cvat/apps/iam/rules/memberships_test.gen.rego deleted file mode 100644 index 0bb2278d..00000000 --- a/cvat/apps/iam/rules/memberships_test.gen.rego +++ /dev/null @@ -1,10756 +0,0 @@ -package memberships - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 41}, "is_active": false, "role": "owner", "organization": {"id": 579}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 58}, "is_active": true, "role": "owner", "organization": {"id": 534}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 32}, "is_active": false, "role": "maintainer", "organization": {"id": 527}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 63}, "is_active": true, "role": "maintainer", "organization": {"id": 505}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 82}, "is_active": false, "role": "supervisor", "organization": {"id": 507}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 89}, "is_active": true, "role": "supervisor", "organization": {"id": 543}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 78}, "is_active": false, "role": "worker", "organization": {"id": 569}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 15}, "is_active": true, "role": "worker", "organization": {"id": 572}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 71}, "is_active": false, "role": "owner", "organization": {"id": 523}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 80}, "is_active": true, "role": "owner", "organization": {"id": 502}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 36}, "is_active": false, "role": "maintainer", "organization": {"id": 530}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 24}, "is_active": true, "role": "maintainer", "organization": {"id": 577}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 82}, "is_active": false, "role": "supervisor", "organization": {"id": 559}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 86}, "is_active": true, "role": "supervisor", "organization": {"id": 523}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 0}, "is_active": false, "role": "worker", "organization": {"id": 542}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 56}, "is_active": true, "role": "worker", "organization": {"id": 515}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 58}, "is_active": false, "role": "owner", "organization": {"id": 597}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 56}, "is_active": true, "role": "owner", "organization": {"id": 561}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 79}, "is_active": false, "role": "maintainer", "organization": {"id": 522}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 46}, "is_active": true, "role": "maintainer", "organization": {"id": 567}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 57}, "is_active": false, "role": "supervisor", "organization": {"id": 565}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 88}, "is_active": true, "role": "supervisor", "organization": {"id": 508}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 65}, "is_active": false, "role": "worker", "organization": {"id": 579}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 22}, "is_active": true, "role": "worker", "organization": {"id": 554}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 16}, "is_active": false, "role": "owner", "organization": {"id": 557}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 16}, "is_active": true, "role": "owner", "organization": {"id": 572}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 78}, "is_active": false, "role": "maintainer", "organization": {"id": 529}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 75}, "is_active": true, "role": "maintainer", "organization": {"id": 513}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 60}, "is_active": false, "role": "supervisor", "organization": {"id": 570}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 98}, "is_active": true, "role": "supervisor", "organization": {"id": 539}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 5}, "is_active": false, "role": "worker", "organization": {"id": 541}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 76}, "is_active": true, "role": "worker", "organization": {"id": 532}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 63}, "is_active": false, "role": "owner", "organization": {"id": 577}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 58}, "is_active": true, "role": "owner", "organization": {"id": 593}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 98}, "is_active": false, "role": "maintainer", "organization": {"id": 560}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 14}, "is_active": true, "role": "maintainer", "organization": {"id": 572}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 33}, "is_active": false, "role": "supervisor", "organization": {"id": 518}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 25}, "is_active": true, "role": "supervisor", "organization": {"id": 557}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 25}, "is_active": false, "role": "worker", "organization": {"id": 572}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 38}, "is_active": true, "role": "worker", "organization": {"id": 538}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 318}, "is_active": false, "role": "owner", "organization": {"id": 509}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 349}, "is_active": true, "role": "owner", "organization": {"id": 560}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 387}, "is_active": false, "role": "maintainer", "organization": {"id": 510}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 328}, "is_active": true, "role": "maintainer", "organization": {"id": 583}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 334}, "is_active": false, "role": "supervisor", "organization": {"id": 591}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 308}, "is_active": true, "role": "supervisor", "organization": {"id": 596}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 326}, "is_active": false, "role": "worker", "organization": {"id": 593}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 360}, "is_active": true, "role": "worker", "organization": {"id": 534}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 380}, "is_active": false, "role": "owner", "organization": {"id": 534}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 320}, "is_active": true, "role": "owner", "organization": {"id": 562}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 390}, "is_active": false, "role": "maintainer", "organization": {"id": 573}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 305}, "is_active": true, "role": "maintainer", "organization": {"id": 584}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 398}, "is_active": false, "role": "supervisor", "organization": {"id": 506}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 353}, "is_active": true, "role": "supervisor", "organization": {"id": 568}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 379}, "is_active": false, "role": "worker", "organization": {"id": 575}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 303}, "is_active": true, "role": "worker", "organization": {"id": 593}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 313}, "is_active": false, "role": "owner", "organization": {"id": 502}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 365}, "is_active": true, "role": "owner", "organization": {"id": 532}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 337}, "is_active": false, "role": "maintainer", "organization": {"id": 567}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 335}, "is_active": true, "role": "maintainer", "organization": {"id": 595}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 335}, "is_active": false, "role": "supervisor", "organization": {"id": 520}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 391}, "is_active": true, "role": "supervisor", "organization": {"id": 504}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 312}, "is_active": false, "role": "worker", "organization": {"id": 526}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 368}, "is_active": true, "role": "worker", "organization": {"id": 588}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 350}, "is_active": false, "role": "owner", "organization": {"id": 525}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 369}, "is_active": true, "role": "owner", "organization": {"id": 597}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 330}, "is_active": false, "role": "maintainer", "organization": {"id": 517}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 324}, "is_active": true, "role": "maintainer", "organization": {"id": 595}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 314}, "is_active": false, "role": "supervisor", "organization": {"id": 596}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 325}, "is_active": true, "role": "supervisor", "organization": {"id": 589}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 355}, "is_active": false, "role": "worker", "organization": {"id": 575}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 304}, "is_active": true, "role": "worker", "organization": {"id": 572}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 368}, "is_active": false, "role": "owner", "organization": {"id": 516}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 398}, "is_active": true, "role": "owner", "organization": {"id": 504}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 369}, "is_active": false, "role": "maintainer", "organization": {"id": 529}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 380}, "is_active": true, "role": "maintainer", "organization": {"id": 508}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 337}, "is_active": false, "role": "supervisor", "organization": {"id": 591}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 359}, "is_active": true, "role": "supervisor", "organization": {"id": 587}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 323}, "is_active": false, "role": "worker", "organization": {"id": 571}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 356}, "is_active": true, "role": "worker", "organization": {"id": 576}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 46}, "is_active": false, "role": "owner", "organization": {"id": 565}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 34}, "is_active": true, "role": "owner", "organization": {"id": 586}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 59}, "is_active": false, "role": "maintainer", "organization": {"id": 535}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 81}, "is_active": true, "role": "maintainer", "organization": {"id": 553}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 93}, "is_active": false, "role": "supervisor", "organization": {"id": 537}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 50}, "is_active": true, "role": "supervisor", "organization": {"id": 591}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 35}, "is_active": false, "role": "worker", "organization": {"id": 582}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 47}, "is_active": true, "role": "worker", "organization": {"id": 585}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 74}, "is_active": false, "role": "owner", "organization": {"id": 164}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 71}, "is_active": true, "role": "owner", "organization": {"id": 163}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 15}, "is_active": false, "role": "maintainer", "organization": {"id": 134}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 98}, "is_active": true, "role": "maintainer", "organization": {"id": 137}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 18}, "is_active": false, "role": "supervisor", "organization": {"id": 183}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 92}, "is_active": true, "role": "supervisor", "organization": {"id": 158}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 97}, "is_active": false, "role": "worker", "organization": {"id": 142}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 42}, "is_active": true, "role": "worker", "organization": {"id": 116}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 16}, "is_active": false, "role": "owner", "organization": {"id": 583}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 78}, "is_active": true, "role": "owner", "organization": {"id": 503}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 33}, "is_active": false, "role": "maintainer", "organization": {"id": 539}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 72}, "is_active": true, "role": "maintainer", "organization": {"id": 502}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 83}, "is_active": false, "role": "supervisor", "organization": {"id": 591}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 5}, "is_active": true, "role": "supervisor", "organization": {"id": 571}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 4}, "is_active": false, "role": "worker", "organization": {"id": 568}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 45}, "is_active": true, "role": "worker", "organization": {"id": 515}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 97}, "is_active": false, "role": "owner", "organization": {"id": 185}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 63}, "is_active": true, "role": "owner", "organization": {"id": 170}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 45}, "is_active": false, "role": "maintainer", "organization": {"id": 124}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 3}, "is_active": true, "role": "maintainer", "organization": {"id": 166}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 83}, "is_active": false, "role": "supervisor", "organization": {"id": 179}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 92}, "is_active": true, "role": "supervisor", "organization": {"id": 191}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 90}, "is_active": false, "role": "worker", "organization": {"id": 184}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 91}, "is_active": true, "role": "worker", "organization": {"id": 147}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 22}, "is_active": false, "role": "owner", "organization": {"id": 552}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 57}, "is_active": true, "role": "owner", "organization": {"id": 593}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 71}, "is_active": false, "role": "maintainer", "organization": {"id": 569}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 82}, "is_active": true, "role": "maintainer", "organization": {"id": 524}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 60}, "is_active": false, "role": "supervisor", "organization": {"id": 588}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 71}, "is_active": true, "role": "supervisor", "organization": {"id": 531}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 55}, "is_active": false, "role": "worker", "organization": {"id": 537}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 32}, "is_active": true, "role": "worker", "organization": {"id": 595}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 33}, "is_active": false, "role": "owner", "organization": {"id": 139}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 99}, "is_active": true, "role": "owner", "organization": {"id": 155}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 92}, "is_active": false, "role": "maintainer", "organization": {"id": 127}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 62}, "is_active": true, "role": "maintainer", "organization": {"id": 166}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 5}, "is_active": false, "role": "supervisor", "organization": {"id": 149}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 97}, "is_active": true, "role": "supervisor", "organization": {"id": 135}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 33}, "is_active": false, "role": "worker", "organization": {"id": 102}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 83}, "is_active": true, "role": "worker", "organization": {"id": 105}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 82}, "is_active": false, "role": "owner", "organization": {"id": 528}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 48}, "is_active": true, "role": "owner", "organization": {"id": 586}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 80}, "is_active": false, "role": "maintainer", "organization": {"id": 513}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 0}, "is_active": true, "role": "maintainer", "organization": {"id": 548}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 23}, "is_active": false, "role": "supervisor", "organization": {"id": 503}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 12}, "is_active": true, "role": "supervisor", "organization": {"id": 505}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 9}, "is_active": false, "role": "worker", "organization": {"id": 570}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 14}, "is_active": true, "role": "worker", "organization": {"id": 513}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 31}, "is_active": false, "role": "owner", "organization": {"id": 157}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 94}, "is_active": true, "role": "owner", "organization": {"id": 130}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 43}, "is_active": false, "role": "maintainer", "organization": {"id": 105}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 51}, "is_active": true, "role": "maintainer", "organization": {"id": 195}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 80}, "is_active": false, "role": "supervisor", "organization": {"id": 166}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 93}, "is_active": true, "role": "supervisor", "organization": {"id": 146}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 47}, "is_active": false, "role": "worker", "organization": {"id": 146}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 18}, "is_active": true, "role": "worker", "organization": {"id": 172}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"user": {"id": 86}, "is_active": false, "role": "owner", "organization": {"id": 504}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"user": {"id": 32}, "is_active": true, "role": "owner", "organization": {"id": 535}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"user": {"id": 4}, "is_active": false, "role": "maintainer", "organization": {"id": 560}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"user": {"id": 18}, "is_active": true, "role": "maintainer", "organization": {"id": 596}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"user": {"id": 92}, "is_active": false, "role": "supervisor", "organization": {"id": 570}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"user": {"id": 21}, "is_active": true, "role": "supervisor", "organization": {"id": 545}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"user": {"id": 29}, "is_active": false, "role": "worker", "organization": {"id": 523}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"user": {"id": 88}, "is_active": true, "role": "worker", "organization": {"id": 562}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"user": {"id": 35}, "is_active": false, "role": "owner", "organization": {"id": 110}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"user": {"id": 0}, "is_active": true, "role": "owner", "organization": {"id": 127}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"user": {"id": 55}, "is_active": false, "role": "maintainer", "organization": {"id": 126}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"user": {"id": 33}, "is_active": true, "role": "maintainer", "organization": {"id": 181}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"user": {"id": 94}, "is_active": false, "role": "supervisor", "organization": {"id": 104}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"user": {"id": 76}, "is_active": true, "role": "supervisor", "organization": {"id": 128}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"user": {"id": 38}, "is_active": false, "role": "worker", "organization": {"id": 131}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 36, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"user": {"id": 36}, "is_active": true, "role": "worker", "organization": {"id": 107}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 77}, "is_active": false, "role": "owner", "organization": {"id": 504}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 9}, "is_active": true, "role": "owner", "organization": {"id": 503}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 78}, "is_active": false, "role": "maintainer", "organization": {"id": 532}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 70}, "is_active": true, "role": "maintainer", "organization": {"id": 502}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 48}, "is_active": false, "role": "supervisor", "organization": {"id": 583}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 0}, "is_active": true, "role": "supervisor", "organization": {"id": 565}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 88}, "is_active": false, "role": "worker", "organization": {"id": 571}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 92}, "is_active": true, "role": "worker", "organization": {"id": 564}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 75}, "is_active": false, "role": "owner", "organization": {"id": 152}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 67}, "is_active": true, "role": "owner", "organization": {"id": 103}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 73}, "is_active": false, "role": "maintainer", "organization": {"id": 120}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 84}, "is_active": true, "role": "maintainer", "organization": {"id": 151}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 12}, "is_active": false, "role": "supervisor", "organization": {"id": 189}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 25}, "is_active": true, "role": "supervisor", "organization": {"id": 108}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 72}, "is_active": false, "role": "worker", "organization": {"id": 111}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 50}, "is_active": true, "role": "worker", "organization": {"id": 125}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 91}, "is_active": false, "role": "owner", "organization": {"id": 538}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 18}, "is_active": true, "role": "owner", "organization": {"id": 502}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 69}, "is_active": false, "role": "maintainer", "organization": {"id": 531}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 2}, "is_active": true, "role": "maintainer", "organization": {"id": 569}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 17}, "is_active": false, "role": "supervisor", "organization": {"id": 555}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 74}, "is_active": true, "role": "supervisor", "organization": {"id": 582}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 64}, "is_active": false, "role": "worker", "organization": {"id": 571}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 39}, "is_active": true, "role": "worker", "organization": {"id": 510}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 40}, "is_active": false, "role": "owner", "organization": {"id": 198}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 22}, "is_active": true, "role": "owner", "organization": {"id": 119}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 53}, "is_active": false, "role": "maintainer", "organization": {"id": 154}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 61}, "is_active": true, "role": "maintainer", "organization": {"id": 179}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 61}, "is_active": false, "role": "supervisor", "organization": {"id": 171}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 7}, "is_active": true, "role": "supervisor", "organization": {"id": 112}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 44}, "is_active": false, "role": "worker", "organization": {"id": 187}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 40}, "is_active": true, "role": "worker", "organization": {"id": 132}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 44}, "is_active": false, "role": "owner", "organization": {"id": 555}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 55}, "is_active": true, "role": "owner", "organization": {"id": 536}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 51}, "is_active": false, "role": "maintainer", "organization": {"id": 582}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 91}, "is_active": true, "role": "maintainer", "organization": {"id": 514}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 70}, "is_active": false, "role": "supervisor", "organization": {"id": 586}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 75}, "is_active": true, "role": "supervisor", "organization": {"id": 566}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 28}, "is_active": false, "role": "worker", "organization": {"id": 599}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 55}, "is_active": true, "role": "worker", "organization": {"id": 519}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 29}, "is_active": false, "role": "owner", "organization": {"id": 153}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 58}, "is_active": true, "role": "owner", "organization": {"id": 181}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 64}, "is_active": false, "role": "maintainer", "organization": {"id": 130}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 49}, "is_active": true, "role": "maintainer", "organization": {"id": 185}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 95}, "is_active": false, "role": "supervisor", "organization": {"id": 175}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 0}, "is_active": true, "role": "supervisor", "organization": {"id": 107}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 97}, "is_active": false, "role": "worker", "organization": {"id": 130}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 23}, "is_active": true, "role": "worker", "organization": {"id": 133}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 74}, "is_active": false, "role": "owner", "organization": {"id": 520}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 50}, "is_active": true, "role": "owner", "organization": {"id": 596}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 19}, "is_active": false, "role": "maintainer", "organization": {"id": 503}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 35}, "is_active": true, "role": "maintainer", "organization": {"id": 550}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 66}, "is_active": false, "role": "supervisor", "organization": {"id": 554}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 60}, "is_active": true, "role": "supervisor", "organization": {"id": 585}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 16}, "is_active": false, "role": "worker", "organization": {"id": 505}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 9}, "is_active": true, "role": "worker", "organization": {"id": 566}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 84}, "is_active": false, "role": "owner", "organization": {"id": 198}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 62}, "is_active": true, "role": "owner", "organization": {"id": 188}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 8}, "is_active": false, "role": "maintainer", "organization": {"id": 185}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 7}, "is_active": true, "role": "maintainer", "organization": {"id": 152}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 34}, "is_active": false, "role": "supervisor", "organization": {"id": 197}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 50}, "is_active": true, "role": "supervisor", "organization": {"id": 109}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 97}, "is_active": false, "role": "worker", "organization": {"id": 121}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 7}, "is_active": true, "role": "worker", "organization": {"id": 110}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"user": {"id": 98}, "is_active": false, "role": "owner", "organization": {"id": 517}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"user": {"id": 78}, "is_active": true, "role": "owner", "organization": {"id": 507}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"user": {"id": 64}, "is_active": false, "role": "maintainer", "organization": {"id": 508}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"user": {"id": 16}, "is_active": true, "role": "maintainer", "organization": {"id": 556}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"user": {"id": 74}, "is_active": false, "role": "supervisor", "organization": {"id": 549}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"user": {"id": 51}, "is_active": true, "role": "supervisor", "organization": {"id": 587}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"user": {"id": 27}, "is_active": false, "role": "worker", "organization": {"id": 513}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"user": {"id": 14}, "is_active": true, "role": "worker", "organization": {"id": 548}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"user": {"id": 14}, "is_active": false, "role": "owner", "organization": {"id": 182}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"user": {"id": 57}, "is_active": true, "role": "owner", "organization": {"id": 113}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"user": {"id": 77}, "is_active": false, "role": "maintainer", "organization": {"id": 141}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"user": {"id": 38}, "is_active": true, "role": "maintainer", "organization": {"id": 196}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"user": {"id": 7}, "is_active": false, "role": "supervisor", "organization": {"id": 116}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"user": {"id": 77}, "is_active": true, "role": "supervisor", "organization": {"id": 101}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"user": {"id": 3}, "is_active": false, "role": "worker", "organization": {"id": 118}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"user": {"id": 43}, "is_active": true, "role": "worker", "organization": {"id": 115}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 18}, "is_active": false, "role": "owner", "organization": {"id": 538}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 79}, "is_active": true, "role": "owner", "organization": {"id": 508}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 45}, "is_active": false, "role": "maintainer", "organization": {"id": 563}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 12}, "is_active": true, "role": "maintainer", "organization": {"id": 564}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 41}, "is_active": false, "role": "supervisor", "organization": {"id": 512}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 27}, "is_active": true, "role": "supervisor", "organization": {"id": 553}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 23}, "is_active": false, "role": "worker", "organization": {"id": 590}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 49}, "is_active": true, "role": "worker", "organization": {"id": 529}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 89}, "is_active": false, "role": "owner", "organization": {"id": 171}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 16}, "is_active": true, "role": "owner", "organization": {"id": 106}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 62}, "is_active": false, "role": "maintainer", "organization": {"id": 198}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 6}, "is_active": true, "role": "maintainer", "organization": {"id": 191}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 83}, "is_active": false, "role": "supervisor", "organization": {"id": 180}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 9}, "is_active": true, "role": "supervisor", "organization": {"id": 184}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 39}, "is_active": false, "role": "worker", "organization": {"id": 108}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 91}, "is_active": true, "role": "worker", "organization": {"id": 142}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 84}, "is_active": false, "role": "owner", "organization": {"id": 570}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 11}, "is_active": true, "role": "owner", "organization": {"id": 515}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 79}, "is_active": false, "role": "maintainer", "organization": {"id": 568}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 43}, "is_active": true, "role": "maintainer", "organization": {"id": 554}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 98}, "is_active": false, "role": "supervisor", "organization": {"id": 506}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 56}, "is_active": true, "role": "supervisor", "organization": {"id": 535}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 2}, "is_active": false, "role": "worker", "organization": {"id": 564}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 96}, "is_active": true, "role": "worker", "organization": {"id": 503}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 66}, "is_active": false, "role": "owner", "organization": {"id": 152}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 80}, "is_active": true, "role": "owner", "organization": {"id": 108}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 50}, "is_active": false, "role": "maintainer", "organization": {"id": 174}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 50}, "is_active": true, "role": "maintainer", "organization": {"id": 158}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 12}, "is_active": false, "role": "supervisor", "organization": {"id": 170}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 35}, "is_active": true, "role": "supervisor", "organization": {"id": 116}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 18}, "is_active": false, "role": "worker", "organization": {"id": 108}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 34}, "is_active": true, "role": "worker", "organization": {"id": 138}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 90}, "is_active": false, "role": "owner", "organization": {"id": 572}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 41}, "is_active": true, "role": "owner", "organization": {"id": 562}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 5}, "is_active": false, "role": "maintainer", "organization": {"id": 576}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 26}, "is_active": true, "role": "maintainer", "organization": {"id": 514}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 26}, "is_active": false, "role": "supervisor", "organization": {"id": 591}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 73}, "is_active": true, "role": "supervisor", "organization": {"id": 559}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 83}, "is_active": false, "role": "worker", "organization": {"id": 555}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 4}, "is_active": true, "role": "worker", "organization": {"id": 528}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 65}, "is_active": false, "role": "owner", "organization": {"id": 167}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 33}, "is_active": true, "role": "owner", "organization": {"id": 128}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 5}, "is_active": false, "role": "maintainer", "organization": {"id": 138}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 50}, "is_active": true, "role": "maintainer", "organization": {"id": 186}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 65}, "is_active": false, "role": "supervisor", "organization": {"id": 198}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 22}, "is_active": true, "role": "supervisor", "organization": {"id": 144}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 46}, "is_active": false, "role": "worker", "organization": {"id": 140}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 59}, "is_active": true, "role": "worker", "organization": {"id": 124}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 97}, "is_active": false, "role": "owner", "organization": {"id": 555}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 4}, "is_active": true, "role": "owner", "organization": {"id": 514}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 46}, "is_active": false, "role": "maintainer", "organization": {"id": 568}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 51}, "is_active": true, "role": "maintainer", "organization": {"id": 598}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 94}, "is_active": false, "role": "supervisor", "organization": {"id": 569}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 33}, "is_active": true, "role": "supervisor", "organization": {"id": 587}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 24}, "is_active": false, "role": "worker", "organization": {"id": 541}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 7}, "is_active": true, "role": "worker", "organization": {"id": 547}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 98}, "is_active": false, "role": "owner", "organization": {"id": 159}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 40}, "is_active": true, "role": "owner", "organization": {"id": 110}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 91}, "is_active": false, "role": "maintainer", "organization": {"id": 118}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 19}, "is_active": true, "role": "maintainer", "organization": {"id": 118}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 31}, "is_active": false, "role": "supervisor", "organization": {"id": 192}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 5}, "is_active": true, "role": "supervisor", "organization": {"id": 150}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 51}, "is_active": false, "role": "worker", "organization": {"id": 103}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 99}, "is_active": true, "role": "worker", "organization": {"id": 153}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"user": {"id": 50}, "is_active": false, "role": "owner", "organization": {"id": 504}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"user": {"id": 27}, "is_active": true, "role": "owner", "organization": {"id": 566}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"user": {"id": 83}, "is_active": false, "role": "maintainer", "organization": {"id": 547}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"user": {"id": 15}, "is_active": true, "role": "maintainer", "organization": {"id": 554}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"user": {"id": 78}, "is_active": false, "role": "supervisor", "organization": {"id": 591}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"user": {"id": 85}, "is_active": true, "role": "supervisor", "organization": {"id": 514}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"user": {"id": 99}, "is_active": false, "role": "worker", "organization": {"id": 585}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"user": {"id": 50}, "is_active": true, "role": "worker", "organization": {"id": 575}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"user": {"id": 84}, "is_active": false, "role": "owner", "organization": {"id": 184}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"user": {"id": 86}, "is_active": true, "role": "owner", "organization": {"id": 154}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"user": {"id": 19}, "is_active": false, "role": "maintainer", "organization": {"id": 107}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"user": {"id": 44}, "is_active": true, "role": "maintainer", "organization": {"id": 100}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"user": {"id": 29}, "is_active": false, "role": "supervisor", "organization": {"id": 112}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"user": {"id": 61}, "is_active": true, "role": "supervisor", "organization": {"id": 109}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"user": {"id": 94}, "is_active": false, "role": "worker", "organization": {"id": 188}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"user": {"id": 76}, "is_active": true, "role": "worker", "organization": {"id": 134}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 99}, "is_active": false, "role": "owner", "organization": {"id": 575}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 35}, "is_active": true, "role": "owner", "organization": {"id": 504}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 68}, "is_active": false, "role": "maintainer", "organization": {"id": 531}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 46}, "is_active": true, "role": "maintainer", "organization": {"id": 529}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 76}, "is_active": false, "role": "supervisor", "organization": {"id": 596}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 13}, "is_active": true, "role": "supervisor", "organization": {"id": 513}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 97}, "is_active": false, "role": "worker", "organization": {"id": 591}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 3}, "is_active": true, "role": "worker", "organization": {"id": 528}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 99}, "is_active": false, "role": "owner", "organization": {"id": 128}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 70}, "is_active": true, "role": "owner", "organization": {"id": 195}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 56}, "is_active": false, "role": "maintainer", "organization": {"id": 192}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 10}, "is_active": true, "role": "maintainer", "organization": {"id": 148}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 67}, "is_active": false, "role": "supervisor", "organization": {"id": 181}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 81}, "is_active": true, "role": "supervisor", "organization": {"id": 142}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 49}, "is_active": false, "role": "worker", "organization": {"id": 137}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 41}, "is_active": true, "role": "worker", "organization": {"id": 100}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 83}, "is_active": false, "role": "owner", "organization": {"id": 596}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 20}, "is_active": true, "role": "owner", "organization": {"id": 592}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 60}, "is_active": false, "role": "maintainer", "organization": {"id": 570}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 4}, "is_active": true, "role": "maintainer", "organization": {"id": 534}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 2}, "is_active": false, "role": "supervisor", "organization": {"id": 547}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 19}, "is_active": true, "role": "supervisor", "organization": {"id": 543}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 54}, "is_active": false, "role": "worker", "organization": {"id": 506}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 79}, "is_active": true, "role": "worker", "organization": {"id": 588}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 12}, "is_active": false, "role": "owner", "organization": {"id": 173}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 66}, "is_active": true, "role": "owner", "organization": {"id": 115}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 60}, "is_active": false, "role": "maintainer", "organization": {"id": 183}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 42}, "is_active": true, "role": "maintainer", "organization": {"id": 179}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 25}, "is_active": false, "role": "supervisor", "organization": {"id": 153}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 22}, "is_active": true, "role": "supervisor", "organization": {"id": 137}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 19}, "is_active": false, "role": "worker", "organization": {"id": 145}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 17}, "is_active": true, "role": "worker", "organization": {"id": 102}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 59}, "is_active": false, "role": "owner", "organization": {"id": 522}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 95}, "is_active": true, "role": "owner", "organization": {"id": 503}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 0}, "is_active": false, "role": "maintainer", "organization": {"id": 583}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 22}, "is_active": true, "role": "maintainer", "organization": {"id": 513}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 15}, "is_active": false, "role": "supervisor", "organization": {"id": 583}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 86}, "is_active": true, "role": "supervisor", "organization": {"id": 505}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 92}, "is_active": false, "role": "worker", "organization": {"id": 529}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 15}, "is_active": true, "role": "worker", "organization": {"id": 572}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 34}, "is_active": false, "role": "owner", "organization": {"id": 175}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 55}, "is_active": true, "role": "owner", "organization": {"id": 149}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 34}, "is_active": false, "role": "maintainer", "organization": {"id": 181}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 75}, "is_active": true, "role": "maintainer", "organization": {"id": 170}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 75}, "is_active": false, "role": "supervisor", "organization": {"id": 127}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 53}, "is_active": true, "role": "supervisor", "organization": {"id": 130}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 96}, "is_active": false, "role": "worker", "organization": {"id": 144}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 4}, "is_active": true, "role": "worker", "organization": {"id": 149}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 16}, "is_active": false, "role": "owner", "organization": {"id": 587}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 71}, "is_active": true, "role": "owner", "organization": {"id": 582}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 45}, "is_active": false, "role": "maintainer", "organization": {"id": 588}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 85}, "is_active": true, "role": "maintainer", "organization": {"id": 597}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 82}, "is_active": false, "role": "supervisor", "organization": {"id": 555}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 11}, "is_active": true, "role": "supervisor", "organization": {"id": 550}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 51}, "is_active": false, "role": "worker", "organization": {"id": 530}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 32}, "is_active": true, "role": "worker", "organization": {"id": 520}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 41}, "is_active": false, "role": "owner", "organization": {"id": 191}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 56}, "is_active": true, "role": "owner", "organization": {"id": 197}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 43}, "is_active": false, "role": "maintainer", "organization": {"id": 111}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 50}, "is_active": true, "role": "maintainer", "organization": {"id": 106}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 57}, "is_active": false, "role": "supervisor", "organization": {"id": 182}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 23}, "is_active": true, "role": "supervisor", "organization": {"id": 197}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 26}, "is_active": false, "role": "worker", "organization": {"id": 175}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 46}, "is_active": true, "role": "worker", "organization": {"id": 150}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"user": {"id": 46}, "is_active": false, "role": "owner", "organization": {"id": 522}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"user": {"id": 23}, "is_active": true, "role": "owner", "organization": {"id": 544}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"user": {"id": 36}, "is_active": false, "role": "maintainer", "organization": {"id": 515}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"user": {"id": 66}, "is_active": true, "role": "maintainer", "organization": {"id": 571}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"user": {"id": 85}, "is_active": false, "role": "supervisor", "organization": {"id": 524}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"user": {"id": 80}, "is_active": true, "role": "supervisor", "organization": {"id": 526}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"user": {"id": 68}, "is_active": false, "role": "worker", "organization": {"id": 549}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"user": {"id": 72}, "is_active": true, "role": "worker", "organization": {"id": 572}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"user": {"id": 2}, "is_active": false, "role": "owner", "organization": {"id": 153}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"user": {"id": 81}, "is_active": true, "role": "owner", "organization": {"id": 142}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"user": {"id": 52}, "is_active": false, "role": "maintainer", "organization": {"id": 194}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"user": {"id": 71}, "is_active": true, "role": "maintainer", "organization": {"id": 162}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"user": {"id": 72}, "is_active": false, "role": "supervisor", "organization": {"id": 121}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"user": {"id": 29}, "is_active": true, "role": "supervisor", "organization": {"id": 103}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"user": {"id": 75}, "is_active": false, "role": "worker", "organization": {"id": 191}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"user": {"id": 73}, "is_active": true, "role": "worker", "organization": {"id": 195}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 78}, "is_active": false, "role": "owner", "organization": {"id": 525}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 21}, "is_active": true, "role": "owner", "organization": {"id": 525}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 20}, "is_active": false, "role": "maintainer", "organization": {"id": 588}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 38}, "is_active": true, "role": "maintainer", "organization": {"id": 572}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 64}, "is_active": false, "role": "supervisor", "organization": {"id": 552}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 31}, "is_active": true, "role": "supervisor", "organization": {"id": 528}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 51}, "is_active": false, "role": "worker", "organization": {"id": 542}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 14}, "is_active": true, "role": "worker", "organization": {"id": 579}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 9}, "is_active": false, "role": "owner", "organization": {"id": 140}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 1}, "is_active": true, "role": "owner", "organization": {"id": 116}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 74}, "is_active": false, "role": "maintainer", "organization": {"id": 119}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 57}, "is_active": true, "role": "maintainer", "organization": {"id": 163}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 24}, "is_active": false, "role": "supervisor", "organization": {"id": 175}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 2}, "is_active": true, "role": "supervisor", "organization": {"id": 116}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 15}, "is_active": false, "role": "worker", "organization": {"id": 183}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 50}, "is_active": true, "role": "worker", "organization": {"id": 198}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 29}, "is_active": false, "role": "owner", "organization": {"id": 573}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 39}, "is_active": true, "role": "owner", "organization": {"id": 567}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 74}, "is_active": false, "role": "maintainer", "organization": {"id": 594}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 59}, "is_active": true, "role": "maintainer", "organization": {"id": 521}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 86}, "is_active": false, "role": "supervisor", "organization": {"id": 504}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 21}, "is_active": true, "role": "supervisor", "organization": {"id": 543}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 87}, "is_active": false, "role": "worker", "organization": {"id": 594}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 14}, "is_active": true, "role": "worker", "organization": {"id": 559}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 70}, "is_active": false, "role": "owner", "organization": {"id": 156}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 84}, "is_active": true, "role": "owner", "organization": {"id": 162}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 7}, "is_active": false, "role": "maintainer", "organization": {"id": 137}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 87}, "is_active": true, "role": "maintainer", "organization": {"id": 177}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 60}, "is_active": false, "role": "supervisor", "organization": {"id": 170}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 85}, "is_active": true, "role": "supervisor", "organization": {"id": 103}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 39}, "is_active": false, "role": "worker", "organization": {"id": 109}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 38}, "is_active": true, "role": "worker", "organization": {"id": 123}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 13}, "is_active": false, "role": "owner", "organization": {"id": 504}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 73}, "is_active": true, "role": "owner", "organization": {"id": 595}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 73}, "is_active": false, "role": "maintainer", "organization": {"id": 548}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 40}, "is_active": true, "role": "maintainer", "organization": {"id": 517}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 98}, "is_active": false, "role": "supervisor", "organization": {"id": 534}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 70}, "is_active": true, "role": "supervisor", "organization": {"id": 568}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 12}, "is_active": false, "role": "worker", "organization": {"id": 584}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 94}, "is_active": true, "role": "worker", "organization": {"id": 508}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 21}, "is_active": false, "role": "owner", "organization": {"id": 117}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 43}, "is_active": true, "role": "owner", "organization": {"id": 175}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 61}, "is_active": false, "role": "maintainer", "organization": {"id": 181}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 19}, "is_active": true, "role": "maintainer", "organization": {"id": 193}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 16}, "is_active": false, "role": "supervisor", "organization": {"id": 197}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 53}, "is_active": true, "role": "supervisor", "organization": {"id": 120}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 11}, "is_active": false, "role": "worker", "organization": {"id": 196}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 26}, "is_active": true, "role": "worker", "organization": {"id": 118}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 48}, "is_active": false, "role": "owner", "organization": {"id": 585}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 51}, "is_active": true, "role": "owner", "organization": {"id": 568}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 70}, "is_active": false, "role": "maintainer", "organization": {"id": 529}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 48}, "is_active": true, "role": "maintainer", "organization": {"id": 517}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 0}, "is_active": false, "role": "supervisor", "organization": {"id": 596}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 45}, "is_active": true, "role": "supervisor", "organization": {"id": 514}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 73}, "is_active": false, "role": "worker", "organization": {"id": 571}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 33}, "is_active": true, "role": "worker", "organization": {"id": 568}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 21}, "is_active": false, "role": "owner", "organization": {"id": 188}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 16}, "is_active": true, "role": "owner", "organization": {"id": 149}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 7}, "is_active": false, "role": "maintainer", "organization": {"id": 184}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 50}, "is_active": true, "role": "maintainer", "organization": {"id": 170}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 91}, "is_active": false, "role": "supervisor", "organization": {"id": 146}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 40}, "is_active": true, "role": "supervisor", "organization": {"id": 153}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 3}, "is_active": false, "role": "worker", "organization": {"id": 160}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 61}, "is_active": true, "role": "worker", "organization": {"id": 139}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"user": {"id": 24}, "is_active": false, "role": "owner", "organization": {"id": 545}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"user": {"id": 82}, "is_active": true, "role": "owner", "organization": {"id": 518}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"user": {"id": 52}, "is_active": false, "role": "maintainer", "organization": {"id": 536}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"user": {"id": 13}, "is_active": true, "role": "maintainer", "organization": {"id": 598}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"user": {"id": 30}, "is_active": false, "role": "supervisor", "organization": {"id": 554}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"user": {"id": 94}, "is_active": true, "role": "supervisor", "organization": {"id": 516}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"user": {"id": 97}, "is_active": false, "role": "worker", "organization": {"id": 535}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"user": {"id": 5}, "is_active": true, "role": "worker", "organization": {"id": 571}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"user": {"id": 18}, "is_active": false, "role": "owner", "organization": {"id": 141}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"user": {"id": 81}, "is_active": true, "role": "owner", "organization": {"id": 140}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"user": {"id": 7}, "is_active": false, "role": "maintainer", "organization": {"id": 170}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"user": {"id": 97}, "is_active": true, "role": "maintainer", "organization": {"id": 137}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"user": {"id": 69}, "is_active": false, "role": "supervisor", "organization": {"id": 109}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"user": {"id": 19}, "is_active": true, "role": "supervisor", "organization": {"id": 170}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"user": {"id": 22}, "is_active": false, "role": "worker", "organization": {"id": 140}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"user": {"id": 14}, "is_active": true, "role": "worker", "organization": {"id": 164}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 354}, "is_active": false, "role": "owner", "organization": {"id": 551}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 396}, "is_active": true, "role": "owner", "organization": {"id": 539}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 336}, "is_active": false, "role": "maintainer", "organization": {"id": 564}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 313}, "is_active": true, "role": "maintainer", "organization": {"id": 555}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 397}, "is_active": false, "role": "supervisor", "organization": {"id": 547}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 332}, "is_active": true, "role": "supervisor", "organization": {"id": 580}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 399}, "is_active": false, "role": "worker", "organization": {"id": 551}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 308}, "is_active": true, "role": "worker", "organization": {"id": 594}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 387}, "is_active": false, "role": "owner", "organization": {"id": 143}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 333}, "is_active": true, "role": "owner", "organization": {"id": 194}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 319}, "is_active": false, "role": "maintainer", "organization": {"id": 196}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 349}, "is_active": true, "role": "maintainer", "organization": {"id": 192}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 378}, "is_active": false, "role": "supervisor", "organization": {"id": 131}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 333}, "is_active": true, "role": "supervisor", "organization": {"id": 123}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 356}, "is_active": false, "role": "worker", "organization": {"id": 197}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 314}, "is_active": true, "role": "worker", "organization": {"id": 167}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 373}, "is_active": false, "role": "owner", "organization": {"id": 588}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 374}, "is_active": true, "role": "owner", "organization": {"id": 532}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 349}, "is_active": false, "role": "maintainer", "organization": {"id": 515}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 314}, "is_active": true, "role": "maintainer", "organization": {"id": 560}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 384}, "is_active": false, "role": "supervisor", "organization": {"id": 562}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 319}, "is_active": true, "role": "supervisor", "organization": {"id": 527}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 333}, "is_active": false, "role": "worker", "organization": {"id": 534}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 346}, "is_active": true, "role": "worker", "organization": {"id": 507}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 380}, "is_active": false, "role": "owner", "organization": {"id": 116}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 333}, "is_active": true, "role": "owner", "organization": {"id": 171}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 353}, "is_active": false, "role": "maintainer", "organization": {"id": 107}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 388}, "is_active": true, "role": "maintainer", "organization": {"id": 183}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 333}, "is_active": false, "role": "supervisor", "organization": {"id": 130}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 340}, "is_active": true, "role": "supervisor", "organization": {"id": 113}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 306}, "is_active": false, "role": "worker", "organization": {"id": 190}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 377}, "is_active": true, "role": "worker", "organization": {"id": 132}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 365}, "is_active": false, "role": "owner", "organization": {"id": 526}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 384}, "is_active": true, "role": "owner", "organization": {"id": 590}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 303}, "is_active": false, "role": "maintainer", "organization": {"id": 559}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 36, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 324}, "is_active": true, "role": "maintainer", "organization": {"id": 571}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 328}, "is_active": false, "role": "supervisor", "organization": {"id": 586}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 399}, "is_active": true, "role": "supervisor", "organization": {"id": 573}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 353}, "is_active": false, "role": "worker", "organization": {"id": 585}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 382}, "is_active": true, "role": "worker", "organization": {"id": 553}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 365}, "is_active": false, "role": "owner", "organization": {"id": 146}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 319}, "is_active": true, "role": "owner", "organization": {"id": 185}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 378}, "is_active": false, "role": "maintainer", "organization": {"id": 124}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 301}, "is_active": true, "role": "maintainer", "organization": {"id": 132}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 388}, "is_active": false, "role": "supervisor", "organization": {"id": 143}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 367}, "is_active": true, "role": "supervisor", "organization": {"id": 195}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 321}, "is_active": false, "role": "worker", "organization": {"id": 164}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 349}, "is_active": true, "role": "worker", "organization": {"id": 115}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 341}, "is_active": false, "role": "owner", "organization": {"id": 554}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 332}, "is_active": true, "role": "owner", "organization": {"id": 580}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 391}, "is_active": false, "role": "maintainer", "organization": {"id": 548}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 378}, "is_active": true, "role": "maintainer", "organization": {"id": 505}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 308}, "is_active": false, "role": "supervisor", "organization": {"id": 584}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 397}, "is_active": true, "role": "supervisor", "organization": {"id": 546}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 399}, "is_active": false, "role": "worker", "organization": {"id": 530}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 387}, "is_active": true, "role": "worker", "organization": {"id": 511}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 385}, "is_active": false, "role": "owner", "organization": {"id": 159}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 395}, "is_active": true, "role": "owner", "organization": {"id": 137}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 341}, "is_active": false, "role": "maintainer", "organization": {"id": 142}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 388}, "is_active": true, "role": "maintainer", "organization": {"id": 191}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 372}, "is_active": false, "role": "supervisor", "organization": {"id": 176}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 305}, "is_active": true, "role": "supervisor", "organization": {"id": 130}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 338}, "is_active": false, "role": "worker", "organization": {"id": 195}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 338}, "is_active": true, "role": "worker", "organization": {"id": 155}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"user": {"id": 382}, "is_active": false, "role": "owner", "organization": {"id": 589}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"user": {"id": 321}, "is_active": true, "role": "owner", "organization": {"id": 585}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"user": {"id": 338}, "is_active": false, "role": "maintainer", "organization": {"id": 516}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"user": {"id": 388}, "is_active": true, "role": "maintainer", "organization": {"id": 547}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"user": {"id": 362}, "is_active": false, "role": "supervisor", "organization": {"id": 533}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"user": {"id": 356}, "is_active": true, "role": "supervisor", "organization": {"id": 531}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"user": {"id": 304}, "is_active": false, "role": "worker", "organization": {"id": 557}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"user": {"id": 326}, "is_active": true, "role": "worker", "organization": {"id": 560}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"user": {"id": 392}, "is_active": false, "role": "owner", "organization": {"id": 107}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"user": {"id": 386}, "is_active": true, "role": "owner", "organization": {"id": 193}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"user": {"id": 361}, "is_active": false, "role": "maintainer", "organization": {"id": 102}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"user": {"id": 369}, "is_active": true, "role": "maintainer", "organization": {"id": 195}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"user": {"id": 389}, "is_active": false, "role": "supervisor", "organization": {"id": 152}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"user": {"id": 355}, "is_active": true, "role": "supervisor", "organization": {"id": 188}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"user": {"id": 396}, "is_active": false, "role": "worker", "organization": {"id": 194}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"user": {"id": 301}, "is_active": true, "role": "worker", "organization": {"id": 193}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 380}, "is_active": false, "role": "owner", "organization": {"id": 524}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 315}, "is_active": true, "role": "owner", "organization": {"id": 573}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 385}, "is_active": false, "role": "maintainer", "organization": {"id": 533}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 378}, "is_active": true, "role": "maintainer", "organization": {"id": 510}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 324}, "is_active": false, "role": "supervisor", "organization": {"id": 514}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 320}, "is_active": true, "role": "supervisor", "organization": {"id": 575}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 396}, "is_active": false, "role": "worker", "organization": {"id": 548}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 354}, "is_active": true, "role": "worker", "organization": {"id": 514}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 384}, "is_active": false, "role": "owner", "organization": {"id": 138}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 378}, "is_active": true, "role": "owner", "organization": {"id": 104}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 333}, "is_active": false, "role": "maintainer", "organization": {"id": 198}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 366}, "is_active": true, "role": "maintainer", "organization": {"id": 195}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 310}, "is_active": false, "role": "supervisor", "organization": {"id": 145}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 314}, "is_active": true, "role": "supervisor", "organization": {"id": 152}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 335}, "is_active": false, "role": "worker", "organization": {"id": 144}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 396}, "is_active": true, "role": "worker", "organization": {"id": 145}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 368}, "is_active": false, "role": "owner", "organization": {"id": 556}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 340}, "is_active": true, "role": "owner", "organization": {"id": 535}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 383}, "is_active": false, "role": "maintainer", "organization": {"id": 572}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 387}, "is_active": true, "role": "maintainer", "organization": {"id": 565}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 348}, "is_active": false, "role": "supervisor", "organization": {"id": 572}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 315}, "is_active": true, "role": "supervisor", "organization": {"id": 557}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 383}, "is_active": false, "role": "worker", "organization": {"id": 515}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 343}, "is_active": true, "role": "worker", "organization": {"id": 541}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 356}, "is_active": false, "role": "owner", "organization": {"id": 127}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 326}, "is_active": true, "role": "owner", "organization": {"id": 164}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 372}, "is_active": false, "role": "maintainer", "organization": {"id": 173}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 338}, "is_active": true, "role": "maintainer", "organization": {"id": 139}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 368}, "is_active": false, "role": "supervisor", "organization": {"id": 174}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 346}, "is_active": true, "role": "supervisor", "organization": {"id": 109}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 375}, "is_active": false, "role": "worker", "organization": {"id": 168}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 366}, "is_active": true, "role": "worker", "organization": {"id": 120}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 309}, "is_active": false, "role": "owner", "organization": {"id": 586}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 324}, "is_active": true, "role": "owner", "organization": {"id": 582}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 397}, "is_active": false, "role": "maintainer", "organization": {"id": 575}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 324}, "is_active": true, "role": "maintainer", "organization": {"id": 576}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 323}, "is_active": false, "role": "supervisor", "organization": {"id": 591}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 360}, "is_active": true, "role": "supervisor", "organization": {"id": 567}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 363}, "is_active": false, "role": "worker", "organization": {"id": 577}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 363}, "is_active": true, "role": "worker", "organization": {"id": 524}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 364}, "is_active": false, "role": "owner", "organization": {"id": 137}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 371}, "is_active": true, "role": "owner", "organization": {"id": 194}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 395}, "is_active": false, "role": "maintainer", "organization": {"id": 134}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 350}, "is_active": true, "role": "maintainer", "organization": {"id": 109}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 342}, "is_active": false, "role": "supervisor", "organization": {"id": 139}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 306}, "is_active": true, "role": "supervisor", "organization": {"id": 113}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 345}, "is_active": false, "role": "worker", "organization": {"id": 134}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 309}, "is_active": true, "role": "worker", "organization": {"id": 127}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 338}, "is_active": false, "role": "owner", "organization": {"id": 589}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 317}, "is_active": true, "role": "owner", "organization": {"id": 501}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 333}, "is_active": false, "role": "maintainer", "organization": {"id": 581}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 368}, "is_active": true, "role": "maintainer", "organization": {"id": 505}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 331}, "is_active": false, "role": "supervisor", "organization": {"id": 543}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 311}, "is_active": true, "role": "supervisor", "organization": {"id": 501}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 381}, "is_active": false, "role": "worker", "organization": {"id": 524}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 340}, "is_active": true, "role": "worker", "organization": {"id": 512}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 393}, "is_active": false, "role": "owner", "organization": {"id": 105}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 384}, "is_active": true, "role": "owner", "organization": {"id": 137}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 382}, "is_active": false, "role": "maintainer", "organization": {"id": 183}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 307}, "is_active": true, "role": "maintainer", "organization": {"id": 170}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 332}, "is_active": false, "role": "supervisor", "organization": {"id": 188}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 320}, "is_active": true, "role": "supervisor", "organization": {"id": 172}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 393}, "is_active": false, "role": "worker", "organization": {"id": 188}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 377}, "is_active": true, "role": "worker", "organization": {"id": 105}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"user": {"id": 310}, "is_active": false, "role": "owner", "organization": {"id": 517}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"user": {"id": 387}, "is_active": true, "role": "owner", "organization": {"id": 525}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"user": {"id": 333}, "is_active": false, "role": "maintainer", "organization": {"id": 564}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"user": {"id": 377}, "is_active": true, "role": "maintainer", "organization": {"id": 595}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"user": {"id": 382}, "is_active": false, "role": "supervisor", "organization": {"id": 541}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"user": {"id": 301}, "is_active": true, "role": "supervisor", "organization": {"id": 514}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"user": {"id": 352}, "is_active": false, "role": "worker", "organization": {"id": 547}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"user": {"id": 327}, "is_active": true, "role": "worker", "organization": {"id": 580}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"user": {"id": 347}, "is_active": false, "role": "owner", "organization": {"id": 188}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"user": {"id": 391}, "is_active": true, "role": "owner", "organization": {"id": 166}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"user": {"id": 330}, "is_active": false, "role": "maintainer", "organization": {"id": 180}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"user": {"id": 328}, "is_active": true, "role": "maintainer", "organization": {"id": 188}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"user": {"id": 323}, "is_active": false, "role": "supervisor", "organization": {"id": 184}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"user": {"id": 343}, "is_active": true, "role": "supervisor", "organization": {"id": 170}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"user": {"id": 345}, "is_active": false, "role": "worker", "organization": {"id": 103}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"user": {"id": 389}, "is_active": true, "role": "worker", "organization": {"id": 115}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 313}, "is_active": false, "role": "owner", "organization": {"id": 558}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 329}, "is_active": true, "role": "owner", "organization": {"id": 585}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 310}, "is_active": false, "role": "maintainer", "organization": {"id": 591}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 347}, "is_active": true, "role": "maintainer", "organization": {"id": 564}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 341}, "is_active": false, "role": "supervisor", "organization": {"id": 591}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 324}, "is_active": true, "role": "supervisor", "organization": {"id": 506}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 338}, "is_active": false, "role": "worker", "organization": {"id": 545}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 349}, "is_active": true, "role": "worker", "organization": {"id": 540}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 351}, "is_active": false, "role": "owner", "organization": {"id": 125}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 332}, "is_active": true, "role": "owner", "organization": {"id": 110}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 329}, "is_active": false, "role": "maintainer", "organization": {"id": 114}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 374}, "is_active": true, "role": "maintainer", "organization": {"id": 148}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 358}, "is_active": false, "role": "supervisor", "organization": {"id": 108}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 370}, "is_active": true, "role": "supervisor", "organization": {"id": 184}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 374}, "is_active": false, "role": "worker", "organization": {"id": 151}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 382}, "is_active": true, "role": "worker", "organization": {"id": 167}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 303}, "is_active": false, "role": "owner", "organization": {"id": 568}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 394}, "is_active": true, "role": "owner", "organization": {"id": 547}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 366}, "is_active": false, "role": "maintainer", "organization": {"id": 504}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 327}, "is_active": true, "role": "maintainer", "organization": {"id": 531}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 364}, "is_active": false, "role": "supervisor", "organization": {"id": 509}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 363}, "is_active": true, "role": "supervisor", "organization": {"id": 523}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 313}, "is_active": false, "role": "worker", "organization": {"id": 581}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 318}, "is_active": true, "role": "worker", "organization": {"id": 550}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 326}, "is_active": false, "role": "owner", "organization": {"id": 172}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 301}, "is_active": true, "role": "owner", "organization": {"id": 188}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 344}, "is_active": false, "role": "maintainer", "organization": {"id": 151}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 363}, "is_active": true, "role": "maintainer", "organization": {"id": 142}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 366}, "is_active": false, "role": "supervisor", "organization": {"id": 111}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 338}, "is_active": true, "role": "supervisor", "organization": {"id": 127}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 318}, "is_active": false, "role": "worker", "organization": {"id": 108}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 301}, "is_active": true, "role": "worker", "organization": {"id": 163}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 325}, "is_active": false, "role": "owner", "organization": {"id": 555}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 312}, "is_active": true, "role": "owner", "organization": {"id": 579}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 313}, "is_active": false, "role": "maintainer", "organization": {"id": 556}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 372}, "is_active": true, "role": "maintainer", "organization": {"id": 586}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 357}, "is_active": false, "role": "supervisor", "organization": {"id": 595}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 398}, "is_active": true, "role": "supervisor", "organization": {"id": 581}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 338}, "is_active": false, "role": "worker", "organization": {"id": 542}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 374}, "is_active": true, "role": "worker", "organization": {"id": 572}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 390}, "is_active": false, "role": "owner", "organization": {"id": 123}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 306}, "is_active": true, "role": "owner", "organization": {"id": 190}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 315}, "is_active": false, "role": "maintainer", "organization": {"id": 188}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 71, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 361}, "is_active": true, "role": "maintainer", "organization": {"id": 188}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 331}, "is_active": false, "role": "supervisor", "organization": {"id": 125}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 348}, "is_active": true, "role": "supervisor", "organization": {"id": 172}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 328}, "is_active": false, "role": "worker", "organization": {"id": 172}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 310}, "is_active": true, "role": "worker", "organization": {"id": 170}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 399}, "is_active": false, "role": "owner", "organization": {"id": 554}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 300}, "is_active": true, "role": "owner", "organization": {"id": 523}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 338}, "is_active": false, "role": "maintainer", "organization": {"id": 515}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 323}, "is_active": true, "role": "maintainer", "organization": {"id": 562}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 398}, "is_active": false, "role": "supervisor", "organization": {"id": 532}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 361}, "is_active": true, "role": "supervisor", "organization": {"id": 547}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 317}, "is_active": false, "role": "worker", "organization": {"id": 510}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 334}, "is_active": true, "role": "worker", "organization": {"id": 550}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 312}, "is_active": false, "role": "owner", "organization": {"id": 123}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 325}, "is_active": true, "role": "owner", "organization": {"id": 174}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 342}, "is_active": false, "role": "maintainer", "organization": {"id": 166}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 343}, "is_active": true, "role": "maintainer", "organization": {"id": 164}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 302}, "is_active": false, "role": "supervisor", "organization": {"id": 104}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 331}, "is_active": true, "role": "supervisor", "organization": {"id": 100}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 369}, "is_active": false, "role": "worker", "organization": {"id": 186}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 303}, "is_active": true, "role": "worker", "organization": {"id": 165}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"user": {"id": 319}, "is_active": false, "role": "owner", "organization": {"id": 560}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"user": {"id": 352}, "is_active": true, "role": "owner", "organization": {"id": 502}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"user": {"id": 368}, "is_active": false, "role": "maintainer", "organization": {"id": 563}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"user": {"id": 388}, "is_active": true, "role": "maintainer", "organization": {"id": 570}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"user": {"id": 316}, "is_active": false, "role": "supervisor", "organization": {"id": 509}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"user": {"id": 359}, "is_active": true, "role": "supervisor", "organization": {"id": 576}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"user": {"id": 301}, "is_active": false, "role": "worker", "organization": {"id": 507}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"user": {"id": 384}, "is_active": true, "role": "worker", "organization": {"id": 557}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"user": {"id": 327}, "is_active": false, "role": "owner", "organization": {"id": 198}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"user": {"id": 370}, "is_active": true, "role": "owner", "organization": {"id": 184}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"user": {"id": 373}, "is_active": false, "role": "maintainer", "organization": {"id": 130}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"user": {"id": 394}, "is_active": true, "role": "maintainer", "organization": {"id": 178}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"user": {"id": 302}, "is_active": false, "role": "supervisor", "organization": {"id": 124}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"user": {"id": 355}, "is_active": true, "role": "supervisor", "organization": {"id": 120}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"user": {"id": 336}, "is_active": false, "role": "worker", "organization": {"id": 110}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"user": {"id": 336}, "is_active": true, "role": "worker", "organization": {"id": 188}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 343}, "is_active": false, "role": "owner", "organization": {"id": 591}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 372}, "is_active": true, "role": "owner", "organization": {"id": 584}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 339}, "is_active": false, "role": "maintainer", "organization": {"id": 531}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 357}, "is_active": true, "role": "maintainer", "organization": {"id": 565}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 361}, "is_active": false, "role": "supervisor", "organization": {"id": 524}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 399}, "is_active": true, "role": "supervisor", "organization": {"id": 587}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 324}, "is_active": false, "role": "worker", "organization": {"id": 559}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 341}, "is_active": true, "role": "worker", "organization": {"id": 578}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 310}, "is_active": false, "role": "owner", "organization": {"id": 196}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 353}, "is_active": true, "role": "owner", "organization": {"id": 114}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 306}, "is_active": false, "role": "maintainer", "organization": {"id": 108}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 348}, "is_active": true, "role": "maintainer", "organization": {"id": 175}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 392}, "is_active": false, "role": "supervisor", "organization": {"id": 191}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 375}, "is_active": true, "role": "supervisor", "organization": {"id": 123}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 371}, "is_active": false, "role": "worker", "organization": {"id": 120}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 335}, "is_active": true, "role": "worker", "organization": {"id": 112}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 311}, "is_active": false, "role": "owner", "organization": {"id": 505}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 346}, "is_active": true, "role": "owner", "organization": {"id": 588}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 379}, "is_active": false, "role": "maintainer", "organization": {"id": 567}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 307}, "is_active": true, "role": "maintainer", "organization": {"id": 522}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 377}, "is_active": false, "role": "supervisor", "organization": {"id": 541}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 388}, "is_active": true, "role": "supervisor", "organization": {"id": 506}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 366}, "is_active": false, "role": "worker", "organization": {"id": 509}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 360}, "is_active": true, "role": "worker", "organization": {"id": 512}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 381}, "is_active": false, "role": "owner", "organization": {"id": 194}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 357}, "is_active": true, "role": "owner", "organization": {"id": 147}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 320}, "is_active": false, "role": "maintainer", "organization": {"id": 191}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 399}, "is_active": true, "role": "maintainer", "organization": {"id": 142}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 312}, "is_active": false, "role": "supervisor", "organization": {"id": 100}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 305}, "is_active": true, "role": "supervisor", "organization": {"id": 132}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 378}, "is_active": false, "role": "worker", "organization": {"id": 178}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 345}, "is_active": true, "role": "worker", "organization": {"id": 102}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 317}, "is_active": false, "role": "owner", "organization": {"id": 503}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 314}, "is_active": true, "role": "owner", "organization": {"id": 551}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 320}, "is_active": false, "role": "maintainer", "organization": {"id": 512}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 311}, "is_active": true, "role": "maintainer", "organization": {"id": 574}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 340}, "is_active": false, "role": "supervisor", "organization": {"id": 546}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 393}, "is_active": true, "role": "supervisor", "organization": {"id": 514}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 367}, "is_active": false, "role": "worker", "organization": {"id": 572}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 320}, "is_active": true, "role": "worker", "organization": {"id": 580}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 376}, "is_active": false, "role": "owner", "organization": {"id": 121}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 386}, "is_active": true, "role": "owner", "organization": {"id": 174}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 337}, "is_active": false, "role": "maintainer", "organization": {"id": 151}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 326}, "is_active": true, "role": "maintainer", "organization": {"id": 124}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 394}, "is_active": false, "role": "supervisor", "organization": {"id": 126}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 305}, "is_active": true, "role": "supervisor", "organization": {"id": 147}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 356}, "is_active": false, "role": "worker", "organization": {"id": 117}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 330}, "is_active": true, "role": "worker", "organization": {"id": 161}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 325}, "is_active": false, "role": "owner", "organization": {"id": 592}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 382}, "is_active": true, "role": "owner", "organization": {"id": 567}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 343}, "is_active": false, "role": "maintainer", "organization": {"id": 578}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 317}, "is_active": true, "role": "maintainer", "organization": {"id": 586}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 304}, "is_active": false, "role": "supervisor", "organization": {"id": 558}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 362}, "is_active": true, "role": "supervisor", "organization": {"id": 548}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 349}, "is_active": false, "role": "worker", "organization": {"id": 536}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 300}, "is_active": true, "role": "worker", "organization": {"id": 560}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 308}, "is_active": false, "role": "owner", "organization": {"id": 172}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 366}, "is_active": true, "role": "owner", "organization": {"id": 145}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 321}, "is_active": false, "role": "maintainer", "organization": {"id": 174}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 330}, "is_active": true, "role": "maintainer", "organization": {"id": 183}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 301}, "is_active": false, "role": "supervisor", "organization": {"id": 156}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 378}, "is_active": true, "role": "supervisor", "organization": {"id": 150}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 343}, "is_active": false, "role": "worker", "organization": {"id": 146}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 378}, "is_active": true, "role": "worker", "organization": {"id": 136}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"user": {"id": 362}, "is_active": false, "role": "owner", "organization": {"id": 551}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"user": {"id": 376}, "is_active": true, "role": "owner", "organization": {"id": 509}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"user": {"id": 383}, "is_active": false, "role": "maintainer", "organization": {"id": 518}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"user": {"id": 387}, "is_active": true, "role": "maintainer", "organization": {"id": 541}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"user": {"id": 377}, "is_active": false, "role": "supervisor", "organization": {"id": 584}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"user": {"id": 305}, "is_active": true, "role": "supervisor", "organization": {"id": 541}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"user": {"id": 350}, "is_active": false, "role": "worker", "organization": {"id": 567}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"user": {"id": 301}, "is_active": true, "role": "worker", "organization": {"id": 578}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"user": {"id": 392}, "is_active": false, "role": "owner", "organization": {"id": 175}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"user": {"id": 374}, "is_active": true, "role": "owner", "organization": {"id": 161}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"user": {"id": 307}, "is_active": false, "role": "maintainer", "organization": {"id": 157}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"user": {"id": 310}, "is_active": true, "role": "maintainer", "organization": {"id": 161}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"user": {"id": 312}, "is_active": false, "role": "supervisor", "organization": {"id": 172}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"user": {"id": 365}, "is_active": true, "role": "supervisor", "organization": {"id": 194}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"user": {"id": 346}, "is_active": false, "role": "worker", "organization": {"id": 100}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"user": {"id": 318}, "is_active": true, "role": "worker", "organization": {"id": 177}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 347}, "is_active": false, "role": "owner", "organization": {"id": 538}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 376}, "is_active": true, "role": "owner", "organization": {"id": 561}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 396}, "is_active": false, "role": "maintainer", "organization": {"id": 543}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 351}, "is_active": true, "role": "maintainer", "organization": {"id": 564}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 310}, "is_active": false, "role": "supervisor", "organization": {"id": 515}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 316}, "is_active": true, "role": "supervisor", "organization": {"id": 558}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 350}, "is_active": false, "role": "worker", "organization": {"id": 531}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 366}, "is_active": true, "role": "worker", "organization": {"id": 534}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 300}, "is_active": false, "role": "owner", "organization": {"id": 108}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 384}, "is_active": true, "role": "owner", "organization": {"id": 175}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 301}, "is_active": false, "role": "maintainer", "organization": {"id": 176}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 384}, "is_active": true, "role": "maintainer", "organization": {"id": 142}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 365}, "is_active": false, "role": "supervisor", "organization": {"id": 178}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 336}, "is_active": true, "role": "supervisor", "organization": {"id": 188}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 332}, "is_active": false, "role": "worker", "organization": {"id": 193}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 304}, "is_active": true, "role": "worker", "organization": {"id": 130}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 325}, "is_active": false, "role": "owner", "organization": {"id": 521}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 354}, "is_active": true, "role": "owner", "organization": {"id": 513}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 357}, "is_active": false, "role": "maintainer", "organization": {"id": 555}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 326}, "is_active": true, "role": "maintainer", "organization": {"id": 502}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 387}, "is_active": false, "role": "supervisor", "organization": {"id": 569}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 380}, "is_active": true, "role": "supervisor", "organization": {"id": 530}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 307}, "is_active": false, "role": "worker", "organization": {"id": 503}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 381}, "is_active": true, "role": "worker", "organization": {"id": 590}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 314}, "is_active": false, "role": "owner", "organization": {"id": 131}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 393}, "is_active": true, "role": "owner", "organization": {"id": 110}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 350}, "is_active": false, "role": "maintainer", "organization": {"id": 188}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 361}, "is_active": true, "role": "maintainer", "organization": {"id": 164}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 321}, "is_active": false, "role": "supervisor", "organization": {"id": 106}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 365}, "is_active": true, "role": "supervisor", "organization": {"id": 109}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 349}, "is_active": false, "role": "worker", "organization": {"id": 156}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 338}, "is_active": true, "role": "worker", "organization": {"id": 139}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 369}, "is_active": false, "role": "owner", "organization": {"id": 576}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 301}, "is_active": true, "role": "owner", "organization": {"id": 551}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 398}, "is_active": false, "role": "maintainer", "organization": {"id": 516}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 330}, "is_active": true, "role": "maintainer", "organization": {"id": 505}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 330}, "is_active": false, "role": "supervisor", "organization": {"id": 549}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 336}, "is_active": true, "role": "supervisor", "organization": {"id": 551}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 374}, "is_active": false, "role": "worker", "organization": {"id": 510}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 332}, "is_active": true, "role": "worker", "organization": {"id": 572}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 306}, "is_active": false, "role": "owner", "organization": {"id": 186}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 363}, "is_active": true, "role": "owner", "organization": {"id": 164}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 394}, "is_active": false, "role": "maintainer", "organization": {"id": 181}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 306}, "is_active": true, "role": "maintainer", "organization": {"id": 134}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 377}, "is_active": false, "role": "supervisor", "organization": {"id": 190}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 384}, "is_active": true, "role": "supervisor", "organization": {"id": 139}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 318}, "is_active": false, "role": "worker", "organization": {"id": 108}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 320}, "is_active": true, "role": "worker", "organization": {"id": 194}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 330}, "is_active": false, "role": "owner", "organization": {"id": 522}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 309}, "is_active": true, "role": "owner", "organization": {"id": 529}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 308}, "is_active": false, "role": "maintainer", "organization": {"id": 527}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 333}, "is_active": true, "role": "maintainer", "organization": {"id": 551}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 387}, "is_active": false, "role": "supervisor", "organization": {"id": 592}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 349}, "is_active": true, "role": "supervisor", "organization": {"id": 527}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 387}, "is_active": false, "role": "worker", "organization": {"id": 533}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 316}, "is_active": true, "role": "worker", "organization": {"id": 554}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 371}, "is_active": false, "role": "owner", "organization": {"id": 166}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 364}, "is_active": true, "role": "owner", "organization": {"id": 168}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 386}, "is_active": false, "role": "maintainer", "organization": {"id": 119}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 392}, "is_active": true, "role": "maintainer", "organization": {"id": 124}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 390}, "is_active": false, "role": "supervisor", "organization": {"id": 169}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 315}, "is_active": true, "role": "supervisor", "organization": {"id": 188}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 306}, "is_active": false, "role": "worker", "organization": {"id": 171}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 365}, "is_active": true, "role": "worker", "organization": {"id": 173}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"user": {"id": 382}, "is_active": false, "role": "owner", "organization": {"id": 535}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"user": {"id": 338}, "is_active": true, "role": "owner", "organization": {"id": 560}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"user": {"id": 378}, "is_active": false, "role": "maintainer", "organization": {"id": 598}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"user": {"id": 352}, "is_active": true, "role": "maintainer", "organization": {"id": 540}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"user": {"id": 328}, "is_active": false, "role": "supervisor", "organization": {"id": 531}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"user": {"id": 385}, "is_active": true, "role": "supervisor", "organization": {"id": 563}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"user": {"id": 318}, "is_active": false, "role": "worker", "organization": {"id": 546}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"user": {"id": 303}, "is_active": true, "role": "worker", "organization": {"id": 590}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"user": {"id": 369}, "is_active": false, "role": "owner", "organization": {"id": 129}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"user": {"id": 357}, "is_active": true, "role": "owner", "organization": {"id": 125}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"user": {"id": 309}, "is_active": false, "role": "maintainer", "organization": {"id": 117}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"user": {"id": 323}, "is_active": true, "role": "maintainer", "organization": {"id": 108}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"user": {"id": 339}, "is_active": false, "role": "supervisor", "organization": {"id": 188}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"user": {"id": 368}, "is_active": true, "role": "supervisor", "organization": {"id": 180}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"user": {"id": 341}, "is_active": false, "role": "worker", "organization": {"id": 199}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"user": {"id": 341}, "is_active": true, "role": "worker", "organization": {"id": 108}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 26}, "is_active": false, "role": "owner", "organization": {"id": 587}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 89}, "is_active": true, "role": "owner", "organization": {"id": 551}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 81}, "is_active": false, "role": "maintainer", "organization": {"id": 531}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 11}, "is_active": true, "role": "maintainer", "organization": {"id": 551}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 8}, "is_active": false, "role": "supervisor", "organization": {"id": 597}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 30}, "is_active": true, "role": "supervisor", "organization": {"id": 554}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 80}, "is_active": false, "role": "worker", "organization": {"id": 591}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 4}, "is_active": true, "role": "worker", "organization": {"id": 531}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 41}, "is_active": false, "role": "owner", "organization": {"id": 561}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 84}, "is_active": true, "role": "owner", "organization": {"id": 546}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 40}, "is_active": false, "role": "maintainer", "organization": {"id": 578}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 65}, "is_active": true, "role": "maintainer", "organization": {"id": 528}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 8}, "is_active": false, "role": "supervisor", "organization": {"id": 560}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 4}, "is_active": true, "role": "supervisor", "organization": {"id": 596}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 4}, "is_active": false, "role": "worker", "organization": {"id": 548}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 22}, "is_active": true, "role": "worker", "organization": {"id": 559}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 27}, "is_active": false, "role": "owner", "organization": {"id": 569}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 93}, "is_active": true, "role": "owner", "organization": {"id": 592}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 88}, "is_active": false, "role": "maintainer", "organization": {"id": 578}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 27}, "is_active": true, "role": "maintainer", "organization": {"id": 593}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 93}, "is_active": false, "role": "supervisor", "organization": {"id": 596}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 73}, "is_active": true, "role": "supervisor", "organization": {"id": 563}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 28}, "is_active": false, "role": "worker", "organization": {"id": 529}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 5}, "is_active": true, "role": "worker", "organization": {"id": 575}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 93}, "is_active": false, "role": "owner", "organization": {"id": 562}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 28}, "is_active": true, "role": "owner", "organization": {"id": 548}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 1}, "is_active": false, "role": "maintainer", "organization": {"id": 532}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 38}, "is_active": true, "role": "maintainer", "organization": {"id": 503}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 56}, "is_active": false, "role": "supervisor", "organization": {"id": 580}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 45}, "is_active": true, "role": "supervisor", "organization": {"id": 517}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 51}, "is_active": false, "role": "worker", "organization": {"id": 544}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 25}, "is_active": true, "role": "worker", "organization": {"id": 526}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 42}, "is_active": false, "role": "owner", "organization": {"id": 549}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 76}, "is_active": true, "role": "owner", "organization": {"id": 560}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 1}, "is_active": false, "role": "maintainer", "organization": {"id": 592}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 84}, "is_active": true, "role": "maintainer", "organization": {"id": 530}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 54}, "is_active": false, "role": "supervisor", "organization": {"id": 519}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 91}, "is_active": true, "role": "supervisor", "organization": {"id": 571}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 78}, "is_active": false, "role": "worker", "organization": {"id": 577}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 17}, "is_active": true, "role": "worker", "organization": {"id": 563}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 354}, "is_active": false, "role": "owner", "organization": {"id": 537}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 360}, "is_active": true, "role": "owner", "organization": {"id": 567}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 338}, "is_active": false, "role": "maintainer", "organization": {"id": 551}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 397}, "is_active": true, "role": "maintainer", "organization": {"id": 519}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 374}, "is_active": false, "role": "supervisor", "organization": {"id": 546}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 316}, "is_active": true, "role": "supervisor", "organization": {"id": 573}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 370}, "is_active": false, "role": "worker", "organization": {"id": 591}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 352}, "is_active": true, "role": "worker", "organization": {"id": 510}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 332}, "is_active": false, "role": "owner", "organization": {"id": 550}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 365}, "is_active": true, "role": "owner", "organization": {"id": 555}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 310}, "is_active": false, "role": "maintainer", "organization": {"id": 521}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 337}, "is_active": true, "role": "maintainer", "organization": {"id": 593}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 388}, "is_active": false, "role": "supervisor", "organization": {"id": 589}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 350}, "is_active": true, "role": "supervisor", "organization": {"id": 573}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 399}, "is_active": false, "role": "worker", "organization": {"id": 544}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 379}, "is_active": true, "role": "worker", "organization": {"id": 589}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 334}, "is_active": false, "role": "owner", "organization": {"id": 592}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 332}, "is_active": true, "role": "owner", "organization": {"id": 592}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 370}, "is_active": false, "role": "maintainer", "organization": {"id": 593}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 330}, "is_active": true, "role": "maintainer", "organization": {"id": 591}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 350}, "is_active": false, "role": "supervisor", "organization": {"id": 525}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 342}, "is_active": true, "role": "supervisor", "organization": {"id": 583}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 398}, "is_active": false, "role": "worker", "organization": {"id": 507}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 308}, "is_active": true, "role": "worker", "organization": {"id": 521}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 389}, "is_active": false, "role": "owner", "organization": {"id": 597}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 319}, "is_active": true, "role": "owner", "organization": {"id": 504}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 310}, "is_active": false, "role": "maintainer", "organization": {"id": 544}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 377}, "is_active": true, "role": "maintainer", "organization": {"id": 595}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 375}, "is_active": false, "role": "supervisor", "organization": {"id": 522}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 377}, "is_active": true, "role": "supervisor", "organization": {"id": 594}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 371}, "is_active": false, "role": "worker", "organization": {"id": 510}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 336}, "is_active": true, "role": "worker", "organization": {"id": 551}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 340}, "is_active": false, "role": "owner", "organization": {"id": 532}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 394}, "is_active": true, "role": "owner", "organization": {"id": 574}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 311}, "is_active": false, "role": "maintainer", "organization": {"id": 550}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 340}, "is_active": true, "role": "maintainer", "organization": {"id": 542}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 371}, "is_active": false, "role": "supervisor", "organization": {"id": 510}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 392}, "is_active": true, "role": "supervisor", "organization": {"id": 559}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 339}, "is_active": false, "role": "worker", "organization": {"id": 576}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 327}, "is_active": true, "role": "worker", "organization": {"id": 547}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 22}, "is_active": false, "role": "owner", "organization": {"id": 573}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 95}, "is_active": true, "role": "owner", "organization": {"id": 556}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 3}, "is_active": false, "role": "maintainer", "organization": {"id": 526}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 47}, "is_active": true, "role": "maintainer", "organization": {"id": 543}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 43}, "is_active": false, "role": "supervisor", "organization": {"id": 522}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 74}, "is_active": true, "role": "supervisor", "organization": {"id": 536}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 53}, "is_active": false, "role": "worker", "organization": {"id": 505}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 78}, "is_active": true, "role": "worker", "organization": {"id": 505}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 29}, "is_active": false, "role": "owner", "organization": {"id": 164}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 11}, "is_active": true, "role": "owner", "organization": {"id": 140}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 75}, "is_active": false, "role": "maintainer", "organization": {"id": 120}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 42}, "is_active": true, "role": "maintainer", "organization": {"id": 170}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 85}, "is_active": false, "role": "supervisor", "organization": {"id": 176}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 6}, "is_active": true, "role": "supervisor", "organization": {"id": 121}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 63}, "is_active": false, "role": "worker", "organization": {"id": 176}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 90}, "is_active": true, "role": "worker", "organization": {"id": 185}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 56}, "is_active": false, "role": "owner", "organization": {"id": 598}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 80}, "is_active": true, "role": "owner", "organization": {"id": 571}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 68}, "is_active": false, "role": "maintainer", "organization": {"id": 567}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 20}, "is_active": true, "role": "maintainer", "organization": {"id": 549}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 45}, "is_active": false, "role": "supervisor", "organization": {"id": 528}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 32}, "is_active": true, "role": "supervisor", "organization": {"id": 537}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 44}, "is_active": false, "role": "worker", "organization": {"id": 542}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 60}, "is_active": true, "role": "worker", "organization": {"id": 568}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 42}, "is_active": false, "role": "owner", "organization": {"id": 100}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 75}, "is_active": true, "role": "owner", "organization": {"id": 120}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 29}, "is_active": false, "role": "maintainer", "organization": {"id": 110}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 97}, "is_active": true, "role": "maintainer", "organization": {"id": 151}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 44}, "is_active": false, "role": "supervisor", "organization": {"id": 158}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 29}, "is_active": true, "role": "supervisor", "organization": {"id": 156}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 91}, "is_active": false, "role": "worker", "organization": {"id": 112}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 95}, "is_active": true, "role": "worker", "organization": {"id": 187}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 13}, "is_active": false, "role": "owner", "organization": {"id": 533}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 9}, "is_active": true, "role": "owner", "organization": {"id": 580}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 66}, "is_active": false, "role": "maintainer", "organization": {"id": 531}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 10}, "is_active": true, "role": "maintainer", "organization": {"id": 503}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 90}, "is_active": false, "role": "supervisor", "organization": {"id": 516}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 79}, "is_active": true, "role": "supervisor", "organization": {"id": 588}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 87}, "is_active": false, "role": "worker", "organization": {"id": 593}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 75}, "is_active": true, "role": "worker", "organization": {"id": 591}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 93}, "is_active": false, "role": "owner", "organization": {"id": 128}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 59}, "is_active": true, "role": "owner", "organization": {"id": 198}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 53}, "is_active": false, "role": "maintainer", "organization": {"id": 104}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 97}, "is_active": true, "role": "maintainer", "organization": {"id": 113}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 8}, "is_active": false, "role": "supervisor", "organization": {"id": 195}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 99}, "is_active": true, "role": "supervisor", "organization": {"id": 172}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 65}, "is_active": false, "role": "worker", "organization": {"id": 120}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 41}, "is_active": true, "role": "worker", "organization": {"id": 123}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 58}, "is_active": false, "role": "owner", "organization": {"id": 535}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 14}, "is_active": true, "role": "owner", "organization": {"id": 517}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 15}, "is_active": false, "role": "maintainer", "organization": {"id": 587}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 79}, "is_active": true, "role": "maintainer", "organization": {"id": 531}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 79}, "is_active": false, "role": "supervisor", "organization": {"id": 549}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 76}, "is_active": true, "role": "supervisor", "organization": {"id": 550}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 8}, "is_active": false, "role": "worker", "organization": {"id": 561}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 6}, "is_active": true, "role": "worker", "organization": {"id": 560}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 28}, "is_active": false, "role": "owner", "organization": {"id": 194}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 72}, "is_active": true, "role": "owner", "organization": {"id": 165}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 0}, "is_active": false, "role": "maintainer", "organization": {"id": 171}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 29}, "is_active": true, "role": "maintainer", "organization": {"id": 119}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 53}, "is_active": false, "role": "supervisor", "organization": {"id": 110}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 29}, "is_active": true, "role": "supervisor", "organization": {"id": 164}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 53}, "is_active": false, "role": "worker", "organization": {"id": 181}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 54}, "is_active": true, "role": "worker", "organization": {"id": 104}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"user": {"id": 95}, "is_active": false, "role": "owner", "organization": {"id": 583}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"user": {"id": 52}, "is_active": true, "role": "owner", "organization": {"id": 544}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"user": {"id": 39}, "is_active": false, "role": "maintainer", "organization": {"id": 572}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"user": {"id": 19}, "is_active": true, "role": "maintainer", "organization": {"id": 501}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"user": {"id": 16}, "is_active": false, "role": "supervisor", "organization": {"id": 507}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"user": {"id": 38}, "is_active": true, "role": "supervisor", "organization": {"id": 588}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"user": {"id": 22}, "is_active": false, "role": "worker", "organization": {"id": 505}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"user": {"id": 0}, "is_active": true, "role": "worker", "organization": {"id": 570}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"user": {"id": 16}, "is_active": false, "role": "owner", "organization": {"id": 100}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"user": {"id": 65}, "is_active": true, "role": "owner", "organization": {"id": 171}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"user": {"id": 44}, "is_active": false, "role": "maintainer", "organization": {"id": 150}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"user": {"id": 42}, "is_active": true, "role": "maintainer", "organization": {"id": 145}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"user": {"id": 3}, "is_active": false, "role": "supervisor", "organization": {"id": 159}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"user": {"id": 21}, "is_active": true, "role": "supervisor", "organization": {"id": 193}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"user": {"id": 41}, "is_active": false, "role": "worker", "organization": {"id": 100}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 7, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"user": {"id": 7}, "is_active": true, "role": "worker", "organization": {"id": 152}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 42}, "is_active": false, "role": "owner", "organization": {"id": 521}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 2}, "is_active": true, "role": "owner", "organization": {"id": 511}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 42}, "is_active": false, "role": "maintainer", "organization": {"id": 578}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 81, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 81}, "is_active": true, "role": "maintainer", "organization": {"id": 551}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 97}, "is_active": false, "role": "supervisor", "organization": {"id": 523}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 48}, "is_active": true, "role": "supervisor", "organization": {"id": 513}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 70}, "is_active": false, "role": "worker", "organization": {"id": 504}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 33}, "is_active": true, "role": "worker", "organization": {"id": 570}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 0}, "is_active": false, "role": "owner", "organization": {"id": 196}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 85}, "is_active": true, "role": "owner", "organization": {"id": 197}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 41}, "is_active": false, "role": "maintainer", "organization": {"id": 127}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 0}, "is_active": true, "role": "maintainer", "organization": {"id": 123}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 68}, "is_active": false, "role": "supervisor", "organization": {"id": 190}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 70}, "is_active": true, "role": "supervisor", "organization": {"id": 112}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 5}, "is_active": false, "role": "worker", "organization": {"id": 101}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 22}, "is_active": true, "role": "worker", "organization": {"id": 159}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 79}, "is_active": false, "role": "owner", "organization": {"id": 548}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 40}, "is_active": true, "role": "owner", "organization": {"id": 504}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 77}, "is_active": false, "role": "maintainer", "organization": {"id": 543}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 62}, "is_active": true, "role": "maintainer", "organization": {"id": 580}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 41}, "is_active": false, "role": "supervisor", "organization": {"id": 500}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 24}, "is_active": true, "role": "supervisor", "organization": {"id": 560}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 65}, "is_active": false, "role": "worker", "organization": {"id": 515}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 29}, "is_active": true, "role": "worker", "organization": {"id": 534}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 93}, "is_active": false, "role": "owner", "organization": {"id": 107}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 32}, "is_active": true, "role": "owner", "organization": {"id": 162}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 34}, "is_active": false, "role": "maintainer", "organization": {"id": 109}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 36}, "is_active": true, "role": "maintainer", "organization": {"id": 177}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 1}, "is_active": false, "role": "supervisor", "organization": {"id": 137}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 63}, "is_active": true, "role": "supervisor", "organization": {"id": 114}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 49}, "is_active": false, "role": "worker", "organization": {"id": 148}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 36}, "is_active": true, "role": "worker", "organization": {"id": 199}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 74}, "is_active": false, "role": "owner", "organization": {"id": 528}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 74}, "is_active": true, "role": "owner", "organization": {"id": 513}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 22}, "is_active": false, "role": "maintainer", "organization": {"id": 502}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 13}, "is_active": true, "role": "maintainer", "organization": {"id": 575}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 73}, "is_active": false, "role": "supervisor", "organization": {"id": 525}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 71}, "is_active": true, "role": "supervisor", "organization": {"id": 575}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 5}, "is_active": false, "role": "worker", "organization": {"id": 581}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 95}, "is_active": true, "role": "worker", "organization": {"id": 568}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 11}, "is_active": false, "role": "owner", "organization": {"id": 145}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 57}, "is_active": true, "role": "owner", "organization": {"id": 123}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 37}, "is_active": false, "role": "maintainer", "organization": {"id": 103}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 99}, "is_active": true, "role": "maintainer", "organization": {"id": 189}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 20}, "is_active": false, "role": "supervisor", "organization": {"id": 115}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 44}, "is_active": true, "role": "supervisor", "organization": {"id": 176}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 75}, "is_active": false, "role": "worker", "organization": {"id": 151}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 41}, "is_active": true, "role": "worker", "organization": {"id": 119}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 54}, "is_active": false, "role": "owner", "organization": {"id": 575}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 52}, "is_active": true, "role": "owner", "organization": {"id": 549}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 63}, "is_active": false, "role": "maintainer", "organization": {"id": 538}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 34}, "is_active": true, "role": "maintainer", "organization": {"id": 541}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 30}, "is_active": false, "role": "supervisor", "organization": {"id": 591}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 68}, "is_active": true, "role": "supervisor", "organization": {"id": 573}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 47}, "is_active": false, "role": "worker", "organization": {"id": 583}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 13}, "is_active": true, "role": "worker", "organization": {"id": 524}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 79}, "is_active": false, "role": "owner", "organization": {"id": 164}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 35}, "is_active": true, "role": "owner", "organization": {"id": 159}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 42}, "is_active": false, "role": "maintainer", "organization": {"id": 102}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 44}, "is_active": true, "role": "maintainer", "organization": {"id": 169}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 58}, "is_active": false, "role": "supervisor", "organization": {"id": 167}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 11}, "is_active": true, "role": "supervisor", "organization": {"id": 183}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 82}, "is_active": false, "role": "worker", "organization": {"id": 128}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 87}, "is_active": true, "role": "worker", "organization": {"id": 104}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"user": {"id": 40}, "is_active": false, "role": "owner", "organization": {"id": 538}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"user": {"id": 33}, "is_active": true, "role": "owner", "organization": {"id": 593}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"user": {"id": 26}, "is_active": false, "role": "maintainer", "organization": {"id": 537}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"user": {"id": 27}, "is_active": true, "role": "maintainer", "organization": {"id": 583}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"user": {"id": 95}, "is_active": false, "role": "supervisor", "organization": {"id": 588}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"user": {"id": 82}, "is_active": true, "role": "supervisor", "organization": {"id": 533}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"user": {"id": 0}, "is_active": false, "role": "worker", "organization": {"id": 500}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"user": {"id": 19}, "is_active": true, "role": "worker", "organization": {"id": 532}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"user": {"id": 17}, "is_active": false, "role": "owner", "organization": {"id": 153}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"user": {"id": 45}, "is_active": true, "role": "owner", "organization": {"id": 106}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"user": {"id": 14}, "is_active": false, "role": "maintainer", "organization": {"id": 158}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"user": {"id": 13}, "is_active": true, "role": "maintainer", "organization": {"id": 171}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"user": {"id": 68}, "is_active": false, "role": "supervisor", "organization": {"id": 128}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"user": {"id": 62}, "is_active": true, "role": "supervisor", "organization": {"id": 125}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"user": {"id": 39}, "is_active": false, "role": "worker", "organization": {"id": 130}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"user": {"id": 63}, "is_active": true, "role": "worker", "organization": {"id": 110}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 35}, "is_active": false, "role": "owner", "organization": {"id": 583}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 90}, "is_active": true, "role": "owner", "organization": {"id": 596}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 35}, "is_active": false, "role": "maintainer", "organization": {"id": 582}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 24}, "is_active": true, "role": "maintainer", "organization": {"id": 540}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 11}, "is_active": false, "role": "supervisor", "organization": {"id": 553}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 31}, "is_active": true, "role": "supervisor", "organization": {"id": 501}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 78}, "is_active": false, "role": "worker", "organization": {"id": 558}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 21}, "is_active": true, "role": "worker", "organization": {"id": 575}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 69}, "is_active": false, "role": "owner", "organization": {"id": 103}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 17}, "is_active": true, "role": "owner", "organization": {"id": 113}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 97}, "is_active": false, "role": "maintainer", "organization": {"id": 103}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 6}, "is_active": true, "role": "maintainer", "organization": {"id": 122}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 46}, "is_active": false, "role": "supervisor", "organization": {"id": 153}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 28}, "is_active": true, "role": "supervisor", "organization": {"id": 147}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 69}, "is_active": false, "role": "worker", "organization": {"id": 194}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 32}, "is_active": true, "role": "worker", "organization": {"id": 199}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 36}, "is_active": false, "role": "owner", "organization": {"id": 587}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 80}, "is_active": true, "role": "owner", "organization": {"id": 518}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 87}, "is_active": false, "role": "maintainer", "organization": {"id": 567}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 40}, "is_active": true, "role": "maintainer", "organization": {"id": 555}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 76}, "is_active": false, "role": "supervisor", "organization": {"id": 559}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 0}, "is_active": true, "role": "supervisor", "organization": {"id": 503}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 57}, "is_active": false, "role": "worker", "organization": {"id": 549}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 34}, "is_active": true, "role": "worker", "organization": {"id": 546}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 0}, "is_active": false, "role": "owner", "organization": {"id": 106}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 61}, "is_active": true, "role": "owner", "organization": {"id": 170}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 89}, "is_active": false, "role": "maintainer", "organization": {"id": 184}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 70}, "is_active": true, "role": "maintainer", "organization": {"id": 196}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 89}, "is_active": false, "role": "supervisor", "organization": {"id": 123}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 51}, "is_active": true, "role": "supervisor", "organization": {"id": 193}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 96}, "is_active": false, "role": "worker", "organization": {"id": 174}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 97}, "is_active": true, "role": "worker", "organization": {"id": 151}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 91}, "is_active": false, "role": "owner", "organization": {"id": 520}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 12}, "is_active": true, "role": "owner", "organization": {"id": 578}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 3}, "is_active": false, "role": "maintainer", "organization": {"id": 539}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 26}, "is_active": true, "role": "maintainer", "organization": {"id": 572}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 28}, "is_active": false, "role": "supervisor", "organization": {"id": 577}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 85}, "is_active": true, "role": "supervisor", "organization": {"id": 597}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 82}, "is_active": false, "role": "worker", "organization": {"id": 592}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 37}, "is_active": true, "role": "worker", "organization": {"id": 528}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 79}, "is_active": false, "role": "owner", "organization": {"id": 170}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 6}, "is_active": true, "role": "owner", "organization": {"id": 166}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 74}, "is_active": false, "role": "maintainer", "organization": {"id": 137}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 1}, "is_active": true, "role": "maintainer", "organization": {"id": 191}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 95}, "is_active": false, "role": "supervisor", "organization": {"id": 120}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 18}, "is_active": true, "role": "supervisor", "organization": {"id": 197}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 69}, "is_active": false, "role": "worker", "organization": {"id": 174}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 26}, "is_active": true, "role": "worker", "organization": {"id": 163}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 73}, "is_active": false, "role": "owner", "organization": {"id": 572}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 28}, "is_active": true, "role": "owner", "organization": {"id": 530}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 47}, "is_active": false, "role": "maintainer", "organization": {"id": 552}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 81}, "is_active": true, "role": "maintainer", "organization": {"id": 516}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 34}, "is_active": false, "role": "supervisor", "organization": {"id": 528}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 58}, "is_active": true, "role": "supervisor", "organization": {"id": 538}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 26}, "is_active": false, "role": "worker", "organization": {"id": 570}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 99}, "is_active": true, "role": "worker", "organization": {"id": 549}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 63}, "is_active": false, "role": "owner", "organization": {"id": 135}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 94}, "is_active": true, "role": "owner", "organization": {"id": 119}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 12}, "is_active": false, "role": "maintainer", "organization": {"id": 123}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 68}, "is_active": true, "role": "maintainer", "organization": {"id": 104}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 81}, "is_active": false, "role": "supervisor", "organization": {"id": 188}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 91}, "is_active": true, "role": "supervisor", "organization": {"id": 177}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 8}, "is_active": false, "role": "worker", "organization": {"id": 149}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 29}, "is_active": true, "role": "worker", "organization": {"id": 100}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"user": {"id": 55}, "is_active": false, "role": "owner", "organization": {"id": 542}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"user": {"id": 40}, "is_active": true, "role": "owner", "organization": {"id": 568}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"user": {"id": 43}, "is_active": false, "role": "maintainer", "organization": {"id": 524}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"user": {"id": 43}, "is_active": true, "role": "maintainer", "organization": {"id": 588}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"user": {"id": 91}, "is_active": false, "role": "supervisor", "organization": {"id": 577}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"user": {"id": 77}, "is_active": true, "role": "supervisor", "organization": {"id": 579}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"user": {"id": 80}, "is_active": false, "role": "worker", "organization": {"id": 565}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"user": {"id": 12}, "is_active": true, "role": "worker", "organization": {"id": 505}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"user": {"id": 7}, "is_active": false, "role": "owner", "organization": {"id": 138}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"user": {"id": 87}, "is_active": true, "role": "owner", "organization": {"id": 129}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"user": {"id": 46}, "is_active": false, "role": "maintainer", "organization": {"id": 180}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"user": {"id": 1}, "is_active": true, "role": "maintainer", "organization": {"id": 156}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"user": {"id": 41}, "is_active": false, "role": "supervisor", "organization": {"id": 194}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"user": {"id": 78}, "is_active": true, "role": "supervisor", "organization": {"id": 101}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"user": {"id": 84}, "is_active": false, "role": "worker", "organization": {"id": 183}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"user": {"id": 47}, "is_active": true, "role": "worker", "organization": {"id": 127}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 35}, "is_active": false, "role": "owner", "organization": {"id": 539}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 38}, "is_active": true, "role": "owner", "organization": {"id": 548}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 37}, "is_active": false, "role": "maintainer", "organization": {"id": 568}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 5}, "is_active": true, "role": "maintainer", "organization": {"id": 513}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 22}, "is_active": false, "role": "supervisor", "organization": {"id": 525}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 65}, "is_active": true, "role": "supervisor", "organization": {"id": 541}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 98}, "is_active": false, "role": "worker", "organization": {"id": 545}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 75}, "is_active": true, "role": "worker", "organization": {"id": 522}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 1}, "is_active": false, "role": "owner", "organization": {"id": 115}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 80}, "is_active": true, "role": "owner", "organization": {"id": 108}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 26}, "is_active": false, "role": "maintainer", "organization": {"id": 189}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 34}, "is_active": true, "role": "maintainer", "organization": {"id": 176}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 78}, "is_active": false, "role": "supervisor", "organization": {"id": 197}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 61}, "is_active": true, "role": "supervisor", "organization": {"id": 102}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 82}, "is_active": false, "role": "worker", "organization": {"id": 115}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 74}, "is_active": true, "role": "worker", "organization": {"id": 157}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 32}, "is_active": false, "role": "owner", "organization": {"id": 568}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 8}, "is_active": true, "role": "owner", "organization": {"id": 597}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 7}, "is_active": false, "role": "maintainer", "organization": {"id": 586}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 43}, "is_active": true, "role": "maintainer", "organization": {"id": 544}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 76}, "is_active": false, "role": "supervisor", "organization": {"id": 563}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 34}, "is_active": true, "role": "supervisor", "organization": {"id": 521}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 22}, "is_active": false, "role": "worker", "organization": {"id": 588}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 31}, "is_active": true, "role": "worker", "organization": {"id": 577}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 5}, "is_active": false, "role": "owner", "organization": {"id": 178}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 1}, "is_active": true, "role": "owner", "organization": {"id": 138}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 28}, "is_active": false, "role": "maintainer", "organization": {"id": 150}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 21}, "is_active": true, "role": "maintainer", "organization": {"id": 128}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 90}, "is_active": false, "role": "supervisor", "organization": {"id": 184}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 43}, "is_active": true, "role": "supervisor", "organization": {"id": 187}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 76}, "is_active": false, "role": "worker", "organization": {"id": 123}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 94}, "is_active": true, "role": "worker", "organization": {"id": 142}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 90}, "is_active": false, "role": "owner", "organization": {"id": 537}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 19}, "is_active": true, "role": "owner", "organization": {"id": 558}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 52}, "is_active": false, "role": "maintainer", "organization": {"id": 570}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 8}, "is_active": true, "role": "maintainer", "organization": {"id": 517}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 32}, "is_active": false, "role": "supervisor", "organization": {"id": 563}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 68}, "is_active": true, "role": "supervisor", "organization": {"id": 588}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 8}, "is_active": false, "role": "worker", "organization": {"id": 529}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 70}, "is_active": true, "role": "worker", "organization": {"id": 533}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 24}, "is_active": false, "role": "owner", "organization": {"id": 112}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 41}, "is_active": true, "role": "owner", "organization": {"id": 188}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 76}, "is_active": false, "role": "maintainer", "organization": {"id": 103}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 44}, "is_active": true, "role": "maintainer", "organization": {"id": 109}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 71}, "is_active": false, "role": "supervisor", "organization": {"id": 146}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 91}, "is_active": true, "role": "supervisor", "organization": {"id": 137}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 40}, "is_active": false, "role": "worker", "organization": {"id": 162}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 34}, "is_active": true, "role": "worker", "organization": {"id": 162}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 26}, "is_active": false, "role": "owner", "organization": {"id": 580}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 78}, "is_active": true, "role": "owner", "organization": {"id": 516}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 65}, "is_active": false, "role": "maintainer", "organization": {"id": 583}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 11}, "is_active": true, "role": "maintainer", "organization": {"id": 522}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 65}, "is_active": false, "role": "supervisor", "organization": {"id": 508}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 7}, "is_active": true, "role": "supervisor", "organization": {"id": 502}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 70}, "is_active": false, "role": "worker", "organization": {"id": 516}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 36}, "is_active": true, "role": "worker", "organization": {"id": 590}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 52}, "is_active": false, "role": "owner", "organization": {"id": 179}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 42}, "is_active": true, "role": "owner", "organization": {"id": 191}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 65}, "is_active": false, "role": "maintainer", "organization": {"id": 144}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 93}, "is_active": true, "role": "maintainer", "organization": {"id": 129}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 72}, "is_active": false, "role": "supervisor", "organization": {"id": 101}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 63}, "is_active": true, "role": "supervisor", "organization": {"id": 179}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 42}, "is_active": false, "role": "worker", "organization": {"id": 159}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 90}, "is_active": true, "role": "worker", "organization": {"id": 103}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"user": {"id": 21}, "is_active": false, "role": "owner", "organization": {"id": 598}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"user": {"id": 85}, "is_active": true, "role": "owner", "organization": {"id": 572}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"user": {"id": 34}, "is_active": false, "role": "maintainer", "organization": {"id": 579}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"user": {"id": 44}, "is_active": true, "role": "maintainer", "organization": {"id": 523}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"user": {"id": 72}, "is_active": false, "role": "supervisor", "organization": {"id": 542}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"user": {"id": 62}, "is_active": true, "role": "supervisor", "organization": {"id": 564}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"user": {"id": 68}, "is_active": false, "role": "worker", "organization": {"id": 539}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"user": {"id": 74}, "is_active": true, "role": "worker", "organization": {"id": 588}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"user": {"id": 27}, "is_active": false, "role": "owner", "organization": {"id": 103}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"user": {"id": 74}, "is_active": true, "role": "owner", "organization": {"id": 107}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"user": {"id": 2}, "is_active": false, "role": "maintainer", "organization": {"id": 156}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"user": {"id": 51}, "is_active": true, "role": "maintainer", "organization": {"id": 155}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"user": {"id": 87}, "is_active": false, "role": "supervisor", "organization": {"id": 151}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"user": {"id": 92}, "is_active": true, "role": "supervisor", "organization": {"id": 188}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"user": {"id": 27}, "is_active": false, "role": "worker", "organization": {"id": 143}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"user": {"id": 36}, "is_active": true, "role": "worker", "organization": {"id": 113}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 89}, "is_active": false, "role": "owner", "organization": {"id": 547}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 20}, "is_active": true, "role": "owner", "organization": {"id": 532}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 24}, "is_active": false, "role": "maintainer", "organization": {"id": 544}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 89}, "is_active": true, "role": "maintainer", "organization": {"id": 542}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 54}, "is_active": false, "role": "supervisor", "organization": {"id": 512}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 45}, "is_active": true, "role": "supervisor", "organization": {"id": 596}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 30}, "is_active": false, "role": "worker", "organization": {"id": 583}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 65}, "is_active": true, "role": "worker", "organization": {"id": 516}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 73}, "is_active": false, "role": "owner", "organization": {"id": 199}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 10}, "is_active": true, "role": "owner", "organization": {"id": 177}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 15}, "is_active": false, "role": "maintainer", "organization": {"id": 145}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 50}, "is_active": true, "role": "maintainer", "organization": {"id": 146}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 44}, "is_active": false, "role": "supervisor", "organization": {"id": 107}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 5}, "is_active": true, "role": "supervisor", "organization": {"id": 173}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 22}, "is_active": false, "role": "worker", "organization": {"id": 114}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 52}, "is_active": true, "role": "worker", "organization": {"id": 157}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 52}, "is_active": false, "role": "owner", "organization": {"id": 562}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 51}, "is_active": true, "role": "owner", "organization": {"id": 534}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 15}, "is_active": false, "role": "maintainer", "organization": {"id": 573}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 51}, "is_active": true, "role": "maintainer", "organization": {"id": 580}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 11}, "is_active": false, "role": "supervisor", "organization": {"id": 513}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 47}, "is_active": true, "role": "supervisor", "organization": {"id": 551}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 43}, "is_active": false, "role": "worker", "organization": {"id": 569}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 67}, "is_active": true, "role": "worker", "organization": {"id": 598}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 48}, "is_active": false, "role": "owner", "organization": {"id": 115}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 69}, "is_active": true, "role": "owner", "organization": {"id": 133}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 6}, "is_active": false, "role": "maintainer", "organization": {"id": 179}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 42}, "is_active": true, "role": "maintainer", "organization": {"id": 127}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 33}, "is_active": false, "role": "supervisor", "organization": {"id": 183}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 39}, "is_active": true, "role": "supervisor", "organization": {"id": 104}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 8}, "is_active": false, "role": "worker", "organization": {"id": 192}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 67}, "is_active": true, "role": "worker", "organization": {"id": 179}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 75}, "is_active": false, "role": "owner", "organization": {"id": 540}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 20}, "is_active": true, "role": "owner", "organization": {"id": 587}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 52}, "is_active": false, "role": "maintainer", "organization": {"id": 545}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 46}, "is_active": true, "role": "maintainer", "organization": {"id": 575}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 50}, "is_active": false, "role": "supervisor", "organization": {"id": 536}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 50}, "is_active": true, "role": "supervisor", "organization": {"id": 551}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 28}, "is_active": false, "role": "worker", "organization": {"id": 537}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 14}, "is_active": true, "role": "worker", "organization": {"id": 500}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 32}, "is_active": false, "role": "owner", "organization": {"id": 100}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 99}, "is_active": true, "role": "owner", "organization": {"id": 114}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 48}, "is_active": false, "role": "maintainer", "organization": {"id": 115}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 33}, "is_active": true, "role": "maintainer", "organization": {"id": 165}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 33}, "is_active": false, "role": "supervisor", "organization": {"id": 192}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 67}, "is_active": true, "role": "supervisor", "organization": {"id": 135}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 80}, "is_active": false, "role": "worker", "organization": {"id": 180}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 85}, "is_active": true, "role": "worker", "organization": {"id": 111}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 82}, "is_active": false, "role": "owner", "organization": {"id": 588}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 87}, "is_active": true, "role": "owner", "organization": {"id": 541}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 45}, "is_active": false, "role": "maintainer", "organization": {"id": 584}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 91}, "is_active": true, "role": "maintainer", "organization": {"id": 507}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 54}, "is_active": false, "role": "supervisor", "organization": {"id": 539}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 87}, "is_active": true, "role": "supervisor", "organization": {"id": 569}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 93}, "is_active": false, "role": "worker", "organization": {"id": 572}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 30}, "is_active": true, "role": "worker", "organization": {"id": 508}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 29}, "is_active": false, "role": "owner", "organization": {"id": 159}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 64}, "is_active": true, "role": "owner", "organization": {"id": 162}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 0}, "is_active": false, "role": "maintainer", "organization": {"id": 114}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 96}, "is_active": true, "role": "maintainer", "organization": {"id": 109}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 97}, "is_active": false, "role": "supervisor", "organization": {"id": 120}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 16}, "is_active": true, "role": "supervisor", "organization": {"id": 146}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 43}, "is_active": false, "role": "worker", "organization": {"id": 129}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 48}, "is_active": true, "role": "worker", "organization": {"id": 127}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"user": {"id": 77}, "is_active": false, "role": "owner", "organization": {"id": 526}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"user": {"id": 23}, "is_active": true, "role": "owner", "organization": {"id": 545}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"user": {"id": 44}, "is_active": false, "role": "maintainer", "organization": {"id": 513}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"user": {"id": 7}, "is_active": true, "role": "maintainer", "organization": {"id": 552}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"user": {"id": 60}, "is_active": false, "role": "supervisor", "organization": {"id": 521}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"user": {"id": 88}, "is_active": true, "role": "supervisor", "organization": {"id": 555}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"user": {"id": 66}, "is_active": false, "role": "worker", "organization": {"id": 509}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"user": {"id": 30}, "is_active": true, "role": "worker", "organization": {"id": 543}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"user": {"id": 7}, "is_active": false, "role": "owner", "organization": {"id": 193}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"user": {"id": 88}, "is_active": true, "role": "owner", "organization": {"id": 113}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"user": {"id": 97}, "is_active": false, "role": "maintainer", "organization": {"id": 198}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"user": {"id": 65}, "is_active": true, "role": "maintainer", "organization": {"id": 138}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"user": {"id": 4}, "is_active": false, "role": "supervisor", "organization": {"id": 173}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"user": {"id": 5}, "is_active": true, "role": "supervisor", "organization": {"id": 175}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"user": {"id": 92}, "is_active": false, "role": "worker", "organization": {"id": 137}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"user": {"id": 58}, "is_active": true, "role": "worker", "organization": {"id": 134}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 328}, "is_active": false, "role": "owner", "organization": {"id": 570}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 353}, "is_active": true, "role": "owner", "organization": {"id": 547}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 359}, "is_active": false, "role": "maintainer", "organization": {"id": 587}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 325}, "is_active": true, "role": "maintainer", "organization": {"id": 535}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 380}, "is_active": false, "role": "supervisor", "organization": {"id": 599}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 386}, "is_active": true, "role": "supervisor", "organization": {"id": 592}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 339}, "is_active": false, "role": "worker", "organization": {"id": 564}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 306}, "is_active": true, "role": "worker", "organization": {"id": 527}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 398}, "is_active": false, "role": "owner", "organization": {"id": 132}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 337}, "is_active": true, "role": "owner", "organization": {"id": 154}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 306}, "is_active": false, "role": "maintainer", "organization": {"id": 119}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 380}, "is_active": true, "role": "maintainer", "organization": {"id": 141}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 385}, "is_active": false, "role": "supervisor", "organization": {"id": 149}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 373}, "is_active": true, "role": "supervisor", "organization": {"id": 107}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 386}, "is_active": false, "role": "worker", "organization": {"id": 151}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 338}, "is_active": true, "role": "worker", "organization": {"id": 187}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 308}, "is_active": false, "role": "owner", "organization": {"id": 569}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 7, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 347}, "is_active": true, "role": "owner", "organization": {"id": 503}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 386}, "is_active": false, "role": "maintainer", "organization": {"id": 537}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 342}, "is_active": true, "role": "maintainer", "organization": {"id": 524}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 347}, "is_active": false, "role": "supervisor", "organization": {"id": 522}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 345}, "is_active": true, "role": "supervisor", "organization": {"id": 530}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 374}, "is_active": false, "role": "worker", "organization": {"id": 558}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 364}, "is_active": true, "role": "worker", "organization": {"id": 551}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 327}, "is_active": false, "role": "owner", "organization": {"id": 108}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 312}, "is_active": true, "role": "owner", "organization": {"id": 108}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 349}, "is_active": false, "role": "maintainer", "organization": {"id": 187}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 333}, "is_active": true, "role": "maintainer", "organization": {"id": 172}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 316}, "is_active": false, "role": "supervisor", "organization": {"id": 112}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 305}, "is_active": true, "role": "supervisor", "organization": {"id": 132}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 344}, "is_active": false, "role": "worker", "organization": {"id": 188}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 302}, "is_active": true, "role": "worker", "organization": {"id": 197}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 389}, "is_active": false, "role": "owner", "organization": {"id": 582}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 339}, "is_active": true, "role": "owner", "organization": {"id": 573}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 300}, "is_active": false, "role": "maintainer", "organization": {"id": 564}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 359}, "is_active": true, "role": "maintainer", "organization": {"id": 541}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 385}, "is_active": false, "role": "supervisor", "organization": {"id": 588}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 369}, "is_active": true, "role": "supervisor", "organization": {"id": 573}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 355}, "is_active": false, "role": "worker", "organization": {"id": 586}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 349}, "is_active": true, "role": "worker", "organization": {"id": 552}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 395}, "is_active": false, "role": "owner", "organization": {"id": 151}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 7, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 302}, "is_active": true, "role": "owner", "organization": {"id": 187}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 335}, "is_active": false, "role": "maintainer", "organization": {"id": 142}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 316}, "is_active": true, "role": "maintainer", "organization": {"id": 137}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 333}, "is_active": false, "role": "supervisor", "organization": {"id": 178}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 314}, "is_active": true, "role": "supervisor", "organization": {"id": 180}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 339}, "is_active": false, "role": "worker", "organization": {"id": 139}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 363}, "is_active": true, "role": "worker", "organization": {"id": 132}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 347}, "is_active": false, "role": "owner", "organization": {"id": 507}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 387}, "is_active": true, "role": "owner", "organization": {"id": 557}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 314}, "is_active": false, "role": "maintainer", "organization": {"id": 505}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 303}, "is_active": true, "role": "maintainer", "organization": {"id": 500}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 389}, "is_active": false, "role": "supervisor", "organization": {"id": 533}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 302}, "is_active": true, "role": "supervisor", "organization": {"id": 528}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 390}, "is_active": false, "role": "worker", "organization": {"id": 534}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 325}, "is_active": true, "role": "worker", "organization": {"id": 556}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 367}, "is_active": false, "role": "owner", "organization": {"id": 194}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 331}, "is_active": true, "role": "owner", "organization": {"id": 108}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 364}, "is_active": false, "role": "maintainer", "organization": {"id": 193}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 377}, "is_active": true, "role": "maintainer", "organization": {"id": 117}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 316}, "is_active": false, "role": "supervisor", "organization": {"id": 156}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 378}, "is_active": true, "role": "supervisor", "organization": {"id": 196}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 372}, "is_active": false, "role": "worker", "organization": {"id": 126}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 372}, "is_active": true, "role": "worker", "organization": {"id": 112}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"user": {"id": 334}, "is_active": false, "role": "owner", "organization": {"id": 586}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"user": {"id": 359}, "is_active": true, "role": "owner", "organization": {"id": 532}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"user": {"id": 366}, "is_active": false, "role": "maintainer", "organization": {"id": 590}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"user": {"id": 367}, "is_active": true, "role": "maintainer", "organization": {"id": 522}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"user": {"id": 300}, "is_active": false, "role": "supervisor", "organization": {"id": 570}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"user": {"id": 391}, "is_active": true, "role": "supervisor", "organization": {"id": 538}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"user": {"id": 379}, "is_active": false, "role": "worker", "organization": {"id": 542}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"user": {"id": 310}, "is_active": true, "role": "worker", "organization": {"id": 592}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"user": {"id": 306}, "is_active": false, "role": "owner", "organization": {"id": 118}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"user": {"id": 390}, "is_active": true, "role": "owner", "organization": {"id": 178}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"user": {"id": 394}, "is_active": false, "role": "maintainer", "organization": {"id": 196}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"user": {"id": 323}, "is_active": true, "role": "maintainer", "organization": {"id": 114}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"user": {"id": 353}, "is_active": false, "role": "supervisor", "organization": {"id": 102}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"user": {"id": 311}, "is_active": true, "role": "supervisor", "organization": {"id": 198}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"user": {"id": 372}, "is_active": false, "role": "worker", "organization": {"id": 144}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"user": {"id": 395}, "is_active": true, "role": "worker", "organization": {"id": 137}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 355}, "is_active": false, "role": "owner", "organization": {"id": 548}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 364}, "is_active": true, "role": "owner", "organization": {"id": 552}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 342}, "is_active": false, "role": "maintainer", "organization": {"id": 557}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 371}, "is_active": true, "role": "maintainer", "organization": {"id": 570}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 393}, "is_active": false, "role": "supervisor", "organization": {"id": 519}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 374}, "is_active": true, "role": "supervisor", "organization": {"id": 530}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 318}, "is_active": false, "role": "worker", "organization": {"id": 526}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 387}, "is_active": true, "role": "worker", "organization": {"id": 559}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 385}, "is_active": false, "role": "owner", "organization": {"id": 174}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 328}, "is_active": true, "role": "owner", "organization": {"id": 119}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 325}, "is_active": false, "role": "maintainer", "organization": {"id": 178}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 81, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 319}, "is_active": true, "role": "maintainer", "organization": {"id": 173}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 360}, "is_active": false, "role": "supervisor", "organization": {"id": 116}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 381}, "is_active": true, "role": "supervisor", "organization": {"id": 156}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 330}, "is_active": false, "role": "worker", "organization": {"id": 140}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 390}, "is_active": true, "role": "worker", "organization": {"id": 104}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 381}, "is_active": false, "role": "owner", "organization": {"id": 518}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 362}, "is_active": true, "role": "owner", "organization": {"id": 592}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 394}, "is_active": false, "role": "maintainer", "organization": {"id": 550}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 393}, "is_active": true, "role": "maintainer", "organization": {"id": 572}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 357}, "is_active": false, "role": "supervisor", "organization": {"id": 549}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 323}, "is_active": true, "role": "supervisor", "organization": {"id": 511}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 343}, "is_active": false, "role": "worker", "organization": {"id": 553}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 357}, "is_active": true, "role": "worker", "organization": {"id": 548}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 334}, "is_active": false, "role": "owner", "organization": {"id": 111}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 369}, "is_active": true, "role": "owner", "organization": {"id": 113}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 375}, "is_active": false, "role": "maintainer", "organization": {"id": 137}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 356}, "is_active": true, "role": "maintainer", "organization": {"id": 193}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 315}, "is_active": false, "role": "supervisor", "organization": {"id": 111}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 381}, "is_active": true, "role": "supervisor", "organization": {"id": 159}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 378}, "is_active": false, "role": "worker", "organization": {"id": 121}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 376}, "is_active": true, "role": "worker", "organization": {"id": 114}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 344}, "is_active": false, "role": "owner", "organization": {"id": 579}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 382}, "is_active": true, "role": "owner", "organization": {"id": 552}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 389}, "is_active": false, "role": "maintainer", "organization": {"id": 549}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 328}, "is_active": true, "role": "maintainer", "organization": {"id": 563}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 330}, "is_active": false, "role": "supervisor", "organization": {"id": 559}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 331}, "is_active": true, "role": "supervisor", "organization": {"id": 513}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 356}, "is_active": false, "role": "worker", "organization": {"id": 559}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 94, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 356}, "is_active": true, "role": "worker", "organization": {"id": 538}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 308}, "is_active": false, "role": "owner", "organization": {"id": 194}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 334}, "is_active": true, "role": "owner", "organization": {"id": 117}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 333}, "is_active": false, "role": "maintainer", "organization": {"id": 165}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 314}, "is_active": true, "role": "maintainer", "organization": {"id": 170}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 311}, "is_active": false, "role": "supervisor", "organization": {"id": 112}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 309}, "is_active": true, "role": "supervisor", "organization": {"id": 166}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 384}, "is_active": false, "role": "worker", "organization": {"id": 112}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 358}, "is_active": true, "role": "worker", "organization": {"id": 150}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 337}, "is_active": false, "role": "owner", "organization": {"id": 581}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 396}, "is_active": true, "role": "owner", "organization": {"id": 536}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 356}, "is_active": false, "role": "maintainer", "organization": {"id": 582}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 312}, "is_active": true, "role": "maintainer", "organization": {"id": 586}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 311}, "is_active": false, "role": "supervisor", "organization": {"id": 596}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 366}, "is_active": true, "role": "supervisor", "organization": {"id": 538}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 81, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 387}, "is_active": false, "role": "worker", "organization": {"id": 504}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 361}, "is_active": true, "role": "worker", "organization": {"id": 533}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 330}, "is_active": false, "role": "owner", "organization": {"id": 171}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 325}, "is_active": true, "role": "owner", "organization": {"id": 116}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 350}, "is_active": false, "role": "maintainer", "organization": {"id": 173}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 308}, "is_active": true, "role": "maintainer", "organization": {"id": 193}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 380}, "is_active": false, "role": "supervisor", "organization": {"id": 125}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 358}, "is_active": true, "role": "supervisor", "organization": {"id": 160}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 383}, "is_active": false, "role": "worker", "organization": {"id": 111}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 393}, "is_active": true, "role": "worker", "organization": {"id": 161}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"user": {"id": 361}, "is_active": false, "role": "owner", "organization": {"id": 592}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"user": {"id": 382}, "is_active": true, "role": "owner", "organization": {"id": 561}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"user": {"id": 379}, "is_active": false, "role": "maintainer", "organization": {"id": 598}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"user": {"id": 304}, "is_active": true, "role": "maintainer", "organization": {"id": 516}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"user": {"id": 333}, "is_active": false, "role": "supervisor", "organization": {"id": 539}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"user": {"id": 370}, "is_active": true, "role": "supervisor", "organization": {"id": 550}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 81, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"user": {"id": 398}, "is_active": false, "role": "worker", "organization": {"id": 585}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"user": {"id": 341}, "is_active": true, "role": "worker", "organization": {"id": 558}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"user": {"id": 363}, "is_active": false, "role": "owner", "organization": {"id": 157}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"user": {"id": 318}, "is_active": true, "role": "owner", "organization": {"id": 116}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"user": {"id": 362}, "is_active": false, "role": "maintainer", "organization": {"id": 153}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"user": {"id": 388}, "is_active": true, "role": "maintainer", "organization": {"id": 143}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"user": {"id": 391}, "is_active": false, "role": "supervisor", "organization": {"id": 163}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"user": {"id": 386}, "is_active": true, "role": "supervisor", "organization": {"id": 149}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"user": {"id": 387}, "is_active": false, "role": "worker", "organization": {"id": 112}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"user": {"id": 359}, "is_active": true, "role": "worker", "organization": {"id": 153}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 359}, "is_active": false, "role": "owner", "organization": {"id": 537}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 302}, "is_active": true, "role": "owner", "organization": {"id": 549}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 352}, "is_active": false, "role": "maintainer", "organization": {"id": 595}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 329}, "is_active": true, "role": "maintainer", "organization": {"id": 595}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 394}, "is_active": false, "role": "supervisor", "organization": {"id": 532}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 323}, "is_active": true, "role": "supervisor", "organization": {"id": 565}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 381}, "is_active": false, "role": "worker", "organization": {"id": 587}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 318}, "is_active": true, "role": "worker", "organization": {"id": 571}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 396}, "is_active": false, "role": "owner", "organization": {"id": 134}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 332}, "is_active": true, "role": "owner", "organization": {"id": 176}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 381}, "is_active": false, "role": "maintainer", "organization": {"id": 136}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 384}, "is_active": true, "role": "maintainer", "organization": {"id": 173}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 359}, "is_active": false, "role": "supervisor", "organization": {"id": 170}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 376}, "is_active": true, "role": "supervisor", "organization": {"id": 110}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 362}, "is_active": false, "role": "worker", "organization": {"id": 185}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 339}, "is_active": true, "role": "worker", "organization": {"id": 185}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 387}, "is_active": false, "role": "owner", "organization": {"id": 541}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 308}, "is_active": true, "role": "owner", "organization": {"id": 529}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 387}, "is_active": false, "role": "maintainer", "organization": {"id": 537}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 313}, "is_active": true, "role": "maintainer", "organization": {"id": 531}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 320}, "is_active": false, "role": "supervisor", "organization": {"id": 581}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 368}, "is_active": true, "role": "supervisor", "organization": {"id": 546}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 375}, "is_active": false, "role": "worker", "organization": {"id": 541}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 378}, "is_active": true, "role": "worker", "organization": {"id": 573}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 363}, "is_active": false, "role": "owner", "organization": {"id": 142}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 380}, "is_active": true, "role": "owner", "organization": {"id": 183}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 328}, "is_active": false, "role": "maintainer", "organization": {"id": 169}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 368}, "is_active": true, "role": "maintainer", "organization": {"id": 181}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 333}, "is_active": false, "role": "supervisor", "organization": {"id": 172}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 358}, "is_active": true, "role": "supervisor", "organization": {"id": 186}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 363}, "is_active": false, "role": "worker", "organization": {"id": 101}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 321}, "is_active": true, "role": "worker", "organization": {"id": 139}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 335}, "is_active": false, "role": "owner", "organization": {"id": 501}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 300}, "is_active": true, "role": "owner", "organization": {"id": 570}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 321}, "is_active": false, "role": "maintainer", "organization": {"id": 558}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 321}, "is_active": true, "role": "maintainer", "organization": {"id": 522}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 301}, "is_active": false, "role": "supervisor", "organization": {"id": 548}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 300}, "is_active": true, "role": "supervisor", "organization": {"id": 518}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 381}, "is_active": false, "role": "worker", "organization": {"id": 573}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 391}, "is_active": true, "role": "worker", "organization": {"id": 585}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 393}, "is_active": false, "role": "owner", "organization": {"id": 100}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 309}, "is_active": true, "role": "owner", "organization": {"id": 192}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 314}, "is_active": false, "role": "maintainer", "organization": {"id": 129}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 394}, "is_active": true, "role": "maintainer", "organization": {"id": 112}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 309}, "is_active": false, "role": "supervisor", "organization": {"id": 134}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 398}, "is_active": true, "role": "supervisor", "organization": {"id": 139}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 324}, "is_active": false, "role": "worker", "organization": {"id": 176}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 311}, "is_active": true, "role": "worker", "organization": {"id": 151}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 383}, "is_active": false, "role": "owner", "organization": {"id": 527}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 376}, "is_active": true, "role": "owner", "organization": {"id": 533}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 398}, "is_active": false, "role": "maintainer", "organization": {"id": 550}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 307}, "is_active": true, "role": "maintainer", "organization": {"id": 511}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 339}, "is_active": false, "role": "supervisor", "organization": {"id": 529}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 342}, "is_active": true, "role": "supervisor", "organization": {"id": 547}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 368}, "is_active": false, "role": "worker", "organization": {"id": 579}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 342}, "is_active": true, "role": "worker", "organization": {"id": 566}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 353}, "is_active": false, "role": "owner", "organization": {"id": 154}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 373}, "is_active": true, "role": "owner", "organization": {"id": 196}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 317}, "is_active": false, "role": "maintainer", "organization": {"id": 107}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 327}, "is_active": true, "role": "maintainer", "organization": {"id": 102}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 359}, "is_active": false, "role": "supervisor", "organization": {"id": 103}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 363}, "is_active": true, "role": "supervisor", "organization": {"id": 150}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 397}, "is_active": false, "role": "worker", "organization": {"id": 152}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 315}, "is_active": true, "role": "worker", "organization": {"id": 141}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"user": {"id": 317}, "is_active": false, "role": "owner", "organization": {"id": 593}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"user": {"id": 368}, "is_active": true, "role": "owner", "organization": {"id": 574}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"user": {"id": 302}, "is_active": false, "role": "maintainer", "organization": {"id": 517}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"user": {"id": 311}, "is_active": true, "role": "maintainer", "organization": {"id": 565}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"user": {"id": 381}, "is_active": false, "role": "supervisor", "organization": {"id": 571}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"user": {"id": 368}, "is_active": true, "role": "supervisor", "organization": {"id": 540}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"user": {"id": 320}, "is_active": false, "role": "worker", "organization": {"id": 518}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"user": {"id": 337}, "is_active": true, "role": "worker", "organization": {"id": 571}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"user": {"id": 343}, "is_active": false, "role": "owner", "organization": {"id": 133}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"user": {"id": 384}, "is_active": true, "role": "owner", "organization": {"id": 195}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"user": {"id": 317}, "is_active": false, "role": "maintainer", "organization": {"id": 100}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"user": {"id": 375}, "is_active": true, "role": "maintainer", "organization": {"id": 190}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"user": {"id": 333}, "is_active": false, "role": "supervisor", "organization": {"id": 139}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"user": {"id": 311}, "is_active": true, "role": "supervisor", "organization": {"id": 174}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"user": {"id": 361}, "is_active": false, "role": "worker", "organization": {"id": 167}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"user": {"id": 386}, "is_active": true, "role": "worker", "organization": {"id": 165}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 342}, "is_active": false, "role": "owner", "organization": {"id": 580}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 307}, "is_active": true, "role": "owner", "organization": {"id": 575}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 314}, "is_active": false, "role": "maintainer", "organization": {"id": 537}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 305}, "is_active": true, "role": "maintainer", "organization": {"id": 575}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 360}, "is_active": false, "role": "supervisor", "organization": {"id": 545}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 384}, "is_active": true, "role": "supervisor", "organization": {"id": 577}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 354}, "is_active": false, "role": "worker", "organization": {"id": 516}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 331}, "is_active": true, "role": "worker", "organization": {"id": 588}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 343}, "is_active": false, "role": "owner", "organization": {"id": 156}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 310}, "is_active": true, "role": "owner", "organization": {"id": 166}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 348}, "is_active": false, "role": "maintainer", "organization": {"id": 156}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 385}, "is_active": true, "role": "maintainer", "organization": {"id": 110}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 371}, "is_active": false, "role": "supervisor", "organization": {"id": 190}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 325}, "is_active": true, "role": "supervisor", "organization": {"id": 183}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 326}, "is_active": false, "role": "worker", "organization": {"id": 152}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 300}, "is_active": true, "role": "worker", "organization": {"id": 108}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 395}, "is_active": false, "role": "owner", "organization": {"id": 593}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 315}, "is_active": true, "role": "owner", "organization": {"id": 578}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 368}, "is_active": false, "role": "maintainer", "organization": {"id": 551}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 337}, "is_active": true, "role": "maintainer", "organization": {"id": 526}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 365}, "is_active": false, "role": "supervisor", "organization": {"id": 575}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 351}, "is_active": true, "role": "supervisor", "organization": {"id": 503}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 343}, "is_active": false, "role": "worker", "organization": {"id": 513}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 386}, "is_active": true, "role": "worker", "organization": {"id": 578}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 399}, "is_active": false, "role": "owner", "organization": {"id": 138}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 328}, "is_active": true, "role": "owner", "organization": {"id": 170}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 380}, "is_active": false, "role": "maintainer", "organization": {"id": 107}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 323}, "is_active": true, "role": "maintainer", "organization": {"id": 168}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 318}, "is_active": false, "role": "supervisor", "organization": {"id": 164}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 359}, "is_active": true, "role": "supervisor", "organization": {"id": 144}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 338}, "is_active": false, "role": "worker", "organization": {"id": 112}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 310}, "is_active": true, "role": "worker", "organization": {"id": 179}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 337}, "is_active": false, "role": "owner", "organization": {"id": 536}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 327}, "is_active": true, "role": "owner", "organization": {"id": 549}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 342}, "is_active": false, "role": "maintainer", "organization": {"id": 581}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 339}, "is_active": true, "role": "maintainer", "organization": {"id": 574}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 379}, "is_active": false, "role": "supervisor", "organization": {"id": 596}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 326}, "is_active": true, "role": "supervisor", "organization": {"id": 583}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 342}, "is_active": false, "role": "worker", "organization": {"id": 587}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 371}, "is_active": true, "role": "worker", "organization": {"id": 509}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 358}, "is_active": false, "role": "owner", "organization": {"id": 112}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 369}, "is_active": true, "role": "owner", "organization": {"id": 186}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 349}, "is_active": false, "role": "maintainer", "organization": {"id": 148}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 332}, "is_active": true, "role": "maintainer", "organization": {"id": 180}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 355}, "is_active": false, "role": "supervisor", "organization": {"id": 171}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 367}, "is_active": true, "role": "supervisor", "organization": {"id": 184}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 351}, "is_active": false, "role": "worker", "organization": {"id": 127}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 395}, "is_active": true, "role": "worker", "organization": {"id": 142}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 354}, "is_active": false, "role": "owner", "organization": {"id": 554}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 350}, "is_active": true, "role": "owner", "organization": {"id": 580}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 379}, "is_active": false, "role": "maintainer", "organization": {"id": 581}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 340}, "is_active": true, "role": "maintainer", "organization": {"id": 565}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 358}, "is_active": false, "role": "supervisor", "organization": {"id": 531}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 383}, "is_active": true, "role": "supervisor", "organization": {"id": 596}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 361}, "is_active": false, "role": "worker", "organization": {"id": 536}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 310}, "is_active": true, "role": "worker", "organization": {"id": 598}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 350}, "is_active": false, "role": "owner", "organization": {"id": 142}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 386}, "is_active": true, "role": "owner", "organization": {"id": 150}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 336}, "is_active": false, "role": "maintainer", "organization": {"id": 108}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 332}, "is_active": true, "role": "maintainer", "organization": {"id": 119}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 399}, "is_active": false, "role": "supervisor", "organization": {"id": 101}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 357}, "is_active": true, "role": "supervisor", "organization": {"id": 128}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 377}, "is_active": false, "role": "worker", "organization": {"id": 126}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 396}, "is_active": true, "role": "worker", "organization": {"id": 109}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"user": {"id": 381}, "is_active": false, "role": "owner", "organization": {"id": 547}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"user": {"id": 359}, "is_active": true, "role": "owner", "organization": {"id": 574}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"user": {"id": 339}, "is_active": false, "role": "maintainer", "organization": {"id": 542}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"user": {"id": 372}, "is_active": true, "role": "maintainer", "organization": {"id": 592}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"user": {"id": 309}, "is_active": false, "role": "supervisor", "organization": {"id": 583}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"user": {"id": 304}, "is_active": true, "role": "supervisor", "organization": {"id": 530}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"user": {"id": 358}, "is_active": false, "role": "worker", "organization": {"id": 501}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"user": {"id": 331}, "is_active": true, "role": "worker", "organization": {"id": 563}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"user": {"id": 318}, "is_active": false, "role": "owner", "organization": {"id": 172}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"user": {"id": 333}, "is_active": true, "role": "owner", "organization": {"id": 109}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"user": {"id": 372}, "is_active": false, "role": "maintainer", "organization": {"id": 175}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"user": {"id": 328}, "is_active": true, "role": "maintainer", "organization": {"id": 142}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"user": {"id": 363}, "is_active": false, "role": "supervisor", "organization": {"id": 140}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"user": {"id": 312}, "is_active": true, "role": "supervisor", "organization": {"id": 186}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"user": {"id": 349}, "is_active": false, "role": "worker", "organization": {"id": 176}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"user": {"id": 365}, "is_active": true, "role": "worker", "organization": {"id": 173}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 351}, "is_active": false, "role": "owner", "organization": {"id": 593}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 394}, "is_active": true, "role": "owner", "organization": {"id": 535}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 315}, "is_active": false, "role": "maintainer", "organization": {"id": 593}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 374}, "is_active": true, "role": "maintainer", "organization": {"id": 523}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 376}, "is_active": false, "role": "supervisor", "organization": {"id": 514}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 363}, "is_active": true, "role": "supervisor", "organization": {"id": 535}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 301}, "is_active": false, "role": "worker", "organization": {"id": 530}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 341}, "is_active": true, "role": "worker", "organization": {"id": 522}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 304}, "is_active": false, "role": "owner", "organization": {"id": 184}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 346}, "is_active": true, "role": "owner", "organization": {"id": 152}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 385}, "is_active": false, "role": "maintainer", "organization": {"id": 134}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 381}, "is_active": true, "role": "maintainer", "organization": {"id": 181}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 365}, "is_active": false, "role": "supervisor", "organization": {"id": 134}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 320}, "is_active": true, "role": "supervisor", "organization": {"id": 101}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 317}, "is_active": false, "role": "worker", "organization": {"id": 187}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 336}, "is_active": true, "role": "worker", "organization": {"id": 107}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 301}, "is_active": false, "role": "owner", "organization": {"id": 561}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 303}, "is_active": true, "role": "owner", "organization": {"id": 542}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 327}, "is_active": false, "role": "maintainer", "organization": {"id": 555}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 369}, "is_active": true, "role": "maintainer", "organization": {"id": 508}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 365}, "is_active": false, "role": "supervisor", "organization": {"id": 559}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 341}, "is_active": true, "role": "supervisor", "organization": {"id": 521}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 385}, "is_active": false, "role": "worker", "organization": {"id": 530}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 340}, "is_active": true, "role": "worker", "organization": {"id": 504}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 339}, "is_active": false, "role": "owner", "organization": {"id": 136}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 374}, "is_active": true, "role": "owner", "organization": {"id": 102}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 343}, "is_active": false, "role": "maintainer", "organization": {"id": 107}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 384}, "is_active": true, "role": "maintainer", "organization": {"id": 189}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 301}, "is_active": false, "role": "supervisor", "organization": {"id": 100}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 366}, "is_active": true, "role": "supervisor", "organization": {"id": 168}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 390}, "is_active": false, "role": "worker", "organization": {"id": 169}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 377}, "is_active": true, "role": "worker", "organization": {"id": 144}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 335}, "is_active": false, "role": "owner", "organization": {"id": 568}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 358}, "is_active": true, "role": "owner", "organization": {"id": 575}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 300}, "is_active": false, "role": "maintainer", "organization": {"id": 551}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 340}, "is_active": true, "role": "maintainer", "organization": {"id": 574}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 328}, "is_active": false, "role": "supervisor", "organization": {"id": 566}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 328}, "is_active": true, "role": "supervisor", "organization": {"id": 570}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 306}, "is_active": false, "role": "worker", "organization": {"id": 557}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 336}, "is_active": true, "role": "worker", "organization": {"id": 523}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 392}, "is_active": false, "role": "owner", "organization": {"id": 191}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 380}, "is_active": true, "role": "owner", "organization": {"id": 144}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 373}, "is_active": false, "role": "maintainer", "organization": {"id": 186}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 352}, "is_active": true, "role": "maintainer", "organization": {"id": 180}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 337}, "is_active": false, "role": "supervisor", "organization": {"id": 194}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 340}, "is_active": true, "role": "supervisor", "organization": {"id": 164}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 334}, "is_active": false, "role": "worker", "organization": {"id": 110}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 329}, "is_active": true, "role": "worker", "organization": {"id": 152}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 317}, "is_active": false, "role": "owner", "organization": {"id": 566}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 381}, "is_active": true, "role": "owner", "organization": {"id": 500}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 398}, "is_active": false, "role": "maintainer", "organization": {"id": 576}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 366}, "is_active": true, "role": "maintainer", "organization": {"id": 563}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 387}, "is_active": false, "role": "supervisor", "organization": {"id": 518}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 352}, "is_active": true, "role": "supervisor", "organization": {"id": 574}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 375}, "is_active": false, "role": "worker", "organization": {"id": 514}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 352}, "is_active": true, "role": "worker", "organization": {"id": 511}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 362}, "is_active": false, "role": "owner", "organization": {"id": 164}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 324}, "is_active": true, "role": "owner", "organization": {"id": 138}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 351}, "is_active": false, "role": "maintainer", "organization": {"id": 151}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 334}, "is_active": true, "role": "maintainer", "organization": {"id": 101}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 61, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 309}, "is_active": false, "role": "supervisor", "organization": {"id": 137}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 375}, "is_active": true, "role": "supervisor", "organization": {"id": 178}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 382}, "is_active": false, "role": "worker", "organization": {"id": 160}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 326}, "is_active": true, "role": "worker", "organization": {"id": 192}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"user": {"id": 310}, "is_active": false, "role": "owner", "organization": {"id": 524}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"user": {"id": 366}, "is_active": true, "role": "owner", "organization": {"id": 573}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"user": {"id": 309}, "is_active": false, "role": "maintainer", "organization": {"id": 533}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"user": {"id": 328}, "is_active": true, "role": "maintainer", "organization": {"id": 525}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"user": {"id": 329}, "is_active": false, "role": "supervisor", "organization": {"id": 572}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"user": {"id": 351}, "is_active": true, "role": "supervisor", "organization": {"id": 556}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"user": {"id": 373}, "is_active": false, "role": "worker", "organization": {"id": 589}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"user": {"id": 331}, "is_active": true, "role": "worker", "organization": {"id": 593}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"user": {"id": 399}, "is_active": false, "role": "owner", "organization": {"id": 142}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"user": {"id": 312}, "is_active": true, "role": "owner", "organization": {"id": 132}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"user": {"id": 306}, "is_active": false, "role": "maintainer", "organization": {"id": 185}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"user": {"id": 328}, "is_active": true, "role": "maintainer", "organization": {"id": 112}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"user": {"id": 314}, "is_active": false, "role": "supervisor", "organization": {"id": 108}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"user": {"id": 390}, "is_active": true, "role": "supervisor", "organization": {"id": 193}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"user": {"id": 300}, "is_active": false, "role": "worker", "organization": {"id": 111}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"user": {"id": 349}, "is_active": true, "role": "worker", "organization": {"id": 125}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 66}, "is_active": false, "role": "owner", "organization": {"id": 593}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 49}, "is_active": true, "role": "owner", "organization": {"id": 511}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 91}, "is_active": false, "role": "maintainer", "organization": {"id": 542}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 42}, "is_active": true, "role": "maintainer", "organization": {"id": 557}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 35}, "is_active": false, "role": "supervisor", "organization": {"id": 533}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 4}, "is_active": true, "role": "supervisor", "organization": {"id": 554}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 30}, "is_active": false, "role": "worker", "organization": {"id": 565}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 26}, "is_active": true, "role": "worker", "organization": {"id": 509}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 80}, "is_active": false, "role": "owner", "organization": {"id": 546}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 42}, "is_active": true, "role": "owner", "organization": {"id": 582}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 16}, "is_active": false, "role": "maintainer", "organization": {"id": 532}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 91}, "is_active": true, "role": "maintainer", "organization": {"id": 523}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 34}, "is_active": false, "role": "supervisor", "organization": {"id": 516}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 55}, "is_active": true, "role": "supervisor", "organization": {"id": 581}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 19}, "is_active": false, "role": "worker", "organization": {"id": 560}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 56}, "is_active": true, "role": "worker", "organization": {"id": 598}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 68}, "is_active": false, "role": "owner", "organization": {"id": 556}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 91}, "is_active": true, "role": "owner", "organization": {"id": 593}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 9}, "is_active": false, "role": "maintainer", "organization": {"id": 535}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 41}, "is_active": true, "role": "maintainer", "organization": {"id": 505}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 34}, "is_active": false, "role": "supervisor", "organization": {"id": 594}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 66}, "is_active": true, "role": "supervisor", "organization": {"id": 573}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 77}, "is_active": false, "role": "worker", "organization": {"id": 549}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 24}, "is_active": true, "role": "worker", "organization": {"id": 549}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 58}, "is_active": false, "role": "owner", "organization": {"id": 539}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 97}, "is_active": true, "role": "owner", "organization": {"id": 550}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 61}, "is_active": false, "role": "maintainer", "organization": {"id": 515}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 26}, "is_active": true, "role": "maintainer", "organization": {"id": 599}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 42}, "is_active": false, "role": "supervisor", "organization": {"id": 500}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 88}, "is_active": true, "role": "supervisor", "organization": {"id": 525}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 1}, "is_active": false, "role": "worker", "organization": {"id": 520}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 98}, "is_active": true, "role": "worker", "organization": {"id": 557}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 20}, "is_active": false, "role": "owner", "organization": {"id": 526}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 81}, "is_active": true, "role": "owner", "organization": {"id": 556}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 81}, "is_active": false, "role": "maintainer", "organization": {"id": 503}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 43}, "is_active": true, "role": "maintainer", "organization": {"id": 586}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 36}, "is_active": false, "role": "supervisor", "organization": {"id": 530}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 61, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 61}, "is_active": true, "role": "supervisor", "organization": {"id": 576}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 93}, "is_active": false, "role": "worker", "organization": {"id": 519}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 95}, "is_active": true, "role": "worker", "organization": {"id": 502}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 344}, "is_active": false, "role": "owner", "organization": {"id": 533}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 375}, "is_active": true, "role": "owner", "organization": {"id": 531}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 390}, "is_active": false, "role": "maintainer", "organization": {"id": 506}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 347}, "is_active": true, "role": "maintainer", "organization": {"id": 518}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 389}, "is_active": false, "role": "supervisor", "organization": {"id": 537}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 351}, "is_active": true, "role": "supervisor", "organization": {"id": 546}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 343}, "is_active": false, "role": "worker", "organization": {"id": 538}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": null}, "resource": {"user": {"id": 312}, "is_active": true, "role": "worker", "organization": {"id": 557}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 31, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 307}, "is_active": false, "role": "owner", "organization": {"id": 598}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 378}, "is_active": true, "role": "owner", "organization": {"id": 546}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 314}, "is_active": false, "role": "maintainer", "organization": {"id": 516}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 380}, "is_active": true, "role": "maintainer", "organization": {"id": 567}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 376}, "is_active": false, "role": "supervisor", "organization": {"id": 561}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 393}, "is_active": true, "role": "supervisor", "organization": {"id": 505}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 313}, "is_active": false, "role": "worker", "organization": {"id": 524}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": null}, "resource": {"user": {"id": 380}, "is_active": true, "role": "worker", "organization": {"id": 596}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 386}, "is_active": false, "role": "owner", "organization": {"id": 580}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 373}, "is_active": true, "role": "owner", "organization": {"id": 589}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 316}, "is_active": false, "role": "maintainer", "organization": {"id": 540}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 357}, "is_active": true, "role": "maintainer", "organization": {"id": 577}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 375}, "is_active": false, "role": "supervisor", "organization": {"id": 522}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 337}, "is_active": true, "role": "supervisor", "organization": {"id": 567}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 329}, "is_active": false, "role": "worker", "organization": {"id": 580}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": null}, "resource": {"user": {"id": 394}, "is_active": true, "role": "worker", "organization": {"id": 561}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 377}, "is_active": false, "role": "owner", "organization": {"id": 563}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 399}, "is_active": true, "role": "owner", "organization": {"id": 576}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 378}, "is_active": false, "role": "maintainer", "organization": {"id": 540}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 324}, "is_active": true, "role": "maintainer", "organization": {"id": 552}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 357}, "is_active": false, "role": "supervisor", "organization": {"id": 572}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 329}, "is_active": true, "role": "supervisor", "organization": {"id": 599}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 355}, "is_active": false, "role": "worker", "organization": {"id": 542}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": null}, "resource": {"user": {"id": 375}, "is_active": true, "role": "worker", "organization": {"id": 592}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 384}, "is_active": false, "role": "owner", "organization": {"id": 576}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 390}, "is_active": true, "role": "owner", "organization": {"id": 599}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 353}, "is_active": false, "role": "maintainer", "organization": {"id": 584}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 344}, "is_active": true, "role": "maintainer", "organization": {"id": 541}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 308}, "is_active": false, "role": "supervisor", "organization": {"id": 500}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 382}, "is_active": true, "role": "supervisor", "organization": {"id": 511}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 361}, "is_active": false, "role": "worker", "organization": {"id": 511}}} -} - -test_scope_CHANGE_ROLE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": null}, "resource": {"user": {"id": 341}, "is_active": true, "role": "worker", "organization": {"id": 536}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 85}, "is_active": false, "role": "owner", "organization": {"id": 532}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 68}, "is_active": true, "role": "owner", "organization": {"id": 554}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 19}, "is_active": false, "role": "maintainer", "organization": {"id": 513}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 66}, "is_active": true, "role": "maintainer", "organization": {"id": 548}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 3}, "is_active": false, "role": "supervisor", "organization": {"id": 590}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 41}, "is_active": true, "role": "supervisor", "organization": {"id": 568}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 22}, "is_active": false, "role": "worker", "organization": {"id": 583}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 86}, "is_active": true, "role": "worker", "organization": {"id": 548}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 48}, "is_active": false, "role": "owner", "organization": {"id": 100}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 99}, "is_active": true, "role": "owner", "organization": {"id": 175}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 3}, "is_active": false, "role": "maintainer", "organization": {"id": 182}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 64}, "is_active": true, "role": "maintainer", "organization": {"id": 170}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 90}, "is_active": false, "role": "supervisor", "organization": {"id": 135}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 69}, "is_active": true, "role": "supervisor", "organization": {"id": 162}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 11}, "is_active": false, "role": "worker", "organization": {"id": 139}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 61}, "is_active": true, "role": "worker", "organization": {"id": 130}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 27}, "is_active": false, "role": "owner", "organization": {"id": 546}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 12}, "is_active": true, "role": "owner", "organization": {"id": 556}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 52}, "is_active": false, "role": "maintainer", "organization": {"id": 515}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 81}, "is_active": true, "role": "maintainer", "organization": {"id": 584}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 45}, "is_active": false, "role": "supervisor", "organization": {"id": 525}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 24}, "is_active": true, "role": "supervisor", "organization": {"id": 573}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 11}, "is_active": false, "role": "worker", "organization": {"id": 537}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 21}, "is_active": true, "role": "worker", "organization": {"id": 539}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 68}, "is_active": false, "role": "owner", "organization": {"id": 108}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 69}, "is_active": true, "role": "owner", "organization": {"id": 192}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 21}, "is_active": false, "role": "maintainer", "organization": {"id": 127}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 73}, "is_active": true, "role": "maintainer", "organization": {"id": 115}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 19}, "is_active": false, "role": "supervisor", "organization": {"id": 165}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 34}, "is_active": true, "role": "supervisor", "organization": {"id": 176}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 65}, "is_active": false, "role": "worker", "organization": {"id": 100}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 38}, "is_active": true, "role": "worker", "organization": {"id": 176}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 88}, "is_active": false, "role": "owner", "organization": {"id": 545}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 38}, "is_active": true, "role": "owner", "organization": {"id": 525}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 98}, "is_active": false, "role": "maintainer", "organization": {"id": 566}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 98}, "is_active": true, "role": "maintainer", "organization": {"id": 580}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 37}, "is_active": false, "role": "supervisor", "organization": {"id": 521}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 73}, "is_active": true, "role": "supervisor", "organization": {"id": 505}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 42}, "is_active": false, "role": "worker", "organization": {"id": 591}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 0}, "is_active": true, "role": "worker", "organization": {"id": 581}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 14}, "is_active": false, "role": "owner", "organization": {"id": 147}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 17}, "is_active": true, "role": "owner", "organization": {"id": 187}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 7, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 7}, "is_active": false, "role": "maintainer", "organization": {"id": 124}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 28}, "is_active": true, "role": "maintainer", "organization": {"id": 147}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 33}, "is_active": false, "role": "supervisor", "organization": {"id": 150}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 90}, "is_active": true, "role": "supervisor", "organization": {"id": 125}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 77}, "is_active": false, "role": "worker", "organization": {"id": 155}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 18}, "is_active": true, "role": "worker", "organization": {"id": 168}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 37}, "is_active": false, "role": "owner", "organization": {"id": 500}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 25}, "is_active": true, "role": "owner", "organization": {"id": 565}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 88}, "is_active": false, "role": "maintainer", "organization": {"id": 519}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 22}, "is_active": true, "role": "maintainer", "organization": {"id": 591}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 21}, "is_active": false, "role": "supervisor", "organization": {"id": 530}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 82}, "is_active": true, "role": "supervisor", "organization": {"id": 517}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 17}, "is_active": false, "role": "worker", "organization": {"id": 524}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 53}, "is_active": true, "role": "worker", "organization": {"id": 518}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 19}, "is_active": false, "role": "owner", "organization": {"id": 187}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 11}, "is_active": true, "role": "owner", "organization": {"id": 102}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 20}, "is_active": false, "role": "maintainer", "organization": {"id": 162}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 75}, "is_active": true, "role": "maintainer", "organization": {"id": 171}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 37}, "is_active": false, "role": "supervisor", "organization": {"id": 133}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 14}, "is_active": true, "role": "supervisor", "organization": {"id": 133}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 57}, "is_active": false, "role": "worker", "organization": {"id": 130}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 89}, "is_active": true, "role": "worker", "organization": {"id": 177}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"user": {"id": 87}, "is_active": false, "role": "owner", "organization": {"id": 537}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"user": {"id": 60}, "is_active": true, "role": "owner", "organization": {"id": 530}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"user": {"id": 71}, "is_active": false, "role": "maintainer", "organization": {"id": 566}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"user": {"id": 11}, "is_active": true, "role": "maintainer", "organization": {"id": 554}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"user": {"id": 64}, "is_active": false, "role": "supervisor", "organization": {"id": 559}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"user": {"id": 18}, "is_active": true, "role": "supervisor", "organization": {"id": 552}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"user": {"id": 62}, "is_active": false, "role": "worker", "organization": {"id": 591}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"user": {"id": 34}, "is_active": true, "role": "worker", "organization": {"id": 559}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 7, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"user": {"id": 7}, "is_active": false, "role": "owner", "organization": {"id": 114}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"user": {"id": 26}, "is_active": true, "role": "owner", "organization": {"id": 179}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"user": {"id": 62}, "is_active": false, "role": "maintainer", "organization": {"id": 157}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"user": {"id": 77}, "is_active": true, "role": "maintainer", "organization": {"id": 160}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"user": {"id": 22}, "is_active": false, "role": "supervisor", "organization": {"id": 179}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"user": {"id": 96}, "is_active": true, "role": "supervisor", "organization": {"id": 140}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"user": {"id": 83}, "is_active": false, "role": "worker", "organization": {"id": 199}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"user": {"id": 41}, "is_active": true, "role": "worker", "organization": {"id": 192}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 93}, "is_active": false, "role": "owner", "organization": {"id": 564}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 17}, "is_active": true, "role": "owner", "organization": {"id": 518}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 52}, "is_active": false, "role": "maintainer", "organization": {"id": 568}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 76}, "is_active": true, "role": "maintainer", "organization": {"id": 531}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 8}, "is_active": false, "role": "supervisor", "organization": {"id": 564}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 79}, "is_active": true, "role": "supervisor", "organization": {"id": 507}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 13}, "is_active": false, "role": "worker", "organization": {"id": 509}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 90}, "is_active": true, "role": "worker", "organization": {"id": 545}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 90}, "is_active": false, "role": "owner", "organization": {"id": 189}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 6}, "is_active": true, "role": "owner", "organization": {"id": 152}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 83}, "is_active": false, "role": "maintainer", "organization": {"id": 177}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 17}, "is_active": true, "role": "maintainer", "organization": {"id": 142}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 3}, "is_active": false, "role": "supervisor", "organization": {"id": 134}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 96}, "is_active": true, "role": "supervisor", "organization": {"id": 169}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 32}, "is_active": false, "role": "worker", "organization": {"id": 159}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 23}, "is_active": true, "role": "worker", "organization": {"id": 154}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 28}, "is_active": false, "role": "owner", "organization": {"id": 528}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 71}, "is_active": true, "role": "owner", "organization": {"id": 589}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 47}, "is_active": false, "role": "maintainer", "organization": {"id": 586}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 68}, "is_active": true, "role": "maintainer", "organization": {"id": 578}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 71}, "is_active": false, "role": "supervisor", "organization": {"id": 527}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 71}, "is_active": true, "role": "supervisor", "organization": {"id": 590}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 92}, "is_active": false, "role": "worker", "organization": {"id": 513}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 94, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 94}, "is_active": true, "role": "worker", "organization": {"id": 561}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 39}, "is_active": false, "role": "owner", "organization": {"id": 161}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 18}, "is_active": true, "role": "owner", "organization": {"id": 138}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 11}, "is_active": false, "role": "maintainer", "organization": {"id": 137}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 38}, "is_active": true, "role": "maintainer", "organization": {"id": 109}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 87}, "is_active": false, "role": "supervisor", "organization": {"id": 107}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 38}, "is_active": true, "role": "supervisor", "organization": {"id": 188}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 8}, "is_active": false, "role": "worker", "organization": {"id": 109}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 9}, "is_active": true, "role": "worker", "organization": {"id": 117}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 38}, "is_active": false, "role": "owner", "organization": {"id": 587}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 10}, "is_active": true, "role": "owner", "organization": {"id": 512}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 7}, "is_active": false, "role": "maintainer", "organization": {"id": 527}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 6}, "is_active": true, "role": "maintainer", "organization": {"id": 583}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 47}, "is_active": false, "role": "supervisor", "organization": {"id": 526}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 46}, "is_active": true, "role": "supervisor", "organization": {"id": 547}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 89}, "is_active": false, "role": "worker", "organization": {"id": 582}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 23}, "is_active": true, "role": "worker", "organization": {"id": 519}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 71}, "is_active": false, "role": "owner", "organization": {"id": 136}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 94, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 94}, "is_active": true, "role": "owner", "organization": {"id": 160}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 27}, "is_active": false, "role": "maintainer", "organization": {"id": 159}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 53}, "is_active": true, "role": "maintainer", "organization": {"id": 171}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 50}, "is_active": false, "role": "supervisor", "organization": {"id": 169}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 3}, "is_active": true, "role": "supervisor", "organization": {"id": 114}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 90}, "is_active": false, "role": "worker", "organization": {"id": 163}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 54}, "is_active": true, "role": "worker", "organization": {"id": 136}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 99}, "is_active": false, "role": "owner", "organization": {"id": 587}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 36}, "is_active": true, "role": "owner", "organization": {"id": 556}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 85}, "is_active": false, "role": "maintainer", "organization": {"id": 554}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 39}, "is_active": true, "role": "maintainer", "organization": {"id": 556}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 97}, "is_active": false, "role": "supervisor", "organization": {"id": 512}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 37}, "is_active": true, "role": "supervisor", "organization": {"id": 504}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 6}, "is_active": false, "role": "worker", "organization": {"id": 519}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 77}, "is_active": true, "role": "worker", "organization": {"id": 524}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 14}, "is_active": false, "role": "owner", "organization": {"id": 110}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 78}, "is_active": true, "role": "owner", "organization": {"id": 180}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 79}, "is_active": false, "role": "maintainer", "organization": {"id": 138}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 56}, "is_active": true, "role": "maintainer", "organization": {"id": 178}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 39}, "is_active": false, "role": "supervisor", "organization": {"id": 184}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 75}, "is_active": true, "role": "supervisor", "organization": {"id": 175}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 14}, "is_active": false, "role": "worker", "organization": {"id": 160}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 41}, "is_active": true, "role": "worker", "organization": {"id": 161}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"user": {"id": 28}, "is_active": false, "role": "owner", "organization": {"id": 531}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"user": {"id": 96}, "is_active": true, "role": "owner", "organization": {"id": 525}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"user": {"id": 27}, "is_active": false, "role": "maintainer", "organization": {"id": 558}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"user": {"id": 16}, "is_active": true, "role": "maintainer", "organization": {"id": 539}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"user": {"id": 75}, "is_active": false, "role": "supervisor", "organization": {"id": 583}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"user": {"id": 98}, "is_active": true, "role": "supervisor", "organization": {"id": 504}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"user": {"id": 58}, "is_active": false, "role": "worker", "organization": {"id": 508}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"user": {"id": 15}, "is_active": true, "role": "worker", "organization": {"id": 567}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"user": {"id": 38}, "is_active": false, "role": "owner", "organization": {"id": 164}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"user": {"id": 2}, "is_active": true, "role": "owner", "organization": {"id": 113}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 94, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"user": {"id": 94}, "is_active": false, "role": "maintainer", "organization": {"id": 182}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"user": {"id": 20}, "is_active": true, "role": "maintainer", "organization": {"id": 118}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"user": {"id": 33}, "is_active": false, "role": "supervisor", "organization": {"id": 170}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"user": {"id": 54}, "is_active": true, "role": "supervisor", "organization": {"id": 102}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"user": {"id": 78}, "is_active": false, "role": "worker", "organization": {"id": 153}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"user": {"id": 37}, "is_active": true, "role": "worker", "organization": {"id": 115}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 67}, "is_active": false, "role": "owner", "organization": {"id": 556}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 5}, "is_active": true, "role": "owner", "organization": {"id": 500}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 86}, "is_active": false, "role": "maintainer", "organization": {"id": 535}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 34}, "is_active": true, "role": "maintainer", "organization": {"id": 565}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 11}, "is_active": false, "role": "supervisor", "organization": {"id": 570}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 86}, "is_active": true, "role": "supervisor", "organization": {"id": 507}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 22}, "is_active": false, "role": "worker", "organization": {"id": 504}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 70}, "is_active": true, "role": "worker", "organization": {"id": 501}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 81}, "is_active": false, "role": "owner", "organization": {"id": 125}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 96}, "is_active": true, "role": "owner", "organization": {"id": 157}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 24}, "is_active": false, "role": "maintainer", "organization": {"id": 144}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 47}, "is_active": true, "role": "maintainer", "organization": {"id": 138}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 57}, "is_active": false, "role": "supervisor", "organization": {"id": 151}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 10}, "is_active": true, "role": "supervisor", "organization": {"id": 119}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 87}, "is_active": false, "role": "worker", "organization": {"id": 131}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 52}, "is_active": true, "role": "worker", "organization": {"id": 175}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 61}, "is_active": false, "role": "owner", "organization": {"id": 588}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 65}, "is_active": true, "role": "owner", "organization": {"id": 595}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 35}, "is_active": false, "role": "maintainer", "organization": {"id": 581}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 51}, "is_active": true, "role": "maintainer", "organization": {"id": 521}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 57}, "is_active": false, "role": "supervisor", "organization": {"id": 550}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 99}, "is_active": true, "role": "supervisor", "organization": {"id": 554}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 28}, "is_active": false, "role": "worker", "organization": {"id": 504}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 54}, "is_active": true, "role": "worker", "organization": {"id": 533}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 56}, "is_active": false, "role": "owner", "organization": {"id": 180}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 54}, "is_active": true, "role": "owner", "organization": {"id": 144}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 62}, "is_active": false, "role": "maintainer", "organization": {"id": 101}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 1}, "is_active": true, "role": "maintainer", "organization": {"id": 181}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 27}, "is_active": false, "role": "supervisor", "organization": {"id": 191}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 80}, "is_active": true, "role": "supervisor", "organization": {"id": 157}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 58}, "is_active": false, "role": "worker", "organization": {"id": 159}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 22}, "is_active": true, "role": "worker", "organization": {"id": 191}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 17}, "is_active": false, "role": "owner", "organization": {"id": 590}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 48}, "is_active": true, "role": "owner", "organization": {"id": 507}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 98}, "is_active": false, "role": "maintainer", "organization": {"id": 588}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 89}, "is_active": true, "role": "maintainer", "organization": {"id": 506}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 42}, "is_active": false, "role": "supervisor", "organization": {"id": 514}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 46}, "is_active": true, "role": "supervisor", "organization": {"id": 515}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 98}, "is_active": false, "role": "worker", "organization": {"id": 569}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 81}, "is_active": true, "role": "worker", "organization": {"id": 553}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 85}, "is_active": false, "role": "owner", "organization": {"id": 139}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 74}, "is_active": true, "role": "owner", "organization": {"id": 155}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 88}, "is_active": false, "role": "maintainer", "organization": {"id": 111}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 74}, "is_active": true, "role": "maintainer", "organization": {"id": 110}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 22}, "is_active": false, "role": "supervisor", "organization": {"id": 144}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 34}, "is_active": true, "role": "supervisor", "organization": {"id": 124}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 25}, "is_active": false, "role": "worker", "organization": {"id": 154}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 80}, "is_active": true, "role": "worker", "organization": {"id": 134}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 77}, "is_active": false, "role": "owner", "organization": {"id": 543}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 9}, "is_active": true, "role": "owner", "organization": {"id": 592}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 0}, "is_active": false, "role": "maintainer", "organization": {"id": 580}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 32}, "is_active": true, "role": "maintainer", "organization": {"id": 570}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 91}, "is_active": false, "role": "supervisor", "organization": {"id": 546}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 91}, "is_active": true, "role": "supervisor", "organization": {"id": 558}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 34}, "is_active": false, "role": "worker", "organization": {"id": 509}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 9}, "is_active": true, "role": "worker", "organization": {"id": 578}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 48}, "is_active": false, "role": "owner", "organization": {"id": 160}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 39}, "is_active": true, "role": "owner", "organization": {"id": 161}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 56}, "is_active": false, "role": "maintainer", "organization": {"id": 162}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 83}, "is_active": true, "role": "maintainer", "organization": {"id": 191}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 60}, "is_active": false, "role": "supervisor", "organization": {"id": 102}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 11}, "is_active": true, "role": "supervisor", "organization": {"id": 164}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 84}, "is_active": false, "role": "worker", "organization": {"id": 151}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 9}, "is_active": true, "role": "worker", "organization": {"id": 185}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"user": {"id": 36}, "is_active": false, "role": "owner", "organization": {"id": 574}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 90, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"user": {"id": 90}, "is_active": true, "role": "owner", "organization": {"id": 592}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 71, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"user": {"id": 71}, "is_active": false, "role": "maintainer", "organization": {"id": 588}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"user": {"id": 64}, "is_active": true, "role": "maintainer", "organization": {"id": 507}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"user": {"id": 38}, "is_active": false, "role": "supervisor", "organization": {"id": 552}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"user": {"id": 42}, "is_active": true, "role": "supervisor", "organization": {"id": 508}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"user": {"id": 59}, "is_active": false, "role": "worker", "organization": {"id": 532}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"user": {"id": 40}, "is_active": true, "role": "worker", "organization": {"id": 524}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"user": {"id": 92}, "is_active": false, "role": "owner", "organization": {"id": 141}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"user": {"id": 37}, "is_active": true, "role": "owner", "organization": {"id": 198}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"user": {"id": 70}, "is_active": false, "role": "maintainer", "organization": {"id": 197}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"user": {"id": 34}, "is_active": true, "role": "maintainer", "organization": {"id": 175}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"user": {"id": 69}, "is_active": false, "role": "supervisor", "organization": {"id": 171}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"user": {"id": 60}, "is_active": true, "role": "supervisor", "organization": {"id": 181}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"user": {"id": 25}, "is_active": false, "role": "worker", "organization": {"id": 197}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"user": {"id": 91}, "is_active": true, "role": "worker", "organization": {"id": 120}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 50}, "is_active": false, "role": "owner", "organization": {"id": 564}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 10}, "is_active": true, "role": "owner", "organization": {"id": 506}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 55}, "is_active": false, "role": "maintainer", "organization": {"id": 583}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 94}, "is_active": true, "role": "maintainer", "organization": {"id": 513}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 75}, "is_active": false, "role": "supervisor", "organization": {"id": 538}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 39}, "is_active": true, "role": "supervisor", "organization": {"id": 523}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 6}, "is_active": false, "role": "worker", "organization": {"id": 592}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 55}, "is_active": true, "role": "worker", "organization": {"id": 535}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 7}, "is_active": false, "role": "owner", "organization": {"id": 196}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 24, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 24}, "is_active": true, "role": "owner", "organization": {"id": 169}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 44}, "is_active": false, "role": "maintainer", "organization": {"id": 153}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 47}, "is_active": true, "role": "maintainer", "organization": {"id": 156}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 89}, "is_active": false, "role": "supervisor", "organization": {"id": 149}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 54}, "is_active": true, "role": "supervisor", "organization": {"id": 156}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 90}, "is_active": false, "role": "worker", "organization": {"id": 155}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 18}, "is_active": true, "role": "worker", "organization": {"id": 158}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 58}, "is_active": false, "role": "owner", "organization": {"id": 547}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 1}, "is_active": true, "role": "owner", "organization": {"id": 517}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 96}, "is_active": false, "role": "maintainer", "organization": {"id": 584}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 47}, "is_active": true, "role": "maintainer", "organization": {"id": 572}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 2}, "is_active": false, "role": "supervisor", "organization": {"id": 564}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 2}, "is_active": true, "role": "supervisor", "organization": {"id": 536}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 41}, "is_active": false, "role": "worker", "organization": {"id": 525}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 44}, "is_active": true, "role": "worker", "organization": {"id": 530}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 86}, "is_active": false, "role": "owner", "organization": {"id": 140}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 18}, "is_active": true, "role": "owner", "organization": {"id": 122}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 77}, "is_active": false, "role": "maintainer", "organization": {"id": 153}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 63}, "is_active": true, "role": "maintainer", "organization": {"id": 142}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 97}, "is_active": false, "role": "supervisor", "organization": {"id": 187}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 41}, "is_active": true, "role": "supervisor", "organization": {"id": 110}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 53}, "is_active": false, "role": "worker", "organization": {"id": 126}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 81}, "is_active": true, "role": "worker", "organization": {"id": 174}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 18}, "is_active": false, "role": "owner", "organization": {"id": 578}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 57}, "is_active": true, "role": "owner", "organization": {"id": 575}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 93}, "is_active": false, "role": "maintainer", "organization": {"id": 533}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 47}, "is_active": true, "role": "maintainer", "organization": {"id": 597}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 99}, "is_active": false, "role": "supervisor", "organization": {"id": 537}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 63}, "is_active": true, "role": "supervisor", "organization": {"id": 515}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 38}, "is_active": false, "role": "worker", "organization": {"id": 556}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 44}, "is_active": true, "role": "worker", "organization": {"id": 571}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 69}, "is_active": false, "role": "owner", "organization": {"id": 155}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 74}, "is_active": true, "role": "owner", "organization": {"id": 102}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 13}, "is_active": false, "role": "maintainer", "organization": {"id": 193}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 63}, "is_active": true, "role": "maintainer", "organization": {"id": 169}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 82}, "is_active": false, "role": "supervisor", "organization": {"id": 160}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 23}, "is_active": true, "role": "supervisor", "organization": {"id": 142}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 8}, "is_active": false, "role": "worker", "organization": {"id": 176}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 94}, "is_active": true, "role": "worker", "organization": {"id": 173}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 95}, "is_active": false, "role": "owner", "organization": {"id": 533}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 35}, "is_active": true, "role": "owner", "organization": {"id": 545}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 73}, "is_active": false, "role": "maintainer", "organization": {"id": 581}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 14}, "is_active": true, "role": "maintainer", "organization": {"id": 531}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 57}, "is_active": false, "role": "supervisor", "organization": {"id": 501}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 72}, "is_active": true, "role": "supervisor", "organization": {"id": 571}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 35}, "is_active": false, "role": "worker", "organization": {"id": 535}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 68}, "is_active": true, "role": "worker", "organization": {"id": 573}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 0}, "is_active": false, "role": "owner", "organization": {"id": 113}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 0}, "is_active": true, "role": "owner", "organization": {"id": 130}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 85}, "is_active": false, "role": "maintainer", "organization": {"id": 134}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 3}, "is_active": true, "role": "maintainer", "organization": {"id": 153}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 40}, "is_active": false, "role": "supervisor", "organization": {"id": 113}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 50}, "is_active": true, "role": "supervisor", "organization": {"id": 167}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 89}, "is_active": false, "role": "worker", "organization": {"id": 108}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 26}, "is_active": true, "role": "worker", "organization": {"id": 185}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"user": {"id": 18}, "is_active": false, "role": "owner", "organization": {"id": 502}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"user": {"id": 66}, "is_active": true, "role": "owner", "organization": {"id": 570}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"user": {"id": 74}, "is_active": false, "role": "maintainer", "organization": {"id": 540}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"user": {"id": 99}, "is_active": true, "role": "maintainer", "organization": {"id": 552}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"user": {"id": 57}, "is_active": false, "role": "supervisor", "organization": {"id": 567}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"user": {"id": 91}, "is_active": true, "role": "supervisor", "organization": {"id": 509}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"user": {"id": 26}, "is_active": false, "role": "worker", "organization": {"id": 550}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"user": {"id": 97}, "is_active": true, "role": "worker", "organization": {"id": 538}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"user": {"id": 66}, "is_active": false, "role": "owner", "organization": {"id": 181}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"user": {"id": 10}, "is_active": true, "role": "owner", "organization": {"id": 156}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"user": {"id": 54}, "is_active": false, "role": "maintainer", "organization": {"id": 104}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"user": {"id": 42}, "is_active": true, "role": "maintainer", "organization": {"id": 111}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"user": {"id": 15}, "is_active": false, "role": "supervisor", "organization": {"id": 170}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"user": {"id": 7}, "is_active": true, "role": "supervisor", "organization": {"id": 124}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"user": {"id": 19}, "is_active": false, "role": "worker", "organization": {"id": 155}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"user": {"id": 16}, "is_active": true, "role": "worker", "organization": {"id": 117}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 19, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 19}, "is_active": false, "role": "owner", "organization": {"id": 582}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 12}, "is_active": true, "role": "owner", "organization": {"id": 595}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 49}, "is_active": false, "role": "maintainer", "organization": {"id": 553}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 51}, "is_active": true, "role": "maintainer", "organization": {"id": 530}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 30}, "is_active": false, "role": "supervisor", "organization": {"id": 584}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 91}, "is_active": true, "role": "supervisor", "organization": {"id": 540}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 31}, "is_active": false, "role": "worker", "organization": {"id": 530}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 25}, "is_active": true, "role": "worker", "organization": {"id": 507}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 40}, "is_active": false, "role": "owner", "organization": {"id": 132}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 32}, "is_active": true, "role": "owner", "organization": {"id": 141}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 71}, "is_active": false, "role": "maintainer", "organization": {"id": 186}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 81}, "is_active": true, "role": "maintainer", "organization": {"id": 143}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 72}, "is_active": false, "role": "supervisor", "organization": {"id": 101}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 26}, "is_active": true, "role": "supervisor", "organization": {"id": 155}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 73}, "is_active": false, "role": "worker", "organization": {"id": 196}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 65}, "is_active": true, "role": "worker", "organization": {"id": 180}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 14}, "is_active": false, "role": "owner", "organization": {"id": 551}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 69}, "is_active": true, "role": "owner", "organization": {"id": 525}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 97}, "is_active": false, "role": "maintainer", "organization": {"id": 531}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 97}, "is_active": true, "role": "maintainer", "organization": {"id": 500}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 20}, "is_active": false, "role": "supervisor", "organization": {"id": 530}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 84}, "is_active": true, "role": "supervisor", "organization": {"id": 571}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 27}, "is_active": false, "role": "worker", "organization": {"id": 591}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 38}, "is_active": true, "role": "worker", "organization": {"id": 599}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 53}, "is_active": false, "role": "owner", "organization": {"id": 198}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 51}, "is_active": true, "role": "owner", "organization": {"id": 192}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 59}, "is_active": false, "role": "maintainer", "organization": {"id": 165}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 23}, "is_active": true, "role": "maintainer", "organization": {"id": 157}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 3}, "is_active": false, "role": "supervisor", "organization": {"id": 117}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 9}, "is_active": true, "role": "supervisor", "organization": {"id": 115}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 60}, "is_active": false, "role": "worker", "organization": {"id": 117}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 5}, "is_active": true, "role": "worker", "organization": {"id": 142}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 63}, "is_active": false, "role": "owner", "organization": {"id": 518}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 71}, "is_active": true, "role": "owner", "organization": {"id": 598}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 9}, "is_active": false, "role": "maintainer", "organization": {"id": 554}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 30}, "is_active": true, "role": "maintainer", "organization": {"id": 543}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 33}, "is_active": false, "role": "supervisor", "organization": {"id": 521}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 34}, "is_active": true, "role": "supervisor", "organization": {"id": 576}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 58}, "is_active": false, "role": "worker", "organization": {"id": 581}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 62}, "is_active": true, "role": "worker", "organization": {"id": 597}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 83}, "is_active": false, "role": "owner", "organization": {"id": 114}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 57}, "is_active": true, "role": "owner", "organization": {"id": 167}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 46}, "is_active": false, "role": "maintainer", "organization": {"id": 169}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 20}, "is_active": true, "role": "maintainer", "organization": {"id": 186}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 65}, "is_active": false, "role": "supervisor", "organization": {"id": 118}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 86}, "is_active": true, "role": "supervisor", "organization": {"id": 192}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 63}, "is_active": false, "role": "worker", "organization": {"id": 196}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 2}, "is_active": true, "role": "worker", "organization": {"id": 145}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 82}, "is_active": false, "role": "owner", "organization": {"id": 507}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 25}, "is_active": true, "role": "owner", "organization": {"id": 568}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 54}, "is_active": false, "role": "maintainer", "organization": {"id": 514}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 83}, "is_active": true, "role": "maintainer", "organization": {"id": 576}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 50, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 50}, "is_active": false, "role": "supervisor", "organization": {"id": 504}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 63}, "is_active": true, "role": "supervisor", "organization": {"id": 590}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 25}, "is_active": false, "role": "worker", "organization": {"id": 546}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 60}, "is_active": true, "role": "worker", "organization": {"id": 572}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 15}, "is_active": false, "role": "owner", "organization": {"id": 170}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 22}, "is_active": true, "role": "owner", "organization": {"id": 171}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 43}, "is_active": false, "role": "maintainer", "organization": {"id": 173}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 28}, "is_active": true, "role": "maintainer", "organization": {"id": 185}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 90}, "is_active": false, "role": "supervisor", "organization": {"id": 185}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 44}, "is_active": true, "role": "supervisor", "organization": {"id": 118}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 27}, "is_active": false, "role": "worker", "organization": {"id": 132}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 15}, "is_active": true, "role": "worker", "organization": {"id": 199}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"user": {"id": 80}, "is_active": false, "role": "owner", "organization": {"id": 536}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"user": {"id": 86}, "is_active": true, "role": "owner", "organization": {"id": 553}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"user": {"id": 51}, "is_active": false, "role": "maintainer", "organization": {"id": 514}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"user": {"id": 89}, "is_active": true, "role": "maintainer", "organization": {"id": 598}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"user": {"id": 15}, "is_active": false, "role": "supervisor", "organization": {"id": 506}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"user": {"id": 87}, "is_active": true, "role": "supervisor", "organization": {"id": 583}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"user": {"id": 24}, "is_active": false, "role": "worker", "organization": {"id": 522}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"user": {"id": 77}, "is_active": true, "role": "worker", "organization": {"id": 526}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"user": {"id": 29}, "is_active": false, "role": "owner", "organization": {"id": 118}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"user": {"id": 31}, "is_active": true, "role": "owner", "organization": {"id": 131}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"user": {"id": 42}, "is_active": false, "role": "maintainer", "organization": {"id": 148}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"user": {"id": 4}, "is_active": true, "role": "maintainer", "organization": {"id": 159}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"user": {"id": 32}, "is_active": false, "role": "supervisor", "organization": {"id": 131}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"user": {"id": 46}, "is_active": true, "role": "supervisor", "organization": {"id": 192}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"user": {"id": 47}, "is_active": false, "role": "worker", "organization": {"id": 158}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"user": {"id": 51}, "is_active": true, "role": "worker", "organization": {"id": 128}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 345}, "is_active": false, "role": "owner", "organization": {"id": 511}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 384}, "is_active": true, "role": "owner", "organization": {"id": 570}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 395}, "is_active": false, "role": "maintainer", "organization": {"id": 547}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 394}, "is_active": true, "role": "maintainer", "organization": {"id": 523}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 315}, "is_active": false, "role": "supervisor", "organization": {"id": 531}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 394}, "is_active": true, "role": "supervisor", "organization": {"id": 578}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 384}, "is_active": false, "role": "worker", "organization": {"id": 579}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 394}, "is_active": true, "role": "worker", "organization": {"id": 533}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 335}, "is_active": false, "role": "owner", "organization": {"id": 114}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 323}, "is_active": true, "role": "owner", "organization": {"id": 128}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 336}, "is_active": false, "role": "maintainer", "organization": {"id": 174}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 305}, "is_active": true, "role": "maintainer", "organization": {"id": 189}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 378}, "is_active": false, "role": "supervisor", "organization": {"id": 180}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 366}, "is_active": true, "role": "supervisor", "organization": {"id": 120}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 338}, "is_active": false, "role": "worker", "organization": {"id": 179}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 391}, "is_active": true, "role": "worker", "organization": {"id": 138}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 338}, "is_active": false, "role": "owner", "organization": {"id": 518}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 353}, "is_active": true, "role": "owner", "organization": {"id": 519}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 375}, "is_active": false, "role": "maintainer", "organization": {"id": 570}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 383}, "is_active": true, "role": "maintainer", "organization": {"id": 553}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 319}, "is_active": false, "role": "supervisor", "organization": {"id": 536}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 314}, "is_active": true, "role": "supervisor", "organization": {"id": 533}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 374}, "is_active": false, "role": "worker", "organization": {"id": 592}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 379}, "is_active": true, "role": "worker", "organization": {"id": 505}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 302}, "is_active": false, "role": "owner", "organization": {"id": 121}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 324}, "is_active": true, "role": "owner", "organization": {"id": 181}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 306}, "is_active": false, "role": "maintainer", "organization": {"id": 121}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 368}, "is_active": true, "role": "maintainer", "organization": {"id": 102}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 338}, "is_active": false, "role": "supervisor", "organization": {"id": 121}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 343}, "is_active": true, "role": "supervisor", "organization": {"id": 150}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 308}, "is_active": false, "role": "worker", "organization": {"id": 145}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 300}, "is_active": true, "role": "worker", "organization": {"id": 159}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 318}, "is_active": false, "role": "owner", "organization": {"id": 599}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 365}, "is_active": true, "role": "owner", "organization": {"id": 515}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 381}, "is_active": false, "role": "maintainer", "organization": {"id": 538}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 318}, "is_active": true, "role": "maintainer", "organization": {"id": 528}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 352}, "is_active": false, "role": "supervisor", "organization": {"id": 501}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 332}, "is_active": true, "role": "supervisor", "organization": {"id": 559}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 7, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 361}, "is_active": false, "role": "worker", "organization": {"id": 539}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 355}, "is_active": true, "role": "worker", "organization": {"id": 564}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 374}, "is_active": false, "role": "owner", "organization": {"id": 131}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 328}, "is_active": true, "role": "owner", "organization": {"id": 190}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 315}, "is_active": false, "role": "maintainer", "organization": {"id": 156}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 379}, "is_active": true, "role": "maintainer", "organization": {"id": 154}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 333}, "is_active": false, "role": "supervisor", "organization": {"id": 112}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 358}, "is_active": true, "role": "supervisor", "organization": {"id": 144}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 334}, "is_active": false, "role": "worker", "organization": {"id": 110}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 312}, "is_active": true, "role": "worker", "organization": {"id": 167}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 304}, "is_active": false, "role": "owner", "organization": {"id": 514}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 314}, "is_active": true, "role": "owner", "organization": {"id": 578}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 355}, "is_active": false, "role": "maintainer", "organization": {"id": 576}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 352}, "is_active": true, "role": "maintainer", "organization": {"id": 575}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 341}, "is_active": false, "role": "supervisor", "organization": {"id": 502}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 330}, "is_active": true, "role": "supervisor", "organization": {"id": 565}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 351}, "is_active": false, "role": "worker", "organization": {"id": 506}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 394}, "is_active": true, "role": "worker", "organization": {"id": 509}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 304}, "is_active": false, "role": "owner", "organization": {"id": 139}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 384}, "is_active": true, "role": "owner", "organization": {"id": 184}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 373}, "is_active": false, "role": "maintainer", "organization": {"id": 170}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 358}, "is_active": true, "role": "maintainer", "organization": {"id": 171}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 354}, "is_active": false, "role": "supervisor", "organization": {"id": 137}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 340}, "is_active": true, "role": "supervisor", "organization": {"id": 163}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 313}, "is_active": false, "role": "worker", "organization": {"id": 170}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 386}, "is_active": true, "role": "worker", "organization": {"id": 122}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"user": {"id": 351}, "is_active": false, "role": "owner", "organization": {"id": 529}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"user": {"id": 375}, "is_active": true, "role": "owner", "organization": {"id": 555}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"user": {"id": 389}, "is_active": false, "role": "maintainer", "organization": {"id": 535}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"user": {"id": 303}, "is_active": true, "role": "maintainer", "organization": {"id": 534}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"user": {"id": 390}, "is_active": false, "role": "supervisor", "organization": {"id": 564}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"user": {"id": 391}, "is_active": true, "role": "supervisor", "organization": {"id": 595}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"user": {"id": 338}, "is_active": false, "role": "worker", "organization": {"id": 537}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"user": {"id": 348}, "is_active": true, "role": "worker", "organization": {"id": 526}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"user": {"id": 389}, "is_active": false, "role": "owner", "organization": {"id": 145}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"user": {"id": 309}, "is_active": true, "role": "owner", "organization": {"id": 175}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"user": {"id": 313}, "is_active": false, "role": "maintainer", "organization": {"id": 121}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"user": {"id": 310}, "is_active": true, "role": "maintainer", "organization": {"id": 182}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"user": {"id": 336}, "is_active": false, "role": "supervisor", "organization": {"id": 133}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"user": {"id": 300}, "is_active": true, "role": "supervisor", "organization": {"id": 120}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"user": {"id": 398}, "is_active": false, "role": "worker", "organization": {"id": 121}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"user": {"id": 321}, "is_active": true, "role": "worker", "organization": {"id": 117}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 342}, "is_active": false, "role": "owner", "organization": {"id": 517}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 331}, "is_active": true, "role": "owner", "organization": {"id": 511}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 395}, "is_active": false, "role": "maintainer", "organization": {"id": 529}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 369}, "is_active": true, "role": "maintainer", "organization": {"id": 535}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 370}, "is_active": false, "role": "supervisor", "organization": {"id": 594}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 341}, "is_active": true, "role": "supervisor", "organization": {"id": 503}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 323}, "is_active": false, "role": "worker", "organization": {"id": 523}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 339}, "is_active": true, "role": "worker", "organization": {"id": 565}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 338}, "is_active": false, "role": "owner", "organization": {"id": 139}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 368}, "is_active": true, "role": "owner", "organization": {"id": 160}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 343}, "is_active": false, "role": "maintainer", "organization": {"id": 163}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 332}, "is_active": true, "role": "maintainer", "organization": {"id": 184}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 367}, "is_active": false, "role": "supervisor", "organization": {"id": 197}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 316}, "is_active": true, "role": "supervisor", "organization": {"id": 122}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 300}, "is_active": false, "role": "worker", "organization": {"id": 146}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 94, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 384}, "is_active": true, "role": "worker", "organization": {"id": 127}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 301}, "is_active": false, "role": "owner", "organization": {"id": 582}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 357}, "is_active": true, "role": "owner", "organization": {"id": 509}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 347}, "is_active": false, "role": "maintainer", "organization": {"id": 579}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 324}, "is_active": true, "role": "maintainer", "organization": {"id": 546}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 310}, "is_active": false, "role": "supervisor", "organization": {"id": 599}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 326}, "is_active": true, "role": "supervisor", "organization": {"id": 526}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 344}, "is_active": false, "role": "worker", "organization": {"id": 521}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 343}, "is_active": true, "role": "worker", "organization": {"id": 505}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 350}, "is_active": false, "role": "owner", "organization": {"id": 121}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 366}, "is_active": true, "role": "owner", "organization": {"id": 117}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 362}, "is_active": false, "role": "maintainer", "organization": {"id": 112}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 321}, "is_active": true, "role": "maintainer", "organization": {"id": 146}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 331}, "is_active": false, "role": "supervisor", "organization": {"id": 104}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 322}, "is_active": true, "role": "supervisor", "organization": {"id": 181}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 305}, "is_active": false, "role": "worker", "organization": {"id": 159}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 310}, "is_active": true, "role": "worker", "organization": {"id": 135}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 307}, "is_active": false, "role": "owner", "organization": {"id": 517}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 390}, "is_active": true, "role": "owner", "organization": {"id": 543}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 394}, "is_active": false, "role": "maintainer", "organization": {"id": 518}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 317}, "is_active": true, "role": "maintainer", "organization": {"id": 523}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 366}, "is_active": false, "role": "supervisor", "organization": {"id": 530}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 369}, "is_active": true, "role": "supervisor", "organization": {"id": 585}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 305}, "is_active": false, "role": "worker", "organization": {"id": 567}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 339}, "is_active": true, "role": "worker", "organization": {"id": 565}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 313}, "is_active": false, "role": "owner", "organization": {"id": 110}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 379}, "is_active": true, "role": "owner", "organization": {"id": 184}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 322}, "is_active": false, "role": "maintainer", "organization": {"id": 181}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 337}, "is_active": true, "role": "maintainer", "organization": {"id": 167}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 370}, "is_active": false, "role": "supervisor", "organization": {"id": 135}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 389}, "is_active": true, "role": "supervisor", "organization": {"id": 177}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 328}, "is_active": false, "role": "worker", "organization": {"id": 175}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 367}, "is_active": true, "role": "worker", "organization": {"id": 177}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 357}, "is_active": false, "role": "owner", "organization": {"id": 595}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 337}, "is_active": true, "role": "owner", "organization": {"id": 505}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 398}, "is_active": false, "role": "maintainer", "organization": {"id": 555}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 316}, "is_active": true, "role": "maintainer", "organization": {"id": 545}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 337}, "is_active": false, "role": "supervisor", "organization": {"id": 505}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 306}, "is_active": true, "role": "supervisor", "organization": {"id": 524}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 362}, "is_active": false, "role": "worker", "organization": {"id": 565}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 368}, "is_active": true, "role": "worker", "organization": {"id": 504}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 350}, "is_active": false, "role": "owner", "organization": {"id": 136}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 348}, "is_active": true, "role": "owner", "organization": {"id": 138}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 370}, "is_active": false, "role": "maintainer", "organization": {"id": 177}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 315}, "is_active": true, "role": "maintainer", "organization": {"id": 111}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 340}, "is_active": false, "role": "supervisor", "organization": {"id": 180}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 300}, "is_active": true, "role": "supervisor", "organization": {"id": 161}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 327}, "is_active": false, "role": "worker", "organization": {"id": 129}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 305}, "is_active": true, "role": "worker", "organization": {"id": 165}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"user": {"id": 342}, "is_active": false, "role": "owner", "organization": {"id": 580}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"user": {"id": 340}, "is_active": true, "role": "owner", "organization": {"id": 572}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"user": {"id": 321}, "is_active": false, "role": "maintainer", "organization": {"id": 570}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"user": {"id": 309}, "is_active": true, "role": "maintainer", "organization": {"id": 508}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"user": {"id": 315}, "is_active": false, "role": "supervisor", "organization": {"id": 500}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"user": {"id": 343}, "is_active": true, "role": "supervisor", "organization": {"id": 508}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"user": {"id": 374}, "is_active": false, "role": "worker", "organization": {"id": 555}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"user": {"id": 389}, "is_active": true, "role": "worker", "organization": {"id": 599}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"user": {"id": 369}, "is_active": false, "role": "owner", "organization": {"id": 127}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"user": {"id": 319}, "is_active": true, "role": "owner", "organization": {"id": 144}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"user": {"id": 396}, "is_active": false, "role": "maintainer", "organization": {"id": 172}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"user": {"id": 304}, "is_active": true, "role": "maintainer", "organization": {"id": 126}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"user": {"id": 356}, "is_active": false, "role": "supervisor", "organization": {"id": 107}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"user": {"id": 372}, "is_active": true, "role": "supervisor", "organization": {"id": 184}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"user": {"id": 347}, "is_active": false, "role": "worker", "organization": {"id": 117}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"user": {"id": 396}, "is_active": true, "role": "worker", "organization": {"id": 186}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 353}, "is_active": false, "role": "owner", "organization": {"id": 527}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 322}, "is_active": true, "role": "owner", "organization": {"id": 518}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 324}, "is_active": false, "role": "maintainer", "organization": {"id": 561}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 348}, "is_active": true, "role": "maintainer", "organization": {"id": 518}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 372}, "is_active": false, "role": "supervisor", "organization": {"id": 579}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 360}, "is_active": true, "role": "supervisor", "organization": {"id": 520}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 372}, "is_active": false, "role": "worker", "organization": {"id": 595}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 376}, "is_active": true, "role": "worker", "organization": {"id": 512}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 330}, "is_active": false, "role": "owner", "organization": {"id": 193}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 384}, "is_active": true, "role": "owner", "organization": {"id": 160}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 361}, "is_active": false, "role": "maintainer", "organization": {"id": 106}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 352}, "is_active": true, "role": "maintainer", "organization": {"id": 109}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 19, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 302}, "is_active": false, "role": "supervisor", "organization": {"id": 119}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 311}, "is_active": true, "role": "supervisor", "organization": {"id": 122}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 327}, "is_active": false, "role": "worker", "organization": {"id": 122}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 377}, "is_active": true, "role": "worker", "organization": {"id": 139}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 391}, "is_active": false, "role": "owner", "organization": {"id": 535}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 340}, "is_active": true, "role": "owner", "organization": {"id": 578}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 367}, "is_active": false, "role": "maintainer", "organization": {"id": 541}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 359}, "is_active": true, "role": "maintainer", "organization": {"id": 518}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 357}, "is_active": false, "role": "supervisor", "organization": {"id": 578}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 318}, "is_active": true, "role": "supervisor", "organization": {"id": 557}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 395}, "is_active": false, "role": "worker", "organization": {"id": 518}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 352}, "is_active": true, "role": "worker", "organization": {"id": 567}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 328}, "is_active": false, "role": "owner", "organization": {"id": 185}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 383}, "is_active": true, "role": "owner", "organization": {"id": 176}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 71, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 319}, "is_active": false, "role": "maintainer", "organization": {"id": 170}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 71, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 306}, "is_active": true, "role": "maintainer", "organization": {"id": 165}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 378}, "is_active": false, "role": "supervisor", "organization": {"id": 100}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 399}, "is_active": true, "role": "supervisor", "organization": {"id": 170}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 354}, "is_active": false, "role": "worker", "organization": {"id": 157}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - allow with input as {"scope": "change:role", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 344}, "is_active": true, "role": "worker", "organization": {"id": 104}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 399}, "is_active": false, "role": "owner", "organization": {"id": 537}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 384}, "is_active": true, "role": "owner", "organization": {"id": 522}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 320}, "is_active": false, "role": "maintainer", "organization": {"id": 536}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 357}, "is_active": true, "role": "maintainer", "organization": {"id": 535}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 310}, "is_active": false, "role": "supervisor", "organization": {"id": 597}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 338}, "is_active": true, "role": "supervisor", "organization": {"id": 564}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 313}, "is_active": false, "role": "worker", "organization": {"id": 560}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 397}, "is_active": true, "role": "worker", "organization": {"id": 504}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 355}, "is_active": false, "role": "owner", "organization": {"id": 187}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 304}, "is_active": true, "role": "owner", "organization": {"id": 153}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 309}, "is_active": false, "role": "maintainer", "organization": {"id": 122}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 307}, "is_active": true, "role": "maintainer", "organization": {"id": 103}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 335}, "is_active": false, "role": "supervisor", "organization": {"id": 163}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 396}, "is_active": true, "role": "supervisor", "organization": {"id": 146}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 363}, "is_active": false, "role": "worker", "organization": {"id": 100}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 346}, "is_active": true, "role": "worker", "organization": {"id": 143}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 324}, "is_active": false, "role": "owner", "organization": {"id": 506}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 309}, "is_active": true, "role": "owner", "organization": {"id": 571}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 353}, "is_active": false, "role": "maintainer", "organization": {"id": 557}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 386}, "is_active": true, "role": "maintainer", "organization": {"id": 520}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 362}, "is_active": false, "role": "supervisor", "organization": {"id": 575}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 366}, "is_active": true, "role": "supervisor", "organization": {"id": 575}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 383}, "is_active": false, "role": "worker", "organization": {"id": 547}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 376}, "is_active": true, "role": "worker", "organization": {"id": 522}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 362}, "is_active": false, "role": "owner", "organization": {"id": 105}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 300}, "is_active": true, "role": "owner", "organization": {"id": 121}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 376}, "is_active": false, "role": "maintainer", "organization": {"id": 106}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 383}, "is_active": true, "role": "maintainer", "organization": {"id": 119}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 342}, "is_active": false, "role": "supervisor", "organization": {"id": 137}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 341}, "is_active": true, "role": "supervisor", "organization": {"id": 155}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 309}, "is_active": false, "role": "worker", "organization": {"id": 190}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 370}, "is_active": true, "role": "worker", "organization": {"id": 122}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"user": {"id": 320}, "is_active": false, "role": "owner", "organization": {"id": 500}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"user": {"id": 379}, "is_active": true, "role": "owner", "organization": {"id": 530}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"user": {"id": 399}, "is_active": false, "role": "maintainer", "organization": {"id": 547}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"user": {"id": 357}, "is_active": true, "role": "maintainer", "organization": {"id": 529}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"user": {"id": 377}, "is_active": false, "role": "supervisor", "organization": {"id": 548}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"user": {"id": 357}, "is_active": true, "role": "supervisor", "organization": {"id": 548}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"user": {"id": 376}, "is_active": false, "role": "worker", "organization": {"id": 579}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"user": {"id": 399}, "is_active": true, "role": "worker", "organization": {"id": 546}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"user": {"id": 345}, "is_active": false, "role": "owner", "organization": {"id": 122}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"user": {"id": 369}, "is_active": true, "role": "owner", "organization": {"id": 144}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"user": {"id": 338}, "is_active": false, "role": "maintainer", "organization": {"id": 100}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"user": {"id": 385}, "is_active": true, "role": "maintainer", "organization": {"id": 163}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"user": {"id": 328}, "is_active": false, "role": "supervisor", "organization": {"id": 195}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"user": {"id": 358}, "is_active": true, "role": "supervisor", "organization": {"id": 159}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"user": {"id": 386}, "is_active": false, "role": "worker", "organization": {"id": 107}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"user": {"id": 394}, "is_active": true, "role": "worker", "organization": {"id": 102}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 384}, "is_active": false, "role": "owner", "organization": {"id": 520}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 381}, "is_active": true, "role": "owner", "organization": {"id": 502}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 379}, "is_active": false, "role": "maintainer", "organization": {"id": 570}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 350}, "is_active": true, "role": "maintainer", "organization": {"id": 509}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 67, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 345}, "is_active": false, "role": "supervisor", "organization": {"id": 515}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 311}, "is_active": true, "role": "supervisor", "organization": {"id": 501}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 334}, "is_active": false, "role": "worker", "organization": {"id": 529}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 303}, "is_active": true, "role": "worker", "organization": {"id": 521}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 305}, "is_active": false, "role": "owner", "organization": {"id": 143}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 356}, "is_active": true, "role": "owner", "organization": {"id": 122}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 349}, "is_active": false, "role": "maintainer", "organization": {"id": 198}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 395}, "is_active": true, "role": "maintainer", "organization": {"id": 180}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 331}, "is_active": false, "role": "supervisor", "organization": {"id": 160}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 325}, "is_active": true, "role": "supervisor", "organization": {"id": 123}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 309}, "is_active": false, "role": "worker", "organization": {"id": 121}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 385}, "is_active": true, "role": "worker", "organization": {"id": 113}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 383}, "is_active": false, "role": "owner", "organization": {"id": 577}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 329}, "is_active": true, "role": "owner", "organization": {"id": 563}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 323}, "is_active": false, "role": "maintainer", "organization": {"id": 543}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 355}, "is_active": true, "role": "maintainer", "organization": {"id": 524}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 366}, "is_active": false, "role": "supervisor", "organization": {"id": 584}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 358}, "is_active": true, "role": "supervisor", "organization": {"id": 581}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 330}, "is_active": false, "role": "worker", "organization": {"id": 588}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 356}, "is_active": true, "role": "worker", "organization": {"id": 503}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 301}, "is_active": false, "role": "owner", "organization": {"id": 182}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 387}, "is_active": true, "role": "owner", "organization": {"id": 137}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 322}, "is_active": false, "role": "maintainer", "organization": {"id": 104}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 303}, "is_active": true, "role": "maintainer", "organization": {"id": 136}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 344}, "is_active": false, "role": "supervisor", "organization": {"id": 133}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 305}, "is_active": true, "role": "supervisor", "organization": {"id": 195}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 328}, "is_active": false, "role": "worker", "organization": {"id": 145}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 342}, "is_active": true, "role": "worker", "organization": {"id": 166}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 367}, "is_active": false, "role": "owner", "organization": {"id": 540}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 389}, "is_active": true, "role": "owner", "organization": {"id": 511}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 398}, "is_active": false, "role": "maintainer", "organization": {"id": 507}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 373}, "is_active": true, "role": "maintainer", "organization": {"id": 591}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 380}, "is_active": false, "role": "supervisor", "organization": {"id": 514}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 29, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 362}, "is_active": true, "role": "supervisor", "organization": {"id": 504}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 378}, "is_active": false, "role": "worker", "organization": {"id": 559}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 317}, "is_active": true, "role": "worker", "organization": {"id": 539}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 386}, "is_active": false, "role": "owner", "organization": {"id": 153}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 311}, "is_active": true, "role": "owner", "organization": {"id": 117}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 317}, "is_active": false, "role": "maintainer", "organization": {"id": 183}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 388}, "is_active": true, "role": "maintainer", "organization": {"id": 113}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 323}, "is_active": false, "role": "supervisor", "organization": {"id": 156}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 326}, "is_active": true, "role": "supervisor", "organization": {"id": 198}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 308}, "is_active": false, "role": "worker", "organization": {"id": 174}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 308}, "is_active": true, "role": "worker", "organization": {"id": 116}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 384}, "is_active": false, "role": "owner", "organization": {"id": 507}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 344}, "is_active": true, "role": "owner", "organization": {"id": 554}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 372}, "is_active": false, "role": "maintainer", "organization": {"id": 599}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 396}, "is_active": true, "role": "maintainer", "organization": {"id": 584}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 360}, "is_active": false, "role": "supervisor", "organization": {"id": 524}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 381}, "is_active": true, "role": "supervisor", "organization": {"id": 581}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 366}, "is_active": false, "role": "worker", "organization": {"id": 520}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 360}, "is_active": true, "role": "worker", "organization": {"id": 585}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 357}, "is_active": false, "role": "owner", "organization": {"id": 178}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 360}, "is_active": true, "role": "owner", "organization": {"id": 134}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 302}, "is_active": false, "role": "maintainer", "organization": {"id": 127}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 392}, "is_active": true, "role": "maintainer", "organization": {"id": 123}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 337}, "is_active": false, "role": "supervisor", "organization": {"id": 112}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 367}, "is_active": true, "role": "supervisor", "organization": {"id": 160}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 364}, "is_active": false, "role": "worker", "organization": {"id": 169}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 396}, "is_active": true, "role": "worker", "organization": {"id": 162}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"user": {"id": 321}, "is_active": false, "role": "owner", "organization": {"id": 522}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"user": {"id": 383}, "is_active": true, "role": "owner", "organization": {"id": 522}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"user": {"id": 337}, "is_active": false, "role": "maintainer", "organization": {"id": 543}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"user": {"id": 393}, "is_active": true, "role": "maintainer", "organization": {"id": 502}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"user": {"id": 362}, "is_active": false, "role": "supervisor", "organization": {"id": 528}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"user": {"id": 397}, "is_active": true, "role": "supervisor", "organization": {"id": 597}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"user": {"id": 312}, "is_active": false, "role": "worker", "organization": {"id": 575}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"user": {"id": 376}, "is_active": true, "role": "worker", "organization": {"id": 553}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"user": {"id": 320}, "is_active": false, "role": "owner", "organization": {"id": 187}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"user": {"id": 362}, "is_active": true, "role": "owner", "organization": {"id": 189}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"user": {"id": 388}, "is_active": false, "role": "maintainer", "organization": {"id": 199}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 29, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"user": {"id": 369}, "is_active": true, "role": "maintainer", "organization": {"id": 167}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"user": {"id": 328}, "is_active": false, "role": "supervisor", "organization": {"id": 106}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"user": {"id": 368}, "is_active": true, "role": "supervisor", "organization": {"id": 144}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"user": {"id": 323}, "is_active": false, "role": "worker", "organization": {"id": 138}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"user": {"id": 327}, "is_active": true, "role": "worker", "organization": {"id": 107}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 19, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 306}, "is_active": false, "role": "owner", "organization": {"id": 523}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 397}, "is_active": true, "role": "owner", "organization": {"id": 518}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 384}, "is_active": false, "role": "maintainer", "organization": {"id": 520}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 330}, "is_active": true, "role": "maintainer", "organization": {"id": 583}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 388}, "is_active": false, "role": "supervisor", "organization": {"id": 599}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 312}, "is_active": true, "role": "supervisor", "organization": {"id": 574}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 354}, "is_active": false, "role": "worker", "organization": {"id": 527}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 392}, "is_active": true, "role": "worker", "organization": {"id": 549}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 391}, "is_active": false, "role": "owner", "organization": {"id": 189}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 304}, "is_active": true, "role": "owner", "organization": {"id": 168}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 327}, "is_active": false, "role": "maintainer", "organization": {"id": 139}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 391}, "is_active": true, "role": "maintainer", "organization": {"id": 169}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 314}, "is_active": false, "role": "supervisor", "organization": {"id": 163}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 360}, "is_active": true, "role": "supervisor", "organization": {"id": 103}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 332}, "is_active": false, "role": "worker", "organization": {"id": 198}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"user": {"id": 393}, "is_active": true, "role": "worker", "organization": {"id": 146}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 325}, "is_active": false, "role": "owner", "organization": {"id": 546}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 304}, "is_active": true, "role": "owner", "organization": {"id": 588}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 394}, "is_active": false, "role": "maintainer", "organization": {"id": 592}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 313}, "is_active": true, "role": "maintainer", "organization": {"id": 501}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 304}, "is_active": false, "role": "supervisor", "organization": {"id": 575}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 307}, "is_active": true, "role": "supervisor", "organization": {"id": 515}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 329}, "is_active": false, "role": "worker", "organization": {"id": 569}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 393}, "is_active": true, "role": "worker", "organization": {"id": 517}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 313}, "is_active": false, "role": "owner", "organization": {"id": 174}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 375}, "is_active": true, "role": "owner", "organization": {"id": 140}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 372}, "is_active": false, "role": "maintainer", "organization": {"id": 127}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 321}, "is_active": true, "role": "maintainer", "organization": {"id": 124}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 393}, "is_active": false, "role": "supervisor", "organization": {"id": 124}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 322}, "is_active": true, "role": "supervisor", "organization": {"id": 116}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 351}, "is_active": false, "role": "worker", "organization": {"id": 150}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"user": {"id": 319}, "is_active": true, "role": "worker", "organization": {"id": 127}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 381}, "is_active": false, "role": "owner", "organization": {"id": 529}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 316}, "is_active": true, "role": "owner", "organization": {"id": 586}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 396}, "is_active": false, "role": "maintainer", "organization": {"id": 568}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 351}, "is_active": true, "role": "maintainer", "organization": {"id": 595}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 354}, "is_active": false, "role": "supervisor", "organization": {"id": 588}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 338}, "is_active": true, "role": "supervisor", "organization": {"id": 572}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 354}, "is_active": false, "role": "worker", "organization": {"id": 506}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 358}, "is_active": true, "role": "worker", "organization": {"id": 546}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 337}, "is_active": false, "role": "owner", "organization": {"id": 191}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 370}, "is_active": true, "role": "owner", "organization": {"id": 100}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 375}, "is_active": false, "role": "maintainer", "organization": {"id": 180}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 392}, "is_active": true, "role": "maintainer", "organization": {"id": 151}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 375}, "is_active": false, "role": "supervisor", "organization": {"id": 130}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 364}, "is_active": true, "role": "supervisor", "organization": {"id": 111}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 339}, "is_active": false, "role": "worker", "organization": {"id": 103}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"user": {"id": 371}, "is_active": true, "role": "worker", "organization": {"id": 155}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 378}, "is_active": false, "role": "owner", "organization": {"id": 517}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 343}, "is_active": true, "role": "owner", "organization": {"id": 596}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 377}, "is_active": false, "role": "maintainer", "organization": {"id": 506}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 314}, "is_active": true, "role": "maintainer", "organization": {"id": 501}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 335}, "is_active": false, "role": "supervisor", "organization": {"id": 594}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 380}, "is_active": true, "role": "supervisor", "organization": {"id": 506}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 328}, "is_active": false, "role": "worker", "organization": {"id": 548}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 323}, "is_active": true, "role": "worker", "organization": {"id": 561}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 317}, "is_active": false, "role": "owner", "organization": {"id": 163}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 303}, "is_active": true, "role": "owner", "organization": {"id": 122}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 308}, "is_active": false, "role": "maintainer", "organization": {"id": 109}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 397}, "is_active": true, "role": "maintainer", "organization": {"id": 157}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 345}, "is_active": false, "role": "supervisor", "organization": {"id": 143}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 365}, "is_active": true, "role": "supervisor", "organization": {"id": 152}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 351}, "is_active": false, "role": "worker", "organization": {"id": 114}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"user": {"id": 349}, "is_active": true, "role": "worker", "organization": {"id": 161}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"user": {"id": 305}, "is_active": false, "role": "owner", "organization": {"id": 541}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"user": {"id": 338}, "is_active": true, "role": "owner", "organization": {"id": 507}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"user": {"id": 317}, "is_active": false, "role": "maintainer", "organization": {"id": 566}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"user": {"id": 344}, "is_active": true, "role": "maintainer", "organization": {"id": 533}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"user": {"id": 328}, "is_active": false, "role": "supervisor", "organization": {"id": 514}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"user": {"id": 378}, "is_active": true, "role": "supervisor", "organization": {"id": 523}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"user": {"id": 330}, "is_active": false, "role": "worker", "organization": {"id": 571}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_FALSE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"user": {"id": 360}, "is_active": true, "role": "worker", "organization": {"id": 522}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"user": {"id": 342}, "is_active": false, "role": "owner", "organization": {"id": 199}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_OWNER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"user": {"id": 396}, "is_active": true, "role": "owner", "organization": {"id": 129}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"user": {"id": 362}, "is_active": false, "role": "maintainer", "organization": {"id": 146}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_MAINTAINER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"user": {"id": 363}, "is_active": true, "role": "maintainer", "organization": {"id": 101}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"user": {"id": 352}, "is_active": false, "role": "supervisor", "organization": {"id": 101}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_SUPERVISOR_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"user": {"id": 312}, "is_active": true, "role": "supervisor", "organization": {"id": 187}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_FALSE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"user": {"id": 362}, "is_active": false, "role": "worker", "organization": {"id": 147}}} -} - -test_scope_CHANGE_ROLE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_is_active_TRUE_role_WORKER_same_org_TRUE { - not allow with input as {"scope": "change:role", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"user": {"id": 332}, "is_active": true, "role": "worker", "organization": {"id": 152}}} -} - - - -# memberships_test.gen.rego.py -# # Copyright (C) 2021-2022 Intel Corporation -# # -# # SPDX-License-Identifier: MIT -# -# # Copyright (C) 2021-2022 Intel Corporation -# # -# # SPDX-License-Identifier: MIT -# -# import csv -# import json -# import random -# import sys -# import os -# from itertools import product -# -# NAME = 'memberships' -# -# def read_rules(name): -# rules = [] -# with open(os.path.join(sys.argv[1], f'{name}.csv')) as f: -# reader = csv.DictReader(f) -# for row in reader: -# row = {k.lower():v.lower().replace('n/a','na') for k,v in row.items()} -# row['limit'] = row['limit'].replace('none', 'None') -# found = False -# for col,val in row.items(): -# if col in ["limit", "method", "url"]: -# continue -# complex_val = [v.strip() for v in val.split(',')] -# if len(complex_val) > 1: -# found = True -# for item in complex_val: -# new_row = row.copy() -# new_row[col] = item -# rules.append(new_row) -# if not found: -# rules.append(row) -# -# return rules -# -# simple_rules = read_rules(NAME) -# -# SCOPES = {rule['scope'] for rule in simple_rules} -# CONTEXTS = ['sandbox', 'organization'] -# OWNERSHIPS = ['self', 'none'] -# GROUPS = ['admin', 'business', 'user', 'worker', 'none'] -# ORG_ROLES = ['owner', 'maintainer', 'supervisor', 'worker', None] -# SAME_ORG = [False, True] -# -# def RESOURCES(scope): -# if scope == 'list': -# return [None] -# else: -# return [{ -# "user": { "id": random.randrange(300, 400) }, -# "is_active": active, -# "role": role, -# "organization": { -# "id": random.randrange(500,600) -# } -# } for role in ORG_ROLES if role != None for active in [False, True]] -# -# def is_same_org(org1, org2): -# if org1 != None and org2 != None: -# return org1['id'] == org2['id'] -# elif org1 == None and org2 == None: -# return True -# else: -# return False -# -# def eval_rule(scope, context, ownership, privilege, membership, data): -# if privilege == 'admin': -# return True -# -# rules = list(filter(lambda r: scope == r['scope'], simple_rules)) -# rules = list(filter(lambda r: r['context'] == 'na' or context == r['context'], rules)) -# rules = list(filter(lambda r: r['ownership'] == 'na' or ownership == r['ownership'], rules)) -# rules = list(filter(lambda r: r['membership'] == 'na' or -# ORG_ROLES.index(membership) <= ORG_ROLES.index(r['membership']), rules)) -# rules = list(filter(lambda r: GROUPS.index(privilege) <= GROUPS.index(r['privilege']), rules)) -# resource = data['resource'] -# rules = list(filter(lambda r: not r['limit'] or eval(r['limit'], {'resource': resource}), rules)) -# if not is_same_org(data['auth']['organization'], data['resource']['organization']) and context != 'sandbox': -# return False -# -# if scope != 'create' and not data['resource']['is_active']: -# return False -# -# return bool(rules) -# -# def get_data(scope, context, ownership, privilege, membership, resource, same_org): -# data = { -# "scope": scope, -# "auth": { -# "user": { "id": random.randrange(0,100), "privilege": privilege }, -# "organization": { -# "id": random.randrange(100,200), -# "owner": { "id": random.randrange(200, 300) }, -# "user": { "role": membership } -# } if context == 'organization' else None -# }, -# "resource": resource -# } -# -# user_id = data['auth']['user']['id'] -# if context == 'organization': -# org_id = data['auth']['organization']['id'] -# if data['auth']['organization']['user']['role'] == 'owner': -# data['auth']['organization']['owner']['id'] = user_id -# -# if same_org: -# data['resource']['organization']['id'] = org_id -# -# if ownership == 'self': -# data['resource']['user']['id'] = user_id -# -# return data -# -# def _get_name(prefix, **kwargs): -# name = prefix -# for k,v in kwargs.items(): -# prefix = '_' + str(k) -# if isinstance(v, dict): -# if 'id' not in v: -# name += _get_name(prefix, **v) -# else: -# name += f'{prefix}_{str(v).upper().replace(":", "_")}' -# -# return name -# -# def get_name(scope, context, ownership, privilege, membership, resource, same_org): -# return _get_name('test', **locals()) -# -# def is_valid(scope, context, ownership, privilege, membership, resource, same_org): -# if context == "sandbox" and membership: -# return False -# if scope == 'list' and ownership != 'None': -# return False -# if context == 'sandbox' and same_org == False: -# return False -# -# return True -# -# def gen_test_rego(name): -# with open(f'{name}_test.gen.rego', 'wt') as f: -# f.write(f'package {name}\n\n') -# for scope, context, ownership, privilege, membership, same_org in product( -# SCOPES, CONTEXTS, OWNERSHIPS, GROUPS, ORG_ROLES, SAME_ORG): -# for resource in RESOURCES(scope): -# if not is_valid(scope, context, ownership, privilege, membership, resource, same_org): -# continue -# -# data = get_data(scope, context, ownership, privilege, membership, resource, same_org) -# test_name = get_name(scope, context, ownership, privilege, membership, resource, same_org) -# result = eval_rule(scope, context, ownership, privilege, membership, data) -# f.write('{test_name} {{\n {allow} with input as {data}\n}}\n\n'.format( -# test_name=test_name, allow='allow' if result else 'not allow', -# data=json.dumps(data))) -# -# # Write the script which is used to generate the file -# with open(sys.argv[0]) as this_file: -# f.write(f'\n\n# {os.path.split(sys.argv[0])[1]}\n') -# for line in this_file: -# if line.strip(): -# f.write(f'# {line}') -# else: -# f.write(f'#\n') -# -# # Write rules which are used to generate the file -# with open(os.path.join(sys.argv[1], f'{name}.csv')) as rego_file: -# f.write(f'\n\n# {name}.csv\n') -# for line in rego_file: -# if line.strip(): -# f.write(f'# {line}') -# else: -# f.write(f'#\n') -# -# gen_test_rego(NAME) - -# memberships.csv -# Scope,Resource,Context,Ownership,Limit,Method,URL,Privilege,Membership -# list,Membership,Sandbox,N/A,,GET,/memberships,None,N/A -# list,Membership,Organization,N/A,,GET,/memberships,None,Worker -# view,Membership,Sandbox,None,,GET,/membership/{id},Admin,N/A -# view,Membership,Sandbox,Self,,GET,/membership/{id},None,N/A -# view,Membership,Organization,"None, Self",,GET,/membership/{id},None,Worker -# change:role,Membership,Organization,"None, Self","resource[""role""] not in [""maintainer"", ""owner""]",PATCH,/membership/{id},User,Maintainer -# change:role,Membership,Organization,"None, Self","resource[""role""] != ""owner""",PATCH,/membership/{id},User,Owner -# delete,Membership,Organization,"None, Self","resource[""role""] not in [""maintainer"", ""owner""]",DELETE,/membership/{id},User,Maintainer -# delete,Membership,Organization,"None, Self","resource[""role""] != ""owner""",DELETE,/membership/{id},User,Owner -# delete,Membership,Sandbox,Self,"resource[""role""] != ""owner""",DELETE,/membership/{id},Worker,N/A \ No newline at end of file diff --git a/cvat/apps/iam/rules/organizations_test.gen.rego b/cvat/apps/iam/rules/organizations_test.gen.rego deleted file mode 100644 index e3bcbc38..00000000 --- a/cvat/apps/iam/rules/organizations_test.gen.rego +++ /dev/null @@ -1,7370 +0,0 @@ -package organizations - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "create", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 30}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "create", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 43}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "create", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 85}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "create", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 4}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "create", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 46}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "create", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 17}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "create", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 70}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_1_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 81}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_10_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 38}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_0_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 38}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_1_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 2}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_10_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 34}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_0_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 8}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_1_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 71}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_10_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 22}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_MAINTAINER_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "create", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 385}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_MAINTAINER_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "create", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 350}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_MAINTAINER_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "create", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 395}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_MAINTAINER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "create", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 323}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_MAINTAINER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "create", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 315}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_MAINTAINER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "create", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 340}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_MAINTAINER_privilege_USER_membership_NONE_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "create", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 373}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_MAINTAINER_privilege_USER_membership_NONE_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 382}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_MAINTAINER_privilege_USER_membership_NONE_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 310}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_MAINTAINER_privilege_WORKER_membership_NONE_resource_user_num_resources_0_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 370}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_MAINTAINER_privilege_WORKER_membership_NONE_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 395}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_MAINTAINER_privilege_WORKER_membership_NONE_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 362}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_MAINTAINER_privilege_NONE_membership_NONE_resource_user_num_resources_0_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 377}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_MAINTAINER_privilege_NONE_membership_NONE_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 327}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_MAINTAINER_privilege_NONE_membership_NONE_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 328}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_SUPERVISOR_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "create", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 387}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_SUPERVISOR_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "create", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 396}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_SUPERVISOR_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "create", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 311}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_SUPERVISOR_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "create", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 308}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_SUPERVISOR_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "create", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 377}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_SUPERVISOR_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "create", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 345}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_SUPERVISOR_privilege_USER_membership_NONE_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "create", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 372}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_SUPERVISOR_privilege_USER_membership_NONE_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 361}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_SUPERVISOR_privilege_USER_membership_NONE_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 388}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_SUPERVISOR_privilege_WORKER_membership_NONE_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 309}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_SUPERVISOR_privilege_WORKER_membership_NONE_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 371}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_SUPERVISOR_privilege_WORKER_membership_NONE_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 349}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_SUPERVISOR_privilege_NONE_membership_NONE_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 376}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_SUPERVISOR_privilege_NONE_membership_NONE_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 371}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_SUPERVISOR_privilege_NONE_membership_NONE_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 397}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_WORKER_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "create", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 355}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_WORKER_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "create", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 347}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_WORKER_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "create", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 300}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_WORKER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "create", "auth": {"user": {"id": 81, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 383}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_WORKER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "create", "auth": {"user": {"id": 31, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 347}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_WORKER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "create", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 390}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_WORKER_privilege_USER_membership_NONE_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "create", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 347}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_WORKER_privilege_USER_membership_NONE_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 365}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_WORKER_privilege_USER_membership_NONE_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 315}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_WORKER_privilege_WORKER_membership_NONE_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 354}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_WORKER_privilege_WORKER_membership_NONE_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 306}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_WORKER_privilege_WORKER_membership_NONE_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 350}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_WORKER_privilege_NONE_membership_NONE_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 399}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_WORKER_privilege_NONE_membership_NONE_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 304}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_WORKER_privilege_NONE_membership_NONE_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 349}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_role_NONE { - allow with input as {"scope": "create", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 318}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_role_NONE { - allow with input as {"scope": "create", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 302}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_role_NONE { - allow with input as {"scope": "create", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 343}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_role_NONE { - allow with input as {"scope": "create", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 317}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_role_NONE { - allow with input as {"scope": "create", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 392}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_role_NONE { - allow with input as {"scope": "create", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 303}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_0_role_NONE { - allow with input as {"scope": "create", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 342}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 324}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 368}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 325}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 396}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 371}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 377}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 342}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 317}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "create", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 258}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 27}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "create", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 245}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 85}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "create", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 244}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 8}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "create", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 77}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "create", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 89}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "create", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 65}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "create", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 72}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "create", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 83}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "create", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 8}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "create", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 34}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "create", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 99}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "create", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 41}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "create", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 21}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "create", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 30}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "create", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 74}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "create", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 213}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 64}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "create", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 276}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 98}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "create", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 265}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 53}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "create", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 34}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "create", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 24}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "create", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 21}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "create", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 17}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "create", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 43}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "create", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 66}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "create", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 4}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "create", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 21}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "create", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 21}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "create", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 21}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "create", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 20}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "create", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 55}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "create", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 264}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 80}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_user_num_resources_1_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 254}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 67}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_user_num_resources_10_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 283}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 73}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "create", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 2}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_1_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_10_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 80}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "create", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 22}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_1_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 31}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_10_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 66}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "create", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 22}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_user_num_resources_1_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 52}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_user_num_resources_10_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 73}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "create", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_1_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 97}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_10_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 76}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_user_num_resources_0_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 207}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 17}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_user_num_resources_1_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 299}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 46}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_user_num_resources_10_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 264}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 43}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_0_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 38}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_1_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 90}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_10_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 58}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_0_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 91}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_1_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 28}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_10_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 71}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_user_num_resources_0_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 95}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_user_num_resources_1_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 24, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 24}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_user_num_resources_10_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 77}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_0_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 35}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_1_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 49}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_10_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 75}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_user_num_resources_0_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 283}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 4}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_user_num_resources_1_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 279}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 36}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_user_num_resources_10_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 280}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 34}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_0_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 57}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_1_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 93}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_10_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 25}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_0_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 50, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 50}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_1_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 32}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_10_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 48}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_user_num_resources_0_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 67}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_user_num_resources_1_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 79}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_user_num_resources_10_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 33}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_0_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 39}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_1_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 7}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_10_role_OWNER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 63}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "create", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 228}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 303}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "create", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 222}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 360}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "create", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 282}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 379}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "create", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 365}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "create", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 332}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "create", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 347}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "create", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 357}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "create", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 326}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "create", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 354}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "create", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 390}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "create", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 351}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "create", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 376}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "create", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 310}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "create", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 382}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "create", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 384}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "create", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 219}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 380}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "create", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 216}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 330}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "create", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 203}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 357}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "create", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 378}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "create", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 395}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "create", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 343}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "create", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 329}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "create", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 325}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "create", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 375}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "create", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 351}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "create", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 349}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "create", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 380}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "create", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 319}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "create", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 338}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "create", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 370}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_OWNER_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "create", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 279}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 324}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_OWNER_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 287}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 350}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_OWNER_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 279}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 320}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "create", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 397}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 391}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 385}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "create", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 380}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 379}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 395}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_WORKER_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "create", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 313}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_WORKER_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 361}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_WORKER_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 347}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_NONE_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "create", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 374}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_NONE_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 331}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_NONE_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 365}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_OWNER_resource_user_num_resources_0_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 29, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 254}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 360}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_OWNER_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 232}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 396}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_OWNER_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 241}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 381}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_0_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 334}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 394}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 371}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_0_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 378}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 340}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 346}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_WORKER_resource_user_num_resources_0_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 349}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_WORKER_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 336}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_WORKER_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 309}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_NONE_resource_user_num_resources_0_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 334}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_NONE_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 380}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_NONE_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 318}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_OWNER_resource_user_num_resources_0_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 216}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 362}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_OWNER_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 258}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 308}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_OWNER_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 293}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 388}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_0_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 369}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 397}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 332}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_0_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 358}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 378}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 342}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_WORKER_resource_user_num_resources_0_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 320}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_WORKER_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 315}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_WORKER_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 315}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_NONE_resource_user_num_resources_0_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 300}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_NONE_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 336}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_NONE_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 325}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_OWNER_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "create", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 205}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 305}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_OWNER_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "create", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 268}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 369}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_OWNER_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "create", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 204}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 336}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "create", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 342}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "create", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 357}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "create", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 344}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "create", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 309}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "create", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 392}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "create", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 372}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_WORKER_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "create", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 398}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_WORKER_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "create", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 387}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_WORKER_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "create", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 341}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "create", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 316}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "create", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 353}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "create", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 307}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "create", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 207}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 349}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "create", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 268}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 391}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "create", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 237}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 323}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "create", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 339}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "create", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 308}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "create", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 348}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "create", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 349}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "create", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 349}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "create", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 399}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "create", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 357}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "create", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 308}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "create", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 379}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "create", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 322}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "create", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 314}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "create", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 339}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_OWNER_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "create", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 228}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 385}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_OWNER_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 281}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 377}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_OWNER_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 214}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 306}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_MAINTAINER_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "create", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 379}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_MAINTAINER_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 370}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_MAINTAINER_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 314}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "create", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 362}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 71, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 382}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 326}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_WORKER_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "create", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 344}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_WORKER_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 307}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_WORKER_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 354}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_NONE_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "create", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 312}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_NONE_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 322}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_NONE_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 343}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_OWNER_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 291}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 367}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_OWNER_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 286}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 332}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_OWNER_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 267}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 356}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 342}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 396}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 382}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 309}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 363}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 389}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_WORKER_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 345}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_WORKER_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 320}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_WORKER_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 309}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_NONE_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 67, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 393}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_NONE_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 304}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_NONE_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 385}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_OWNER_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 244}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 332}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_OWNER_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 278}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 330}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_OWNER_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 272}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 375}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 306}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 396}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 352}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 325}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 61, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 327}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 344}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_WORKER_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 356}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_WORKER_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 374}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_WORKER_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 304}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_NONE_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 358}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_NONE_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 336}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_NONE_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "create", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 303}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "create", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 224}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 373}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "create", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 283}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 330}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "create", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 270}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 388}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "create", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 303}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "create", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 315}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "create", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 344}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "create", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 374}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "create", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 353}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "create", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 387}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "create", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 312}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "create", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 340}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "create", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 355}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "create", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 374}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "create", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 331}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "create", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 362}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "create", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 254}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 332}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "create", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 277}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 394}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "create", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 204}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 393}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "create", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 344}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "create", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 375}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "create", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 343}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "create", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 395}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "create", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 300}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "create", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 308}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "create", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 331}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "create", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 323}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "create", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 352}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "create", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 375}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "create", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 301}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "create", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 309}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_OWNER_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "create", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 230}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 395}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_OWNER_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 277}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 325}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_OWNER_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 273}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 308}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "create", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 371}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 372}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 362}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "create", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 377}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 343}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 373}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_WORKER_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "create", "auth": {"user": {"id": 71, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 343}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_WORKER_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 317}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_WORKER_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 316}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_NONE_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "create", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 360}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_NONE_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 307}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_NONE_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 335}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_OWNER_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 261}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 334}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_OWNER_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 218}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 380}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_OWNER_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 286}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 338}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 356}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 366}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 318}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 366}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 348}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 342}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_WORKER_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 307}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_WORKER_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 355}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_WORKER_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 307}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_NONE_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 375}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_NONE_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 328}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_NONE_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 391}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_OWNER_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 281}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 341}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_OWNER_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 232}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 326}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_OWNER_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 219}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 307}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 378}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 345}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 375}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 345}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 328}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 328}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_WORKER_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 305}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_WORKER_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 378}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_WORKER_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 314}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_NONE_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 355}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_NONE_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 397}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_NONE_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "create", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 340}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_user_num_resources_0_role_NONE { - allow with input as {"scope": "create", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 210}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 349}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_user_num_resources_1_role_NONE { - allow with input as {"scope": "create", "auth": {"user": {"id": 36, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 282}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 311}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_user_num_resources_10_role_NONE { - allow with input as {"scope": "create", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 267}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 381}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_0_role_NONE { - allow with input as {"scope": "create", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 383}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_1_role_NONE { - allow with input as {"scope": "create", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 356}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_10_role_NONE { - allow with input as {"scope": "create", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 333}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_0_role_NONE { - allow with input as {"scope": "create", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 304}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_1_role_NONE { - allow with input as {"scope": "create", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 318}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_10_role_NONE { - allow with input as {"scope": "create", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 332}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_user_num_resources_0_role_NONE { - allow with input as {"scope": "create", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 363}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_user_num_resources_1_role_NONE { - allow with input as {"scope": "create", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 387}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_user_num_resources_10_role_NONE { - allow with input as {"scope": "create", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 394}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_role_NONE { - allow with input as {"scope": "create", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 397}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_role_NONE { - allow with input as {"scope": "create", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 323}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_role_NONE { - allow with input as {"scope": "create", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 323}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_0_role_NONE { - allow with input as {"scope": "create", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 269}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 314}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_1_role_NONE { - allow with input as {"scope": "create", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 255}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 330}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_10_role_NONE { - allow with input as {"scope": "create", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 281}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 399}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_0_role_NONE { - allow with input as {"scope": "create", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 323}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_1_role_NONE { - allow with input as {"scope": "create", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 320}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_10_role_NONE { - allow with input as {"scope": "create", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 361}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_0_role_NONE { - allow with input as {"scope": "create", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 346}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_1_role_NONE { - allow with input as {"scope": "create", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 344}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_10_role_NONE { - allow with input as {"scope": "create", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 375}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_0_role_NONE { - allow with input as {"scope": "create", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 391}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_1_role_NONE { - allow with input as {"scope": "create", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 362}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_10_role_NONE { - allow with input as {"scope": "create", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 301}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_role_NONE { - allow with input as {"scope": "create", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 381}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_role_NONE { - allow with input as {"scope": "create", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 367}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_role_NONE { - allow with input as {"scope": "create", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 331}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_user_num_resources_0_role_NONE { - allow with input as {"scope": "create", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 236}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 303}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 210}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 325}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 218}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 367}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_user_num_resources_0_role_NONE { - allow with input as {"scope": "create", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 370}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 335}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 364}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_0_role_NONE { - allow with input as {"scope": "create", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 360}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 395}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 368}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_user_num_resources_0_role_NONE { - allow with input as {"scope": "create", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 382}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 320}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 375}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_0_role_NONE { - allow with input as {"scope": "create", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 328}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 317}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 310}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 207}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 343}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 213}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 393}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 212}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 311}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 384}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 375}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 373}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 374}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 365}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 328}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 309}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 392}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 333}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 362}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 360}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 338}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 254}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 325}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 277}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 319}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 228}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 349}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 315}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 329}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 390}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 388}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 329}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 345}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 333}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 322}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 365}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 358}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 342}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 330}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 9}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 37}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 71}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 70}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 84}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 76}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 26}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 5}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 86}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 26}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 84}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 83}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_0_role_OWNER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 78}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_1_role_OWNER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 11}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_10_role_OWNER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 82}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_MAINTAINER_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 374}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_MAINTAINER_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 388}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_MAINTAINER_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 393}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_MAINTAINER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 330}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_MAINTAINER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 317}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_MAINTAINER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 381}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_MAINTAINER_privilege_USER_membership_NONE_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 395}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_MAINTAINER_privilege_USER_membership_NONE_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 311}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_MAINTAINER_privilege_USER_membership_NONE_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 382}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_MAINTAINER_privilege_WORKER_membership_NONE_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 353}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_MAINTAINER_privilege_WORKER_membership_NONE_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 322}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_MAINTAINER_privilege_WORKER_membership_NONE_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 353}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_MAINTAINER_privilege_NONE_membership_NONE_resource_user_num_resources_0_role_MAINTAINER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 386}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_MAINTAINER_privilege_NONE_membership_NONE_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 316}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_MAINTAINER_privilege_NONE_membership_NONE_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 346}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_SUPERVISOR_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "update", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 379}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_SUPERVISOR_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "update", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 396}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_SUPERVISOR_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "update", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 305}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_SUPERVISOR_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 316}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_SUPERVISOR_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 325}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_SUPERVISOR_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 307}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_SUPERVISOR_privilege_USER_membership_NONE_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 332}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_SUPERVISOR_privilege_USER_membership_NONE_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 341}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_SUPERVISOR_privilege_USER_membership_NONE_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 305}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_SUPERVISOR_privilege_WORKER_membership_NONE_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 313}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_SUPERVISOR_privilege_WORKER_membership_NONE_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 365}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_SUPERVISOR_privilege_WORKER_membership_NONE_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 344}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_SUPERVISOR_privilege_NONE_membership_NONE_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 364}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_SUPERVISOR_privilege_NONE_membership_NONE_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 319}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_SUPERVISOR_privilege_NONE_membership_NONE_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 339}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_WORKER_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "update", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 340}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_WORKER_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "update", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 396}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_WORKER_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "update", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 338}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_WORKER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 385}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_WORKER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 382}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_WORKER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 331}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_WORKER_privilege_USER_membership_NONE_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 347}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_WORKER_privilege_USER_membership_NONE_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 349}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_WORKER_privilege_USER_membership_NONE_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 321}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_WORKER_privilege_WORKER_membership_NONE_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 331}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_WORKER_privilege_WORKER_membership_NONE_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 304}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_WORKER_privilege_WORKER_membership_NONE_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 389}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_WORKER_privilege_NONE_membership_NONE_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 316}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_WORKER_privilege_NONE_membership_NONE_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 367}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_WORKER_privilege_NONE_membership_NONE_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 342}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 390}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 394}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 383}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 94, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 304}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 379}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 336}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 346}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 393}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 320}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 383}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 333}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 359}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 326}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 367}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 327}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 258}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 72}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 284}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 64}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 297}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 23}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 92}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 64}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 59}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 5}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 78}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 68}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 6}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 70}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 96}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 53}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 98}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 42}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 228}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 44}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 263}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 36}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 254}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 54}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 93}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 35}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 18}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 18}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 55}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 63}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 58}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 75}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 20}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 76}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 21}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 86}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 257}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 36}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 266}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 86}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 291}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 56}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 1}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 7}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 94}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 54}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 14}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 69}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 48}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 55}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 76}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 15}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 36}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 45}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 29, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 271}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 29}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 263}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 60}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 238}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 74}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 74}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 33}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 55}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 70}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 80}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 6}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 27}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 97}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 33}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 98}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 82}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 39}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_user_num_resources_0_role_OWNER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 232}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 93}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_user_num_resources_1_role_OWNER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 249}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 14}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_user_num_resources_10_role_OWNER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 224}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 74}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_0_role_OWNER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 87}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_1_role_OWNER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 29}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_10_role_OWNER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 1}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_0_role_OWNER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 8}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_1_role_OWNER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 80}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_10_role_OWNER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 85}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_user_num_resources_0_role_OWNER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 56}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_user_num_resources_1_role_OWNER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 46}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_user_num_resources_10_role_OWNER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 14}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_0_role_OWNER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 71}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_1_role_OWNER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 4}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_10_role_OWNER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 72}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 200}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 352}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 232}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 352}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 232}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 338}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 306}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 356}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 329}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 331}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 332}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 310}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 361}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 368}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 388}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 319}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 374}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 327}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 252}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 382}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 238}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 393}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 263}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 316}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 338}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 399}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 350}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 302}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 395}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 352}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 370}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 393}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 333}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 389}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 361}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 378}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_OWNER_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 227}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 367}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_OWNER_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 285}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 321}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_OWNER_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 204}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 344}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 378}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 393}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 348}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 339}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 366}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 313}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_WORKER_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 373}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_WORKER_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 322}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_WORKER_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 302}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_NONE_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 311}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_NONE_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 339}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_NONE_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 369}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_OWNER_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 269}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 368}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_OWNER_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 296}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 330}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_OWNER_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 272}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 374}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 327}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 323}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 369}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 385}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 379}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 333}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_WORKER_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 302}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_WORKER_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 320}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_WORKER_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 344}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_NONE_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 326}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_NONE_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 373}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_NONE_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 393}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_OWNER_resource_user_num_resources_0_role_MAINTAINER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 237}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 326}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_OWNER_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 231}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 358}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_OWNER_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 214}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 313}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_0_role_MAINTAINER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 365}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 391}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 349}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_0_role_MAINTAINER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 303}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 347}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 340}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_WORKER_resource_user_num_resources_0_role_MAINTAINER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 397}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_WORKER_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 370}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_WORKER_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 337}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_NONE_resource_user_num_resources_0_role_MAINTAINER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 333}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_NONE_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 366}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_NONE_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 323}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_OWNER_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "update", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 294}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 325}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_OWNER_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "update", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 227}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 352}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_OWNER_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "update", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 247}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 382}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "update", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 338}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "update", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 341}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "update", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 342}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "update", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 364}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "update", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 343}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "update", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 331}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_WORKER_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "update", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 384}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_WORKER_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "update", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 380}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_WORKER_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "update", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 314}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "update", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 388}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "update", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 316}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "update", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 372}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 205}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 389}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 225}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 352}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 245}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 347}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 365}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 382}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 336}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 327}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 386}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 314}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 317}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 323}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 392}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 399}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 352}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 377}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_OWNER_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 218}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 398}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_OWNER_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 287}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 301}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_OWNER_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 201}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 312}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_MAINTAINER_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 386}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_MAINTAINER_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 358}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_MAINTAINER_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 308}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 379}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 386}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 347}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_WORKER_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 325}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_WORKER_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 347}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_WORKER_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 367}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_NONE_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 319}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_NONE_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 356}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_NONE_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 353}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_OWNER_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 207}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 307}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_OWNER_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 262}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 321}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_OWNER_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 217}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 397}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 389}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 339}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 345}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 304}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 393}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 382}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_WORKER_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 306}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_WORKER_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 67, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 321}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_WORKER_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 393}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_NONE_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 313}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_NONE_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 397}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_NONE_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 370}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_OWNER_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 237}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 372}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_OWNER_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 212}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 320}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_OWNER_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 240}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 383}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 372}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 377}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 382}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 374}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 323}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 373}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_WORKER_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 331}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_WORKER_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 306}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_WORKER_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 369}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_NONE_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 349}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_NONE_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 380}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_NONE_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 382}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "update", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 276}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 323}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "update", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 299}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 307}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "update", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 229}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 336}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "update", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 326}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "update", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 375}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "update", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 303}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "update", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 373}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "update", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 378}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "update", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 351}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "update", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 376}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "update", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 312}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "update", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 388}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "update", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 372}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "update", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 347}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "update", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 333}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 271}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 321}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 287}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 341}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 218}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 345}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 351}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 315}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 371}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 348}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 316}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 356}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 393}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 394}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 320}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 314}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 328}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 355}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_OWNER_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 274}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 395}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_OWNER_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 227}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 398}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_OWNER_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 282}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 370}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 301}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 391}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 317}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 373}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 383}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 398}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_WORKER_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 305}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_WORKER_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 380}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_WORKER_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 302}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_NONE_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 332}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_NONE_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 347}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_NONE_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 392}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_OWNER_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 228}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 368}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_OWNER_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 227}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 390}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_OWNER_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 233}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 366}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 386}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 341}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 387}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 343}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 321}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 363}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_WORKER_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 339}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_WORKER_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 378}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_WORKER_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 313}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_NONE_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 311}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_NONE_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 303}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_NONE_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 300}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_OWNER_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 285}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 366}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_OWNER_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 207}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 378}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_OWNER_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 277}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 335}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 376}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 391}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 345}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 349}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 394}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 344}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_WORKER_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 337}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_WORKER_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 335}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_WORKER_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 305}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_NONE_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 303}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_NONE_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 303}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_NONE_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 378}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_user_num_resources_0_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 264}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 365}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_user_num_resources_1_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 275}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 394}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_user_num_resources_10_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 202}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 372}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_0_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 303}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_1_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 344}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_10_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 318}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_0_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 302}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_1_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 367}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_10_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 379}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_user_num_resources_0_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 351}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_user_num_resources_1_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 389}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_user_num_resources_10_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 357}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 389}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 396}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 366}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 81, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 222}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 309}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 239}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 357}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 240}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 337}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 375}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 338}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 350}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 354}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 346}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 387}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 321}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 352}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 305}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 342}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 337}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 351}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 207}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 397}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 252}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 353}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 250}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 303}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 339}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 311}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 321}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 330}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 338}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 382}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 350}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 312}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 329}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 359}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 369}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 330}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 262}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 330}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 261}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 342}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 204}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 332}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 311}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 371}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 394}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 360}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 337}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 302}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 320}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 396}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 382}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 388}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 315}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 313}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 229}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 398}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 203}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 378}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 245}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 398}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 359}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 338}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 343}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 354}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 310}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 354}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 306}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 390}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 302}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 335}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 395}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 314}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 57}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 51}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 1}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 14}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 4}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 87}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 88}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 55}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 56}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 57}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 57}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 42}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 15}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 86}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 7}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_MAINTAINER_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 324}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_MAINTAINER_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 329}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_MAINTAINER_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 395}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_MAINTAINER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 385}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_MAINTAINER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 349}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_MAINTAINER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 332}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_MAINTAINER_privilege_USER_membership_NONE_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 377}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_MAINTAINER_privilege_USER_membership_NONE_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 397}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_MAINTAINER_privilege_USER_membership_NONE_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 377}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_MAINTAINER_privilege_WORKER_membership_NONE_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 339}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_MAINTAINER_privilege_WORKER_membership_NONE_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 396}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_MAINTAINER_privilege_WORKER_membership_NONE_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 394}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_MAINTAINER_privilege_NONE_membership_NONE_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 301}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_MAINTAINER_privilege_NONE_membership_NONE_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 309}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_MAINTAINER_privilege_NONE_membership_NONE_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 331}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SUPERVISOR_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 332}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SUPERVISOR_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 365}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SUPERVISOR_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 303}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SUPERVISOR_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 324}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SUPERVISOR_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 314}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SUPERVISOR_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 395}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SUPERVISOR_privilege_USER_membership_NONE_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 364}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SUPERVISOR_privilege_USER_membership_NONE_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 309}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SUPERVISOR_privilege_USER_membership_NONE_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 377}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SUPERVISOR_privilege_WORKER_membership_NONE_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 359}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SUPERVISOR_privilege_WORKER_membership_NONE_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 360}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SUPERVISOR_privilege_WORKER_membership_NONE_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 357}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SUPERVISOR_privilege_NONE_membership_NONE_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 388}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SUPERVISOR_privilege_NONE_membership_NONE_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 325}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SUPERVISOR_privilege_NONE_membership_NONE_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 364}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_WORKER_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 345}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_WORKER_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 337}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_WORKER_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 308}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_WORKER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 300}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_WORKER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 356}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_WORKER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 312}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_WORKER_privilege_USER_membership_NONE_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 357}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_WORKER_privilege_USER_membership_NONE_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 363}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_WORKER_privilege_USER_membership_NONE_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 343}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_WORKER_privilege_WORKER_membership_NONE_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 392}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_WORKER_privilege_WORKER_membership_NONE_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 375}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_WORKER_privilege_WORKER_membership_NONE_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 316}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_WORKER_privilege_NONE_membership_NONE_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 363}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_WORKER_privilege_NONE_membership_NONE_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 385}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_WORKER_privilege_NONE_membership_NONE_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 375}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 365}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 383}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 316}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 388}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 383}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 353}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 322}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 321}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 319}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 367}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 308}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 358}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 342}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 317}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 359}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 288}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 81}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 202}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 84}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 287}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 14}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 49}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 18}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 94}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 14}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 32}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 45}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 38}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 42}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 89}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 29}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 15}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 61}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 285}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 67}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 252}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 76}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 219}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 81}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 64}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 35}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 45}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 78}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 82}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 52}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 61}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 64}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 52}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 92}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 22}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 67}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 212}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 92}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 221}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 53}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 234}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 97}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 57}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 44}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 70}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 52}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 90}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 86}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 7}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 7}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 15}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 86}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 79}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 86}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 270}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 3}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 260}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 62}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 251}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 78}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 96}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 64}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 97}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 70}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 30}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 46}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 30}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 84}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 67}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 56}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 59}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 94}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 234}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 97}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 294}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 32}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 228}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 46}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 31}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 25}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 32}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 80}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 68}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 57}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 76}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 36}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 91}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 31}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 21}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 10}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 286}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 338}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 247}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 338}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 248}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 345}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 327}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 325}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 386}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 351}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 368}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 338}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 373}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 355}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 358}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 371}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 378}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 370}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 208}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 349}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 260}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 304}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 263}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 376}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 376}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 384}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 398}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 384}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 312}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 357}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 314}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 329}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 317}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 385}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 307}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 351}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_OWNER_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 202}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 303}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_OWNER_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 258}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 325}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_OWNER_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 281}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 398}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 334}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 346}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 325}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 395}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 392}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 340}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_WORKER_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 305}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_WORKER_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 340}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_WORKER_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 362}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_NONE_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 398}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_NONE_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 357}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_NONE_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 349}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_OWNER_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 246}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 379}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_OWNER_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 225}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 355}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_OWNER_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 288}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 356}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 376}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 394}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 337}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 301}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 345}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 369}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_WORKER_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 354}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_WORKER_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 303}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_WORKER_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 363}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_NONE_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 347}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_NONE_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 366}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_NONE_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 354}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_OWNER_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 236}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 366}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_OWNER_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 219}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 372}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_OWNER_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 289}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 356}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 384}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 350}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 392}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 316}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 346}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 359}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_WORKER_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 313}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_WORKER_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 325}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_WORKER_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 328}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_NONE_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 312}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_NONE_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 345}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_NONE_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 325}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_OWNER_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 200}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 338}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_OWNER_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 228}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 361}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_OWNER_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 262}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 367}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 373}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 335}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 339}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 396}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 321}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 391}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_WORKER_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 302}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_WORKER_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 332}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_WORKER_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 374}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 335}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 390}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 369}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 202}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 385}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 287}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 377}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 278}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 377}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 343}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 333}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 398}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 365}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 377}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 373}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 327}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 328}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 359}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 381}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 342}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 393}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_OWNER_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 271}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 362}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_OWNER_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 219}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 383}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_OWNER_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 263}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 312}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_MAINTAINER_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 378}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_MAINTAINER_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 353}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_MAINTAINER_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 372}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 396}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 318}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 321}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_WORKER_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 343}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_WORKER_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 300}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_WORKER_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 317}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_NONE_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 315}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_NONE_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 386}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_NONE_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 390}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_OWNER_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 212}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 316}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_OWNER_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 234}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 326}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_OWNER_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 212}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 363}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 395}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 310}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 350}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 337}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 307}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 388}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_WORKER_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 344}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_WORKER_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 345}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_WORKER_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 397}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_NONE_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 392}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_NONE_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 351}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_NONE_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 371}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_OWNER_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 238}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 302}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_OWNER_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 284}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 387}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_OWNER_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 210}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 367}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 344}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 387}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 314}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 327}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 396}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 314}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_WORKER_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 351}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_WORKER_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 359}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_WORKER_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 337}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_NONE_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 393}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_NONE_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 383}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_NONE_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 316}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 263}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 354}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 288}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 354}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 224}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 303}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 357}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 365}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 316}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 360}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 383}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 377}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 378}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 350}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 383}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 361}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 353}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 301}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 239}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 361}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 228}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 379}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 210}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 312}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 332}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 315}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 380}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 379}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 310}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 347}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 350}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 354}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 316}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 390}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 329}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 310}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_OWNER_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 250}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 335}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_OWNER_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 207}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 320}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_OWNER_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 225}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 301}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 369}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 302}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 379}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 332}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 300}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 324}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_WORKER_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 334}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_WORKER_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 361}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_WORKER_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 350}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_NONE_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 308}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_NONE_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 390}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_NONE_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 321}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_OWNER_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 294}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 361}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_OWNER_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 237}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 365}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_OWNER_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 207}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 336}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 347}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 369}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 318}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 329}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 314}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 327}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_WORKER_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 379}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_WORKER_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 399}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_WORKER_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 320}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_NONE_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 392}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_NONE_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 390}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_NONE_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 309}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_OWNER_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 261}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 383}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_OWNER_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 206}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 364}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_OWNER_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 269}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 303}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 399}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 386}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 367}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 352}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 311}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 327}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_WORKER_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 397}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_WORKER_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 308}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_WORKER_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 354}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_NONE_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 376}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_NONE_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 359}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_NONE_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 352}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_user_num_resources_0_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 257}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 389}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_user_num_resources_1_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 282}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 327}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_user_num_resources_10_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 291}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 310}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_0_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 374}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_1_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 396}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_10_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 381}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_0_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 338}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_1_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 376}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_10_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 313}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_user_num_resources_0_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 346}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_user_num_resources_1_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 377}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_user_num_resources_10_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 332}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 334}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 359}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 337}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 254}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 339}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 211}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 329}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 253}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 354}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 343}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 347}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 314}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 331}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 382}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 352}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 313}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 389}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 337}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 346}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 393}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 357}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 294}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 302}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 245}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 360}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 220}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 397}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 346}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 383}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 382}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 362}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 379}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 303}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 353}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 304}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 395}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 342}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 368}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 394}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 219}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 310}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 277}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 380}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 270}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 351}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 319}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 309}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 381}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 24, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 375}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 318}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 325}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 303}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 24, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 320}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 357}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 372}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 370}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 385}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 296}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 375}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 272}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 336}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 266}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 321}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 356}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 314}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 319}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 365}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 358}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 390}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 329}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 380}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 394}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 340}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 382}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 381}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 47}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 85}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 28}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 82}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 22}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 17}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 85}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 11}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 85}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 24}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 69}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 17}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_0_role_OWNER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 94}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_1_role_OWNER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 14}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_10_role_OWNER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 12}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_MAINTAINER_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 327}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_MAINTAINER_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 366}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_MAINTAINER_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 316}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_MAINTAINER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 348}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_MAINTAINER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 393}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_MAINTAINER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 325}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_MAINTAINER_privilege_USER_membership_NONE_resource_user_num_resources_0_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 300}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_MAINTAINER_privilege_USER_membership_NONE_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 385}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_MAINTAINER_privilege_USER_membership_NONE_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 372}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_MAINTAINER_privilege_WORKER_membership_NONE_resource_user_num_resources_0_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 399}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_MAINTAINER_privilege_WORKER_membership_NONE_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 365}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_MAINTAINER_privilege_WORKER_membership_NONE_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 389}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_MAINTAINER_privilege_NONE_membership_NONE_resource_user_num_resources_0_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 390}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_MAINTAINER_privilege_NONE_membership_NONE_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 330}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_MAINTAINER_privilege_NONE_membership_NONE_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 300}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SUPERVISOR_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "delete", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 331}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SUPERVISOR_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "delete", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 325}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SUPERVISOR_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 321}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SUPERVISOR_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 379}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SUPERVISOR_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 336}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SUPERVISOR_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 321}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SUPERVISOR_privilege_USER_membership_NONE_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 354}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SUPERVISOR_privilege_USER_membership_NONE_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 301}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SUPERVISOR_privilege_USER_membership_NONE_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 366}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SUPERVISOR_privilege_WORKER_membership_NONE_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 311}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SUPERVISOR_privilege_WORKER_membership_NONE_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 334}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SUPERVISOR_privilege_WORKER_membership_NONE_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 315}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SUPERVISOR_privilege_NONE_membership_NONE_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 313}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SUPERVISOR_privilege_NONE_membership_NONE_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 323}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SUPERVISOR_privilege_NONE_membership_NONE_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 395}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_WORKER_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 338}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_WORKER_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 315}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_WORKER_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 323}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_WORKER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 311}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_WORKER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 348}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_WORKER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 399}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_WORKER_privilege_USER_membership_NONE_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 389}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_WORKER_privilege_USER_membership_NONE_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 363}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_WORKER_privilege_USER_membership_NONE_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 364}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_WORKER_privilege_WORKER_membership_NONE_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 317}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_WORKER_privilege_WORKER_membership_NONE_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 338}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_WORKER_privilege_WORKER_membership_NONE_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 356}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_WORKER_privilege_NONE_membership_NONE_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 349}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_WORKER_privilege_NONE_membership_NONE_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 381}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_WORKER_privilege_NONE_membership_NONE_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 396}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 332}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 337}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 357}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 347}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 305}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 300}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 336}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 301}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 311}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 322}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 337}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 380}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 309}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 373}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": null}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 315}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 229}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 24}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 228}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 56}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 255}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 76}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 18}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 14}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 46}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 11}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 20}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 51}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 38}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 38}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 46}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 77}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 11}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 22}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 235}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 8}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 279}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 50}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 221}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 15}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 24}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 7}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 7}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 61}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 47}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 58}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 20}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 90}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 58}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 9}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 96}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 63}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 213}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 47}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 273}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 81}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 267}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 94}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 17}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 14}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 24}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 67}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 58}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 60}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 69}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 43}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 64}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 65}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 68}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 19, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 19}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 274}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 10}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 206}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 39}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 262}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 52}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 92}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 4}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 12}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 9}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 66}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 18}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 45}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 14}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 72}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_0_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 24}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_1_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 15}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_10_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 56}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_user_num_resources_0_role_OWNER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 211}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 26}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_user_num_resources_1_role_OWNER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 252}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 87}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_user_num_resources_10_role_OWNER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 234}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 69}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_0_role_OWNER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 22}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_1_role_OWNER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 95}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_10_role_OWNER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 42}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_0_role_OWNER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 5}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_1_role_OWNER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 5}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_10_role_OWNER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 35}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_user_num_resources_0_role_OWNER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 38}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_user_num_resources_1_role_OWNER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 41}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_user_num_resources_10_role_OWNER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 66}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_0_role_OWNER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "owner"}, "owner": {"id": 58}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_1_role_OWNER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "owner"}, "owner": {"id": 78}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_10_role_OWNER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "owner"}, "owner": {"id": 16}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 200}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 379}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 265}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 361}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 274}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 310}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 380}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 390}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 389}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 338}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 391}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 383}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 373}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 352}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 390}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_role_MAINTAINER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 383}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_role_MAINTAINER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 305}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_role_MAINTAINER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 371}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_0_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 263}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 321}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 274}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 303}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 230}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 353}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_0_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 305}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 392}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 346}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_0_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 353}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 307}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 358}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_0_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 312}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 341}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 316}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 396}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 379}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 375}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_OWNER_resource_user_num_resources_0_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 252}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 393}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_OWNER_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 287}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 332}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_OWNER_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 260}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 365}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_0_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 384}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 393}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 395}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_0_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 368}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 396}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 341}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_WORKER_resource_user_num_resources_0_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 378}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_WORKER_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 393}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_WORKER_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 386}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_NONE_resource_user_num_resources_0_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 19, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 338}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_NONE_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 363}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_USER_membership_NONE_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 312}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_OWNER_resource_user_num_resources_0_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 256}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 377}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_OWNER_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 216}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 369}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_OWNER_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 299}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 332}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_0_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 343}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 349}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 328}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_0_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 366}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 334}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 308}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_WORKER_resource_user_num_resources_0_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 346}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_WORKER_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 311}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_WORKER_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 346}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_NONE_resource_user_num_resources_0_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 375}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_NONE_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 344}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_WORKER_membership_NONE_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 310}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_OWNER_resource_user_num_resources_0_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 239}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 304}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_OWNER_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 224}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 362}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_OWNER_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 254}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 336}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_0_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 325}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 395}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 314}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_0_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 335}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 342}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 356}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_WORKER_resource_user_num_resources_0_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 340}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_WORKER_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 355}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_WORKER_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 336}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_NONE_resource_user_num_resources_0_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "maintainer"}, "owner": {"id": 312}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_NONE_resource_user_num_resources_1_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "maintainer"}, "owner": {"id": 304}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_MAINTAINER_privilege_NONE_membership_NONE_resource_user_num_resources_10_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "maintainer"}, "owner": {"id": 326}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_OWNER_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 223}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 360}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_OWNER_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 242}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 350}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_OWNER_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "delete", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 272}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 389}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 328}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "delete", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 325}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 320}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "delete", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 331}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 374}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 327}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_WORKER_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 352}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_WORKER_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 381}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_WORKER_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 327}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_role_SUPERVISOR { - allow with input as {"scope": "delete", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 347}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_role_SUPERVISOR { - allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 335}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_role_SUPERVISOR { - allow with input as {"scope": "delete", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 307}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 237}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 347}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 208}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 350}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 269}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 321}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 302}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 320}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 344}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 305}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 336}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 333}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 325}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 300}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 319}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 394}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 313}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 387}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_OWNER_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 235}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 324}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_OWNER_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 228}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 336}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_OWNER_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 203}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 358}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_MAINTAINER_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 357}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_MAINTAINER_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 398}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_MAINTAINER_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 333}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 310}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 386}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 373}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_WORKER_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 385}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_WORKER_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 342}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_WORKER_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 325}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_NONE_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 391}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_NONE_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 344}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_USER_membership_NONE_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 341}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_OWNER_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 242}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 311}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_OWNER_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 281}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 371}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_OWNER_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 222}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 351}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 357}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 377}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 386}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 338}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 376}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 321}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_WORKER_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 360}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_WORKER_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 301}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_WORKER_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 337}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_NONE_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 333}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_NONE_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 317}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_WORKER_membership_NONE_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 304}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_OWNER_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 229}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 331}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_OWNER_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 217}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 360}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_OWNER_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 218}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 390}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 361}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 354}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 399}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 336}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 311}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 370}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_WORKER_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 305}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_WORKER_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 365}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_WORKER_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 325}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_NONE_resource_user_num_resources_0_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "supervisor"}, "owner": {"id": 337}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_NONE_resource_user_num_resources_1_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "supervisor"}, "owner": {"id": 357}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SUPERVISOR_privilege_NONE_membership_NONE_resource_user_num_resources_10_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "supervisor"}, "owner": {"id": 399}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 294}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 312}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 290}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 349}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 246}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 383}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 319}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 375}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 370}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 325}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 301}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 325}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 350}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 392}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 302}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_role_WORKER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 381}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_role_WORKER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 371}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_role_WORKER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 326}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 200}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 385}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 207}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 329}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 242}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 360}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 381}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 320}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 374}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 350}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 337}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 315}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 395}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 369}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 94, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 374}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 370}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 390}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 393}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_OWNER_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 206}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 314}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_OWNER_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 211}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 311}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_OWNER_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 236}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 336}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 394}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 325}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 345}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 300}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 335}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 338}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_WORKER_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 375}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_WORKER_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 306}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_WORKER_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 318}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_NONE_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 307}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_NONE_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 393}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_USER_membership_NONE_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 324}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_OWNER_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 208}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 345}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_OWNER_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 297}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 335}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_OWNER_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 243}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 356}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 334}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 315}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 320}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 365}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 324}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 395}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_WORKER_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 349}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_WORKER_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 392}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_WORKER_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 379}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_NONE_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 300}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_NONE_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 349}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_WORKER_membership_NONE_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 371}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_OWNER_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 242}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 387}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_OWNER_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 207}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 342}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_OWNER_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 252}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 342}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 335}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 332}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 369}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 365}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 388}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 300}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_WORKER_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 300}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_WORKER_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 351}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_WORKER_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 350}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_NONE_resource_user_num_resources_0_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": "worker"}, "owner": {"id": 350}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_NONE_resource_user_num_resources_1_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": "worker"}, "owner": {"id": 365}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_WORKER_privilege_NONE_membership_NONE_resource_user_num_resources_10_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": "worker"}, "owner": {"id": 390}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_user_num_resources_0_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 248}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 342}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_user_num_resources_1_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 214}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 325}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_user_num_resources_10_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 260}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 382}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_0_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 377}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_1_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 367}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_10_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 304}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_0_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 342}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_1_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 374}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_10_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 316}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_user_num_resources_0_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 345}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_user_num_resources_1_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 304}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_user_num_resources_10_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 345}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 379}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 359}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 350}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 276}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 372}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 249}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 326}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 282}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 353}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 314}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 366}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 309}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 321}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 310}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 344}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 355}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 382}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 343}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 328}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 375}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 305}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 296}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 387}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 266}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 348}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 276}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 340}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 374}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 355}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 354}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 322}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 329}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 307}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 305}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 339}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 376}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 387}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 387}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 396}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 244}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 306}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 273}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 301}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 225}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 355}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 385}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 335}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 335}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 359}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 343}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 342}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 342}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 399}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 391}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 346}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 382}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 368}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 265}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 304}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 265}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 377}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 231}, "user": {"role": "owner"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 309}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 388}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 342}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 353}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 337}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 377}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 342}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 376}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 330}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 324}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_0_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 0, "role": null}, "owner": {"id": 388}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_1_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 1, "role": null}, "owner": {"id": 348}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_10_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"user": {"num_resources": 10, "role": null}, "owner": {"id": 378}}} -} - - - -# organizations_test.gen.rego.py -# # Copyright (C) 2021-2022 Intel Corporation -# # -# # SPDX-License-Identifier: MIT -# -# # Copyright (C) 2021-2022 Intel Corporation -# # -# # SPDX-License-Identifier: MIT -# -# import csv -# import json -# import random -# import sys -# import os -# from itertools import product -# -# NAME = 'organizations' -# -# def read_rules(name): -# rules = [] -# with open(os.path.join(sys.argv[1], f'{name}.csv')) as f: -# reader = csv.DictReader(f) -# for row in reader: -# row = {k.lower():v.lower().replace('n/a','na') for k,v in row.items()} -# row['limit'] = row['limit'].replace('none', 'None') -# found = False -# for col,val in row.items(): -# if col in ["limit", "method", "url"]: -# continue -# complex_val = [v.strip() for v in val.split(',')] -# if len(complex_val) > 1: -# found = True -# for item in complex_val: -# new_row = row.copy() -# new_row[col] = item -# rules.append(new_row) -# if not found: -# rules.append(row) -# -# return rules -# -# simple_rules = read_rules(NAME) -# -# SCOPES = {rule['scope'] for rule in simple_rules} -# CONTEXTS = ['sandbox', 'organization'] -# OWNERSHIPS = ['owner', 'maintainer', 'supervisor', 'worker', 'none'] -# GROUPS = ['admin', 'business', 'user', 'worker', 'none'] -# ORG_ROLES = ['owner', 'maintainer', 'supervisor', 'worker', None] -# def RESOURCES(ownership): -# return [{ -# 'user': { -# 'num_resources': n, -# 'role': ownership if ownership != 'none' else None -# } -# } for n in (0, 1, 10)] + [None] -# -# -# def eval_rule(scope, context, ownership, privilege, membership, data): -# if privilege == 'admin': -# return True -# rules = list(filter(lambda r: scope == r['scope'], simple_rules)) -# rules = list(filter(lambda r: r['context'] == 'na' or context == r['context'], rules)) -# rules = list(filter(lambda r: r['ownership'] == 'na' or ownership == r['ownership'], rules)) -# rules = list(filter(lambda r: r['membership'] == 'na' or membership == r['membership'], rules)) -# rules = list(filter(lambda r: GROUPS.index(privilege) <= GROUPS.index(r['privilege']), rules)) -# resource = data['resource'] -# rules = list(filter(lambda r: not r['limit'] or r['limit'].startswith('filter') -# or eval(r['limit'], {'resource': resource}), rules)) -# -# return bool(rules) -# -# def get_data(scope, context, ownership, privilege, membership, resource): -# data = { -# "scope": scope, -# "auth": { -# "user": { "id": random.randrange(0,100), "privilege": privilege }, -# "organization": { -# "id": random.randrange(100,200), -# "owner": { "id": random.randrange(200, 300) }, -# "user": { "role": membership } -# } if context == 'organization' else None -# }, -# "resource": {**resource, -# "owner": { "id": random.randrange(300, 400) } -# } if resource else None -# } -# -# user_id = data['auth']['user']['id'] -# if ownership == 'owner': -# data['resource']['owner']['id'] = user_id -# -# return data -# -# def _get_name(prefix, **kwargs): -# name = prefix -# for k,v in kwargs.items(): -# name += '_' + str(k) -# if isinstance(v, dict): -# name += _get_name('', **v) -# else: -# name += f'_{str(v).upper()}' -# -# return name -# -# def get_name(scope, context, ownership, privilege, membership, resource): -# return _get_name('test', **locals()) -# -# def is_valid(scope, context, ownership, privilege, membership, resource): -# if context == "sandbox" and membership: -# return False -# if scope == 'list' and resource != None: -# return False -# if resource == None and scope != 'list': -# return False -# if scope == 'list' and ownership != 'None': -# return False -# -# return True -# -# def gen_test_rego(name): -# with open(f'{name}_test.gen.rego', 'wt') as f: -# f.write(f'package {name}\n\n') -# for scope, context, ownership, privilege, membership in product( -# SCOPES, CONTEXTS, OWNERSHIPS, GROUPS, ORG_ROLES): -# for resource in RESOURCES(ownership): -# if not is_valid(scope, context, ownership, privilege, membership, resource): -# continue -# -# test_name = get_name(scope, context, ownership, privilege, membership, resource) -# data = get_data(scope, context, ownership, privilege, membership, resource) -# result = eval_rule(scope, context, ownership, privilege, membership, data) -# f.write('{test_name} {{\n {allow} with input as {data}\n}}\n\n'.format( -# test_name=test_name, allow='allow' if result else 'not allow', -# data=json.dumps(data))) -# -# # Write the script which is used to generate the file -# with open(sys.argv[0]) as this_file: -# f.write(f'\n\n# {os.path.split(sys.argv[0])[1]}\n') -# for line in this_file: -# if line.strip(): -# f.write(f'# {line}') -# else: -# f.write(f'#\n') -# -# # Write rules which are used to generate the file -# with open(os.path.join(sys.argv[1], f'{name}.csv')) as rego_file: -# f.write(f'\n\n# {name}.csv\n') -# for line in rego_file: -# if line.strip(): -# f.write(f'# {line}') -# else: -# f.write(f'#\n') -# -# gen_test_rego(NAME) - -# organizations.csv -# Scope,Resource,Context,Ownership,Limit,Method,URL,Privilege,Membership -# create,Organization,N/A,N/A,"resource[""user""][""num_resources""] < 1",POST,/organizations,User,N/A -# create,Organization,N/A,N/A,,POST,/organizations,Business,N/A -# list,N/A,N/A,N/A,,GET,/organizations,None,N/A -# view,Organization,N/A,"Worker, Supervisor, Maintainer, Owner",,GET,/organizations/{id},None,N/A -# view,Organization,N/A,None,,GET,/organizations/{id},Admin,N/A -# update,Organization,N/A,"Owner, Maintainer",,PATCH,/organizations/{id},Worker,N/A -# update,Organization,N/A,"None, Worker, Supervisor",,PATCH,/organizations/{id},Admin,N/A -# delete,Organization,N/A,Owner,,DELETE,/organizations/{id},Worker,N/A -# delete,Organization,N/A,"None, Worker, Supervisor, Maintainer",,DELETE,/organizations/{id},Admin,N/A \ No newline at end of file diff --git a/cvat/apps/iam/rules/projects_test.gen.rego b/cvat/apps/iam/rules/projects_test.gen.rego deleted file mode 100644 index ab98a73a..00000000 --- a/cvat/apps/iam/rules/projects_test.gen.rego +++ /dev/null @@ -1,12131 +0,0 @@ -package projects - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": null}, "resource": {"id": 366, "owner": {"id": 27}, "assignee": {"id": 522}, "organization": {"id": 642}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": null}, "resource": {"id": 370, "owner": {"id": 61}, "assignee": {"id": 589}, "organization": {"id": 647}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": null}, "resource": {"id": 332, "owner": {"id": 84}, "assignee": {"id": 505}, "organization": {"id": 641}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 24, "privilege": "worker"}, "organization": null}, "resource": {"id": 337, "owner": {"id": 24}, "assignee": {"id": 505}, "organization": {"id": 682}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": null}, "resource": {"id": 300, "owner": {"id": 84}, "assignee": {"id": 512}, "organization": {"id": 664}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": null}, "resource": {"id": 365, "owner": {"id": 478}, "assignee": {"id": 33}, "organization": {"id": 639}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": null}, "resource": {"id": 343, "owner": {"id": 493}, "assignee": {"id": 72}, "organization": {"id": 648}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": null}, "resource": {"id": 370, "owner": {"id": 442}, "assignee": {"id": 33}, "organization": {"id": 624}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": null}, "resource": {"id": 319, "owner": {"id": 440}, "assignee": {"id": 31}, "organization": {"id": 622}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": null}, "resource": {"id": 327, "owner": {"id": 442}, "assignee": {"id": 88}, "organization": {"id": 666}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": null}, "resource": {"id": 365, "owner": {"id": 465}, "assignee": {"id": 532}, "organization": {"id": 613}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": null}, "resource": {"id": 305, "owner": {"id": 476}, "assignee": {"id": 574}, "organization": {"id": 638}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": null}, "resource": {"id": 375, "owner": {"id": 428}, "assignee": {"id": 531}, "organization": {"id": 603}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": null}, "resource": {"id": 385, "owner": {"id": 425}, "assignee": {"id": 569}, "organization": {"id": 613}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": null}, "resource": {"id": 305, "owner": {"id": 445}, "assignee": {"id": 554}, "organization": {"id": 624}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"id": 331, "owner": {"id": 66}, "assignee": {"id": 565}, "organization": {"id": 641}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 393, "owner": {"id": 57}, "assignee": {"id": 516}, "organization": {"id": 155}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 2}, "assignee": {"id": 581}, "organization": {"id": 625}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "owner": {"id": 56}, "assignee": {"id": 583}, "organization": {"id": 147}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 86}, "assignee": {"id": 587}, "organization": {"id": 640}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "owner": {"id": 0}, "assignee": {"id": 536}, "organization": {"id": 173}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 325, "owner": {"id": 47}, "assignee": {"id": 550}, "organization": {"id": 677}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 58}, "assignee": {"id": 532}, "organization": {"id": 135}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 356, "owner": {"id": 63}, "assignee": {"id": 592}, "organization": {"id": 600}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 304, "owner": {"id": 14}, "assignee": {"id": 512}, "organization": {"id": 131}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 302, "owner": {"id": 74}, "assignee": {"id": 552}, "organization": {"id": 683}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 341, "owner": {"id": 2}, "assignee": {"id": 517}, "organization": {"id": 128}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "owner": {"id": 55}, "assignee": {"id": 514}, "organization": {"id": 676}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 24}, "assignee": {"id": 559}, "organization": {"id": 112}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "owner": {"id": 38}, "assignee": {"id": 532}, "organization": {"id": 622}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 31, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 390, "owner": {"id": 31}, "assignee": {"id": 501}, "organization": {"id": 134}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 302, "owner": {"id": 5}, "assignee": {"id": 599}, "organization": {"id": 635}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 333, "owner": {"id": 20}, "assignee": {"id": 594}, "organization": {"id": 131}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 337, "owner": {"id": 72}, "assignee": {"id": 534}, "organization": {"id": 697}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 333, "owner": {"id": 13}, "assignee": {"id": 598}, "organization": {"id": 190}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 71, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 358, "owner": {"id": 71}, "assignee": {"id": 562}, "organization": {"id": 689}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 84}, "assignee": {"id": 514}, "organization": {"id": 136}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "owner": {"id": 55}, "assignee": {"id": 523}, "organization": {"id": 630}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "owner": {"id": 87}, "assignee": {"id": 503}, "organization": {"id": 118}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "owner": {"id": 37}, "assignee": {"id": 504}, "organization": {"id": 626}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "owner": {"id": 79}, "assignee": {"id": 506}, "organization": {"id": 128}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 99}, "assignee": {"id": 588}, "organization": {"id": 607}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 13}, "assignee": {"id": 558}, "organization": {"id": 175}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 46}, "assignee": {"id": 526}, "organization": {"id": 692}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 384, "owner": {"id": 16}, "assignee": {"id": 561}, "organization": {"id": 169}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 390, "owner": {"id": 73}, "assignee": {"id": 514}, "organization": {"id": 641}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 312, "owner": {"id": 85}, "assignee": {"id": 595}, "organization": {"id": 167}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "owner": {"id": 4}, "assignee": {"id": 511}, "organization": {"id": 688}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "owner": {"id": 14}, "assignee": {"id": 576}, "organization": {"id": 130}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 67, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 67}, "assignee": {"id": 555}, "organization": {"id": 663}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "owner": {"id": 3}, "assignee": {"id": 588}, "organization": {"id": 111}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 324, "owner": {"id": 79}, "assignee": {"id": 563}, "organization": {"id": 680}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 319, "owner": {"id": 6}, "assignee": {"id": 596}, "organization": {"id": 177}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 303, "owner": {"id": 42}, "assignee": {"id": 524}, "organization": {"id": 683}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 383, "owner": {"id": 26}, "assignee": {"id": 592}, "organization": {"id": 165}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 319, "owner": {"id": 46}, "assignee": {"id": 502}, "organization": {"id": 657}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 345, "owner": {"id": 31}, "assignee": {"id": 561}, "organization": {"id": 103}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 52}, "assignee": {"id": 586}, "organization": {"id": 685}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "owner": {"id": 97}, "assignee": {"id": 577}, "organization": {"id": 176}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 12}, "assignee": {"id": 588}, "organization": {"id": 637}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 49}, "assignee": {"id": 590}, "organization": {"id": 115}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"id": 326, "owner": {"id": 33}, "assignee": {"id": 570}, "organization": {"id": 616}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 310, "owner": {"id": 30}, "assignee": {"id": 565}, "organization": {"id": 124}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 304, "owner": {"id": 13}, "assignee": {"id": 560}, "organization": {"id": 643}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"id": 361, "owner": {"id": 43}, "assignee": {"id": 563}, "organization": {"id": 122}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 493}, "assignee": {"id": 84}, "organization": {"id": 645}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 371, "owner": {"id": 417}, "assignee": {"id": 30}, "organization": {"id": 188}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "owner": {"id": 436}, "assignee": {"id": 32}, "organization": {"id": 614}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "owner": {"id": 496}, "assignee": {"id": 79}, "organization": {"id": 124}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "owner": {"id": 432}, "assignee": {"id": 74}, "organization": {"id": 662}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "owner": {"id": 425}, "assignee": {"id": 17}, "organization": {"id": 126}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 493}, "assignee": {"id": 29}, "organization": {"id": 612}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 341, "owner": {"id": 423}, "assignee": {"id": 72}, "organization": {"id": 187}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 341, "owner": {"id": 489}, "assignee": {"id": 91}, "organization": {"id": 665}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 329, "owner": {"id": 480}, "assignee": {"id": 61}, "organization": {"id": 162}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 496}, "assignee": {"id": 99}, "organization": {"id": 642}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 493}, "assignee": {"id": 22}, "organization": {"id": 125}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "owner": {"id": 405}, "assignee": {"id": 21}, "organization": {"id": 681}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "owner": {"id": 465}, "assignee": {"id": 59}, "organization": {"id": 119}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "owner": {"id": 466}, "assignee": {"id": 53}, "organization": {"id": 659}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 406}, "assignee": {"id": 36}, "organization": {"id": 167}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 383, "owner": {"id": 447}, "assignee": {"id": 46}, "organization": {"id": 601}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 387, "owner": {"id": 476}, "assignee": {"id": 11}, "organization": {"id": 179}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 382, "owner": {"id": 487}, "assignee": {"id": 19}, "organization": {"id": 614}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"id": 399, "owner": {"id": 472}, "assignee": {"id": 74}, "organization": {"id": 187}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 471}, "assignee": {"id": 47}, "organization": {"id": 600}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 465}, "assignee": {"id": 94}, "organization": {"id": 131}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 414}, "assignee": {"id": 92}, "organization": {"id": 698}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 465}, "assignee": {"id": 18}, "organization": {"id": 105}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "owner": {"id": 484}, "assignee": {"id": 59}, "organization": {"id": 661}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "owner": {"id": 406}, "assignee": {"id": 77}, "organization": {"id": 187}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 462}, "assignee": {"id": 7}, "organization": {"id": 672}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 378, "owner": {"id": 472}, "assignee": {"id": 64}, "organization": {"id": 179}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 451}, "assignee": {"id": 83}, "organization": {"id": 673}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 388, "owner": {"id": 456}, "assignee": {"id": 67}, "organization": {"id": 140}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 377, "owner": {"id": 492}, "assignee": {"id": 69}, "organization": {"id": 664}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 357, "owner": {"id": 431}, "assignee": {"id": 84}, "organization": {"id": 115}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 499}, "assignee": {"id": 37}, "organization": {"id": 612}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "owner": {"id": 432}, "assignee": {"id": 80}, "organization": {"id": 138}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "owner": {"id": 451}, "assignee": {"id": 59}, "organization": {"id": 613}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "owner": {"id": 452}, "assignee": {"id": 69}, "organization": {"id": 182}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 323, "owner": {"id": 453}, "assignee": {"id": 63}, "organization": {"id": 611}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 449}, "assignee": {"id": 43}, "organization": {"id": 165}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 328, "owner": {"id": 439}, "assignee": {"id": 65}, "organization": {"id": 601}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 340, "owner": {"id": 477}, "assignee": {"id": 16}, "organization": {"id": 153}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 312, "owner": {"id": 472}, "assignee": {"id": 86}, "organization": {"id": 684}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 358, "owner": {"id": 471}, "assignee": {"id": 87}, "organization": {"id": 129}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 468}, "assignee": {"id": 85}, "organization": {"id": 687}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "owner": {"id": 461}, "assignee": {"id": 14}, "organization": {"id": 110}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 441}, "assignee": {"id": 25}, "organization": {"id": 608}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 446}, "assignee": {"id": 57}, "organization": {"id": 157}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 490}, "assignee": {"id": 44}, "organization": {"id": 693}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 300, "owner": {"id": 476}, "assignee": {"id": 32}, "organization": {"id": 158}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 312, "owner": {"id": 438}, "assignee": {"id": 85}, "organization": {"id": 690}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 317, "owner": {"id": 449}, "assignee": {"id": 65}, "organization": {"id": 162}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 329, "owner": {"id": 461}, "assignee": {"id": 574}, "organization": {"id": 679}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 471}, "assignee": {"id": 556}, "organization": {"id": 138}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 482}, "assignee": {"id": 546}, "organization": {"id": 610}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "owner": {"id": 400}, "assignee": {"id": 522}, "organization": {"id": 145}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"id": 324, "owner": {"id": 471}, "assignee": {"id": 563}, "organization": {"id": 643}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "owner": {"id": 459}, "assignee": {"id": 552}, "organization": {"id": 152}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 483}, "assignee": {"id": 527}, "organization": {"id": 676}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 369, "owner": {"id": 485}, "assignee": {"id": 586}, "organization": {"id": 126}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 433}, "assignee": {"id": 506}, "organization": {"id": 696}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 323, "owner": {"id": 439}, "assignee": {"id": 526}, "organization": {"id": 140}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 345, "owner": {"id": 468}, "assignee": {"id": 545}, "organization": {"id": 645}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 380, "owner": {"id": 473}, "assignee": {"id": 558}, "organization": {"id": 187}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "owner": {"id": 499}, "assignee": {"id": 594}, "organization": {"id": 632}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 330, "owner": {"id": 404}, "assignee": {"id": 583}, "organization": {"id": 141}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "owner": {"id": 460}, "assignee": {"id": 575}, "organization": {"id": 600}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "owner": {"id": 493}, "assignee": {"id": 588}, "organization": {"id": 127}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 382, "owner": {"id": 431}, "assignee": {"id": 524}, "organization": {"id": 604}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 435}, "assignee": {"id": 569}, "organization": {"id": 118}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 355, "owner": {"id": 422}, "assignee": {"id": 573}, "organization": {"id": 672}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 81, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 494}, "assignee": {"id": 597}, "organization": {"id": 139}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 428}, "assignee": {"id": 508}, "organization": {"id": 682}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 309, "owner": {"id": 435}, "assignee": {"id": 582}, "organization": {"id": 158}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "owner": {"id": 442}, "assignee": {"id": 533}, "organization": {"id": 671}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 404}, "assignee": {"id": 507}, "organization": {"id": 130}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "owner": {"id": 477}, "assignee": {"id": 563}, "organization": {"id": 663}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "owner": {"id": 456}, "assignee": {"id": 509}, "organization": {"id": 113}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 304, "owner": {"id": 404}, "assignee": {"id": 522}, "organization": {"id": 623}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 351, "owner": {"id": 441}, "assignee": {"id": 569}, "organization": {"id": 118}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 398, "owner": {"id": 437}, "assignee": {"id": 563}, "organization": {"id": 673}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 333, "owner": {"id": 471}, "assignee": {"id": 549}, "organization": {"id": 113}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 393, "owner": {"id": 407}, "assignee": {"id": 516}, "organization": {"id": 658}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 379, "owner": {"id": 493}, "assignee": {"id": 511}, "organization": {"id": 105}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "owner": {"id": 471}, "assignee": {"id": 582}, "organization": {"id": 686}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "owner": {"id": 432}, "assignee": {"id": 549}, "organization": {"id": 194}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "owner": {"id": 405}, "assignee": {"id": 528}, "organization": {"id": 600}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "owner": {"id": 463}, "assignee": {"id": 578}, "organization": {"id": 199}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 387, "owner": {"id": 417}, "assignee": {"id": 592}, "organization": {"id": 691}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 346, "owner": {"id": 401}, "assignee": {"id": 500}, "organization": {"id": 154}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 24, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 493}, "assignee": {"id": 558}, "organization": {"id": 673}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 315, "owner": {"id": 422}, "assignee": {"id": 591}, "organization": {"id": 143}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 341, "owner": {"id": 475}, "assignee": {"id": 525}, "organization": {"id": 681}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 348, "owner": {"id": 484}, "assignee": {"id": 524}, "organization": {"id": 192}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 453}, "assignee": {"id": 520}, "organization": {"id": 605}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "owner": {"id": 452}, "assignee": {"id": 577}, "organization": {"id": 167}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "owner": {"id": 451}, "assignee": {"id": 525}, "organization": {"id": 638}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 473}, "assignee": {"id": 552}, "organization": {"id": 140}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 365, "owner": {"id": 446}, "assignee": {"id": 503}, "organization": {"id": 662}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 336, "owner": {"id": 404}, "assignee": {"id": 570}, "organization": {"id": 145}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 433}, "assignee": {"id": 576}, "organization": {"id": 605}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 372, "owner": {"id": 492}, "assignee": {"id": 518}, "organization": {"id": 162}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": null}, "resource": {"id": 346, "owner": {"id": 37}, "assignee": {"id": 528}, "organization": {"id": 683}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": null}, "resource": {"id": 387, "owner": {"id": 24}, "assignee": {"id": 582}, "organization": {"id": 686}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": null}, "resource": {"id": 313, "owner": {"id": 58}, "assignee": {"id": 592}, "organization": {"id": 683}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": null}, "resource": {"id": 343, "owner": {"id": 97}, "assignee": {"id": 559}, "organization": {"id": 654}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": null}, "resource": {"id": 316, "owner": {"id": 44}, "assignee": {"id": 566}, "organization": {"id": 696}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": null}, "resource": {"id": 311, "owner": {"id": 488}, "assignee": {"id": 87}, "organization": {"id": 690}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": null}, "resource": {"id": 386, "owner": {"id": 444}, "assignee": {"id": 66}, "organization": {"id": 697}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "user"}, "organization": null}, "resource": {"id": 383, "owner": {"id": 412}, "assignee": {"id": 71}, "organization": {"id": 601}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": null}, "resource": {"id": 337, "owner": {"id": 463}, "assignee": {"id": 52}, "organization": {"id": 655}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": null}, "resource": {"id": 361, "owner": {"id": 483}, "assignee": {"id": 54}, "organization": {"id": 656}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": null}, "resource": {"id": 353, "owner": {"id": 457}, "assignee": {"id": 595}, "organization": {"id": 603}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": null}, "resource": {"id": 363, "owner": {"id": 475}, "assignee": {"id": 502}, "organization": {"id": 694}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": null}, "resource": {"id": 389, "owner": {"id": 468}, "assignee": {"id": 510}, "organization": {"id": 663}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": null}, "resource": {"id": 327, "owner": {"id": 486}, "assignee": {"id": 559}, "organization": {"id": 617}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": null}, "resource": {"id": 318, "owner": {"id": 496}, "assignee": {"id": 538}, "organization": {"id": 614}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 94}, "assignee": {"id": 500}, "organization": {"id": 674}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 32}, "assignee": {"id": 575}, "organization": {"id": 187}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 22}, "assignee": {"id": 522}, "organization": {"id": 677}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "owner": {"id": 55}, "assignee": {"id": 591}, "organization": {"id": 184}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "owner": {"id": 97}, "assignee": {"id": 574}, "organization": {"id": 688}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "owner": {"id": 73}, "assignee": {"id": 567}, "organization": {"id": 142}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 371, "owner": {"id": 86}, "assignee": {"id": 548}, "organization": {"id": 632}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 29}, "assignee": {"id": 569}, "organization": {"id": 135}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 77}, "assignee": {"id": 569}, "organization": {"id": 644}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 3}, "assignee": {"id": 550}, "organization": {"id": 185}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 356, "owner": {"id": 33}, "assignee": {"id": 596}, "organization": {"id": 680}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 15}, "assignee": {"id": 513}, "organization": {"id": 184}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "owner": {"id": 87}, "assignee": {"id": 571}, "organization": {"id": 679}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 53}, "assignee": {"id": 517}, "organization": {"id": 171}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "owner": {"id": 39}, "assignee": {"id": 528}, "organization": {"id": 688}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 88}, "assignee": {"id": 594}, "organization": {"id": 182}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 390, "owner": {"id": 67}, "assignee": {"id": 566}, "organization": {"id": 659}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 314, "owner": {"id": 49}, "assignee": {"id": 591}, "organization": {"id": 112}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 308, "owner": {"id": 71}, "assignee": {"id": 528}, "organization": {"id": 689}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 357, "owner": {"id": 47}, "assignee": {"id": 590}, "organization": {"id": 101}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 318, "owner": {"id": 74}, "assignee": {"id": 598}, "organization": {"id": 616}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 369, "owner": {"id": 3}, "assignee": {"id": 578}, "organization": {"id": 187}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 67}, "assignee": {"id": 557}, "organization": {"id": 664}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 47}, "assignee": {"id": 553}, "organization": {"id": 111}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "owner": {"id": 38}, "assignee": {"id": 593}, "organization": {"id": 630}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "owner": {"id": 70}, "assignee": {"id": 533}, "organization": {"id": 192}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 300, "owner": {"id": 80}, "assignee": {"id": 522}, "organization": {"id": 637}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 343, "owner": {"id": 4}, "assignee": {"id": 572}, "organization": {"id": 190}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 86}, "assignee": {"id": 510}, "organization": {"id": 608}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 65}, "assignee": {"id": 550}, "organization": {"id": 118}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 341, "owner": {"id": 81}, "assignee": {"id": 500}, "organization": {"id": 613}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 382, "owner": {"id": 69}, "assignee": {"id": 592}, "organization": {"id": 159}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "owner": {"id": 71}, "assignee": {"id": 507}, "organization": {"id": 663}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "owner": {"id": 95}, "assignee": {"id": 527}, "organization": {"id": 192}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "owner": {"id": 18}, "assignee": {"id": 519}, "organization": {"id": 649}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 7}, "assignee": {"id": 502}, "organization": {"id": 164}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 29}, "assignee": {"id": 536}, "organization": {"id": 699}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 316, "owner": {"id": 78}, "assignee": {"id": 534}, "organization": {"id": 127}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 363, "owner": {"id": 52}, "assignee": {"id": 562}, "organization": {"id": 644}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 21}, "assignee": {"id": 555}, "organization": {"id": 104}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 77}, "assignee": {"id": 579}, "organization": {"id": 616}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 97}, "assignee": {"id": 522}, "organization": {"id": 104}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 389, "owner": {"id": 10}, "assignee": {"id": 508}, "organization": {"id": 630}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 1}, "assignee": {"id": 586}, "organization": {"id": 160}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 84}, "assignee": {"id": 512}, "organization": {"id": 625}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 59}, "assignee": {"id": 506}, "organization": {"id": 137}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 96}, "assignee": {"id": 528}, "organization": {"id": 606}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 381, "owner": {"id": 15}, "assignee": {"id": 560}, "organization": {"id": 103}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 33}, "assignee": {"id": 540}, "organization": {"id": 643}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 29}, "assignee": {"id": 577}, "organization": {"id": 104}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 433}, "assignee": {"id": 81}, "organization": {"id": 661}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 465}, "assignee": {"id": 57}, "organization": {"id": 133}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "owner": {"id": 485}, "assignee": {"id": 93}, "organization": {"id": 627}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "owner": {"id": 492}, "assignee": {"id": 65}, "organization": {"id": 193}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "owner": {"id": 447}, "assignee": {"id": 6}, "organization": {"id": 691}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 421}, "assignee": {"id": 45}, "organization": {"id": 173}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 371, "owner": {"id": 457}, "assignee": {"id": 48}, "organization": {"id": 636}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 319, "owner": {"id": 410}, "assignee": {"id": 74}, "organization": {"id": 160}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 409}, "assignee": {"id": 42}, "organization": {"id": 650}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 342, "owner": {"id": 469}, "assignee": {"id": 1}, "organization": {"id": 149}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 382, "owner": {"id": 423}, "assignee": {"id": 19}, "organization": {"id": 668}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 434}, "assignee": {"id": 95}, "organization": {"id": 126}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 436}, "assignee": {"id": 21}, "organization": {"id": 689}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 450}, "assignee": {"id": 25}, "organization": {"id": 109}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 403}, "assignee": {"id": 93}, "organization": {"id": 683}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "owner": {"id": 431}, "assignee": {"id": 10}, "organization": {"id": 126}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 311, "owner": {"id": 458}, "assignee": {"id": 49}, "organization": {"id": 691}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 400}, "assignee": {"id": 64}, "organization": {"id": 173}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"id": 384, "owner": {"id": 449}, "assignee": {"id": 88}, "organization": {"id": 612}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 473}, "assignee": {"id": 28}, "organization": {"id": 113}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 390, "owner": {"id": 436}, "assignee": {"id": 18}, "organization": {"id": 696}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 304, "owner": {"id": 400}, "assignee": {"id": 49}, "organization": {"id": 150}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "owner": {"id": 492}, "assignee": {"id": 13}, "organization": {"id": 632}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 330, "owner": {"id": 433}, "assignee": {"id": 4}, "organization": {"id": 152}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 324, "owner": {"id": 440}, "assignee": {"id": 97}, "organization": {"id": 644}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "owner": {"id": 455}, "assignee": {"id": 12}, "organization": {"id": 153}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 396, "owner": {"id": 476}, "assignee": {"id": 93}, "organization": {"id": 626}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 453}, "assignee": {"id": 4}, "organization": {"id": 164}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 473}, "assignee": {"id": 76}, "organization": {"id": 672}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 302, "owner": {"id": 420}, "assignee": {"id": 36}, "organization": {"id": 147}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 413}, "assignee": {"id": 17}, "organization": {"id": 632}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 333, "owner": {"id": 463}, "assignee": {"id": 22}, "organization": {"id": 147}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "owner": {"id": 415}, "assignee": {"id": 77}, "organization": {"id": 694}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "owner": {"id": 450}, "assignee": {"id": 90}, "organization": {"id": 103}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "owner": {"id": 422}, "assignee": {"id": 19}, "organization": {"id": 637}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "owner": {"id": 445}, "assignee": {"id": 2}, "organization": {"id": 174}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 365, "owner": {"id": 423}, "assignee": {"id": 63}, "organization": {"id": 662}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 321, "owner": {"id": 432}, "assignee": {"id": 43}, "organization": {"id": 153}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 449}, "assignee": {"id": 72}, "organization": {"id": 677}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"id": 370, "owner": {"id": 447}, "assignee": {"id": 81}, "organization": {"id": 108}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 481}, "assignee": {"id": 57}, "organization": {"id": 645}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 362, "owner": {"id": 415}, "assignee": {"id": 62}, "organization": {"id": 191}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "owner": {"id": 433}, "assignee": {"id": 11}, "organization": {"id": 697}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 439}, "assignee": {"id": 58}, "organization": {"id": 135}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "owner": {"id": 496}, "assignee": {"id": 53}, "organization": {"id": 692}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "owner": {"id": 466}, "assignee": {"id": 82}, "organization": {"id": 150}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 448}, "assignee": {"id": 47}, "organization": {"id": 615}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 61, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 380, "owner": {"id": 496}, "assignee": {"id": 61}, "organization": {"id": 169}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 346, "owner": {"id": 461}, "assignee": {"id": 38}, "organization": {"id": 651}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 374, "owner": {"id": 462}, "assignee": {"id": 28}, "organization": {"id": 122}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 321, "owner": {"id": 462}, "assignee": {"id": 522}, "organization": {"id": 661}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 393, "owner": {"id": 484}, "assignee": {"id": 566}, "organization": {"id": 133}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 407}, "assignee": {"id": 524}, "organization": {"id": 675}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "owner": {"id": 446}, "assignee": {"id": 538}, "organization": {"id": 189}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "owner": {"id": 432}, "assignee": {"id": 515}, "organization": {"id": 650}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "owner": {"id": 435}, "assignee": {"id": 574}, "organization": {"id": 129}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 383, "owner": {"id": 429}, "assignee": {"id": 521}, "organization": {"id": 670}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 315, "owner": {"id": 464}, "assignee": {"id": 579}, "organization": {"id": 165}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 370, "owner": {"id": 459}, "assignee": {"id": 538}, "organization": {"id": 682}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 331, "owner": {"id": 477}, "assignee": {"id": 530}, "organization": {"id": 126}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 458}, "assignee": {"id": 545}, "organization": {"id": 624}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 381, "owner": {"id": 465}, "assignee": {"id": 566}, "organization": {"id": 102}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 447}, "assignee": {"id": 585}, "organization": {"id": 640}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "owner": {"id": 429}, "assignee": {"id": 581}, "organization": {"id": 111}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "owner": {"id": 492}, "assignee": {"id": 537}, "organization": {"id": 620}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "owner": {"id": 452}, "assignee": {"id": 555}, "organization": {"id": 198}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 300, "owner": {"id": 422}, "assignee": {"id": 565}, "organization": {"id": 688}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 300, "owner": {"id": 489}, "assignee": {"id": 587}, "organization": {"id": 182}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 445}, "assignee": {"id": 529}, "organization": {"id": 605}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"id": 379, "owner": {"id": 487}, "assignee": {"id": 523}, "organization": {"id": 101}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 300, "owner": {"id": 463}, "assignee": {"id": 541}, "organization": {"id": 673}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 341, "owner": {"id": 400}, "assignee": {"id": 510}, "organization": {"id": 199}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "owner": {"id": 474}, "assignee": {"id": 540}, "organization": {"id": 618}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "owner": {"id": 442}, "assignee": {"id": 586}, "organization": {"id": 161}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "owner": {"id": 461}, "assignee": {"id": 575}, "organization": {"id": 674}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 444}, "assignee": {"id": 574}, "organization": {"id": 186}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 443}, "assignee": {"id": 549}, "organization": {"id": 655}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 388, "owner": {"id": 436}, "assignee": {"id": 560}, "organization": {"id": 119}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 377, "owner": {"id": 436}, "assignee": {"id": 545}, "organization": {"id": 684}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 384, "owner": {"id": 454}, "assignee": {"id": 550}, "organization": {"id": 188}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 459}, "assignee": {"id": 575}, "organization": {"id": 623}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 315, "owner": {"id": 454}, "assignee": {"id": 544}, "organization": {"id": 164}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "owner": {"id": 464}, "assignee": {"id": 500}, "organization": {"id": 649}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "owner": {"id": 497}, "assignee": {"id": 532}, "organization": {"id": 174}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 400}, "assignee": {"id": 596}, "organization": {"id": 667}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "owner": {"id": 476}, "assignee": {"id": 515}, "organization": {"id": 188}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 389, "owner": {"id": 450}, "assignee": {"id": 527}, "organization": {"id": 664}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 347, "owner": {"id": 404}, "assignee": {"id": 516}, "organization": {"id": 157}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 444}, "assignee": {"id": 538}, "organization": {"id": 666}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 450}, "assignee": {"id": 598}, "organization": {"id": 159}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 305, "owner": {"id": 411}, "assignee": {"id": 558}, "organization": {"id": 672}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 61, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 380, "owner": {"id": 482}, "assignee": {"id": 577}, "organization": {"id": 134}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "owner": {"id": 458}, "assignee": {"id": 569}, "organization": {"id": 609}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "owner": {"id": 406}, "assignee": {"id": 511}, "organization": {"id": 117}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "owner": {"id": 476}, "assignee": {"id": 579}, "organization": {"id": 614}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 348, "owner": {"id": 436}, "assignee": {"id": 511}, "organization": {"id": 193}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 480}, "assignee": {"id": 554}, "organization": {"id": 620}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 457}, "assignee": {"id": 567}, "organization": {"id": 131}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 321, "owner": {"id": 410}, "assignee": {"id": 513}, "organization": {"id": 625}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 321, "owner": {"id": 438}, "assignee": {"id": 591}, "organization": {"id": 115}}} -} - -test_scope_IMPORT_DATASET_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": null}, "resource": {"id": 363, "owner": {"id": 71}, "assignee": {"id": 508}, "organization": {"id": 614}}} -} - -test_scope_IMPORT_DATASET_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": null}, "resource": {"id": 336, "owner": {"id": 68}, "assignee": {"id": 529}, "organization": {"id": 608}}} -} - -test_scope_IMPORT_DATASET_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": null}, "resource": {"id": 337, "owner": {"id": 60}, "assignee": {"id": 546}, "organization": {"id": 600}}} -} - -test_scope_IMPORT_DATASET_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": null}, "resource": {"id": 313, "owner": {"id": 12}, "assignee": {"id": 585}, "organization": {"id": 697}}} -} - -test_scope_IMPORT_DATASET_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": null}, "resource": {"id": 340, "owner": {"id": 47}, "assignee": {"id": 524}, "organization": {"id": 645}}} -} - -test_scope_IMPORT_DATASET_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": null}, "resource": {"id": 354, "owner": {"id": 413}, "assignee": {"id": 39}, "organization": {"id": 614}}} -} - -test_scope_IMPORT_DATASET_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": null}, "resource": {"id": 309, "owner": {"id": 476}, "assignee": {"id": 65}, "organization": {"id": 617}}} -} - -test_scope_IMPORT_DATASET_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": null}, "resource": {"id": 303, "owner": {"id": 499}, "assignee": {"id": 50}, "organization": {"id": 625}}} -} - -test_scope_IMPORT_DATASET_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": null}, "resource": {"id": 343, "owner": {"id": 483}, "assignee": {"id": 1}, "organization": {"id": 613}}} -} - -test_scope_IMPORT_DATASET_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": null}, "resource": {"id": 358, "owner": {"id": 458}, "assignee": {"id": 37}, "organization": {"id": 618}}} -} - -test_scope_IMPORT_DATASET_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": null}, "resource": {"id": 321, "owner": {"id": 495}, "assignee": {"id": 561}, "organization": {"id": 617}}} -} - -test_scope_IMPORT_DATASET_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": null}, "resource": {"id": 314, "owner": {"id": 418}, "assignee": {"id": 527}, "organization": {"id": 617}}} -} - -test_scope_IMPORT_DATASET_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": null}, "resource": {"id": 317, "owner": {"id": 461}, "assignee": {"id": 513}, "organization": {"id": 679}}} -} - -test_scope_IMPORT_DATASET_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": null}, "resource": {"id": 360, "owner": {"id": 433}, "assignee": {"id": 520}, "organization": {"id": 648}}} -} - -test_scope_IMPORT_DATASET_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": null}, "resource": {"id": 312, "owner": {"id": 462}, "assignee": {"id": 520}, "organization": {"id": 635}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_same_org_FALSE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 397, "owner": {"id": 54}, "assignee": {"id": 524}, "organization": {"id": 617}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 21}, "assignee": {"id": 568}, "organization": {"id": 125}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_same_org_FALSE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "owner": {"id": 21}, "assignee": {"id": 598}, "organization": {"id": 685}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "owner": {"id": 65}, "assignee": {"id": 562}, "organization": {"id": 193}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_FALSE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "owner": {"id": 79}, "assignee": {"id": 520}, "organization": {"id": 642}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 41}, "assignee": {"id": 535}, "organization": {"id": 176}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_same_org_FALSE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 378, "owner": {"id": 84}, "assignee": {"id": 557}, "organization": {"id": 692}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 29}, "assignee": {"id": 525}, "organization": {"id": 180}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_same_org_FALSE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 329, "owner": {"id": 45}, "assignee": {"id": 569}, "organization": {"id": 610}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 43}, "assignee": {"id": 560}, "organization": {"id": 145}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 3}, "assignee": {"id": 596}, "organization": {"id": 609}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 393, "owner": {"id": 44}, "assignee": {"id": 523}, "organization": {"id": 100}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "owner": {"id": 70}, "assignee": {"id": 561}, "organization": {"id": 620}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "owner": {"id": 39}, "assignee": {"id": 573}, "organization": {"id": 168}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "owner": {"id": 99}, "assignee": {"id": 531}, "organization": {"id": 610}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 15}, "assignee": {"id": 545}, "organization": {"id": 145}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 369, "owner": {"id": 43}, "assignee": {"id": 522}, "organization": {"id": 672}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 99}, "assignee": {"id": 534}, "organization": {"id": 180}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 394, "owner": {"id": 27}, "assignee": {"id": 582}, "organization": {"id": 623}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 336, "owner": {"id": 78}, "assignee": {"id": 572}, "organization": {"id": 115}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 362, "owner": {"id": 33}, "assignee": {"id": 553}, "organization": {"id": 605}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 316, "owner": {"id": 93}, "assignee": {"id": 535}, "organization": {"id": 137}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 2}, "assignee": {"id": 581}, "organization": {"id": 660}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 358, "owner": {"id": 28}, "assignee": {"id": 564}, "organization": {"id": 127}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 369, "owner": {"id": 3}, "assignee": {"id": 597}, "organization": {"id": 613}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 78}, "assignee": {"id": 531}, "organization": {"id": 161}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 363, "owner": {"id": 74}, "assignee": {"id": 579}, "organization": {"id": 609}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 365, "owner": {"id": 15}, "assignee": {"id": 549}, "organization": {"id": 189}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 95}, "assignee": {"id": 551}, "organization": {"id": 645}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 311, "owner": {"id": 65}, "assignee": {"id": 514}, "organization": {"id": 142}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 328, "owner": {"id": 48}, "assignee": {"id": 555}, "organization": {"id": 676}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 366, "owner": {"id": 22}, "assignee": {"id": 531}, "organization": {"id": 183}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "owner": {"id": 37}, "assignee": {"id": 526}, "organization": {"id": 659}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 71}, "assignee": {"id": 515}, "organization": {"id": 121}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 43}, "assignee": {"id": 582}, "organization": {"id": 606}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "owner": {"id": 42}, "assignee": {"id": 505}, "organization": {"id": 162}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 361, "owner": {"id": 37}, "assignee": {"id": 565}, "organization": {"id": 637}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 12}, "assignee": {"id": 558}, "organization": {"id": 170}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 20}, "assignee": {"id": 541}, "organization": {"id": 676}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 88}, "assignee": {"id": 555}, "organization": {"id": 154}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 351, "owner": {"id": 30}, "assignee": {"id": 532}, "organization": {"id": 600}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_same_org_TRUE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 18}, "assignee": {"id": 540}, "organization": {"id": 114}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "owner": {"id": 99}, "assignee": {"id": 550}, "organization": {"id": 675}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_same_org_TRUE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "owner": {"id": 80}, "assignee": {"id": 515}, "organization": {"id": 159}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "owner": {"id": 32}, "assignee": {"id": 593}, "organization": {"id": 618}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "owner": {"id": 66}, "assignee": {"id": 516}, "organization": {"id": 168}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 337, "owner": {"id": 43}, "assignee": {"id": 509}, "organization": {"id": 650}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 311, "owner": {"id": 24}, "assignee": {"id": 589}, "organization": {"id": 166}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 341, "owner": {"id": 6}, "assignee": {"id": 502}, "organization": {"id": 643}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 338, "owner": {"id": 83}, "assignee": {"id": 509}, "organization": {"id": 179}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_same_org_FALSE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 397, "owner": {"id": 420}, "assignee": {"id": 90}, "organization": {"id": 694}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 302, "owner": {"id": 427}, "assignee": {"id": 6}, "organization": {"id": 146}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_FALSE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "owner": {"id": 451}, "assignee": {"id": 91}, "organization": {"id": 646}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "owner": {"id": 407}, "assignee": {"id": 97}, "organization": {"id": 199}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_FALSE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 429}, "assignee": {"id": 35}, "organization": {"id": 628}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 426}, "assignee": {"id": 84}, "organization": {"id": 127}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_same_org_FALSE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 304, "owner": {"id": 470}, "assignee": {"id": 8}, "organization": {"id": 611}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 340, "owner": {"id": 472}, "assignee": {"id": 52}, "organization": {"id": 102}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_same_org_FALSE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 328, "owner": {"id": 407}, "assignee": {"id": 72}, "organization": {"id": 646}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 370, "owner": {"id": 488}, "assignee": {"id": 84}, "organization": {"id": 142}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 350, "owner": {"id": 498}, "assignee": {"id": 3}, "organization": {"id": 683}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 462}, "assignee": {"id": 20}, "organization": {"id": 164}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 448}, "assignee": {"id": 76}, "organization": {"id": 643}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 405}, "assignee": {"id": 42}, "organization": {"id": 149}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "owner": {"id": 414}, "assignee": {"id": 37}, "organization": {"id": 646}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "owner": {"id": 448}, "assignee": {"id": 2}, "organization": {"id": 184}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 388, "owner": {"id": 474}, "assignee": {"id": 58}, "organization": {"id": 678}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 381, "owner": {"id": 444}, "assignee": {"id": 96}, "organization": {"id": 102}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 447}, "assignee": {"id": 90}, "organization": {"id": 677}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 416}, "assignee": {"id": 65}, "organization": {"id": 132}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 308, "owner": {"id": 492}, "assignee": {"id": 7}, "organization": {"id": 625}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 335, "owner": {"id": 414}, "assignee": {"id": 69}, "organization": {"id": 108}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "owner": {"id": 439}, "assignee": {"id": 22}, "organization": {"id": 631}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 419}, "assignee": {"id": 86}, "organization": {"id": 119}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 485}, "assignee": {"id": 46}, "organization": {"id": 620}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "owner": {"id": 439}, "assignee": {"id": 24}, "organization": {"id": 135}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 473}, "assignee": {"id": 63}, "organization": {"id": 609}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 436}, "assignee": {"id": 69}, "organization": {"id": 171}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 301, "owner": {"id": 473}, "assignee": {"id": 49}, "organization": {"id": 662}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 317, "owner": {"id": 483}, "assignee": {"id": 32}, "organization": {"id": 132}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 453}, "assignee": {"id": 91}, "organization": {"id": 629}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 434}, "assignee": {"id": 94}, "organization": {"id": 152}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "owner": {"id": 460}, "assignee": {"id": 28}, "organization": {"id": 622}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "owner": {"id": 467}, "assignee": {"id": 93}, "organization": {"id": 119}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 407}, "assignee": {"id": 57}, "organization": {"id": 637}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "owner": {"id": 410}, "assignee": {"id": 72}, "organization": {"id": 116}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 342, "owner": {"id": 498}, "assignee": {"id": 6}, "organization": {"id": 674}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 425}, "assignee": {"id": 82}, "organization": {"id": 160}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 414}, "assignee": {"id": 55}, "organization": {"id": 676}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 388, "owner": {"id": 453}, "assignee": {"id": 49}, "organization": {"id": 116}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 353, "owner": {"id": 405}, "assignee": {"id": 98}, "organization": {"id": 647}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_same_org_TRUE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 315, "owner": {"id": 424}, "assignee": {"id": 9}, "organization": {"id": 173}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "owner": {"id": 456}, "assignee": {"id": 66}, "organization": {"id": 663}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_same_org_TRUE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "owner": {"id": 430}, "assignee": {"id": 38}, "organization": {"id": 113}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 417}, "assignee": {"id": 29}, "organization": {"id": 632}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "owner": {"id": 418}, "assignee": {"id": 1}, "organization": {"id": 167}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 315, "owner": {"id": 402}, "assignee": {"id": 73}, "organization": {"id": 641}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 320, "owner": {"id": 462}, "assignee": {"id": 5}, "organization": {"id": 182}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 380, "owner": {"id": 454}, "assignee": {"id": 2}, "organization": {"id": 621}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 302, "owner": {"id": 434}, "assignee": {"id": 68}, "organization": {"id": 145}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_same_org_FALSE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 441}, "assignee": {"id": 533}, "organization": {"id": 650}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 309, "owner": {"id": 429}, "assignee": {"id": 516}, "organization": {"id": 170}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_FALSE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "owner": {"id": 440}, "assignee": {"id": 540}, "organization": {"id": 664}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 440}, "assignee": {"id": 506}, "organization": {"id": 126}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_FALSE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "owner": {"id": 414}, "assignee": {"id": 539}, "organization": {"id": 607}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 410}, "assignee": {"id": 502}, "organization": {"id": 189}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_same_org_FALSE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 395, "owner": {"id": 455}, "assignee": {"id": 574}, "organization": {"id": 645}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 439}, "assignee": {"id": 580}, "organization": {"id": 100}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_same_org_FALSE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 313, "owner": {"id": 423}, "assignee": {"id": 577}, "organization": {"id": 614}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 344, "owner": {"id": 403}, "assignee": {"id": 552}, "organization": {"id": 165}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 395, "owner": {"id": 419}, "assignee": {"id": 511}, "organization": {"id": 675}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 343, "owner": {"id": 431}, "assignee": {"id": 535}, "organization": {"id": 187}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "owner": {"id": 440}, "assignee": {"id": 582}, "organization": {"id": 620}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "owner": {"id": 493}, "assignee": {"id": 561}, "organization": {"id": 115}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 348, "owner": {"id": 409}, "assignee": {"id": 536}, "organization": {"id": 639}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 94, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 343, "owner": {"id": 493}, "assignee": {"id": 552}, "organization": {"id": 129}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 384, "owner": {"id": 422}, "assignee": {"id": 599}, "organization": {"id": 669}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 343, "owner": {"id": 475}, "assignee": {"id": 576}, "organization": {"id": 172}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 337, "owner": {"id": 429}, "assignee": {"id": 571}, "organization": {"id": 610}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 327, "owner": {"id": 485}, "assignee": {"id": 520}, "organization": {"id": 116}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 336, "owner": {"id": 486}, "assignee": {"id": 508}, "organization": {"id": 635}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 330, "owner": {"id": 440}, "assignee": {"id": 547}, "organization": {"id": 121}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "owner": {"id": 480}, "assignee": {"id": 525}, "organization": {"id": 601}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 421}, "assignee": {"id": 534}, "organization": {"id": 108}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 492}, "assignee": {"id": 588}, "organization": {"id": 619}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "owner": {"id": 471}, "assignee": {"id": 555}, "organization": {"id": 104}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 370, "owner": {"id": 438}, "assignee": {"id": 584}, "organization": {"id": 650}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 384, "owner": {"id": 476}, "assignee": {"id": 516}, "organization": {"id": 103}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 392, "owner": {"id": 457}, "assignee": {"id": 537}, "organization": {"id": 611}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 361, "owner": {"id": 462}, "assignee": {"id": 558}, "organization": {"id": 151}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 351, "owner": {"id": 446}, "assignee": {"id": 548}, "organization": {"id": 611}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_same_org_TRUE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 302, "owner": {"id": 424}, "assignee": {"id": 560}, "organization": {"id": 164}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "owner": {"id": 429}, "assignee": {"id": 594}, "organization": {"id": 623}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_same_org_TRUE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 419}, "assignee": {"id": 578}, "organization": {"id": 115}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "owner": {"id": 425}, "assignee": {"id": 585}, "organization": {"id": 668}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 390, "owner": {"id": 452}, "assignee": {"id": 533}, "organization": {"id": 195}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 341, "owner": {"id": 437}, "assignee": {"id": 577}, "organization": {"id": 605}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 330, "owner": {"id": 417}, "assignee": {"id": 513}, "organization": {"id": 161}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 489}, "assignee": {"id": 506}, "organization": {"id": 614}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 382, "owner": {"id": 415}, "assignee": {"id": 568}, "organization": {"id": 189}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 377, "owner": {"id": 441}, "assignee": {"id": 544}, "organization": {"id": 648}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_same_org_TRUE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 349, "owner": {"id": 484}, "assignee": {"id": 581}, "organization": {"id": 108}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 301, "owner": {"id": 463}, "assignee": {"id": 563}, "organization": {"id": 652}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_same_org_TRUE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "owner": {"id": 447}, "assignee": {"id": 504}, "organization": {"id": 117}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "owner": {"id": 432}, "assignee": {"id": 539}, "organization": {"id": 603}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 427}, "assignee": {"id": 516}, "organization": {"id": 149}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 471}, "assignee": {"id": 508}, "organization": {"id": 663}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 311, "owner": {"id": 444}, "assignee": {"id": 521}, "organization": {"id": 181}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 354, "owner": {"id": 434}, "assignee": {"id": 535}, "organization": {"id": 687}}} -} - -test_scope_IMPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "import:dataset", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 447}, "assignee": {"id": 536}, "organization": {"id": 157}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 89}, "assignee": {"id": 518}, "organization": {"id": 653}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 34}, "assignee": {"id": 549}, "organization": {"id": 606}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 94}, "assignee": {"id": 530}, "organization": {"id": 624}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 9}, "assignee": {"id": 560}, "organization": {"id": 626}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 65}, "assignee": {"id": 569}, "organization": {"id": 668}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 83}, "assignee": {"id": 544}, "organization": {"id": 628}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 96}, "assignee": {"id": 520}, "organization": {"id": 688}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 19}, "assignee": {"id": 520}, "organization": {"id": 672}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 10}, "assignee": {"id": 550}, "organization": {"id": 687}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 87}, "assignee": {"id": 520}, "organization": {"id": 619}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 57}, "assignee": {"id": 579}, "organization": {"id": 681}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 88}, "assignee": {"id": 557}, "organization": {"id": 622}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 90}, "assignee": {"id": 558}, "organization": {"id": 638}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 99}, "assignee": {"id": 557}, "organization": {"id": 683}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 58}, "assignee": {"id": 598}, "organization": {"id": 617}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 1}, "assignee": {"id": 581}, "organization": {"id": 694}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 34}, "assignee": {"id": 520}, "organization": {"id": 679}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 91}, "assignee": {"id": 563}, "organization": {"id": 649}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 92}, "assignee": {"id": 514}, "organization": {"id": 612}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 72}, "assignee": {"id": 513}, "organization": {"id": 681}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 464}, "assignee": {"id": 34}, "organization": {"id": 617}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 440}, "assignee": {"id": 86}, "organization": {"id": 646}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 433}, "assignee": {"id": 1}, "organization": {"id": 663}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 493}, "assignee": {"id": 90}, "organization": {"id": 614}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 424}, "assignee": {"id": 53}, "organization": {"id": 642}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 482}, "assignee": {"id": 78}, "organization": {"id": 660}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 451}, "assignee": {"id": 58}, "organization": {"id": 662}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 428}, "assignee": {"id": 42}, "organization": {"id": 676}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 470}, "assignee": {"id": 98}, "organization": {"id": 638}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 426}, "assignee": {"id": 20}, "organization": {"id": 641}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 472}, "assignee": {"id": 23}, "organization": {"id": 695}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 410}, "assignee": {"id": 23}, "organization": {"id": 668}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 430}, "assignee": {"id": 92}, "organization": {"id": 697}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 422}, "assignee": {"id": 43}, "organization": {"id": 615}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 439}, "assignee": {"id": 8}, "organization": {"id": 640}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 441}, "assignee": {"id": 75}, "organization": {"id": 621}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 415}, "assignee": {"id": 23}, "organization": {"id": 644}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 415}, "assignee": {"id": 4}, "organization": {"id": 629}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 414}, "assignee": {"id": 89}, "organization": {"id": 679}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 404}, "assignee": {"id": 17}, "organization": {"id": 667}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 416}, "assignee": {"id": 548}, "organization": {"id": 634}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 420}, "assignee": {"id": 580}, "organization": {"id": 630}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 497}, "assignee": {"id": 508}, "organization": {"id": 684}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 429}, "assignee": {"id": 585}, "organization": {"id": 699}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 481}, "assignee": {"id": 569}, "organization": {"id": 643}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 497}, "assignee": {"id": 595}, "organization": {"id": 689}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 454}, "assignee": {"id": 512}, "organization": {"id": 609}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 451}, "assignee": {"id": 537}, "organization": {"id": 610}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 470}, "assignee": {"id": 516}, "organization": {"id": 665}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 463}, "assignee": {"id": 575}, "organization": {"id": 689}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 436}, "assignee": {"id": 587}, "organization": {"id": 671}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 482}, "assignee": {"id": 519}, "organization": {"id": 600}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 408}, "assignee": {"id": 560}, "organization": {"id": 607}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 67, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 468}, "assignee": {"id": 524}, "organization": {"id": 651}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 483}, "assignee": {"id": 573}, "organization": {"id": 627}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 429}, "assignee": {"id": 574}, "organization": {"id": 686}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 455}, "assignee": {"id": 501}, "organization": {"id": 673}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 478}, "assignee": {"id": 557}, "organization": {"id": 616}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 428}, "assignee": {"id": 554}, "organization": {"id": 603}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 496}, "assignee": {"id": 557}, "organization": {"id": 611}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 37}, "assignee": {"id": 513}, "organization": {"id": 685}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_1_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 44}, "assignee": {"id": 597}, "organization": {"id": 685}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 28}, "assignee": {"id": 576}, "organization": {"id": 682}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 2}, "assignee": {"id": 586}, "organization": {"id": 621}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 2}, "assignee": {"id": 542}, "organization": {"id": 118}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 89}, "assignee": {"id": 500}, "organization": {"id": 148}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 82}, "assignee": {"id": 534}, "organization": {"id": 106}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 28}, "assignee": {"id": 569}, "organization": {"id": 196}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 14}, "assignee": {"id": 586}, "organization": {"id": 624}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_1_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 43}, "assignee": {"id": 564}, "organization": {"id": 624}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 67}, "assignee": {"id": 501}, "organization": {"id": 612}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 50}, "assignee": {"id": 526}, "organization": {"id": 665}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 41}, "assignee": {"id": 577}, "organization": {"id": 117}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 90}, "assignee": {"id": 561}, "organization": {"id": 123}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 11}, "assignee": {"id": 507}, "organization": {"id": 142}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 93}, "assignee": {"id": 596}, "organization": {"id": 119}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 1}, "assignee": {"id": 576}, "organization": {"id": 663}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_1_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 40}, "assignee": {"id": 577}, "organization": {"id": 685}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 93}, "assignee": {"id": 574}, "organization": {"id": 662}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 41}, "assignee": {"id": 557}, "organization": {"id": 669}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 16}, "assignee": {"id": 502}, "organization": {"id": 181}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 38}, "assignee": {"id": 570}, "organization": {"id": 125}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 51}, "assignee": {"id": 531}, "organization": {"id": 169}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 74}, "assignee": {"id": 508}, "organization": {"id": 110}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 25}, "assignee": {"id": 510}, "organization": {"id": 604}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_1_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 3}, "assignee": {"id": 502}, "organization": {"id": 644}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 2}, "assignee": {"id": 506}, "organization": {"id": 663}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 43}, "assignee": {"id": 517}, "organization": {"id": 690}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 78}, "assignee": {"id": 513}, "organization": {"id": 124}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 58}, "assignee": {"id": 529}, "organization": {"id": 181}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 70}, "assignee": {"id": 551}, "organization": {"id": 164}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 16}, "assignee": {"id": 503}, "organization": {"id": 139}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"owner": {"id": 14}, "assignee": {"id": 530}, "organization": {"id": 605}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"owner": {"id": 37}, "assignee": {"id": 567}, "organization": {"id": 636}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"owner": {"id": 94}, "assignee": {"id": 526}, "organization": {"id": 611}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"owner": {"id": 42}, "assignee": {"id": 551}, "organization": {"id": 657}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"owner": {"id": 52}, "assignee": {"id": 596}, "organization": {"id": 194}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"owner": {"id": 85}, "assignee": {"id": 512}, "organization": {"id": 123}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"owner": {"id": 30}, "assignee": {"id": 588}, "organization": {"id": 171}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"owner": {"id": 27}, "assignee": {"id": 575}, "organization": {"id": 157}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 13}, "assignee": {"id": 508}, "organization": {"id": 649}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 47}, "assignee": {"id": 547}, "organization": {"id": 608}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 80}, "assignee": {"id": 526}, "organization": {"id": 603}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 56}, "assignee": {"id": 544}, "organization": {"id": 677}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 61}, "assignee": {"id": 552}, "organization": {"id": 166}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 63}, "assignee": {"id": 519}, "organization": {"id": 183}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 12}, "assignee": {"id": 544}, "organization": {"id": 119}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 90}, "assignee": {"id": 538}, "organization": {"id": 111}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 48}, "assignee": {"id": 526}, "organization": {"id": 643}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 60}, "assignee": {"id": 578}, "organization": {"id": 607}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 67}, "assignee": {"id": 568}, "organization": {"id": 637}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 15}, "assignee": {"id": 587}, "organization": {"id": 688}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 10}, "assignee": {"id": 575}, "organization": {"id": 199}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 25}, "assignee": {"id": 587}, "organization": {"id": 116}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 50}, "assignee": {"id": 527}, "organization": {"id": 197}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 37}, "assignee": {"id": 555}, "organization": {"id": 116}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 11}, "assignee": {"id": 523}, "organization": {"id": 645}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 46}, "assignee": {"id": 503}, "organization": {"id": 659}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 0}, "assignee": {"id": 542}, "organization": {"id": 602}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 75}, "assignee": {"id": 597}, "organization": {"id": 643}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 93}, "assignee": {"id": 503}, "organization": {"id": 188}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 39}, "assignee": {"id": 537}, "organization": {"id": 179}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 32}, "assignee": {"id": 531}, "organization": {"id": 104}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 45}, "assignee": {"id": 596}, "organization": {"id": 131}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 36}, "assignee": {"id": 567}, "organization": {"id": 616}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 13}, "assignee": {"id": 506}, "organization": {"id": 697}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 77}, "assignee": {"id": 565}, "organization": {"id": 675}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 30}, "assignee": {"id": 570}, "organization": {"id": 658}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 38}, "assignee": {"id": 570}, "organization": {"id": 107}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 29}, "assignee": {"id": 522}, "organization": {"id": 174}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 98}, "assignee": {"id": 521}, "organization": {"id": 104}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 99}, "assignee": {"id": 514}, "organization": {"id": 130}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"owner": {"id": 67}, "assignee": {"id": 511}, "organization": {"id": 649}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"owner": {"id": 18}, "assignee": {"id": 514}, "organization": {"id": 644}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"owner": {"id": 53}, "assignee": {"id": 523}, "organization": {"id": 692}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"owner": {"id": 67}, "assignee": {"id": 582}, "organization": {"id": 604}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"owner": {"id": 2}, "assignee": {"id": 523}, "organization": {"id": 160}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"owner": {"id": 95}, "assignee": {"id": 541}, "organization": {"id": 143}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"owner": {"id": 2}, "assignee": {"id": 565}, "organization": {"id": 129}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"owner": {"id": 28}, "assignee": {"id": 532}, "organization": {"id": 163}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 55}, "assignee": {"id": 592}, "organization": {"id": 679}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 78}, "assignee": {"id": 599}, "organization": {"id": 615}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 79}, "assignee": {"id": 594}, "organization": {"id": 641}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 64}, "assignee": {"id": 550}, "organization": {"id": 667}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 8}, "assignee": {"id": 560}, "organization": {"id": 199}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 39}, "assignee": {"id": 574}, "organization": {"id": 127}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 92}, "assignee": {"id": 535}, "organization": {"id": 116}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 76}, "assignee": {"id": 505}, "organization": {"id": 118}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 47}, "assignee": {"id": 597}, "organization": {"id": 694}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 59}, "assignee": {"id": 563}, "organization": {"id": 689}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 64}, "assignee": {"id": 557}, "organization": {"id": 623}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 4}, "assignee": {"id": 568}, "organization": {"id": 683}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 1}, "assignee": {"id": 535}, "organization": {"id": 181}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 45}, "assignee": {"id": 538}, "organization": {"id": 172}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 89}, "assignee": {"id": 569}, "organization": {"id": 123}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 48}, "assignee": {"id": 572}, "organization": {"id": 146}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 46}, "assignee": {"id": 531}, "organization": {"id": 623}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 93}, "assignee": {"id": 585}, "organization": {"id": 642}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 32}, "assignee": {"id": 549}, "organization": {"id": 659}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 51}, "assignee": {"id": 505}, "organization": {"id": 613}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 78}, "assignee": {"id": 500}, "organization": {"id": 110}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 57}, "assignee": {"id": 594}, "organization": {"id": 162}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 31}, "assignee": {"id": 596}, "organization": {"id": 196}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 21}, "assignee": {"id": 519}, "organization": {"id": 146}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 48}, "assignee": {"id": 508}, "organization": {"id": 607}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 43}, "assignee": {"id": 517}, "organization": {"id": 640}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 65}, "assignee": {"id": 551}, "organization": {"id": 602}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 56}, "assignee": {"id": 501}, "organization": {"id": 604}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 95}, "assignee": {"id": 588}, "organization": {"id": 106}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 5}, "assignee": {"id": 572}, "organization": {"id": 160}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 74}, "assignee": {"id": 566}, "organization": {"id": 190}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 60}, "assignee": {"id": 548}, "organization": {"id": 127}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"owner": {"id": 3}, "assignee": {"id": 522}, "organization": {"id": 626}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"owner": {"id": 12}, "assignee": {"id": 535}, "organization": {"id": 680}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"owner": {"id": 82}, "assignee": {"id": 585}, "organization": {"id": 687}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"owner": {"id": 8}, "assignee": {"id": 589}, "organization": {"id": 666}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"owner": {"id": 57}, "assignee": {"id": 589}, "organization": {"id": 135}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"owner": {"id": 60}, "assignee": {"id": 557}, "organization": {"id": 134}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"owner": {"id": 97}, "assignee": {"id": 596}, "organization": {"id": 195}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"owner": {"id": 77}, "assignee": {"id": 563}, "organization": {"id": 179}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 67, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 67}, "assignee": {"id": 501}, "organization": {"id": 696}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 84}, "assignee": {"id": 519}, "organization": {"id": 624}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 50}, "assignee": {"id": 584}, "organization": {"id": 637}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 1}, "assignee": {"id": 532}, "organization": {"id": 605}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 79}, "assignee": {"id": 528}, "organization": {"id": 118}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 28}, "assignee": {"id": 575}, "organization": {"id": 167}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 53}, "assignee": {"id": 576}, "organization": {"id": 130}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 82}, "assignee": {"id": 541}, "organization": {"id": 122}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 71}, "assignee": {"id": 562}, "organization": {"id": 623}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 1}, "assignee": {"id": 513}, "organization": {"id": 660}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 71}, "assignee": {"id": 595}, "organization": {"id": 605}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 5}, "assignee": {"id": 581}, "organization": {"id": 628}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 90}, "assignee": {"id": 599}, "organization": {"id": 118}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 4}, "assignee": {"id": 531}, "organization": {"id": 178}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 62}, "assignee": {"id": 573}, "organization": {"id": 107}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 61}, "assignee": {"id": 547}, "organization": {"id": 168}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 41}, "assignee": {"id": 548}, "organization": {"id": 695}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 69}, "assignee": {"id": 591}, "organization": {"id": 634}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 22}, "assignee": {"id": 587}, "organization": {"id": 620}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 93}, "assignee": {"id": 531}, "organization": {"id": 688}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 60}, "assignee": {"id": 591}, "organization": {"id": 115}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 10}, "assignee": {"id": 540}, "organization": {"id": 102}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 54}, "assignee": {"id": 578}, "organization": {"id": 158}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 70}, "assignee": {"id": 579}, "organization": {"id": 119}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 8}, "assignee": {"id": 584}, "organization": {"id": 679}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 83}, "assignee": {"id": 525}, "organization": {"id": 677}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 57}, "assignee": {"id": 508}, "organization": {"id": 644}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 35}, "assignee": {"id": 546}, "organization": {"id": 695}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 88}, "assignee": {"id": 558}, "organization": {"id": 117}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 2}, "assignee": {"id": 541}, "organization": {"id": 161}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 96}, "assignee": {"id": 523}, "organization": {"id": 130}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 41}, "assignee": {"id": 501}, "organization": {"id": 170}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"owner": {"id": 61}, "assignee": {"id": 517}, "organization": {"id": 697}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"owner": {"id": 57}, "assignee": {"id": 523}, "organization": {"id": 632}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"owner": {"id": 28}, "assignee": {"id": 551}, "organization": {"id": 660}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"owner": {"id": 4}, "assignee": {"id": 503}, "organization": {"id": 612}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"owner": {"id": 88}, "assignee": {"id": 559}, "organization": {"id": 172}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"owner": {"id": 51}, "assignee": {"id": 555}, "organization": {"id": 130}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"owner": {"id": 26}, "assignee": {"id": 521}, "organization": {"id": 110}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"owner": {"id": 13}, "assignee": {"id": 546}, "organization": {"id": 199}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 83}, "assignee": {"id": 517}, "organization": {"id": 663}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 69}, "assignee": {"id": 503}, "organization": {"id": 684}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 23}, "assignee": {"id": 566}, "organization": {"id": 695}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 58}, "assignee": {"id": 502}, "organization": {"id": 601}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 12}, "assignee": {"id": 594}, "organization": {"id": 124}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 75}, "assignee": {"id": 502}, "organization": {"id": 118}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 73}, "assignee": {"id": 515}, "organization": {"id": 151}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 20}, "assignee": {"id": 538}, "organization": {"id": 182}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 95}, "assignee": {"id": 559}, "organization": {"id": 608}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 58}, "assignee": {"id": 587}, "organization": {"id": 665}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 37}, "assignee": {"id": 523}, "organization": {"id": 622}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 11}, "assignee": {"id": 581}, "organization": {"id": 662}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 77}, "assignee": {"id": 541}, "organization": {"id": 157}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 93}, "assignee": {"id": 588}, "organization": {"id": 136}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 96}, "assignee": {"id": 552}, "organization": {"id": 150}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 44}, "assignee": {"id": 528}, "organization": {"id": 185}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 40}, "assignee": {"id": 581}, "organization": {"id": 607}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 30}, "assignee": {"id": 553}, "organization": {"id": 644}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 82}, "assignee": {"id": 538}, "organization": {"id": 697}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 48}, "assignee": {"id": 592}, "organization": {"id": 646}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 28}, "assignee": {"id": 511}, "organization": {"id": 184}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 86}, "assignee": {"id": 506}, "organization": {"id": 172}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 92}, "assignee": {"id": 556}, "organization": {"id": 180}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 10}, "assignee": {"id": 535}, "organization": {"id": 131}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 47}, "assignee": {"id": 576}, "organization": {"id": 621}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 77}, "assignee": {"id": 538}, "organization": {"id": 678}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 21}, "assignee": {"id": 517}, "organization": {"id": 682}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 20}, "assignee": {"id": 580}, "organization": {"id": 618}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 45}, "assignee": {"id": 598}, "organization": {"id": 142}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 49}, "assignee": {"id": 519}, "organization": {"id": 169}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 9}, "assignee": {"id": 555}, "organization": {"id": 110}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 25}, "assignee": {"id": 532}, "organization": {"id": 104}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"owner": {"id": 43}, "assignee": {"id": 576}, "organization": {"id": 627}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"owner": {"id": 3}, "assignee": {"id": 523}, "organization": {"id": 679}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"owner": {"id": 86}, "assignee": {"id": 598}, "organization": {"id": 666}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"owner": {"id": 54}, "assignee": {"id": 543}, "organization": {"id": 633}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"owner": {"id": 11}, "assignee": {"id": 537}, "organization": {"id": 110}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"owner": {"id": 45}, "assignee": {"id": 591}, "organization": {"id": 120}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"owner": {"id": 92}, "assignee": {"id": 531}, "organization": {"id": 140}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"owner": {"id": 51}, "assignee": {"id": 590}, "organization": {"id": 146}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 406}, "assignee": {"id": 85}, "organization": {"id": 659}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_user_num_resources_1_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 499}, "assignee": {"id": 38}, "organization": {"id": 634}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 446}, "assignee": {"id": 17}, "organization": {"id": 623}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 441}, "assignee": {"id": 98}, "organization": {"id": 643}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 436}, "assignee": {"id": 48}, "organization": {"id": 150}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 433}, "assignee": {"id": 50}, "organization": {"id": 175}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 448}, "assignee": {"id": 72}, "organization": {"id": 106}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 422}, "assignee": {"id": 18}, "organization": {"id": 196}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 485}, "assignee": {"id": 35}, "organization": {"id": 688}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_1_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 417}, "assignee": {"id": 74}, "organization": {"id": 695}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 485}, "assignee": {"id": 73}, "organization": {"id": 645}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 412}, "assignee": {"id": 23}, "organization": {"id": 652}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 433}, "assignee": {"id": 69}, "organization": {"id": 121}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 428}, "assignee": {"id": 73}, "organization": {"id": 144}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 405}, "assignee": {"id": 80}, "organization": {"id": 175}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 494}, "assignee": {"id": 75}, "organization": {"id": 158}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 459}, "assignee": {"id": 8}, "organization": {"id": 637}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_1_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 427}, "assignee": {"id": 78}, "organization": {"id": 664}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 411}, "assignee": {"id": 26}, "organization": {"id": 674}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 426}, "assignee": {"id": 22}, "organization": {"id": 611}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 467}, "assignee": {"id": 4}, "organization": {"id": 191}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 433}, "assignee": {"id": 21}, "organization": {"id": 133}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 425}, "assignee": {"id": 25}, "organization": {"id": 140}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 491}, "assignee": {"id": 58}, "organization": {"id": 104}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 466}, "assignee": {"id": 24}, "organization": {"id": 617}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_user_num_resources_1_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 436}, "assignee": {"id": 35}, "organization": {"id": 633}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 451}, "assignee": {"id": 8}, "organization": {"id": 618}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 457}, "assignee": {"id": 49}, "organization": {"id": 689}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 498}, "assignee": {"id": 99}, "organization": {"id": 132}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 478}, "assignee": {"id": 40}, "organization": {"id": 119}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 470}, "assignee": {"id": 44}, "organization": {"id": 154}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 496}, "assignee": {"id": 2}, "organization": {"id": 131}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"owner": {"id": 400}, "assignee": {"id": 86}, "organization": {"id": 682}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"owner": {"id": 468}, "assignee": {"id": 51}, "organization": {"id": 634}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"owner": {"id": 461}, "assignee": {"id": 81}, "organization": {"id": 611}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"owner": {"id": 400}, "assignee": {"id": 80}, "organization": {"id": 699}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"owner": {"id": 402}, "assignee": {"id": 83}, "organization": {"id": 127}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"owner": {"id": 452}, "assignee": {"id": 15}, "organization": {"id": 104}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"owner": {"id": 490}, "assignee": {"id": 33}, "organization": {"id": 117}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"owner": {"id": 472}, "assignee": {"id": 17}, "organization": {"id": 157}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 411}, "assignee": {"id": 92}, "organization": {"id": 682}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 432}, "assignee": {"id": 44}, "organization": {"id": 665}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 438}, "assignee": {"id": 34}, "organization": {"id": 671}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 492}, "assignee": {"id": 55}, "organization": {"id": 667}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 425}, "assignee": {"id": 36}, "organization": {"id": 131}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 491}, "assignee": {"id": 69}, "organization": {"id": 181}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 421}, "assignee": {"id": 9}, "organization": {"id": 108}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 452}, "assignee": {"id": 43}, "organization": {"id": 159}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 94, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 437}, "assignee": {"id": 94}, "organization": {"id": 662}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 411}, "assignee": {"id": 32}, "organization": {"id": 686}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 452}, "assignee": {"id": 23}, "organization": {"id": 601}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 482}, "assignee": {"id": 66}, "organization": {"id": 643}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 432}, "assignee": {"id": 99}, "organization": {"id": 137}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 454}, "assignee": {"id": 69}, "organization": {"id": 179}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 94, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 440}, "assignee": {"id": 94}, "organization": {"id": 197}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 476}, "assignee": {"id": 74}, "organization": {"id": 105}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 31, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 478}, "assignee": {"id": 31}, "organization": {"id": 691}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 493}, "assignee": {"id": 67}, "organization": {"id": 648}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 477}, "assignee": {"id": 20}, "organization": {"id": 697}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 443}, "assignee": {"id": 67}, "organization": {"id": 637}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 482}, "assignee": {"id": 36}, "organization": {"id": 169}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 498}, "assignee": {"id": 73}, "organization": {"id": 167}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 450}, "assignee": {"id": 72}, "organization": {"id": 196}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 486}, "assignee": {"id": 15}, "organization": {"id": 190}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 411}, "assignee": {"id": 98}, "organization": {"id": 699}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 94, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 400}, "assignee": {"id": 94}, "organization": {"id": 675}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 31, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 418}, "assignee": {"id": 31}, "organization": {"id": 611}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 467}, "assignee": {"id": 39}, "organization": {"id": 634}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 422}, "assignee": {"id": 33}, "organization": {"id": 149}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 497}, "assignee": {"id": 68}, "organization": {"id": 112}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 423}, "assignee": {"id": 59}, "organization": {"id": 111}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 411}, "assignee": {"id": 65}, "organization": {"id": 176}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"owner": {"id": 432}, "assignee": {"id": 19}, "organization": {"id": 628}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"owner": {"id": 473}, "assignee": {"id": 41}, "organization": {"id": 656}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"owner": {"id": 469}, "assignee": {"id": 93}, "organization": {"id": 602}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"owner": {"id": 488}, "assignee": {"id": 32}, "organization": {"id": 690}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"owner": {"id": 407}, "assignee": {"id": 33}, "organization": {"id": 157}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"owner": {"id": 409}, "assignee": {"id": 44}, "organization": {"id": 141}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"owner": {"id": 412}, "assignee": {"id": 10}, "organization": {"id": 180}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"owner": {"id": 414}, "assignee": {"id": 67}, "organization": {"id": 132}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 498}, "assignee": {"id": 42}, "organization": {"id": 687}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 465}, "assignee": {"id": 23}, "organization": {"id": 645}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 433}, "assignee": {"id": 38}, "organization": {"id": 665}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 467}, "assignee": {"id": 24}, "organization": {"id": 692}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 491}, "assignee": {"id": 99}, "organization": {"id": 191}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 425}, "assignee": {"id": 33}, "organization": {"id": 190}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 497}, "assignee": {"id": 87}, "organization": {"id": 182}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 447}, "assignee": {"id": 52}, "organization": {"id": 118}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 499}, "assignee": {"id": 24}, "organization": {"id": 602}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 437}, "assignee": {"id": 50}, "organization": {"id": 643}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 71, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 488}, "assignee": {"id": 71}, "organization": {"id": 608}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 438}, "assignee": {"id": 44}, "organization": {"id": 616}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 413}, "assignee": {"id": 48}, "organization": {"id": 121}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 432}, "assignee": {"id": 64}, "organization": {"id": 139}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 427}, "assignee": {"id": 96}, "organization": {"id": 100}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 429}, "assignee": {"id": 72}, "organization": {"id": 189}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 470}, "assignee": {"id": 40}, "organization": {"id": 652}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 483}, "assignee": {"id": 15}, "organization": {"id": 690}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 449}, "assignee": {"id": 25}, "organization": {"id": 624}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 427}, "assignee": {"id": 96}, "organization": {"id": 663}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 414}, "assignee": {"id": 50}, "organization": {"id": 170}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 498}, "assignee": {"id": 99}, "organization": {"id": 100}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 405}, "assignee": {"id": 0}, "organization": {"id": 160}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 401}, "assignee": {"id": 53}, "organization": {"id": 196}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 421}, "assignee": {"id": 66}, "organization": {"id": 663}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 485}, "assignee": {"id": 75}, "organization": {"id": 693}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 422}, "assignee": {"id": 94}, "organization": {"id": 646}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 465}, "assignee": {"id": 27}, "organization": {"id": 635}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 468}, "assignee": {"id": 1}, "organization": {"id": 133}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 411}, "assignee": {"id": 97}, "organization": {"id": 158}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 443}, "assignee": {"id": 81}, "organization": {"id": 163}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 448}, "assignee": {"id": 24}, "organization": {"id": 191}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"owner": {"id": 434}, "assignee": {"id": 63}, "organization": {"id": 647}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"owner": {"id": 452}, "assignee": {"id": 3}, "organization": {"id": 681}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"owner": {"id": 447}, "assignee": {"id": 56}, "organization": {"id": 641}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"owner": {"id": 470}, "assignee": {"id": 89}, "organization": {"id": 600}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"owner": {"id": 496}, "assignee": {"id": 77}, "organization": {"id": 123}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"owner": {"id": 429}, "assignee": {"id": 27}, "organization": {"id": 191}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"owner": {"id": 430}, "assignee": {"id": 99}, "organization": {"id": 153}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"owner": {"id": 420}, "assignee": {"id": 85}, "organization": {"id": 134}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 487}, "assignee": {"id": 9}, "organization": {"id": 607}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 483}, "assignee": {"id": 53}, "organization": {"id": 627}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 462}, "assignee": {"id": 74}, "organization": {"id": 649}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 426}, "assignee": {"id": 92}, "organization": {"id": 622}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 466}, "assignee": {"id": 30}, "organization": {"id": 129}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 497}, "assignee": {"id": 28}, "organization": {"id": 135}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 433}, "assignee": {"id": 57}, "organization": {"id": 148}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 442}, "assignee": {"id": 3}, "organization": {"id": 132}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 427}, "assignee": {"id": 77}, "organization": {"id": 696}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 404}, "assignee": {"id": 47}, "organization": {"id": 682}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 430}, "assignee": {"id": 18}, "organization": {"id": 623}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 468}, "assignee": {"id": 40}, "organization": {"id": 644}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 402}, "assignee": {"id": 2}, "organization": {"id": 129}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 488}, "assignee": {"id": 71}, "organization": {"id": 161}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 24, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 438}, "assignee": {"id": 24}, "organization": {"id": 186}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 459}, "assignee": {"id": 6}, "organization": {"id": 135}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 467}, "assignee": {"id": 13}, "organization": {"id": 666}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 400}, "assignee": {"id": 65}, "organization": {"id": 655}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 417}, "assignee": {"id": 10}, "organization": {"id": 666}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 498}, "assignee": {"id": 27}, "organization": {"id": 677}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 420}, "assignee": {"id": 15}, "organization": {"id": 145}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 415}, "assignee": {"id": 43}, "organization": {"id": 190}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 458}, "assignee": {"id": 84}, "organization": {"id": 135}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 415}, "assignee": {"id": 91}, "organization": {"id": 109}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 478}, "assignee": {"id": 22}, "organization": {"id": 611}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 430}, "assignee": {"id": 73}, "organization": {"id": 619}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 403}, "assignee": {"id": 86}, "organization": {"id": 649}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 415}, "assignee": {"id": 42}, "organization": {"id": 691}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 454}, "assignee": {"id": 87}, "organization": {"id": 197}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 490}, "assignee": {"id": 95}, "organization": {"id": 114}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 499}, "assignee": {"id": 63}, "organization": {"id": 111}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 494}, "assignee": {"id": 17}, "organization": {"id": 167}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"owner": {"id": 414}, "assignee": {"id": 15}, "organization": {"id": 637}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 29, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"owner": {"id": 484}, "assignee": {"id": 29}, "organization": {"id": 663}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"owner": {"id": 429}, "assignee": {"id": 57}, "organization": {"id": 652}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"owner": {"id": 462}, "assignee": {"id": 91}, "organization": {"id": 611}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"owner": {"id": 468}, "assignee": {"id": 87}, "organization": {"id": 169}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"owner": {"id": 438}, "assignee": {"id": 86}, "organization": {"id": 191}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"owner": {"id": 469}, "assignee": {"id": 50}, "organization": {"id": 149}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"owner": {"id": 457}, "assignee": {"id": 27}, "organization": {"id": 130}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 487}, "assignee": {"id": 3}, "organization": {"id": 659}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 408}, "assignee": {"id": 33}, "organization": {"id": 636}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 468}, "assignee": {"id": 22}, "organization": {"id": 618}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 429}, "assignee": {"id": 30}, "organization": {"id": 609}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 451}, "assignee": {"id": 93}, "organization": {"id": 173}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 479}, "assignee": {"id": 60}, "organization": {"id": 195}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 470}, "assignee": {"id": 15}, "organization": {"id": 165}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 19, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 439}, "assignee": {"id": 19}, "organization": {"id": 109}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 50, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 483}, "assignee": {"id": 50}, "organization": {"id": 631}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 489}, "assignee": {"id": 98}, "organization": {"id": 634}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 61, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 460}, "assignee": {"id": 61}, "organization": {"id": 692}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 488}, "assignee": {"id": 64}, "organization": {"id": 662}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 494}, "assignee": {"id": 28}, "organization": {"id": 184}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 442}, "assignee": {"id": 64}, "organization": {"id": 198}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 490}, "assignee": {"id": 2}, "organization": {"id": 174}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 443}, "assignee": {"id": 18}, "organization": {"id": 155}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 457}, "assignee": {"id": 45}, "organization": {"id": 610}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 421}, "assignee": {"id": 70}, "organization": {"id": 699}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 422}, "assignee": {"id": 84}, "organization": {"id": 662}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 401}, "assignee": {"id": 38}, "organization": {"id": 692}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 496}, "assignee": {"id": 22}, "organization": {"id": 123}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 438}, "assignee": {"id": 8}, "organization": {"id": 199}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 479}, "assignee": {"id": 9}, "organization": {"id": 141}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 442}, "assignee": {"id": 58}, "organization": {"id": 168}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 415}, "assignee": {"id": 26}, "organization": {"id": 640}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 455}, "assignee": {"id": 71}, "organization": {"id": 647}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 429}, "assignee": {"id": 64}, "organization": {"id": 616}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 445}, "assignee": {"id": 11}, "organization": {"id": 665}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 467}, "assignee": {"id": 23}, "organization": {"id": 122}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 405}, "assignee": {"id": 11}, "organization": {"id": 169}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 415}, "assignee": {"id": 38}, "organization": {"id": 105}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 61, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 402}, "assignee": {"id": 61}, "organization": {"id": 155}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"owner": {"id": 445}, "assignee": {"id": 48}, "organization": {"id": 606}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"owner": {"id": 423}, "assignee": {"id": 76}, "organization": {"id": 620}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"owner": {"id": 427}, "assignee": {"id": 30}, "organization": {"id": 688}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"owner": {"id": 416}, "assignee": {"id": 3}, "organization": {"id": 610}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"owner": {"id": 496}, "assignee": {"id": 8}, "organization": {"id": 101}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"owner": {"id": 486}, "assignee": {"id": 44}, "organization": {"id": 154}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"owner": {"id": 489}, "assignee": {"id": 46}, "organization": {"id": 140}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"owner": {"id": 497}, "assignee": {"id": 47}, "organization": {"id": 130}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 477}, "assignee": {"id": 531}, "organization": {"id": 690}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_user_num_resources_1_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 444}, "assignee": {"id": 506}, "organization": {"id": 650}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 461}, "assignee": {"id": 505}, "organization": {"id": 617}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 423}, "assignee": {"id": 560}, "organization": {"id": 614}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 402}, "assignee": {"id": 538}, "organization": {"id": 147}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 416}, "assignee": {"id": 516}, "organization": {"id": 135}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 405}, "assignee": {"id": 557}, "organization": {"id": 105}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 444}, "assignee": {"id": 541}, "organization": {"id": 104}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 449}, "assignee": {"id": 555}, "organization": {"id": 693}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_1_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 405}, "assignee": {"id": 558}, "organization": {"id": 640}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 434}, "assignee": {"id": 529}, "organization": {"id": 659}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 462}, "assignee": {"id": 506}, "organization": {"id": 640}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 438}, "assignee": {"id": 531}, "organization": {"id": 108}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 403}, "assignee": {"id": 517}, "organization": {"id": 126}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 472}, "assignee": {"id": 559}, "organization": {"id": 144}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 489}, "assignee": {"id": 584}, "organization": {"id": 194}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 464}, "assignee": {"id": 523}, "organization": {"id": 675}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_1_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 457}, "assignee": {"id": 519}, "organization": {"id": 650}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 452}, "assignee": {"id": 585}, "organization": {"id": 666}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 413}, "assignee": {"id": 559}, "organization": {"id": 641}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 466}, "assignee": {"id": 536}, "organization": {"id": 119}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 459}, "assignee": {"id": 512}, "organization": {"id": 108}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 447}, "assignee": {"id": 574}, "organization": {"id": 160}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 445}, "assignee": {"id": 556}, "organization": {"id": 190}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 494}, "assignee": {"id": 510}, "organization": {"id": 631}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_user_num_resources_1_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 7, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 423}, "assignee": {"id": 550}, "organization": {"id": 677}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 491}, "assignee": {"id": 595}, "organization": {"id": 640}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 403}, "assignee": {"id": 535}, "organization": {"id": 645}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 407}, "assignee": {"id": 556}, "organization": {"id": 139}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 448}, "assignee": {"id": 548}, "organization": {"id": 120}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 448}, "assignee": {"id": 535}, "organization": {"id": 171}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 412}, "assignee": {"id": 550}, "organization": {"id": 129}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"owner": {"id": 447}, "assignee": {"id": 592}, "organization": {"id": 621}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"owner": {"id": 409}, "assignee": {"id": 581}, "organization": {"id": 691}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"owner": {"id": 449}, "assignee": {"id": 562}, "organization": {"id": 659}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "create", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"owner": {"id": 446}, "assignee": {"id": 586}, "organization": {"id": 659}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"owner": {"id": 438}, "assignee": {"id": 559}, "organization": {"id": 125}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"owner": {"id": 451}, "assignee": {"id": 595}, "organization": {"id": 165}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"owner": {"id": 469}, "assignee": {"id": 508}, "organization": {"id": 169}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"owner": {"id": 413}, "assignee": {"id": 539}, "organization": {"id": 148}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 462}, "assignee": {"id": 525}, "organization": {"id": 651}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 459}, "assignee": {"id": 587}, "organization": {"id": 632}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 453}, "assignee": {"id": 566}, "organization": {"id": 600}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 430}, "assignee": {"id": 542}, "organization": {"id": 659}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 481}, "assignee": {"id": 574}, "organization": {"id": 111}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 26, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 488}, "assignee": {"id": 583}, "organization": {"id": 153}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 495}, "assignee": {"id": 507}, "organization": {"id": 161}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 458}, "assignee": {"id": 597}, "organization": {"id": 160}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 446}, "assignee": {"id": 595}, "organization": {"id": 629}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 437}, "assignee": {"id": 552}, "organization": {"id": 680}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 422}, "assignee": {"id": 583}, "organization": {"id": 684}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 94, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 499}, "assignee": {"id": 544}, "organization": {"id": 619}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 465}, "assignee": {"id": 523}, "organization": {"id": 163}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 446}, "assignee": {"id": 560}, "organization": {"id": 186}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 483}, "assignee": {"id": 588}, "organization": {"id": 147}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 465}, "assignee": {"id": 563}, "organization": {"id": 128}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 491}, "assignee": {"id": 569}, "organization": {"id": 656}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 489}, "assignee": {"id": 539}, "organization": {"id": 652}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 464}, "assignee": {"id": 571}, "organization": {"id": 622}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 422}, "assignee": {"id": 589}, "organization": {"id": 642}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 402}, "assignee": {"id": 597}, "organization": {"id": 116}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 474}, "assignee": {"id": 510}, "organization": {"id": 199}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 403}, "assignee": {"id": 552}, "organization": {"id": 129}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 428}, "assignee": {"id": 543}, "organization": {"id": 161}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 436}, "assignee": {"id": 555}, "organization": {"id": 615}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 401}, "assignee": {"id": 533}, "organization": {"id": 621}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 402}, "assignee": {"id": 508}, "organization": {"id": 635}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 495}, "assignee": {"id": 571}, "organization": {"id": 650}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 482}, "assignee": {"id": 566}, "organization": {"id": 156}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 404}, "assignee": {"id": 538}, "organization": {"id": 159}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 421}, "assignee": {"id": 584}, "organization": {"id": 106}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 459}, "assignee": {"id": 592}, "organization": {"id": 187}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"owner": {"id": 400}, "assignee": {"id": 501}, "organization": {"id": 667}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"owner": {"id": 472}, "assignee": {"id": 564}, "organization": {"id": 647}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"owner": {"id": 427}, "assignee": {"id": 565}, "organization": {"id": 646}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"owner": {"id": 477}, "assignee": {"id": 549}, "organization": {"id": 623}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"owner": {"id": 487}, "assignee": {"id": 538}, "organization": {"id": 163}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"owner": {"id": 490}, "assignee": {"id": 597}, "organization": {"id": 121}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"owner": {"id": 408}, "assignee": {"id": 504}, "organization": {"id": 194}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"owner": {"id": 486}, "assignee": {"id": 568}, "organization": {"id": 176}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 467}, "assignee": {"id": 538}, "organization": {"id": 634}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 484}, "assignee": {"id": 516}, "organization": {"id": 668}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 430}, "assignee": {"id": 556}, "organization": {"id": 690}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 466}, "assignee": {"id": 542}, "organization": {"id": 672}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 403}, "assignee": {"id": 566}, "organization": {"id": 157}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 413}, "assignee": {"id": 506}, "organization": {"id": 160}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 463}, "assignee": {"id": 544}, "organization": {"id": 102}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 407}, "assignee": {"id": 565}, "organization": {"id": 138}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 450}, "assignee": {"id": 563}, "organization": {"id": 613}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 410}, "assignee": {"id": 553}, "organization": {"id": 638}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 455}, "assignee": {"id": 531}, "organization": {"id": 625}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 451}, "assignee": {"id": 539}, "organization": {"id": 632}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 468}, "assignee": {"id": 537}, "organization": {"id": 120}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 422}, "assignee": {"id": 552}, "organization": {"id": 100}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 473}, "assignee": {"id": 546}, "organization": {"id": 133}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 402}, "assignee": {"id": 564}, "organization": {"id": 190}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 422}, "assignee": {"id": 593}, "organization": {"id": 676}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 437}, "assignee": {"id": 582}, "organization": {"id": 676}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 481}, "assignee": {"id": 533}, "organization": {"id": 611}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 437}, "assignee": {"id": 525}, "organization": {"id": 607}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 445}, "assignee": {"id": 573}, "organization": {"id": 113}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "create", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 440}, "assignee": {"id": 510}, "organization": {"id": 117}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 461}, "assignee": {"id": 591}, "organization": {"id": 170}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 436}, "assignee": {"id": 511}, "organization": {"id": 196}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 482}, "assignee": {"id": 581}, "organization": {"id": 614}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 468}, "assignee": {"id": 590}, "organization": {"id": 687}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 401}, "assignee": {"id": 509}, "organization": {"id": 634}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 467}, "assignee": {"id": 577}, "organization": {"id": 613}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 478}, "assignee": {"id": 553}, "organization": {"id": 104}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 492}, "assignee": {"id": 552}, "organization": {"id": 191}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 465}, "assignee": {"id": 588}, "organization": {"id": 158}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 454}, "assignee": {"id": 588}, "organization": {"id": 104}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"owner": {"id": 412}, "assignee": {"id": 545}, "organization": {"id": 645}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"owner": {"id": 440}, "assignee": {"id": 517}, "organization": {"id": 615}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"owner": {"id": 480}, "assignee": {"id": 566}, "organization": {"id": 634}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"owner": {"id": 445}, "assignee": {"id": 531}, "organization": {"id": 674}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"owner": {"id": 422}, "assignee": {"id": 525}, "organization": {"id": 195}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"owner": {"id": 430}, "assignee": {"id": 517}, "organization": {"id": 178}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"owner": {"id": 496}, "assignee": {"id": 508}, "organization": {"id": 111}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"owner": {"id": 473}, "assignee": {"id": 513}, "organization": {"id": 144}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 418}, "assignee": {"id": 552}, "organization": {"id": 622}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 430}, "assignee": {"id": 578}, "organization": {"id": 651}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 488}, "assignee": {"id": 581}, "organization": {"id": 605}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 445}, "assignee": {"id": 554}, "organization": {"id": 692}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 432}, "assignee": {"id": 566}, "organization": {"id": 166}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 468}, "assignee": {"id": 504}, "organization": {"id": 146}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 446}, "assignee": {"id": 567}, "organization": {"id": 182}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 461}, "assignee": {"id": 581}, "organization": {"id": 128}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 404}, "assignee": {"id": 593}, "organization": {"id": 672}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 469}, "assignee": {"id": 543}, "organization": {"id": 690}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 401}, "assignee": {"id": 513}, "organization": {"id": 699}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 415}, "assignee": {"id": 510}, "organization": {"id": 641}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 458}, "assignee": {"id": 598}, "organization": {"id": 192}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 478}, "assignee": {"id": 597}, "organization": {"id": 198}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 434}, "assignee": {"id": 537}, "organization": {"id": 109}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 456}, "assignee": {"id": 537}, "organization": {"id": 146}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 426}, "assignee": {"id": 545}, "organization": {"id": 626}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 461}, "assignee": {"id": 563}, "organization": {"id": 635}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 418}, "assignee": {"id": 534}, "organization": {"id": 676}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 412}, "assignee": {"id": 518}, "organization": {"id": 641}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 450}, "assignee": {"id": 539}, "organization": {"id": 131}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 443}, "assignee": {"id": 586}, "organization": {"id": 102}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 490}, "assignee": {"id": 556}, "organization": {"id": 165}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 432}, "assignee": {"id": 524}, "organization": {"id": 188}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 424}, "assignee": {"id": 574}, "organization": {"id": 651}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 431}, "assignee": {"id": 521}, "organization": {"id": 601}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 460}, "assignee": {"id": 520}, "organization": {"id": 614}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 486}, "assignee": {"id": 511}, "organization": {"id": 675}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 452}, "assignee": {"id": 536}, "organization": {"id": 192}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 488}, "assignee": {"id": 539}, "organization": {"id": 170}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 497}, "assignee": {"id": 598}, "organization": {"id": 122}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 421}, "assignee": {"id": 591}, "organization": {"id": 191}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"owner": {"id": 484}, "assignee": {"id": 559}, "organization": {"id": 699}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"owner": {"id": 407}, "assignee": {"id": 537}, "organization": {"id": 632}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"owner": {"id": 459}, "assignee": {"id": 524}, "organization": {"id": 653}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"owner": {"id": 405}, "assignee": {"id": 565}, "organization": {"id": 600}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"owner": {"id": 479}, "assignee": {"id": 520}, "organization": {"id": 116}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"owner": {"id": 434}, "assignee": {"id": 582}, "organization": {"id": 178}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"owner": {"id": 424}, "assignee": {"id": 539}, "organization": {"id": 170}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"owner": {"id": 440}, "assignee": {"id": 521}, "organization": {"id": 167}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 494}, "assignee": {"id": 517}, "organization": {"id": 686}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 497}, "assignee": {"id": 513}, "organization": {"id": 683}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 475}, "assignee": {"id": 505}, "organization": {"id": 606}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 451}, "assignee": {"id": 507}, "organization": {"id": 618}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 19, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 455}, "assignee": {"id": 574}, "organization": {"id": 103}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 441}, "assignee": {"id": 538}, "organization": {"id": 118}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 490}, "assignee": {"id": 579}, "organization": {"id": 191}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 485}, "assignee": {"id": 523}, "organization": {"id": 122}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 462}, "assignee": {"id": 586}, "organization": {"id": 653}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 420}, "assignee": {"id": 596}, "organization": {"id": 657}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 417}, "assignee": {"id": 500}, "organization": {"id": 620}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 465}, "assignee": {"id": 534}, "organization": {"id": 641}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 431}, "assignee": {"id": 590}, "organization": {"id": 125}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 445}, "assignee": {"id": 541}, "organization": {"id": 177}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 416}, "assignee": {"id": 508}, "organization": {"id": 175}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 462}, "assignee": {"id": 547}, "organization": {"id": 123}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 416}, "assignee": {"id": 524}, "organization": {"id": 677}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 498}, "assignee": {"id": 593}, "organization": {"id": 629}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 416}, "assignee": {"id": 569}, "organization": {"id": 631}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 415}, "assignee": {"id": 556}, "organization": {"id": 654}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 448}, "assignee": {"id": 568}, "organization": {"id": 173}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 491}, "assignee": {"id": 543}, "organization": {"id": 167}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 413}, "assignee": {"id": 525}, "organization": {"id": 110}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 435}, "assignee": {"id": 552}, "organization": {"id": 166}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 463}, "assignee": {"id": 529}, "organization": {"id": 617}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 406}, "assignee": {"id": 595}, "organization": {"id": 614}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 487}, "assignee": {"id": 588}, "organization": {"id": 691}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 445}, "assignee": {"id": 549}, "organization": {"id": 679}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 467}, "assignee": {"id": 583}, "organization": {"id": 167}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 459}, "assignee": {"id": 524}, "organization": {"id": 180}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 427}, "assignee": {"id": 564}, "organization": {"id": 118}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 479}, "assignee": {"id": 561}, "organization": {"id": 159}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"owner": {"id": 497}, "assignee": {"id": 547}, "organization": {"id": 660}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"owner": {"id": 453}, "assignee": {"id": 592}, "organization": {"id": 643}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"owner": {"id": 415}, "assignee": {"id": 522}, "organization": {"id": 639}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"owner": {"id": 423}, "assignee": {"id": 573}, "organization": {"id": 683}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"owner": {"id": 461}, "assignee": {"id": 574}, "organization": {"id": 143}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"owner": {"id": 427}, "assignee": {"id": 506}, "organization": {"id": 149}, "user": {"num_resources": 1}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"owner": {"id": 456}, "assignee": {"id": 567}, "organization": {"id": 114}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"owner": {"id": 420}, "assignee": {"id": 587}, "organization": {"id": 113}, "user": {"num_resources": 10}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": null}, "resource": {"id": 385, "owner": {"id": 21}, "assignee": {"id": 541}, "organization": {"id": 628}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": null}, "resource": {"id": 300, "owner": {"id": 32}, "assignee": {"id": 588}, "organization": {"id": 617}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": null}, "resource": {"id": 318, "owner": {"id": 17}, "assignee": {"id": 571}, "organization": {"id": 615}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": null}, "resource": {"id": 394, "owner": {"id": 7}, "assignee": {"id": 575}, "organization": {"id": 638}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": null}, "resource": {"id": 318, "owner": {"id": 68}, "assignee": {"id": 579}, "organization": {"id": 678}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": null}, "resource": {"id": 370, "owner": {"id": 473}, "assignee": {"id": 23}, "organization": {"id": 659}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": null}, "resource": {"id": 326, "owner": {"id": 489}, "assignee": {"id": 87}, "organization": {"id": 605}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": null}, "resource": {"id": 365, "owner": {"id": 402}, "assignee": {"id": 6}, "organization": {"id": 613}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": null}, "resource": {"id": 339, "owner": {"id": 410}, "assignee": {"id": 39}, "organization": {"id": 661}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": null}, "resource": {"id": 349, "owner": {"id": 456}, "assignee": {"id": 80}, "organization": {"id": 602}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": null}, "resource": {"id": 381, "owner": {"id": 470}, "assignee": {"id": 588}, "organization": {"id": 699}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": null}, "resource": {"id": 306, "owner": {"id": 436}, "assignee": {"id": 504}, "organization": {"id": 673}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 90, "privilege": "user"}, "organization": null}, "resource": {"id": 314, "owner": {"id": 486}, "assignee": {"id": 503}, "organization": {"id": 648}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": null}, "resource": {"id": 324, "owner": {"id": 436}, "assignee": {"id": 591}, "organization": {"id": 680}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": null}, "resource": {"id": 353, "owner": {"id": 439}, "assignee": {"id": 553}, "organization": {"id": 619}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 397, "owner": {"id": 53}, "assignee": {"id": 571}, "organization": {"id": 657}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 82}, "assignee": {"id": 584}, "organization": {"id": 168}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "owner": {"id": 46}, "assignee": {"id": 516}, "organization": {"id": 617}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 80}, "assignee": {"id": 544}, "organization": {"id": 195}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 56}, "assignee": {"id": 557}, "organization": {"id": 626}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 77}, "assignee": {"id": 550}, "organization": {"id": 102}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 54}, "assignee": {"id": 564}, "organization": {"id": 611}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 384, "owner": {"id": 20}, "assignee": {"id": 557}, "organization": {"id": 104}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 337, "owner": {"id": 22}, "assignee": {"id": 532}, "organization": {"id": 655}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 371, "owner": {"id": 28}, "assignee": {"id": 545}, "organization": {"id": 160}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 382, "owner": {"id": 6}, "assignee": {"id": 540}, "organization": {"id": 648}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 395, "owner": {"id": 19}, "assignee": {"id": 527}, "organization": {"id": 164}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "owner": {"id": 55}, "assignee": {"id": 574}, "organization": {"id": 632}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "owner": {"id": 11}, "assignee": {"id": 594}, "organization": {"id": 174}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 26, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 26}, "assignee": {"id": 574}, "organization": {"id": 653}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 94, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "owner": {"id": 94}, "assignee": {"id": 575}, "organization": {"id": 160}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 46}, "assignee": {"id": 571}, "organization": {"id": 602}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 300, "owner": {"id": 64}, "assignee": {"id": 508}, "organization": {"id": 135}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 311, "owner": {"id": 74}, "assignee": {"id": 554}, "organization": {"id": 608}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 326, "owner": {"id": 46}, "assignee": {"id": 576}, "organization": {"id": 146}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 357, "owner": {"id": 24}, "assignee": {"id": 531}, "organization": {"id": 618}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 313, "owner": {"id": 53}, "assignee": {"id": 542}, "organization": {"id": 167}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 55}, "assignee": {"id": 593}, "organization": {"id": 604}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "owner": {"id": 72}, "assignee": {"id": 501}, "organization": {"id": 115}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "owner": {"id": 28}, "assignee": {"id": 565}, "organization": {"id": 637}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 65}, "assignee": {"id": 503}, "organization": {"id": 128}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 326, "owner": {"id": 16}, "assignee": {"id": 585}, "organization": {"id": 672}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 94}, "assignee": {"id": 564}, "organization": {"id": 146}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 21}, "assignee": {"id": 535}, "organization": {"id": 663}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"id": 376, "owner": {"id": 8}, "assignee": {"id": 557}, "organization": {"id": 102}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 304, "owner": {"id": 69}, "assignee": {"id": 532}, "organization": {"id": 679}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 309, "owner": {"id": 73}, "assignee": {"id": 590}, "organization": {"id": 184}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 12}, "assignee": {"id": 547}, "organization": {"id": 614}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "owner": {"id": 38}, "assignee": {"id": 561}, "organization": {"id": 166}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "owner": {"id": 45}, "assignee": {"id": 511}, "organization": {"id": 685}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "owner": {"id": 4}, "assignee": {"id": 510}, "organization": {"id": 170}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 373, "owner": {"id": 28}, "assignee": {"id": 521}, "organization": {"id": 608}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 306, "owner": {"id": 12}, "assignee": {"id": 591}, "organization": {"id": 103}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 386, "owner": {"id": 95}, "assignee": {"id": 519}, "organization": {"id": 658}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 300, "owner": {"id": 36}, "assignee": {"id": 545}, "organization": {"id": 107}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 3}, "assignee": {"id": 543}, "organization": {"id": 688}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 68}, "assignee": {"id": 546}, "organization": {"id": 185}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 5}, "assignee": {"id": 508}, "organization": {"id": 688}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 45}, "assignee": {"id": 513}, "organization": {"id": 190}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "owner": {"id": 70}, "assignee": {"id": 505}, "organization": {"id": 695}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "owner": {"id": 44}, "assignee": {"id": 593}, "organization": {"id": 135}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 98}, "assignee": {"id": 567}, "organization": {"id": 616}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 328, "owner": {"id": 43}, "assignee": {"id": 555}, "organization": {"id": 177}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 30}, "assignee": {"id": 501}, "organization": {"id": 696}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 393, "owner": {"id": 98}, "assignee": {"id": 549}, "organization": {"id": 109}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 329, "owner": {"id": 406}, "assignee": {"id": 5}, "organization": {"id": 667}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 363, "owner": {"id": 438}, "assignee": {"id": 78}, "organization": {"id": 136}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "owner": {"id": 423}, "assignee": {"id": 40}, "organization": {"id": 643}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 428}, "assignee": {"id": 10}, "organization": {"id": 150}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 444}, "assignee": {"id": 28}, "organization": {"id": 632}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "owner": {"id": 412}, "assignee": {"id": 55}, "organization": {"id": 199}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 377, "owner": {"id": 438}, "assignee": {"id": 62}, "organization": {"id": 605}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 329, "owner": {"id": 402}, "assignee": {"id": 56}, "organization": {"id": 121}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 429}, "assignee": {"id": 92}, "organization": {"id": 604}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 392, "owner": {"id": 420}, "assignee": {"id": 78}, "organization": {"id": 145}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 334, "owner": {"id": 425}, "assignee": {"id": 1}, "organization": {"id": 699}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 485}, "assignee": {"id": 53}, "organization": {"id": 192}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 425}, "assignee": {"id": 64}, "organization": {"id": 696}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "owner": {"id": 456}, "assignee": {"id": 34}, "organization": {"id": 111}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "owner": {"id": 472}, "assignee": {"id": 10}, "organization": {"id": 689}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 462}, "assignee": {"id": 45}, "organization": {"id": 122}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 472}, "assignee": {"id": 18}, "organization": {"id": 674}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 398, "owner": {"id": 478}, "assignee": {"id": 5}, "organization": {"id": 119}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 355, "owner": {"id": 405}, "assignee": {"id": 9}, "organization": {"id": 698}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 419}, "assignee": {"id": 29}, "organization": {"id": 166}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 336, "owner": {"id": 497}, "assignee": {"id": 23}, "organization": {"id": 600}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 413}, "assignee": {"id": 67}, "organization": {"id": 138}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "owner": {"id": 456}, "assignee": {"id": 51}, "organization": {"id": 646}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 455}, "assignee": {"id": 47}, "organization": {"id": 160}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "owner": {"id": 485}, "assignee": {"id": 18}, "organization": {"id": 609}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 324, "owner": {"id": 419}, "assignee": {"id": 3}, "organization": {"id": 115}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 425}, "assignee": {"id": 14}, "organization": {"id": 697}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 384, "owner": {"id": 468}, "assignee": {"id": 15}, "organization": {"id": 164}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 334, "owner": {"id": 420}, "assignee": {"id": 17}, "organization": {"id": 625}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 379, "owner": {"id": 436}, "assignee": {"id": 0}, "organization": {"id": 147}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 460}, "assignee": {"id": 51}, "organization": {"id": 646}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 314, "owner": {"id": 472}, "assignee": {"id": 52}, "organization": {"id": 145}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 401}, "assignee": {"id": 66}, "organization": {"id": 611}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 470}, "assignee": {"id": 84}, "organization": {"id": 191}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "owner": {"id": 415}, "assignee": {"id": 96}, "organization": {"id": 611}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "owner": {"id": 458}, "assignee": {"id": 99}, "organization": {"id": 157}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 434}, "assignee": {"id": 50}, "organization": {"id": 678}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 355, "owner": {"id": 400}, "assignee": {"id": 22}, "organization": {"id": 150}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 395, "owner": {"id": 477}, "assignee": {"id": 71}, "organization": {"id": 603}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 493}, "assignee": {"id": 84}, "organization": {"id": 127}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 311, "owner": {"id": 484}, "assignee": {"id": 67}, "organization": {"id": 681}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 368, "owner": {"id": 487}, "assignee": {"id": 99}, "organization": {"id": 147}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "owner": {"id": 451}, "assignee": {"id": 63}, "organization": {"id": 672}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "owner": {"id": 499}, "assignee": {"id": 65}, "organization": {"id": 142}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 402}, "assignee": {"id": 82}, "organization": {"id": 671}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 460}, "assignee": {"id": 56}, "organization": {"id": 156}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 324, "owner": {"id": 488}, "assignee": {"id": 40}, "organization": {"id": 612}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 465}, "assignee": {"id": 89}, "organization": {"id": 141}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 308, "owner": {"id": 487}, "assignee": {"id": 69}, "organization": {"id": 687}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 323, "owner": {"id": 484}, "assignee": {"id": 74}, "organization": {"id": 138}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 335, "owner": {"id": 460}, "assignee": {"id": 560}, "organization": {"id": 627}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 434}, "assignee": {"id": 501}, "organization": {"id": 120}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "owner": {"id": 435}, "assignee": {"id": 533}, "organization": {"id": 656}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "owner": {"id": 458}, "assignee": {"id": 556}, "organization": {"id": 118}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 465}, "assignee": {"id": 534}, "organization": {"id": 613}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "owner": {"id": 404}, "assignee": {"id": 506}, "organization": {"id": 145}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 422}, "assignee": {"id": 558}, "organization": {"id": 686}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 466}, "assignee": {"id": 597}, "organization": {"id": 193}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 422}, "assignee": {"id": 562}, "organization": {"id": 678}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 472}, "assignee": {"id": 537}, "organization": {"id": 186}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 374, "owner": {"id": 492}, "assignee": {"id": 576}, "organization": {"id": 689}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"id": 318, "owner": {"id": 439}, "assignee": {"id": 514}, "organization": {"id": 179}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 421}, "assignee": {"id": 565}, "organization": {"id": 687}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "owner": {"id": 463}, "assignee": {"id": 594}, "organization": {"id": 135}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 94, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "owner": {"id": 404}, "assignee": {"id": 528}, "organization": {"id": 679}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 478}, "assignee": {"id": 536}, "organization": {"id": 114}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 367, "owner": {"id": 423}, "assignee": {"id": 583}, "organization": {"id": 619}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 305, "owner": {"id": 456}, "assignee": {"id": 552}, "organization": {"id": 177}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 431}, "assignee": {"id": 527}, "organization": {"id": 663}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 300, "owner": {"id": 424}, "assignee": {"id": 575}, "organization": {"id": 144}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 475}, "assignee": {"id": 535}, "organization": {"id": 674}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 449}, "assignee": {"id": 531}, "organization": {"id": 106}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "owner": {"id": 406}, "assignee": {"id": 558}, "organization": {"id": 670}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 491}, "assignee": {"id": 537}, "organization": {"id": 147}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 19, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 474}, "assignee": {"id": 577}, "organization": {"id": 624}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 380, "owner": {"id": 464}, "assignee": {"id": 599}, "organization": {"id": 112}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 19, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 462}, "assignee": {"id": 585}, "organization": {"id": 697}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 309, "owner": {"id": 407}, "assignee": {"id": 533}, "organization": {"id": 190}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 370, "owner": {"id": 478}, "assignee": {"id": 518}, "organization": {"id": 614}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 418}, "assignee": {"id": 564}, "organization": {"id": 158}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 368, "owner": {"id": 462}, "assignee": {"id": 532}, "organization": {"id": 623}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 371, "owner": {"id": 489}, "assignee": {"id": 505}, "organization": {"id": 198}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 427}, "assignee": {"id": 548}, "organization": {"id": 618}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "owner": {"id": 420}, "assignee": {"id": 504}, "organization": {"id": 179}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 483}, "assignee": {"id": 523}, "organization": {"id": 649}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "owner": {"id": 488}, "assignee": {"id": 548}, "organization": {"id": 162}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 317, "owner": {"id": 474}, "assignee": {"id": 544}, "organization": {"id": 650}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 29, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 325, "owner": {"id": 459}, "assignee": {"id": 549}, "organization": {"id": 116}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 336, "owner": {"id": 471}, "assignee": {"id": 573}, "organization": {"id": 682}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 414}, "assignee": {"id": 582}, "organization": {"id": 107}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 352, "owner": {"id": 486}, "assignee": {"id": 552}, "organization": {"id": 666}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 381, "owner": {"id": 462}, "assignee": {"id": 521}, "organization": {"id": 164}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "owner": {"id": 403}, "assignee": {"id": 550}, "organization": {"id": 648}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "owner": {"id": 498}, "assignee": {"id": 598}, "organization": {"id": 179}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "owner": {"id": 486}, "assignee": {"id": 574}, "organization": {"id": 626}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 482}, "assignee": {"id": 592}, "organization": {"id": 169}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 324, "owner": {"id": 458}, "assignee": {"id": 546}, "organization": {"id": 626}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 305, "owner": {"id": 441}, "assignee": {"id": 538}, "organization": {"id": 179}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 380, "owner": {"id": 451}, "assignee": {"id": 508}, "organization": {"id": 641}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 336, "owner": {"id": 400}, "assignee": {"id": 582}, "organization": {"id": 131}}} -} - -test_scope_UPDATE_DESC_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": null}, "resource": {"id": 345, "owner": {"id": 45}, "assignee": {"id": 533}, "organization": {"id": 632}}} -} - -test_scope_UPDATE_DESC_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": null}, "resource": {"id": 382, "owner": {"id": 14}, "assignee": {"id": 599}, "organization": {"id": 638}}} -} - -test_scope_UPDATE_DESC_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": null}, "resource": {"id": 320, "owner": {"id": 53}, "assignee": {"id": 588}, "organization": {"id": 658}}} -} - -test_scope_UPDATE_DESC_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": null}, "resource": {"id": 357, "owner": {"id": 57}, "assignee": {"id": 537}, "organization": {"id": 685}}} -} - -test_scope_UPDATE_DESC_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": null}, "resource": {"id": 331, "owner": {"id": 44}, "assignee": {"id": 565}, "organization": {"id": 666}}} -} - -test_scope_UPDATE_DESC_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": null}, "resource": {"id": 396, "owner": {"id": 427}, "assignee": {"id": 43}, "organization": {"id": 668}}} -} - -test_scope_UPDATE_DESC_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": null}, "resource": {"id": 382, "owner": {"id": 484}, "assignee": {"id": 33}, "organization": {"id": 665}}} -} - -test_scope_UPDATE_DESC_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": null}, "resource": {"id": 358, "owner": {"id": 422}, "assignee": {"id": 42}, "organization": {"id": 636}}} -} - -test_scope_UPDATE_DESC_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": null}, "resource": {"id": 377, "owner": {"id": 497}, "assignee": {"id": 83}, "organization": {"id": 637}}} -} - -test_scope_UPDATE_DESC_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": null}, "resource": {"id": 343, "owner": {"id": 448}, "assignee": {"id": 54}, "organization": {"id": 649}}} -} - -test_scope_UPDATE_DESC_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": null}, "resource": {"id": 301, "owner": {"id": 434}, "assignee": {"id": 543}, "organization": {"id": 607}}} -} - -test_scope_UPDATE_DESC_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": null}, "resource": {"id": 321, "owner": {"id": 451}, "assignee": {"id": 503}, "organization": {"id": 630}}} -} - -test_scope_UPDATE_DESC_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": null}, "resource": {"id": 304, "owner": {"id": 472}, "assignee": {"id": 581}, "organization": {"id": 677}}} -} - -test_scope_UPDATE_DESC_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": null}, "resource": {"id": 322, "owner": {"id": 427}, "assignee": {"id": 527}, "organization": {"id": 676}}} -} - -test_scope_UPDATE_DESC_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": null}, "resource": {"id": 327, "owner": {"id": 492}, "assignee": {"id": 505}, "organization": {"id": 654}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_same_org_FALSE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 343, "owner": {"id": 11}, "assignee": {"id": 581}, "organization": {"id": 609}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 307, "owner": {"id": 41}, "assignee": {"id": 517}, "organization": {"id": 111}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_same_org_FALSE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 330, "owner": {"id": 79}, "assignee": {"id": 533}, "organization": {"id": 618}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "owner": {"id": 5}, "assignee": {"id": 563}, "organization": {"id": 131}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_FALSE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "owner": {"id": 53}, "assignee": {"id": 565}, "organization": {"id": 697}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "owner": {"id": 44}, "assignee": {"id": 584}, "organization": {"id": 128}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_same_org_FALSE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 8}, "assignee": {"id": 575}, "organization": {"id": 645}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 73}, "assignee": {"id": 589}, "organization": {"id": 152}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_same_org_FALSE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 14}, "assignee": {"id": 594}, "organization": {"id": 664}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 352, "owner": {"id": 39}, "assignee": {"id": 533}, "organization": {"id": 113}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 349, "owner": {"id": 90}, "assignee": {"id": 510}, "organization": {"id": 607}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 371, "owner": {"id": 65}, "assignee": {"id": 557}, "organization": {"id": 175}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "owner": {"id": 62}, "assignee": {"id": 586}, "organization": {"id": 646}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 73}, "assignee": {"id": 575}, "organization": {"id": 163}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 36}, "assignee": {"id": 587}, "organization": {"id": 609}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "owner": {"id": 55}, "assignee": {"id": 531}, "organization": {"id": 153}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 341, "owner": {"id": 66}, "assignee": {"id": 530}, "organization": {"id": 638}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 336, "owner": {"id": 32}, "assignee": {"id": 511}, "organization": {"id": 157}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 382, "owner": {"id": 75}, "assignee": {"id": 595}, "organization": {"id": 676}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 48}, "assignee": {"id": 576}, "organization": {"id": 102}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 73}, "assignee": {"id": 534}, "organization": {"id": 661}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 380, "owner": {"id": 87}, "assignee": {"id": 529}, "organization": {"id": 143}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "owner": {"id": 53}, "assignee": {"id": 532}, "organization": {"id": 697}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "owner": {"id": 33}, "assignee": {"id": 561}, "organization": {"id": 123}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "owner": {"id": 76}, "assignee": {"id": 580}, "organization": {"id": 684}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 348, "owner": {"id": 92}, "assignee": {"id": 531}, "organization": {"id": 145}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 19, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 348, "owner": {"id": 19}, "assignee": {"id": 524}, "organization": {"id": 621}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 24}, "assignee": {"id": 568}, "organization": {"id": 195}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 38}, "assignee": {"id": 582}, "organization": {"id": 636}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 390, "owner": {"id": 87}, "assignee": {"id": 539}, "organization": {"id": 117}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 334, "owner": {"id": 79}, "assignee": {"id": 519}, "organization": {"id": 643}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 66}, "assignee": {"id": 558}, "organization": {"id": 159}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "owner": {"id": 41}, "assignee": {"id": 583}, "organization": {"id": 606}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "owner": {"id": 62}, "assignee": {"id": 543}, "organization": {"id": 145}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "owner": {"id": 83}, "assignee": {"id": 546}, "organization": {"id": 698}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "owner": {"id": 83}, "assignee": {"id": 598}, "organization": {"id": 152}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"id": 366, "owner": {"id": 35}, "assignee": {"id": 549}, "organization": {"id": 626}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 384, "owner": {"id": 87}, "assignee": {"id": 545}, "organization": {"id": 111}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 21}, "assignee": {"id": 592}, "organization": {"id": 646}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"id": 357, "owner": {"id": 91}, "assignee": {"id": 542}, "organization": {"id": 147}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 310, "owner": {"id": 5}, "assignee": {"id": 579}, "organization": {"id": 609}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 84}, "assignee": {"id": 515}, "organization": {"id": 149}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "owner": {"id": 12}, "assignee": {"id": 586}, "organization": {"id": 621}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "owner": {"id": 92}, "assignee": {"id": 533}, "organization": {"id": 126}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "owner": {"id": 23}, "assignee": {"id": 568}, "organization": {"id": 610}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "owner": {"id": 38}, "assignee": {"id": 524}, "organization": {"id": 154}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 355, "owner": {"id": 7}, "assignee": {"id": 522}, "organization": {"id": 670}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 326, "owner": {"id": 38}, "assignee": {"id": 567}, "organization": {"id": 113}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 332, "owner": {"id": 60}, "assignee": {"id": 523}, "organization": {"id": 636}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 397, "owner": {"id": 66}, "assignee": {"id": 502}, "organization": {"id": 125}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_same_org_FALSE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 348, "owner": {"id": 436}, "assignee": {"id": 99}, "organization": {"id": 630}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 392, "owner": {"id": 468}, "assignee": {"id": 30}, "organization": {"id": 144}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_FALSE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "owner": {"id": 434}, "assignee": {"id": 2}, "organization": {"id": 635}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "owner": {"id": 424}, "assignee": {"id": 17}, "organization": {"id": 126}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_FALSE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 380, "owner": {"id": 455}, "assignee": {"id": 61}, "organization": {"id": 619}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 492}, "assignee": {"id": 44}, "organization": {"id": 132}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_same_org_FALSE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 491}, "assignee": {"id": 15}, "organization": {"id": 647}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 389, "owner": {"id": 440}, "assignee": {"id": 55}, "organization": {"id": 191}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_same_org_FALSE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 303, "owner": {"id": 472}, "assignee": {"id": 92}, "organization": {"id": 665}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 338, "owner": {"id": 460}, "assignee": {"id": 1}, "organization": {"id": 149}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 418}, "assignee": {"id": 84}, "organization": {"id": 673}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 403}, "assignee": {"id": 44}, "organization": {"id": 177}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "owner": {"id": 404}, "assignee": {"id": 44}, "organization": {"id": 639}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "owner": {"id": 492}, "assignee": {"id": 98}, "organization": {"id": 135}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "owner": {"id": 412}, "assignee": {"id": 69}, "organization": {"id": 658}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 446}, "assignee": {"id": 78}, "organization": {"id": 176}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 26, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 316, "owner": {"id": 424}, "assignee": {"id": 26}, "organization": {"id": 606}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"id": 303, "owner": {"id": 450}, "assignee": {"id": 64}, "organization": {"id": 179}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 373, "owner": {"id": 477}, "assignee": {"id": 29}, "organization": {"id": 683}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 391, "owner": {"id": 446}, "assignee": {"id": 27}, "organization": {"id": 122}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 309, "owner": {"id": 441}, "assignee": {"id": 10}, "organization": {"id": 637}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 428}, "assignee": {"id": 12}, "organization": {"id": 139}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "owner": {"id": 446}, "assignee": {"id": 89}, "organization": {"id": 668}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "owner": {"id": 429}, "assignee": {"id": 42}, "organization": {"id": 179}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 90, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 340, "owner": {"id": 485}, "assignee": {"id": 90}, "organization": {"id": 688}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "owner": {"id": 436}, "assignee": {"id": 15}, "organization": {"id": 131}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 336, "owner": {"id": 495}, "assignee": {"id": 54}, "organization": {"id": 611}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"id": 382, "owner": {"id": 440}, "assignee": {"id": 81}, "organization": {"id": 163}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 352, "owner": {"id": 466}, "assignee": {"id": 77}, "organization": {"id": 677}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 301, "owner": {"id": 481}, "assignee": {"id": 57}, "organization": {"id": 177}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 450}, "assignee": {"id": 27}, "organization": {"id": 606}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 368, "owner": {"id": 411}, "assignee": {"id": 32}, "organization": {"id": 193}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 447}, "assignee": {"id": 64}, "organization": {"id": 621}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 372, "owner": {"id": 467}, "assignee": {"id": 20}, "organization": {"id": 135}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "owner": {"id": 427}, "assignee": {"id": 63}, "organization": {"id": 605}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 67, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "owner": {"id": 482}, "assignee": {"id": 67}, "organization": {"id": 172}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 353, "owner": {"id": 411}, "assignee": {"id": 28}, "organization": {"id": 615}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 408}, "assignee": {"id": 19}, "organization": {"id": 109}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 308, "owner": {"id": 472}, "assignee": {"id": 87}, "organization": {"id": 603}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 405}, "assignee": {"id": 25}, "organization": {"id": 148}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 392, "owner": {"id": 402}, "assignee": {"id": 21}, "organization": {"id": 612}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 349, "owner": {"id": 432}, "assignee": {"id": 96}, "organization": {"id": 172}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "owner": {"id": 438}, "assignee": {"id": 71}, "organization": {"id": 646}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "owner": {"id": 445}, "assignee": {"id": 73}, "organization": {"id": 190}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "owner": {"id": 422}, "assignee": {"id": 65}, "organization": {"id": 627}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "owner": {"id": 428}, "assignee": {"id": 43}, "organization": {"id": 102}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 370, "owner": {"id": 459}, "assignee": {"id": 23}, "organization": {"id": 600}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 448}, "assignee": {"id": 76}, "organization": {"id": 199}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 497}, "assignee": {"id": 91}, "organization": {"id": 698}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 392, "owner": {"id": 492}, "assignee": {"id": 28}, "organization": {"id": 147}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_same_org_FALSE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 323, "owner": {"id": 463}, "assignee": {"id": 569}, "organization": {"id": 639}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 316, "owner": {"id": 481}, "assignee": {"id": 551}, "organization": {"id": 120}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_FALSE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "owner": {"id": 421}, "assignee": {"id": 541}, "organization": {"id": 608}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 424}, "assignee": {"id": 516}, "organization": {"id": 186}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_FALSE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "owner": {"id": 481}, "assignee": {"id": 546}, "organization": {"id": 615}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 435}, "assignee": {"id": 582}, "organization": {"id": 120}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_same_org_FALSE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 491}, "assignee": {"id": 551}, "organization": {"id": 623}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 414}, "assignee": {"id": 523}, "organization": {"id": 163}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_same_org_FALSE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 302, "owner": {"id": 422}, "assignee": {"id": 516}, "organization": {"id": 691}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 411}, "assignee": {"id": 581}, "organization": {"id": 111}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 319, "owner": {"id": 462}, "assignee": {"id": 567}, "organization": {"id": 609}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 317, "owner": {"id": 422}, "assignee": {"id": 594}, "organization": {"id": 137}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 479}, "assignee": {"id": 543}, "organization": {"id": 695}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "owner": {"id": 417}, "assignee": {"id": 523}, "organization": {"id": 115}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "owner": {"id": 466}, "assignee": {"id": 569}, "organization": {"id": 619}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "owner": {"id": 406}, "assignee": {"id": 587}, "organization": {"id": 106}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 371, "owner": {"id": 404}, "assignee": {"id": 594}, "organization": {"id": 632}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 380, "owner": {"id": 465}, "assignee": {"id": 567}, "organization": {"id": 129}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 386, "owner": {"id": 481}, "assignee": {"id": 507}, "organization": {"id": 657}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 26, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 361, "owner": {"id": 426}, "assignee": {"id": 570}, "organization": {"id": 101}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 351, "owner": {"id": 407}, "assignee": {"id": 593}, "organization": {"id": 661}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 305, "owner": {"id": 412}, "assignee": {"id": 531}, "organization": {"id": 188}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 470}, "assignee": {"id": 569}, "organization": {"id": 697}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "owner": {"id": 458}, "assignee": {"id": 584}, "organization": {"id": 152}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "owner": {"id": 419}, "assignee": {"id": 564}, "organization": {"id": 648}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 414}, "assignee": {"id": 555}, "organization": {"id": 124}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 302, "owner": {"id": 409}, "assignee": {"id": 569}, "organization": {"id": 642}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 306, "owner": {"id": 400}, "assignee": {"id": 507}, "organization": {"id": 185}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 340, "owner": {"id": 413}, "assignee": {"id": 548}, "organization": {"id": 668}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 383, "owner": {"id": 415}, "assignee": {"id": 507}, "organization": {"id": 155}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 384, "owner": {"id": 479}, "assignee": {"id": 548}, "organization": {"id": 653}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 339, "owner": {"id": 486}, "assignee": {"id": 534}, "organization": {"id": 103}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 434}, "assignee": {"id": 577}, "organization": {"id": 655}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 487}, "assignee": {"id": 518}, "organization": {"id": 186}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "owner": {"id": 492}, "assignee": {"id": 559}, "organization": {"id": 651}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "owner": {"id": 428}, "assignee": {"id": 579}, "organization": {"id": 122}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 314, "owner": {"id": 498}, "assignee": {"id": 523}, "organization": {"id": 618}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 333, "owner": {"id": 477}, "assignee": {"id": 506}, "organization": {"id": 116}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 341, "owner": {"id": 468}, "assignee": {"id": 569}, "organization": {"id": 665}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 442}, "assignee": {"id": 522}, "organization": {"id": 156}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 352, "owner": {"id": 498}, "assignee": {"id": 560}, "organization": {"id": 631}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 442}, "assignee": {"id": 541}, "organization": {"id": 103}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "owner": {"id": 485}, "assignee": {"id": 569}, "organization": {"id": 677}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "owner": {"id": 483}, "assignee": {"id": 509}, "organization": {"id": 147}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "owner": {"id": 456}, "assignee": {"id": 584}, "organization": {"id": 692}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 371, "owner": {"id": 468}, "assignee": {"id": 599}, "organization": {"id": 136}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 398, "owner": {"id": 450}, "assignee": {"id": 531}, "organization": {"id": 655}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 436}, "assignee": {"id": 590}, "organization": {"id": 120}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 424}, "assignee": {"id": 574}, "organization": {"id": 681}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 425}, "assignee": {"id": 573}, "organization": {"id": 177}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 63}, "assignee": {"id": 538}, "organization": {"id": 697}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 64}, "assignee": {"id": 526}, "organization": {"id": 670}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 42}, "assignee": {"id": 560}, "organization": {"id": 609}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 30}, "assignee": {"id": 562}, "organization": {"id": 637}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 55}, "assignee": {"id": 592}, "organization": {"id": 615}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 44}, "assignee": {"id": 541}, "organization": {"id": 638}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 42}, "assignee": {"id": 534}, "organization": {"id": 657}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 9}, "assignee": {"id": 572}, "organization": {"id": 600}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 26}, "assignee": {"id": 541}, "organization": {"id": 691}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 21}, "assignee": {"id": 543}, "organization": {"id": 601}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 40}, "assignee": {"id": 556}, "organization": {"id": 669}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 95}, "assignee": {"id": 552}, "organization": {"id": 628}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 14}, "assignee": {"id": 518}, "organization": {"id": 611}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 48}, "assignee": {"id": 523}, "organization": {"id": 695}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 64}, "assignee": {"id": 502}, "organization": {"id": 639}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 79}, "assignee": {"id": 544}, "organization": {"id": 625}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 35}, "assignee": {"id": 511}, "organization": {"id": 604}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 88}, "assignee": {"id": 575}, "organization": {"id": 663}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 3}, "assignee": {"id": 576}, "organization": {"id": 698}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 76}, "assignee": {"id": 551}, "organization": {"id": 638}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 489}, "assignee": {"id": 98}, "organization": {"id": 605}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 498}, "assignee": {"id": 60}, "organization": {"id": 673}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 412}, "assignee": {"id": 35}, "organization": {"id": 649}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 427}, "assignee": {"id": 6}, "organization": {"id": 686}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 407}, "assignee": {"id": 40}, "organization": {"id": 653}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 439}, "assignee": {"id": 51}, "organization": {"id": 625}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 423}, "assignee": {"id": 62}, "organization": {"id": 659}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 481}, "assignee": {"id": 58}, "organization": {"id": 679}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 447}, "assignee": {"id": 51}, "organization": {"id": 600}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 428}, "assignee": {"id": 72}, "organization": {"id": 678}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 412}, "assignee": {"id": 54}, "organization": {"id": 696}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 473}, "assignee": {"id": 8}, "organization": {"id": 697}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 491}, "assignee": {"id": 18}, "organization": {"id": 642}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 434}, "assignee": {"id": 87}, "organization": {"id": 673}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 442}, "assignee": {"id": 0}, "organization": {"id": 614}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 475}, "assignee": {"id": 0}, "organization": {"id": 677}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 431}, "assignee": {"id": 97}, "organization": {"id": 608}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 405}, "assignee": {"id": 47}, "organization": {"id": 647}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 409}, "assignee": {"id": 28}, "organization": {"id": 606}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 442}, "assignee": {"id": 83}, "organization": {"id": 654}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 402}, "assignee": {"id": 525}, "organization": {"id": 683}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 434}, "assignee": {"id": 583}, "organization": {"id": 682}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 488}, "assignee": {"id": 501}, "organization": {"id": 686}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 475}, "assignee": {"id": 586}, "organization": {"id": 604}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 467}, "assignee": {"id": 562}, "organization": {"id": 653}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 419}, "assignee": {"id": 503}, "organization": {"id": 635}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 491}, "assignee": {"id": 525}, "organization": {"id": 651}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 477}, "assignee": {"id": 532}, "organization": {"id": 619}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 488}, "assignee": {"id": 578}, "organization": {"id": 678}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 408}, "assignee": {"id": 535}, "organization": {"id": 681}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 498}, "assignee": {"id": 508}, "organization": {"id": 698}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 473}, "assignee": {"id": 559}, "organization": {"id": 652}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 465}, "assignee": {"id": 547}, "organization": {"id": 639}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 480}, "assignee": {"id": 526}, "organization": {"id": 613}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 480}, "assignee": {"id": 552}, "organization": {"id": 659}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 498}, "assignee": {"id": 550}, "organization": {"id": 600}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 471}, "assignee": {"id": 549}, "organization": {"id": 614}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 446}, "assignee": {"id": 518}, "organization": {"id": 699}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 433}, "assignee": {"id": 549}, "organization": {"id": 603}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 50, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 435}, "assignee": {"id": 527}, "organization": {"id": 698}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 24}, "assignee": {"id": 534}, "organization": {"id": 669}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_1_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 56}, "assignee": {"id": 548}, "organization": {"id": 682}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 5}, "assignee": {"id": 513}, "organization": {"id": 623}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 75}, "assignee": {"id": 586}, "organization": {"id": 642}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 13}, "assignee": {"id": 575}, "organization": {"id": 101}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 71}, "assignee": {"id": 520}, "organization": {"id": 109}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 35}, "assignee": {"id": 557}, "organization": {"id": 103}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 98}, "assignee": {"id": 542}, "organization": {"id": 175}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 64}, "assignee": {"id": 572}, "organization": {"id": 603}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_1_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 98}, "assignee": {"id": 567}, "organization": {"id": 679}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 16}, "assignee": {"id": 518}, "organization": {"id": 696}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 38}, "assignee": {"id": 509}, "organization": {"id": 658}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 10}, "assignee": {"id": 540}, "organization": {"id": 152}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 88}, "assignee": {"id": 588}, "organization": {"id": 144}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 40}, "assignee": {"id": 561}, "organization": {"id": 145}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 1}, "assignee": {"id": 527}, "organization": {"id": 151}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 72}, "assignee": {"id": 539}, "organization": {"id": 656}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_1_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 82}, "assignee": {"id": 507}, "organization": {"id": 600}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 49}, "assignee": {"id": 578}, "organization": {"id": 616}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 32}, "assignee": {"id": 525}, "organization": {"id": 602}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 72}, "assignee": {"id": 557}, "organization": {"id": 105}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 36, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 36}, "assignee": {"id": 507}, "organization": {"id": 131}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 18}, "assignee": {"id": 503}, "organization": {"id": 197}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 81}, "assignee": {"id": 580}, "organization": {"id": 149}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 53}, "assignee": {"id": 566}, "organization": {"id": 695}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_1_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 24}, "assignee": {"id": 517}, "organization": {"id": 620}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 16}, "assignee": {"id": 582}, "organization": {"id": 622}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 88}, "assignee": {"id": 539}, "organization": {"id": 658}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 95}, "assignee": {"id": 585}, "organization": {"id": 104}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 23}, "assignee": {"id": 524}, "organization": {"id": 161}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 10}, "assignee": {"id": 522}, "organization": {"id": 147}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 63}, "assignee": {"id": 566}, "organization": {"id": 193}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"owner": {"id": 62}, "assignee": {"id": 598}, "organization": {"id": 662}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"owner": {"id": 26}, "assignee": {"id": 566}, "organization": {"id": 662}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"owner": {"id": 2}, "assignee": {"id": 515}, "organization": {"id": 627}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"owner": {"id": 48}, "assignee": {"id": 582}, "organization": {"id": 649}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"owner": {"id": 66}, "assignee": {"id": 586}, "organization": {"id": 151}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"owner": {"id": 78}, "assignee": {"id": 536}, "organization": {"id": 180}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"owner": {"id": 23}, "assignee": {"id": 570}, "organization": {"id": 179}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"owner": {"id": 45}, "assignee": {"id": 524}, "organization": {"id": 167}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 18}, "assignee": {"id": 562}, "organization": {"id": 670}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 91}, "assignee": {"id": 515}, "organization": {"id": 620}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 54}, "assignee": {"id": 521}, "organization": {"id": 692}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 23}, "assignee": {"id": 591}, "organization": {"id": 647}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 70}, "assignee": {"id": 512}, "organization": {"id": 161}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 56}, "assignee": {"id": 571}, "organization": {"id": 141}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 63}, "assignee": {"id": 547}, "organization": {"id": 148}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 90}, "assignee": {"id": 582}, "organization": {"id": 151}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 38}, "assignee": {"id": 577}, "organization": {"id": 697}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 98}, "assignee": {"id": 569}, "organization": {"id": 643}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 93}, "assignee": {"id": 502}, "organization": {"id": 656}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 9}, "assignee": {"id": 514}, "organization": {"id": 699}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 91}, "assignee": {"id": 543}, "organization": {"id": 160}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 76}, "assignee": {"id": 535}, "organization": {"id": 117}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 30}, "assignee": {"id": 515}, "organization": {"id": 121}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 8}, "assignee": {"id": 574}, "organization": {"id": 133}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 67}, "assignee": {"id": 506}, "organization": {"id": 605}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 64}, "assignee": {"id": 500}, "organization": {"id": 684}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 3}, "assignee": {"id": 530}, "organization": {"id": 660}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 58}, "assignee": {"id": 554}, "organization": {"id": 627}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 56}, "assignee": {"id": 556}, "organization": {"id": 181}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 50}, "assignee": {"id": 594}, "organization": {"id": 148}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 37}, "assignee": {"id": 586}, "organization": {"id": 167}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 87}, "assignee": {"id": 573}, "organization": {"id": 198}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 99}, "assignee": {"id": 525}, "organization": {"id": 623}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 2}, "assignee": {"id": 598}, "organization": {"id": 633}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 32}, "assignee": {"id": 520}, "organization": {"id": 668}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 84}, "assignee": {"id": 595}, "organization": {"id": 643}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 5}, "assignee": {"id": 564}, "organization": {"id": 164}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 50}, "assignee": {"id": 598}, "organization": {"id": 116}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 22}, "assignee": {"id": 528}, "organization": {"id": 120}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 35}, "assignee": {"id": 514}, "organization": {"id": 145}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"owner": {"id": 82}, "assignee": {"id": 572}, "organization": {"id": 636}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"owner": {"id": 49}, "assignee": {"id": 548}, "organization": {"id": 675}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"owner": {"id": 98}, "assignee": {"id": 521}, "organization": {"id": 640}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"owner": {"id": 43}, "assignee": {"id": 526}, "organization": {"id": 665}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"owner": {"id": 28}, "assignee": {"id": 545}, "organization": {"id": 126}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"owner": {"id": 98}, "assignee": {"id": 585}, "organization": {"id": 177}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"owner": {"id": 54}, "assignee": {"id": 586}, "organization": {"id": 124}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"owner": {"id": 97}, "assignee": {"id": 572}, "organization": {"id": 178}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 73}, "assignee": {"id": 594}, "organization": {"id": 642}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 58}, "assignee": {"id": 575}, "organization": {"id": 612}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 70}, "assignee": {"id": 594}, "organization": {"id": 676}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 0}, "assignee": {"id": 539}, "organization": {"id": 643}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 66}, "assignee": {"id": 516}, "organization": {"id": 192}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 41}, "assignee": {"id": 536}, "organization": {"id": 100}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 86}, "assignee": {"id": 506}, "organization": {"id": 130}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 65}, "assignee": {"id": 524}, "organization": {"id": 106}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 70}, "assignee": {"id": 522}, "organization": {"id": 642}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 35}, "assignee": {"id": 502}, "organization": {"id": 604}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 46}, "assignee": {"id": 506}, "organization": {"id": 606}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 33}, "assignee": {"id": 584}, "organization": {"id": 612}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 72}, "assignee": {"id": 573}, "organization": {"id": 127}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 80}, "assignee": {"id": 535}, "organization": {"id": 162}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 37}, "assignee": {"id": 576}, "organization": {"id": 151}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 28}, "assignee": {"id": 597}, "organization": {"id": 190}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 41}, "assignee": {"id": 530}, "organization": {"id": 668}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 28}, "assignee": {"id": 544}, "organization": {"id": 613}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 39}, "assignee": {"id": 523}, "organization": {"id": 669}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 74}, "assignee": {"id": 569}, "organization": {"id": 688}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 7}, "assignee": {"id": 563}, "organization": {"id": 177}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 96}, "assignee": {"id": 556}, "organization": {"id": 137}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 36}, "assignee": {"id": 530}, "organization": {"id": 162}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 39}, "assignee": {"id": 542}, "organization": {"id": 193}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 29}, "assignee": {"id": 565}, "organization": {"id": 681}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 48}, "assignee": {"id": 545}, "organization": {"id": 666}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 33}, "assignee": {"id": 586}, "organization": {"id": 602}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 91}, "assignee": {"id": 562}, "organization": {"id": 687}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 44}, "assignee": {"id": 568}, "organization": {"id": 190}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 94}, "assignee": {"id": 515}, "organization": {"id": 189}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 34}, "assignee": {"id": 527}, "organization": {"id": 195}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 83}, "assignee": {"id": 546}, "organization": {"id": 181}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"owner": {"id": 18}, "assignee": {"id": 584}, "organization": {"id": 618}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"owner": {"id": 13}, "assignee": {"id": 521}, "organization": {"id": 675}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"owner": {"id": 65}, "assignee": {"id": 546}, "organization": {"id": 653}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"owner": {"id": 69}, "assignee": {"id": 566}, "organization": {"id": 628}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"owner": {"id": 28}, "assignee": {"id": 570}, "organization": {"id": 180}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"owner": {"id": 49}, "assignee": {"id": 501}, "organization": {"id": 109}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"owner": {"id": 65}, "assignee": {"id": 540}, "organization": {"id": 185}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"owner": {"id": 14}, "assignee": {"id": 526}, "organization": {"id": 153}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 98}, "assignee": {"id": 571}, "organization": {"id": 680}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 56}, "assignee": {"id": 583}, "organization": {"id": 634}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 11}, "assignee": {"id": 574}, "organization": {"id": 667}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 87}, "assignee": {"id": 517}, "organization": {"id": 632}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 32}, "assignee": {"id": 595}, "organization": {"id": 111}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 62}, "assignee": {"id": 553}, "organization": {"id": 187}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 80}, "assignee": {"id": 524}, "organization": {"id": 148}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 75}, "assignee": {"id": 531}, "organization": {"id": 127}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 47}, "assignee": {"id": 534}, "organization": {"id": 683}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 16}, "assignee": {"id": 574}, "organization": {"id": 672}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 77}, "assignee": {"id": 547}, "organization": {"id": 608}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 43}, "assignee": {"id": 569}, "organization": {"id": 621}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 85}, "assignee": {"id": 549}, "organization": {"id": 162}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 53}, "assignee": {"id": 582}, "organization": {"id": 157}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 69}, "assignee": {"id": 566}, "organization": {"id": 152}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 68}, "assignee": {"id": 519}, "organization": {"id": 198}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 81}, "assignee": {"id": 558}, "organization": {"id": 619}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 78}, "assignee": {"id": 501}, "organization": {"id": 692}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 42}, "assignee": {"id": 539}, "organization": {"id": 635}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 90}, "assignee": {"id": 572}, "organization": {"id": 601}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 23}, "assignee": {"id": 578}, "organization": {"id": 167}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 61}, "assignee": {"id": 549}, "organization": {"id": 146}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 11}, "assignee": {"id": 535}, "organization": {"id": 133}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 5}, "assignee": {"id": 530}, "organization": {"id": 130}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 13}, "assignee": {"id": 548}, "organization": {"id": 615}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 61}, "assignee": {"id": 595}, "organization": {"id": 610}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 90}, "assignee": {"id": 530}, "organization": {"id": 677}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 46}, "assignee": {"id": 546}, "organization": {"id": 693}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 71}, "assignee": {"id": 542}, "organization": {"id": 116}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 46}, "assignee": {"id": 566}, "organization": {"id": 194}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 88}, "assignee": {"id": 556}, "organization": {"id": 111}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 16}, "assignee": {"id": 528}, "organization": {"id": 162}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"owner": {"id": 30}, "assignee": {"id": 595}, "organization": {"id": 654}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"owner": {"id": 80}, "assignee": {"id": 510}, "organization": {"id": 668}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"owner": {"id": 5}, "assignee": {"id": 572}, "organization": {"id": 688}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"owner": {"id": 99}, "assignee": {"id": 538}, "organization": {"id": 660}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"owner": {"id": 94}, "assignee": {"id": 566}, "organization": {"id": 102}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"owner": {"id": 14}, "assignee": {"id": 546}, "organization": {"id": 187}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"owner": {"id": 28}, "assignee": {"id": 550}, "organization": {"id": 175}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"owner": {"id": 19}, "assignee": {"id": 518}, "organization": {"id": 108}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 75}, "assignee": {"id": 509}, "organization": {"id": 650}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 78}, "assignee": {"id": 551}, "organization": {"id": 691}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 84}, "assignee": {"id": 547}, "organization": {"id": 696}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 33}, "assignee": {"id": 577}, "organization": {"id": 665}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 2}, "assignee": {"id": 590}, "organization": {"id": 150}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 36}, "assignee": {"id": 527}, "organization": {"id": 137}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 97}, "assignee": {"id": 542}, "organization": {"id": 152}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 8}, "assignee": {"id": 525}, "organization": {"id": 123}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 11}, "assignee": {"id": 506}, "organization": {"id": 619}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 78}, "assignee": {"id": 544}, "organization": {"id": 605}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 36}, "assignee": {"id": 529}, "organization": {"id": 650}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 52}, "assignee": {"id": 597}, "organization": {"id": 668}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 39}, "assignee": {"id": 517}, "organization": {"id": 113}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 13}, "assignee": {"id": 565}, "organization": {"id": 162}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 11}, "assignee": {"id": 526}, "organization": {"id": 181}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 93}, "assignee": {"id": 577}, "organization": {"id": 133}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 74}, "assignee": {"id": 585}, "organization": {"id": 664}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 81}, "assignee": {"id": 583}, "organization": {"id": 691}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 81}, "assignee": {"id": 562}, "organization": {"id": 685}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 45}, "assignee": {"id": 563}, "organization": {"id": 662}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 48}, "assignee": {"id": 567}, "organization": {"id": 105}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 85}, "assignee": {"id": 526}, "organization": {"id": 128}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 70}, "assignee": {"id": 518}, "organization": {"id": 161}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 8}, "assignee": {"id": 558}, "organization": {"id": 132}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 15}, "assignee": {"id": 529}, "organization": {"id": 667}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 29}, "assignee": {"id": 583}, "organization": {"id": 662}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 70}, "assignee": {"id": 527}, "organization": {"id": 606}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 65}, "assignee": {"id": 589}, "organization": {"id": 612}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 89}, "assignee": {"id": 517}, "organization": {"id": 166}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 27}, "assignee": {"id": 547}, "organization": {"id": 116}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 26}, "assignee": {"id": 521}, "organization": {"id": 141}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 0}, "assignee": {"id": 517}, "organization": {"id": 128}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"owner": {"id": 46}, "assignee": {"id": 553}, "organization": {"id": 634}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"owner": {"id": 44}, "assignee": {"id": 504}, "organization": {"id": 682}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"owner": {"id": 43}, "assignee": {"id": 574}, "organization": {"id": 654}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"owner": {"id": 62}, "assignee": {"id": 534}, "organization": {"id": 683}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"owner": {"id": 44}, "assignee": {"id": 529}, "organization": {"id": 183}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"owner": {"id": 83}, "assignee": {"id": 588}, "organization": {"id": 128}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"owner": {"id": 37}, "assignee": {"id": 516}, "organization": {"id": 175}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"owner": {"id": 17}, "assignee": {"id": 552}, "organization": {"id": 109}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 400}, "assignee": {"id": 96}, "organization": {"id": 656}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_user_num_resources_1_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 446}, "assignee": {"id": 6}, "organization": {"id": 635}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 402}, "assignee": {"id": 14}, "organization": {"id": 615}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 436}, "assignee": {"id": 11}, "organization": {"id": 659}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 485}, "assignee": {"id": 53}, "organization": {"id": 139}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 457}, "assignee": {"id": 89}, "organization": {"id": 195}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 411}, "assignee": {"id": 11}, "organization": {"id": 167}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 438}, "assignee": {"id": 87}, "organization": {"id": 179}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 409}, "assignee": {"id": 93}, "organization": {"id": 673}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_1_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 466}, "assignee": {"id": 72}, "organization": {"id": 615}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 480}, "assignee": {"id": 95}, "organization": {"id": 687}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 470}, "assignee": {"id": 48}, "organization": {"id": 629}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 448}, "assignee": {"id": 50}, "organization": {"id": 176}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 436}, "assignee": {"id": 85}, "organization": {"id": 112}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 494}, "assignee": {"id": 6}, "organization": {"id": 157}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 410}, "assignee": {"id": 10}, "organization": {"id": 121}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 475}, "assignee": {"id": 30}, "organization": {"id": 618}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_1_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 407}, "assignee": {"id": 77}, "organization": {"id": 695}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 433}, "assignee": {"id": 67}, "organization": {"id": 676}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 453}, "assignee": {"id": 82}, "organization": {"id": 661}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 430}, "assignee": {"id": 92}, "organization": {"id": 186}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 471}, "assignee": {"id": 98}, "organization": {"id": 108}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 447}, "assignee": {"id": 39}, "organization": {"id": 159}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 483}, "assignee": {"id": 57}, "organization": {"id": 147}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 416}, "assignee": {"id": 65}, "organization": {"id": 618}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_user_num_resources_1_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 483}, "assignee": {"id": 32}, "organization": {"id": 691}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 439}, "assignee": {"id": 48}, "organization": {"id": 697}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 404}, "assignee": {"id": 78}, "organization": {"id": 630}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 410}, "assignee": {"id": 47}, "organization": {"id": 174}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 417}, "assignee": {"id": 69}, "organization": {"id": 136}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 400}, "assignee": {"id": 49}, "organization": {"id": 195}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 477}, "assignee": {"id": 27}, "organization": {"id": 194}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"owner": {"id": 409}, "assignee": {"id": 61}, "organization": {"id": 616}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"owner": {"id": 488}, "assignee": {"id": 18}, "organization": {"id": 668}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"owner": {"id": 473}, "assignee": {"id": 51}, "organization": {"id": 640}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"owner": {"id": 493}, "assignee": {"id": 49}, "organization": {"id": 639}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"owner": {"id": 443}, "assignee": {"id": 19}, "organization": {"id": 121}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"owner": {"id": 428}, "assignee": {"id": 77}, "organization": {"id": 194}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"owner": {"id": 402}, "assignee": {"id": 75}, "organization": {"id": 182}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 36, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"owner": {"id": 493}, "assignee": {"id": 36}, "organization": {"id": 101}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 470}, "assignee": {"id": 15}, "organization": {"id": 695}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 456}, "assignee": {"id": 82}, "organization": {"id": 624}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 496}, "assignee": {"id": 54}, "organization": {"id": 636}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 450}, "assignee": {"id": 51}, "organization": {"id": 674}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 495}, "assignee": {"id": 92}, "organization": {"id": 194}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 406}, "assignee": {"id": 63}, "organization": {"id": 196}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 479}, "assignee": {"id": 74}, "organization": {"id": 181}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 421}, "assignee": {"id": 58}, "organization": {"id": 181}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 465}, "assignee": {"id": 10}, "organization": {"id": 600}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 479}, "assignee": {"id": 83}, "organization": {"id": 649}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 481}, "assignee": {"id": 54}, "organization": {"id": 671}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 432}, "assignee": {"id": 90}, "organization": {"id": 632}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 456}, "assignee": {"id": 88}, "organization": {"id": 183}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 418}, "assignee": {"id": 42}, "organization": {"id": 137}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 451}, "assignee": {"id": 11}, "organization": {"id": 180}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 400}, "assignee": {"id": 43}, "organization": {"id": 110}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 408}, "assignee": {"id": 27}, "organization": {"id": 615}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 401}, "assignee": {"id": 73}, "organization": {"id": 609}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 425}, "assignee": {"id": 82}, "organization": {"id": 679}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 410}, "assignee": {"id": 29}, "organization": {"id": 699}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 494}, "assignee": {"id": 29}, "organization": {"id": 191}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 465}, "assignee": {"id": 10}, "organization": {"id": 120}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 484}, "assignee": {"id": 36}, "organization": {"id": 167}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 487}, "assignee": {"id": 54}, "organization": {"id": 146}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 433}, "assignee": {"id": 58}, "organization": {"id": 687}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 491}, "assignee": {"id": 61}, "organization": {"id": 670}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 418}, "assignee": {"id": 28}, "organization": {"id": 680}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 469}, "assignee": {"id": 82}, "organization": {"id": 663}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 492}, "assignee": {"id": 99}, "organization": {"id": 140}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 447}, "assignee": {"id": 19}, "organization": {"id": 158}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 413}, "assignee": {"id": 14}, "organization": {"id": 106}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 476}, "assignee": {"id": 84}, "organization": {"id": 160}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"owner": {"id": 470}, "assignee": {"id": 84}, "organization": {"id": 659}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"owner": {"id": 434}, "assignee": {"id": 30}, "organization": {"id": 693}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"owner": {"id": 444}, "assignee": {"id": 38}, "organization": {"id": 661}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"owner": {"id": 490}, "assignee": {"id": 8}, "organization": {"id": 654}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"owner": {"id": 487}, "assignee": {"id": 70}, "organization": {"id": 173}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"owner": {"id": 454}, "assignee": {"id": 48}, "organization": {"id": 172}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 31, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"owner": {"id": 404}, "assignee": {"id": 31}, "organization": {"id": 127}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"owner": {"id": 499}, "assignee": {"id": 71}, "organization": {"id": 152}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 431}, "assignee": {"id": 36}, "organization": {"id": 655}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 491}, "assignee": {"id": 18}, "organization": {"id": 615}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 400}, "assignee": {"id": 95}, "organization": {"id": 604}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 490}, "assignee": {"id": 48}, "organization": {"id": 612}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 450}, "assignee": {"id": 94}, "organization": {"id": 130}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 484}, "assignee": {"id": 35}, "organization": {"id": 184}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 465}, "assignee": {"id": 18}, "organization": {"id": 190}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 496}, "assignee": {"id": 30}, "organization": {"id": 131}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 465}, "assignee": {"id": 3}, "organization": {"id": 669}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 490}, "assignee": {"id": 63}, "organization": {"id": 676}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 459}, "assignee": {"id": 10}, "organization": {"id": 658}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 453}, "assignee": {"id": 18}, "organization": {"id": 619}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 449}, "assignee": {"id": 35}, "organization": {"id": 118}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 448}, "assignee": {"id": 96}, "organization": {"id": 162}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 432}, "assignee": {"id": 15}, "organization": {"id": 195}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 427}, "assignee": {"id": 48}, "organization": {"id": 156}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 463}, "assignee": {"id": 37}, "organization": {"id": 631}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 405}, "assignee": {"id": 94}, "organization": {"id": 663}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 484}, "assignee": {"id": 56}, "organization": {"id": 643}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 424}, "assignee": {"id": 47}, "organization": {"id": 682}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 441}, "assignee": {"id": 40}, "organization": {"id": 170}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 405}, "assignee": {"id": 49}, "organization": {"id": 121}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 492}, "assignee": {"id": 66}, "organization": {"id": 109}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 404}, "assignee": {"id": 18}, "organization": {"id": 173}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 469}, "assignee": {"id": 41}, "organization": {"id": 686}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 437}, "assignee": {"id": 83}, "organization": {"id": 601}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 479}, "assignee": {"id": 10}, "organization": {"id": 659}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 450}, "assignee": {"id": 94}, "organization": {"id": 614}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 456}, "assignee": {"id": 62}, "organization": {"id": 181}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 463}, "assignee": {"id": 16}, "organization": {"id": 190}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 440}, "assignee": {"id": 59}, "organization": {"id": 183}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 447}, "assignee": {"id": 80}, "organization": {"id": 134}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"owner": {"id": 470}, "assignee": {"id": 79}, "organization": {"id": 620}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 19, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"owner": {"id": 487}, "assignee": {"id": 19}, "organization": {"id": 641}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 90, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"owner": {"id": 444}, "assignee": {"id": 90}, "organization": {"id": 679}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"owner": {"id": 428}, "assignee": {"id": 81}, "organization": {"id": 634}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"owner": {"id": 400}, "assignee": {"id": 57}, "organization": {"id": 199}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"owner": {"id": 425}, "assignee": {"id": 31}, "organization": {"id": 125}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"owner": {"id": 410}, "assignee": {"id": 67}, "organization": {"id": 136}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"owner": {"id": 450}, "assignee": {"id": 5}, "organization": {"id": 108}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 439}, "assignee": {"id": 56}, "organization": {"id": 664}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 409}, "assignee": {"id": 71}, "organization": {"id": 606}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 479}, "assignee": {"id": 79}, "organization": {"id": 642}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 492}, "assignee": {"id": 13}, "organization": {"id": 629}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 422}, "assignee": {"id": 69}, "organization": {"id": 120}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 476}, "assignee": {"id": 8}, "organization": {"id": 110}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 24, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 467}, "assignee": {"id": 24}, "organization": {"id": 175}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 434}, "assignee": {"id": 55}, "organization": {"id": 138}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 456}, "assignee": {"id": 27}, "organization": {"id": 651}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 476}, "assignee": {"id": 53}, "organization": {"id": 665}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 452}, "assignee": {"id": 58}, "organization": {"id": 667}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 424}, "assignee": {"id": 35}, "organization": {"id": 634}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 474}, "assignee": {"id": 88}, "organization": {"id": 140}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 496}, "assignee": {"id": 71}, "organization": {"id": 129}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 471}, "assignee": {"id": 70}, "organization": {"id": 166}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 415}, "assignee": {"id": 76}, "organization": {"id": 143}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 436}, "assignee": {"id": 9}, "organization": {"id": 672}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 400}, "assignee": {"id": 87}, "organization": {"id": 655}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 442}, "assignee": {"id": 20}, "organization": {"id": 674}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 439}, "assignee": {"id": 83}, "organization": {"id": 628}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 476}, "assignee": {"id": 19}, "organization": {"id": 102}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 471}, "assignee": {"id": 21}, "organization": {"id": 149}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 463}, "assignee": {"id": 5}, "organization": {"id": 180}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 430}, "assignee": {"id": 95}, "organization": {"id": 180}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 475}, "assignee": {"id": 46}, "organization": {"id": 681}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 463}, "assignee": {"id": 87}, "organization": {"id": 648}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 440}, "assignee": {"id": 0}, "organization": {"id": 675}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 467}, "assignee": {"id": 84}, "organization": {"id": 698}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 438}, "assignee": {"id": 8}, "organization": {"id": 118}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 458}, "assignee": {"id": 59}, "organization": {"id": 140}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 427}, "assignee": {"id": 97}, "organization": {"id": 150}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 476}, "assignee": {"id": 89}, "organization": {"id": 144}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"owner": {"id": 435}, "assignee": {"id": 41}, "organization": {"id": 654}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"owner": {"id": 409}, "assignee": {"id": 33}, "organization": {"id": 617}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"owner": {"id": 441}, "assignee": {"id": 26}, "organization": {"id": 646}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"owner": {"id": 430}, "assignee": {"id": 40}, "organization": {"id": 690}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"owner": {"id": 463}, "assignee": {"id": 20}, "organization": {"id": 189}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"owner": {"id": 416}, "assignee": {"id": 10}, "organization": {"id": 133}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"owner": {"id": 492}, "assignee": {"id": 89}, "organization": {"id": 148}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 29, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"owner": {"id": 437}, "assignee": {"id": 29}, "organization": {"id": 125}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 437}, "assignee": {"id": 41}, "organization": {"id": 603}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 411}, "assignee": {"id": 2}, "organization": {"id": 671}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 449}, "assignee": {"id": 45}, "organization": {"id": 634}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 439}, "assignee": {"id": 65}, "organization": {"id": 648}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 485}, "assignee": {"id": 86}, "organization": {"id": 197}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 450}, "assignee": {"id": 13}, "organization": {"id": 172}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 417}, "assignee": {"id": 86}, "organization": {"id": 147}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 481}, "assignee": {"id": 79}, "organization": {"id": 190}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 420}, "assignee": {"id": 96}, "organization": {"id": 603}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 462}, "assignee": {"id": 80}, "organization": {"id": 601}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 431}, "assignee": {"id": 54}, "organization": {"id": 658}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 19, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 475}, "assignee": {"id": 19}, "organization": {"id": 645}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 415}, "assignee": {"id": 11}, "organization": {"id": 144}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 459}, "assignee": {"id": 45}, "organization": {"id": 140}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 408}, "assignee": {"id": 83}, "organization": {"id": 153}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 494}, "assignee": {"id": 95}, "organization": {"id": 178}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 489}, "assignee": {"id": 44}, "organization": {"id": 666}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 480}, "assignee": {"id": 46}, "organization": {"id": 624}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 419}, "assignee": {"id": 33}, "organization": {"id": 652}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 405}, "assignee": {"id": 17}, "organization": {"id": 662}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 450}, "assignee": {"id": 52}, "organization": {"id": 132}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 491}, "assignee": {"id": 41}, "organization": {"id": 195}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 469}, "assignee": {"id": 81}, "organization": {"id": 143}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 434}, "assignee": {"id": 8}, "organization": {"id": 184}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 475}, "assignee": {"id": 16}, "organization": {"id": 690}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 429}, "assignee": {"id": 24}, "organization": {"id": 611}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 421}, "assignee": {"id": 94}, "organization": {"id": 619}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 417}, "assignee": {"id": 32}, "organization": {"id": 622}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 408}, "assignee": {"id": 23}, "organization": {"id": 148}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 486}, "assignee": {"id": 97}, "organization": {"id": 150}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 448}, "assignee": {"id": 11}, "organization": {"id": 145}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 477}, "assignee": {"id": 10}, "organization": {"id": 138}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"owner": {"id": 400}, "assignee": {"id": 95}, "organization": {"id": 633}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"owner": {"id": 495}, "assignee": {"id": 16}, "organization": {"id": 632}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"owner": {"id": 458}, "assignee": {"id": 22}, "organization": {"id": 675}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"owner": {"id": 416}, "assignee": {"id": 85}, "organization": {"id": 643}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"owner": {"id": 483}, "assignee": {"id": 86}, "organization": {"id": 103}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"owner": {"id": 490}, "assignee": {"id": 37}, "organization": {"id": 141}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"owner": {"id": 434}, "assignee": {"id": 98}, "organization": {"id": 180}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"owner": {"id": 493}, "assignee": {"id": 20}, "organization": {"id": 170}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 488}, "assignee": {"id": 557}, "organization": {"id": 684}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_user_num_resources_1_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 480}, "assignee": {"id": 552}, "organization": {"id": 632}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 471}, "assignee": {"id": 518}, "organization": {"id": 616}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 405}, "assignee": {"id": 556}, "organization": {"id": 628}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 480}, "assignee": {"id": 555}, "organization": {"id": 156}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 467}, "assignee": {"id": 525}, "organization": {"id": 134}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 410}, "assignee": {"id": 502}, "organization": {"id": 142}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 448}, "assignee": {"id": 594}, "organization": {"id": 129}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 473}, "assignee": {"id": 591}, "organization": {"id": 625}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_1_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 411}, "assignee": {"id": 574}, "organization": {"id": 690}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 423}, "assignee": {"id": 595}, "organization": {"id": 640}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 462}, "assignee": {"id": 578}, "organization": {"id": 639}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 403}, "assignee": {"id": 538}, "organization": {"id": 159}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 471}, "assignee": {"id": 545}, "organization": {"id": 153}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 442}, "assignee": {"id": 529}, "organization": {"id": 112}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 462}, "assignee": {"id": 521}, "organization": {"id": 105}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 412}, "assignee": {"id": 502}, "organization": {"id": 695}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_1_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 447}, "assignee": {"id": 519}, "organization": {"id": 680}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 458}, "assignee": {"id": 540}, "organization": {"id": 676}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 424}, "assignee": {"id": 561}, "organization": {"id": 686}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 472}, "assignee": {"id": 593}, "organization": {"id": 145}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 487}, "assignee": {"id": 541}, "organization": {"id": 190}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 431}, "assignee": {"id": 515}, "organization": {"id": 120}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 401}, "assignee": {"id": 517}, "organization": {"id": 128}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 408}, "assignee": {"id": 501}, "organization": {"id": 624}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_user_num_resources_1_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 452}, "assignee": {"id": 523}, "organization": {"id": 655}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 495}, "assignee": {"id": 534}, "organization": {"id": 600}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 421}, "assignee": {"id": 566}, "organization": {"id": 672}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 403}, "assignee": {"id": 556}, "organization": {"id": 179}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 36, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 484}, "assignee": {"id": 501}, "organization": {"id": 187}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 489}, "assignee": {"id": 514}, "organization": {"id": 168}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 421}, "assignee": {"id": 505}, "organization": {"id": 132}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"owner": {"id": 442}, "assignee": {"id": 502}, "organization": {"id": 674}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"owner": {"id": 446}, "assignee": {"id": 552}, "organization": {"id": 666}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"owner": {"id": 486}, "assignee": {"id": 574}, "organization": {"id": 696}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"owner": {"id": 454}, "assignee": {"id": 531}, "organization": {"id": 613}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"owner": {"id": 450}, "assignee": {"id": 595}, "organization": {"id": 105}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"owner": {"id": 448}, "assignee": {"id": 568}, "organization": {"id": 157}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"owner": {"id": 452}, "assignee": {"id": 521}, "organization": {"id": 180}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"owner": {"id": 488}, "assignee": {"id": 514}, "organization": {"id": 127}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 424}, "assignee": {"id": 574}, "organization": {"id": 602}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 426}, "assignee": {"id": 556}, "organization": {"id": 638}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 470}, "assignee": {"id": 509}, "organization": {"id": 661}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 477}, "assignee": {"id": 522}, "organization": {"id": 690}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 484}, "assignee": {"id": 542}, "organization": {"id": 183}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 437}, "assignee": {"id": 553}, "organization": {"id": 161}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 31, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 433}, "assignee": {"id": 570}, "organization": {"id": 112}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 478}, "assignee": {"id": 558}, "organization": {"id": 137}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 438}, "assignee": {"id": 500}, "organization": {"id": 624}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 415}, "assignee": {"id": 517}, "organization": {"id": 670}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 490}, "assignee": {"id": 544}, "organization": {"id": 670}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 458}, "assignee": {"id": 505}, "organization": {"id": 658}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 449}, "assignee": {"id": 522}, "organization": {"id": 159}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 495}, "assignee": {"id": 567}, "organization": {"id": 170}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 497}, "assignee": {"id": 581}, "organization": {"id": 106}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 460}, "assignee": {"id": 514}, "organization": {"id": 144}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 490}, "assignee": {"id": 581}, "organization": {"id": 606}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 431}, "assignee": {"id": 553}, "organization": {"id": 637}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 478}, "assignee": {"id": 502}, "organization": {"id": 640}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 416}, "assignee": {"id": 504}, "organization": {"id": 653}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 499}, "assignee": {"id": 511}, "organization": {"id": 158}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 403}, "assignee": {"id": 586}, "organization": {"id": 111}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 405}, "assignee": {"id": 584}, "organization": {"id": 146}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 26, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 407}, "assignee": {"id": 586}, "organization": {"id": 110}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 410}, "assignee": {"id": 569}, "organization": {"id": 684}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 499}, "assignee": {"id": 592}, "organization": {"id": 661}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 462}, "assignee": {"id": 523}, "organization": {"id": 674}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 499}, "assignee": {"id": 535}, "organization": {"id": 627}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 448}, "assignee": {"id": 572}, "organization": {"id": 112}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 475}, "assignee": {"id": 520}, "organization": {"id": 158}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 419}, "assignee": {"id": 521}, "organization": {"id": 138}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 413}, "assignee": {"id": 569}, "organization": {"id": 180}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"owner": {"id": 471}, "assignee": {"id": 553}, "organization": {"id": 667}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"owner": {"id": 490}, "assignee": {"id": 523}, "organization": {"id": 624}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"owner": {"id": 459}, "assignee": {"id": 568}, "organization": {"id": 628}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"owner": {"id": 464}, "assignee": {"id": 545}, "organization": {"id": 609}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"owner": {"id": 459}, "assignee": {"id": 568}, "organization": {"id": 126}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"owner": {"id": 458}, "assignee": {"id": 529}, "organization": {"id": 117}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"owner": {"id": 457}, "assignee": {"id": 533}, "organization": {"id": 125}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"owner": {"id": 440}, "assignee": {"id": 568}, "organization": {"id": 172}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 432}, "assignee": {"id": 592}, "organization": {"id": 605}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 71, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 455}, "assignee": {"id": 595}, "organization": {"id": 669}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 435}, "assignee": {"id": 552}, "organization": {"id": 689}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 470}, "assignee": {"id": 559}, "organization": {"id": 623}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 450}, "assignee": {"id": 594}, "organization": {"id": 103}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 489}, "assignee": {"id": 540}, "organization": {"id": 134}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 447}, "assignee": {"id": 537}, "organization": {"id": 155}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 493}, "assignee": {"id": 544}, "organization": {"id": 111}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 435}, "assignee": {"id": 571}, "organization": {"id": 656}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 464}, "assignee": {"id": 599}, "organization": {"id": 665}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 411}, "assignee": {"id": 594}, "organization": {"id": 612}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 444}, "assignee": {"id": 596}, "organization": {"id": 630}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 497}, "assignee": {"id": 571}, "organization": {"id": 122}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 90, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 478}, "assignee": {"id": 527}, "organization": {"id": 121}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 475}, "assignee": {"id": 514}, "organization": {"id": 124}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 404}, "assignee": {"id": 532}, "organization": {"id": 156}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 466}, "assignee": {"id": 501}, "organization": {"id": 670}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 438}, "assignee": {"id": 591}, "organization": {"id": 662}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 481}, "assignee": {"id": 500}, "organization": {"id": 619}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 423}, "assignee": {"id": 524}, "organization": {"id": 633}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 413}, "assignee": {"id": 515}, "organization": {"id": 153}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_1_same_org_TRUE { - allow with input as {"scope": "import:backup", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 405}, "assignee": {"id": 599}, "organization": {"id": 175}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 428}, "assignee": {"id": 571}, "organization": {"id": 115}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 467}, "assignee": {"id": 579}, "organization": {"id": 147}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 493}, "assignee": {"id": 561}, "organization": {"id": 640}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 464}, "assignee": {"id": 582}, "organization": {"id": 668}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 455}, "assignee": {"id": 509}, "organization": {"id": 634}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 427}, "assignee": {"id": 543}, "organization": {"id": 642}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 466}, "assignee": {"id": 517}, "organization": {"id": 121}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 482}, "assignee": {"id": 514}, "organization": {"id": 122}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 418}, "assignee": {"id": 511}, "organization": {"id": 141}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 419}, "assignee": {"id": 547}, "organization": {"id": 135}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 71, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"owner": {"id": 424}, "assignee": {"id": 560}, "organization": {"id": 686}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"owner": {"id": 458}, "assignee": {"id": 506}, "organization": {"id": 636}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"owner": {"id": 407}, "assignee": {"id": 507}, "organization": {"id": 653}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"owner": {"id": 461}, "assignee": {"id": 592}, "organization": {"id": 638}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"owner": {"id": 497}, "assignee": {"id": 572}, "organization": {"id": 123}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"owner": {"id": 485}, "assignee": {"id": 508}, "organization": {"id": 143}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"owner": {"id": 409}, "assignee": {"id": 541}, "organization": {"id": 184}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"owner": {"id": 492}, "assignee": {"id": 535}, "organization": {"id": 171}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 487}, "assignee": {"id": 532}, "organization": {"id": 602}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 437}, "assignee": {"id": 544}, "organization": {"id": 607}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 471}, "assignee": {"id": 509}, "organization": {"id": 677}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 419}, "assignee": {"id": 555}, "organization": {"id": 626}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 461}, "assignee": {"id": 582}, "organization": {"id": 181}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 420}, "assignee": {"id": 587}, "organization": {"id": 108}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 470}, "assignee": {"id": 509}, "organization": {"id": 177}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 490}, "assignee": {"id": 532}, "organization": {"id": 121}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 416}, "assignee": {"id": 596}, "organization": {"id": 659}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 465}, "assignee": {"id": 557}, "organization": {"id": 675}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 411}, "assignee": {"id": 530}, "organization": {"id": 682}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 435}, "assignee": {"id": 591}, "organization": {"id": 614}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 470}, "assignee": {"id": 545}, "organization": {"id": 124}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 405}, "assignee": {"id": 593}, "organization": {"id": 169}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 468}, "assignee": {"id": 550}, "organization": {"id": 179}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 459}, "assignee": {"id": 591}, "organization": {"id": 184}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 481}, "assignee": {"id": 531}, "organization": {"id": 660}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 496}, "assignee": {"id": 576}, "organization": {"id": 603}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 431}, "assignee": {"id": 509}, "organization": {"id": 640}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 475}, "assignee": {"id": 598}, "organization": {"id": 601}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 432}, "assignee": {"id": 546}, "organization": {"id": 198}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 401}, "assignee": {"id": 511}, "organization": {"id": 103}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 421}, "assignee": {"id": 503}, "organization": {"id": 117}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 436}, "assignee": {"id": 531}, "organization": {"id": 189}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 470}, "assignee": {"id": 567}, "organization": {"id": 687}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 465}, "assignee": {"id": 587}, "organization": {"id": 655}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 413}, "assignee": {"id": 556}, "organization": {"id": 647}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 480}, "assignee": {"id": 547}, "organization": {"id": 620}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 405}, "assignee": {"id": 548}, "organization": {"id": 135}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 411}, "assignee": {"id": 524}, "organization": {"id": 168}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 400}, "assignee": {"id": 502}, "organization": {"id": 111}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 454}, "assignee": {"id": 561}, "organization": {"id": 136}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"owner": {"id": 402}, "assignee": {"id": 522}, "organization": {"id": 691}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"owner": {"id": 431}, "assignee": {"id": 552}, "organization": {"id": 699}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"owner": {"id": 457}, "assignee": {"id": 558}, "organization": {"id": 632}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"owner": {"id": 477}, "assignee": {"id": 542}, "organization": {"id": 648}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 24, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"owner": {"id": 417}, "assignee": {"id": 547}, "organization": {"id": 180}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"owner": {"id": 494}, "assignee": {"id": 556}, "organization": {"id": 160}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"owner": {"id": 482}, "assignee": {"id": 550}, "organization": {"id": 102}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"owner": {"id": 450}, "assignee": {"id": 518}, "organization": {"id": 137}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 497}, "assignee": {"id": 508}, "organization": {"id": 641}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 420}, "assignee": {"id": 550}, "organization": {"id": 678}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 474}, "assignee": {"id": 573}, "organization": {"id": 683}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 478}, "assignee": {"id": 527}, "organization": {"id": 662}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 484}, "assignee": {"id": 504}, "organization": {"id": 101}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 444}, "assignee": {"id": 566}, "organization": {"id": 198}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 409}, "assignee": {"id": 572}, "organization": {"id": 192}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 406}, "assignee": {"id": 501}, "organization": {"id": 132}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 427}, "assignee": {"id": 504}, "organization": {"id": 664}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 487}, "assignee": {"id": 524}, "organization": {"id": 696}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 484}, "assignee": {"id": 552}, "organization": {"id": 625}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 447}, "assignee": {"id": 585}, "organization": {"id": 679}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 490}, "assignee": {"id": 530}, "organization": {"id": 175}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 438}, "assignee": {"id": 581}, "organization": {"id": 123}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 416}, "assignee": {"id": 529}, "organization": {"id": 128}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 462}, "assignee": {"id": 588}, "organization": {"id": 198}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 492}, "assignee": {"id": 588}, "organization": {"id": 648}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 429}, "assignee": {"id": 529}, "organization": {"id": 604}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 19, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 452}, "assignee": {"id": 557}, "organization": {"id": 698}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 421}, "assignee": {"id": 568}, "organization": {"id": 633}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 490}, "assignee": {"id": 587}, "organization": {"id": 138}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 432}, "assignee": {"id": 534}, "organization": {"id": 191}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 417}, "assignee": {"id": 500}, "organization": {"id": 128}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 468}, "assignee": {"id": 509}, "organization": {"id": 102}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 465}, "assignee": {"id": 578}, "organization": {"id": 625}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 462}, "assignee": {"id": 504}, "organization": {"id": 600}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 468}, "assignee": {"id": 568}, "organization": {"id": 691}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 439}, "assignee": {"id": 548}, "organization": {"id": 678}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 451}, "assignee": {"id": 501}, "organization": {"id": 199}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 432}, "assignee": {"id": 545}, "organization": {"id": 113}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 430}, "assignee": {"id": 594}, "organization": {"id": 151}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 486}, "assignee": {"id": 592}, "organization": {"id": 188}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"owner": {"id": 449}, "assignee": {"id": 550}, "organization": {"id": 688}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_1_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"owner": {"id": 465}, "assignee": {"id": 566}, "organization": {"id": 610}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"owner": {"id": 496}, "assignee": {"id": 530}, "organization": {"id": 676}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"owner": {"id": 457}, "assignee": {"id": 597}, "organization": {"id": 630}, "user": {"num_resources": 10}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"owner": {"id": 457}, "assignee": {"id": 531}, "organization": {"id": 118}, "user": {"num_resources": 0}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_1_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"owner": {"id": 492}, "assignee": {"id": 570}, "organization": {"id": 193}, "user": {"num_resources": 1}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"owner": {"id": 458}, "assignee": {"id": 598}, "organization": {"id": 187}, "user": {"num_resources": 3}}} -} - -test_scope_IMPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "import:backup", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"owner": {"id": 424}, "assignee": {"id": 502}, "organization": {"id": 177}, "user": {"num_resources": 10}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": null}, "resource": {"id": 338, "owner": {"id": 1}, "assignee": {"id": 518}, "organization": {"id": 646}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": null}, "resource": {"id": 304, "owner": {"id": 29}, "assignee": {"id": 559}, "organization": {"id": 609}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": null}, "resource": {"id": 301, "owner": {"id": 67}, "assignee": {"id": 538}, "organization": {"id": 613}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": null}, "resource": {"id": 332, "owner": {"id": 74}, "assignee": {"id": 547}, "organization": {"id": 662}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": null}, "resource": {"id": 372, "owner": {"id": 92}, "assignee": {"id": 598}, "organization": {"id": 683}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": null}, "resource": {"id": 361, "owner": {"id": 456}, "assignee": {"id": 31}, "organization": {"id": 634}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": null}, "resource": {"id": 321, "owner": {"id": 430}, "assignee": {"id": 59}, "organization": {"id": 677}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": null}, "resource": {"id": 367, "owner": {"id": 465}, "assignee": {"id": 20}, "organization": {"id": 651}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": null}, "resource": {"id": 351, "owner": {"id": 452}, "assignee": {"id": 77}, "organization": {"id": 632}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": null}, "resource": {"id": 326, "owner": {"id": 435}, "assignee": {"id": 53}, "organization": {"id": 625}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": null}, "resource": {"id": 351, "owner": {"id": 451}, "assignee": {"id": 583}, "organization": {"id": 699}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": null}, "resource": {"id": 394, "owner": {"id": 489}, "assignee": {"id": 584}, "organization": {"id": 670}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": null}, "resource": {"id": 335, "owner": {"id": 471}, "assignee": {"id": 545}, "organization": {"id": 689}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": null}, "resource": {"id": 388, "owner": {"id": 417}, "assignee": {"id": 546}, "organization": {"id": 609}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": null}, "resource": {"id": 371, "owner": {"id": 448}, "assignee": {"id": 521}, "organization": {"id": 622}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 307, "owner": {"id": 23}, "assignee": {"id": 554}, "organization": {"id": 655}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 337, "owner": {"id": 12}, "assignee": {"id": 595}, "organization": {"id": 122}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "owner": {"id": 77}, "assignee": {"id": 563}, "organization": {"id": 641}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "owner": {"id": 45}, "assignee": {"id": 587}, "organization": {"id": 166}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 36, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 36}, "assignee": {"id": 592}, "organization": {"id": 654}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 369, "owner": {"id": 24}, "assignee": {"id": 532}, "organization": {"id": 150}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 65}, "assignee": {"id": 516}, "organization": {"id": 630}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 11}, "assignee": {"id": 593}, "organization": {"id": 137}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 77}, "assignee": {"id": 598}, "organization": {"id": 654}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 300, "owner": {"id": 62}, "assignee": {"id": 506}, "organization": {"id": 175}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 310, "owner": {"id": 0}, "assignee": {"id": 548}, "organization": {"id": 691}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 86}, "assignee": {"id": 580}, "organization": {"id": 105}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "owner": {"id": 70}, "assignee": {"id": 594}, "organization": {"id": 676}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "owner": {"id": 29}, "assignee": {"id": 582}, "organization": {"id": 116}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "owner": {"id": 60}, "assignee": {"id": 553}, "organization": {"id": 650}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 58}, "assignee": {"id": 576}, "organization": {"id": 142}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 85}, "assignee": {"id": 568}, "organization": {"id": 654}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 377, "owner": {"id": 91}, "assignee": {"id": 583}, "organization": {"id": 197}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 360, "owner": {"id": 23}, "assignee": {"id": 598}, "organization": {"id": 651}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 317, "owner": {"id": 40}, "assignee": {"id": 514}, "organization": {"id": 153}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 358, "owner": {"id": 72}, "assignee": {"id": 552}, "organization": {"id": 659}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 333, "owner": {"id": 65}, "assignee": {"id": 501}, "organization": {"id": 145}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "owner": {"id": 18}, "assignee": {"id": 578}, "organization": {"id": 640}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 9}, "assignee": {"id": 566}, "organization": {"id": 125}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "owner": {"id": 78}, "assignee": {"id": 594}, "organization": {"id": 665}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "owner": {"id": 92}, "assignee": {"id": 586}, "organization": {"id": 199}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 342, "owner": {"id": 52}, "assignee": {"id": 568}, "organization": {"id": 635}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 381, "owner": {"id": 10}, "assignee": {"id": 566}, "organization": {"id": 136}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 384, "owner": {"id": 68}, "assignee": {"id": 584}, "organization": {"id": 655}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 88}, "assignee": {"id": 555}, "organization": {"id": 156}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 77}, "assignee": {"id": 511}, "organization": {"id": 642}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 44}, "assignee": {"id": 532}, "organization": {"id": 100}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "owner": {"id": 18}, "assignee": {"id": 550}, "organization": {"id": 653}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "owner": {"id": 44}, "assignee": {"id": 512}, "organization": {"id": 194}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "owner": {"id": 92}, "assignee": {"id": 563}, "organization": {"id": 623}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 76}, "assignee": {"id": 539}, "organization": {"id": 118}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 58}, "assignee": {"id": 533}, "organization": {"id": 683}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 326, "owner": {"id": 69}, "assignee": {"id": 542}, "organization": {"id": 145}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 7}, "assignee": {"id": 543}, "organization": {"id": 617}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 321, "owner": {"id": 14}, "assignee": {"id": 505}, "organization": {"id": 157}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 358, "owner": {"id": 60}, "assignee": {"id": 595}, "organization": {"id": 666}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 386, "owner": {"id": 17}, "assignee": {"id": 557}, "organization": {"id": 185}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "owner": {"id": 58}, "assignee": {"id": 505}, "organization": {"id": 617}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "owner": {"id": 6}, "assignee": {"id": 501}, "organization": {"id": 168}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "owner": {"id": 96}, "assignee": {"id": 529}, "organization": {"id": 659}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "owner": {"id": 33}, "assignee": {"id": 561}, "organization": {"id": 165}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 398, "owner": {"id": 7}, "assignee": {"id": 506}, "organization": {"id": 647}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 312, "owner": {"id": 48}, "assignee": {"id": 548}, "organization": {"id": 137}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 365, "owner": {"id": 81}, "assignee": {"id": 544}, "organization": {"id": 646}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 61, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 327, "owner": {"id": 61}, "assignee": {"id": 565}, "organization": {"id": 117}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 333, "owner": {"id": 474}, "assignee": {"id": 87}, "organization": {"id": 683}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 366, "owner": {"id": 451}, "assignee": {"id": 55}, "organization": {"id": 113}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "owner": {"id": 489}, "assignee": {"id": 68}, "organization": {"id": 669}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "owner": {"id": 463}, "assignee": {"id": 83}, "organization": {"id": 140}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "owner": {"id": 473}, "assignee": {"id": 17}, "organization": {"id": 668}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 464}, "assignee": {"id": 2}, "organization": {"id": 141}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 404}, "assignee": {"id": 73}, "organization": {"id": 688}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 355, "owner": {"id": 444}, "assignee": {"id": 45}, "organization": {"id": 176}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 494}, "assignee": {"id": 63}, "organization": {"id": 683}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 334, "owner": {"id": 471}, "assignee": {"id": 57}, "organization": {"id": 154}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 371, "owner": {"id": 427}, "assignee": {"id": 98}, "organization": {"id": 610}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 453}, "assignee": {"id": 9}, "organization": {"id": 190}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "owner": {"id": 401}, "assignee": {"id": 55}, "organization": {"id": 670}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "owner": {"id": 461}, "assignee": {"id": 90}, "organization": {"id": 188}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "owner": {"id": 482}, "assignee": {"id": 48}, "organization": {"id": 603}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "owner": {"id": 422}, "assignee": {"id": 63}, "organization": {"id": 101}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 394, "owner": {"id": 487}, "assignee": {"id": 51}, "organization": {"id": 676}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 311, "owner": {"id": 430}, "assignee": {"id": 9}, "organization": {"id": 183}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 304, "owner": {"id": 478}, "assignee": {"id": 44}, "organization": {"id": 660}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 420}, "assignee": {"id": 34}, "organization": {"id": 199}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 343, "owner": {"id": 452}, "assignee": {"id": 54}, "organization": {"id": 684}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 358, "owner": {"id": 458}, "assignee": {"id": 52}, "organization": {"id": 181}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "owner": {"id": 409}, "assignee": {"id": 2}, "organization": {"id": 660}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "owner": {"id": 407}, "assignee": {"id": 85}, "organization": {"id": 170}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "owner": {"id": 464}, "assignee": {"id": 85}, "organization": {"id": 607}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "owner": {"id": 404}, "assignee": {"id": 54}, "organization": {"id": 110}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 420}, "assignee": {"id": 3}, "organization": {"id": 657}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 306, "owner": {"id": 431}, "assignee": {"id": 22}, "organization": {"id": 160}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"id": 308, "owner": {"id": 482}, "assignee": {"id": 97}, "organization": {"id": 641}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 302, "owner": {"id": 414}, "assignee": {"id": 0}, "organization": {"id": 117}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 383, "owner": {"id": 414}, "assignee": {"id": 68}, "organization": {"id": 648}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 474}, "assignee": {"id": 13}, "organization": {"id": 144}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "owner": {"id": 444}, "assignee": {"id": 88}, "organization": {"id": 652}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 411}, "assignee": {"id": 33}, "organization": {"id": 103}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 464}, "assignee": {"id": 74}, "organization": {"id": 660}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "owner": {"id": 430}, "assignee": {"id": 74}, "organization": {"id": 105}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 440}, "assignee": {"id": 65}, "organization": {"id": 616}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 422}, "assignee": {"id": 9}, "organization": {"id": 100}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 305, "owner": {"id": 496}, "assignee": {"id": 62}, "organization": {"id": 650}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 328, "owner": {"id": 461}, "assignee": {"id": 32}, "organization": {"id": 194}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 327, "owner": {"id": 433}, "assignee": {"id": 43}, "organization": {"id": 640}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 326, "owner": {"id": 457}, "assignee": {"id": 59}, "organization": {"id": 148}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "owner": {"id": 464}, "assignee": {"id": 89}, "organization": {"id": 668}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "owner": {"id": 466}, "assignee": {"id": 87}, "organization": {"id": 178}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "owner": {"id": 429}, "assignee": {"id": 26}, "organization": {"id": 617}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "owner": {"id": 428}, "assignee": {"id": 16}, "organization": {"id": 131}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 417}, "assignee": {"id": 31}, "organization": {"id": 656}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"id": 306, "owner": {"id": 405}, "assignee": {"id": 16}, "organization": {"id": 106}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 355, "owner": {"id": 461}, "assignee": {"id": 52}, "organization": {"id": 622}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 393, "owner": {"id": 404}, "assignee": {"id": 80}, "organization": {"id": 134}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 357, "owner": {"id": 440}, "assignee": {"id": 543}, "organization": {"id": 657}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 417}, "assignee": {"id": 575}, "organization": {"id": 195}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "owner": {"id": 466}, "assignee": {"id": 596}, "organization": {"id": 602}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "owner": {"id": 404}, "assignee": {"id": 587}, "organization": {"id": 138}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "owner": {"id": 496}, "assignee": {"id": 533}, "organization": {"id": 632}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 371, "owner": {"id": 429}, "assignee": {"id": 536}, "organization": {"id": 113}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 395, "owner": {"id": 491}, "assignee": {"id": 571}, "organization": {"id": 635}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 427}, "assignee": {"id": 597}, "organization": {"id": 190}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"id": 394, "owner": {"id": 445}, "assignee": {"id": 568}, "organization": {"id": 690}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 410}, "assignee": {"id": 523}, "organization": {"id": 168}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 349, "owner": {"id": 457}, "assignee": {"id": 514}, "organization": {"id": 692}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 382, "owner": {"id": 477}, "assignee": {"id": 548}, "organization": {"id": 121}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "owner": {"id": 446}, "assignee": {"id": 511}, "organization": {"id": 676}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "owner": {"id": 420}, "assignee": {"id": 522}, "organization": {"id": 108}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 496}, "assignee": {"id": 512}, "organization": {"id": 682}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "owner": {"id": 484}, "assignee": {"id": 583}, "organization": {"id": 111}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 316, "owner": {"id": 422}, "assignee": {"id": 538}, "organization": {"id": 631}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 315, "owner": {"id": 432}, "assignee": {"id": 596}, "organization": {"id": 142}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 338, "owner": {"id": 455}, "assignee": {"id": 595}, "organization": {"id": 661}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 370, "owner": {"id": 414}, "assignee": {"id": 585}, "organization": {"id": 195}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 365, "owner": {"id": 474}, "assignee": {"id": 567}, "organization": {"id": 627}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 491}, "assignee": {"id": 596}, "organization": {"id": 184}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 470}, "assignee": {"id": 598}, "organization": {"id": 684}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "owner": {"id": 457}, "assignee": {"id": 514}, "organization": {"id": 128}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "owner": {"id": 454}, "assignee": {"id": 592}, "organization": {"id": 693}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "owner": {"id": 480}, "assignee": {"id": 513}, "organization": {"id": 191}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 457}, "assignee": {"id": 581}, "organization": {"id": 699}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 340, "owner": {"id": 485}, "assignee": {"id": 591}, "organization": {"id": 174}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 468}, "assignee": {"id": 595}, "organization": {"id": 619}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 404}, "assignee": {"id": 585}, "organization": {"id": 145}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 314, "owner": {"id": 460}, "assignee": {"id": 595}, "organization": {"id": 636}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 362, "owner": {"id": 436}, "assignee": {"id": 590}, "organization": {"id": 171}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "owner": {"id": 467}, "assignee": {"id": 527}, "organization": {"id": 611}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 429}, "assignee": {"id": 528}, "organization": {"id": 148}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "owner": {"id": 458}, "assignee": {"id": 558}, "organization": {"id": 611}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "owner": {"id": 475}, "assignee": {"id": 509}, "organization": {"id": 194}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 355, "owner": {"id": 404}, "assignee": {"id": 505}, "organization": {"id": 668}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 486}, "assignee": {"id": 593}, "organization": {"id": 160}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 363, "owner": {"id": 412}, "assignee": {"id": 555}, "organization": {"id": 650}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 446}, "assignee": {"id": 561}, "organization": {"id": 140}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 313, "owner": {"id": 421}, "assignee": {"id": 544}, "organization": {"id": 608}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 397, "owner": {"id": 475}, "assignee": {"id": 581}, "organization": {"id": 123}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "owner": {"id": 492}, "assignee": {"id": 554}, "organization": {"id": 675}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "owner": {"id": 481}, "assignee": {"id": 541}, "organization": {"id": 189}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 423}, "assignee": {"id": 504}, "organization": {"id": 612}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "owner": {"id": 455}, "assignee": {"id": 555}, "organization": {"id": 168}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 454}, "assignee": {"id": 518}, "organization": {"id": 685}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 397, "owner": {"id": 430}, "assignee": {"id": 537}, "organization": {"id": 143}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 303, "owner": {"id": 470}, "assignee": {"id": 513}, "organization": {"id": 645}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 463}, "assignee": {"id": 574}, "organization": {"id": 182}}} -} - -test_scope_EXPORT_BACKUP_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": null}, "resource": {"id": 391, "owner": {"id": 44}, "assignee": {"id": 535}, "organization": {"id": 639}}} -} - -test_scope_EXPORT_BACKUP_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": null}, "resource": {"id": 343, "owner": {"id": 92}, "assignee": {"id": 587}, "organization": {"id": 650}}} -} - -test_scope_EXPORT_BACKUP_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": null}, "resource": {"id": 329, "owner": {"id": 36}, "assignee": {"id": 507}, "organization": {"id": 604}}} -} - -test_scope_EXPORT_BACKUP_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": null}, "resource": {"id": 397, "owner": {"id": 89}, "assignee": {"id": 539}, "organization": {"id": 689}}} -} - -test_scope_EXPORT_BACKUP_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": null}, "resource": {"id": 366, "owner": {"id": 10}, "assignee": {"id": 598}, "organization": {"id": 672}}} -} - -test_scope_EXPORT_BACKUP_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": null}, "resource": {"id": 335, "owner": {"id": 437}, "assignee": {"id": 46}, "organization": {"id": 622}}} -} - -test_scope_EXPORT_BACKUP_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": null}, "resource": {"id": 302, "owner": {"id": 474}, "assignee": {"id": 68}, "organization": {"id": 602}}} -} - -test_scope_EXPORT_BACKUP_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": null}, "resource": {"id": 304, "owner": {"id": 445}, "assignee": {"id": 24}, "organization": {"id": 690}}} -} - -test_scope_EXPORT_BACKUP_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": null}, "resource": {"id": 353, "owner": {"id": 431}, "assignee": {"id": 69}, "organization": {"id": 654}}} -} - -test_scope_EXPORT_BACKUP_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": null}, "resource": {"id": 375, "owner": {"id": 418}, "assignee": {"id": 88}, "organization": {"id": 604}}} -} - -test_scope_EXPORT_BACKUP_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": null}, "resource": {"id": 394, "owner": {"id": 444}, "assignee": {"id": 567}, "organization": {"id": 601}}} -} - -test_scope_EXPORT_BACKUP_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": null}, "resource": {"id": 364, "owner": {"id": 457}, "assignee": {"id": 548}, "organization": {"id": 660}}} -} - -test_scope_EXPORT_BACKUP_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": null}, "resource": {"id": 325, "owner": {"id": 474}, "assignee": {"id": 519}, "organization": {"id": 665}}} -} - -test_scope_EXPORT_BACKUP_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": null}, "resource": {"id": 350, "owner": {"id": 481}, "assignee": {"id": 575}, "organization": {"id": 691}}} -} - -test_scope_EXPORT_BACKUP_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": null}, "resource": {"id": 391, "owner": {"id": 418}, "assignee": {"id": 527}, "organization": {"id": 657}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_same_org_FALSE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 329, "owner": {"id": 35}, "assignee": {"id": 565}, "organization": {"id": 642}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 75}, "assignee": {"id": 532}, "organization": {"id": 166}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_same_org_FALSE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 75}, "assignee": {"id": 576}, "organization": {"id": 665}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "owner": {"id": 78}, "assignee": {"id": 554}, "organization": {"id": 147}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_FALSE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "owner": {"id": 66}, "assignee": {"id": 580}, "organization": {"id": 678}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "owner": {"id": 26}, "assignee": {"id": 553}, "organization": {"id": 167}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_same_org_FALSE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 314, "owner": {"id": 17}, "assignee": {"id": 545}, "organization": {"id": 662}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 371, "owner": {"id": 46}, "assignee": {"id": 517}, "organization": {"id": 105}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_same_org_FALSE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 304, "owner": {"id": 68}, "assignee": {"id": 539}, "organization": {"id": 669}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 392, "owner": {"id": 83}, "assignee": {"id": 560}, "organization": {"id": 158}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 86}, "assignee": {"id": 595}, "organization": {"id": 664}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 396, "owner": {"id": 1}, "assignee": {"id": 561}, "organization": {"id": 127}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 77}, "assignee": {"id": 557}, "organization": {"id": 656}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 11}, "assignee": {"id": 558}, "organization": {"id": 190}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 25}, "assignee": {"id": 597}, "organization": {"id": 667}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "owner": {"id": 53}, "assignee": {"id": 540}, "organization": {"id": 179}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"id": 373, "owner": {"id": 80}, "assignee": {"id": 570}, "organization": {"id": 602}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 371, "owner": {"id": 83}, "assignee": {"id": 557}, "organization": {"id": 111}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 31, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 337, "owner": {"id": 31}, "assignee": {"id": 520}, "organization": {"id": 619}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 320, "owner": {"id": 56}, "assignee": {"id": 535}, "organization": {"id": 155}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 337, "owner": {"id": 24}, "assignee": {"id": 571}, "organization": {"id": 613}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 362, "owner": {"id": 36}, "assignee": {"id": 501}, "organization": {"id": 111}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "owner": {"id": 7}, "assignee": {"id": 538}, "organization": {"id": 636}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 43}, "assignee": {"id": 502}, "organization": {"id": 195}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "owner": {"id": 40}, "assignee": {"id": 509}, "organization": {"id": 622}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "owner": {"id": 10}, "assignee": {"id": 540}, "organization": {"id": 149}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 389, "owner": {"id": 22}, "assignee": {"id": 577}, "organization": {"id": 698}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 323, "owner": {"id": 87}, "assignee": {"id": 594}, "organization": {"id": 168}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 325, "owner": {"id": 48}, "assignee": {"id": 506}, "organization": {"id": 638}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 317, "owner": {"id": 88}, "assignee": {"id": 545}, "organization": {"id": 187}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 61}, "assignee": {"id": 562}, "organization": {"id": 674}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 341, "owner": {"id": 19}, "assignee": {"id": 597}, "organization": {"id": 150}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 77}, "assignee": {"id": 565}, "organization": {"id": 670}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "owner": {"id": 16}, "assignee": {"id": 571}, "organization": {"id": 130}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "owner": {"id": 77}, "assignee": {"id": 543}, "organization": {"id": 605}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "owner": {"id": 66}, "assignee": {"id": 565}, "organization": {"id": 182}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 315, "owner": {"id": 85}, "assignee": {"id": 560}, "organization": {"id": 686}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 316, "owner": {"id": 53}, "assignee": {"id": 555}, "organization": {"id": 116}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 305, "owner": {"id": 74}, "assignee": {"id": 505}, "organization": {"id": 644}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 391, "owner": {"id": 56}, "assignee": {"id": 510}, "organization": {"id": 192}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"id": 329, "owner": {"id": 66}, "assignee": {"id": 504}, "organization": {"id": 616}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 379, "owner": {"id": 29}, "assignee": {"id": 531}, "organization": {"id": 133}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "owner": {"id": 64}, "assignee": {"id": 556}, "organization": {"id": 681}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "owner": {"id": 93}, "assignee": {"id": 516}, "organization": {"id": 127}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "owner": {"id": 5}, "assignee": {"id": 519}, "organization": {"id": 606}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "owner": {"id": 35}, "assignee": {"id": 567}, "organization": {"id": 137}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 19, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 315, "owner": {"id": 19}, "assignee": {"id": 565}, "organization": {"id": 616}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 346, "owner": {"id": 23}, "assignee": {"id": 566}, "organization": {"id": 168}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 334, "owner": {"id": 89}, "assignee": {"id": 569}, "organization": {"id": 620}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 357, "owner": {"id": 55}, "assignee": {"id": 516}, "organization": {"id": 105}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_same_org_FALSE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 366, "owner": {"id": 486}, "assignee": {"id": 47}, "organization": {"id": 637}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 310, "owner": {"id": 450}, "assignee": {"id": 1}, "organization": {"id": 105}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_FALSE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "owner": {"id": 466}, "assignee": {"id": 53}, "organization": {"id": 684}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 488}, "assignee": {"id": 69}, "organization": {"id": 113}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_FALSE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "owner": {"id": 492}, "assignee": {"id": 72}, "organization": {"id": 686}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "owner": {"id": 440}, "assignee": {"id": 34}, "organization": {"id": 198}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_same_org_FALSE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 306, "owner": {"id": 409}, "assignee": {"id": 66}, "organization": {"id": 685}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 485}, "assignee": {"id": 60}, "organization": {"id": 138}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_same_org_FALSE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"id": 361, "owner": {"id": 426}, "assignee": {"id": 25}, "organization": {"id": 600}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 336, "owner": {"id": 455}, "assignee": {"id": 92}, "organization": {"id": 178}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"id": 386, "owner": {"id": 417}, "assignee": {"id": 66}, "organization": {"id": 681}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 306, "owner": {"id": 481}, "assignee": {"id": 69}, "organization": {"id": 114}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "owner": {"id": 481}, "assignee": {"id": 33}, "organization": {"id": 674}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "owner": {"id": 450}, "assignee": {"id": 0}, "organization": {"id": 114}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "owner": {"id": 405}, "assignee": {"id": 66}, "organization": {"id": 605}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 488}, "assignee": {"id": 12}, "organization": {"id": 187}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 351, "owner": {"id": 455}, "assignee": {"id": 18}, "organization": {"id": 614}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 381, "owner": {"id": 491}, "assignee": {"id": 77}, "organization": {"id": 135}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 384, "owner": {"id": 445}, "assignee": {"id": 30}, "organization": {"id": 680}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 487}, "assignee": {"id": 82}, "organization": {"id": 106}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 329, "owner": {"id": 413}, "assignee": {"id": 84}, "organization": {"id": 629}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 499}, "assignee": {"id": 78}, "organization": {"id": 191}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "owner": {"id": 425}, "assignee": {"id": 89}, "organization": {"id": 626}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "owner": {"id": 445}, "assignee": {"id": 50}, "organization": {"id": 165}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "owner": {"id": 432}, "assignee": {"id": 28}, "organization": {"id": 630}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 416}, "assignee": {"id": 27}, "organization": {"id": 154}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 319, "owner": {"id": 420}, "assignee": {"id": 44}, "organization": {"id": 652}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 390, "owner": {"id": 440}, "assignee": {"id": 74}, "organization": {"id": 180}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 361, "owner": {"id": 418}, "assignee": {"id": 56}, "organization": {"id": 653}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 366, "owner": {"id": 483}, "assignee": {"id": 82}, "organization": {"id": 117}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 304, "owner": {"id": 470}, "assignee": {"id": 63}, "organization": {"id": 632}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 367, "owner": {"id": 425}, "assignee": {"id": 37}, "organization": {"id": 100}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "owner": {"id": 471}, "assignee": {"id": 87}, "organization": {"id": 657}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 414}, "assignee": {"id": 60}, "organization": {"id": 172}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "owner": {"id": 457}, "assignee": {"id": 2}, "organization": {"id": 611}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "owner": {"id": 452}, "assignee": {"id": 46}, "organization": {"id": 167}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 318, "owner": {"id": 429}, "assignee": {"id": 40}, "organization": {"id": 614}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 397, "owner": {"id": 435}, "assignee": {"id": 0}, "organization": {"id": 164}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 378, "owner": {"id": 402}, "assignee": {"id": 66}, "organization": {"id": 650}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 344, "owner": {"id": 415}, "assignee": {"id": 71}, "organization": {"id": 105}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 395, "owner": {"id": 422}, "assignee": {"id": 75}, "organization": {"id": 668}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 403}, "assignee": {"id": 11}, "organization": {"id": 150}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 416}, "assignee": {"id": 3}, "organization": {"id": 630}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "owner": {"id": 416}, "assignee": {"id": 46}, "organization": {"id": 164}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "owner": {"id": 472}, "assignee": {"id": 62}, "organization": {"id": 665}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 426}, "assignee": {"id": 74}, "organization": {"id": 159}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 459}, "assignee": {"id": 65}, "organization": {"id": 611}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 460}, "assignee": {"id": 80}, "organization": {"id": 120}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"id": 356, "owner": {"id": 411}, "assignee": {"id": 9}, "organization": {"id": 641}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 376, "owner": {"id": 456}, "assignee": {"id": 92}, "organization": {"id": 131}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_same_org_FALSE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"id": 366, "owner": {"id": 494}, "assignee": {"id": 579}, "organization": {"id": 698}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 308, "owner": {"id": 434}, "assignee": {"id": 552}, "organization": {"id": 167}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_FALSE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "owner": {"id": 476}, "assignee": {"id": 583}, "organization": {"id": 679}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "owner": {"id": 468}, "assignee": {"id": 533}, "organization": {"id": 115}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_FALSE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "owner": {"id": 425}, "assignee": {"id": 597}, "organization": {"id": 653}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "owner": {"id": 445}, "assignee": {"id": 520}, "organization": {"id": 159}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_same_org_FALSE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 481}, "assignee": {"id": 558}, "organization": {"id": 651}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 320, "owner": {"id": 426}, "assignee": {"id": 523}, "organization": {"id": 106}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_same_org_FALSE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"id": 322, "owner": {"id": 457}, "assignee": {"id": 528}, "organization": {"id": 631}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 308, "owner": {"id": 424}, "assignee": {"id": 593}, "organization": {"id": 124}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 442}, "assignee": {"id": 559}, "organization": {"id": 610}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 306, "owner": {"id": 491}, "assignee": {"id": 585}, "organization": {"id": 114}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 431}, "assignee": {"id": 516}, "organization": {"id": 697}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 475}, "assignee": {"id": 544}, "organization": {"id": 119}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 407}, "assignee": {"id": 566}, "organization": {"id": 600}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 410}, "assignee": {"id": 557}, "organization": {"id": 194}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 346, "owner": {"id": 466}, "assignee": {"id": 508}, "organization": {"id": 676}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 370, "owner": {"id": 477}, "assignee": {"id": 520}, "organization": {"id": 169}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 388, "owner": {"id": 402}, "assignee": {"id": 583}, "organization": {"id": 630}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"id": 328, "owner": {"id": 484}, "assignee": {"id": 528}, "organization": {"id": 157}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 480}, "assignee": {"id": 512}, "organization": {"id": 627}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 399, "owner": {"id": 426}, "assignee": {"id": 522}, "organization": {"id": 111}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 301, "owner": {"id": 411}, "assignee": {"id": 507}, "organization": {"id": 659}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "owner": {"id": 429}, "assignee": {"id": 559}, "organization": {"id": 165}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 467}, "assignee": {"id": 550}, "organization": {"id": 619}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 427}, "assignee": {"id": 547}, "organization": {"id": 132}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 384, "owner": {"id": 415}, "assignee": {"id": 518}, "organization": {"id": 655}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 413}, "assignee": {"id": 554}, "organization": {"id": 167}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 483}, "assignee": {"id": 509}, "organization": {"id": 606}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 386, "owner": {"id": 414}, "assignee": {"id": 525}, "organization": {"id": 107}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 24, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 312, "owner": {"id": 496}, "assignee": {"id": 568}, "organization": {"id": 613}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 386, "owner": {"id": 494}, "assignee": {"id": 506}, "organization": {"id": 166}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "owner": {"id": 443}, "assignee": {"id": 544}, "organization": {"id": 668}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 485}, "assignee": {"id": 533}, "organization": {"id": 177}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 369, "owner": {"id": 484}, "assignee": {"id": 521}, "organization": {"id": 626}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "owner": {"id": 466}, "assignee": {"id": 585}, "organization": {"id": 142}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 396, "owner": {"id": 460}, "assignee": {"id": 573}, "organization": {"id": 672}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 427}, "assignee": {"id": 578}, "organization": {"id": 168}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 476}, "assignee": {"id": 571}, "organization": {"id": 654}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 377, "owner": {"id": 452}, "assignee": {"id": 512}, "organization": {"id": 147}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 379, "owner": {"id": 473}, "assignee": {"id": 582}, "organization": {"id": 627}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 339, "owner": {"id": 491}, "assignee": {"id": 566}, "organization": {"id": 176}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "owner": {"id": 457}, "assignee": {"id": 595}, "organization": {"id": 604}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "owner": {"id": 459}, "assignee": {"id": 570}, "organization": {"id": 194}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "owner": {"id": 414}, "assignee": {"id": 592}, "organization": {"id": 682}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 423}, "assignee": {"id": 531}, "organization": {"id": 138}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 302, "owner": {"id": 499}, "assignee": {"id": 565}, "organization": {"id": 676}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 491}, "assignee": {"id": 545}, "organization": {"id": 192}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 304, "owner": {"id": 406}, "assignee": {"id": 557}, "organization": {"id": 629}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 371, "owner": {"id": 448}, "assignee": {"id": 599}, "organization": {"id": 103}}} -} - -test_scope_UPDATE_OWNER_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": null}, "resource": {"id": 380, "owner": {"id": 65}, "assignee": {"id": 567}, "organization": {"id": 670}}} -} - -test_scope_UPDATE_OWNER_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": null}, "resource": {"id": 349, "owner": {"id": 10}, "assignee": {"id": 538}, "organization": {"id": 601}}} -} - -test_scope_UPDATE_OWNER_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": null}, "resource": {"id": 377, "owner": {"id": 66}, "assignee": {"id": 514}, "organization": {"id": 614}}} -} - -test_scope_UPDATE_OWNER_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": null}, "resource": {"id": 313, "owner": {"id": 9}, "assignee": {"id": 516}, "organization": {"id": 625}}} -} - -test_scope_UPDATE_OWNER_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": null}, "resource": {"id": 373, "owner": {"id": 2}, "assignee": {"id": 560}, "organization": {"id": 654}}} -} - -test_scope_UPDATE_OWNER_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": null}, "resource": {"id": 362, "owner": {"id": 419}, "assignee": {"id": 28}, "organization": {"id": 650}}} -} - -test_scope_UPDATE_OWNER_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": null}, "resource": {"id": 336, "owner": {"id": 448}, "assignee": {"id": 32}, "organization": {"id": 614}}} -} - -test_scope_UPDATE_OWNER_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": null}, "resource": {"id": 347, "owner": {"id": 456}, "assignee": {"id": 38}, "organization": {"id": 693}}} -} - -test_scope_UPDATE_OWNER_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": null}, "resource": {"id": 369, "owner": {"id": 458}, "assignee": {"id": 52}, "organization": {"id": 691}}} -} - -test_scope_UPDATE_OWNER_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": null}, "resource": {"id": 302, "owner": {"id": 499}, "assignee": {"id": 46}, "organization": {"id": 604}}} -} - -test_scope_UPDATE_OWNER_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": null}, "resource": {"id": 379, "owner": {"id": 402}, "assignee": {"id": 561}, "organization": {"id": 671}}} -} - -test_scope_UPDATE_OWNER_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": null}, "resource": {"id": 309, "owner": {"id": 400}, "assignee": {"id": 526}, "organization": {"id": 698}}} -} - -test_scope_UPDATE_OWNER_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": null}, "resource": {"id": 314, "owner": {"id": 402}, "assignee": {"id": 550}, "organization": {"id": 627}}} -} - -test_scope_UPDATE_OWNER_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": null}, "resource": {"id": 356, "owner": {"id": 423}, "assignee": {"id": 592}, "organization": {"id": 616}}} -} - -test_scope_UPDATE_OWNER_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": null}, "resource": {"id": 318, "owner": {"id": 455}, "assignee": {"id": 524}, "organization": {"id": 692}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_same_org_FALSE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 377, "owner": {"id": 29}, "assignee": {"id": 518}, "organization": {"id": 638}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 399, "owner": {"id": 65}, "assignee": {"id": 502}, "organization": {"id": 126}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_same_org_FALSE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "owner": {"id": 24}, "assignee": {"id": 551}, "organization": {"id": 683}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "owner": {"id": 96}, "assignee": {"id": 557}, "organization": {"id": 140}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_FALSE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "owner": {"id": 29}, "assignee": {"id": 540}, "organization": {"id": 695}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "owner": {"id": 8}, "assignee": {"id": 545}, "organization": {"id": 151}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_same_org_FALSE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 54}, "assignee": {"id": 533}, "organization": {"id": 675}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 392, "owner": {"id": 60}, "assignee": {"id": 509}, "organization": {"id": 186}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_same_org_FALSE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 340, "owner": {"id": 40}, "assignee": {"id": 531}, "organization": {"id": 639}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 346, "owner": {"id": 67}, "assignee": {"id": 541}, "organization": {"id": 123}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 341, "owner": {"id": 51}, "assignee": {"id": 593}, "organization": {"id": 625}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 336, "owner": {"id": 40}, "assignee": {"id": 513}, "organization": {"id": 100}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 45}, "assignee": {"id": 572}, "organization": {"id": 605}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "owner": {"id": 16}, "assignee": {"id": 585}, "organization": {"id": 161}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "owner": {"id": 48}, "assignee": {"id": 515}, "organization": {"id": 643}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 69}, "assignee": {"id": 556}, "organization": {"id": 108}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 29}, "assignee": {"id": 508}, "organization": {"id": 608}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 51}, "assignee": {"id": 576}, "organization": {"id": 118}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 393, "owner": {"id": 32}, "assignee": {"id": 576}, "organization": {"id": 686}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"id": 366, "owner": {"id": 99}, "assignee": {"id": 595}, "organization": {"id": 183}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 318, "owner": {"id": 97}, "assignee": {"id": 562}, "organization": {"id": 605}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 341, "owner": {"id": 53}, "assignee": {"id": 584}, "organization": {"id": 165}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "owner": {"id": 46}, "assignee": {"id": 576}, "organization": {"id": 657}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "owner": {"id": 83}, "assignee": {"id": 563}, "organization": {"id": 145}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 38}, "assignee": {"id": 579}, "organization": {"id": 696}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "owner": {"id": 22}, "assignee": {"id": 594}, "organization": {"id": 180}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 327, "owner": {"id": 27}, "assignee": {"id": 511}, "organization": {"id": 685}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 383, "owner": {"id": 26}, "assignee": {"id": 575}, "organization": {"id": 199}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 73}, "assignee": {"id": 594}, "organization": {"id": 634}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 305, "owner": {"id": 41}, "assignee": {"id": 502}, "organization": {"id": 109}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 74}, "assignee": {"id": 501}, "organization": {"id": 696}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 97}, "assignee": {"id": 598}, "organization": {"id": 134}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 4}, "assignee": {"id": 520}, "organization": {"id": 600}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "owner": {"id": 51}, "assignee": {"id": 528}, "organization": {"id": 110}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "owner": {"id": 89}, "assignee": {"id": 525}, "organization": {"id": 668}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "owner": {"id": 88}, "assignee": {"id": 544}, "organization": {"id": 106}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 319, "owner": {"id": 64}, "assignee": {"id": 533}, "organization": {"id": 611}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 77}, "assignee": {"id": 551}, "organization": {"id": 102}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 325, "owner": {"id": 36}, "assignee": {"id": 583}, "organization": {"id": 661}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 365, "owner": {"id": 21}, "assignee": {"id": 552}, "organization": {"id": 154}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 4}, "assignee": {"id": 558}, "organization": {"id": 648}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 68}, "assignee": {"id": 532}, "organization": {"id": 140}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 70}, "assignee": {"id": 531}, "organization": {"id": 676}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "owner": {"id": 35}, "assignee": {"id": 549}, "organization": {"id": 182}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "owner": {"id": 79}, "assignee": {"id": 524}, "organization": {"id": 639}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "owner": {"id": 46}, "assignee": {"id": 563}, "organization": {"id": 111}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 354, "owner": {"id": 48}, "assignee": {"id": 546}, "organization": {"id": 606}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 21}, "assignee": {"id": 513}, "organization": {"id": 152}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 334, "owner": {"id": 24}, "assignee": {"id": 537}, "organization": {"id": 634}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 313, "owner": {"id": 40}, "assignee": {"id": 582}, "organization": {"id": 162}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_same_org_FALSE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 393, "owner": {"id": 483}, "assignee": {"id": 57}, "organization": {"id": 618}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 352, "owner": {"id": 445}, "assignee": {"id": 4}, "organization": {"id": 188}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_FALSE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "owner": {"id": 464}, "assignee": {"id": 56}, "organization": {"id": 646}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 463}, "assignee": {"id": 45}, "organization": {"id": 139}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_FALSE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "owner": {"id": 486}, "assignee": {"id": 75}, "organization": {"id": 617}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "owner": {"id": 426}, "assignee": {"id": 65}, "organization": {"id": 176}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_same_org_FALSE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 305, "owner": {"id": 497}, "assignee": {"id": 86}, "organization": {"id": 636}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 480}, "assignee": {"id": 64}, "organization": {"id": 122}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_same_org_FALSE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 303, "owner": {"id": 419}, "assignee": {"id": 21}, "organization": {"id": 603}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 487}, "assignee": {"id": 86}, "organization": {"id": 136}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 337, "owner": {"id": 443}, "assignee": {"id": 61}, "organization": {"id": 693}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 325, "owner": {"id": 494}, "assignee": {"id": 24}, "organization": {"id": 171}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "owner": {"id": 476}, "assignee": {"id": 44}, "organization": {"id": 645}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "owner": {"id": 401}, "assignee": {"id": 58}, "organization": {"id": 132}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 442}, "assignee": {"id": 65}, "organization": {"id": 660}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 444}, "assignee": {"id": 84}, "organization": {"id": 187}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 476}, "assignee": {"id": 75}, "organization": {"id": 643}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 410}, "assignee": {"id": 22}, "organization": {"id": 124}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 26, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 372, "owner": {"id": 475}, "assignee": {"id": 26}, "organization": {"id": 618}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 328, "owner": {"id": 409}, "assignee": {"id": 36}, "organization": {"id": 114}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 369, "owner": {"id": 474}, "assignee": {"id": 74}, "organization": {"id": 611}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 351, "owner": {"id": 405}, "assignee": {"id": 60}, "organization": {"id": 151}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "owner": {"id": 482}, "assignee": {"id": 20}, "organization": {"id": 678}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "owner": {"id": 422}, "assignee": {"id": 51}, "organization": {"id": 106}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 340, "owner": {"id": 404}, "assignee": {"id": 61}, "organization": {"id": 657}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 466}, "assignee": {"id": 2}, "organization": {"id": 124}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 473}, "assignee": {"id": 85}, "organization": {"id": 642}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 307, "owner": {"id": 448}, "assignee": {"id": 91}, "organization": {"id": 179}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 394, "owner": {"id": 435}, "assignee": {"id": 49}, "organization": {"id": 660}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 19, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 347, "owner": {"id": 401}, "assignee": {"id": 19}, "organization": {"id": 119}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 67, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 349, "owner": {"id": 416}, "assignee": {"id": 67}, "organization": {"id": 603}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 432}, "assignee": {"id": 32}, "organization": {"id": 140}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "owner": {"id": 403}, "assignee": {"id": 5}, "organization": {"id": 648}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "owner": {"id": 449}, "assignee": {"id": 79}, "organization": {"id": 117}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 479}, "assignee": {"id": 49}, "organization": {"id": 600}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "owner": {"id": 406}, "assignee": {"id": 60}, "organization": {"id": 180}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 309, "owner": {"id": 400}, "assignee": {"id": 22}, "organization": {"id": 659}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 361, "owner": {"id": 438}, "assignee": {"id": 36}, "organization": {"id": 128}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 304, "owner": {"id": 418}, "assignee": {"id": 52}, "organization": {"id": 650}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 337, "owner": {"id": 451}, "assignee": {"id": 5}, "organization": {"id": 182}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 322, "owner": {"id": 484}, "assignee": {"id": 27}, "organization": {"id": 643}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 478}, "assignee": {"id": 33}, "organization": {"id": 132}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "owner": {"id": 495}, "assignee": {"id": 85}, "organization": {"id": 620}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "owner": {"id": 414}, "assignee": {"id": 84}, "organization": {"id": 100}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "owner": {"id": 444}, "assignee": {"id": 93}, "organization": {"id": 607}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "owner": {"id": 415}, "assignee": {"id": 24}, "organization": {"id": 197}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 375, "owner": {"id": 438}, "assignee": {"id": 23}, "organization": {"id": 615}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 387, "owner": {"id": 429}, "assignee": {"id": 82}, "organization": {"id": 196}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 365, "owner": {"id": 419}, "assignee": {"id": 87}, "organization": {"id": 615}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 381, "owner": {"id": 461}, "assignee": {"id": 79}, "organization": {"id": 131}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_same_org_FALSE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 358, "owner": {"id": 447}, "assignee": {"id": 577}, "organization": {"id": 627}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 315, "owner": {"id": 412}, "assignee": {"id": 505}, "organization": {"id": 189}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_FALSE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "owner": {"id": 485}, "assignee": {"id": 542}, "organization": {"id": 674}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 476}, "assignee": {"id": 562}, "organization": {"id": 105}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_FALSE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "owner": {"id": 440}, "assignee": {"id": 509}, "organization": {"id": 616}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "owner": {"id": 441}, "assignee": {"id": 534}, "organization": {"id": 152}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_same_org_FALSE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 363, "owner": {"id": 418}, "assignee": {"id": 562}, "organization": {"id": 662}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 323, "owner": {"id": 487}, "assignee": {"id": 526}, "organization": {"id": 117}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_same_org_FALSE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 488}, "assignee": {"id": 551}, "organization": {"id": 637}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 326, "owner": {"id": 414}, "assignee": {"id": 590}, "organization": {"id": 114}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 315, "owner": {"id": 472}, "assignee": {"id": 555}, "organization": {"id": 629}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 329, "owner": {"id": 444}, "assignee": {"id": 505}, "organization": {"id": 148}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 439}, "assignee": {"id": 539}, "organization": {"id": 625}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "owner": {"id": 402}, "assignee": {"id": 516}, "organization": {"id": 177}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "owner": {"id": 484}, "assignee": {"id": 535}, "organization": {"id": 693}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "owner": {"id": 494}, "assignee": {"id": 552}, "organization": {"id": 107}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 375, "owner": {"id": 435}, "assignee": {"id": 508}, "organization": {"id": 659}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 396, "owner": {"id": 420}, "assignee": {"id": 583}, "organization": {"id": 156}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 439}, "assignee": {"id": 573}, "organization": {"id": 677}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 373, "owner": {"id": 490}, "assignee": {"id": 575}, "organization": {"id": 187}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 397, "owner": {"id": 431}, "assignee": {"id": 563}, "organization": {"id": 680}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 482}, "assignee": {"id": 588}, "organization": {"id": 106}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "owner": {"id": 444}, "assignee": {"id": 577}, "organization": {"id": 670}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "owner": {"id": 427}, "assignee": {"id": 573}, "organization": {"id": 108}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "owner": {"id": 483}, "assignee": {"id": 562}, "organization": {"id": 639}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "owner": {"id": 420}, "assignee": {"id": 562}, "organization": {"id": 179}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 90, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 398, "owner": {"id": 464}, "assignee": {"id": 560}, "organization": {"id": 692}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 341, "owner": {"id": 479}, "assignee": {"id": 558}, "organization": {"id": 113}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 317, "owner": {"id": 463}, "assignee": {"id": 586}, "organization": {"id": 636}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"id": 398, "owner": {"id": 414}, "assignee": {"id": 509}, "organization": {"id": 181}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 383, "owner": {"id": 485}, "assignee": {"id": 563}, "organization": {"id": 658}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 363, "owner": {"id": 457}, "assignee": {"id": 507}, "organization": {"id": 169}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 449}, "assignee": {"id": 597}, "organization": {"id": 662}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "owner": {"id": 407}, "assignee": {"id": 592}, "organization": {"id": 116}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "owner": {"id": 469}, "assignee": {"id": 539}, "organization": {"id": 625}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "owner": {"id": 418}, "assignee": {"id": 578}, "organization": {"id": 125}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 392, "owner": {"id": 437}, "assignee": {"id": 561}, "organization": {"id": 670}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 321, "owner": {"id": 485}, "assignee": {"id": 514}, "organization": {"id": 102}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 485}, "assignee": {"id": 584}, "organization": {"id": 672}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 354, "owner": {"id": 468}, "assignee": {"id": 510}, "organization": {"id": 174}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 310, "owner": {"id": 480}, "assignee": {"id": 501}, "organization": {"id": 696}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 374, "owner": {"id": 455}, "assignee": {"id": 514}, "organization": {"id": 142}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 19, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "owner": {"id": 416}, "assignee": {"id": 531}, "organization": {"id": 606}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "owner": {"id": 429}, "assignee": {"id": 510}, "organization": {"id": 123}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 431}, "assignee": {"id": 580}, "organization": {"id": 617}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 348, "owner": {"id": 481}, "assignee": {"id": 537}, "organization": {"id": 103}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 387, "owner": {"id": 434}, "assignee": {"id": 573}, "organization": {"id": 677}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 317, "owner": {"id": 477}, "assignee": {"id": 547}, "organization": {"id": 194}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 395, "owner": {"id": 462}, "assignee": {"id": 570}, "organization": {"id": 639}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 491}, "assignee": {"id": 554}, "organization": {"id": 123}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": null}, "resource": {"id": 325, "owner": {"id": 45}, "assignee": {"id": 558}, "organization": {"id": 668}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": null}, "resource": {"id": 379, "owner": {"id": 0}, "assignee": {"id": 598}, "organization": {"id": 607}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": null}, "resource": {"id": 356, "owner": {"id": 78}, "assignee": {"id": 522}, "organization": {"id": 655}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": null}, "resource": {"id": 300, "owner": {"id": 51}, "assignee": {"id": 597}, "organization": {"id": 614}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "none"}, "organization": null}, "resource": {"id": 397, "owner": {"id": 50}, "assignee": {"id": 589}, "organization": {"id": 626}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": null}, "resource": {"id": 332, "owner": {"id": 415}, "assignee": {"id": 35}, "organization": {"id": 650}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": null}, "resource": {"id": 319, "owner": {"id": 495}, "assignee": {"id": 12}, "organization": {"id": 665}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": null}, "resource": {"id": 320, "owner": {"id": 417}, "assignee": {"id": 5}, "organization": {"id": 676}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": null}, "resource": {"id": 313, "owner": {"id": 492}, "assignee": {"id": 74}, "organization": {"id": 624}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": null}, "resource": {"id": 355, "owner": {"id": 428}, "assignee": {"id": 81}, "organization": {"id": 658}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": null}, "resource": {"id": 344, "owner": {"id": 484}, "assignee": {"id": 559}, "organization": {"id": 685}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": null}, "resource": {"id": 316, "owner": {"id": 414}, "assignee": {"id": 512}, "organization": {"id": 663}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": null}, "resource": {"id": 306, "owner": {"id": 454}, "assignee": {"id": 516}, "organization": {"id": 616}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": null}, "resource": {"id": 333, "owner": {"id": 469}, "assignee": {"id": 505}, "organization": {"id": 686}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": null}, "resource": {"id": 381, "owner": {"id": 483}, "assignee": {"id": 550}, "organization": {"id": 656}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 382, "owner": {"id": 82}, "assignee": {"id": 599}, "organization": {"id": 600}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 357, "owner": {"id": 21}, "assignee": {"id": 532}, "organization": {"id": 124}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "owner": {"id": 49}, "assignee": {"id": 569}, "organization": {"id": 620}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 23}, "assignee": {"id": 550}, "organization": {"id": 120}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "owner": {"id": 77}, "assignee": {"id": 552}, "organization": {"id": 673}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 380, "owner": {"id": 28}, "assignee": {"id": 541}, "organization": {"id": 154}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 82}, "assignee": {"id": 559}, "organization": {"id": 638}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 365, "owner": {"id": 13}, "assignee": {"id": 520}, "organization": {"id": 108}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 330, "owner": {"id": 51}, "assignee": {"id": 500}, "organization": {"id": 646}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 313, "owner": {"id": 8}, "assignee": {"id": 544}, "organization": {"id": 156}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 353, "owner": {"id": 65}, "assignee": {"id": 506}, "organization": {"id": 602}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 327, "owner": {"id": 36}, "assignee": {"id": 578}, "organization": {"id": 167}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "owner": {"id": 39}, "assignee": {"id": 553}, "organization": {"id": 641}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 19}, "assignee": {"id": 587}, "organization": {"id": 168}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 371, "owner": {"id": 2}, "assignee": {"id": 530}, "organization": {"id": 681}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "owner": {"id": 56}, "assignee": {"id": 544}, "organization": {"id": 107}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 305, "owner": {"id": 89}, "assignee": {"id": 599}, "organization": {"id": 664}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 398, "owner": {"id": 33}, "assignee": {"id": 583}, "organization": {"id": 183}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 327, "owner": {"id": 52}, "assignee": {"id": 538}, "organization": {"id": 685}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"id": 338, "owner": {"id": 59}, "assignee": {"id": 553}, "organization": {"id": 148}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 371, "owner": {"id": 70}, "assignee": {"id": 578}, "organization": {"id": 633}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 20}, "assignee": {"id": 518}, "organization": {"id": 148}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "owner": {"id": 58}, "assignee": {"id": 566}, "organization": {"id": 679}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 47}, "assignee": {"id": 577}, "organization": {"id": 190}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 57}, "assignee": {"id": 512}, "organization": {"id": 612}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "owner": {"id": 61}, "assignee": {"id": 563}, "organization": {"id": 166}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 88}, "assignee": {"id": 579}, "organization": {"id": 645}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 303, "owner": {"id": 40}, "assignee": {"id": 524}, "organization": {"id": 180}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 373, "owner": {"id": 28}, "assignee": {"id": 542}, "organization": {"id": 688}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 99}, "assignee": {"id": 553}, "organization": {"id": 169}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 309, "owner": {"id": 89}, "assignee": {"id": 516}, "organization": {"id": 615}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 93}, "assignee": {"id": 586}, "organization": {"id": 136}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 70}, "assignee": {"id": 531}, "organization": {"id": 662}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "owner": {"id": 71}, "assignee": {"id": 599}, "organization": {"id": 110}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "owner": {"id": 72}, "assignee": {"id": 555}, "organization": {"id": 641}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "owner": {"id": 35}, "assignee": {"id": 551}, "organization": {"id": 184}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 365, "owner": {"id": 51}, "assignee": {"id": 525}, "organization": {"id": 699}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 348, "owner": {"id": 56}, "assignee": {"id": 580}, "organization": {"id": 137}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 78}, "assignee": {"id": 588}, "organization": {"id": 606}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 377, "owner": {"id": 51}, "assignee": {"id": 554}, "organization": {"id": 172}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 82}, "assignee": {"id": 556}, "organization": {"id": 633}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 390, "owner": {"id": 52}, "assignee": {"id": 511}, "organization": {"id": 163}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 77}, "assignee": {"id": 500}, "organization": {"id": 626}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "owner": {"id": 62}, "assignee": {"id": 525}, "organization": {"id": 189}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "owner": {"id": 64}, "assignee": {"id": 544}, "organization": {"id": 664}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "owner": {"id": 1}, "assignee": {"id": 593}, "organization": {"id": 175}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 370, "owner": {"id": 88}, "assignee": {"id": 530}, "organization": {"id": 660}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 387, "owner": {"id": 98}, "assignee": {"id": 566}, "organization": {"id": 128}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 394, "owner": {"id": 10}, "assignee": {"id": 582}, "organization": {"id": 670}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 322, "owner": {"id": 84}, "assignee": {"id": 558}, "organization": {"id": 115}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"id": 350, "owner": {"id": 481}, "assignee": {"id": 66}, "organization": {"id": 692}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 365, "owner": {"id": 468}, "assignee": {"id": 64}, "organization": {"id": 133}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "owner": {"id": 407}, "assignee": {"id": 15}, "organization": {"id": 615}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 460}, "assignee": {"id": 96}, "organization": {"id": 102}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "owner": {"id": 416}, "assignee": {"id": 18}, "organization": {"id": 661}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "owner": {"id": 480}, "assignee": {"id": 94}, "organization": {"id": 193}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 426}, "assignee": {"id": 73}, "organization": {"id": 626}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 304, "owner": {"id": 474}, "assignee": {"id": 20}, "organization": {"id": 104}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 330, "owner": {"id": 412}, "assignee": {"id": 63}, "organization": {"id": 653}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 391, "owner": {"id": 470}, "assignee": {"id": 55}, "organization": {"id": 198}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"id": 330, "owner": {"id": 403}, "assignee": {"id": 8}, "organization": {"id": 663}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 319, "owner": {"id": 446}, "assignee": {"id": 62}, "organization": {"id": 197}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "owner": {"id": 433}, "assignee": {"id": 1}, "organization": {"id": 650}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 330, "owner": {"id": 413}, "assignee": {"id": 88}, "organization": {"id": 140}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "owner": {"id": 463}, "assignee": {"id": 25}, "organization": {"id": 699}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "owner": {"id": 498}, "assignee": {"id": 20}, "organization": {"id": 101}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 372, "owner": {"id": 475}, "assignee": {"id": 42}, "organization": {"id": 637}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 368, "owner": {"id": 455}, "assignee": {"id": 75}, "organization": {"id": 138}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 431}, "assignee": {"id": 67}, "organization": {"id": 636}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"id": 301, "owner": {"id": 416}, "assignee": {"id": 42}, "organization": {"id": 110}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 383, "owner": {"id": 451}, "assignee": {"id": 18}, "organization": {"id": 650}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 489}, "assignee": {"id": 62}, "organization": {"id": 191}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 449}, "assignee": {"id": 2}, "organization": {"id": 692}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "owner": {"id": 439}, "assignee": {"id": 76}, "organization": {"id": 109}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "owner": {"id": 461}, "assignee": {"id": 35}, "organization": {"id": 653}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "owner": {"id": 478}, "assignee": {"id": 94}, "organization": {"id": 139}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 327, "owner": {"id": 413}, "assignee": {"id": 57}, "organization": {"id": 669}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 310, "owner": {"id": 443}, "assignee": {"id": 1}, "organization": {"id": 136}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 357, "owner": {"id": 471}, "assignee": {"id": 2}, "organization": {"id": 654}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 331, "owner": {"id": 451}, "assignee": {"id": 15}, "organization": {"id": 105}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 353, "owner": {"id": 480}, "assignee": {"id": 78}, "organization": {"id": 688}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 377, "owner": {"id": 457}, "assignee": {"id": 65}, "organization": {"id": 107}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 409}, "assignee": {"id": 60}, "organization": {"id": 601}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "owner": {"id": 451}, "assignee": {"id": 11}, "organization": {"id": 142}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 324, "owner": {"id": 462}, "assignee": {"id": 72}, "organization": {"id": 610}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "owner": {"id": 473}, "assignee": {"id": 90}, "organization": {"id": 109}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 464}, "assignee": {"id": 39}, "organization": {"id": 600}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 462}, "assignee": {"id": 51}, "organization": {"id": 128}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 498}, "assignee": {"id": 39}, "organization": {"id": 640}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 476}, "assignee": {"id": 1}, "organization": {"id": 165}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 316, "owner": {"id": 470}, "assignee": {"id": 90}, "organization": {"id": 687}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 351, "owner": {"id": 458}, "assignee": {"id": 41}, "organization": {"id": 144}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 330, "owner": {"id": 488}, "assignee": {"id": 34}, "organization": {"id": 693}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "owner": {"id": 434}, "assignee": {"id": 52}, "organization": {"id": 158}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "owner": {"id": 404}, "assignee": {"id": 48}, "organization": {"id": 690}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "owner": {"id": 479}, "assignee": {"id": 33}, "organization": {"id": 168}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 381, "owner": {"id": 481}, "assignee": {"id": 70}, "organization": {"id": 675}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 340, "owner": {"id": 409}, "assignee": {"id": 2}, "organization": {"id": 143}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 490}, "assignee": {"id": 33}, "organization": {"id": 663}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 485}, "assignee": {"id": 8}, "organization": {"id": 146}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 381, "owner": {"id": 412}, "assignee": {"id": 584}, "organization": {"id": 696}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 406}, "assignee": {"id": 579}, "organization": {"id": 125}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 321, "owner": {"id": 455}, "assignee": {"id": 566}, "organization": {"id": 670}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "owner": {"id": 443}, "assignee": {"id": 554}, "organization": {"id": 186}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 450}, "assignee": {"id": 598}, "organization": {"id": 615}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "owner": {"id": 424}, "assignee": {"id": 531}, "organization": {"id": 198}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 355, "owner": {"id": 425}, "assignee": {"id": 500}, "organization": {"id": 674}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 380, "owner": {"id": 482}, "assignee": {"id": 563}, "organization": {"id": 150}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 370, "owner": {"id": 461}, "assignee": {"id": 562}, "organization": {"id": 698}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 456}, "assignee": {"id": 539}, "organization": {"id": 150}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 366, "owner": {"id": 449}, "assignee": {"id": 533}, "organization": {"id": 654}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 384, "owner": {"id": 444}, "assignee": {"id": 530}, "organization": {"id": 122}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "owner": {"id": 431}, "assignee": {"id": 501}, "organization": {"id": 624}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "owner": {"id": 468}, "assignee": {"id": 574}, "organization": {"id": 165}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "owner": {"id": 469}, "assignee": {"id": 594}, "organization": {"id": 691}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "owner": {"id": 488}, "assignee": {"id": 523}, "organization": {"id": 196}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 353, "owner": {"id": 448}, "assignee": {"id": 571}, "organization": {"id": 652}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 353, "owner": {"id": 434}, "assignee": {"id": 563}, "organization": {"id": 129}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 388, "owner": {"id": 430}, "assignee": {"id": 589}, "organization": {"id": 695}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 330, "owner": {"id": 457}, "assignee": {"id": 596}, "organization": {"id": 195}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 477}, "assignee": {"id": 560}, "organization": {"id": 690}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"id": 348, "owner": {"id": 423}, "assignee": {"id": 591}, "organization": {"id": 144}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "owner": {"id": 411}, "assignee": {"id": 561}, "organization": {"id": 617}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 448}, "assignee": {"id": 577}, "organization": {"id": 134}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 487}, "assignee": {"id": 594}, "organization": {"id": 610}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 369, "owner": {"id": 461}, "assignee": {"id": 506}, "organization": {"id": 135}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 326, "owner": {"id": 410}, "assignee": {"id": 503}, "organization": {"id": 606}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 327, "owner": {"id": 424}, "assignee": {"id": 599}, "organization": {"id": 116}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 327, "owner": {"id": 455}, "assignee": {"id": 571}, "organization": {"id": 636}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 312, "owner": {"id": 455}, "assignee": {"id": 509}, "organization": {"id": 110}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 310, "owner": {"id": 462}, "assignee": {"id": 576}, "organization": {"id": 641}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 300, "owner": {"id": 482}, "assignee": {"id": 567}, "organization": {"id": 121}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "owner": {"id": 409}, "assignee": {"id": 567}, "organization": {"id": 676}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "owner": {"id": 457}, "assignee": {"id": 540}, "organization": {"id": 104}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 487}, "assignee": {"id": 509}, "organization": {"id": 660}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 482}, "assignee": {"id": 574}, "organization": {"id": 167}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 337, "owner": {"id": 411}, "assignee": {"id": 522}, "organization": {"id": 632}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 306, "owner": {"id": 424}, "assignee": {"id": 597}, "organization": {"id": 125}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 376, "owner": {"id": 479}, "assignee": {"id": 577}, "organization": {"id": 670}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 330, "owner": {"id": 469}, "assignee": {"id": 503}, "organization": {"id": 150}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 395, "owner": {"id": 403}, "assignee": {"id": 582}, "organization": {"id": 699}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"id": 330, "owner": {"id": 413}, "assignee": {"id": 552}, "organization": {"id": 177}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "owner": {"id": 437}, "assignee": {"id": 538}, "organization": {"id": 638}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 431}, "assignee": {"id": 575}, "organization": {"id": 177}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 459}, "assignee": {"id": 586}, "organization": {"id": 661}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "owner": {"id": 468}, "assignee": {"id": 502}, "organization": {"id": 196}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 363, "owner": {"id": 460}, "assignee": {"id": 500}, "organization": {"id": 683}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"id": 321, "owner": {"id": 482}, "assignee": {"id": 521}, "organization": {"id": 101}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 378, "owner": {"id": 478}, "assignee": {"id": 532}, "organization": {"id": 650}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 453}, "assignee": {"id": 594}, "organization": {"id": 191}}} -} - -test_scope_UPDATE_ORGANIZATION_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": null}, "resource": {"id": 368, "owner": {"id": 77}, "assignee": {"id": 529}, "organization": {"id": 659}}} -} - -test_scope_UPDATE_ORGANIZATION_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 81, "privilege": "business"}, "organization": null}, "resource": {"id": 366, "owner": {"id": 81}, "assignee": {"id": 514}, "organization": {"id": 654}}} -} - -test_scope_UPDATE_ORGANIZATION_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": null}, "resource": {"id": 380, "owner": {"id": 96}, "assignee": {"id": 587}, "organization": {"id": 648}}} -} - -test_scope_UPDATE_ORGANIZATION_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": null}, "resource": {"id": 334, "owner": {"id": 57}, "assignee": {"id": 589}, "organization": {"id": 603}}} -} - -test_scope_UPDATE_ORGANIZATION_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": null}, "resource": {"id": 339, "owner": {"id": 21}, "assignee": {"id": 545}, "organization": {"id": 665}}} -} - -test_scope_UPDATE_ORGANIZATION_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": null}, "resource": {"id": 391, "owner": {"id": 426}, "assignee": {"id": 68}, "organization": {"id": 673}}} -} - -test_scope_UPDATE_ORGANIZATION_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": null}, "resource": {"id": 397, "owner": {"id": 463}, "assignee": {"id": 62}, "organization": {"id": 657}}} -} - -test_scope_UPDATE_ORGANIZATION_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": null}, "resource": {"id": 307, "owner": {"id": 432}, "assignee": {"id": 38}, "organization": {"id": 605}}} -} - -test_scope_UPDATE_ORGANIZATION_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": null}, "resource": {"id": 339, "owner": {"id": 450}, "assignee": {"id": 50}, "organization": {"id": 683}}} -} - -test_scope_UPDATE_ORGANIZATION_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": null}, "resource": {"id": 397, "owner": {"id": 456}, "assignee": {"id": 76}, "organization": {"id": 617}}} -} - -test_scope_UPDATE_ORGANIZATION_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": null}, "resource": {"id": 373, "owner": {"id": 444}, "assignee": {"id": 520}, "organization": {"id": 689}}} -} - -test_scope_UPDATE_ORGANIZATION_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": null}, "resource": {"id": 395, "owner": {"id": 441}, "assignee": {"id": 547}, "organization": {"id": 659}}} -} - -test_scope_UPDATE_ORGANIZATION_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": null}, "resource": {"id": 398, "owner": {"id": 416}, "assignee": {"id": 546}, "organization": {"id": 628}}} -} - -test_scope_UPDATE_ORGANIZATION_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": null}, "resource": {"id": 348, "owner": {"id": 478}, "assignee": {"id": 576}, "organization": {"id": 636}}} -} - -test_scope_UPDATE_ORGANIZATION_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": null}, "resource": {"id": 307, "owner": {"id": 497}, "assignee": {"id": 553}, "organization": {"id": 637}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_same_org_FALSE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 323, "owner": {"id": 90}, "assignee": {"id": 581}, "organization": {"id": 607}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 358, "owner": {"id": 1}, "assignee": {"id": 568}, "organization": {"id": 132}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_same_org_FALSE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 99}, "assignee": {"id": 597}, "organization": {"id": 631}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "owner": {"id": 64}, "assignee": {"id": 516}, "organization": {"id": 121}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_FALSE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "owner": {"id": 95}, "assignee": {"id": 509}, "organization": {"id": 601}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 28}, "assignee": {"id": 523}, "organization": {"id": 186}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_same_org_FALSE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 322, "owner": {"id": 32}, "assignee": {"id": 524}, "organization": {"id": 623}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 321, "owner": {"id": 56}, "assignee": {"id": 543}, "organization": {"id": 178}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_same_org_FALSE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"id": 374, "owner": {"id": 9}, "assignee": {"id": 593}, "organization": {"id": 694}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 69}, "assignee": {"id": 539}, "organization": {"id": 157}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 39}, "assignee": {"id": 549}, "organization": {"id": 602}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 345, "owner": {"id": 21}, "assignee": {"id": 515}, "organization": {"id": 137}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "owner": {"id": 33}, "assignee": {"id": 514}, "organization": {"id": 690}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "owner": {"id": 43}, "assignee": {"id": 576}, "organization": {"id": 135}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "owner": {"id": 52}, "assignee": {"id": 531}, "organization": {"id": 639}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "owner": {"id": 34}, "assignee": {"id": 525}, "organization": {"id": 105}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 375, "owner": {"id": 44}, "assignee": {"id": 549}, "organization": {"id": 631}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 382, "owner": {"id": 6}, "assignee": {"id": 508}, "organization": {"id": 170}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 4}, "assignee": {"id": 511}, "organization": {"id": 641}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 321, "owner": {"id": 10}, "assignee": {"id": 543}, "organization": {"id": 124}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 313, "owner": {"id": 12}, "assignee": {"id": 514}, "organization": {"id": 694}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 359, "owner": {"id": 26}, "assignee": {"id": 533}, "organization": {"id": 180}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 28}, "assignee": {"id": 584}, "organization": {"id": 678}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "owner": {"id": 16}, "assignee": {"id": 564}, "organization": {"id": 160}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "owner": {"id": 26}, "assignee": {"id": 580}, "organization": {"id": 688}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "owner": {"id": 4}, "assignee": {"id": 553}, "organization": {"id": 106}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 381, "owner": {"id": 30}, "assignee": {"id": 510}, "organization": {"id": 606}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 351, "owner": {"id": 52}, "assignee": {"id": 588}, "organization": {"id": 119}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 337, "owner": {"id": 84}, "assignee": {"id": 599}, "organization": {"id": 617}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 379, "owner": {"id": 16}, "assignee": {"id": 556}, "organization": {"id": 167}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 334, "owner": {"id": 40}, "assignee": {"id": 549}, "organization": {"id": 657}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 363, "owner": {"id": 9}, "assignee": {"id": 559}, "organization": {"id": 111}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "owner": {"id": 48}, "assignee": {"id": 586}, "organization": {"id": 692}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "owner": {"id": 92}, "assignee": {"id": 524}, "organization": {"id": 121}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 348, "owner": {"id": 87}, "assignee": {"id": 560}, "organization": {"id": 658}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "owner": {"id": 49}, "assignee": {"id": 518}, "organization": {"id": 142}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 37}, "assignee": {"id": 575}, "organization": {"id": 699}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 300, "owner": {"id": 32}, "assignee": {"id": 548}, "organization": {"id": 149}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 325, "owner": {"id": 70}, "assignee": {"id": 527}, "organization": {"id": 677}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 382, "owner": {"id": 84}, "assignee": {"id": 537}, "organization": {"id": 127}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 319, "owner": {"id": 29}, "assignee": {"id": 597}, "organization": {"id": 676}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 302, "owner": {"id": 89}, "assignee": {"id": 539}, "organization": {"id": 164}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "owner": {"id": 25}, "assignee": {"id": 500}, "organization": {"id": 619}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "owner": {"id": 1}, "assignee": {"id": 564}, "organization": {"id": 189}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 50, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "owner": {"id": 50}, "assignee": {"id": 516}, "organization": {"id": 677}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "owner": {"id": 21}, "assignee": {"id": 506}, "organization": {"id": 134}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 365, "owner": {"id": 62}, "assignee": {"id": 570}, "organization": {"id": 612}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 38}, "assignee": {"id": 527}, "organization": {"id": 137}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 370, "owner": {"id": 54}, "assignee": {"id": 589}, "organization": {"id": 619}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 337, "owner": {"id": 81}, "assignee": {"id": 589}, "organization": {"id": 194}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_same_org_FALSE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 322, "owner": {"id": 493}, "assignee": {"id": 0}, "organization": {"id": 679}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 352, "owner": {"id": 487}, "assignee": {"id": 16}, "organization": {"id": 146}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_FALSE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "owner": {"id": 420}, "assignee": {"id": 96}, "organization": {"id": 601}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "owner": {"id": 434}, "assignee": {"id": 82}, "organization": {"id": 168}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_FALSE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 493}, "assignee": {"id": 58}, "organization": {"id": 697}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 460}, "assignee": {"id": 61}, "organization": {"id": 115}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_same_org_FALSE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 334, "owner": {"id": 494}, "assignee": {"id": 84}, "organization": {"id": 698}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 375, "owner": {"id": 474}, "assignee": {"id": 1}, "organization": {"id": 180}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_same_org_FALSE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 357, "owner": {"id": 456}, "assignee": {"id": 78}, "organization": {"id": 611}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"id": 357, "owner": {"id": 425}, "assignee": {"id": 74}, "organization": {"id": 197}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 377, "owner": {"id": 427}, "assignee": {"id": 57}, "organization": {"id": 624}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 381, "owner": {"id": 499}, "assignee": {"id": 42}, "organization": {"id": 186}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "owner": {"id": 436}, "assignee": {"id": 7}, "organization": {"id": 637}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 476}, "assignee": {"id": 69}, "organization": {"id": 190}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 371, "owner": {"id": 444}, "assignee": {"id": 55}, "organization": {"id": 616}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "owner": {"id": 443}, "assignee": {"id": 80}, "organization": {"id": 197}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 369, "owner": {"id": 494}, "assignee": {"id": 79}, "organization": {"id": 668}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 94, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 389, "owner": {"id": 474}, "assignee": {"id": 94}, "organization": {"id": 113}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 369, "owner": {"id": 454}, "assignee": {"id": 33}, "organization": {"id": 679}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 436}, "assignee": {"id": 69}, "organization": {"id": 174}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 324, "owner": {"id": 401}, "assignee": {"id": 94}, "organization": {"id": 605}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 359, "owner": {"id": 492}, "assignee": {"id": 23}, "organization": {"id": 179}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "owner": {"id": 409}, "assignee": {"id": 54}, "organization": {"id": 678}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "owner": {"id": 466}, "assignee": {"id": 0}, "organization": {"id": 152}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "owner": {"id": 445}, "assignee": {"id": 6}, "organization": {"id": 613}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "owner": {"id": 496}, "assignee": {"id": 58}, "organization": {"id": 116}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 340, "owner": {"id": 411}, "assignee": {"id": 91}, "organization": {"id": 697}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 423}, "assignee": {"id": 8}, "organization": {"id": 170}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 451}, "assignee": {"id": 50}, "organization": {"id": 601}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 341, "owner": {"id": 404}, "assignee": {"id": 41}, "organization": {"id": 125}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 323, "owner": {"id": 462}, "assignee": {"id": 33}, "organization": {"id": 627}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 314, "owner": {"id": 417}, "assignee": {"id": 34}, "organization": {"id": 122}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "owner": {"id": 439}, "assignee": {"id": 40}, "organization": {"id": 685}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 414}, "assignee": {"id": 31}, "organization": {"id": 140}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 499}, "assignee": {"id": 15}, "organization": {"id": 627}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 412}, "assignee": {"id": 3}, "organization": {"id": 152}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 481}, "assignee": {"id": 88}, "organization": {"id": 694}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 348, "owner": {"id": 442}, "assignee": {"id": 78}, "organization": {"id": 131}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 427}, "assignee": {"id": 84}, "organization": {"id": 631}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 332, "owner": {"id": 418}, "assignee": {"id": 32}, "organization": {"id": 128}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 356, "owner": {"id": 460}, "assignee": {"id": 18}, "organization": {"id": 693}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 368, "owner": {"id": 471}, "assignee": {"id": 88}, "organization": {"id": 141}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "owner": {"id": 458}, "assignee": {"id": 99}, "organization": {"id": 620}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "owner": {"id": 409}, "assignee": {"id": 70}, "organization": {"id": 165}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 486}, "assignee": {"id": 43}, "organization": {"id": 633}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "owner": {"id": 412}, "assignee": {"id": 68}, "organization": {"id": 182}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 315, "owner": {"id": 426}, "assignee": {"id": 18}, "organization": {"id": 608}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 330, "owner": {"id": 481}, "assignee": {"id": 42}, "organization": {"id": 143}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 323, "owner": {"id": 428}, "assignee": {"id": 54}, "organization": {"id": 683}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 437}, "assignee": {"id": 49}, "organization": {"id": 198}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_same_org_FALSE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 380, "owner": {"id": 445}, "assignee": {"id": 558}, "organization": {"id": 641}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 437}, "assignee": {"id": 510}, "organization": {"id": 100}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_FALSE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 402}, "assignee": {"id": 529}, "organization": {"id": 630}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "owner": {"id": 430}, "assignee": {"id": 556}, "organization": {"id": 165}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_FALSE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "owner": {"id": 485}, "assignee": {"id": 552}, "organization": {"id": 665}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 421}, "assignee": {"id": 580}, "organization": {"id": 169}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_same_org_FALSE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 306, "owner": {"id": 435}, "assignee": {"id": 544}, "organization": {"id": 604}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 384, "owner": {"id": 439}, "assignee": {"id": 581}, "organization": {"id": 103}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_same_org_FALSE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 395, "owner": {"id": 424}, "assignee": {"id": 565}, "organization": {"id": 690}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 388, "owner": {"id": 467}, "assignee": {"id": 556}, "organization": {"id": 160}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 304, "owner": {"id": 482}, "assignee": {"id": 516}, "organization": {"id": 617}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 300, "owner": {"id": 493}, "assignee": {"id": 598}, "organization": {"id": 123}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "owner": {"id": 496}, "assignee": {"id": 584}, "organization": {"id": 641}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 475}, "assignee": {"id": 577}, "organization": {"id": 131}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 390, "owner": {"id": 407}, "assignee": {"id": 532}, "organization": {"id": 675}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "owner": {"id": 422}, "assignee": {"id": 571}, "organization": {"id": 159}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 363, "owner": {"id": 483}, "assignee": {"id": 525}, "organization": {"id": 637}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 340, "owner": {"id": 478}, "assignee": {"id": 526}, "organization": {"id": 112}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 372, "owner": {"id": 401}, "assignee": {"id": 511}, "organization": {"id": 623}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 327, "owner": {"id": 446}, "assignee": {"id": 556}, "organization": {"id": 176}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 399, "owner": {"id": 443}, "assignee": {"id": 550}, "organization": {"id": 619}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 312, "owner": {"id": 477}, "assignee": {"id": 587}, "organization": {"id": 181}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "owner": {"id": 439}, "assignee": {"id": 577}, "organization": {"id": 688}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "owner": {"id": 481}, "assignee": {"id": 518}, "organization": {"id": 129}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "owner": {"id": 403}, "assignee": {"id": 568}, "organization": {"id": 603}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "owner": {"id": 404}, "assignee": {"id": 556}, "organization": {"id": 130}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 477}, "assignee": {"id": 512}, "organization": {"id": 655}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 430}, "assignee": {"id": 519}, "organization": {"id": 160}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 479}, "assignee": {"id": 529}, "organization": {"id": 634}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 352, "owner": {"id": 417}, "assignee": {"id": 522}, "organization": {"id": 170}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 393, "owner": {"id": 418}, "assignee": {"id": 553}, "organization": {"id": 661}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 312, "owner": {"id": 431}, "assignee": {"id": 537}, "organization": {"id": 188}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "owner": {"id": 470}, "assignee": {"id": 560}, "organization": {"id": 692}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 485}, "assignee": {"id": 510}, "organization": {"id": 187}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "owner": {"id": 469}, "assignee": {"id": 569}, "organization": {"id": 686}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 422}, "assignee": {"id": 555}, "organization": {"id": 161}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 324, "owner": {"id": 404}, "assignee": {"id": 508}, "organization": {"id": 646}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 370, "owner": {"id": 444}, "assignee": {"id": 587}, "organization": {"id": 133}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 354, "owner": {"id": 476}, "assignee": {"id": 523}, "organization": {"id": 646}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 352, "owner": {"id": 473}, "assignee": {"id": 545}, "organization": {"id": 175}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 311, "owner": {"id": 432}, "assignee": {"id": 596}, "organization": {"id": 654}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 392, "owner": {"id": 406}, "assignee": {"id": 535}, "organization": {"id": 148}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "owner": {"id": 410}, "assignee": {"id": 562}, "organization": {"id": 637}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "owner": {"id": 442}, "assignee": {"id": 598}, "organization": {"id": 120}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "owner": {"id": 409}, "assignee": {"id": 519}, "organization": {"id": 686}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "owner": {"id": 428}, "assignee": {"id": 509}, "organization": {"id": 195}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 319, "owner": {"id": 489}, "assignee": {"id": 506}, "organization": {"id": 685}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 373, "owner": {"id": 439}, "assignee": {"id": 515}, "organization": {"id": 178}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"id": 382, "owner": {"id": 421}, "assignee": {"id": 572}, "organization": {"id": 625}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 404}, "assignee": {"id": 533}, "organization": {"id": 121}}} -} - - - -# projects_test.gen.rego.py -# # Copyright (C) 2021-2022 Intel Corporation -# # -# # SPDX-License-Identifier: MIT -# -# # Copyright (C) 2021-2022 Intel Corporation -# # -# # SPDX-License-Identifier: MIT -# -# import csv -# import json -# import random -# import sys -# import os -# from itertools import product -# -# NAME = 'projects' -# -# def read_rules(name): -# rules = [] -# with open(f'{name}.csv') as f: -# reader = csv.DictReader(f) -# for row in reader: -# row = {k.lower():v.lower().replace('n/a','na') for k,v in row.items()} -# row['limit'] = row['limit'].replace('none', 'None') -# found = False -# for col,val in row.items(): -# if col in ["limit", "method", "url"]: -# continue -# complex_val = [v.strip() for v in val.split(',')] -# if len(complex_val) > 1: -# found = True -# for item in complex_val: -# new_row = row.copy() -# new_row[col] = item -# rules.append(new_row) -# if not found: -# rules.append(row) -# -# return rules -# -# simple_rules = read_rules(NAME) -# -# SCOPES = {rule['scope'] for rule in simple_rules} -# CONTEXTS = ['sandbox', 'organization'] -# OWNERSHIPS = ['owner', 'assignee', 'none'] -# GROUPS = ['admin', 'business', 'user', 'worker', 'none'] -# ORG_ROLES = ['owner', 'maintainer', 'supervisor', 'worker', None] -# SAME_ORG = [False, True] -# -# def RESOURCES(scope): -# if scope == 'list': -# return [None] -# elif scope in ['create', 'import:backup']: -# return [{ -# "owner": { "id": random.randrange(400, 500) }, -# "assignee": { "id": random.randrange(500, 600) }, -# "organization": { -# "id": random.randrange(600, 700) -# }, -# "user": { -# "num_resources": count -# } -# } for count in (0, 1, 3, 10)] -# else: -# return [{ -# "id": random.randrange(300, 400), -# "owner": { "id": random.randrange(400, 500) }, -# "assignee": { "id": random.randrange(500, 600) }, -# "organization": { -# "id": random.randrange(600, 700) -# } -# }] -# -# -# def is_same_org(org1, org2): -# if org1 != None and org2 != None: -# return org1['id'] == org2['id'] -# elif org1 == None and org2 == None: -# return True -# else: -# return False -# -# def eval_rule(scope, context, ownership, privilege, membership, data): -# if privilege == 'admin': -# return True -# -# rules = list(filter(lambda r: scope == r['scope'], simple_rules)) -# rules = list(filter(lambda r: r['context'] == 'na' or context == r['context'], rules)) -# rules = list(filter(lambda r: r['ownership'] == 'na' or ownership == r['ownership'], rules)) -# rules = list(filter(lambda r: r['membership'] == 'na' or -# ORG_ROLES.index(membership) <= ORG_ROLES.index(r['membership']), rules)) -# rules = list(filter(lambda r: GROUPS.index(privilege) <= GROUPS.index(r['privilege']), rules)) -# resource = data['resource'] -# rules = list(filter(lambda r: not r['limit'] or eval(r['limit'], {'resource': resource}), rules)) -# if not is_same_org(data['auth']['organization'], data['resource']['organization']) and context != 'sandbox': -# return False -# -# return bool(rules) -# -# def get_data(scope, context, ownership, privilege, membership, resource, same_org): -# data = { -# "scope": scope, -# "auth": { -# "user": { "id": random.randrange(0,100), "privilege": privilege }, -# "organization": { -# "id": random.randrange(100,200), -# "owner": { "id": random.randrange(200, 300) }, -# "user": { "role": membership } -# } if context == 'organization' else None -# }, -# "resource": resource -# } -# -# user_id = data['auth']['user']['id'] -# if context == 'organization': -# org_id = data['auth']['organization']['id'] -# if data['auth']['organization']['user']['role'] == 'owner': -# data['auth']['organization']['owner']['id'] = user_id -# -# if same_org: -# data['resource']['organization']['id'] = org_id -# -# if ownership == 'owner': -# data['resource']['owner']['id'] = user_id -# -# if ownership == 'assignee': -# data['resource']['assignee']['id'] = user_id -# -# return data -# -# def _get_name(prefix, **kwargs): -# name = prefix -# for k,v in kwargs.items(): -# prefix = '_' + str(k) -# if isinstance(v, dict): -# if 'id' in v: -# v = v.copy() -# v.pop('id') -# if v: -# name += _get_name(prefix, **v) -# else: -# name += f'{prefix}_{str(v).upper().replace(":", "_")}' -# -# return name -# -# def get_name(scope, context, ownership, privilege, membership, resource, same_org): -# return _get_name('test', **locals()) -# -# def is_valid(scope, context, ownership, privilege, membership, resource, same_org): -# if context == "sandbox" and membership: -# return False -# if scope == 'list' and ownership != 'None': -# return False -# if context == 'sandbox' and same_org == False: -# return False -# -# return True -# -# def gen_test_rego(name): -# with open(f'{name}_test.gen.rego', 'wt') as f: -# f.write(f'package {name}\n\n') -# for scope, context, ownership, privilege, membership, same_org in product( -# SCOPES, CONTEXTS, OWNERSHIPS, GROUPS, ORG_ROLES, SAME_ORG): -# for resource in RESOURCES(scope): -# if not is_valid(scope, context, ownership, privilege, membership, resource, same_org): -# continue -# -# data = get_data(scope, context, ownership, privilege, membership, resource, same_org) -# test_name = get_name(scope, context, ownership, privilege, membership, resource, same_org) -# result = eval_rule(scope, context, ownership, privilege, membership, data) -# f.write('{test_name} {{\n {allow} with input as {data}\n}}\n\n'.format( -# test_name=test_name, allow='allow' if result else 'not allow', -# data=json.dumps(data))) -# -# # Write the script which is used to generate the file -# with open(sys.argv[0]) as this_file: -# f.write(f'\n\n# {os.path.split(sys.argv[0])[1]}\n') -# for line in this_file: -# if line.strip(): -# f.write(f'# {line}') -# else: -# f.write(f'#\n') -# -# # Write rules which are used to generate the file -# with open(f'{name}.csv') as rego_file: -# f.write(f'\n\n# {name}.csv\n') -# for line in rego_file: -# if line.strip(): -# f.write(f'# {line}') -# else: -# f.write(f'#\n') -# -# gen_test_rego(NAME) - - -# projects.csv -# Scope,Resource,Context,Ownership,Limit,Method,URL,Privilege,Membership -# create,Project,Sandbox,N/A,resource['user']['num_resources'] < 3,POST,/projects,User,N/A -# create,Project,Organization,N/A,resource['user']['num_resources'] < 3,POST,/projects,User,Supervisor -# create,Project,Sandbox,N/A,,POST,/projects,Business,N/A -# create,Project,Organization,N/A,,POST,/projects,Business,Supervisor -# import:backup,Project,Sandbox,N/A,resource['user']['num_resources'] < 3,POST,/projects/backup,User,N/A -# import:backup,Project,Organization,N/A,resource['user']['num_resources'] < 3,POST,/projects/backup,User,Supervisor -# import:backup,Project,Sandbox,N/A,,POST,/projects/backup,Business,N/A -# import:backup,Project,Organization,N/A,,POST,/projects/backup,Business,Supervisor -# list,N/A,Sandbox,N/A,,GET,/projects,None,N/A -# list,N/A,Organization,N/A,,GET,/projects,None,Worker -# view,Project,Sandbox,None,,GET,"/projects/{id}, /projects/{id}/tasks",Admin,N/A -# view,Project,Sandbox,"Owner, Assignee",,GET,"/projects/{id}, /projects/{id}/tasks",None,N/A -# view,Project,Organization,None,,GET,"/projects/{id}, /projects/{id}/tasks",User,Maintainer -# view,Project,Organization,"Owner, Assignee",,GET,"/projects/{id}, /projects/{id}/tasks",None,Worker -# delete,Project,Sandbox,"None, Assignee",,DELETE,/projects/{id},Admin,N/A -# delete,Project,Sandbox,Owner,,DELETE,/projects/{id},Worker,N/A -# delete,Project,Organization,Owner,,DELETE,/projects/{id},Worker,Worker -# delete,Project,Organization,"None, Assignee",,DELETE,/projects/{id},User,Maintainer -# update:desc,Project,Sandbox,None,,PATCH,/projects/{id},Admin,N/A -# update:desc,Project,Sandbox,"Owner, Assignee",,PATCH,/projects/{id},Worker,N/A -# update:desc,Project,Organization,"Owner, Assignee",,PATCH,/projects/{id},Worker,Worker -# update:desc,Project,Organization,None,,PATCH,/projects/{id},User,Maintainer -# update:assignee,"Project, User",Sandbox,"None, Assignee",,PATCH,/projects/{id},Admin,N/A -# update:assignee,"Project, User",Sandbox,Owner,,PATCH,/projects/{id},Worker,N/A -# update:assignee,"Project, User",Organization,Owner,,PATCH,/projects/{id},Worker,Worker -# update:assignee,"Project, User",Organization,"None, Assignee",,PATCH,/projects/{id},User,Maintainer -# update:owner,"Project, User",Sandbox,"None, Assignee, Owner",,PATCH,/projects/{id},Admin,N/A -# update:owner,"Project, User",Organization,"None, Assignee",,PATCH,/projects/{id},User,Maintainer -# update:owner,"Project, User",Organization,Owner,,PATCH,/projects/{id},Worker,Maintainer -# export:annotations,Project,Sandbox,None,,GET,/projects/{id}/annotations,Admin,N/A -# export:annotations,Project,Sandbox,"Owner, Assignee",,GET,/projects/{id}/annotations,None,N/A -# export:annotations,Project,Organization,"Owner, Assignee",,GET,/projects/{id}/annotations,None,Worker -# export:annotations,Project,Organization,None,,GET,/projects/{id}/annotations,User,Maintainer -# export:dataset,Project,Sandbox,None,,GET,/projects/{id}/dataset,Admin,N/A -# export:dataset,Project,Sandbox,"Owner, Assignee",,GET,/projects/{id}/dataset,None,N/A -# export:dataset,Project,Organization,"Owner, Assignee",,GET,/projects/{id}/dataset,None,Worker -# export:dataset,Project,Organization,None,,GET,/projects/{id}/dataset,User,Maintainer -# import:dataset,Project,Sandbox,None,,POST,/projects/{id}/dataset,Admin,N/A -# import:dataset,Project,Sandbox,"Owner, Assignee",,POST,/projects/{id}/dataset,Worker,N/A -# import:dataset,Project,Organization,"Owner, Assignee",,POST,/projects/{id}/dataset,Worker,Worker -# import:dataset,Project,Organization,None,,POST,/projects/{id}/dataset,User,Maintainer -# export:backup,Project,Sandbox,None,,GET,/projects/{id}/backup,Admin,N/A -# export:backup,Project,Sandbox,"Owner, Assignee",,GET,/projects/{id}/backup,None,N/A -# export:backup,Project,Organization,"Owner, Assignee",,GET,/projects/{id}/backup,None,Worker -# export:backup,Project,Organization,None,,GET,/projects/{id}/backup,User,Maintainer -# update:organization,"Project, Organization",Sandbox,"None, Assignee",,PATCH,/projects/{id},Admin,N/A -# update:organization,"Project, Organization",Sandbox,Owner,,PATCH,/projects/{id},Worker,N/A -# update:organization,"Project, Organization",Organization,"None, Assignee",,PATCH,/projects/{id},User,Maintainer -# update:organization,"Project, Organization",Organization,Owner,,PATCH,/projects/{id},Worker,Worker \ No newline at end of file diff --git a/cvat/apps/iam/rules/server_test.gen.rego b/cvat/apps/iam/rules/server_test.gen.rego deleted file mode 100644 index 4424d917..00000000 --- a/cvat/apps/iam/rules/server_test.gen.rego +++ /dev/null @@ -1,556 +0,0 @@ -package server - -test_scope_LIST_CONTENT_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": null}} -} - -test_scope_LIST_CONTENT_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": null}} -} - -test_scope_LIST_CONTENT_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": null}} -} - -test_scope_LIST_CONTENT_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": null}} -} - -test_scope_LIST_CONTENT_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": null}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 42}, "user": {"role": "owner"}}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 223}, "user": {"role": "maintainer"}}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 266}, "user": {"role": "supervisor"}}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 260}, "user": {"role": "worker"}}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 56}, "user": {"role": "owner"}}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 258}, "user": {"role": "maintainer"}}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 218}, "user": {"role": "supervisor"}}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 228}, "user": {"role": "worker"}}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 4}, "user": {"role": "owner"}}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 252}, "user": {"role": "maintainer"}}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 299}, "user": {"role": "supervisor"}}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 288}, "user": {"role": "worker"}}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 83}, "user": {"role": "owner"}}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 285}, "user": {"role": "maintainer"}}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 236}, "user": {"role": "supervisor"}}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER { - allow with input as {"scope": "list:content", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 275}, "user": {"role": "worker"}}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 13}, "user": {"role": "owner"}}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 236}, "user": {"role": "maintainer"}}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 259}, "user": {"role": "supervisor"}}}} -} - -test_scope_LIST_CONTENT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER { - not allow with input as {"scope": "list:content", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 271}, "user": {"role": "worker"}}}} -} - -test_scope_SEND_LOGS_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE { - allow with input as {"scope": "send:logs", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": null}} -} - -test_scope_SEND_LOGS_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE { - allow with input as {"scope": "send:logs", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": null}} -} - -test_scope_SEND_LOGS_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE { - allow with input as {"scope": "send:logs", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": null}} -} - -test_scope_SEND_LOGS_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE { - allow with input as {"scope": "send:logs", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": null}} -} - -test_scope_SEND_LOGS_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE { - allow with input as {"scope": "send:logs", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": null}} -} - -test_scope_SEND_LOGS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER { - allow with input as {"scope": "send:logs", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 90}, "user": {"role": "owner"}}}} -} - -test_scope_SEND_LOGS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER { - allow with input as {"scope": "send:logs", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 207}, "user": {"role": "maintainer"}}}} -} - -test_scope_SEND_LOGS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR { - allow with input as {"scope": "send:logs", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 229}, "user": {"role": "supervisor"}}}} -} - -test_scope_SEND_LOGS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER { - allow with input as {"scope": "send:logs", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 239}, "user": {"role": "worker"}}}} -} - -test_scope_SEND_LOGS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER { - allow with input as {"scope": "send:logs", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 63}, "user": {"role": "owner"}}}} -} - -test_scope_SEND_LOGS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER { - allow with input as {"scope": "send:logs", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 239}, "user": {"role": "maintainer"}}}} -} - -test_scope_SEND_LOGS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR { - allow with input as {"scope": "send:logs", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 226}, "user": {"role": "supervisor"}}}} -} - -test_scope_SEND_LOGS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER { - allow with input as {"scope": "send:logs", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 266}, "user": {"role": "worker"}}}} -} - -test_scope_SEND_LOGS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER { - allow with input as {"scope": "send:logs", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 57}, "user": {"role": "owner"}}}} -} - -test_scope_SEND_LOGS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER { - allow with input as {"scope": "send:logs", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 280}, "user": {"role": "maintainer"}}}} -} - -test_scope_SEND_LOGS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR { - allow with input as {"scope": "send:logs", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 243}, "user": {"role": "supervisor"}}}} -} - -test_scope_SEND_LOGS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER { - allow with input as {"scope": "send:logs", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 273}, "user": {"role": "worker"}}}} -} - -test_scope_SEND_LOGS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER { - allow with input as {"scope": "send:logs", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 80}, "user": {"role": "owner"}}}} -} - -test_scope_SEND_LOGS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER { - allow with input as {"scope": "send:logs", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 233}, "user": {"role": "maintainer"}}}} -} - -test_scope_SEND_LOGS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR { - allow with input as {"scope": "send:logs", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 293}, "user": {"role": "supervisor"}}}} -} - -test_scope_SEND_LOGS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER { - allow with input as {"scope": "send:logs", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 285}, "user": {"role": "worker"}}}} -} - -test_scope_SEND_LOGS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER { - allow with input as {"scope": "send:logs", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 57}, "user": {"role": "owner"}}}} -} - -test_scope_SEND_LOGS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER { - allow with input as {"scope": "send:logs", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 271}, "user": {"role": "maintainer"}}}} -} - -test_scope_SEND_LOGS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR { - allow with input as {"scope": "send:logs", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 236}, "user": {"role": "supervisor"}}}} -} - -test_scope_SEND_LOGS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER { - allow with input as {"scope": "send:logs", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 273}, "user": {"role": "worker"}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": null}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": null}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": null}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": null}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": null}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 24}, "user": {"role": "owner"}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 247}, "user": {"role": "maintainer"}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 254}, "user": {"role": "supervisor"}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 261}, "user": {"role": "worker"}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 22}, "user": {"role": "owner"}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 233}, "user": {"role": "maintainer"}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 200}, "user": {"role": "supervisor"}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 283}, "user": {"role": "worker"}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 73}, "user": {"role": "owner"}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 205}, "user": {"role": "maintainer"}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 203}, "user": {"role": "supervisor"}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 239}, "user": {"role": "worker"}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 80}, "user": {"role": "owner"}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 277}, "user": {"role": "maintainer"}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 287}, "user": {"role": "supervisor"}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 258}, "user": {"role": "worker"}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 44}, "user": {"role": "owner"}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 213}, "user": {"role": "maintainer"}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 227}, "user": {"role": "supervisor"}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 217}, "user": {"role": "worker"}}}} -} - -test_scope_SEND_EXCEPTION_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE { - allow with input as {"scope": "send:exception", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": null}} -} - -test_scope_SEND_EXCEPTION_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE { - allow with input as {"scope": "send:exception", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": null}} -} - -test_scope_SEND_EXCEPTION_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE { - allow with input as {"scope": "send:exception", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": null}} -} - -test_scope_SEND_EXCEPTION_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE { - allow with input as {"scope": "send:exception", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": null}} -} - -test_scope_SEND_EXCEPTION_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE { - allow with input as {"scope": "send:exception", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": null}} -} - -test_scope_SEND_EXCEPTION_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER { - allow with input as {"scope": "send:exception", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 27}, "user": {"role": "owner"}}}} -} - -test_scope_SEND_EXCEPTION_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER { - allow with input as {"scope": "send:exception", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 236}, "user": {"role": "maintainer"}}}} -} - -test_scope_SEND_EXCEPTION_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR { - allow with input as {"scope": "send:exception", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 260}, "user": {"role": "supervisor"}}}} -} - -test_scope_SEND_EXCEPTION_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER { - allow with input as {"scope": "send:exception", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 209}, "user": {"role": "worker"}}}} -} - -test_scope_SEND_EXCEPTION_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER { - allow with input as {"scope": "send:exception", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 56}, "user": {"role": "owner"}}}} -} - -test_scope_SEND_EXCEPTION_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER { - allow with input as {"scope": "send:exception", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 261}, "user": {"role": "maintainer"}}}} -} - -test_scope_SEND_EXCEPTION_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR { - allow with input as {"scope": "send:exception", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 217}, "user": {"role": "supervisor"}}}} -} - -test_scope_SEND_EXCEPTION_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER { - allow with input as {"scope": "send:exception", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 201}, "user": {"role": "worker"}}}} -} - -test_scope_SEND_EXCEPTION_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER { - allow with input as {"scope": "send:exception", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 68}, "user": {"role": "owner"}}}} -} - -test_scope_SEND_EXCEPTION_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER { - allow with input as {"scope": "send:exception", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 270}, "user": {"role": "maintainer"}}}} -} - -test_scope_SEND_EXCEPTION_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR { - allow with input as {"scope": "send:exception", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 265}, "user": {"role": "supervisor"}}}} -} - -test_scope_SEND_EXCEPTION_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER { - allow with input as {"scope": "send:exception", "auth": {"user": {"id": 71, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 296}, "user": {"role": "worker"}}}} -} - -test_scope_SEND_EXCEPTION_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER { - allow with input as {"scope": "send:exception", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 88}, "user": {"role": "owner"}}}} -} - -test_scope_SEND_EXCEPTION_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER { - allow with input as {"scope": "send:exception", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 211}, "user": {"role": "maintainer"}}}} -} - -test_scope_SEND_EXCEPTION_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR { - allow with input as {"scope": "send:exception", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 268}, "user": {"role": "supervisor"}}}} -} - -test_scope_SEND_EXCEPTION_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER { - allow with input as {"scope": "send:exception", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 273}, "user": {"role": "worker"}}}} -} - -test_scope_SEND_EXCEPTION_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER { - allow with input as {"scope": "send:exception", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 25}, "user": {"role": "owner"}}}} -} - -test_scope_SEND_EXCEPTION_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER { - allow with input as {"scope": "send:exception", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 291}, "user": {"role": "maintainer"}}}} -} - -test_scope_SEND_EXCEPTION_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR { - allow with input as {"scope": "send:exception", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 252}, "user": {"role": "supervisor"}}}} -} - -test_scope_SEND_EXCEPTION_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER { - allow with input as {"scope": "send:exception", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 226}, "user": {"role": "worker"}}}} -} - - - -# server_test.gen.rego.py -# # Copyright (C) 2021-2022 Intel Corporation -# # -# # SPDX-License-Identifier: MIT -# -# # Copyright (C) 2021-2022 Intel Corporation -# # -# # SPDX-License-Identifier: MIT -# -# import csv -# import json -# import random -# import sys -# import os -# from itertools import product -# -# NAME = 'server' -# -# def read_rules(name): -# rules = [] -# with open(os.path.join(sys.argv[1], f'{name}.csv')) as f: -# reader = csv.DictReader(f) -# for row in reader: -# row = {k.lower():v.lower().replace('n/a','na') for k,v in row.items()} -# row['limit'] = row['limit'].replace('none', 'None') -# found = False -# for col,val in row.items(): -# if col in ["limit", "method", "url"]: -# continue -# complex_val = [v.strip() for v in val.split(',')] -# if len(complex_val) > 1: -# found = True -# for item in complex_val: -# new_row = row.copy() -# new_row[col] = item -# rules.append(new_row) -# if not found: -# rules.append(row) -# -# return rules -# -# simple_rules = read_rules(NAME) -# -# SCOPES = {rule['scope'] for rule in simple_rules} -# CONTEXTS = ['sandbox', 'organization'] -# OWNERSHIPS = ['none'] -# GROUPS = ['admin', 'business', 'user', 'worker', 'none'] -# ORG_ROLES = ['owner', 'maintainer', 'supervisor', 'worker', None] -# -# def eval_rule(scope, context, ownership, privilege, membership, data): -# if privilege == 'admin': -# return True -# -# rules = list(filter(lambda r: scope == r['scope'], simple_rules)) -# rules = list(filter(lambda r: r['context'] == 'na' or context == r['context'], rules)) -# rules = list(filter(lambda r: r['ownership'] == 'na' or ownership == r['ownership'], rules)) -# rules = list(filter(lambda r: r['membership'] == 'na' or -# ORG_ROLES.index(membership) <= ORG_ROLES.index(r['membership']), rules)) -# rules = list(filter(lambda r: GROUPS.index(privilege) <= GROUPS.index(r['privilege']), rules)) -# rules = list(filter(lambda r: not r['limit'] or eval(r['limit']), rules)) -# -# return bool(rules) -# -# def get_data(scope, context, ownership, privilege, membership): -# data = { -# "scope": scope, -# "auth": { -# "user": { "id": random.randrange(0,100), "privilege": privilege }, -# "organization": { -# "id": random.randrange(100,200), -# "owner": { "id": random.randrange(200, 300) }, -# "user": { "role": membership } -# } if context == 'organization' else None -# } -# } -# -# user_id = data['auth']['user']['id'] -# if context == 'organization': -# if data['auth']['organization']['user']['role'] == 'owner': -# data['auth']['organization']['owner']['id'] = user_id -# -# return data -# -# def _get_name(prefix, **kwargs): -# name = prefix -# for k,v in kwargs.items(): -# prefix = '_' + str(k) -# if isinstance(v, dict): -# if 'id' in v: -# v = v.copy() -# v.pop('id') -# if v: -# name += _get_name(prefix, **v) -# else: -# name += f'{prefix}_{str(v).upper().replace(":", "_")}' -# -# return name -# -# def get_name(scope, context, ownership, privilege, membership): -# return _get_name('test', **locals()) -# -# def is_valid(scope, context, ownership, privilege, membership): -# if context == "sandbox" and membership: -# return False -# if scope == 'list' and ownership != 'None': -# return False -# if context == "organization" and membership == None: -# return False -# -# return True -# -# def gen_test_rego(name): -# with open(f'{name}_test.gen.rego', 'wt') as f: -# f.write(f'package {name}\n\n') -# for scope, context, ownership, privilege, membership in product( -# SCOPES, CONTEXTS, OWNERSHIPS, GROUPS, ORG_ROLES): -# if not is_valid(scope, context, ownership, privilege, membership): -# continue -# -# data = get_data(scope, context, ownership, privilege, membership) -# test_name = get_name(scope, context, ownership, privilege, membership) -# result = eval_rule(scope, context, ownership, privilege, membership, data) -# f.write('{test_name} {{\n {allow} with input as {data}\n}}\n\n'.format( -# test_name=test_name, allow='allow' if result else 'not allow', -# data=json.dumps(data))) -# -# # Write the script which is used to generate the file -# with open(sys.argv[0]) as this_file: -# f.write(f'\n\n# {os.path.split(sys.argv[0])[1]}\n') -# for line in this_file: -# if line.strip(): -# f.write(f'# {line}') -# else: -# f.write(f'#\n') -# -# # Write rules which are used to generate the file -# with open(os.path.join(sys.argv[1], f'{name}.csv')) as rego_file: -# f.write(f'\n\n# {name}.csv\n') -# for line in rego_file: -# if line.strip(): -# f.write(f'# {line}') -# else: -# f.write(f'#\n') -# -# gen_test_rego(NAME) - -# server.csv -# Scope,Resource,Context,Ownership,Limit,Method,URL,Privilege,Membership -# view,N/A,N/A,N/A,,GET,"/server/about, /server/annotation/formats, /server/plugins",None,N/A -# send:exception,N/A,N/A,N/A,,POST,/server/exception,None,N/A -# send:logs,N/A,N/A,N/A,,POST,/server/logs,None,N/A -# list:content,N/A,N/A,N/A,,GET,/server/share,Worker,N/A \ No newline at end of file diff --git a/cvat/apps/iam/rules/tasks_test.gen.rego b/cvat/apps/iam/rules/tasks_test.gen.rego deleted file mode 100644 index 41c13b79..00000000 --- a/cvat/apps/iam/rules/tasks_test.gen.rego +++ /dev/null @@ -1,22095 +0,0 @@ -package tasks - -test_scope_UPDATE_DESC_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": null}, "resource": {"id": 358, "owner": {"id": 468}, "assignee": {"id": 515}, "organization": {"id": 648}, "project": {"owner": {"id": 80}, "assignee": {"id": 870}, "organization": {"id": 937}}}} -} - -test_scope_UPDATE_DESC_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": null}, "resource": {"id": 358, "owner": {"id": 418}, "assignee": {"id": 533}, "organization": {"id": 617}, "project": {"owner": {"id": 68}, "assignee": {"id": 895}, "organization": {"id": 971}}}} -} - -test_scope_UPDATE_DESC_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": null}, "resource": {"id": 320, "owner": {"id": 469}, "assignee": {"id": 599}, "organization": {"id": 667}, "project": {"owner": {"id": 62}, "assignee": {"id": 876}, "organization": {"id": 941}}}} -} - -test_scope_UPDATE_DESC_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": null}, "resource": {"id": 330, "owner": {"id": 435}, "assignee": {"id": 585}, "organization": {"id": 662}, "project": {"owner": {"id": 92}, "assignee": {"id": 869}, "organization": {"id": 916}}}} -} - -test_scope_UPDATE_DESC_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": null}, "resource": {"id": 389, "owner": {"id": 493}, "assignee": {"id": 571}, "organization": {"id": 684}, "project": {"owner": {"id": 24}, "assignee": {"id": 862}, "organization": {"id": 919}}}} -} - -test_scope_UPDATE_DESC_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": null}, "resource": {"id": 327, "owner": {"id": 464}, "assignee": {"id": 533}, "organization": {"id": 616}, "project": {"owner": {"id": 744}, "assignee": {"id": 47}, "organization": {"id": 931}}}} -} - -test_scope_UPDATE_DESC_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": null}, "resource": {"id": 370, "owner": {"id": 418}, "assignee": {"id": 555}, "organization": {"id": 616}, "project": {"owner": {"id": 705}, "assignee": {"id": 5}, "organization": {"id": 946}}}} -} - -test_scope_UPDATE_DESC_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": null}, "resource": {"id": 376, "owner": {"id": 455}, "assignee": {"id": 544}, "organization": {"id": 693}, "project": {"owner": {"id": 740}, "assignee": {"id": 65}, "organization": {"id": 977}}}} -} - -test_scope_UPDATE_DESC_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": null}, "resource": {"id": 327, "owner": {"id": 465}, "assignee": {"id": 560}, "organization": {"id": 694}, "project": {"owner": {"id": 721}, "assignee": {"id": 36}, "organization": {"id": 910}}}} -} - -test_scope_UPDATE_DESC_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": null}, "resource": {"id": 370, "owner": {"id": 457}, "assignee": {"id": 520}, "organization": {"id": 695}, "project": {"owner": {"id": 760}, "assignee": {"id": 96}, "organization": {"id": 933}}}} -} - -test_scope_UPDATE_DESC_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": null}, "resource": {"id": 362, "owner": {"id": 92}, "assignee": {"id": 549}, "organization": {"id": 643}, "project": {"owner": {"id": 785}, "assignee": {"id": 886}, "organization": {"id": 951}}}} -} - -test_scope_UPDATE_DESC_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": null}, "resource": {"id": 321, "owner": {"id": 20}, "assignee": {"id": 577}, "organization": {"id": 695}, "project": {"owner": {"id": 791}, "assignee": {"id": 814}, "organization": {"id": 999}}}} -} - -test_scope_UPDATE_DESC_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": null}, "resource": {"id": 357, "owner": {"id": 48}, "assignee": {"id": 596}, "organization": {"id": 659}, "project": {"owner": {"id": 772}, "assignee": {"id": 878}, "organization": {"id": 985}}}} -} - -test_scope_UPDATE_DESC_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": null}, "resource": {"id": 395, "owner": {"id": 94}, "assignee": {"id": 597}, "organization": {"id": 688}, "project": {"owner": {"id": 723}, "assignee": {"id": 824}, "organization": {"id": 927}}}} -} - -test_scope_UPDATE_DESC_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": null}, "resource": {"id": 328, "owner": {"id": 75}, "assignee": {"id": 566}, "organization": {"id": 648}, "project": {"owner": {"id": 757}, "assignee": {"id": 856}, "organization": {"id": 938}}}} -} - -test_scope_UPDATE_DESC_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": null}, "resource": {"id": 338, "owner": {"id": 489}, "assignee": {"id": 56}, "organization": {"id": 634}, "project": {"owner": {"id": 764}, "assignee": {"id": 869}, "organization": {"id": 963}}}} -} - -test_scope_UPDATE_DESC_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": null}, "resource": {"id": 369, "owner": {"id": 459}, "assignee": {"id": 79}, "organization": {"id": 606}, "project": {"owner": {"id": 724}, "assignee": {"id": 866}, "organization": {"id": 946}}}} -} - -test_scope_UPDATE_DESC_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": null}, "resource": {"id": 375, "owner": {"id": 474}, "assignee": {"id": 61}, "organization": {"id": 662}, "project": {"owner": {"id": 719}, "assignee": {"id": 857}, "organization": {"id": 968}}}} -} - -test_scope_UPDATE_DESC_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": null}, "resource": {"id": 379, "owner": {"id": 408}, "assignee": {"id": 95}, "organization": {"id": 680}, "project": {"owner": {"id": 787}, "assignee": {"id": 836}, "organization": {"id": 929}}}} -} - -test_scope_UPDATE_DESC_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": null}, "resource": {"id": 361, "owner": {"id": 413}, "assignee": {"id": 37}, "organization": {"id": 648}, "project": {"owner": {"id": 773}, "assignee": {"id": 845}, "organization": {"id": 973}}}} -} - -test_scope_UPDATE_DESC_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": null}, "resource": {"id": 314, "owner": {"id": 459}, "assignee": {"id": 509}, "organization": {"id": 618}, "project": {"owner": {"id": 796}, "assignee": {"id": 828}, "organization": {"id": 986}}}} -} - -test_scope_UPDATE_DESC_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": null}, "resource": {"id": 312, "owner": {"id": 462}, "assignee": {"id": 578}, "organization": {"id": 652}, "project": {"owner": {"id": 735}, "assignee": {"id": 804}, "organization": {"id": 988}}}} -} - -test_scope_UPDATE_DESC_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": null}, "resource": {"id": 353, "owner": {"id": 467}, "assignee": {"id": 514}, "organization": {"id": 695}, "project": {"owner": {"id": 708}, "assignee": {"id": 860}, "organization": {"id": 957}}}} -} - -test_scope_UPDATE_DESC_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": null}, "resource": {"id": 353, "owner": {"id": 493}, "assignee": {"id": 512}, "organization": {"id": 640}, "project": {"owner": {"id": 754}, "assignee": {"id": 840}, "organization": {"id": 985}}}} -} - -test_scope_UPDATE_DESC_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": null}, "resource": {"id": 303, "owner": {"id": 423}, "assignee": {"id": 534}, "organization": {"id": 689}, "project": {"owner": {"id": 797}, "assignee": {"id": 839}, "organization": {"id": 943}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 318, "owner": {"id": 494}, "assignee": {"id": 581}, "organization": {"id": 148}, "project": {"owner": {"id": 27}, "assignee": {"id": 895}, "organization": {"id": 967}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 358, "owner": {"id": 443}, "assignee": {"id": 520}, "organization": {"id": 647}, "project": {"owner": {"id": 99}, "assignee": {"id": 892}, "organization": {"id": 941}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "owner": {"id": 406}, "assignee": {"id": 519}, "organization": {"id": 110}, "project": {"owner": {"id": 86}, "assignee": {"id": 879}, "organization": {"id": 906}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "owner": {"id": 484}, "assignee": {"id": 554}, "organization": {"id": 662}, "project": {"owner": {"id": 34}, "assignee": {"id": 856}, "organization": {"id": 953}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "owner": {"id": 414}, "assignee": {"id": 544}, "organization": {"id": 175}, "project": {"owner": {"id": 86}, "assignee": {"id": 836}, "organization": {"id": 986}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 7, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "owner": {"id": 485}, "assignee": {"id": 539}, "organization": {"id": 605}, "project": {"owner": {"id": 7}, "assignee": {"id": 850}, "organization": {"id": 976}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 338, "owner": {"id": 427}, "assignee": {"id": 598}, "organization": {"id": 115}, "project": {"owner": {"id": 41}, "assignee": {"id": 832}, "organization": {"id": 937}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 363, "owner": {"id": 495}, "assignee": {"id": 555}, "organization": {"id": 622}, "project": {"owner": {"id": 90}, "assignee": {"id": 848}, "organization": {"id": 968}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 371, "owner": {"id": 485}, "assignee": {"id": 545}, "organization": {"id": 102}, "project": {"owner": {"id": 55}, "assignee": {"id": 894}, "organization": {"id": 905}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 309, "owner": {"id": 440}, "assignee": {"id": 573}, "organization": {"id": 654}, "project": {"owner": {"id": 81}, "assignee": {"id": 851}, "organization": {"id": 990}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 314, "owner": {"id": 451}, "assignee": {"id": 502}, "organization": {"id": 146}, "project": {"owner": {"id": 88}, "assignee": {"id": 879}, "organization": {"id": 958}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 413}, "assignee": {"id": 531}, "organization": {"id": 655}, "project": {"owner": {"id": 10}, "assignee": {"id": 851}, "organization": {"id": 967}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 443}, "assignee": {"id": 528}, "organization": {"id": 181}, "project": {"owner": {"id": 65}, "assignee": {"id": 821}, "organization": {"id": 909}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "owner": {"id": 465}, "assignee": {"id": 524}, "organization": {"id": 699}, "project": {"owner": {"id": 82}, "assignee": {"id": 844}, "organization": {"id": 993}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 418}, "assignee": {"id": 532}, "organization": {"id": 197}, "project": {"owner": {"id": 97}, "assignee": {"id": 877}, "organization": {"id": 919}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 422}, "assignee": {"id": 598}, "organization": {"id": 680}, "project": {"owner": {"id": 72}, "assignee": {"id": 859}, "organization": {"id": 996}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 487}, "assignee": {"id": 572}, "organization": {"id": 140}, "project": {"owner": {"id": 80}, "assignee": {"id": 879}, "organization": {"id": 941}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 408}, "assignee": {"id": 560}, "organization": {"id": 656}, "project": {"owner": {"id": 75}, "assignee": {"id": 838}, "organization": {"id": 935}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 409}, "assignee": {"id": 539}, "organization": {"id": 136}, "project": {"owner": {"id": 47}, "assignee": {"id": 804}, "organization": {"id": 907}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 382, "owner": {"id": 411}, "assignee": {"id": 578}, "organization": {"id": 676}, "project": {"owner": {"id": 74}, "assignee": {"id": 849}, "organization": {"id": 959}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 305, "owner": {"id": 457}, "assignee": {"id": 573}, "organization": {"id": 164}, "project": {"owner": {"id": 60}, "assignee": {"id": 841}, "organization": {"id": 977}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 307, "owner": {"id": 457}, "assignee": {"id": 513}, "organization": {"id": 643}, "project": {"owner": {"id": 82}, "assignee": {"id": 810}, "organization": {"id": 964}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "owner": {"id": 490}, "assignee": {"id": 556}, "organization": {"id": 146}, "project": {"owner": {"id": 20}, "assignee": {"id": 866}, "organization": {"id": 978}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "owner": {"id": 449}, "assignee": {"id": 552}, "organization": {"id": 699}, "project": {"owner": {"id": 6}, "assignee": {"id": 886}, "organization": {"id": 976}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 408}, "assignee": {"id": 542}, "organization": {"id": 132}, "project": {"owner": {"id": 36}, "assignee": {"id": 886}, "organization": {"id": 949}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "owner": {"id": 477}, "assignee": {"id": 519}, "organization": {"id": 642}, "project": {"owner": {"id": 18}, "assignee": {"id": 874}, "organization": {"id": 984}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 383, "owner": {"id": 489}, "assignee": {"id": 584}, "organization": {"id": 139}, "project": {"owner": {"id": 10}, "assignee": {"id": 876}, "organization": {"id": 990}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 348, "owner": {"id": 482}, "assignee": {"id": 542}, "organization": {"id": 616}, "project": {"owner": {"id": 87}, "assignee": {"id": 889}, "organization": {"id": 994}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"id": 382, "owner": {"id": 485}, "assignee": {"id": 554}, "organization": {"id": 123}, "project": {"owner": {"id": 39}, "assignee": {"id": 802}, "organization": {"id": 946}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 498}, "assignee": {"id": 562}, "organization": {"id": 624}, "project": {"owner": {"id": 9}, "assignee": {"id": 817}, "organization": {"id": 919}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 498}, "assignee": {"id": 569}, "organization": {"id": 198}, "project": {"owner": {"id": 43}, "assignee": {"id": 804}, "organization": {"id": 984}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 316, "owner": {"id": 476}, "assignee": {"id": 548}, "organization": {"id": 619}, "project": {"owner": {"id": 98}, "assignee": {"id": 823}, "organization": {"id": 988}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 456}, "assignee": {"id": 505}, "organization": {"id": 156}, "project": {"owner": {"id": 30}, "assignee": {"id": 886}, "organization": {"id": 992}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "owner": {"id": 496}, "assignee": {"id": 595}, "organization": {"id": 657}, "project": {"owner": {"id": 39}, "assignee": {"id": 868}, "organization": {"id": 930}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 486}, "assignee": {"id": 573}, "organization": {"id": 148}, "project": {"owner": {"id": 99}, "assignee": {"id": 898}, "organization": {"id": 936}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "owner": {"id": 453}, "assignee": {"id": 520}, "organization": {"id": 625}, "project": {"owner": {"id": 6}, "assignee": {"id": 817}, "organization": {"id": 932}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 347, "owner": {"id": 470}, "assignee": {"id": 513}, "organization": {"id": 197}, "project": {"owner": {"id": 10}, "assignee": {"id": 815}, "organization": {"id": 936}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 334, "owner": {"id": 457}, "assignee": {"id": 565}, "organization": {"id": 618}, "project": {"owner": {"id": 57}, "assignee": {"id": 811}, "organization": {"id": 928}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 406}, "assignee": {"id": 550}, "organization": {"id": 147}, "project": {"owner": {"id": 10}, "assignee": {"id": 830}, "organization": {"id": 949}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 303, "owner": {"id": 440}, "assignee": {"id": 512}, "organization": {"id": 691}, "project": {"owner": {"id": 17}, "assignee": {"id": 842}, "organization": {"id": 918}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 489}, "assignee": {"id": 517}, "organization": {"id": 100}, "project": {"owner": {"id": 78}, "assignee": {"id": 860}, "organization": {"id": 957}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 302, "owner": {"id": 432}, "assignee": {"id": 527}, "organization": {"id": 619}, "project": {"owner": {"id": 67}, "assignee": {"id": 893}, "organization": {"id": 977}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "owner": {"id": 436}, "assignee": {"id": 530}, "organization": {"id": 181}, "project": {"owner": {"id": 53}, "assignee": {"id": 806}, "organization": {"id": 930}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 358, "owner": {"id": 408}, "assignee": {"id": 514}, "organization": {"id": 663}, "project": {"owner": {"id": 80}, "assignee": {"id": 868}, "organization": {"id": 902}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "owner": {"id": 491}, "assignee": {"id": 518}, "organization": {"id": 130}, "project": {"owner": {"id": 45}, "assignee": {"id": 800}, "organization": {"id": 978}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "owner": {"id": 423}, "assignee": {"id": 585}, "organization": {"id": 685}, "project": {"owner": {"id": 8}, "assignee": {"id": 867}, "organization": {"id": 946}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 364, "owner": {"id": 464}, "assignee": {"id": 570}, "organization": {"id": 149}, "project": {"owner": {"id": 81}, "assignee": {"id": 860}, "organization": {"id": 905}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 332, "owner": {"id": 495}, "assignee": {"id": 502}, "organization": {"id": 645}, "project": {"owner": {"id": 93}, "assignee": {"id": 844}, "organization": {"id": 930}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 313, "owner": {"id": 498}, "assignee": {"id": 574}, "organization": {"id": 145}, "project": {"owner": {"id": 5}, "assignee": {"id": 842}, "organization": {"id": 917}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 61, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 482}, "assignee": {"id": 522}, "organization": {"id": 699}, "project": {"owner": {"id": 61}, "assignee": {"id": 859}, "organization": {"id": 989}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 317, "owner": {"id": 408}, "assignee": {"id": 591}, "organization": {"id": 105}, "project": {"owner": {"id": 758}, "assignee": {"id": 25}, "organization": {"id": 937}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 305, "owner": {"id": 440}, "assignee": {"id": 539}, "organization": {"id": 665}, "project": {"owner": {"id": 750}, "assignee": {"id": 32}, "organization": {"id": 960}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 424}, "assignee": {"id": 536}, "organization": {"id": 134}, "project": {"owner": {"id": 799}, "assignee": {"id": 42}, "organization": {"id": 983}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "owner": {"id": 455}, "assignee": {"id": 551}, "organization": {"id": 695}, "project": {"owner": {"id": 756}, "assignee": {"id": 23}, "organization": {"id": 943}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "owner": {"id": 447}, "assignee": {"id": 566}, "organization": {"id": 155}, "project": {"owner": {"id": 710}, "assignee": {"id": 10}, "organization": {"id": 954}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 469}, "assignee": {"id": 537}, "organization": {"id": 641}, "project": {"owner": {"id": 713}, "assignee": {"id": 84}, "organization": {"id": 941}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 477}, "assignee": {"id": 591}, "organization": {"id": 157}, "project": {"owner": {"id": 721}, "assignee": {"id": 44}, "organization": {"id": 956}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 445}, "assignee": {"id": 578}, "organization": {"id": 655}, "project": {"owner": {"id": 735}, "assignee": {"id": 9}, "organization": {"id": 907}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 446}, "assignee": {"id": 565}, "organization": {"id": 177}, "project": {"owner": {"id": 786}, "assignee": {"id": 18}, "organization": {"id": 903}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 356, "owner": {"id": 404}, "assignee": {"id": 516}, "organization": {"id": 608}, "project": {"owner": {"id": 730}, "assignee": {"id": 46}, "organization": {"id": 982}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 404}, "assignee": {"id": 577}, "organization": {"id": 156}, "project": {"owner": {"id": 786}, "assignee": {"id": 47}, "organization": {"id": 947}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 309, "owner": {"id": 473}, "assignee": {"id": 517}, "organization": {"id": 667}, "project": {"owner": {"id": 746}, "assignee": {"id": 83}, "organization": {"id": 940}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "owner": {"id": 403}, "assignee": {"id": 594}, "organization": {"id": 115}, "project": {"owner": {"id": 763}, "assignee": {"id": 71}, "organization": {"id": 949}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "owner": {"id": 433}, "assignee": {"id": 590}, "organization": {"id": 657}, "project": {"owner": {"id": 727}, "assignee": {"id": 88}, "organization": {"id": 936}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "owner": {"id": 417}, "assignee": {"id": 509}, "organization": {"id": 187}, "project": {"owner": {"id": 722}, "assignee": {"id": 11}, "organization": {"id": 956}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "owner": {"id": 444}, "assignee": {"id": 590}, "organization": {"id": 608}, "project": {"owner": {"id": 770}, "assignee": {"id": 38}, "organization": {"id": 937}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 390, "owner": {"id": 489}, "assignee": {"id": 581}, "organization": {"id": 125}, "project": {"owner": {"id": 746}, "assignee": {"id": 15}, "organization": {"id": 928}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 330, "owner": {"id": 463}, "assignee": {"id": 503}, "organization": {"id": 646}, "project": {"owner": {"id": 770}, "assignee": {"id": 59}, "organization": {"id": 947}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 378, "owner": {"id": 411}, "assignee": {"id": 508}, "organization": {"id": 167}, "project": {"owner": {"id": 750}, "assignee": {"id": 61}, "organization": {"id": 992}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 398, "owner": {"id": 452}, "assignee": {"id": 573}, "organization": {"id": 609}, "project": {"owner": {"id": 716}, "assignee": {"id": 9}, "organization": {"id": 982}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 387, "owner": {"id": 466}, "assignee": {"id": 544}, "organization": {"id": 123}, "project": {"owner": {"id": 799}, "assignee": {"id": 75}, "organization": {"id": 981}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 316, "owner": {"id": 455}, "assignee": {"id": 564}, "organization": {"id": 607}, "project": {"owner": {"id": 715}, "assignee": {"id": 38}, "organization": {"id": 919}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "owner": {"id": 490}, "assignee": {"id": 528}, "organization": {"id": 125}, "project": {"owner": {"id": 766}, "assignee": {"id": 32}, "organization": {"id": 910}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "owner": {"id": 435}, "assignee": {"id": 516}, "organization": {"id": 680}, "project": {"owner": {"id": 738}, "assignee": {"id": 11}, "organization": {"id": 968}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "owner": {"id": 475}, "assignee": {"id": 574}, "organization": {"id": 177}, "project": {"owner": {"id": 721}, "assignee": {"id": 92}, "organization": {"id": 979}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "owner": {"id": 405}, "assignee": {"id": 503}, "organization": {"id": 610}, "project": {"owner": {"id": 705}, "assignee": {"id": 73}, "organization": {"id": 998}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 326, "owner": {"id": 498}, "assignee": {"id": 573}, "organization": {"id": 180}, "project": {"owner": {"id": 779}, "assignee": {"id": 63}, "organization": {"id": 903}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 337, "owner": {"id": 482}, "assignee": {"id": 538}, "organization": {"id": 661}, "project": {"owner": {"id": 731}, "assignee": {"id": 38}, "organization": {"id": 951}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 388, "owner": {"id": 407}, "assignee": {"id": 520}, "organization": {"id": 143}, "project": {"owner": {"id": 753}, "assignee": {"id": 26}, "organization": {"id": 959}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 440}, "assignee": {"id": 591}, "organization": {"id": 640}, "project": {"owner": {"id": 793}, "assignee": {"id": 16}, "organization": {"id": 951}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 365, "owner": {"id": 471}, "assignee": {"id": 513}, "organization": {"id": 157}, "project": {"owner": {"id": 730}, "assignee": {"id": 34}, "organization": {"id": 915}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 318, "owner": {"id": 412}, "assignee": {"id": 506}, "organization": {"id": 637}, "project": {"owner": {"id": 749}, "assignee": {"id": 31}, "organization": {"id": 953}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "owner": {"id": 492}, "assignee": {"id": 540}, "organization": {"id": 159}, "project": {"owner": {"id": 797}, "assignee": {"id": 65}, "organization": {"id": 963}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "owner": {"id": 463}, "assignee": {"id": 502}, "organization": {"id": 611}, "project": {"owner": {"id": 750}, "assignee": {"id": 30}, "organization": {"id": 958}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 406}, "assignee": {"id": 506}, "organization": {"id": 160}, "project": {"owner": {"id": 763}, "assignee": {"id": 86}, "organization": {"id": 983}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "owner": {"id": 401}, "assignee": {"id": 513}, "organization": {"id": 655}, "project": {"owner": {"id": 717}, "assignee": {"id": 46}, "organization": {"id": 993}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 346, "owner": {"id": 405}, "assignee": {"id": 551}, "organization": {"id": 170}, "project": {"owner": {"id": 772}, "assignee": {"id": 46}, "organization": {"id": 924}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 309, "owner": {"id": 449}, "assignee": {"id": 564}, "organization": {"id": 657}, "project": {"owner": {"id": 797}, "assignee": {"id": 79}, "organization": {"id": 935}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 315, "owner": {"id": 416}, "assignee": {"id": 512}, "organization": {"id": 196}, "project": {"owner": {"id": 747}, "assignee": {"id": 46}, "organization": {"id": 971}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 325, "owner": {"id": 477}, "assignee": {"id": 565}, "organization": {"id": 651}, "project": {"owner": {"id": 764}, "assignee": {"id": 4}, "organization": {"id": 905}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 460}, "assignee": {"id": 566}, "organization": {"id": 141}, "project": {"owner": {"id": 719}, "assignee": {"id": 17}, "organization": {"id": 965}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 420}, "assignee": {"id": 550}, "organization": {"id": 678}, "project": {"owner": {"id": 794}, "assignee": {"id": 43}, "organization": {"id": 975}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "owner": {"id": 462}, "assignee": {"id": 590}, "organization": {"id": 142}, "project": {"owner": {"id": 738}, "assignee": {"id": 47}, "organization": {"id": 902}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "owner": {"id": 453}, "assignee": {"id": 574}, "organization": {"id": 639}, "project": {"owner": {"id": 792}, "assignee": {"id": 3}, "organization": {"id": 980}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 483}, "assignee": {"id": 599}, "organization": {"id": 174}, "project": {"owner": {"id": 773}, "assignee": {"id": 6}, "organization": {"id": 992}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "owner": {"id": 467}, "assignee": {"id": 580}, "organization": {"id": 692}, "project": {"owner": {"id": 779}, "assignee": {"id": 18}, "organization": {"id": 948}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 304, "owner": {"id": 473}, "assignee": {"id": 589}, "organization": {"id": 153}, "project": {"owner": {"id": 724}, "assignee": {"id": 40}, "organization": {"id": 956}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 488}, "assignee": {"id": 526}, "organization": {"id": 652}, "project": {"owner": {"id": 764}, "assignee": {"id": 60}, "organization": {"id": 978}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 490}, "assignee": {"id": 517}, "organization": {"id": 161}, "project": {"owner": {"id": 726}, "assignee": {"id": 84}, "organization": {"id": 941}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 440}, "assignee": {"id": 522}, "organization": {"id": 658}, "project": {"owner": {"id": 768}, "assignee": {"id": 45}, "organization": {"id": 969}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 392, "owner": {"id": 24}, "assignee": {"id": 582}, "organization": {"id": 131}, "project": {"owner": {"id": 733}, "assignee": {"id": 878}, "organization": {"id": 961}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 371, "owner": {"id": 26}, "assignee": {"id": 528}, "organization": {"id": 638}, "project": {"owner": {"id": 798}, "assignee": {"id": 836}, "organization": {"id": 990}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 36, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "owner": {"id": 36}, "assignee": {"id": 561}, "organization": {"id": 115}, "project": {"owner": {"id": 771}, "assignee": {"id": 892}, "organization": {"id": 935}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "owner": {"id": 37}, "assignee": {"id": 548}, "organization": {"id": 650}, "project": {"owner": {"id": 744}, "assignee": {"id": 898}, "organization": {"id": 918}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "owner": {"id": 61}, "assignee": {"id": 544}, "organization": {"id": 127}, "project": {"owner": {"id": 783}, "assignee": {"id": 832}, "organization": {"id": 995}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "owner": {"id": 78}, "assignee": {"id": 571}, "organization": {"id": 689}, "project": {"owner": {"id": 734}, "assignee": {"id": 817}, "organization": {"id": 913}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 330, "owner": {"id": 29}, "assignee": {"id": 506}, "organization": {"id": 106}, "project": {"owner": {"id": 767}, "assignee": {"id": 828}, "organization": {"id": 981}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 17}, "assignee": {"id": 591}, "organization": {"id": 660}, "project": {"owner": {"id": 712}, "assignee": {"id": 887}, "organization": {"id": 998}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 320, "owner": {"id": 96}, "assignee": {"id": 583}, "organization": {"id": 136}, "project": {"owner": {"id": 761}, "assignee": {"id": 883}, "organization": {"id": 925}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 336, "owner": {"id": 29}, "assignee": {"id": 507}, "organization": {"id": 698}, "project": {"owner": {"id": 711}, "assignee": {"id": 883}, "organization": {"id": 973}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 392, "owner": {"id": 63}, "assignee": {"id": 522}, "organization": {"id": 123}, "project": {"owner": {"id": 722}, "assignee": {"id": 804}, "organization": {"id": 950}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 337, "owner": {"id": 42}, "assignee": {"id": 501}, "organization": {"id": 638}, "project": {"owner": {"id": 772}, "assignee": {"id": 877}, "organization": {"id": 913}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 34}, "assignee": {"id": 567}, "organization": {"id": 124}, "project": {"owner": {"id": 717}, "assignee": {"id": 864}, "organization": {"id": 959}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "owner": {"id": 23}, "assignee": {"id": 593}, "organization": {"id": 658}, "project": {"owner": {"id": 782}, "assignee": {"id": 832}, "organization": {"id": 991}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 343, "owner": {"id": 78}, "assignee": {"id": 572}, "organization": {"id": 181}, "project": {"owner": {"id": 796}, "assignee": {"id": 824}, "organization": {"id": 922}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "owner": {"id": 23}, "assignee": {"id": 541}, "organization": {"id": 611}, "project": {"owner": {"id": 751}, "assignee": {"id": 885}, "organization": {"id": 912}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 341, "owner": {"id": 96}, "assignee": {"id": 500}, "organization": {"id": 134}, "project": {"owner": {"id": 749}, "assignee": {"id": 830}, "organization": {"id": 957}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 338, "owner": {"id": 46}, "assignee": {"id": 592}, "organization": {"id": 673}, "project": {"owner": {"id": 701}, "assignee": {"id": 833}, "organization": {"id": 983}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 87}, "assignee": {"id": 515}, "organization": {"id": 164}, "project": {"owner": {"id": 739}, "assignee": {"id": 820}, "organization": {"id": 951}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 398, "owner": {"id": 78}, "assignee": {"id": 588}, "organization": {"id": 615}, "project": {"owner": {"id": 781}, "assignee": {"id": 837}, "organization": {"id": 947}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 317, "owner": {"id": 53}, "assignee": {"id": 519}, "organization": {"id": 189}, "project": {"owner": {"id": 795}, "assignee": {"id": 877}, "organization": {"id": 947}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 87}, "assignee": {"id": 568}, "organization": {"id": 685}, "project": {"owner": {"id": 727}, "assignee": {"id": 897}, "organization": {"id": 931}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "owner": {"id": 72}, "assignee": {"id": 557}, "organization": {"id": 114}, "project": {"owner": {"id": 790}, "assignee": {"id": 846}, "organization": {"id": 909}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "owner": {"id": 41}, "assignee": {"id": 525}, "organization": {"id": 673}, "project": {"owner": {"id": 768}, "assignee": {"id": 819}, "organization": {"id": 921}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 65}, "assignee": {"id": 526}, "organization": {"id": 157}, "project": {"owner": {"id": 774}, "assignee": {"id": 862}, "organization": {"id": 911}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 71, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 71}, "assignee": {"id": 565}, "organization": {"id": 653}, "project": {"owner": {"id": 758}, "assignee": {"id": 872}, "organization": {"id": 907}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 339, "owner": {"id": 27}, "assignee": {"id": 502}, "organization": {"id": 174}, "project": {"owner": {"id": 732}, "assignee": {"id": 800}, "organization": {"id": 995}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 305, "owner": {"id": 8}, "assignee": {"id": 544}, "organization": {"id": 689}, "project": {"owner": {"id": 708}, "assignee": {"id": 869}, "organization": {"id": 907}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 336, "owner": {"id": 93}, "assignee": {"id": 523}, "organization": {"id": 182}, "project": {"owner": {"id": 717}, "assignee": {"id": 898}, "organization": {"id": 982}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 347, "owner": {"id": 84}, "assignee": {"id": 557}, "organization": {"id": 648}, "project": {"owner": {"id": 748}, "assignee": {"id": 810}, "organization": {"id": 987}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 383, "owner": {"id": 16}, "assignee": {"id": 515}, "organization": {"id": 193}, "project": {"owner": {"id": 768}, "assignee": {"id": 850}, "organization": {"id": 967}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 300, "owner": {"id": 69}, "assignee": {"id": 502}, "organization": {"id": 638}, "project": {"owner": {"id": 759}, "assignee": {"id": 886}, "organization": {"id": 992}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 24, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 24}, "assignee": {"id": 531}, "organization": {"id": 192}, "project": {"owner": {"id": 744}, "assignee": {"id": 819}, "organization": {"id": 935}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "owner": {"id": 30}, "assignee": {"id": 584}, "organization": {"id": 653}, "project": {"owner": {"id": 778}, "assignee": {"id": 898}, "organization": {"id": 902}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "owner": {"id": 6}, "assignee": {"id": 504}, "organization": {"id": 131}, "project": {"owner": {"id": 776}, "assignee": {"id": 886}, "organization": {"id": 990}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "owner": {"id": 99}, "assignee": {"id": 556}, "organization": {"id": 629}, "project": {"owner": {"id": 769}, "assignee": {"id": 827}, "organization": {"id": 996}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 364, "owner": {"id": 76}, "assignee": {"id": 529}, "organization": {"id": 198}, "project": {"owner": {"id": 773}, "assignee": {"id": 840}, "organization": {"id": 973}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 341, "owner": {"id": 52}, "assignee": {"id": 538}, "organization": {"id": 618}, "project": {"owner": {"id": 784}, "assignee": {"id": 866}, "organization": {"id": 928}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 54}, "assignee": {"id": 575}, "organization": {"id": 171}, "project": {"owner": {"id": 722}, "assignee": {"id": 880}, "organization": {"id": 986}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 89}, "assignee": {"id": 582}, "organization": {"id": 685}, "project": {"owner": {"id": 748}, "assignee": {"id": 867}, "organization": {"id": 940}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 319, "owner": {"id": 30}, "assignee": {"id": 548}, "organization": {"id": 128}, "project": {"owner": {"id": 796}, "assignee": {"id": 868}, "organization": {"id": 960}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 390, "owner": {"id": 71}, "assignee": {"id": 559}, "organization": {"id": 607}, "project": {"owner": {"id": 771}, "assignee": {"id": 852}, "organization": {"id": 953}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "owner": {"id": 57}, "assignee": {"id": 532}, "organization": {"id": 147}, "project": {"owner": {"id": 742}, "assignee": {"id": 882}, "organization": {"id": 910}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "owner": {"id": 77}, "assignee": {"id": 524}, "organization": {"id": 606}, "project": {"owner": {"id": 734}, "assignee": {"id": 848}, "organization": {"id": 986}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 27}, "assignee": {"id": 597}, "organization": {"id": 161}, "project": {"owner": {"id": 792}, "assignee": {"id": 885}, "organization": {"id": 971}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 95}, "assignee": {"id": 501}, "organization": {"id": 627}, "project": {"owner": {"id": 724}, "assignee": {"id": 894}, "organization": {"id": 915}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 70}, "assignee": {"id": 577}, "organization": {"id": 141}, "project": {"owner": {"id": 726}, "assignee": {"id": 850}, "organization": {"id": 930}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 336, "owner": {"id": 33}, "assignee": {"id": 559}, "organization": {"id": 668}, "project": {"owner": {"id": 783}, "assignee": {"id": 845}, "organization": {"id": 939}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 363, "owner": {"id": 26}, "assignee": {"id": 512}, "organization": {"id": 147}, "project": {"owner": {"id": 760}, "assignee": {"id": 897}, "organization": {"id": 940}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 352, "owner": {"id": 33}, "assignee": {"id": 572}, "organization": {"id": 628}, "project": {"owner": {"id": 794}, "assignee": {"id": 818}, "organization": {"id": 902}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 374, "owner": {"id": 492}, "assignee": {"id": 29}, "organization": {"id": 148}, "project": {"owner": {"id": 719}, "assignee": {"id": 825}, "organization": {"id": 942}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 331, "owner": {"id": 463}, "assignee": {"id": 97}, "organization": {"id": 683}, "project": {"owner": {"id": 787}, "assignee": {"id": 843}, "organization": {"id": 932}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 494}, "assignee": {"id": 21}, "organization": {"id": 117}, "project": {"owner": {"id": 721}, "assignee": {"id": 893}, "organization": {"id": 945}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 462}, "assignee": {"id": 4}, "organization": {"id": 669}, "project": {"owner": {"id": 782}, "assignee": {"id": 807}, "organization": {"id": 967}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 497}, "assignee": {"id": 8}, "organization": {"id": 190}, "project": {"owner": {"id": 717}, "assignee": {"id": 880}, "organization": {"id": 929}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "owner": {"id": 427}, "assignee": {"id": 81}, "organization": {"id": 658}, "project": {"owner": {"id": 747}, "assignee": {"id": 807}, "organization": {"id": 979}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 361, "owner": {"id": 484}, "assignee": {"id": 52}, "organization": {"id": 101}, "project": {"owner": {"id": 700}, "assignee": {"id": 868}, "organization": {"id": 970}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 367, "owner": {"id": 492}, "assignee": {"id": 89}, "organization": {"id": 668}, "project": {"owner": {"id": 736}, "assignee": {"id": 802}, "organization": {"id": 964}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 322, "owner": {"id": 413}, "assignee": {"id": 79}, "organization": {"id": 167}, "project": {"owner": {"id": 719}, "assignee": {"id": 830}, "organization": {"id": 924}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 345, "owner": {"id": 434}, "assignee": {"id": 72}, "organization": {"id": 610}, "project": {"owner": {"id": 747}, "assignee": {"id": 851}, "organization": {"id": 958}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 328, "owner": {"id": 438}, "assignee": {"id": 4}, "organization": {"id": 111}, "project": {"owner": {"id": 783}, "assignee": {"id": 883}, "organization": {"id": 997}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 348, "owner": {"id": 448}, "assignee": {"id": 89}, "organization": {"id": 660}, "project": {"owner": {"id": 707}, "assignee": {"id": 881}, "organization": {"id": 901}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 455}, "assignee": {"id": 5}, "organization": {"id": 129}, "project": {"owner": {"id": 772}, "assignee": {"id": 812}, "organization": {"id": 967}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "owner": {"id": 472}, "assignee": {"id": 35}, "organization": {"id": 634}, "project": {"owner": {"id": 705}, "assignee": {"id": 809}, "organization": {"id": 987}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "owner": {"id": 404}, "assignee": {"id": 18}, "organization": {"id": 196}, "project": {"owner": {"id": 702}, "assignee": {"id": 826}, "organization": {"id": 975}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "owner": {"id": 409}, "assignee": {"id": 49}, "organization": {"id": 620}, "project": {"owner": {"id": 772}, "assignee": {"id": 830}, "organization": {"id": 972}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 342, "owner": {"id": 449}, "assignee": {"id": 10}, "organization": {"id": 164}, "project": {"owner": {"id": 717}, "assignee": {"id": 888}, "organization": {"id": 992}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 406}, "assignee": {"id": 77}, "organization": {"id": 655}, "project": {"owner": {"id": 729}, "assignee": {"id": 809}, "organization": {"id": 943}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 376, "owner": {"id": 450}, "assignee": {"id": 57}, "organization": {"id": 162}, "project": {"owner": {"id": 703}, "assignee": {"id": 881}, "organization": {"id": 934}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 345, "owner": {"id": 470}, "assignee": {"id": 84}, "organization": {"id": 655}, "project": {"owner": {"id": 723}, "assignee": {"id": 887}, "organization": {"id": 974}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 479}, "assignee": {"id": 34}, "organization": {"id": 119}, "project": {"owner": {"id": 791}, "assignee": {"id": 809}, "organization": {"id": 910}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 481}, "assignee": {"id": 13}, "organization": {"id": 694}, "project": {"owner": {"id": 749}, "assignee": {"id": 840}, "organization": {"id": 946}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "owner": {"id": 456}, "assignee": {"id": 11}, "organization": {"id": 123}, "project": {"owner": {"id": 734}, "assignee": {"id": 813}, "organization": {"id": 916}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "owner": {"id": 471}, "assignee": {"id": 11}, "organization": {"id": 665}, "project": {"owner": {"id": 752}, "assignee": {"id": 813}, "organization": {"id": 903}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "owner": {"id": 476}, "assignee": {"id": 52}, "organization": {"id": 149}, "project": {"owner": {"id": 749}, "assignee": {"id": 801}, "organization": {"id": 937}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "owner": {"id": 492}, "assignee": {"id": 87}, "organization": {"id": 631}, "project": {"owner": {"id": 773}, "assignee": {"id": 866}, "organization": {"id": 921}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 317, "owner": {"id": 434}, "assignee": {"id": 21}, "organization": {"id": 155}, "project": {"owner": {"id": 763}, "assignee": {"id": 818}, "organization": {"id": 908}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 353, "owner": {"id": 438}, "assignee": {"id": 92}, "organization": {"id": 609}, "project": {"owner": {"id": 746}, "assignee": {"id": 832}, "organization": {"id": 931}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 376, "owner": {"id": 478}, "assignee": {"id": 0}, "organization": {"id": 150}, "project": {"owner": {"id": 713}, "assignee": {"id": 817}, "organization": {"id": 938}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 379, "owner": {"id": 448}, "assignee": {"id": 76}, "organization": {"id": 656}, "project": {"owner": {"id": 742}, "assignee": {"id": 855}, "organization": {"id": 983}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 341, "owner": {"id": 477}, "assignee": {"id": 50}, "organization": {"id": 140}, "project": {"owner": {"id": 761}, "assignee": {"id": 840}, "organization": {"id": 922}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 488}, "assignee": {"id": 48}, "organization": {"id": 662}, "project": {"owner": {"id": 773}, "assignee": {"id": 831}, "organization": {"id": 941}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "owner": {"id": 414}, "assignee": {"id": 87}, "organization": {"id": 198}, "project": {"owner": {"id": 775}, "assignee": {"id": 869}, "organization": {"id": 923}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "owner": {"id": 493}, "assignee": {"id": 88}, "organization": {"id": 690}, "project": {"owner": {"id": 726}, "assignee": {"id": 856}, "organization": {"id": 937}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "owner": {"id": 463}, "assignee": {"id": 84}, "organization": {"id": 119}, "project": {"owner": {"id": 738}, "assignee": {"id": 830}, "organization": {"id": 932}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "owner": {"id": 448}, "assignee": {"id": 51}, "organization": {"id": 657}, "project": {"owner": {"id": 776}, "assignee": {"id": 861}, "organization": {"id": 974}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 388, "owner": {"id": 453}, "assignee": {"id": 76}, "organization": {"id": 181}, "project": {"owner": {"id": 746}, "assignee": {"id": 889}, "organization": {"id": 968}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 498}, "assignee": {"id": 82}, "organization": {"id": 684}, "project": {"owner": {"id": 785}, "assignee": {"id": 845}, "organization": {"id": 921}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 372, "owner": {"id": 482}, "assignee": {"id": 55}, "organization": {"id": 113}, "project": {"owner": {"id": 751}, "assignee": {"id": 896}, "organization": {"id": 942}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 312, "owner": {"id": 433}, "assignee": {"id": 74}, "organization": {"id": 665}, "project": {"owner": {"id": 795}, "assignee": {"id": 866}, "organization": {"id": 971}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 328, "owner": {"id": 457}, "assignee": {"id": 75}, "organization": {"id": 188}, "project": {"owner": {"id": 759}, "assignee": {"id": 898}, "organization": {"id": 986}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 319, "owner": {"id": 444}, "assignee": {"id": 10}, "organization": {"id": 661}, "project": {"owner": {"id": 713}, "assignee": {"id": 837}, "organization": {"id": 953}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 61, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "owner": {"id": 444}, "assignee": {"id": 61}, "organization": {"id": 144}, "project": {"owner": {"id": 758}, "assignee": {"id": 826}, "organization": {"id": 966}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "owner": {"id": 456}, "assignee": {"id": 38}, "organization": {"id": 689}, "project": {"owner": {"id": 757}, "assignee": {"id": 840}, "organization": {"id": 908}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 402}, "assignee": {"id": 94}, "organization": {"id": 131}, "project": {"owner": {"id": 713}, "assignee": {"id": 886}, "organization": {"id": 921}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "owner": {"id": 470}, "assignee": {"id": 29}, "organization": {"id": 642}, "project": {"owner": {"id": 771}, "assignee": {"id": 854}, "organization": {"id": 959}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 323, "owner": {"id": 423}, "assignee": {"id": 94}, "organization": {"id": 178}, "project": {"owner": {"id": 755}, "assignee": {"id": 850}, "organization": {"id": 903}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 475}, "assignee": {"id": 26}, "organization": {"id": 649}, "project": {"owner": {"id": 700}, "assignee": {"id": 890}, "organization": {"id": 927}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 390, "owner": {"id": 408}, "assignee": {"id": 41}, "organization": {"id": 125}, "project": {"owner": {"id": 768}, "assignee": {"id": 823}, "organization": {"id": 946}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 433}, "assignee": {"id": 76}, "organization": {"id": 662}, "project": {"owner": {"id": 767}, "assignee": {"id": 881}, "organization": {"id": 940}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 350, "owner": {"id": 475}, "assignee": {"id": 514}, "organization": {"id": 186}, "project": {"owner": {"id": 745}, "assignee": {"id": 858}, "organization": {"id": 979}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 478}, "assignee": {"id": 575}, "organization": {"id": 610}, "project": {"owner": {"id": 786}, "assignee": {"id": 817}, "organization": {"id": 940}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "owner": {"id": 423}, "assignee": {"id": 547}, "organization": {"id": 176}, "project": {"owner": {"id": 718}, "assignee": {"id": 865}, "organization": {"id": 949}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "owner": {"id": 449}, "assignee": {"id": 554}, "organization": {"id": 623}, "project": {"owner": {"id": 762}, "assignee": {"id": 881}, "organization": {"id": 968}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 371, "owner": {"id": 421}, "assignee": {"id": 562}, "organization": {"id": 179}, "project": {"owner": {"id": 717}, "assignee": {"id": 823}, "organization": {"id": 940}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 401}, "assignee": {"id": 562}, "organization": {"id": 617}, "project": {"owner": {"id": 724}, "assignee": {"id": 849}, "organization": {"id": 971}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 487}, "assignee": {"id": 562}, "organization": {"id": 110}, "project": {"owner": {"id": 790}, "assignee": {"id": 856}, "organization": {"id": 962}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 303, "owner": {"id": 497}, "assignee": {"id": 528}, "organization": {"id": 637}, "project": {"owner": {"id": 704}, "assignee": {"id": 835}, "organization": {"id": 928}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"id": 399, "owner": {"id": 458}, "assignee": {"id": 572}, "organization": {"id": 165}, "project": {"owner": {"id": 798}, "assignee": {"id": 898}, "organization": {"id": 963}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 373, "owner": {"id": 414}, "assignee": {"id": 534}, "organization": {"id": 699}, "project": {"owner": {"id": 769}, "assignee": {"id": 846}, "organization": {"id": 969}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 392, "owner": {"id": 456}, "assignee": {"id": 569}, "organization": {"id": 196}, "project": {"owner": {"id": 754}, "assignee": {"id": 813}, "organization": {"id": 994}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 404}, "assignee": {"id": 557}, "organization": {"id": 633}, "project": {"owner": {"id": 744}, "assignee": {"id": 811}, "organization": {"id": 956}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 494}, "assignee": {"id": 575}, "organization": {"id": 154}, "project": {"owner": {"id": 744}, "assignee": {"id": 890}, "organization": {"id": 978}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 417}, "assignee": {"id": 526}, "organization": {"id": 626}, "project": {"owner": {"id": 707}, "assignee": {"id": 872}, "organization": {"id": 944}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "owner": {"id": 421}, "assignee": {"id": 541}, "organization": {"id": 165}, "project": {"owner": {"id": 737}, "assignee": {"id": 837}, "organization": {"id": 973}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "owner": {"id": 417}, "assignee": {"id": 596}, "organization": {"id": 652}, "project": {"owner": {"id": 707}, "assignee": {"id": 835}, "organization": {"id": 983}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 418}, "assignee": {"id": 591}, "organization": {"id": 162}, "project": {"owner": {"id": 731}, "assignee": {"id": 897}, "organization": {"id": 986}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 373, "owner": {"id": 480}, "assignee": {"id": 534}, "organization": {"id": 680}, "project": {"owner": {"id": 753}, "assignee": {"id": 848}, "organization": {"id": 957}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 311, "owner": {"id": 451}, "assignee": {"id": 565}, "organization": {"id": 162}, "project": {"owner": {"id": 735}, "assignee": {"id": 888}, "organization": {"id": 947}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 81, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 374, "owner": {"id": 400}, "assignee": {"id": 599}, "organization": {"id": 693}, "project": {"owner": {"id": 711}, "assignee": {"id": 893}, "organization": {"id": 958}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 345, "owner": {"id": 408}, "assignee": {"id": 568}, "organization": {"id": 134}, "project": {"owner": {"id": 727}, "assignee": {"id": 854}, "organization": {"id": 927}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 336, "owner": {"id": 443}, "assignee": {"id": 570}, "organization": {"id": 673}, "project": {"owner": {"id": 716}, "assignee": {"id": 872}, "organization": {"id": 962}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:desc", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "owner": {"id": 405}, "assignee": {"id": 512}, "organization": {"id": 156}, "project": {"owner": {"id": 758}, "assignee": {"id": 802}, "organization": {"id": 915}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "owner": {"id": 454}, "assignee": {"id": 525}, "organization": {"id": 688}, "project": {"owner": {"id": 716}, "assignee": {"id": 883}, "organization": {"id": 938}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 446}, "assignee": {"id": 532}, "organization": {"id": 106}, "project": {"owner": {"id": 747}, "assignee": {"id": 885}, "organization": {"id": 983}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 380, "owner": {"id": 439}, "assignee": {"id": 592}, "organization": {"id": 689}, "project": {"owner": {"id": 796}, "assignee": {"id": 829}, "organization": {"id": 954}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 312, "owner": {"id": 400}, "assignee": {"id": 527}, "organization": {"id": 166}, "project": {"owner": {"id": 709}, "assignee": {"id": 816}, "organization": {"id": 975}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 401}, "assignee": {"id": 501}, "organization": {"id": 689}, "project": {"owner": {"id": 743}, "assignee": {"id": 815}, "organization": {"id": 954}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 309, "owner": {"id": 429}, "assignee": {"id": 549}, "organization": {"id": 147}, "project": {"owner": {"id": 793}, "assignee": {"id": 813}, "organization": {"id": 913}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"id": 317, "owner": {"id": 448}, "assignee": {"id": 599}, "organization": {"id": 696}, "project": {"owner": {"id": 717}, "assignee": {"id": 882}, "organization": {"id": 986}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 401}, "assignee": {"id": 578}, "organization": {"id": 127}, "project": {"owner": {"id": 721}, "assignee": {"id": 856}, "organization": {"id": 944}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 395, "owner": {"id": 419}, "assignee": {"id": 552}, "organization": {"id": 678}, "project": {"owner": {"id": 787}, "assignee": {"id": 856}, "organization": {"id": 927}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "owner": {"id": 415}, "assignee": {"id": 575}, "organization": {"id": 117}, "project": {"owner": {"id": 749}, "assignee": {"id": 844}, "organization": {"id": 954}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "owner": {"id": 482}, "assignee": {"id": 510}, "organization": {"id": 631}, "project": {"owner": {"id": 770}, "assignee": {"id": 876}, "organization": {"id": 976}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "owner": {"id": 488}, "assignee": {"id": 503}, "organization": {"id": 165}, "project": {"owner": {"id": 738}, "assignee": {"id": 826}, "organization": {"id": 966}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "owner": {"id": 450}, "assignee": {"id": 537}, "organization": {"id": 682}, "project": {"owner": {"id": 706}, "assignee": {"id": 830}, "organization": {"id": 963}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 363, "owner": {"id": 481}, "assignee": {"id": 576}, "organization": {"id": 116}, "project": {"owner": {"id": 767}, "assignee": {"id": 801}, "organization": {"id": 946}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 372, "owner": {"id": 453}, "assignee": {"id": 546}, "organization": {"id": 669}, "project": {"owner": {"id": 787}, "assignee": {"id": 822}, "organization": {"id": 997}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 302, "owner": {"id": 475}, "assignee": {"id": 508}, "organization": {"id": 150}, "project": {"owner": {"id": 733}, "assignee": {"id": 827}, "organization": {"id": 905}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 336, "owner": {"id": 480}, "assignee": {"id": 591}, "organization": {"id": 664}, "project": {"owner": {"id": 798}, "assignee": {"id": 853}, "organization": {"id": 954}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 381, "owner": {"id": 468}, "assignee": {"id": 568}, "organization": {"id": 110}, "project": {"owner": {"id": 719}, "assignee": {"id": 835}, "organization": {"id": 910}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 326, "owner": {"id": 419}, "assignee": {"id": 568}, "organization": {"id": 641}, "project": {"owner": {"id": 750}, "assignee": {"id": 875}, "organization": {"id": 981}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 408}, "assignee": {"id": 539}, "organization": {"id": 131}, "project": {"owner": {"id": 755}, "assignee": {"id": 893}, "organization": {"id": 930}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "owner": {"id": 414}, "assignee": {"id": 558}, "organization": {"id": 678}, "project": {"owner": {"id": 777}, "assignee": {"id": 807}, "organization": {"id": 939}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "owner": {"id": 422}, "assignee": {"id": 515}, "organization": {"id": 120}, "project": {"owner": {"id": 790}, "assignee": {"id": 817}, "organization": {"id": 989}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "owner": {"id": 466}, "assignee": {"id": 566}, "organization": {"id": 692}, "project": {"owner": {"id": 733}, "assignee": {"id": 821}, "organization": {"id": 947}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 334, "owner": {"id": 493}, "assignee": {"id": 515}, "organization": {"id": 167}, "project": {"owner": {"id": 703}, "assignee": {"id": 842}, "organization": {"id": 954}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 333, "owner": {"id": 491}, "assignee": {"id": 573}, "organization": {"id": 680}, "project": {"owner": {"id": 709}, "assignee": {"id": 863}, "organization": {"id": 958}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 363, "owner": {"id": 472}, "assignee": {"id": 521}, "organization": {"id": 173}, "project": {"owner": {"id": 720}, "assignee": {"id": 832}, "organization": {"id": 998}}}} -} - -test_scope_UPDATE_DESC_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:desc", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 392, "owner": {"id": 414}, "assignee": {"id": 529}, "organization": {"id": 694}, "project": {"owner": {"id": 765}, "assignee": {"id": 800}, "organization": {"id": 905}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": null}, "resource": {"id": 369, "owner": {"id": 497}, "assignee": {"id": 531}, "organization": {"id": 619}, "project": {"owner": {"id": 29}, "assignee": {"id": 852}, "organization": {"id": 903}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": null}, "resource": {"id": 374, "owner": {"id": 413}, "assignee": {"id": 519}, "organization": {"id": 613}, "project": {"owner": {"id": 40}, "assignee": {"id": 857}, "organization": {"id": 959}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": null}, "resource": {"id": 325, "owner": {"id": 482}, "assignee": {"id": 556}, "organization": {"id": 616}, "project": {"owner": {"id": 5}, "assignee": {"id": 842}, "organization": {"id": 915}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 29, "privilege": "worker"}, "organization": null}, "resource": {"id": 335, "owner": {"id": 407}, "assignee": {"id": 560}, "organization": {"id": 667}, "project": {"owner": {"id": 29}, "assignee": {"id": 898}, "organization": {"id": 974}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": null}, "resource": {"id": 367, "owner": {"id": 446}, "assignee": {"id": 509}, "organization": {"id": 647}, "project": {"owner": {"id": 75}, "assignee": {"id": 884}, "organization": {"id": 950}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": null}, "resource": {"id": 333, "owner": {"id": 426}, "assignee": {"id": 531}, "organization": {"id": 688}, "project": {"owner": {"id": 708}, "assignee": {"id": 13}, "organization": {"id": 932}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": null}, "resource": {"id": 384, "owner": {"id": 436}, "assignee": {"id": 538}, "organization": {"id": 630}, "project": {"owner": {"id": 712}, "assignee": {"id": 73}, "organization": {"id": 950}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": null}, "resource": {"id": 349, "owner": {"id": 466}, "assignee": {"id": 553}, "organization": {"id": 668}, "project": {"owner": {"id": 787}, "assignee": {"id": 30}, "organization": {"id": 973}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": null}, "resource": {"id": 368, "owner": {"id": 444}, "assignee": {"id": 552}, "organization": {"id": 633}, "project": {"owner": {"id": 749}, "assignee": {"id": 73}, "organization": {"id": 962}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": null}, "resource": {"id": 367, "owner": {"id": 472}, "assignee": {"id": 503}, "organization": {"id": 622}, "project": {"owner": {"id": 724}, "assignee": {"id": 31}, "organization": {"id": 907}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": null}, "resource": {"id": 391, "owner": {"id": 58}, "assignee": {"id": 582}, "organization": {"id": 635}, "project": {"owner": {"id": 754}, "assignee": {"id": 848}, "organization": {"id": 944}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": null}, "resource": {"id": 391, "owner": {"id": 45}, "assignee": {"id": 587}, "organization": {"id": 668}, "project": {"owner": {"id": 781}, "assignee": {"id": 860}, "organization": {"id": 985}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": null}, "resource": {"id": 362, "owner": {"id": 0}, "assignee": {"id": 580}, "organization": {"id": 622}, "project": {"owner": {"id": 740}, "assignee": {"id": 881}, "organization": {"id": 907}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": null}, "resource": {"id": 343, "owner": {"id": 2}, "assignee": {"id": 545}, "organization": {"id": 696}, "project": {"owner": {"id": 724}, "assignee": {"id": 821}, "organization": {"id": 951}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": null}, "resource": {"id": 314, "owner": {"id": 33}, "assignee": {"id": 563}, "organization": {"id": 625}, "project": {"owner": {"id": 777}, "assignee": {"id": 825}, "organization": {"id": 999}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": null}, "resource": {"id": 311, "owner": {"id": 447}, "assignee": {"id": 58}, "organization": {"id": 623}, "project": {"owner": {"id": 714}, "assignee": {"id": 851}, "organization": {"id": 951}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": null}, "resource": {"id": 344, "owner": {"id": 484}, "assignee": {"id": 78}, "organization": {"id": 682}, "project": {"owner": {"id": 749}, "assignee": {"id": 819}, "organization": {"id": 971}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": null}, "resource": {"id": 379, "owner": {"id": 476}, "assignee": {"id": 57}, "organization": {"id": 691}, "project": {"owner": {"id": 784}, "assignee": {"id": 846}, "organization": {"id": 991}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": null}, "resource": {"id": 374, "owner": {"id": 422}, "assignee": {"id": 76}, "organization": {"id": 616}, "project": {"owner": {"id": 713}, "assignee": {"id": 849}, "organization": {"id": 984}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": null}, "resource": {"id": 301, "owner": {"id": 466}, "assignee": {"id": 85}, "organization": {"id": 603}, "project": {"owner": {"id": 748}, "assignee": {"id": 818}, "organization": {"id": 906}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": null}, "resource": {"id": 324, "owner": {"id": 437}, "assignee": {"id": 557}, "organization": {"id": 622}, "project": {"owner": {"id": 787}, "assignee": {"id": 809}, "organization": {"id": 923}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": null}, "resource": {"id": 301, "owner": {"id": 414}, "assignee": {"id": 585}, "organization": {"id": 644}, "project": {"owner": {"id": 757}, "assignee": {"id": 830}, "organization": {"id": 982}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": null}, "resource": {"id": 332, "owner": {"id": 471}, "assignee": {"id": 509}, "organization": {"id": 673}, "project": {"owner": {"id": 729}, "assignee": {"id": 833}, "organization": {"id": 952}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": null}, "resource": {"id": 370, "owner": {"id": 410}, "assignee": {"id": 539}, "organization": {"id": 626}, "project": {"owner": {"id": 795}, "assignee": {"id": 894}, "organization": {"id": 992}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": null}, "resource": {"id": 394, "owner": {"id": 482}, "assignee": {"id": 555}, "organization": {"id": 635}, "project": {"owner": {"id": 746}, "assignee": {"id": 817}, "organization": {"id": 986}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 362, "owner": {"id": 470}, "assignee": {"id": 513}, "organization": {"id": 117}, "project": {"owner": {"id": 35}, "assignee": {"id": 877}, "organization": {"id": 910}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 325, "owner": {"id": 433}, "assignee": {"id": 593}, "organization": {"id": 680}, "project": {"owner": {"id": 2}, "assignee": {"id": 893}, "organization": {"id": 909}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "owner": {"id": 474}, "assignee": {"id": 574}, "organization": {"id": 170}, "project": {"owner": {"id": 4}, "assignee": {"id": 875}, "organization": {"id": 927}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 469}, "assignee": {"id": 560}, "organization": {"id": 683}, "project": {"owner": {"id": 50}, "assignee": {"id": 819}, "organization": {"id": 946}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "owner": {"id": 493}, "assignee": {"id": 537}, "organization": {"id": 150}, "project": {"owner": {"id": 11}, "assignee": {"id": 864}, "organization": {"id": 965}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 401}, "assignee": {"id": 584}, "organization": {"id": 630}, "project": {"owner": {"id": 96}, "assignee": {"id": 887}, "organization": {"id": 921}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 420}, "assignee": {"id": 522}, "organization": {"id": 193}, "project": {"owner": {"id": 94}, "assignee": {"id": 884}, "organization": {"id": 918}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 405}, "assignee": {"id": 528}, "organization": {"id": 697}, "project": {"owner": {"id": 33}, "assignee": {"id": 829}, "organization": {"id": 908}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 305, "owner": {"id": 485}, "assignee": {"id": 526}, "organization": {"id": 105}, "project": {"owner": {"id": 58}, "assignee": {"id": 849}, "organization": {"id": 960}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 383, "owner": {"id": 441}, "assignee": {"id": 513}, "organization": {"id": 690}, "project": {"owner": {"id": 94}, "assignee": {"id": 881}, "organization": {"id": 935}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 369, "owner": {"id": 472}, "assignee": {"id": 522}, "organization": {"id": 183}, "project": {"owner": {"id": 75}, "assignee": {"id": 848}, "organization": {"id": 946}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 366, "owner": {"id": 432}, "assignee": {"id": 548}, "organization": {"id": 628}, "project": {"owner": {"id": 44}, "assignee": {"id": 851}, "organization": {"id": 945}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "owner": {"id": 400}, "assignee": {"id": 564}, "organization": {"id": 165}, "project": {"owner": {"id": 9}, "assignee": {"id": 821}, "organization": {"id": 929}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "owner": {"id": 427}, "assignee": {"id": 519}, "organization": {"id": 623}, "project": {"owner": {"id": 91}, "assignee": {"id": 846}, "organization": {"id": 977}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "owner": {"id": 453}, "assignee": {"id": 542}, "organization": {"id": 161}, "project": {"owner": {"id": 61}, "assignee": {"id": 861}, "organization": {"id": 986}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "owner": {"id": 420}, "assignee": {"id": 582}, "organization": {"id": 652}, "project": {"owner": {"id": 16}, "assignee": {"id": 831}, "organization": {"id": 905}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 320, "owner": {"id": 417}, "assignee": {"id": 580}, "organization": {"id": 121}, "project": {"owner": {"id": 7}, "assignee": {"id": 873}, "organization": {"id": 918}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 323, "owner": {"id": 466}, "assignee": {"id": 551}, "organization": {"id": 676}, "project": {"owner": {"id": 92}, "assignee": {"id": 881}, "organization": {"id": 902}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 336, "owner": {"id": 410}, "assignee": {"id": 527}, "organization": {"id": 128}, "project": {"owner": {"id": 21}, "assignee": {"id": 860}, "organization": {"id": 961}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 376, "owner": {"id": 418}, "assignee": {"id": 574}, "organization": {"id": 698}, "project": {"owner": {"id": 65}, "assignee": {"id": 879}, "organization": {"id": 984}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 392, "owner": {"id": 487}, "assignee": {"id": 543}, "organization": {"id": 148}, "project": {"owner": {"id": 29}, "assignee": {"id": 875}, "organization": {"id": 908}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 316, "owner": {"id": 413}, "assignee": {"id": 502}, "organization": {"id": 625}, "project": {"owner": {"id": 53}, "assignee": {"id": 864}, "organization": {"id": 987}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "owner": {"id": 422}, "assignee": {"id": 560}, "organization": {"id": 196}, "project": {"owner": {"id": 64}, "assignee": {"id": 804}, "organization": {"id": 968}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 461}, "assignee": {"id": 584}, "organization": {"id": 616}, "project": {"owner": {"id": 99}, "assignee": {"id": 869}, "organization": {"id": 900}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "owner": {"id": 466}, "assignee": {"id": 553}, "organization": {"id": 129}, "project": {"owner": {"id": 54}, "assignee": {"id": 889}, "organization": {"id": 967}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "owner": {"id": 448}, "assignee": {"id": 544}, "organization": {"id": 675}, "project": {"owner": {"id": 73}, "assignee": {"id": 897}, "organization": {"id": 989}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 317, "owner": {"id": 432}, "assignee": {"id": 561}, "organization": {"id": 169}, "project": {"owner": {"id": 76}, "assignee": {"id": 810}, "organization": {"id": 936}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 332, "owner": {"id": 424}, "assignee": {"id": 500}, "organization": {"id": 690}, "project": {"owner": {"id": 66}, "assignee": {"id": 800}, "organization": {"id": 973}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 300, "owner": {"id": 448}, "assignee": {"id": 583}, "organization": {"id": 113}, "project": {"owner": {"id": 46}, "assignee": {"id": 840}, "organization": {"id": 952}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 354, "owner": {"id": 483}, "assignee": {"id": 574}, "organization": {"id": 632}, "project": {"owner": {"id": 72}, "assignee": {"id": 868}, "organization": {"id": 954}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 335, "owner": {"id": 487}, "assignee": {"id": 550}, "organization": {"id": 161}, "project": {"owner": {"id": 71}, "assignee": {"id": 852}, "organization": {"id": 970}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 471}, "assignee": {"id": 571}, "organization": {"id": 661}, "project": {"owner": {"id": 44}, "assignee": {"id": 839}, "organization": {"id": 973}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "owner": {"id": 494}, "assignee": {"id": 517}, "organization": {"id": 189}, "project": {"owner": {"id": 57}, "assignee": {"id": 895}, "organization": {"id": 929}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "owner": {"id": 427}, "assignee": {"id": 565}, "organization": {"id": 651}, "project": {"owner": {"id": 89}, "assignee": {"id": 870}, "organization": {"id": 978}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 420}, "assignee": {"id": 549}, "organization": {"id": 176}, "project": {"owner": {"id": 60}, "assignee": {"id": 811}, "organization": {"id": 918}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "owner": {"id": 408}, "assignee": {"id": 533}, "organization": {"id": 628}, "project": {"owner": {"id": 4}, "assignee": {"id": 810}, "organization": {"id": 977}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 351, "owner": {"id": 478}, "assignee": {"id": 583}, "organization": {"id": 199}, "project": {"owner": {"id": 7}, "assignee": {"id": 891}, "organization": {"id": 976}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 381, "owner": {"id": 463}, "assignee": {"id": 556}, "organization": {"id": 601}, "project": {"owner": {"id": 36}, "assignee": {"id": 884}, "organization": {"id": 966}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 376, "owner": {"id": 465}, "assignee": {"id": 566}, "organization": {"id": 104}, "project": {"owner": {"id": 86}, "assignee": {"id": 878}, "organization": {"id": 921}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 330, "owner": {"id": 483}, "assignee": {"id": 500}, "organization": {"id": 620}, "project": {"owner": {"id": 51}, "assignee": {"id": 835}, "organization": {"id": 999}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 350, "owner": {"id": 451}, "assignee": {"id": 575}, "organization": {"id": 108}, "project": {"owner": {"id": 90}, "assignee": {"id": 801}, "organization": {"id": 994}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 370, "owner": {"id": 436}, "assignee": {"id": 592}, "organization": {"id": 671}, "project": {"owner": {"id": 35}, "assignee": {"id": 844}, "organization": {"id": 944}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "owner": {"id": 458}, "assignee": {"id": 551}, "organization": {"id": 164}, "project": {"owner": {"id": 52}, "assignee": {"id": 833}, "organization": {"id": 922}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "owner": {"id": 409}, "assignee": {"id": 564}, "organization": {"id": 637}, "project": {"owner": {"id": 32}, "assignee": {"id": 814}, "organization": {"id": 965}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "owner": {"id": 488}, "assignee": {"id": 556}, "organization": {"id": 196}, "project": {"owner": {"id": 31}, "assignee": {"id": 861}, "organization": {"id": 998}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "owner": {"id": 458}, "assignee": {"id": 587}, "organization": {"id": 658}, "project": {"owner": {"id": 14}, "assignee": {"id": 803}, "organization": {"id": 961}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 348, "owner": {"id": 481}, "assignee": {"id": 528}, "organization": {"id": 145}, "project": {"owner": {"id": 52}, "assignee": {"id": 829}, "organization": {"id": 940}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 368, "owner": {"id": 401}, "assignee": {"id": 589}, "organization": {"id": 633}, "project": {"owner": {"id": 51}, "assignee": {"id": 836}, "organization": {"id": 911}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 409}, "assignee": {"id": 570}, "organization": {"id": 173}, "project": {"owner": {"id": 27}, "assignee": {"id": 840}, "organization": {"id": 945}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 323, "owner": {"id": 495}, "assignee": {"id": 587}, "organization": {"id": 624}, "project": {"owner": {"id": 30}, "assignee": {"id": 894}, "organization": {"id": 925}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 333, "owner": {"id": 426}, "assignee": {"id": 529}, "organization": {"id": 199}, "project": {"owner": {"id": 731}, "assignee": {"id": 19}, "organization": {"id": 945}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 315, "owner": {"id": 410}, "assignee": {"id": 586}, "organization": {"id": 684}, "project": {"owner": {"id": 763}, "assignee": {"id": 97}, "organization": {"id": 900}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 447}, "assignee": {"id": 579}, "organization": {"id": 123}, "project": {"owner": {"id": 763}, "assignee": {"id": 62}, "organization": {"id": 935}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "owner": {"id": 435}, "assignee": {"id": 550}, "organization": {"id": 628}, "project": {"owner": {"id": 796}, "assignee": {"id": 6}, "organization": {"id": 916}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "owner": {"id": 469}, "assignee": {"id": 504}, "organization": {"id": 122}, "project": {"owner": {"id": 744}, "assignee": {"id": 99}, "organization": {"id": 987}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "owner": {"id": 489}, "assignee": {"id": 566}, "organization": {"id": 658}, "project": {"owner": {"id": 740}, "assignee": {"id": 1}, "organization": {"id": 901}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 348, "owner": {"id": 474}, "assignee": {"id": 512}, "organization": {"id": 170}, "project": {"owner": {"id": 746}, "assignee": {"id": 23}, "organization": {"id": 933}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 330, "owner": {"id": 434}, "assignee": {"id": 560}, "organization": {"id": 678}, "project": {"owner": {"id": 743}, "assignee": {"id": 63}, "organization": {"id": 923}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 489}, "assignee": {"id": 596}, "organization": {"id": 123}, "project": {"owner": {"id": 746}, "assignee": {"id": 57}, "organization": {"id": 935}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 316, "owner": {"id": 473}, "assignee": {"id": 587}, "organization": {"id": 629}, "project": {"owner": {"id": 712}, "assignee": {"id": 30}, "organization": {"id": 934}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 348, "owner": {"id": 425}, "assignee": {"id": 518}, "organization": {"id": 153}, "project": {"owner": {"id": 719}, "assignee": {"id": 22}, "organization": {"id": 901}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 317, "owner": {"id": 480}, "assignee": {"id": 566}, "organization": {"id": 668}, "project": {"owner": {"id": 792}, "assignee": {"id": 38}, "organization": {"id": 962}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 372, "owner": {"id": 406}, "assignee": {"id": 550}, "organization": {"id": 132}, "project": {"owner": {"id": 788}, "assignee": {"id": 27}, "organization": {"id": 907}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 412}, "assignee": {"id": 557}, "organization": {"id": 695}, "project": {"owner": {"id": 742}, "assignee": {"id": 46}, "organization": {"id": 946}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "owner": {"id": 444}, "assignee": {"id": 502}, "organization": {"id": 125}, "project": {"owner": {"id": 715}, "assignee": {"id": 77}, "organization": {"id": 986}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "owner": {"id": 483}, "assignee": {"id": 583}, "organization": {"id": 668}, "project": {"owner": {"id": 722}, "assignee": {"id": 45}, "organization": {"id": 936}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 365, "owner": {"id": 462}, "assignee": {"id": 599}, "organization": {"id": 136}, "project": {"owner": {"id": 757}, "assignee": {"id": 78}, "organization": {"id": 948}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 380, "owner": {"id": 418}, "assignee": {"id": 521}, "organization": {"id": 681}, "project": {"owner": {"id": 743}, "assignee": {"id": 78}, "organization": {"id": 980}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"id": 309, "owner": {"id": 410}, "assignee": {"id": 520}, "organization": {"id": 137}, "project": {"owner": {"id": 729}, "assignee": {"id": 83}, "organization": {"id": 940}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 334, "owner": {"id": 477}, "assignee": {"id": 582}, "organization": {"id": 650}, "project": {"owner": {"id": 734}, "assignee": {"id": 46}, "organization": {"id": 999}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 366, "owner": {"id": 457}, "assignee": {"id": 552}, "organization": {"id": 130}, "project": {"owner": {"id": 723}, "assignee": {"id": 93}, "organization": {"id": 916}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 495}, "assignee": {"id": 589}, "organization": {"id": 695}, "project": {"owner": {"id": 710}, "assignee": {"id": 50}, "organization": {"id": 921}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "owner": {"id": 460}, "assignee": {"id": 570}, "organization": {"id": 197}, "project": {"owner": {"id": 703}, "assignee": {"id": 67}, "organization": {"id": 950}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 433}, "assignee": {"id": 579}, "organization": {"id": 619}, "project": {"owner": {"id": 710}, "assignee": {"id": 39}, "organization": {"id": 949}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "owner": {"id": 436}, "assignee": {"id": 556}, "organization": {"id": 103}, "project": {"owner": {"id": 716}, "assignee": {"id": 21}, "organization": {"id": 967}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "owner": {"id": 445}, "assignee": {"id": 541}, "organization": {"id": 660}, "project": {"owner": {"id": 759}, "assignee": {"id": 70}, "organization": {"id": 934}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 389, "owner": {"id": 469}, "assignee": {"id": 522}, "organization": {"id": 181}, "project": {"owner": {"id": 776}, "assignee": {"id": 95}, "organization": {"id": 980}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 355, "owner": {"id": 467}, "assignee": {"id": 581}, "organization": {"id": 681}, "project": {"owner": {"id": 768}, "assignee": {"id": 61}, "organization": {"id": 944}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 311, "owner": {"id": 456}, "assignee": {"id": 539}, "organization": {"id": 101}, "project": {"owner": {"id": 752}, "assignee": {"id": 38}, "organization": {"id": 919}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 366, "owner": {"id": 497}, "assignee": {"id": 517}, "organization": {"id": 644}, "project": {"owner": {"id": 736}, "assignee": {"id": 1}, "organization": {"id": 968}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 396, "owner": {"id": 461}, "assignee": {"id": 538}, "organization": {"id": 129}, "project": {"owner": {"id": 798}, "assignee": {"id": 76}, "organization": {"id": 937}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 370, "owner": {"id": 447}, "assignee": {"id": 524}, "organization": {"id": 652}, "project": {"owner": {"id": 771}, "assignee": {"id": 31}, "organization": {"id": 950}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 482}, "assignee": {"id": 549}, "organization": {"id": 180}, "project": {"owner": {"id": 728}, "assignee": {"id": 54}, "organization": {"id": 910}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "owner": {"id": 497}, "assignee": {"id": 578}, "organization": {"id": 688}, "project": {"owner": {"id": 787}, "assignee": {"id": 83}, "organization": {"id": 936}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 452}, "assignee": {"id": 524}, "organization": {"id": 181}, "project": {"owner": {"id": 723}, "assignee": {"id": 14}, "organization": {"id": 937}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "owner": {"id": 457}, "assignee": {"id": 534}, "organization": {"id": 689}, "project": {"owner": {"id": 779}, "assignee": {"id": 41}, "organization": {"id": 924}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 306, "owner": {"id": 468}, "assignee": {"id": 502}, "organization": {"id": 191}, "project": {"owner": {"id": 713}, "assignee": {"id": 16}, "organization": {"id": 934}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 401}, "assignee": {"id": 529}, "organization": {"id": 611}, "project": {"owner": {"id": 719}, "assignee": {"id": 27}, "organization": {"id": 963}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 463}, "assignee": {"id": 547}, "organization": {"id": 196}, "project": {"owner": {"id": 789}, "assignee": {"id": 10}, "organization": {"id": 942}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 434}, "assignee": {"id": 599}, "organization": {"id": 650}, "project": {"owner": {"id": 709}, "assignee": {"id": 23}, "organization": {"id": 960}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 348, "owner": {"id": 401}, "assignee": {"id": 515}, "organization": {"id": 156}, "project": {"owner": {"id": 791}, "assignee": {"id": 98}, "organization": {"id": 949}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 404}, "assignee": {"id": 525}, "organization": {"id": 658}, "project": {"owner": {"id": 794}, "assignee": {"id": 66}, "organization": {"id": 912}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 449}, "assignee": {"id": 587}, "organization": {"id": 105}, "project": {"owner": {"id": 741}, "assignee": {"id": 93}, "organization": {"id": 980}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "owner": {"id": 466}, "assignee": {"id": 515}, "organization": {"id": 632}, "project": {"owner": {"id": 761}, "assignee": {"id": 25}, "organization": {"id": 938}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "owner": {"id": 427}, "assignee": {"id": 514}, "organization": {"id": 121}, "project": {"owner": {"id": 781}, "assignee": {"id": 1}, "organization": {"id": 941}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "owner": {"id": 415}, "assignee": {"id": 550}, "organization": {"id": 631}, "project": {"owner": {"id": 701}, "assignee": {"id": 88}, "organization": {"id": 974}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 419}, "assignee": {"id": 547}, "organization": {"id": 111}, "project": {"owner": {"id": 711}, "assignee": {"id": 63}, "organization": {"id": 920}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 379, "owner": {"id": 443}, "assignee": {"id": 597}, "organization": {"id": 680}, "project": {"owner": {"id": 707}, "assignee": {"id": 82}, "organization": {"id": 945}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 413}, "assignee": {"id": 516}, "organization": {"id": 196}, "project": {"owner": {"id": 729}, "assignee": {"id": 82}, "organization": {"id": 971}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 356, "owner": {"id": 493}, "assignee": {"id": 524}, "organization": {"id": 602}, "project": {"owner": {"id": 788}, "assignee": {"id": 92}, "organization": {"id": 945}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 305, "owner": {"id": 89}, "assignee": {"id": 590}, "organization": {"id": 162}, "project": {"owner": {"id": 771}, "assignee": {"id": 837}, "organization": {"id": 969}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 35}, "assignee": {"id": 569}, "organization": {"id": 644}, "project": {"owner": {"id": 741}, "assignee": {"id": 893}, "organization": {"id": 959}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 320, "owner": {"id": 69}, "assignee": {"id": 567}, "organization": {"id": 146}, "project": {"owner": {"id": 757}, "assignee": {"id": 837}, "organization": {"id": 933}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "owner": {"id": 2}, "assignee": {"id": 581}, "organization": {"id": 664}, "project": {"owner": {"id": 748}, "assignee": {"id": 893}, "organization": {"id": 923}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "owner": {"id": 68}, "assignee": {"id": 530}, "organization": {"id": 149}, "project": {"owner": {"id": 792}, "assignee": {"id": 808}, "organization": {"id": 984}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 36, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "owner": {"id": 36}, "assignee": {"id": 563}, "organization": {"id": 698}, "project": {"owner": {"id": 770}, "assignee": {"id": 819}, "organization": {"id": 978}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 382, "owner": {"id": 5}, "assignee": {"id": 514}, "organization": {"id": 116}, "project": {"owner": {"id": 766}, "assignee": {"id": 884}, "organization": {"id": 908}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 304, "owner": {"id": 73}, "assignee": {"id": 513}, "organization": {"id": 662}, "project": {"owner": {"id": 724}, "assignee": {"id": 812}, "organization": {"id": 904}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 384, "owner": {"id": 6}, "assignee": {"id": 567}, "organization": {"id": 146}, "project": {"owner": {"id": 789}, "assignee": {"id": 875}, "organization": {"id": 932}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 377, "owner": {"id": 10}, "assignee": {"id": 509}, "organization": {"id": 601}, "project": {"owner": {"id": 726}, "assignee": {"id": 883}, "organization": {"id": 962}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 307, "owner": {"id": 7}, "assignee": {"id": 571}, "organization": {"id": 178}, "project": {"owner": {"id": 753}, "assignee": {"id": 847}, "organization": {"id": 990}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"id": 367, "owner": {"id": 66}, "assignee": {"id": 593}, "organization": {"id": 609}, "project": {"owner": {"id": 738}, "assignee": {"id": 809}, "organization": {"id": 927}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 84}, "assignee": {"id": 568}, "organization": {"id": 131}, "project": {"owner": {"id": 724}, "assignee": {"id": 824}, "organization": {"id": 967}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 13}, "assignee": {"id": 571}, "organization": {"id": 695}, "project": {"owner": {"id": 771}, "assignee": {"id": 853}, "organization": {"id": 995}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "owner": {"id": 13}, "assignee": {"id": 586}, "organization": {"id": 121}, "project": {"owner": {"id": 789}, "assignee": {"id": 885}, "organization": {"id": 954}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "owner": {"id": 76}, "assignee": {"id": 564}, "organization": {"id": 643}, "project": {"owner": {"id": 784}, "assignee": {"id": 820}, "organization": {"id": 968}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 340, "owner": {"id": 55}, "assignee": {"id": 541}, "organization": {"id": 192}, "project": {"owner": {"id": 752}, "assignee": {"id": 897}, "organization": {"id": 981}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 377, "owner": {"id": 70}, "assignee": {"id": 572}, "organization": {"id": 669}, "project": {"owner": {"id": 727}, "assignee": {"id": 848}, "organization": {"id": 998}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 346, "owner": {"id": 36}, "assignee": {"id": 557}, "organization": {"id": 176}, "project": {"owner": {"id": 700}, "assignee": {"id": 892}, "organization": {"id": 904}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 366, "owner": {"id": 40}, "assignee": {"id": 538}, "organization": {"id": 600}, "project": {"owner": {"id": 738}, "assignee": {"id": 828}, "organization": {"id": 927}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 19, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 19}, "assignee": {"id": 570}, "organization": {"id": 112}, "project": {"owner": {"id": 771}, "assignee": {"id": 873}, "organization": {"id": 973}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 358, "owner": {"id": 31}, "assignee": {"id": 519}, "organization": {"id": 617}, "project": {"owner": {"id": 733}, "assignee": {"id": 846}, "organization": {"id": 974}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "owner": {"id": 9}, "assignee": {"id": 573}, "organization": {"id": 192}, "project": {"owner": {"id": 772}, "assignee": {"id": 827}, "organization": {"id": 993}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 76}, "assignee": {"id": 562}, "organization": {"id": 688}, "project": {"owner": {"id": 789}, "assignee": {"id": 873}, "organization": {"id": 912}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "owner": {"id": 98}, "assignee": {"id": 573}, "organization": {"id": 142}, "project": {"owner": {"id": 710}, "assignee": {"id": 899}, "organization": {"id": 907}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "owner": {"id": 77}, "assignee": {"id": 515}, "organization": {"id": 698}, "project": {"owner": {"id": 729}, "assignee": {"id": 895}, "organization": {"id": 983}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 40}, "assignee": {"id": 548}, "organization": {"id": 169}, "project": {"owner": {"id": 739}, "assignee": {"id": 867}, "organization": {"id": 905}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 319, "owner": {"id": 86}, "assignee": {"id": 564}, "organization": {"id": 689}, "project": {"owner": {"id": 728}, "assignee": {"id": 819}, "organization": {"id": 906}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 357, "owner": {"id": 55}, "assignee": {"id": 576}, "organization": {"id": 137}, "project": {"owner": {"id": 764}, "assignee": {"id": 811}, "organization": {"id": 928}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 6}, "assignee": {"id": 543}, "organization": {"id": 610}, "project": {"owner": {"id": 760}, "assignee": {"id": 873}, "organization": {"id": 995}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 333, "owner": {"id": 16}, "assignee": {"id": 551}, "organization": {"id": 197}, "project": {"owner": {"id": 755}, "assignee": {"id": 899}, "organization": {"id": 989}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 25}, "assignee": {"id": 525}, "organization": {"id": 662}, "project": {"owner": {"id": 750}, "assignee": {"id": 883}, "organization": {"id": 973}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 55}, "assignee": {"id": 531}, "organization": {"id": 141}, "project": {"owner": {"id": 709}, "assignee": {"id": 834}, "organization": {"id": 999}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "owner": {"id": 44}, "assignee": {"id": 514}, "organization": {"id": 685}, "project": {"owner": {"id": 752}, "assignee": {"id": 854}, "organization": {"id": 946}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "owner": {"id": 44}, "assignee": {"id": 583}, "organization": {"id": 178}, "project": {"owner": {"id": 798}, "assignee": {"id": 839}, "organization": {"id": 921}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "owner": {"id": 47}, "assignee": {"id": 556}, "organization": {"id": 605}, "project": {"owner": {"id": 729}, "assignee": {"id": 825}, "organization": {"id": 987}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 18}, "assignee": {"id": 514}, "organization": {"id": 136}, "project": {"owner": {"id": 706}, "assignee": {"id": 831}, "organization": {"id": 979}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 343, "owner": {"id": 42}, "assignee": {"id": 514}, "organization": {"id": 639}, "project": {"owner": {"id": 757}, "assignee": {"id": 860}, "organization": {"id": 902}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 70}, "assignee": {"id": 526}, "organization": {"id": 161}, "project": {"owner": {"id": 766}, "assignee": {"id": 896}, "organization": {"id": 933}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"id": 393, "owner": {"id": 74}, "assignee": {"id": 588}, "organization": {"id": 689}, "project": {"owner": {"id": 785}, "assignee": {"id": 802}, "organization": {"id": 948}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 305, "owner": {"id": 79}, "assignee": {"id": 521}, "organization": {"id": 134}, "project": {"owner": {"id": 736}, "assignee": {"id": 825}, "organization": {"id": 989}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 359, "owner": {"id": 84}, "assignee": {"id": 501}, "organization": {"id": 608}, "project": {"owner": {"id": 749}, "assignee": {"id": 884}, "organization": {"id": 934}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 65}, "assignee": {"id": 537}, "organization": {"id": 190}, "project": {"owner": {"id": 749}, "assignee": {"id": 829}, "organization": {"id": 948}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "owner": {"id": 64}, "assignee": {"id": 576}, "organization": {"id": 668}, "project": {"owner": {"id": 711}, "assignee": {"id": 823}, "organization": {"id": 925}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "owner": {"id": 62}, "assignee": {"id": 505}, "organization": {"id": 150}, "project": {"owner": {"id": 767}, "assignee": {"id": 839}, "organization": {"id": 942}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "owner": {"id": 38}, "assignee": {"id": 544}, "organization": {"id": 687}, "project": {"owner": {"id": 745}, "assignee": {"id": 845}, "organization": {"id": 980}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 35}, "assignee": {"id": 580}, "organization": {"id": 128}, "project": {"owner": {"id": 749}, "assignee": {"id": 803}, "organization": {"id": 971}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 343, "owner": {"id": 66}, "assignee": {"id": 584}, "organization": {"id": 617}, "project": {"owner": {"id": 711}, "assignee": {"id": 893}, "organization": {"id": 948}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 380, "owner": {"id": 54}, "assignee": {"id": 529}, "organization": {"id": 139}, "project": {"owner": {"id": 730}, "assignee": {"id": 873}, "organization": {"id": 919}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 342, "owner": {"id": 74}, "assignee": {"id": 569}, "organization": {"id": 616}, "project": {"owner": {"id": 726}, "assignee": {"id": 883}, "organization": {"id": 917}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 325, "owner": {"id": 417}, "assignee": {"id": 55}, "organization": {"id": 198}, "project": {"owner": {"id": 790}, "assignee": {"id": 867}, "organization": {"id": 917}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 383, "owner": {"id": 472}, "assignee": {"id": 92}, "organization": {"id": 640}, "project": {"owner": {"id": 708}, "assignee": {"id": 871}, "organization": {"id": 968}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "owner": {"id": 418}, "assignee": {"id": 52}, "organization": {"id": 138}, "project": {"owner": {"id": 797}, "assignee": {"id": 840}, "organization": {"id": 952}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 481}, "assignee": {"id": 13}, "organization": {"id": 635}, "project": {"owner": {"id": 719}, "assignee": {"id": 899}, "organization": {"id": 924}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 497}, "assignee": {"id": 78}, "organization": {"id": 129}, "project": {"owner": {"id": 734}, "assignee": {"id": 877}, "organization": {"id": 972}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "owner": {"id": 429}, "assignee": {"id": 99}, "organization": {"id": 603}, "project": {"owner": {"id": 745}, "assignee": {"id": 810}, "organization": {"id": 988}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 364, "owner": {"id": 477}, "assignee": {"id": 49}, "organization": {"id": 162}, "project": {"owner": {"id": 783}, "assignee": {"id": 847}, "organization": {"id": 923}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 317, "owner": {"id": 420}, "assignee": {"id": 1}, "organization": {"id": 628}, "project": {"owner": {"id": 704}, "assignee": {"id": 852}, "organization": {"id": 997}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 328, "owner": {"id": 495}, "assignee": {"id": 22}, "organization": {"id": 156}, "project": {"owner": {"id": 796}, "assignee": {"id": 826}, "organization": {"id": 908}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 362, "owner": {"id": 488}, "assignee": {"id": 99}, "organization": {"id": 658}, "project": {"owner": {"id": 731}, "assignee": {"id": 854}, "organization": {"id": 951}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 448}, "assignee": {"id": 73}, "organization": {"id": 176}, "project": {"owner": {"id": 750}, "assignee": {"id": 878}, "organization": {"id": 995}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 367, "owner": {"id": 482}, "assignee": {"id": 58}, "organization": {"id": 604}, "project": {"owner": {"id": 766}, "assignee": {"id": 813}, "organization": {"id": 957}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "owner": {"id": 468}, "assignee": {"id": 66}, "organization": {"id": 197}, "project": {"owner": {"id": 705}, "assignee": {"id": 871}, "organization": {"id": 949}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "owner": {"id": 424}, "assignee": {"id": 36}, "organization": {"id": 656}, "project": {"owner": {"id": 750}, "assignee": {"id": 838}, "organization": {"id": 999}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "owner": {"id": 437}, "assignee": {"id": 59}, "organization": {"id": 182}, "project": {"owner": {"id": 788}, "assignee": {"id": 866}, "organization": {"id": 918}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "owner": {"id": 492}, "assignee": {"id": 89}, "organization": {"id": 614}, "project": {"owner": {"id": 723}, "assignee": {"id": 899}, "organization": {"id": 974}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 452}, "assignee": {"id": 75}, "organization": {"id": 191}, "project": {"owner": {"id": 703}, "assignee": {"id": 822}, "organization": {"id": 958}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 411}, "assignee": {"id": 20}, "organization": {"id": 641}, "project": {"owner": {"id": 788}, "assignee": {"id": 883}, "organization": {"id": 991}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"id": 315, "owner": {"id": 411}, "assignee": {"id": 10}, "organization": {"id": 167}, "project": {"owner": {"id": 757}, "assignee": {"id": 881}, "organization": {"id": 946}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 493}, "assignee": {"id": 48}, "organization": {"id": 678}, "project": {"owner": {"id": 720}, "assignee": {"id": 848}, "organization": {"id": 970}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 321, "owner": {"id": 442}, "assignee": {"id": 22}, "organization": {"id": 198}, "project": {"owner": {"id": 719}, "assignee": {"id": 820}, "organization": {"id": 918}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 306, "owner": {"id": 453}, "assignee": {"id": 36}, "organization": {"id": 639}, "project": {"owner": {"id": 793}, "assignee": {"id": 898}, "organization": {"id": 957}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "owner": {"id": 416}, "assignee": {"id": 1}, "organization": {"id": 158}, "project": {"owner": {"id": 779}, "assignee": {"id": 897}, "organization": {"id": 932}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 469}, "assignee": {"id": 75}, "organization": {"id": 677}, "project": {"owner": {"id": 763}, "assignee": {"id": 830}, "organization": {"id": 927}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 452}, "assignee": {"id": 31}, "organization": {"id": 170}, "project": {"owner": {"id": 776}, "assignee": {"id": 876}, "organization": {"id": 900}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "owner": {"id": 480}, "assignee": {"id": 7}, "organization": {"id": 626}, "project": {"owner": {"id": 706}, "assignee": {"id": 823}, "organization": {"id": 918}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 304, "owner": {"id": 418}, "assignee": {"id": 42}, "organization": {"id": 111}, "project": {"owner": {"id": 773}, "assignee": {"id": 877}, "organization": {"id": 938}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 453}, "assignee": {"id": 84}, "organization": {"id": 620}, "project": {"owner": {"id": 786}, "assignee": {"id": 836}, "organization": {"id": 978}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 376, "owner": {"id": 473}, "assignee": {"id": 46}, "organization": {"id": 104}, "project": {"owner": {"id": 758}, "assignee": {"id": 895}, "organization": {"id": 974}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 398, "owner": {"id": 438}, "assignee": {"id": 54}, "organization": {"id": 647}, "project": {"owner": {"id": 748}, "assignee": {"id": 808}, "organization": {"id": 997}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 67, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 337, "owner": {"id": 460}, "assignee": {"id": 67}, "organization": {"id": 152}, "project": {"owner": {"id": 788}, "assignee": {"id": 835}, "organization": {"id": 942}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 326, "owner": {"id": 489}, "assignee": {"id": 93}, "organization": {"id": 678}, "project": {"owner": {"id": 707}, "assignee": {"id": 813}, "organization": {"id": 973}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 461}, "assignee": {"id": 54}, "organization": {"id": 177}, "project": {"owner": {"id": 777}, "assignee": {"id": 890}, "organization": {"id": 936}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "owner": {"id": 467}, "assignee": {"id": 72}, "organization": {"id": 679}, "project": {"owner": {"id": 745}, "assignee": {"id": 816}, "organization": {"id": 978}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 480}, "assignee": {"id": 90}, "organization": {"id": 137}, "project": {"owner": {"id": 723}, "assignee": {"id": 878}, "organization": {"id": 929}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "owner": {"id": 415}, "assignee": {"id": 26}, "organization": {"id": 659}, "project": {"owner": {"id": 780}, "assignee": {"id": 815}, "organization": {"id": 994}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 405}, "assignee": {"id": 1}, "organization": {"id": 181}, "project": {"owner": {"id": 771}, "assignee": {"id": 881}, "organization": {"id": 927}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 388, "owner": {"id": 436}, "assignee": {"id": 70}, "organization": {"id": 608}, "project": {"owner": {"id": 739}, "assignee": {"id": 838}, "organization": {"id": 964}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"id": 300, "owner": {"id": 414}, "assignee": {"id": 72}, "organization": {"id": 178}, "project": {"owner": {"id": 743}, "assignee": {"id": 850}, "organization": {"id": 992}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 322, "owner": {"id": 424}, "assignee": {"id": 4}, "organization": {"id": 643}, "project": {"owner": {"id": 786}, "assignee": {"id": 861}, "organization": {"id": 960}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 419}, "assignee": {"id": 52}, "organization": {"id": 195}, "project": {"owner": {"id": 768}, "assignee": {"id": 842}, "organization": {"id": 959}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 366, "owner": {"id": 438}, "assignee": {"id": 68}, "organization": {"id": 692}, "project": {"owner": {"id": 786}, "assignee": {"id": 840}, "organization": {"id": 971}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "owner": {"id": 487}, "assignee": {"id": 3}, "organization": {"id": 143}, "project": {"owner": {"id": 708}, "assignee": {"id": 819}, "organization": {"id": 935}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 468}, "assignee": {"id": 76}, "organization": {"id": 673}, "project": {"owner": {"id": 777}, "assignee": {"id": 849}, "organization": {"id": 923}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 490}, "assignee": {"id": 11}, "organization": {"id": 163}, "project": {"owner": {"id": 704}, "assignee": {"id": 834}, "organization": {"id": 952}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 457}, "assignee": {"id": 14}, "organization": {"id": 627}, "project": {"owner": {"id": 767}, "assignee": {"id": 838}, "organization": {"id": 922}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 425}, "assignee": {"id": 64}, "organization": {"id": 119}, "project": {"owner": {"id": 764}, "assignee": {"id": 803}, "organization": {"id": 961}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 343, "owner": {"id": 461}, "assignee": {"id": 18}, "organization": {"id": 667}, "project": {"owner": {"id": 739}, "assignee": {"id": 899}, "organization": {"id": 941}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 366, "owner": {"id": 486}, "assignee": {"id": 49}, "organization": {"id": 191}, "project": {"owner": {"id": 792}, "assignee": {"id": 804}, "organization": {"id": 958}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 400}, "assignee": {"id": 42}, "organization": {"id": 605}, "project": {"owner": {"id": 787}, "assignee": {"id": 876}, "organization": {"id": 911}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 313, "owner": {"id": 466}, "assignee": {"id": 598}, "organization": {"id": 197}, "project": {"owner": {"id": 795}, "assignee": {"id": 839}, "organization": {"id": 902}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 381, "owner": {"id": 426}, "assignee": {"id": 541}, "organization": {"id": 625}, "project": {"owner": {"id": 724}, "assignee": {"id": 836}, "organization": {"id": 935}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "owner": {"id": 485}, "assignee": {"id": 515}, "organization": {"id": 101}, "project": {"owner": {"id": 719}, "assignee": {"id": 820}, "organization": {"id": 935}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "owner": {"id": 465}, "assignee": {"id": 513}, "organization": {"id": 626}, "project": {"owner": {"id": 769}, "assignee": {"id": 844}, "organization": {"id": 970}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 390, "owner": {"id": 436}, "assignee": {"id": 573}, "organization": {"id": 143}, "project": {"owner": {"id": 721}, "assignee": {"id": 809}, "organization": {"id": 939}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "owner": {"id": 406}, "assignee": {"id": 516}, "organization": {"id": 603}, "project": {"owner": {"id": 760}, "assignee": {"id": 886}, "organization": {"id": 906}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 311, "owner": {"id": 454}, "assignee": {"id": 550}, "organization": {"id": 188}, "project": {"owner": {"id": 790}, "assignee": {"id": 876}, "organization": {"id": 975}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 478}, "assignee": {"id": 545}, "organization": {"id": 639}, "project": {"owner": {"id": 742}, "assignee": {"id": 825}, "organization": {"id": 991}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 496}, "assignee": {"id": 597}, "organization": {"id": 159}, "project": {"owner": {"id": 772}, "assignee": {"id": 816}, "organization": {"id": 911}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 439}, "assignee": {"id": 587}, "organization": {"id": 682}, "project": {"owner": {"id": 790}, "assignee": {"id": 898}, "organization": {"id": 959}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 318, "owner": {"id": 478}, "assignee": {"id": 533}, "organization": {"id": 142}, "project": {"owner": {"id": 750}, "assignee": {"id": 823}, "organization": {"id": 989}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 358, "owner": {"id": 462}, "assignee": {"id": 503}, "organization": {"id": 608}, "project": {"owner": {"id": 760}, "assignee": {"id": 814}, "organization": {"id": 944}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "owner": {"id": 498}, "assignee": {"id": 544}, "organization": {"id": 151}, "project": {"owner": {"id": 773}, "assignee": {"id": 816}, "organization": {"id": 965}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 441}, "assignee": {"id": 571}, "organization": {"id": 683}, "project": {"owner": {"id": 709}, "assignee": {"id": 838}, "organization": {"id": 968}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "owner": {"id": 430}, "assignee": {"id": 579}, "organization": {"id": 108}, "project": {"owner": {"id": 770}, "assignee": {"id": 820}, "organization": {"id": 961}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 488}, "assignee": {"id": 575}, "organization": {"id": 655}, "project": {"owner": {"id": 755}, "assignee": {"id": 872}, "organization": {"id": 943}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 322, "owner": {"id": 484}, "assignee": {"id": 585}, "organization": {"id": 114}, "project": {"owner": {"id": 794}, "assignee": {"id": 891}, "organization": {"id": 973}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 459}, "assignee": {"id": 541}, "organization": {"id": 671}, "project": {"owner": {"id": 712}, "assignee": {"id": 856}, "organization": {"id": 922}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 376, "owner": {"id": 413}, "assignee": {"id": 587}, "organization": {"id": 182}, "project": {"owner": {"id": 798}, "assignee": {"id": 848}, "organization": {"id": 941}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 411}, "assignee": {"id": 527}, "organization": {"id": 617}, "project": {"owner": {"id": 774}, "assignee": {"id": 896}, "organization": {"id": 981}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 384, "owner": {"id": 419}, "assignee": {"id": 557}, "organization": {"id": 157}, "project": {"owner": {"id": 737}, "assignee": {"id": 849}, "organization": {"id": 978}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 326, "owner": {"id": 487}, "assignee": {"id": 540}, "organization": {"id": 638}, "project": {"owner": {"id": 772}, "assignee": {"id": 886}, "organization": {"id": 938}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 474}, "assignee": {"id": 501}, "organization": {"id": 107}, "project": {"owner": {"id": 765}, "assignee": {"id": 851}, "organization": {"id": 916}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "owner": {"id": 406}, "assignee": {"id": 500}, "organization": {"id": 690}, "project": {"owner": {"id": 771}, "assignee": {"id": 845}, "organization": {"id": 914}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "owner": {"id": 489}, "assignee": {"id": 575}, "organization": {"id": 151}, "project": {"owner": {"id": 780}, "assignee": {"id": 840}, "organization": {"id": 991}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "owner": {"id": 469}, "assignee": {"id": 527}, "organization": {"id": 684}, "project": {"owner": {"id": 722}, "assignee": {"id": 860}, "organization": {"id": 917}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"id": 346, "owner": {"id": 453}, "assignee": {"id": 519}, "organization": {"id": 109}, "project": {"owner": {"id": 785}, "assignee": {"id": 816}, "organization": {"id": 917}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"id": 302, "owner": {"id": 418}, "assignee": {"id": 592}, "organization": {"id": 662}, "project": {"owner": {"id": 784}, "assignee": {"id": 855}, "organization": {"id": 917}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 458}, "assignee": {"id": 589}, "organization": {"id": 165}, "project": {"owner": {"id": 754}, "assignee": {"id": 879}, "organization": {"id": 923}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 370, "owner": {"id": 457}, "assignee": {"id": 549}, "organization": {"id": 645}, "project": {"owner": {"id": 728}, "assignee": {"id": 823}, "organization": {"id": 954}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 363, "owner": {"id": 493}, "assignee": {"id": 530}, "organization": {"id": 173}, "project": {"owner": {"id": 764}, "assignee": {"id": 834}, "organization": {"id": 952}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 304, "owner": {"id": 404}, "assignee": {"id": 572}, "organization": {"id": 661}, "project": {"owner": {"id": 790}, "assignee": {"id": 847}, "organization": {"id": 914}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "owner": {"id": 418}, "assignee": {"id": 593}, "organization": {"id": 159}, "project": {"owner": {"id": 767}, "assignee": {"id": 896}, "organization": {"id": 999}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "owner": {"id": 466}, "assignee": {"id": 578}, "organization": {"id": 611}, "project": {"owner": {"id": 731}, "assignee": {"id": 860}, "organization": {"id": 980}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 487}, "assignee": {"id": 581}, "organization": {"id": 143}, "project": {"owner": {"id": 774}, "assignee": {"id": 839}, "organization": {"id": 978}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "owner": {"id": 401}, "assignee": {"id": 560}, "organization": {"id": 658}, "project": {"owner": {"id": 765}, "assignee": {"id": 860}, "organization": {"id": 973}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 437}, "assignee": {"id": 537}, "organization": {"id": 138}, "project": {"owner": {"id": 704}, "assignee": {"id": 888}, "organization": {"id": 976}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 372, "owner": {"id": 433}, "assignee": {"id": 507}, "organization": {"id": 680}, "project": {"owner": {"id": 760}, "assignee": {"id": 874}, "organization": {"id": 921}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 337, "owner": {"id": 494}, "assignee": {"id": 579}, "organization": {"id": 164}, "project": {"owner": {"id": 736}, "assignee": {"id": 862}, "organization": {"id": 910}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 432}, "assignee": {"id": 516}, "organization": {"id": 678}, "project": {"owner": {"id": 735}, "assignee": {"id": 835}, "organization": {"id": 932}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 377, "owner": {"id": 422}, "assignee": {"id": 575}, "organization": {"id": 122}, "project": {"owner": {"id": 719}, "assignee": {"id": 884}, "organization": {"id": 957}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 430}, "assignee": {"id": 562}, "organization": {"id": 623}, "project": {"owner": {"id": 767}, "assignee": {"id": 804}, "organization": {"id": 943}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "owner": {"id": 463}, "assignee": {"id": 596}, "organization": {"id": 156}, "project": {"owner": {"id": 798}, "assignee": {"id": 849}, "organization": {"id": 930}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "owner": {"id": 421}, "assignee": {"id": 526}, "organization": {"id": 673}, "project": {"owner": {"id": 793}, "assignee": {"id": 844}, "organization": {"id": 906}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 406}, "assignee": {"id": 521}, "organization": {"id": 195}, "project": {"owner": {"id": 751}, "assignee": {"id": 860}, "organization": {"id": 938}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "owner": {"id": 429}, "assignee": {"id": 548}, "organization": {"id": 687}, "project": {"owner": {"id": 790}, "assignee": {"id": 849}, "organization": {"id": 960}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 355, "owner": {"id": 401}, "assignee": {"id": 536}, "organization": {"id": 187}, "project": {"owner": {"id": 748}, "assignee": {"id": 886}, "organization": {"id": 940}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 312, "owner": {"id": 468}, "assignee": {"id": 581}, "organization": {"id": 645}, "project": {"owner": {"id": 755}, "assignee": {"id": 878}, "organization": {"id": 983}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 334, "owner": {"id": 412}, "assignee": {"id": 532}, "organization": {"id": 186}, "project": {"owner": {"id": 774}, "assignee": {"id": 850}, "organization": {"id": 959}}}} -} - -test_scope_UPDATE_ASSIGNEE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:assignee", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 330, "owner": {"id": 493}, "assignee": {"id": 586}, "organization": {"id": 675}, "project": {"owner": {"id": 798}, "assignee": {"id": 824}, "organization": {"id": 966}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": null}, "resource": {"id": 385, "owner": {"id": 498}, "assignee": {"id": 598}, "organization": {"id": 641}, "project": {"owner": {"id": 9}, "assignee": {"id": 820}, "organization": {"id": 999}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": null}, "resource": {"id": 393, "owner": {"id": 499}, "assignee": {"id": 508}, "organization": {"id": 669}, "project": {"owner": {"id": 88}, "assignee": {"id": 800}, "organization": {"id": 949}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": null}, "resource": {"id": 343, "owner": {"id": 492}, "assignee": {"id": 505}, "organization": {"id": 651}, "project": {"owner": {"id": 85}, "assignee": {"id": 827}, "organization": {"id": 983}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": null}, "resource": {"id": 396, "owner": {"id": 453}, "assignee": {"id": 521}, "organization": {"id": 689}, "project": {"owner": {"id": 56}, "assignee": {"id": 870}, "organization": {"id": 921}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": null}, "resource": {"id": 398, "owner": {"id": 480}, "assignee": {"id": 584}, "organization": {"id": 626}, "project": {"owner": {"id": 14}, "assignee": {"id": 806}, "organization": {"id": 924}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": null}, "resource": {"id": 358, "owner": {"id": 422}, "assignee": {"id": 549}, "organization": {"id": 647}, "project": {"owner": {"id": 717}, "assignee": {"id": 24}, "organization": {"id": 992}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": null}, "resource": {"id": 361, "owner": {"id": 489}, "assignee": {"id": 512}, "organization": {"id": 657}, "project": {"owner": {"id": 763}, "assignee": {"id": 71}, "organization": {"id": 910}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": null}, "resource": {"id": 349, "owner": {"id": 446}, "assignee": {"id": 559}, "organization": {"id": 679}, "project": {"owner": {"id": 705}, "assignee": {"id": 22}, "organization": {"id": 946}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": null}, "resource": {"id": 314, "owner": {"id": 489}, "assignee": {"id": 518}, "organization": {"id": 663}, "project": {"owner": {"id": 719}, "assignee": {"id": 80}, "organization": {"id": 966}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": null}, "resource": {"id": 320, "owner": {"id": 430}, "assignee": {"id": 514}, "organization": {"id": 605}, "project": {"owner": {"id": 740}, "assignee": {"id": 56}, "organization": {"id": 916}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": null}, "resource": {"id": 377, "owner": {"id": 35}, "assignee": {"id": 524}, "organization": {"id": 674}, "project": {"owner": {"id": 767}, "assignee": {"id": 828}, "organization": {"id": 998}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": null}, "resource": {"id": 381, "owner": {"id": 72}, "assignee": {"id": 553}, "organization": {"id": 622}, "project": {"owner": {"id": 771}, "assignee": {"id": 859}, "organization": {"id": 990}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": null}, "resource": {"id": 318, "owner": {"id": 6}, "assignee": {"id": 559}, "organization": {"id": 688}, "project": {"owner": {"id": 717}, "assignee": {"id": 845}, "organization": {"id": 920}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": null}, "resource": {"id": 358, "owner": {"id": 39}, "assignee": {"id": 514}, "organization": {"id": 616}, "project": {"owner": {"id": 702}, "assignee": {"id": 861}, "organization": {"id": 944}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": null}, "resource": {"id": 318, "owner": {"id": 64}, "assignee": {"id": 535}, "organization": {"id": 674}, "project": {"owner": {"id": 744}, "assignee": {"id": 845}, "organization": {"id": 920}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": null}, "resource": {"id": 358, "owner": {"id": 476}, "assignee": {"id": 70}, "organization": {"id": 639}, "project": {"owner": {"id": 787}, "assignee": {"id": 856}, "organization": {"id": 928}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": null}, "resource": {"id": 315, "owner": {"id": 432}, "assignee": {"id": 3}, "organization": {"id": 663}, "project": {"owner": {"id": 729}, "assignee": {"id": 880}, "organization": {"id": 917}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": null}, "resource": {"id": 397, "owner": {"id": 414}, "assignee": {"id": 87}, "organization": {"id": 686}, "project": {"owner": {"id": 762}, "assignee": {"id": 884}, "organization": {"id": 970}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": null}, "resource": {"id": 353, "owner": {"id": 434}, "assignee": {"id": 40}, "organization": {"id": 689}, "project": {"owner": {"id": 760}, "assignee": {"id": 875}, "organization": {"id": 902}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": null}, "resource": {"id": 332, "owner": {"id": 479}, "assignee": {"id": 23}, "organization": {"id": 658}, "project": {"owner": {"id": 785}, "assignee": {"id": 897}, "organization": {"id": 970}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": null}, "resource": {"id": 320, "owner": {"id": 434}, "assignee": {"id": 517}, "organization": {"id": 603}, "project": {"owner": {"id": 733}, "assignee": {"id": 835}, "organization": {"id": 984}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": null}, "resource": {"id": 340, "owner": {"id": 469}, "assignee": {"id": 554}, "organization": {"id": 660}, "project": {"owner": {"id": 787}, "assignee": {"id": 831}, "organization": {"id": 935}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": null}, "resource": {"id": 377, "owner": {"id": 493}, "assignee": {"id": 570}, "organization": {"id": 694}, "project": {"owner": {"id": 741}, "assignee": {"id": 858}, "organization": {"id": 988}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": null}, "resource": {"id": 351, "owner": {"id": 479}, "assignee": {"id": 554}, "organization": {"id": 676}, "project": {"owner": {"id": 733}, "assignee": {"id": 819}, "organization": {"id": 911}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": null}, "resource": {"id": 312, "owner": {"id": 471}, "assignee": {"id": 507}, "organization": {"id": 606}, "project": {"owner": {"id": 742}, "assignee": {"id": 830}, "organization": {"id": 960}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 464}, "assignee": {"id": 579}, "organization": {"id": 116}, "project": {"owner": {"id": 47}, "assignee": {"id": 850}, "organization": {"id": 985}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 305, "owner": {"id": 474}, "assignee": {"id": 522}, "organization": {"id": 633}, "project": {"owner": {"id": 43}, "assignee": {"id": 864}, "organization": {"id": 963}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 440}, "assignee": {"id": 590}, "organization": {"id": 140}, "project": {"owner": {"id": 14}, "assignee": {"id": 818}, "organization": {"id": 933}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 463}, "assignee": {"id": 535}, "organization": {"id": 695}, "project": {"owner": {"id": 33}, "assignee": {"id": 855}, "organization": {"id": 936}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 466}, "assignee": {"id": 540}, "organization": {"id": 197}, "project": {"owner": {"id": 62}, "assignee": {"id": 840}, "organization": {"id": 994}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 371, "owner": {"id": 484}, "assignee": {"id": 581}, "organization": {"id": 656}, "project": {"owner": {"id": 6}, "assignee": {"id": 824}, "organization": {"id": 919}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 304, "owner": {"id": 460}, "assignee": {"id": 533}, "organization": {"id": 163}, "project": {"owner": {"id": 14}, "assignee": {"id": 859}, "organization": {"id": 955}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 445}, "assignee": {"id": 590}, "organization": {"id": 671}, "project": {"owner": {"id": 14}, "assignee": {"id": 858}, "organization": {"id": 963}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 315, "owner": {"id": 444}, "assignee": {"id": 511}, "organization": {"id": 165}, "project": {"owner": {"id": 95}, "assignee": {"id": 823}, "organization": {"id": 921}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 372, "owner": {"id": 484}, "assignee": {"id": 574}, "organization": {"id": 627}, "project": {"owner": {"id": 98}, "assignee": {"id": 800}, "organization": {"id": 967}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 353, "owner": {"id": 409}, "assignee": {"id": 531}, "organization": {"id": 103}, "project": {"owner": {"id": 42}, "assignee": {"id": 886}, "organization": {"id": 912}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 387, "owner": {"id": 487}, "assignee": {"id": 515}, "organization": {"id": 650}, "project": {"owner": {"id": 41}, "assignee": {"id": 875}, "organization": {"id": 913}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "owner": {"id": 458}, "assignee": {"id": 590}, "organization": {"id": 176}, "project": {"owner": {"id": 34}, "assignee": {"id": 858}, "organization": {"id": 980}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "owner": {"id": 442}, "assignee": {"id": 505}, "organization": {"id": 683}, "project": {"owner": {"id": 93}, "assignee": {"id": 857}, "organization": {"id": 941}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 427}, "assignee": {"id": 506}, "organization": {"id": 109}, "project": {"owner": {"id": 95}, "assignee": {"id": 841}, "organization": {"id": 907}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "owner": {"id": 448}, "assignee": {"id": 511}, "organization": {"id": 651}, "project": {"owner": {"id": 98}, "assignee": {"id": 822}, "organization": {"id": 930}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 302, "owner": {"id": 426}, "assignee": {"id": 520}, "organization": {"id": 196}, "project": {"owner": {"id": 82}, "assignee": {"id": 851}, "organization": {"id": 936}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 319, "owner": {"id": 415}, "assignee": {"id": 538}, "organization": {"id": 662}, "project": {"owner": {"id": 87}, "assignee": {"id": 894}, "organization": {"id": 939}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 345, "owner": {"id": 485}, "assignee": {"id": 512}, "organization": {"id": 149}, "project": {"owner": {"id": 57}, "assignee": {"id": 825}, "organization": {"id": 962}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 334, "owner": {"id": 472}, "assignee": {"id": 576}, "organization": {"id": 654}, "project": {"owner": {"id": 47}, "assignee": {"id": 896}, "organization": {"id": 954}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 480}, "assignee": {"id": 554}, "organization": {"id": 186}, "project": {"owner": {"id": 59}, "assignee": {"id": 865}, "organization": {"id": 943}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 382, "owner": {"id": 487}, "assignee": {"id": 591}, "organization": {"id": 619}, "project": {"owner": {"id": 82}, "assignee": {"id": 867}, "organization": {"id": 980}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "owner": {"id": 459}, "assignee": {"id": 555}, "organization": {"id": 187}, "project": {"owner": {"id": 16}, "assignee": {"id": 838}, "organization": {"id": 919}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "owner": {"id": 466}, "assignee": {"id": 554}, "organization": {"id": 637}, "project": {"owner": {"id": 9}, "assignee": {"id": 806}, "organization": {"id": 970}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 465}, "assignee": {"id": 554}, "organization": {"id": 172}, "project": {"owner": {"id": 92}, "assignee": {"id": 859}, "organization": {"id": 984}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 432}, "assignee": {"id": 574}, "organization": {"id": 610}, "project": {"owner": {"id": 14}, "assignee": {"id": 864}, "organization": {"id": 902}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 90, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 422}, "assignee": {"id": 523}, "organization": {"id": 138}, "project": {"owner": {"id": 90}, "assignee": {"id": 810}, "organization": {"id": 953}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 375, "owner": {"id": 492}, "assignee": {"id": 558}, "organization": {"id": 696}, "project": {"owner": {"id": 33}, "assignee": {"id": 857}, "organization": {"id": 979}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 327, "owner": {"id": 423}, "assignee": {"id": 510}, "organization": {"id": 155}, "project": {"owner": {"id": 13}, "assignee": {"id": 833}, "organization": {"id": 986}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 302, "owner": {"id": 400}, "assignee": {"id": 550}, "organization": {"id": 614}, "project": {"owner": {"id": 61}, "assignee": {"id": 821}, "organization": {"id": 983}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 351, "owner": {"id": 484}, "assignee": {"id": 595}, "organization": {"id": 178}, "project": {"owner": {"id": 79}, "assignee": {"id": 862}, "organization": {"id": 938}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 486}, "assignee": {"id": 588}, "organization": {"id": 686}, "project": {"owner": {"id": 16}, "assignee": {"id": 838}, "organization": {"id": 911}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "owner": {"id": 414}, "assignee": {"id": 502}, "organization": {"id": 183}, "project": {"owner": {"id": 61}, "assignee": {"id": 803}, "organization": {"id": 926}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "owner": {"id": 430}, "assignee": {"id": 555}, "organization": {"id": 680}, "project": {"owner": {"id": 38}, "assignee": {"id": 824}, "organization": {"id": 911}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 460}, "assignee": {"id": 554}, "organization": {"id": 189}, "project": {"owner": {"id": 94}, "assignee": {"id": 821}, "organization": {"id": 919}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 460}, "assignee": {"id": 502}, "organization": {"id": 657}, "project": {"owner": {"id": 37}, "assignee": {"id": 831}, "organization": {"id": 925}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 306, "owner": {"id": 442}, "assignee": {"id": 501}, "organization": {"id": 163}, "project": {"owner": {"id": 53}, "assignee": {"id": 891}, "organization": {"id": 955}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 476}, "assignee": {"id": 593}, "organization": {"id": 670}, "project": {"owner": {"id": 51}, "assignee": {"id": 804}, "organization": {"id": 962}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 492}, "assignee": {"id": 578}, "organization": {"id": 167}, "project": {"owner": {"id": 7}, "assignee": {"id": 829}, "organization": {"id": 991}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"id": 354, "owner": {"id": 473}, "assignee": {"id": 540}, "organization": {"id": 670}, "project": {"owner": {"id": 53}, "assignee": {"id": 834}, "organization": {"id": 982}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 363, "owner": {"id": 479}, "assignee": {"id": 582}, "organization": {"id": 120}, "project": {"owner": {"id": 2}, "assignee": {"id": 889}, "organization": {"id": 955}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 392, "owner": {"id": 424}, "assignee": {"id": 560}, "organization": {"id": 644}, "project": {"owner": {"id": 28}, "assignee": {"id": 829}, "organization": {"id": 964}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 477}, "assignee": {"id": 591}, "organization": {"id": 191}, "project": {"owner": {"id": 92}, "assignee": {"id": 816}, "organization": {"id": 937}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "owner": {"id": 486}, "assignee": {"id": 583}, "organization": {"id": 694}, "project": {"owner": {"id": 79}, "assignee": {"id": 860}, "organization": {"id": 920}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "owner": {"id": 495}, "assignee": {"id": 511}, "organization": {"id": 120}, "project": {"owner": {"id": 25}, "assignee": {"id": 816}, "organization": {"id": 922}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 412}, "assignee": {"id": 553}, "organization": {"id": 663}, "project": {"owner": {"id": 71}, "assignee": {"id": 830}, "organization": {"id": 926}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 433}, "assignee": {"id": 545}, "organization": {"id": 108}, "project": {"owner": {"id": 4}, "assignee": {"id": 822}, "organization": {"id": 964}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 355, "owner": {"id": 414}, "assignee": {"id": 579}, "organization": {"id": 629}, "project": {"owner": {"id": 62}, "assignee": {"id": 871}, "organization": {"id": 928}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 345, "owner": {"id": 498}, "assignee": {"id": 505}, "organization": {"id": 165}, "project": {"owner": {"id": 88}, "assignee": {"id": 834}, "organization": {"id": 919}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 413}, "assignee": {"id": 590}, "organization": {"id": 606}, "project": {"owner": {"id": 14}, "assignee": {"id": 858}, "organization": {"id": 996}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 413}, "assignee": {"id": 571}, "organization": {"id": 115}, "project": {"owner": {"id": 764}, "assignee": {"id": 80}, "organization": {"id": 921}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 420}, "assignee": {"id": 593}, "organization": {"id": 637}, "project": {"owner": {"id": 790}, "assignee": {"id": 64}, "organization": {"id": 997}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "owner": {"id": 419}, "assignee": {"id": 582}, "organization": {"id": 156}, "project": {"owner": {"id": 742}, "assignee": {"id": 25}, "organization": {"id": 915}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "owner": {"id": 498}, "assignee": {"id": 500}, "organization": {"id": 631}, "project": {"owner": {"id": 760}, "assignee": {"id": 64}, "organization": {"id": 936}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 447}, "assignee": {"id": 591}, "organization": {"id": 131}, "project": {"owner": {"id": 753}, "assignee": {"id": 85}, "organization": {"id": 980}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "owner": {"id": 496}, "assignee": {"id": 567}, "organization": {"id": 653}, "project": {"owner": {"id": 729}, "assignee": {"id": 52}, "organization": {"id": 954}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 366, "owner": {"id": 487}, "assignee": {"id": 546}, "organization": {"id": 191}, "project": {"owner": {"id": 756}, "assignee": {"id": 1}, "organization": {"id": 998}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 410}, "assignee": {"id": 543}, "organization": {"id": 640}, "project": {"owner": {"id": 751}, "assignee": {"id": 55}, "organization": {"id": 921}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 397, "owner": {"id": 404}, "assignee": {"id": 584}, "organization": {"id": 191}, "project": {"owner": {"id": 719}, "assignee": {"id": 80}, "organization": {"id": 907}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 366, "owner": {"id": 437}, "assignee": {"id": 553}, "organization": {"id": 651}, "project": {"owner": {"id": 787}, "assignee": {"id": 38}, "organization": {"id": 970}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 444}, "assignee": {"id": 501}, "organization": {"id": 151}, "project": {"owner": {"id": 767}, "assignee": {"id": 89}, "organization": {"id": 918}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 382, "owner": {"id": 426}, "assignee": {"id": 569}, "organization": {"id": 679}, "project": {"owner": {"id": 779}, "assignee": {"id": 89}, "organization": {"id": 956}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 499}, "assignee": {"id": 525}, "organization": {"id": 149}, "project": {"owner": {"id": 710}, "assignee": {"id": 42}, "organization": {"id": 968}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 494}, "assignee": {"id": 516}, "organization": {"id": 666}, "project": {"owner": {"id": 769}, "assignee": {"id": 11}, "organization": {"id": 927}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 466}, "assignee": {"id": 543}, "organization": {"id": 169}, "project": {"owner": {"id": 781}, "assignee": {"id": 3}, "organization": {"id": 902}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 430}, "assignee": {"id": 599}, "organization": {"id": 638}, "project": {"owner": {"id": 792}, "assignee": {"id": 14}, "organization": {"id": 964}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 347, "owner": {"id": 433}, "assignee": {"id": 580}, "organization": {"id": 183}, "project": {"owner": {"id": 745}, "assignee": {"id": 96}, "organization": {"id": 906}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 438}, "assignee": {"id": 573}, "organization": {"id": 694}, "project": {"owner": {"id": 700}, "assignee": {"id": 30}, "organization": {"id": 943}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 372, "owner": {"id": 491}, "assignee": {"id": 580}, "organization": {"id": 138}, "project": {"owner": {"id": 768}, "assignee": {"id": 44}, "organization": {"id": 929}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 491}, "assignee": {"id": 573}, "organization": {"id": 686}, "project": {"owner": {"id": 717}, "assignee": {"id": 66}, "organization": {"id": 948}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 313, "owner": {"id": 441}, "assignee": {"id": 566}, "organization": {"id": 112}, "project": {"owner": {"id": 724}, "assignee": {"id": 58}, "organization": {"id": 946}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 454}, "assignee": {"id": 552}, "organization": {"id": 610}, "project": {"owner": {"id": 711}, "assignee": {"id": 16}, "organization": {"id": 954}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 71, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "owner": {"id": 409}, "assignee": {"id": 547}, "organization": {"id": 166}, "project": {"owner": {"id": 767}, "assignee": {"id": 71}, "organization": {"id": 975}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "owner": {"id": 433}, "assignee": {"id": 574}, "organization": {"id": 663}, "project": {"owner": {"id": 781}, "assignee": {"id": 88}, "organization": {"id": 956}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "owner": {"id": 420}, "assignee": {"id": 518}, "organization": {"id": 116}, "project": {"owner": {"id": 716}, "assignee": {"id": 58}, "organization": {"id": 991}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "owner": {"id": 467}, "assignee": {"id": 515}, "organization": {"id": 688}, "project": {"owner": {"id": 727}, "assignee": {"id": 4}, "organization": {"id": 960}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 371, "owner": {"id": 447}, "assignee": {"id": 515}, "organization": {"id": 173}, "project": {"owner": {"id": 752}, "assignee": {"id": 47}, "organization": {"id": 915}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 305, "owner": {"id": 466}, "assignee": {"id": 519}, "organization": {"id": 615}, "project": {"owner": {"id": 747}, "assignee": {"id": 38}, "organization": {"id": 947}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 303, "owner": {"id": 418}, "assignee": {"id": 518}, "organization": {"id": 127}, "project": {"owner": {"id": 753}, "assignee": {"id": 36}, "organization": {"id": 939}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 394, "owner": {"id": 462}, "assignee": {"id": 500}, "organization": {"id": 615}, "project": {"owner": {"id": 770}, "assignee": {"id": 5}, "organization": {"id": 908}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 439}, "assignee": {"id": 572}, "organization": {"id": 177}, "project": {"owner": {"id": 743}, "assignee": {"id": 92}, "organization": {"id": 960}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 397, "owner": {"id": 417}, "assignee": {"id": 564}, "organization": {"id": 681}, "project": {"owner": {"id": 758}, "assignee": {"id": 85}, "organization": {"id": 957}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "owner": {"id": 441}, "assignee": {"id": 511}, "organization": {"id": 129}, "project": {"owner": {"id": 785}, "assignee": {"id": 49}, "organization": {"id": 952}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 469}, "assignee": {"id": 505}, "organization": {"id": 685}, "project": {"owner": {"id": 756}, "assignee": {"id": 82}, "organization": {"id": 935}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 390, "owner": {"id": 403}, "assignee": {"id": 573}, "organization": {"id": 182}, "project": {"owner": {"id": 798}, "assignee": {"id": 71}, "organization": {"id": 939}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "owner": {"id": 471}, "assignee": {"id": 510}, "organization": {"id": 624}, "project": {"owner": {"id": 779}, "assignee": {"id": 96}, "organization": {"id": 973}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 366, "owner": {"id": 424}, "assignee": {"id": 596}, "organization": {"id": 168}, "project": {"owner": {"id": 764}, "assignee": {"id": 84}, "organization": {"id": 915}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 302, "owner": {"id": 435}, "assignee": {"id": 526}, "organization": {"id": 631}, "project": {"owner": {"id": 790}, "assignee": {"id": 10}, "organization": {"id": 956}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 341, "owner": {"id": 451}, "assignee": {"id": 575}, "organization": {"id": 123}, "project": {"owner": {"id": 762}, "assignee": {"id": 55}, "organization": {"id": 943}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 303, "owner": {"id": 467}, "assignee": {"id": 540}, "organization": {"id": 648}, "project": {"owner": {"id": 732}, "assignee": {"id": 12}, "organization": {"id": 914}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 336, "owner": {"id": 418}, "assignee": {"id": 523}, "organization": {"id": 152}, "project": {"owner": {"id": 798}, "assignee": {"id": 39}, "organization": {"id": 919}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 321, "owner": {"id": 407}, "assignee": {"id": 578}, "organization": {"id": 641}, "project": {"owner": {"id": 723}, "assignee": {"id": 7}, "organization": {"id": 991}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "owner": {"id": 440}, "assignee": {"id": 518}, "organization": {"id": 106}, "project": {"owner": {"id": 741}, "assignee": {"id": 15}, "organization": {"id": 948}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 330, "owner": {"id": 496}, "assignee": {"id": 576}, "organization": {"id": 675}, "project": {"owner": {"id": 730}, "assignee": {"id": 96}, "organization": {"id": 965}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 434}, "assignee": {"id": 507}, "organization": {"id": 161}, "project": {"owner": {"id": 759}, "assignee": {"id": 8}, "organization": {"id": 952}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "owner": {"id": 481}, "assignee": {"id": 529}, "organization": {"id": 602}, "project": {"owner": {"id": 734}, "assignee": {"id": 86}, "organization": {"id": 975}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 397, "owner": {"id": 471}, "assignee": {"id": 583}, "organization": {"id": 110}, "project": {"owner": {"id": 738}, "assignee": {"id": 57}, "organization": {"id": 952}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 364, "owner": {"id": 426}, "assignee": {"id": 518}, "organization": {"id": 647}, "project": {"owner": {"id": 769}, "assignee": {"id": 68}, "organization": {"id": 931}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 357, "owner": {"id": 405}, "assignee": {"id": 500}, "organization": {"id": 100}, "project": {"owner": {"id": 779}, "assignee": {"id": 21}, "organization": {"id": 983}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 361, "owner": {"id": 434}, "assignee": {"id": 576}, "organization": {"id": 632}, "project": {"owner": {"id": 787}, "assignee": {"id": 80}, "organization": {"id": 944}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"id": 365, "owner": {"id": 8}, "assignee": {"id": 505}, "organization": {"id": 138}, "project": {"owner": {"id": 794}, "assignee": {"id": 868}, "organization": {"id": 972}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 350, "owner": {"id": 55}, "assignee": {"id": 515}, "organization": {"id": 617}, "project": {"owner": {"id": 792}, "assignee": {"id": 871}, "organization": {"id": 935}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "owner": {"id": 90}, "assignee": {"id": 587}, "organization": {"id": 157}, "project": {"owner": {"id": 781}, "assignee": {"id": 833}, "organization": {"id": 996}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "owner": {"id": 42}, "assignee": {"id": 541}, "organization": {"id": 643}, "project": {"owner": {"id": 726}, "assignee": {"id": 858}, "organization": {"id": 976}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "owner": {"id": 86}, "assignee": {"id": 500}, "organization": {"id": 122}, "project": {"owner": {"id": 760}, "assignee": {"id": 800}, "organization": {"id": 901}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 371, "owner": {"id": 10}, "assignee": {"id": 590}, "organization": {"id": 662}, "project": {"owner": {"id": 797}, "assignee": {"id": 850}, "organization": {"id": 968}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 309, "owner": {"id": 45}, "assignee": {"id": 503}, "organization": {"id": 148}, "project": {"owner": {"id": 756}, "assignee": {"id": 886}, "organization": {"id": 915}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 59}, "assignee": {"id": 522}, "organization": {"id": 698}, "project": {"owner": {"id": 789}, "assignee": {"id": 801}, "organization": {"id": 915}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 356, "owner": {"id": 87}, "assignee": {"id": 528}, "organization": {"id": 190}, "project": {"owner": {"id": 702}, "assignee": {"id": 897}, "organization": {"id": 935}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 29}, "assignee": {"id": 578}, "organization": {"id": 680}, "project": {"owner": {"id": 738}, "assignee": {"id": 891}, "organization": {"id": 928}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 304, "owner": {"id": 0}, "assignee": {"id": 563}, "organization": {"id": 125}, "project": {"owner": {"id": 790}, "assignee": {"id": 877}, "organization": {"id": 926}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 350, "owner": {"id": 70}, "assignee": {"id": 535}, "organization": {"id": 672}, "project": {"owner": {"id": 764}, "assignee": {"id": 863}, "organization": {"id": 921}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 8}, "assignee": {"id": 586}, "organization": {"id": 175}, "project": {"owner": {"id": 777}, "assignee": {"id": 872}, "organization": {"id": 922}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 93}, "assignee": {"id": 516}, "organization": {"id": 633}, "project": {"owner": {"id": 772}, "assignee": {"id": 829}, "organization": {"id": 966}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "owner": {"id": 87}, "assignee": {"id": 588}, "organization": {"id": 171}, "project": {"owner": {"id": 768}, "assignee": {"id": 878}, "organization": {"id": 932}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "owner": {"id": 55}, "assignee": {"id": 582}, "organization": {"id": 686}, "project": {"owner": {"id": 783}, "assignee": {"id": 806}, "organization": {"id": 941}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 315, "owner": {"id": 97}, "assignee": {"id": 566}, "organization": {"id": 105}, "project": {"owner": {"id": 763}, "assignee": {"id": 846}, "organization": {"id": 966}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 328, "owner": {"id": 0}, "assignee": {"id": 535}, "organization": {"id": 653}, "project": {"owner": {"id": 768}, "assignee": {"id": 857}, "organization": {"id": 940}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 342, "owner": {"id": 54}, "assignee": {"id": 573}, "organization": {"id": 109}, "project": {"owner": {"id": 794}, "assignee": {"id": 828}, "organization": {"id": 988}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 325, "owner": {"id": 12}, "assignee": {"id": 542}, "organization": {"id": 639}, "project": {"owner": {"id": 708}, "assignee": {"id": 880}, "organization": {"id": 980}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 13}, "assignee": {"id": 575}, "organization": {"id": 160}, "project": {"owner": {"id": 742}, "assignee": {"id": 832}, "organization": {"id": 931}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 343, "owner": {"id": 76}, "assignee": {"id": 542}, "organization": {"id": 666}, "project": {"owner": {"id": 730}, "assignee": {"id": 809}, "organization": {"id": 999}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 7}, "assignee": {"id": 580}, "organization": {"id": 104}, "project": {"owner": {"id": 774}, "assignee": {"id": 815}, "organization": {"id": 910}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "owner": {"id": 38}, "assignee": {"id": 508}, "organization": {"id": 616}, "project": {"owner": {"id": 707}, "assignee": {"id": 856}, "organization": {"id": 907}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "owner": {"id": 37}, "assignee": {"id": 513}, "organization": {"id": 148}, "project": {"owner": {"id": 707}, "assignee": {"id": 871}, "organization": {"id": 906}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "owner": {"id": 79}, "assignee": {"id": 596}, "organization": {"id": 652}, "project": {"owner": {"id": 729}, "assignee": {"id": 876}, "organization": {"id": 984}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 83}, "assignee": {"id": 554}, "organization": {"id": 186}, "project": {"owner": {"id": 779}, "assignee": {"id": 812}, "organization": {"id": 943}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 1}, "assignee": {"id": 542}, "organization": {"id": 675}, "project": {"owner": {"id": 724}, "assignee": {"id": 813}, "organization": {"id": 913}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 308, "owner": {"id": 32}, "assignee": {"id": 524}, "organization": {"id": 145}, "project": {"owner": {"id": 716}, "assignee": {"id": 881}, "organization": {"id": 965}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 361, "owner": {"id": 5}, "assignee": {"id": 579}, "organization": {"id": 656}, "project": {"owner": {"id": 723}, "assignee": {"id": 831}, "organization": {"id": 917}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 339, "owner": {"id": 39}, "assignee": {"id": 555}, "organization": {"id": 174}, "project": {"owner": {"id": 783}, "assignee": {"id": 896}, "organization": {"id": 945}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 399, "owner": {"id": 37}, "assignee": {"id": 518}, "organization": {"id": 660}, "project": {"owner": {"id": 739}, "assignee": {"id": 877}, "organization": {"id": 943}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "owner": {"id": 64}, "assignee": {"id": 584}, "organization": {"id": 171}, "project": {"owner": {"id": 718}, "assignee": {"id": 807}, "organization": {"id": 930}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "owner": {"id": 43}, "assignee": {"id": 525}, "organization": {"id": 625}, "project": {"owner": {"id": 781}, "assignee": {"id": 825}, "organization": {"id": 908}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 74}, "assignee": {"id": 588}, "organization": {"id": 172}, "project": {"owner": {"id": 776}, "assignee": {"id": 888}, "organization": {"id": 942}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "owner": {"id": 5}, "assignee": {"id": 553}, "organization": {"id": 642}, "project": {"owner": {"id": 720}, "assignee": {"id": 813}, "organization": {"id": 958}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 300, "owner": {"id": 27}, "assignee": {"id": 528}, "organization": {"id": 130}, "project": {"owner": {"id": 729}, "assignee": {"id": 859}, "organization": {"id": 979}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 394, "owner": {"id": 23}, "assignee": {"id": 542}, "organization": {"id": 694}, "project": {"owner": {"id": 748}, "assignee": {"id": 826}, "organization": {"id": 951}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 301, "owner": {"id": 37}, "assignee": {"id": 545}, "organization": {"id": 156}, "project": {"owner": {"id": 771}, "assignee": {"id": 814}, "organization": {"id": 918}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 380, "owner": {"id": 25}, "assignee": {"id": 597}, "organization": {"id": 646}, "project": {"owner": {"id": 705}, "assignee": {"id": 803}, "organization": {"id": 925}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 328, "owner": {"id": 22}, "assignee": {"id": 592}, "organization": {"id": 125}, "project": {"owner": {"id": 743}, "assignee": {"id": 870}, "organization": {"id": 931}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 322, "owner": {"id": 83}, "assignee": {"id": 512}, "organization": {"id": 602}, "project": {"owner": {"id": 786}, "assignee": {"id": 817}, "organization": {"id": 948}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 21}, "assignee": {"id": 558}, "organization": {"id": 167}, "project": {"owner": {"id": 747}, "assignee": {"id": 847}, "organization": {"id": 984}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "owner": {"id": 24}, "assignee": {"id": 508}, "organization": {"id": 615}, "project": {"owner": {"id": 718}, "assignee": {"id": 816}, "organization": {"id": 924}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "owner": {"id": 5}, "assignee": {"id": 540}, "organization": {"id": 197}, "project": {"owner": {"id": 754}, "assignee": {"id": 881}, "organization": {"id": 931}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "owner": {"id": 6}, "assignee": {"id": 568}, "organization": {"id": 637}, "project": {"owner": {"id": 719}, "assignee": {"id": 841}, "organization": {"id": 931}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 316, "owner": {"id": 60}, "assignee": {"id": 574}, "organization": {"id": 184}, "project": {"owner": {"id": 726}, "assignee": {"id": 893}, "organization": {"id": 910}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 65}, "assignee": {"id": 565}, "organization": {"id": 649}, "project": {"owner": {"id": 796}, "assignee": {"id": 882}, "organization": {"id": 996}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 366, "owner": {"id": 88}, "assignee": {"id": 522}, "organization": {"id": 161}, "project": {"owner": {"id": 791}, "assignee": {"id": 847}, "organization": {"id": 967}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 363, "owner": {"id": 83}, "assignee": {"id": 534}, "organization": {"id": 674}, "project": {"owner": {"id": 751}, "assignee": {"id": 881}, "organization": {"id": 974}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 328, "owner": {"id": 425}, "assignee": {"id": 54}, "organization": {"id": 148}, "project": {"owner": {"id": 750}, "assignee": {"id": 827}, "organization": {"id": 939}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 320, "owner": {"id": 447}, "assignee": {"id": 10}, "organization": {"id": 670}, "project": {"owner": {"id": 710}, "assignee": {"id": 817}, "organization": {"id": 996}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "owner": {"id": 445}, "assignee": {"id": 79}, "organization": {"id": 143}, "project": {"owner": {"id": 705}, "assignee": {"id": 859}, "organization": {"id": 965}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "owner": {"id": 459}, "assignee": {"id": 34}, "organization": {"id": 652}, "project": {"owner": {"id": 747}, "assignee": {"id": 863}, "organization": {"id": 940}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "owner": {"id": 456}, "assignee": {"id": 10}, "organization": {"id": 137}, "project": {"owner": {"id": 782}, "assignee": {"id": 809}, "organization": {"id": 945}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "owner": {"id": 469}, "assignee": {"id": 15}, "organization": {"id": 610}, "project": {"owner": {"id": 735}, "assignee": {"id": 829}, "organization": {"id": 912}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 304, "owner": {"id": 469}, "assignee": {"id": 32}, "organization": {"id": 138}, "project": {"owner": {"id": 725}, "assignee": {"id": 886}, "organization": {"id": 942}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 398, "owner": {"id": 487}, "assignee": {"id": 96}, "organization": {"id": 624}, "project": {"owner": {"id": 790}, "assignee": {"id": 877}, "organization": {"id": 917}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 369, "owner": {"id": 433}, "assignee": {"id": 51}, "organization": {"id": 151}, "project": {"owner": {"id": 738}, "assignee": {"id": 836}, "organization": {"id": 944}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 483}, "assignee": {"id": 19}, "organization": {"id": 660}, "project": {"owner": {"id": 783}, "assignee": {"id": 865}, "organization": {"id": 997}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 329, "owner": {"id": 492}, "assignee": {"id": 75}, "organization": {"id": 170}, "project": {"owner": {"id": 760}, "assignee": {"id": 829}, "organization": {"id": 966}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 359, "owner": {"id": 492}, "assignee": {"id": 54}, "organization": {"id": 643}, "project": {"owner": {"id": 710}, "assignee": {"id": 840}, "organization": {"id": 924}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "owner": {"id": 426}, "assignee": {"id": 17}, "organization": {"id": 173}, "project": {"owner": {"id": 771}, "assignee": {"id": 803}, "organization": {"id": 947}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "owner": {"id": 494}, "assignee": {"id": 28}, "organization": {"id": 663}, "project": {"owner": {"id": 784}, "assignee": {"id": 845}, "organization": {"id": 943}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 387, "owner": {"id": 496}, "assignee": {"id": 38}, "organization": {"id": 141}, "project": {"owner": {"id": 799}, "assignee": {"id": 888}, "organization": {"id": 968}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 472}, "assignee": {"id": 80}, "organization": {"id": 617}, "project": {"owner": {"id": 719}, "assignee": {"id": 842}, "organization": {"id": 972}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 373, "owner": {"id": 450}, "assignee": {"id": 49}, "organization": {"id": 124}, "project": {"owner": {"id": 750}, "assignee": {"id": 808}, "organization": {"id": 968}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 442}, "assignee": {"id": 21}, "organization": {"id": 657}, "project": {"owner": {"id": 781}, "assignee": {"id": 838}, "organization": {"id": 911}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 370, "owner": {"id": 422}, "assignee": {"id": 23}, "organization": {"id": 125}, "project": {"owner": {"id": 777}, "assignee": {"id": 862}, "organization": {"id": 903}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 436}, "assignee": {"id": 8}, "organization": {"id": 629}, "project": {"owner": {"id": 737}, "assignee": {"id": 884}, "organization": {"id": 967}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 466}, "assignee": {"id": 20}, "organization": {"id": 114}, "project": {"owner": {"id": 741}, "assignee": {"id": 852}, "organization": {"id": 950}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 368, "owner": {"id": 453}, "assignee": {"id": 16}, "organization": {"id": 695}, "project": {"owner": {"id": 708}, "assignee": {"id": 849}, "organization": {"id": 926}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "owner": {"id": 490}, "assignee": {"id": 39}, "organization": {"id": 175}, "project": {"owner": {"id": 720}, "assignee": {"id": 877}, "organization": {"id": 973}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "owner": {"id": 491}, "assignee": {"id": 18}, "organization": {"id": 658}, "project": {"owner": {"id": 735}, "assignee": {"id": 825}, "organization": {"id": 900}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "owner": {"id": 477}, "assignee": {"id": 58}, "organization": {"id": 159}, "project": {"owner": {"id": 742}, "assignee": {"id": 872}, "organization": {"id": 962}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "owner": {"id": 494}, "assignee": {"id": 89}, "organization": {"id": 636}, "project": {"owner": {"id": 782}, "assignee": {"id": 858}, "organization": {"id": 944}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 478}, "assignee": {"id": 93}, "organization": {"id": 155}, "project": {"owner": {"id": 731}, "assignee": {"id": 822}, "organization": {"id": 979}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 484}, "assignee": {"id": 89}, "organization": {"id": 689}, "project": {"owner": {"id": 772}, "assignee": {"id": 812}, "organization": {"id": 950}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 320, "owner": {"id": 435}, "assignee": {"id": 89}, "organization": {"id": 192}, "project": {"owner": {"id": 737}, "assignee": {"id": 885}, "organization": {"id": 908}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 327, "owner": {"id": 463}, "assignee": {"id": 9}, "organization": {"id": 697}, "project": {"owner": {"id": 770}, "assignee": {"id": 815}, "organization": {"id": 947}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 498}, "assignee": {"id": 32}, "organization": {"id": 126}, "project": {"owner": {"id": 752}, "assignee": {"id": 857}, "organization": {"id": 921}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 305, "owner": {"id": 459}, "assignee": {"id": 95}, "organization": {"id": 609}, "project": {"owner": {"id": 781}, "assignee": {"id": 888}, "organization": {"id": 986}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 495}, "assignee": {"id": 32}, "organization": {"id": 114}, "project": {"owner": {"id": 750}, "assignee": {"id": 804}, "organization": {"id": 901}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "owner": {"id": 441}, "assignee": {"id": 8}, "organization": {"id": 695}, "project": {"owner": {"id": 759}, "assignee": {"id": 862}, "organization": {"id": 959}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "owner": {"id": 431}, "assignee": {"id": 20}, "organization": {"id": 121}, "project": {"owner": {"id": 717}, "assignee": {"id": 860}, "organization": {"id": 935}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "owner": {"id": 412}, "assignee": {"id": 50}, "organization": {"id": 637}, "project": {"owner": {"id": 715}, "assignee": {"id": 868}, "organization": {"id": 994}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 497}, "assignee": {"id": 45}, "organization": {"id": 122}, "project": {"owner": {"id": 734}, "assignee": {"id": 819}, "organization": {"id": 956}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 391, "owner": {"id": 404}, "assignee": {"id": 6}, "organization": {"id": 668}, "project": {"owner": {"id": 727}, "assignee": {"id": 856}, "organization": {"id": 989}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 382, "owner": {"id": 484}, "assignee": {"id": 39}, "organization": {"id": 156}, "project": {"owner": {"id": 713}, "assignee": {"id": 849}, "organization": {"id": 988}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 376, "owner": {"id": 400}, "assignee": {"id": 31}, "organization": {"id": 698}, "project": {"owner": {"id": 748}, "assignee": {"id": 898}, "organization": {"id": 925}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 325, "owner": {"id": 411}, "assignee": {"id": 24}, "organization": {"id": 187}, "project": {"owner": {"id": 703}, "assignee": {"id": 801}, "organization": {"id": 943}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 308, "owner": {"id": 428}, "assignee": {"id": 5}, "organization": {"id": 685}, "project": {"owner": {"id": 721}, "assignee": {"id": 892}, "organization": {"id": 921}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 441}, "assignee": {"id": 26}, "organization": {"id": 169}, "project": {"owner": {"id": 780}, "assignee": {"id": 824}, "organization": {"id": 979}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "owner": {"id": 415}, "assignee": {"id": 22}, "organization": {"id": 627}, "project": {"owner": {"id": 713}, "assignee": {"id": 845}, "organization": {"id": 941}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 440}, "assignee": {"id": 8}, "organization": {"id": 184}, "project": {"owner": {"id": 727}, "assignee": {"id": 858}, "organization": {"id": 928}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 479}, "assignee": {"id": 38}, "organization": {"id": 605}, "project": {"owner": {"id": 708}, "assignee": {"id": 827}, "organization": {"id": 952}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 363, "owner": {"id": 413}, "assignee": {"id": 12}, "organization": {"id": 176}, "project": {"owner": {"id": 772}, "assignee": {"id": 821}, "organization": {"id": 932}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 380, "owner": {"id": 489}, "assignee": {"id": 42}, "organization": {"id": 686}, "project": {"owner": {"id": 798}, "assignee": {"id": 888}, "organization": {"id": 917}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 397, "owner": {"id": 488}, "assignee": {"id": 2}, "organization": {"id": 177}, "project": {"owner": {"id": 761}, "assignee": {"id": 808}, "organization": {"id": 942}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 357, "owner": {"id": 448}, "assignee": {"id": 75}, "organization": {"id": 681}, "project": {"owner": {"id": 794}, "assignee": {"id": 829}, "organization": {"id": 964}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 329, "owner": {"id": 402}, "assignee": {"id": 578}, "organization": {"id": 154}, "project": {"owner": {"id": 715}, "assignee": {"id": 839}, "organization": {"id": 930}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 331, "owner": {"id": 479}, "assignee": {"id": 510}, "organization": {"id": 607}, "project": {"owner": {"id": 717}, "assignee": {"id": 847}, "organization": {"id": 963}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 426}, "assignee": {"id": 582}, "organization": {"id": 194}, "project": {"owner": {"id": 730}, "assignee": {"id": 892}, "organization": {"id": 976}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "owner": {"id": 435}, "assignee": {"id": 540}, "organization": {"id": 682}, "project": {"owner": {"id": 797}, "assignee": {"id": 805}, "organization": {"id": 966}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "owner": {"id": 403}, "assignee": {"id": 529}, "organization": {"id": 169}, "project": {"owner": {"id": 742}, "assignee": {"id": 843}, "organization": {"id": 931}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "owner": {"id": 431}, "assignee": {"id": 587}, "organization": {"id": 689}, "project": {"owner": {"id": 792}, "assignee": {"id": 828}, "organization": {"id": 977}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 323, "owner": {"id": 456}, "assignee": {"id": 580}, "organization": {"id": 106}, "project": {"owner": {"id": 708}, "assignee": {"id": 862}, "organization": {"id": 908}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 318, "owner": {"id": 426}, "assignee": {"id": 516}, "organization": {"id": 611}, "project": {"owner": {"id": 722}, "assignee": {"id": 875}, "organization": {"id": 970}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 454}, "assignee": {"id": 592}, "organization": {"id": 131}, "project": {"owner": {"id": 739}, "assignee": {"id": 821}, "organization": {"id": 992}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 322, "owner": {"id": 477}, "assignee": {"id": 531}, "organization": {"id": 638}, "project": {"owner": {"id": 736}, "assignee": {"id": 873}, "organization": {"id": 957}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 410}, "assignee": {"id": 546}, "organization": {"id": 154}, "project": {"owner": {"id": 748}, "assignee": {"id": 821}, "organization": {"id": 960}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 494}, "assignee": {"id": 555}, "organization": {"id": 697}, "project": {"owner": {"id": 719}, "assignee": {"id": 861}, "organization": {"id": 902}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "owner": {"id": 497}, "assignee": {"id": 538}, "organization": {"id": 122}, "project": {"owner": {"id": 768}, "assignee": {"id": 819}, "organization": {"id": 970}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 459}, "assignee": {"id": 539}, "organization": {"id": 658}, "project": {"owner": {"id": 736}, "assignee": {"id": 848}, "organization": {"id": 971}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 417}, "assignee": {"id": 591}, "organization": {"id": 101}, "project": {"owner": {"id": 725}, "assignee": {"id": 819}, "organization": {"id": 924}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 492}, "assignee": {"id": 547}, "organization": {"id": 662}, "project": {"owner": {"id": 751}, "assignee": {"id": 853}, "organization": {"id": 950}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 439}, "assignee": {"id": 582}, "organization": {"id": 149}, "project": {"owner": {"id": 709}, "assignee": {"id": 852}, "organization": {"id": 904}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 320, "owner": {"id": 424}, "assignee": {"id": 597}, "organization": {"id": 655}, "project": {"owner": {"id": 732}, "assignee": {"id": 898}, "organization": {"id": 996}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 390, "owner": {"id": 462}, "assignee": {"id": 581}, "organization": {"id": 149}, "project": {"owner": {"id": 747}, "assignee": {"id": 889}, "organization": {"id": 907}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"id": 394, "owner": {"id": 431}, "assignee": {"id": 531}, "organization": {"id": 661}, "project": {"owner": {"id": 704}, "assignee": {"id": 846}, "organization": {"id": 980}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 485}, "assignee": {"id": 582}, "organization": {"id": 118}, "project": {"owner": {"id": 733}, "assignee": {"id": 877}, "organization": {"id": 958}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 331, "owner": {"id": 477}, "assignee": {"id": 574}, "organization": {"id": 684}, "project": {"owner": {"id": 720}, "assignee": {"id": 801}, "organization": {"id": 914}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:organization", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "owner": {"id": 449}, "assignee": {"id": 550}, "organization": {"id": 154}, "project": {"owner": {"id": 775}, "assignee": {"id": 810}, "organization": {"id": 966}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "owner": {"id": 432}, "assignee": {"id": 588}, "organization": {"id": 638}, "project": {"owner": {"id": 764}, "assignee": {"id": 868}, "organization": {"id": 984}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 452}, "assignee": {"id": 596}, "organization": {"id": 199}, "project": {"owner": {"id": 711}, "assignee": {"id": 813}, "organization": {"id": 981}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 434}, "assignee": {"id": 595}, "organization": {"id": 626}, "project": {"owner": {"id": 795}, "assignee": {"id": 850}, "organization": {"id": 989}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 400}, "assignee": {"id": 512}, "organization": {"id": 153}, "project": {"owner": {"id": 799}, "assignee": {"id": 889}, "organization": {"id": 953}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 90, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 336, "owner": {"id": 493}, "assignee": {"id": 555}, "organization": {"id": 621}, "project": {"owner": {"id": 722}, "assignee": {"id": 847}, "organization": {"id": 923}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 362, "owner": {"id": 423}, "assignee": {"id": 564}, "organization": {"id": 125}, "project": {"owner": {"id": 757}, "assignee": {"id": 872}, "organization": {"id": 927}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 395, "owner": {"id": 423}, "assignee": {"id": 597}, "organization": {"id": 624}, "project": {"owner": {"id": 733}, "assignee": {"id": 852}, "organization": {"id": 956}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 381, "owner": {"id": 421}, "assignee": {"id": 510}, "organization": {"id": 108}, "project": {"owner": {"id": 710}, "assignee": {"id": 848}, "organization": {"id": 915}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 474}, "assignee": {"id": 530}, "organization": {"id": 661}, "project": {"owner": {"id": 762}, "assignee": {"id": 886}, "organization": {"id": 997}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 496}, "assignee": {"id": 500}, "organization": {"id": 166}, "project": {"owner": {"id": 774}, "assignee": {"id": 805}, "organization": {"id": 912}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 477}, "assignee": {"id": 566}, "organization": {"id": 697}, "project": {"owner": {"id": 734}, "assignee": {"id": 862}, "organization": {"id": 960}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "owner": {"id": 443}, "assignee": {"id": 547}, "organization": {"id": 185}, "project": {"owner": {"id": 743}, "assignee": {"id": 840}, "organization": {"id": 930}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 348, "owner": {"id": 478}, "assignee": {"id": 507}, "organization": {"id": 645}, "project": {"owner": {"id": 742}, "assignee": {"id": 812}, "organization": {"id": 900}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 392, "owner": {"id": 417}, "assignee": {"id": 503}, "organization": {"id": 196}, "project": {"owner": {"id": 715}, "assignee": {"id": 867}, "organization": {"id": 935}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 347, "owner": {"id": 457}, "assignee": {"id": 579}, "organization": {"id": 687}, "project": {"owner": {"id": 784}, "assignee": {"id": 860}, "organization": {"id": 965}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 300, "owner": {"id": 481}, "assignee": {"id": 541}, "organization": {"id": 141}, "project": {"owner": {"id": 781}, "assignee": {"id": 846}, "organization": {"id": 905}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 356, "owner": {"id": 429}, "assignee": {"id": 577}, "organization": {"id": 662}, "project": {"owner": {"id": 751}, "assignee": {"id": 894}, "organization": {"id": 978}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 484}, "assignee": {"id": 589}, "organization": {"id": 124}, "project": {"owner": {"id": 793}, "assignee": {"id": 849}, "organization": {"id": 937}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 318, "owner": {"id": 466}, "assignee": {"id": 573}, "organization": {"id": 691}, "project": {"owner": {"id": 764}, "assignee": {"id": 804}, "organization": {"id": 916}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "owner": {"id": 470}, "assignee": {"id": 559}, "organization": {"id": 169}, "project": {"owner": {"id": 757}, "assignee": {"id": 814}, "organization": {"id": 961}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "owner": {"id": 427}, "assignee": {"id": 521}, "organization": {"id": 696}, "project": {"owner": {"id": 784}, "assignee": {"id": 889}, "organization": {"id": 911}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 420}, "assignee": {"id": 541}, "organization": {"id": 132}, "project": {"owner": {"id": 798}, "assignee": {"id": 835}, "organization": {"id": 928}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 485}, "assignee": {"id": 515}, "organization": {"id": 685}, "project": {"owner": {"id": 717}, "assignee": {"id": 868}, "organization": {"id": 981}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 388, "owner": {"id": 442}, "assignee": {"id": 528}, "organization": {"id": 143}, "project": {"owner": {"id": 798}, "assignee": {"id": 876}, "organization": {"id": 908}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 391, "owner": {"id": 495}, "assignee": {"id": 594}, "organization": {"id": 692}, "project": {"owner": {"id": 748}, "assignee": {"id": 883}, "organization": {"id": 982}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 328, "owner": {"id": 433}, "assignee": {"id": 514}, "organization": {"id": 194}, "project": {"owner": {"id": 711}, "assignee": {"id": 814}, "organization": {"id": 911}}}} -} - -test_scope_UPDATE_ORGANIZATION_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:organization", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 495}, "assignee": {"id": 514}, "organization": {"id": 673}, "project": {"owner": {"id": 747}, "assignee": {"id": 816}, "organization": {"id": 940}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": null}, "resource": {"id": 319, "owner": {"id": 491}, "assignee": {"id": 526}, "organization": {"id": 693}, "project": {"owner": {"id": 6}, "assignee": {"id": 889}, "organization": {"id": 994}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": null}, "resource": {"id": 321, "owner": {"id": 407}, "assignee": {"id": 512}, "organization": {"id": 645}, "project": {"owner": {"id": 15}, "assignee": {"id": 822}, "organization": {"id": 906}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": null}, "resource": {"id": 373, "owner": {"id": 416}, "assignee": {"id": 512}, "organization": {"id": 641}, "project": {"owner": {"id": 23}, "assignee": {"id": 891}, "organization": {"id": 968}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": null}, "resource": {"id": 366, "owner": {"id": 445}, "assignee": {"id": 577}, "organization": {"id": 668}, "project": {"owner": {"id": 12}, "assignee": {"id": 826}, "organization": {"id": 988}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": null}, "resource": {"id": 368, "owner": {"id": 414}, "assignee": {"id": 587}, "organization": {"id": 670}, "project": {"owner": {"id": 81}, "assignee": {"id": 808}, "organization": {"id": 942}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": null}, "resource": {"id": 347, "owner": {"id": 490}, "assignee": {"id": 599}, "organization": {"id": 631}, "project": {"owner": {"id": 786}, "assignee": {"id": 90}, "organization": {"id": 953}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": null}, "resource": {"id": 367, "owner": {"id": 487}, "assignee": {"id": 577}, "organization": {"id": 605}, "project": {"owner": {"id": 777}, "assignee": {"id": 86}, "organization": {"id": 921}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": null}, "resource": {"id": 365, "owner": {"id": 419}, "assignee": {"id": 552}, "organization": {"id": 615}, "project": {"owner": {"id": 762}, "assignee": {"id": 98}, "organization": {"id": 919}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": null}, "resource": {"id": 319, "owner": {"id": 444}, "assignee": {"id": 564}, "organization": {"id": 601}, "project": {"owner": {"id": 798}, "assignee": {"id": 6}, "organization": {"id": 930}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": null}, "resource": {"id": 329, "owner": {"id": 428}, "assignee": {"id": 543}, "organization": {"id": 654}, "project": {"owner": {"id": 761}, "assignee": {"id": 54}, "organization": {"id": 965}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": null}, "resource": {"id": 315, "owner": {"id": 57}, "assignee": {"id": 575}, "organization": {"id": 683}, "project": {"owner": {"id": 724}, "assignee": {"id": 824}, "organization": {"id": 990}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": null}, "resource": {"id": 334, "owner": {"id": 75}, "assignee": {"id": 523}, "organization": {"id": 600}, "project": {"owner": {"id": 720}, "assignee": {"id": 873}, "organization": {"id": 927}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": null}, "resource": {"id": 399, "owner": {"id": 48}, "assignee": {"id": 574}, "organization": {"id": 613}, "project": {"owner": {"id": 792}, "assignee": {"id": 895}, "organization": {"id": 988}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": null}, "resource": {"id": 348, "owner": {"id": 5}, "assignee": {"id": 502}, "organization": {"id": 614}, "project": {"owner": {"id": 701}, "assignee": {"id": 897}, "organization": {"id": 982}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": null}, "resource": {"id": 328, "owner": {"id": 15}, "assignee": {"id": 536}, "organization": {"id": 645}, "project": {"owner": {"id": 709}, "assignee": {"id": 878}, "organization": {"id": 942}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": null}, "resource": {"id": 383, "owner": {"id": 431}, "assignee": {"id": 68}, "organization": {"id": 653}, "project": {"owner": {"id": 770}, "assignee": {"id": 863}, "organization": {"id": 968}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": null}, "resource": {"id": 318, "owner": {"id": 446}, "assignee": {"id": 72}, "organization": {"id": 610}, "project": {"owner": {"id": 731}, "assignee": {"id": 809}, "organization": {"id": 901}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": null}, "resource": {"id": 359, "owner": {"id": 461}, "assignee": {"id": 21}, "organization": {"id": 683}, "project": {"owner": {"id": 782}, "assignee": {"id": 851}, "organization": {"id": 948}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": null}, "resource": {"id": 312, "owner": {"id": 464}, "assignee": {"id": 61}, "organization": {"id": 619}, "project": {"owner": {"id": 703}, "assignee": {"id": 875}, "organization": {"id": 948}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": null}, "resource": {"id": 335, "owner": {"id": 473}, "assignee": {"id": 90}, "organization": {"id": 645}, "project": {"owner": {"id": 711}, "assignee": {"id": 809}, "organization": {"id": 922}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": null}, "resource": {"id": 323, "owner": {"id": 493}, "assignee": {"id": 513}, "organization": {"id": 650}, "project": {"owner": {"id": 798}, "assignee": {"id": 855}, "organization": {"id": 925}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": null}, "resource": {"id": 325, "owner": {"id": 444}, "assignee": {"id": 553}, "organization": {"id": 661}, "project": {"owner": {"id": 760}, "assignee": {"id": 868}, "organization": {"id": 988}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": null}, "resource": {"id": 302, "owner": {"id": 438}, "assignee": {"id": 539}, "organization": {"id": 664}, "project": {"owner": {"id": 715}, "assignee": {"id": 889}, "organization": {"id": 963}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": null}, "resource": {"id": 315, "owner": {"id": 444}, "assignee": {"id": 559}, "organization": {"id": 652}, "project": {"owner": {"id": 782}, "assignee": {"id": 890}, "organization": {"id": 994}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": null}, "resource": {"id": 311, "owner": {"id": 411}, "assignee": {"id": 503}, "organization": {"id": 655}, "project": {"owner": {"id": 701}, "assignee": {"id": 880}, "organization": {"id": 998}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 348, "owner": {"id": 403}, "assignee": {"id": 595}, "organization": {"id": 199}, "project": {"owner": {"id": 80}, "assignee": {"id": 858}, "organization": {"id": 981}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 323, "owner": {"id": 430}, "assignee": {"id": 583}, "organization": {"id": 628}, "project": {"owner": {"id": 31}, "assignee": {"id": 824}, "organization": {"id": 968}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 498}, "assignee": {"id": 533}, "organization": {"id": 180}, "project": {"owner": {"id": 18}, "assignee": {"id": 835}, "organization": {"id": 910}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "owner": {"id": 474}, "assignee": {"id": 513}, "organization": {"id": 614}, "project": {"owner": {"id": 13}, "assignee": {"id": 876}, "organization": {"id": 915}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 423}, "assignee": {"id": 511}, "organization": {"id": 112}, "project": {"owner": {"id": 50}, "assignee": {"id": 846}, "organization": {"id": 926}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 452}, "assignee": {"id": 509}, "organization": {"id": 662}, "project": {"owner": {"id": 87}, "assignee": {"id": 809}, "organization": {"id": 926}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 340, "owner": {"id": 481}, "assignee": {"id": 557}, "organization": {"id": 184}, "project": {"owner": {"id": 22}, "assignee": {"id": 838}, "organization": {"id": 901}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 380, "owner": {"id": 477}, "assignee": {"id": 504}, "organization": {"id": 615}, "project": {"owner": {"id": 78}, "assignee": {"id": 844}, "organization": {"id": 961}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 300, "owner": {"id": 420}, "assignee": {"id": 566}, "organization": {"id": 103}, "project": {"owner": {"id": 77}, "assignee": {"id": 815}, "organization": {"id": 924}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"id": 302, "owner": {"id": 466}, "assignee": {"id": 565}, "organization": {"id": 697}, "project": {"owner": {"id": 14}, "assignee": {"id": 827}, "organization": {"id": 946}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 341, "owner": {"id": 417}, "assignee": {"id": 528}, "organization": {"id": 135}, "project": {"owner": {"id": 34}, "assignee": {"id": 888}, "organization": {"id": 916}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 325, "owner": {"id": 411}, "assignee": {"id": 544}, "organization": {"id": 690}, "project": {"owner": {"id": 59}, "assignee": {"id": 883}, "organization": {"id": 937}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "owner": {"id": 465}, "assignee": {"id": 551}, "organization": {"id": 191}, "project": {"owner": {"id": 87}, "assignee": {"id": 822}, "organization": {"id": 925}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 26, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "owner": {"id": 413}, "assignee": {"id": 574}, "organization": {"id": 698}, "project": {"owner": {"id": 26}, "assignee": {"id": 839}, "organization": {"id": 921}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "owner": {"id": 457}, "assignee": {"id": 554}, "organization": {"id": 113}, "project": {"owner": {"id": 79}, "assignee": {"id": 834}, "organization": {"id": 940}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 454}, "assignee": {"id": 525}, "organization": {"id": 672}, "project": {"owner": {"id": 8}, "assignee": {"id": 847}, "organization": {"id": 980}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 304, "owner": {"id": 465}, "assignee": {"id": 532}, "organization": {"id": 167}, "project": {"owner": {"id": 82}, "assignee": {"id": 837}, "organization": {"id": 977}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 403}, "assignee": {"id": 514}, "organization": {"id": 623}, "project": {"owner": {"id": 45}, "assignee": {"id": 854}, "organization": {"id": 923}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 327, "owner": {"id": 484}, "assignee": {"id": 547}, "organization": {"id": 101}, "project": {"owner": {"id": 15}, "assignee": {"id": 899}, "organization": {"id": 940}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 388, "owner": {"id": 401}, "assignee": {"id": 591}, "organization": {"id": 642}, "project": {"owner": {"id": 41}, "assignee": {"id": 859}, "organization": {"id": 972}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 308, "owner": {"id": 449}, "assignee": {"id": 536}, "organization": {"id": 171}, "project": {"owner": {"id": 13}, "assignee": {"id": 867}, "organization": {"id": 927}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 477}, "assignee": {"id": 585}, "organization": {"id": 609}, "project": {"owner": {"id": 87}, "assignee": {"id": 882}, "organization": {"id": 953}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "owner": {"id": 440}, "assignee": {"id": 525}, "organization": {"id": 135}, "project": {"owner": {"id": 5}, "assignee": {"id": 863}, "organization": {"id": 963}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "owner": {"id": 415}, "assignee": {"id": 557}, "organization": {"id": 621}, "project": {"owner": {"id": 49}, "assignee": {"id": 841}, "organization": {"id": 975}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 436}, "assignee": {"id": 502}, "organization": {"id": 116}, "project": {"owner": {"id": 36}, "assignee": {"id": 800}, "organization": {"id": 959}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "owner": {"id": 468}, "assignee": {"id": 567}, "organization": {"id": 605}, "project": {"owner": {"id": 8}, "assignee": {"id": 882}, "organization": {"id": 902}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 353, "owner": {"id": 492}, "assignee": {"id": 538}, "organization": {"id": 110}, "project": {"owner": {"id": 51}, "assignee": {"id": 896}, "organization": {"id": 944}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 440}, "assignee": {"id": 563}, "organization": {"id": 678}, "project": {"owner": {"id": 89}, "assignee": {"id": 850}, "organization": {"id": 938}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 382, "owner": {"id": 415}, "assignee": {"id": 547}, "organization": {"id": 101}, "project": {"owner": {"id": 6}, "assignee": {"id": 803}, "organization": {"id": 928}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 313, "owner": {"id": 441}, "assignee": {"id": 588}, "organization": {"id": 692}, "project": {"owner": {"id": 11}, "assignee": {"id": 828}, "organization": {"id": 921}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 468}, "assignee": {"id": 500}, "organization": {"id": 106}, "project": {"owner": {"id": 14}, "assignee": {"id": 833}, "organization": {"id": 905}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 309, "owner": {"id": 433}, "assignee": {"id": 542}, "organization": {"id": 688}, "project": {"owner": {"id": 89}, "assignee": {"id": 848}, "organization": {"id": 934}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "owner": {"id": 458}, "assignee": {"id": 515}, "organization": {"id": 152}, "project": {"owner": {"id": 74}, "assignee": {"id": 818}, "organization": {"id": 996}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "owner": {"id": 485}, "assignee": {"id": 515}, "organization": {"id": 666}, "project": {"owner": {"id": 61}, "assignee": {"id": 830}, "organization": {"id": 973}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "owner": {"id": 441}, "assignee": {"id": 598}, "organization": {"id": 198}, "project": {"owner": {"id": 33}, "assignee": {"id": 828}, "organization": {"id": 911}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "owner": {"id": 410}, "assignee": {"id": 545}, "organization": {"id": 671}, "project": {"owner": {"id": 94}, "assignee": {"id": 884}, "organization": {"id": 982}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 309, "owner": {"id": 409}, "assignee": {"id": 563}, "organization": {"id": 159}, "project": {"owner": {"id": 27}, "assignee": {"id": 801}, "organization": {"id": 985}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 67, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 324, "owner": {"id": 462}, "assignee": {"id": 513}, "organization": {"id": 643}, "project": {"owner": {"id": 67}, "assignee": {"id": 875}, "organization": {"id": 997}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 397, "owner": {"id": 439}, "assignee": {"id": 590}, "organization": {"id": 116}, "project": {"owner": {"id": 13}, "assignee": {"id": 819}, "organization": {"id": 964}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 346, "owner": {"id": 449}, "assignee": {"id": 557}, "organization": {"id": 679}, "project": {"owner": {"id": 51}, "assignee": {"id": 825}, "organization": {"id": 999}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 335, "owner": {"id": 454}, "assignee": {"id": 521}, "organization": {"id": 118}, "project": {"owner": {"id": 13}, "assignee": {"id": 873}, "organization": {"id": 982}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 313, "owner": {"id": 495}, "assignee": {"id": 514}, "organization": {"id": 630}, "project": {"owner": {"id": 34}, "assignee": {"id": 858}, "organization": {"id": 923}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "owner": {"id": 467}, "assignee": {"id": 557}, "organization": {"id": 145}, "project": {"owner": {"id": 10}, "assignee": {"id": 815}, "organization": {"id": 970}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "owner": {"id": 419}, "assignee": {"id": 550}, "organization": {"id": 664}, "project": {"owner": {"id": 6}, "assignee": {"id": 865}, "organization": {"id": 942}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 412}, "assignee": {"id": 506}, "organization": {"id": 137}, "project": {"owner": {"id": 24}, "assignee": {"id": 893}, "organization": {"id": 954}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "owner": {"id": 422}, "assignee": {"id": 576}, "organization": {"id": 635}, "project": {"owner": {"id": 66}, "assignee": {"id": 877}, "organization": {"id": 963}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 387, "owner": {"id": 406}, "assignee": {"id": 582}, "organization": {"id": 104}, "project": {"owner": {"id": 6}, "assignee": {"id": 828}, "organization": {"id": 914}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 334, "owner": {"id": 430}, "assignee": {"id": 508}, "organization": {"id": 668}, "project": {"owner": {"id": 79}, "assignee": {"id": 835}, "organization": {"id": 928}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 450}, "assignee": {"id": 550}, "organization": {"id": 163}, "project": {"owner": {"id": 34}, "assignee": {"id": 893}, "organization": {"id": 988}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 321, "owner": {"id": 426}, "assignee": {"id": 544}, "organization": {"id": 681}, "project": {"owner": {"id": 36}, "assignee": {"id": 890}, "organization": {"id": 976}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 312, "owner": {"id": 423}, "assignee": {"id": 564}, "organization": {"id": 188}, "project": {"owner": {"id": 779}, "assignee": {"id": 39}, "organization": {"id": 994}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 321, "owner": {"id": 440}, "assignee": {"id": 587}, "organization": {"id": 608}, "project": {"owner": {"id": 721}, "assignee": {"id": 58}, "organization": {"id": 942}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "owner": {"id": 460}, "assignee": {"id": 554}, "organization": {"id": 121}, "project": {"owner": {"id": 702}, "assignee": {"id": 9}, "organization": {"id": 933}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 401}, "assignee": {"id": 576}, "organization": {"id": 645}, "project": {"owner": {"id": 760}, "assignee": {"id": 62}, "organization": {"id": 900}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 405}, "assignee": {"id": 502}, "organization": {"id": 164}, "project": {"owner": {"id": 787}, "assignee": {"id": 67}, "organization": {"id": 929}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "owner": {"id": 418}, "assignee": {"id": 599}, "organization": {"id": 612}, "project": {"owner": {"id": 712}, "assignee": {"id": 42}, "organization": {"id": 994}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 394, "owner": {"id": 444}, "assignee": {"id": 569}, "organization": {"id": 158}, "project": {"owner": {"id": 784}, "assignee": {"id": 46}, "organization": {"id": 932}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 438}, "assignee": {"id": 590}, "organization": {"id": 642}, "project": {"owner": {"id": 766}, "assignee": {"id": 76}, "organization": {"id": 984}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 334, "owner": {"id": 487}, "assignee": {"id": 566}, "organization": {"id": 128}, "project": {"owner": {"id": 781}, "assignee": {"id": 52}, "organization": {"id": 918}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 445}, "assignee": {"id": 563}, "organization": {"id": 603}, "project": {"owner": {"id": 731}, "assignee": {"id": 89}, "organization": {"id": 994}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 326, "owner": {"id": 495}, "assignee": {"id": 511}, "organization": {"id": 180}, "project": {"owner": {"id": 748}, "assignee": {"id": 35}, "organization": {"id": 913}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 369, "owner": {"id": 457}, "assignee": {"id": 567}, "organization": {"id": 622}, "project": {"owner": {"id": 733}, "assignee": {"id": 42}, "organization": {"id": 944}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "owner": {"id": 435}, "assignee": {"id": 539}, "organization": {"id": 143}, "project": {"owner": {"id": 705}, "assignee": {"id": 89}, "organization": {"id": 966}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "owner": {"id": 455}, "assignee": {"id": 558}, "organization": {"id": 672}, "project": {"owner": {"id": 744}, "assignee": {"id": 1}, "organization": {"id": 914}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 459}, "assignee": {"id": 587}, "organization": {"id": 185}, "project": {"owner": {"id": 766}, "assignee": {"id": 71}, "organization": {"id": 979}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 462}, "assignee": {"id": 536}, "organization": {"id": 608}, "project": {"owner": {"id": 737}, "assignee": {"id": 5}, "organization": {"id": 958}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 375, "owner": {"id": 415}, "assignee": {"id": 506}, "organization": {"id": 184}, "project": {"owner": {"id": 739}, "assignee": {"id": 45}, "organization": {"id": 955}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 306, "owner": {"id": 432}, "assignee": {"id": 517}, "organization": {"id": 644}, "project": {"owner": {"id": 736}, "assignee": {"id": 98}, "organization": {"id": 985}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 311, "owner": {"id": 491}, "assignee": {"id": 534}, "organization": {"id": 110}, "project": {"owner": {"id": 793}, "assignee": {"id": 74}, "organization": {"id": 955}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 328, "owner": {"id": 404}, "assignee": {"id": 560}, "organization": {"id": 645}, "project": {"owner": {"id": 731}, "assignee": {"id": 49}, "organization": {"id": 981}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 312, "owner": {"id": 433}, "assignee": {"id": 538}, "organization": {"id": 186}, "project": {"owner": {"id": 739}, "assignee": {"id": 55}, "organization": {"id": 972}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 374, "owner": {"id": 417}, "assignee": {"id": 587}, "organization": {"id": 698}, "project": {"owner": {"id": 725}, "assignee": {"id": 53}, "organization": {"id": 917}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "owner": {"id": 439}, "assignee": {"id": 510}, "organization": {"id": 123}, "project": {"owner": {"id": 772}, "assignee": {"id": 69}, "organization": {"id": 959}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "owner": {"id": 412}, "assignee": {"id": 517}, "organization": {"id": 667}, "project": {"owner": {"id": 756}, "assignee": {"id": 64}, "organization": {"id": 940}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 459}, "assignee": {"id": 545}, "organization": {"id": 103}, "project": {"owner": {"id": 759}, "assignee": {"id": 59}, "organization": {"id": 952}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 498}, "assignee": {"id": 553}, "organization": {"id": 611}, "project": {"owner": {"id": 796}, "assignee": {"id": 38}, "organization": {"id": 978}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 365, "owner": {"id": 447}, "assignee": {"id": 516}, "organization": {"id": 196}, "project": {"owner": {"id": 769}, "assignee": {"id": 6}, "organization": {"id": 937}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 316, "owner": {"id": 451}, "assignee": {"id": 585}, "organization": {"id": 600}, "project": {"owner": {"id": 759}, "assignee": {"id": 58}, "organization": {"id": 966}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 434}, "assignee": {"id": 583}, "organization": {"id": 172}, "project": {"owner": {"id": 742}, "assignee": {"id": 37}, "organization": {"id": 912}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 388, "owner": {"id": 442}, "assignee": {"id": 507}, "organization": {"id": 615}, "project": {"owner": {"id": 794}, "assignee": {"id": 65}, "organization": {"id": 986}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 306, "owner": {"id": 489}, "assignee": {"id": 526}, "organization": {"id": 117}, "project": {"owner": {"id": 718}, "assignee": {"id": 63}, "organization": {"id": 994}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 386, "owner": {"id": 481}, "assignee": {"id": 519}, "organization": {"id": 638}, "project": {"owner": {"id": 780}, "assignee": {"id": 0}, "organization": {"id": 992}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "owner": {"id": 425}, "assignee": {"id": 514}, "organization": {"id": 166}, "project": {"owner": {"id": 700}, "assignee": {"id": 15}, "organization": {"id": 977}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "owner": {"id": 426}, "assignee": {"id": 513}, "organization": {"id": 660}, "project": {"owner": {"id": 703}, "assignee": {"id": 50}, "organization": {"id": 956}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 451}, "assignee": {"id": 561}, "organization": {"id": 187}, "project": {"owner": {"id": 730}, "assignee": {"id": 78}, "organization": {"id": 933}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "owner": {"id": 478}, "assignee": {"id": 515}, "organization": {"id": 655}, "project": {"owner": {"id": 718}, "assignee": {"id": 23}, "organization": {"id": 902}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 384, "owner": {"id": 430}, "assignee": {"id": 521}, "organization": {"id": 160}, "project": {"owner": {"id": 794}, "assignee": {"id": 25}, "organization": {"id": 969}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 337, "owner": {"id": 437}, "assignee": {"id": 585}, "organization": {"id": 612}, "project": {"owner": {"id": 775}, "assignee": {"id": 85}, "organization": {"id": 947}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 489}, "assignee": {"id": 513}, "organization": {"id": 136}, "project": {"owner": {"id": 753}, "assignee": {"id": 3}, "organization": {"id": 918}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 315, "owner": {"id": 472}, "assignee": {"id": 549}, "organization": {"id": 601}, "project": {"owner": {"id": 774}, "assignee": {"id": 82}, "organization": {"id": 904}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 379, "owner": {"id": 456}, "assignee": {"id": 505}, "organization": {"id": 135}, "project": {"owner": {"id": 717}, "assignee": {"id": 58}, "organization": {"id": 992}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 320, "owner": {"id": 445}, "assignee": {"id": 564}, "organization": {"id": 664}, "project": {"owner": {"id": 726}, "assignee": {"id": 67}, "organization": {"id": 990}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "owner": {"id": 422}, "assignee": {"id": 583}, "organization": {"id": 143}, "project": {"owner": {"id": 745}, "assignee": {"id": 72}, "organization": {"id": 992}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "owner": {"id": 417}, "assignee": {"id": 535}, "organization": {"id": 697}, "project": {"owner": {"id": 784}, "assignee": {"id": 8}, "organization": {"id": 950}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 348, "owner": {"id": 460}, "assignee": {"id": 577}, "organization": {"id": 199}, "project": {"owner": {"id": 723}, "assignee": {"id": 64}, "organization": {"id": 990}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "owner": {"id": 433}, "assignee": {"id": 516}, "organization": {"id": 689}, "project": {"owner": {"id": 741}, "assignee": {"id": 44}, "organization": {"id": 974}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 351, "owner": {"id": 408}, "assignee": {"id": 505}, "organization": {"id": 185}, "project": {"owner": {"id": 793}, "assignee": {"id": 12}, "organization": {"id": 929}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 363, "owner": {"id": 486}, "assignee": {"id": 560}, "organization": {"id": 641}, "project": {"owner": {"id": 797}, "assignee": {"id": 93}, "organization": {"id": 998}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"id": 322, "owner": {"id": 493}, "assignee": {"id": 549}, "organization": {"id": 132}, "project": {"owner": {"id": 753}, "assignee": {"id": 78}, "organization": {"id": 907}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 304, "owner": {"id": 495}, "assignee": {"id": 509}, "organization": {"id": 656}, "project": {"owner": {"id": 797}, "assignee": {"id": 80}, "organization": {"id": 977}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 341, "owner": {"id": 73}, "assignee": {"id": 589}, "organization": {"id": 171}, "project": {"owner": {"id": 748}, "assignee": {"id": 817}, "organization": {"id": 981}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 325, "owner": {"id": 25}, "assignee": {"id": 562}, "organization": {"id": 656}, "project": {"owner": {"id": 786}, "assignee": {"id": 836}, "organization": {"id": 928}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "owner": {"id": 85}, "assignee": {"id": 524}, "organization": {"id": 112}, "project": {"owner": {"id": 774}, "assignee": {"id": 803}, "organization": {"id": 980}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "owner": {"id": 69}, "assignee": {"id": 500}, "organization": {"id": 646}, "project": {"owner": {"id": 799}, "assignee": {"id": 852}, "organization": {"id": 972}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 24}, "assignee": {"id": 593}, "organization": {"id": 126}, "project": {"owner": {"id": 782}, "assignee": {"id": 867}, "organization": {"id": 963}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 8}, "assignee": {"id": 545}, "organization": {"id": 645}, "project": {"owner": {"id": 779}, "assignee": {"id": 871}, "organization": {"id": 917}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 380, "owner": {"id": 38}, "assignee": {"id": 509}, "organization": {"id": 112}, "project": {"owner": {"id": 710}, "assignee": {"id": 816}, "organization": {"id": 966}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 363, "owner": {"id": 28}, "assignee": {"id": 506}, "organization": {"id": 676}, "project": {"owner": {"id": 769}, "assignee": {"id": 842}, "organization": {"id": 902}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 68}, "assignee": {"id": 545}, "organization": {"id": 173}, "project": {"owner": {"id": 720}, "assignee": {"id": 836}, "organization": {"id": 909}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"id": 366, "owner": {"id": 69}, "assignee": {"id": 564}, "organization": {"id": 639}, "project": {"owner": {"id": 751}, "assignee": {"id": 879}, "organization": {"id": 907}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 374, "owner": {"id": 53}, "assignee": {"id": 533}, "organization": {"id": 133}, "project": {"owner": {"id": 703}, "assignee": {"id": 804}, "organization": {"id": 943}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 42}, "assignee": {"id": 507}, "organization": {"id": 617}, "project": {"owner": {"id": 726}, "assignee": {"id": 870}, "organization": {"id": 993}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 97}, "assignee": {"id": 563}, "organization": {"id": 104}, "project": {"owner": {"id": 772}, "assignee": {"id": 878}, "organization": {"id": 989}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 61}, "assignee": {"id": 576}, "organization": {"id": 694}, "project": {"owner": {"id": 778}, "assignee": {"id": 810}, "organization": {"id": 970}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 83}, "assignee": {"id": 513}, "organization": {"id": 144}, "project": {"owner": {"id": 763}, "assignee": {"id": 864}, "organization": {"id": 928}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "owner": {"id": 25}, "assignee": {"id": 529}, "organization": {"id": 602}, "project": {"owner": {"id": 707}, "assignee": {"id": 803}, "organization": {"id": 999}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 348, "owner": {"id": 6}, "assignee": {"id": 587}, "organization": {"id": 149}, "project": {"owner": {"id": 702}, "assignee": {"id": 870}, "organization": {"id": 961}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 348, "owner": {"id": 17}, "assignee": {"id": 516}, "organization": {"id": 655}, "project": {"owner": {"id": 789}, "assignee": {"id": 854}, "organization": {"id": 970}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 315, "owner": {"id": 7}, "assignee": {"id": 547}, "organization": {"id": 130}, "project": {"owner": {"id": 724}, "assignee": {"id": 843}, "organization": {"id": 955}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 311, "owner": {"id": 68}, "assignee": {"id": 501}, "organization": {"id": 629}, "project": {"owner": {"id": 752}, "assignee": {"id": 895}, "organization": {"id": 996}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 56}, "assignee": {"id": 531}, "organization": {"id": 123}, "project": {"owner": {"id": 709}, "assignee": {"id": 807}, "organization": {"id": 916}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 305, "owner": {"id": 16}, "assignee": {"id": 544}, "organization": {"id": 677}, "project": {"owner": {"id": 783}, "assignee": {"id": 831}, "organization": {"id": 937}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 69}, "assignee": {"id": 515}, "organization": {"id": 126}, "project": {"owner": {"id": 709}, "assignee": {"id": 809}, "organization": {"id": 932}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "owner": {"id": 46}, "assignee": {"id": 545}, "organization": {"id": 628}, "project": {"owner": {"id": 756}, "assignee": {"id": 891}, "organization": {"id": 938}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "owner": {"id": 69}, "assignee": {"id": 531}, "organization": {"id": 164}, "project": {"owner": {"id": 734}, "assignee": {"id": 840}, "organization": {"id": 989}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 10}, "assignee": {"id": 552}, "organization": {"id": 690}, "project": {"owner": {"id": 779}, "assignee": {"id": 862}, "organization": {"id": 935}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 366, "owner": {"id": 47}, "assignee": {"id": 539}, "organization": {"id": 192}, "project": {"owner": {"id": 770}, "assignee": {"id": 826}, "organization": {"id": 915}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 304, "owner": {"id": 14}, "assignee": {"id": 589}, "organization": {"id": 656}, "project": {"owner": {"id": 783}, "assignee": {"id": 897}, "organization": {"id": 958}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 304, "owner": {"id": 7}, "assignee": {"id": 535}, "organization": {"id": 135}, "project": {"owner": {"id": 749}, "assignee": {"id": 838}, "organization": {"id": 910}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 28}, "assignee": {"id": 502}, "organization": {"id": 648}, "project": {"owner": {"id": 749}, "assignee": {"id": 856}, "organization": {"id": 905}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 323, "owner": {"id": 4}, "assignee": {"id": 555}, "organization": {"id": 169}, "project": {"owner": {"id": 706}, "assignee": {"id": 884}, "organization": {"id": 939}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 75}, "assignee": {"id": 577}, "organization": {"id": 696}, "project": {"owner": {"id": 743}, "assignee": {"id": 833}, "organization": {"id": 996}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "owner": {"id": 94}, "assignee": {"id": 592}, "organization": {"id": 196}, "project": {"owner": {"id": 755}, "assignee": {"id": 854}, "organization": {"id": 993}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 59}, "assignee": {"id": 549}, "organization": {"id": 692}, "project": {"owner": {"id": 786}, "assignee": {"id": 836}, "organization": {"id": 968}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 59}, "assignee": {"id": 598}, "organization": {"id": 195}, "project": {"owner": {"id": 733}, "assignee": {"id": 820}, "organization": {"id": 948}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 98}, "assignee": {"id": 535}, "organization": {"id": 687}, "project": {"owner": {"id": 735}, "assignee": {"id": 810}, "organization": {"id": 931}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 343, "owner": {"id": 34}, "assignee": {"id": 550}, "organization": {"id": 184}, "project": {"owner": {"id": 778}, "assignee": {"id": 835}, "organization": {"id": 946}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 383, "owner": {"id": 84}, "assignee": {"id": 577}, "organization": {"id": 601}, "project": {"owner": {"id": 715}, "assignee": {"id": 839}, "organization": {"id": 972}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 322, "owner": {"id": 4}, "assignee": {"id": 559}, "organization": {"id": 145}, "project": {"owner": {"id": 756}, "assignee": {"id": 801}, "organization": {"id": 959}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 381, "owner": {"id": 35}, "assignee": {"id": 527}, "organization": {"id": 652}, "project": {"owner": {"id": 707}, "assignee": {"id": 874}, "organization": {"id": 910}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 33}, "assignee": {"id": 556}, "organization": {"id": 163}, "project": {"owner": {"id": 733}, "assignee": {"id": 898}, "organization": {"id": 935}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 329, "owner": {"id": 29}, "assignee": {"id": 522}, "organization": {"id": 618}, "project": {"owner": {"id": 779}, "assignee": {"id": 883}, "organization": {"id": 906}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "owner": {"id": 5}, "assignee": {"id": 587}, "organization": {"id": 170}, "project": {"owner": {"id": 756}, "assignee": {"id": 874}, "organization": {"id": 940}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "owner": {"id": 45}, "assignee": {"id": 591}, "organization": {"id": 633}, "project": {"owner": {"id": 732}, "assignee": {"id": 802}, "organization": {"id": 986}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "owner": {"id": 56}, "assignee": {"id": 530}, "organization": {"id": 114}, "project": {"owner": {"id": 713}, "assignee": {"id": 809}, "organization": {"id": 964}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 53}, "assignee": {"id": 526}, "organization": {"id": 641}, "project": {"owner": {"id": 773}, "assignee": {"id": 847}, "organization": {"id": 987}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 354, "owner": {"id": 42}, "assignee": {"id": 518}, "organization": {"id": 152}, "project": {"owner": {"id": 741}, "assignee": {"id": 877}, "organization": {"id": 946}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 347, "owner": {"id": 5}, "assignee": {"id": 537}, "organization": {"id": 679}, "project": {"owner": {"id": 703}, "assignee": {"id": 820}, "organization": {"id": 947}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 91}, "assignee": {"id": 513}, "organization": {"id": 199}, "project": {"owner": {"id": 727}, "assignee": {"id": 840}, "organization": {"id": 965}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 365, "owner": {"id": 4}, "assignee": {"id": 591}, "organization": {"id": 644}, "project": {"owner": {"id": 727}, "assignee": {"id": 848}, "organization": {"id": 974}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 319, "owner": {"id": 448}, "assignee": {"id": 72}, "organization": {"id": 164}, "project": {"owner": {"id": 710}, "assignee": {"id": 809}, "organization": {"id": 928}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 380, "owner": {"id": 470}, "assignee": {"id": 67}, "organization": {"id": 653}, "project": {"owner": {"id": 768}, "assignee": {"id": 893}, "organization": {"id": 915}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 484}, "assignee": {"id": 24}, "organization": {"id": 173}, "project": {"owner": {"id": 756}, "assignee": {"id": 840}, "organization": {"id": 934}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "owner": {"id": 442}, "assignee": {"id": 40}, "organization": {"id": 698}, "project": {"owner": {"id": 746}, "assignee": {"id": 829}, "organization": {"id": 958}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "owner": {"id": 430}, "assignee": {"id": 45}, "organization": {"id": 171}, "project": {"owner": {"id": 752}, "assignee": {"id": 846}, "organization": {"id": 910}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 446}, "assignee": {"id": 53}, "organization": {"id": 661}, "project": {"owner": {"id": 777}, "assignee": {"id": 829}, "organization": {"id": 957}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 316, "owner": {"id": 468}, "assignee": {"id": 85}, "organization": {"id": 117}, "project": {"owner": {"id": 752}, "assignee": {"id": 886}, "organization": {"id": 974}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 333, "owner": {"id": 436}, "assignee": {"id": 53}, "organization": {"id": 640}, "project": {"owner": {"id": 715}, "assignee": {"id": 810}, "organization": {"id": 952}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 373, "owner": {"id": 463}, "assignee": {"id": 1}, "organization": {"id": 121}, "project": {"owner": {"id": 725}, "assignee": {"id": 823}, "organization": {"id": 958}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 433}, "assignee": {"id": 12}, "organization": {"id": 670}, "project": {"owner": {"id": 791}, "assignee": {"id": 860}, "organization": {"id": 995}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 403}, "assignee": {"id": 67}, "organization": {"id": 149}, "project": {"owner": {"id": 709}, "assignee": {"id": 816}, "organization": {"id": 965}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 345, "owner": {"id": 416}, "assignee": {"id": 37}, "organization": {"id": 689}, "project": {"owner": {"id": 771}, "assignee": {"id": 830}, "organization": {"id": 991}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 475}, "assignee": {"id": 9}, "organization": {"id": 194}, "project": {"owner": {"id": 713}, "assignee": {"id": 892}, "organization": {"id": 905}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "owner": {"id": 452}, "assignee": {"id": 96}, "organization": {"id": 657}, "project": {"owner": {"id": 794}, "assignee": {"id": 855}, "organization": {"id": 937}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "owner": {"id": 493}, "assignee": {"id": 10}, "organization": {"id": 119}, "project": {"owner": {"id": 798}, "assignee": {"id": 875}, "organization": {"id": 965}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "owner": {"id": 475}, "assignee": {"id": 41}, "organization": {"id": 686}, "project": {"owner": {"id": 783}, "assignee": {"id": 858}, "organization": {"id": 948}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 365, "owner": {"id": 492}, "assignee": {"id": 38}, "organization": {"id": 163}, "project": {"owner": {"id": 798}, "assignee": {"id": 812}, "organization": {"id": 929}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 306, "owner": {"id": 472}, "assignee": {"id": 36}, "organization": {"id": 667}, "project": {"owner": {"id": 774}, "assignee": {"id": 865}, "organization": {"id": 954}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 26, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 340, "owner": {"id": 496}, "assignee": {"id": 26}, "organization": {"id": 155}, "project": {"owner": {"id": 705}, "assignee": {"id": 894}, "organization": {"id": 993}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 473}, "assignee": {"id": 21}, "organization": {"id": 640}, "project": {"owner": {"id": 712}, "assignee": {"id": 844}, "organization": {"id": 936}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 335, "owner": {"id": 462}, "assignee": {"id": 77}, "organization": {"id": 196}, "project": {"owner": {"id": 721}, "assignee": {"id": 836}, "organization": {"id": 933}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 329, "owner": {"id": 485}, "assignee": {"id": 65}, "organization": {"id": 618}, "project": {"owner": {"id": 712}, "assignee": {"id": 826}, "organization": {"id": 970}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "owner": {"id": 476}, "assignee": {"id": 62}, "organization": {"id": 103}, "project": {"owner": {"id": 768}, "assignee": {"id": 824}, "organization": {"id": 900}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 436}, "assignee": {"id": 16}, "organization": {"id": 654}, "project": {"owner": {"id": 793}, "assignee": {"id": 856}, "organization": {"id": 966}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 491}, "assignee": {"id": 33}, "organization": {"id": 111}, "project": {"owner": {"id": 756}, "assignee": {"id": 855}, "organization": {"id": 963}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "owner": {"id": 493}, "assignee": {"id": 28}, "organization": {"id": 614}, "project": {"owner": {"id": 745}, "assignee": {"id": 810}, "organization": {"id": 995}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 341, "owner": {"id": 420}, "assignee": {"id": 94}, "organization": {"id": 165}, "project": {"owner": {"id": 735}, "assignee": {"id": 858}, "organization": {"id": 980}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 409}, "assignee": {"id": 12}, "organization": {"id": 688}, "project": {"owner": {"id": 740}, "assignee": {"id": 804}, "organization": {"id": 955}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 340, "owner": {"id": 424}, "assignee": {"id": 80}, "organization": {"id": 101}, "project": {"owner": {"id": 780}, "assignee": {"id": 804}, "organization": {"id": 981}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 317, "owner": {"id": 475}, "assignee": {"id": 60}, "organization": {"id": 628}, "project": {"owner": {"id": 786}, "assignee": {"id": 825}, "organization": {"id": 933}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 323, "owner": {"id": 493}, "assignee": {"id": 11}, "organization": {"id": 166}, "project": {"owner": {"id": 716}, "assignee": {"id": 825}, "organization": {"id": 981}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 395, "owner": {"id": 427}, "assignee": {"id": 78}, "organization": {"id": 655}, "project": {"owner": {"id": 708}, "assignee": {"id": 862}, "organization": {"id": 971}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "owner": {"id": 404}, "assignee": {"id": 80}, "organization": {"id": 174}, "project": {"owner": {"id": 733}, "assignee": {"id": 878}, "organization": {"id": 948}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 29, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "owner": {"id": 444}, "assignee": {"id": 29}, "organization": {"id": 667}, "project": {"owner": {"id": 784}, "assignee": {"id": 823}, "organization": {"id": 938}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 462}, "assignee": {"id": 61}, "organization": {"id": 137}, "project": {"owner": {"id": 776}, "assignee": {"id": 845}, "organization": {"id": 969}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "owner": {"id": 414}, "assignee": {"id": 41}, "organization": {"id": 697}, "project": {"owner": {"id": 736}, "assignee": {"id": 853}, "organization": {"id": 957}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 354, "owner": {"id": 414}, "assignee": {"id": 44}, "organization": {"id": 189}, "project": {"owner": {"id": 740}, "assignee": {"id": 884}, "organization": {"id": 914}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 390, "owner": {"id": 416}, "assignee": {"id": 87}, "organization": {"id": 661}, "project": {"owner": {"id": 762}, "assignee": {"id": 876}, "organization": {"id": 952}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"id": 337, "owner": {"id": 434}, "assignee": {"id": 98}, "organization": {"id": 141}, "project": {"owner": {"id": 752}, "assignee": {"id": 807}, "organization": {"id": 971}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 386, "owner": {"id": 440}, "assignee": {"id": 33}, "organization": {"id": 650}, "project": {"owner": {"id": 756}, "assignee": {"id": 854}, "organization": {"id": 951}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 362, "owner": {"id": 493}, "assignee": {"id": 57}, "organization": {"id": 152}, "project": {"owner": {"id": 781}, "assignee": {"id": 805}, "organization": {"id": 939}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 421}, "assignee": {"id": 78}, "organization": {"id": 626}, "project": {"owner": {"id": 799}, "assignee": {"id": 880}, "organization": {"id": 914}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 477}, "assignee": {"id": 11}, "organization": {"id": 199}, "project": {"owner": {"id": 792}, "assignee": {"id": 802}, "organization": {"id": 948}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "owner": {"id": 445}, "assignee": {"id": 6}, "organization": {"id": 698}, "project": {"owner": {"id": 770}, "assignee": {"id": 808}, "organization": {"id": 983}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "owner": {"id": 468}, "assignee": {"id": 29}, "organization": {"id": 137}, "project": {"owner": {"id": 768}, "assignee": {"id": 850}, "organization": {"id": 991}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 442}, "assignee": {"id": 1}, "organization": {"id": 627}, "project": {"owner": {"id": 770}, "assignee": {"id": 893}, "organization": {"id": 931}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 396, "owner": {"id": 467}, "assignee": {"id": 20}, "organization": {"id": 136}, "project": {"owner": {"id": 750}, "assignee": {"id": 862}, "organization": {"id": 905}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 303, "owner": {"id": 429}, "assignee": {"id": 34}, "organization": {"id": 698}, "project": {"owner": {"id": 788}, "assignee": {"id": 831}, "organization": {"id": 904}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 483}, "assignee": {"id": 9}, "organization": {"id": 109}, "project": {"owner": {"id": 794}, "assignee": {"id": 834}, "organization": {"id": 910}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 392, "owner": {"id": 490}, "assignee": {"id": 95}, "organization": {"id": 693}, "project": {"owner": {"id": 753}, "assignee": {"id": 802}, "organization": {"id": 901}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 319, "owner": {"id": 412}, "assignee": {"id": 594}, "organization": {"id": 141}, "project": {"owner": {"id": 750}, "assignee": {"id": 824}, "organization": {"id": 977}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 365, "owner": {"id": 495}, "assignee": {"id": 502}, "organization": {"id": 638}, "project": {"owner": {"id": 735}, "assignee": {"id": 858}, "organization": {"id": 925}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "owner": {"id": 460}, "assignee": {"id": 548}, "organization": {"id": 171}, "project": {"owner": {"id": 754}, "assignee": {"id": 811}, "organization": {"id": 928}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 436}, "assignee": {"id": 589}, "organization": {"id": 668}, "project": {"owner": {"id": 764}, "assignee": {"id": 831}, "organization": {"id": 948}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "owner": {"id": 447}, "assignee": {"id": 597}, "organization": {"id": 173}, "project": {"owner": {"id": 791}, "assignee": {"id": 813}, "organization": {"id": 957}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "owner": {"id": 498}, "assignee": {"id": 529}, "organization": {"id": 657}, "project": {"owner": {"id": 747}, "assignee": {"id": 861}, "organization": {"id": 972}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 342, "owner": {"id": 418}, "assignee": {"id": 580}, "organization": {"id": 162}, "project": {"owner": {"id": 712}, "assignee": {"id": 871}, "organization": {"id": 921}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 410}, "assignee": {"id": 518}, "organization": {"id": 651}, "project": {"owner": {"id": 778}, "assignee": {"id": 860}, "organization": {"id": 966}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 329, "owner": {"id": 407}, "assignee": {"id": 598}, "organization": {"id": 143}, "project": {"owner": {"id": 732}, "assignee": {"id": 852}, "organization": {"id": 939}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 304, "owner": {"id": 441}, "assignee": {"id": 588}, "organization": {"id": 672}, "project": {"owner": {"id": 776}, "assignee": {"id": 852}, "organization": {"id": 900}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 396, "owner": {"id": 471}, "assignee": {"id": 562}, "organization": {"id": 141}, "project": {"owner": {"id": 763}, "assignee": {"id": 840}, "organization": {"id": 983}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 390, "owner": {"id": 461}, "assignee": {"id": 565}, "organization": {"id": 671}, "project": {"owner": {"id": 794}, "assignee": {"id": 893}, "organization": {"id": 910}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 448}, "assignee": {"id": 516}, "organization": {"id": 115}, "project": {"owner": {"id": 701}, "assignee": {"id": 820}, "organization": {"id": 966}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "owner": {"id": 456}, "assignee": {"id": 514}, "organization": {"id": 604}, "project": {"owner": {"id": 754}, "assignee": {"id": 863}, "organization": {"id": 921}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "owner": {"id": 495}, "assignee": {"id": 570}, "organization": {"id": 155}, "project": {"owner": {"id": 751}, "assignee": {"id": 801}, "organization": {"id": 937}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 486}, "assignee": {"id": 534}, "organization": {"id": 666}, "project": {"owner": {"id": 741}, "assignee": {"id": 878}, "organization": {"id": 947}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 318, "owner": {"id": 437}, "assignee": {"id": 566}, "organization": {"id": 166}, "project": {"owner": {"id": 726}, "assignee": {"id": 878}, "organization": {"id": 991}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 332, "owner": {"id": 460}, "assignee": {"id": 559}, "organization": {"id": 626}, "project": {"owner": {"id": 742}, "assignee": {"id": 895}, "organization": {"id": 992}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 391, "owner": {"id": 460}, "assignee": {"id": 501}, "organization": {"id": 108}, "project": {"owner": {"id": 753}, "assignee": {"id": 822}, "organization": {"id": 919}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 489}, "assignee": {"id": 524}, "organization": {"id": 625}, "project": {"owner": {"id": 788}, "assignee": {"id": 812}, "organization": {"id": 968}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 307, "owner": {"id": 479}, "assignee": {"id": 559}, "organization": {"id": 171}, "project": {"owner": {"id": 720}, "assignee": {"id": 808}, "organization": {"id": 944}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 480}, "assignee": {"id": 501}, "organization": {"id": 624}, "project": {"owner": {"id": 735}, "assignee": {"id": 836}, "organization": {"id": 954}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "owner": {"id": 479}, "assignee": {"id": 598}, "organization": {"id": 184}, "project": {"owner": {"id": 732}, "assignee": {"id": 871}, "organization": {"id": 969}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 475}, "assignee": {"id": 519}, "organization": {"id": 613}, "project": {"owner": {"id": 793}, "assignee": {"id": 827}, "organization": {"id": 935}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 416}, "assignee": {"id": 566}, "organization": {"id": 173}, "project": {"owner": {"id": 782}, "assignee": {"id": 898}, "organization": {"id": 949}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "owner": {"id": 477}, "assignee": {"id": 535}, "organization": {"id": 694}, "project": {"owner": {"id": 778}, "assignee": {"id": 885}, "organization": {"id": 960}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 329, "owner": {"id": 427}, "assignee": {"id": 511}, "organization": {"id": 100}, "project": {"owner": {"id": 718}, "assignee": {"id": 818}, "organization": {"id": 921}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 309, "owner": {"id": 406}, "assignee": {"id": 517}, "organization": {"id": 665}, "project": {"owner": {"id": 756}, "assignee": {"id": 854}, "organization": {"id": 985}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 497}, "assignee": {"id": 515}, "organization": {"id": 149}, "project": {"owner": {"id": 771}, "assignee": {"id": 850}, "organization": {"id": 948}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 360, "owner": {"id": 445}, "assignee": {"id": 539}, "organization": {"id": 666}, "project": {"owner": {"id": 740}, "assignee": {"id": 867}, "organization": {"id": 910}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 381, "owner": {"id": 435}, "assignee": {"id": 591}, "organization": {"id": 188}, "project": {"owner": {"id": 755}, "assignee": {"id": 871}, "organization": {"id": 956}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 387, "owner": {"id": 415}, "assignee": {"id": 571}, "organization": {"id": 655}, "project": {"owner": {"id": 783}, "assignee": {"id": 844}, "organization": {"id": 922}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "owner": {"id": 485}, "assignee": {"id": 544}, "organization": {"id": 124}, "project": {"owner": {"id": 754}, "assignee": {"id": 827}, "organization": {"id": 978}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 67, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "owner": {"id": 422}, "assignee": {"id": 595}, "organization": {"id": 601}, "project": {"owner": {"id": 725}, "assignee": {"id": 856}, "organization": {"id": 946}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "owner": {"id": 439}, "assignee": {"id": 542}, "organization": {"id": 177}, "project": {"owner": {"id": 747}, "assignee": {"id": 832}, "organization": {"id": 964}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "owner": {"id": 482}, "assignee": {"id": 535}, "organization": {"id": 682}, "project": {"owner": {"id": 761}, "assignee": {"id": 850}, "organization": {"id": 905}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 480}, "assignee": {"id": 507}, "organization": {"id": 180}, "project": {"owner": {"id": 703}, "assignee": {"id": 891}, "organization": {"id": 960}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 422}, "assignee": {"id": 560}, "organization": {"id": 695}, "project": {"owner": {"id": 782}, "assignee": {"id": 896}, "organization": {"id": 969}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 303, "owner": {"id": 478}, "assignee": {"id": 591}, "organization": {"id": 110}, "project": {"owner": {"id": 790}, "assignee": {"id": 894}, "organization": {"id": 922}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 315, "owner": {"id": 407}, "assignee": {"id": 556}, "organization": {"id": 681}, "project": {"owner": {"id": 790}, "assignee": {"id": 807}, "organization": {"id": 940}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 324, "owner": {"id": 483}, "assignee": {"id": 578}, "organization": {"id": 190}, "project": {"owner": {"id": 702}, "assignee": {"id": 842}, "organization": {"id": 986}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 375, "owner": {"id": 492}, "assignee": {"id": 546}, "organization": {"id": 666}, "project": {"owner": {"id": 701}, "assignee": {"id": 885}, "organization": {"id": 951}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 408}, "assignee": {"id": 524}, "organization": {"id": 110}, "project": {"owner": {"id": 764}, "assignee": {"id": 818}, "organization": {"id": 993}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "owner": {"id": 405}, "assignee": {"id": 535}, "organization": {"id": 677}, "project": {"owner": {"id": 725}, "assignee": {"id": 888}, "organization": {"id": 964}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "owner": {"id": 400}, "assignee": {"id": 539}, "organization": {"id": 159}, "project": {"owner": {"id": 771}, "assignee": {"id": 844}, "organization": {"id": 915}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "owner": {"id": 411}, "assignee": {"id": 572}, "organization": {"id": 659}, "project": {"owner": {"id": 711}, "assignee": {"id": 814}, "organization": {"id": 911}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 323, "owner": {"id": 440}, "assignee": {"id": 575}, "organization": {"id": 127}, "project": {"owner": {"id": 702}, "assignee": {"id": 898}, "organization": {"id": 921}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 347, "owner": {"id": 458}, "assignee": {"id": 510}, "organization": {"id": 692}, "project": {"owner": {"id": 731}, "assignee": {"id": 839}, "organization": {"id": 987}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 494}, "assignee": {"id": 516}, "organization": {"id": 122}, "project": {"owner": {"id": 706}, "assignee": {"id": 848}, "organization": {"id": 990}}}} -} - -test_scope_VIEW_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:annotations", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 317, "owner": {"id": 472}, "assignee": {"id": 540}, "organization": {"id": 652}, "project": {"owner": {"id": 728}, "assignee": {"id": 824}, "organization": {"id": 934}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": null}, "resource": {"id": 347, "owner": {"id": 472}, "assignee": {"id": 548}, "organization": {"id": 684}, "project": {"owner": {"id": 89}, "assignee": {"id": 804}, "organization": {"id": 941}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": null}, "resource": {"id": 317, "owner": {"id": 416}, "assignee": {"id": 584}, "organization": {"id": 642}, "project": {"owner": {"id": 98}, "assignee": {"id": 811}, "organization": {"id": 939}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": null}, "resource": {"id": 385, "owner": {"id": 494}, "assignee": {"id": 575}, "organization": {"id": 603}, "project": {"owner": {"id": 98}, "assignee": {"id": 877}, "organization": {"id": 922}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": null}, "resource": {"id": 354, "owner": {"id": 498}, "assignee": {"id": 506}, "organization": {"id": 638}, "project": {"owner": {"id": 81}, "assignee": {"id": 833}, "organization": {"id": 994}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": null}, "resource": {"id": 314, "owner": {"id": 445}, "assignee": {"id": 593}, "organization": {"id": 604}, "project": {"owner": {"id": 31}, "assignee": {"id": 894}, "organization": {"id": 950}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": null}, "resource": {"id": 327, "owner": {"id": 497}, "assignee": {"id": 555}, "organization": {"id": 635}, "project": {"owner": {"id": 795}, "assignee": {"id": 23}, "organization": {"id": 999}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": null}, "resource": {"id": 351, "owner": {"id": 404}, "assignee": {"id": 584}, "organization": {"id": 673}, "project": {"owner": {"id": 710}, "assignee": {"id": 71}, "organization": {"id": 962}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": null}, "resource": {"id": 385, "owner": {"id": 487}, "assignee": {"id": 581}, "organization": {"id": 697}, "project": {"owner": {"id": 781}, "assignee": {"id": 68}, "organization": {"id": 964}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": null}, "resource": {"id": 347, "owner": {"id": 492}, "assignee": {"id": 530}, "organization": {"id": 622}, "project": {"owner": {"id": 760}, "assignee": {"id": 41}, "organization": {"id": 925}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": null}, "resource": {"id": 354, "owner": {"id": 415}, "assignee": {"id": 513}, "organization": {"id": 618}, "project": {"owner": {"id": 733}, "assignee": {"id": 96}, "organization": {"id": 974}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": null}, "resource": {"id": 318, "owner": {"id": 3}, "assignee": {"id": 537}, "organization": {"id": 649}, "project": {"owner": {"id": 732}, "assignee": {"id": 881}, "organization": {"id": 929}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": null}, "resource": {"id": 351, "owner": {"id": 70}, "assignee": {"id": 512}, "organization": {"id": 642}, "project": {"owner": {"id": 764}, "assignee": {"id": 808}, "organization": {"id": 934}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": null}, "resource": {"id": 372, "owner": {"id": 99}, "assignee": {"id": 574}, "organization": {"id": 655}, "project": {"owner": {"id": 714}, "assignee": {"id": 892}, "organization": {"id": 956}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": null}, "resource": {"id": 339, "owner": {"id": 13}, "assignee": {"id": 539}, "organization": {"id": 640}, "project": {"owner": {"id": 798}, "assignee": {"id": 867}, "organization": {"id": 960}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": null}, "resource": {"id": 337, "owner": {"id": 71}, "assignee": {"id": 503}, "organization": {"id": 641}, "project": {"owner": {"id": 754}, "assignee": {"id": 848}, "organization": {"id": 941}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": null}, "resource": {"id": 384, "owner": {"id": 433}, "assignee": {"id": 17}, "organization": {"id": 667}, "project": {"owner": {"id": 737}, "assignee": {"id": 888}, "organization": {"id": 902}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": null}, "resource": {"id": 373, "owner": {"id": 459}, "assignee": {"id": 98}, "organization": {"id": 683}, "project": {"owner": {"id": 724}, "assignee": {"id": 896}, "organization": {"id": 909}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": null}, "resource": {"id": 369, "owner": {"id": 444}, "assignee": {"id": 26}, "organization": {"id": 641}, "project": {"owner": {"id": 740}, "assignee": {"id": 829}, "organization": {"id": 984}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": null}, "resource": {"id": 312, "owner": {"id": 445}, "assignee": {"id": 38}, "organization": {"id": 639}, "project": {"owner": {"id": 708}, "assignee": {"id": 855}, "organization": {"id": 983}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": null}, "resource": {"id": 394, "owner": {"id": 418}, "assignee": {"id": 76}, "organization": {"id": 605}, "project": {"owner": {"id": 769}, "assignee": {"id": 848}, "organization": {"id": 997}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": null}, "resource": {"id": 359, "owner": {"id": 485}, "assignee": {"id": 575}, "organization": {"id": 666}, "project": {"owner": {"id": 766}, "assignee": {"id": 873}, "organization": {"id": 934}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": null}, "resource": {"id": 354, "owner": {"id": 482}, "assignee": {"id": 503}, "organization": {"id": 669}, "project": {"owner": {"id": 716}, "assignee": {"id": 812}, "organization": {"id": 929}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": null}, "resource": {"id": 353, "owner": {"id": 460}, "assignee": {"id": 559}, "organization": {"id": 641}, "project": {"owner": {"id": 717}, "assignee": {"id": 892}, "organization": {"id": 938}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": null}, "resource": {"id": 369, "owner": {"id": 495}, "assignee": {"id": 578}, "organization": {"id": 658}, "project": {"owner": {"id": 719}, "assignee": {"id": 809}, "organization": {"id": 996}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": null}, "resource": {"id": 371, "owner": {"id": 477}, "assignee": {"id": 572}, "organization": {"id": 648}, "project": {"owner": {"id": 777}, "assignee": {"id": 866}, "organization": {"id": 985}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 312, "owner": {"id": 415}, "assignee": {"id": 597}, "organization": {"id": 177}, "project": {"owner": {"id": 90}, "assignee": {"id": 874}, "organization": {"id": 986}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 350, "owner": {"id": 491}, "assignee": {"id": 595}, "organization": {"id": 605}, "project": {"owner": {"id": 58}, "assignee": {"id": 882}, "organization": {"id": 956}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "owner": {"id": 451}, "assignee": {"id": 580}, "organization": {"id": 127}, "project": {"owner": {"id": 3}, "assignee": {"id": 855}, "organization": {"id": 985}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 403}, "assignee": {"id": 580}, "organization": {"id": 642}, "project": {"owner": {"id": 3}, "assignee": {"id": 837}, "organization": {"id": 952}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "owner": {"id": 445}, "assignee": {"id": 587}, "organization": {"id": 106}, "project": {"owner": {"id": 57}, "assignee": {"id": 831}, "organization": {"id": 935}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 489}, "assignee": {"id": 581}, "organization": {"id": 633}, "project": {"owner": {"id": 71}, "assignee": {"id": 820}, "organization": {"id": 926}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 382, "owner": {"id": 441}, "assignee": {"id": 594}, "organization": {"id": 163}, "project": {"owner": {"id": 22}, "assignee": {"id": 844}, "organization": {"id": 999}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 342, "owner": {"id": 445}, "assignee": {"id": 578}, "organization": {"id": 668}, "project": {"owner": {"id": 39}, "assignee": {"id": 829}, "organization": {"id": 940}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 311, "owner": {"id": 481}, "assignee": {"id": 551}, "organization": {"id": 196}, "project": {"owner": {"id": 23}, "assignee": {"id": 863}, "organization": {"id": 981}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"id": 325, "owner": {"id": 433}, "assignee": {"id": 590}, "organization": {"id": 662}, "project": {"owner": {"id": 46}, "assignee": {"id": 843}, "organization": {"id": 956}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 321, "owner": {"id": 441}, "assignee": {"id": 502}, "organization": {"id": 189}, "project": {"owner": {"id": 64}, "assignee": {"id": 874}, "organization": {"id": 939}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 371, "owner": {"id": 437}, "assignee": {"id": 596}, "organization": {"id": 671}, "project": {"owner": {"id": 79}, "assignee": {"id": 822}, "organization": {"id": 950}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "owner": {"id": 411}, "assignee": {"id": 511}, "organization": {"id": 118}, "project": {"owner": {"id": 33}, "assignee": {"id": 884}, "organization": {"id": 951}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 94, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 468}, "assignee": {"id": 545}, "organization": {"id": 650}, "project": {"owner": {"id": 94}, "assignee": {"id": 849}, "organization": {"id": 913}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "owner": {"id": 410}, "assignee": {"id": 541}, "organization": {"id": 119}, "project": {"owner": {"id": 70}, "assignee": {"id": 805}, "organization": {"id": 931}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "owner": {"id": 403}, "assignee": {"id": 563}, "organization": {"id": 628}, "project": {"owner": {"id": 28}, "assignee": {"id": 828}, "organization": {"id": 931}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 327, "owner": {"id": 418}, "assignee": {"id": 501}, "organization": {"id": 156}, "project": {"owner": {"id": 61}, "assignee": {"id": 802}, "organization": {"id": 978}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 371, "owner": {"id": 470}, "assignee": {"id": 572}, "organization": {"id": 624}, "project": {"owner": {"id": 74}, "assignee": {"id": 823}, "organization": {"id": 966}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 373, "owner": {"id": 449}, "assignee": {"id": 595}, "organization": {"id": 147}, "project": {"owner": {"id": 55}, "assignee": {"id": 846}, "organization": {"id": 933}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 330, "owner": {"id": 440}, "assignee": {"id": 569}, "organization": {"id": 645}, "project": {"owner": {"id": 41}, "assignee": {"id": 888}, "organization": {"id": 917}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 368, "owner": {"id": 474}, "assignee": {"id": 516}, "organization": {"id": 140}, "project": {"owner": {"id": 68}, "assignee": {"id": 890}, "organization": {"id": 960}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 377, "owner": {"id": 429}, "assignee": {"id": 592}, "organization": {"id": 644}, "project": {"owner": {"id": 70}, "assignee": {"id": 889}, "organization": {"id": 982}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 473}, "assignee": {"id": 506}, "organization": {"id": 155}, "project": {"owner": {"id": 75}, "assignee": {"id": 856}, "organization": {"id": 963}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 321, "owner": {"id": 402}, "assignee": {"id": 571}, "organization": {"id": 657}, "project": {"owner": {"id": 44}, "assignee": {"id": 883}, "organization": {"id": 907}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 408}, "assignee": {"id": 587}, "organization": {"id": 132}, "project": {"owner": {"id": 72}, "assignee": {"id": 892}, "organization": {"id": 935}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 491}, "assignee": {"id": 576}, "organization": {"id": 662}, "project": {"owner": {"id": 17}, "assignee": {"id": 890}, "organization": {"id": 997}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 384, "owner": {"id": 457}, "assignee": {"id": 539}, "organization": {"id": 129}, "project": {"owner": {"id": 42}, "assignee": {"id": 886}, "organization": {"id": 938}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 365, "owner": {"id": 452}, "assignee": {"id": 518}, "organization": {"id": 698}, "project": {"owner": {"id": 40}, "assignee": {"id": 887}, "organization": {"id": 975}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 491}, "assignee": {"id": 596}, "organization": {"id": 178}, "project": {"owner": {"id": 9}, "assignee": {"id": 815}, "organization": {"id": 999}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 452}, "assignee": {"id": 593}, "organization": {"id": 620}, "project": {"owner": {"id": 76}, "assignee": {"id": 824}, "organization": {"id": 931}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 322, "owner": {"id": 423}, "assignee": {"id": 503}, "organization": {"id": 111}, "project": {"owner": {"id": 42}, "assignee": {"id": 893}, "organization": {"id": 915}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 351, "owner": {"id": 473}, "assignee": {"id": 589}, "organization": {"id": 687}, "project": {"owner": {"id": 89}, "assignee": {"id": 852}, "organization": {"id": 948}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 423}, "assignee": {"id": 512}, "organization": {"id": 132}, "project": {"owner": {"id": 55}, "assignee": {"id": 822}, "organization": {"id": 990}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 423}, "assignee": {"id": 533}, "organization": {"id": 651}, "project": {"owner": {"id": 82}, "assignee": {"id": 829}, "organization": {"id": 944}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 343, "owner": {"id": 457}, "assignee": {"id": 596}, "organization": {"id": 107}, "project": {"owner": {"id": 77}, "assignee": {"id": 832}, "organization": {"id": 902}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 487}, "assignee": {"id": 547}, "organization": {"id": 612}, "project": {"owner": {"id": 1}, "assignee": {"id": 800}, "organization": {"id": 967}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 439}, "assignee": {"id": 503}, "organization": {"id": 124}, "project": {"owner": {"id": 22}, "assignee": {"id": 847}, "organization": {"id": 908}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 379, "owner": {"id": 463}, "assignee": {"id": 523}, "organization": {"id": 668}, "project": {"owner": {"id": 87}, "assignee": {"id": 844}, "organization": {"id": 912}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"id": 347, "owner": {"id": 473}, "assignee": {"id": 522}, "organization": {"id": 119}, "project": {"owner": {"id": 64}, "assignee": {"id": 898}, "organization": {"id": 922}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 303, "owner": {"id": 479}, "assignee": {"id": 504}, "organization": {"id": 668}, "project": {"owner": {"id": 13}, "assignee": {"id": 839}, "organization": {"id": 937}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 323, "owner": {"id": 475}, "assignee": {"id": 566}, "organization": {"id": 119}, "project": {"owner": {"id": 77}, "assignee": {"id": 863}, "organization": {"id": 924}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 343, "owner": {"id": 458}, "assignee": {"id": 584}, "organization": {"id": 670}, "project": {"owner": {"id": 85}, "assignee": {"id": 857}, "organization": {"id": 914}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 431}, "assignee": {"id": 546}, "organization": {"id": 105}, "project": {"owner": {"id": 51}, "assignee": {"id": 862}, "organization": {"id": 924}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 461}, "assignee": {"id": 584}, "organization": {"id": 690}, "project": {"owner": {"id": 66}, "assignee": {"id": 875}, "organization": {"id": 912}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 441}, "assignee": {"id": 567}, "organization": {"id": 150}, "project": {"owner": {"id": 66}, "assignee": {"id": 889}, "organization": {"id": 968}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 369, "owner": {"id": 482}, "assignee": {"id": 525}, "organization": {"id": 636}, "project": {"owner": {"id": 97}, "assignee": {"id": 817}, "organization": {"id": 957}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 380, "owner": {"id": 454}, "assignee": {"id": 551}, "organization": {"id": 162}, "project": {"owner": {"id": 3}, "assignee": {"id": 810}, "organization": {"id": 962}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 341, "owner": {"id": 471}, "assignee": {"id": 561}, "organization": {"id": 678}, "project": {"owner": {"id": 98}, "assignee": {"id": 839}, "organization": {"id": 963}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 387, "owner": {"id": 489}, "assignee": {"id": 507}, "organization": {"id": 175}, "project": {"owner": {"id": 39}, "assignee": {"id": 824}, "organization": {"id": 911}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 373, "owner": {"id": 469}, "assignee": {"id": 522}, "organization": {"id": 682}, "project": {"owner": {"id": 68}, "assignee": {"id": 894}, "organization": {"id": 906}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 449}, "assignee": {"id": 524}, "organization": {"id": 194}, "project": {"owner": {"id": 768}, "assignee": {"id": 55}, "organization": {"id": 987}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 367, "owner": {"id": 422}, "assignee": {"id": 565}, "organization": {"id": 647}, "project": {"owner": {"id": 787}, "assignee": {"id": 27}, "organization": {"id": 905}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 428}, "assignee": {"id": 591}, "organization": {"id": 126}, "project": {"owner": {"id": 709}, "assignee": {"id": 63}, "organization": {"id": 926}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "owner": {"id": 478}, "assignee": {"id": 501}, "organization": {"id": 605}, "project": {"owner": {"id": 748}, "assignee": {"id": 14}, "organization": {"id": 988}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "owner": {"id": 484}, "assignee": {"id": 542}, "organization": {"id": 105}, "project": {"owner": {"id": 749}, "assignee": {"id": 51}, "organization": {"id": 947}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 476}, "assignee": {"id": 531}, "organization": {"id": 679}, "project": {"owner": {"id": 785}, "assignee": {"id": 87}, "organization": {"id": 954}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 380, "owner": {"id": 439}, "assignee": {"id": 526}, "organization": {"id": 101}, "project": {"owner": {"id": 794}, "assignee": {"id": 88}, "organization": {"id": 952}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 448}, "assignee": {"id": 535}, "organization": {"id": 624}, "project": {"owner": {"id": 799}, "assignee": {"id": 76}, "organization": {"id": 932}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 388, "owner": {"id": 450}, "assignee": {"id": 505}, "organization": {"id": 188}, "project": {"owner": {"id": 798}, "assignee": {"id": 84}, "organization": {"id": 916}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 309, "owner": {"id": 481}, "assignee": {"id": 514}, "organization": {"id": 614}, "project": {"owner": {"id": 720}, "assignee": {"id": 23}, "organization": {"id": 908}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 321, "owner": {"id": 494}, "assignee": {"id": 532}, "organization": {"id": 168}, "project": {"owner": {"id": 791}, "assignee": {"id": 36}, "organization": {"id": 950}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 336, "owner": {"id": 472}, "assignee": {"id": 533}, "organization": {"id": 613}, "project": {"owner": {"id": 797}, "assignee": {"id": 25}, "organization": {"id": 950}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 425}, "assignee": {"id": 516}, "organization": {"id": 114}, "project": {"owner": {"id": 704}, "assignee": {"id": 13}, "organization": {"id": 961}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "owner": {"id": 449}, "assignee": {"id": 523}, "organization": {"id": 610}, "project": {"owner": {"id": 797}, "assignee": {"id": 30}, "organization": {"id": 908}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 456}, "assignee": {"id": 594}, "organization": {"id": 184}, "project": {"owner": {"id": 756}, "assignee": {"id": 5}, "organization": {"id": 998}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "owner": {"id": 424}, "assignee": {"id": 598}, "organization": {"id": 626}, "project": {"owner": {"id": 792}, "assignee": {"id": 72}, "organization": {"id": 905}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 343, "owner": {"id": 432}, "assignee": {"id": 522}, "organization": {"id": 150}, "project": {"owner": {"id": 759}, "assignee": {"id": 7}, "organization": {"id": 982}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 319, "owner": {"id": 437}, "assignee": {"id": 564}, "organization": {"id": 608}, "project": {"owner": {"id": 728}, "assignee": {"id": 24}, "organization": {"id": 980}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 392, "owner": {"id": 456}, "assignee": {"id": 503}, "organization": {"id": 136}, "project": {"owner": {"id": 708}, "assignee": {"id": 67}, "organization": {"id": 977}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 320, "owner": {"id": 418}, "assignee": {"id": 570}, "organization": {"id": 640}, "project": {"owner": {"id": 707}, "assignee": {"id": 8}, "organization": {"id": 987}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 368, "owner": {"id": 402}, "assignee": {"id": 579}, "organization": {"id": 104}, "project": {"owner": {"id": 721}, "assignee": {"id": 47}, "organization": {"id": 941}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 313, "owner": {"id": 487}, "assignee": {"id": 529}, "organization": {"id": 600}, "project": {"owner": {"id": 748}, "assignee": {"id": 7}, "organization": {"id": 972}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 372, "owner": {"id": 415}, "assignee": {"id": 528}, "organization": {"id": 109}, "project": {"owner": {"id": 780}, "assignee": {"id": 69}, "organization": {"id": 972}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "owner": {"id": 460}, "assignee": {"id": 573}, "organization": {"id": 682}, "project": {"owner": {"id": 749}, "assignee": {"id": 78}, "organization": {"id": 987}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "owner": {"id": 430}, "assignee": {"id": 587}, "organization": {"id": 158}, "project": {"owner": {"id": 778}, "assignee": {"id": 81}, "organization": {"id": 944}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "owner": {"id": 458}, "assignee": {"id": 568}, "organization": {"id": 646}, "project": {"owner": {"id": 728}, "assignee": {"id": 81}, "organization": {"id": 936}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 432}, "assignee": {"id": 520}, "organization": {"id": 118}, "project": {"owner": {"id": 794}, "assignee": {"id": 38}, "organization": {"id": 955}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 452}, "assignee": {"id": 590}, "organization": {"id": 669}, "project": {"owner": {"id": 729}, "assignee": {"id": 80}, "organization": {"id": 916}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 453}, "assignee": {"id": 553}, "organization": {"id": 159}, "project": {"owner": {"id": 793}, "assignee": {"id": 49}, "organization": {"id": 956}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 441}, "assignee": {"id": 585}, "organization": {"id": 651}, "project": {"owner": {"id": 717}, "assignee": {"id": 26}, "organization": {"id": 967}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 424}, "assignee": {"id": 572}, "organization": {"id": 159}, "project": {"owner": {"id": 793}, "assignee": {"id": 46}, "organization": {"id": 979}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 397, "owner": {"id": 452}, "assignee": {"id": 547}, "organization": {"id": 682}, "project": {"owner": {"id": 739}, "assignee": {"id": 18}, "organization": {"id": 950}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 483}, "assignee": {"id": 557}, "organization": {"id": 125}, "project": {"owner": {"id": 799}, "assignee": {"id": 6}, "organization": {"id": 952}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 470}, "assignee": {"id": 520}, "organization": {"id": 684}, "project": {"owner": {"id": 749}, "assignee": {"id": 23}, "organization": {"id": 955}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "owner": {"id": 426}, "assignee": {"id": 549}, "organization": {"id": 187}, "project": {"owner": {"id": 785}, "assignee": {"id": 95}, "organization": {"id": 934}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "owner": {"id": 419}, "assignee": {"id": 582}, "organization": {"id": 651}, "project": {"owner": {"id": 773}, "assignee": {"id": 52}, "organization": {"id": 919}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 494}, "assignee": {"id": 516}, "organization": {"id": 178}, "project": {"owner": {"id": 762}, "assignee": {"id": 97}, "organization": {"id": 978}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 394, "owner": {"id": 480}, "assignee": {"id": 504}, "organization": {"id": 686}, "project": {"owner": {"id": 712}, "assignee": {"id": 2}, "organization": {"id": 910}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 342, "owner": {"id": 411}, "assignee": {"id": 540}, "organization": {"id": 139}, "project": {"owner": {"id": 725}, "assignee": {"id": 27}, "organization": {"id": 919}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 346, "owner": {"id": 479}, "assignee": {"id": 540}, "organization": {"id": 674}, "project": {"owner": {"id": 757}, "assignee": {"id": 90}, "organization": {"id": 943}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 412}, "assignee": {"id": 571}, "organization": {"id": 168}, "project": {"owner": {"id": 719}, "assignee": {"id": 15}, "organization": {"id": 953}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 352, "owner": {"id": 420}, "assignee": {"id": 571}, "organization": {"id": 670}, "project": {"owner": {"id": 780}, "assignee": {"id": 35}, "organization": {"id": 989}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "owner": {"id": 484}, "assignee": {"id": 518}, "organization": {"id": 148}, "project": {"owner": {"id": 712}, "assignee": {"id": 17}, "organization": {"id": 905}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 461}, "assignee": {"id": 521}, "organization": {"id": 698}, "project": {"owner": {"id": 702}, "assignee": {"id": 46}, "organization": {"id": 988}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "owner": {"id": 423}, "assignee": {"id": 557}, "organization": {"id": 143}, "project": {"owner": {"id": 762}, "assignee": {"id": 44}, "organization": {"id": 972}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 50, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 408}, "assignee": {"id": 522}, "organization": {"id": 617}, "project": {"owner": {"id": 779}, "assignee": {"id": 50}, "organization": {"id": 986}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 425}, "assignee": {"id": 581}, "organization": {"id": 177}, "project": {"owner": {"id": 737}, "assignee": {"id": 45}, "organization": {"id": 910}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 302, "owner": {"id": 479}, "assignee": {"id": 575}, "organization": {"id": 653}, "project": {"owner": {"id": 721}, "assignee": {"id": 24}, "organization": {"id": 932}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 366, "owner": {"id": 403}, "assignee": {"id": 562}, "organization": {"id": 189}, "project": {"owner": {"id": 721}, "assignee": {"id": 30}, "organization": {"id": 983}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 333, "owner": {"id": 457}, "assignee": {"id": 555}, "organization": {"id": 643}, "project": {"owner": {"id": 705}, "assignee": {"id": 97}, "organization": {"id": 995}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 384, "owner": {"id": 1}, "assignee": {"id": 542}, "organization": {"id": 194}, "project": {"owner": {"id": 704}, "assignee": {"id": 816}, "organization": {"id": 979}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 302, "owner": {"id": 4}, "assignee": {"id": 548}, "organization": {"id": 625}, "project": {"owner": {"id": 760}, "assignee": {"id": 848}, "organization": {"id": 949}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 52}, "assignee": {"id": 548}, "organization": {"id": 190}, "project": {"owner": {"id": 746}, "assignee": {"id": 865}, "organization": {"id": 954}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 36, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 36}, "assignee": {"id": 592}, "organization": {"id": 633}, "project": {"owner": {"id": 770}, "assignee": {"id": 824}, "organization": {"id": 962}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "owner": {"id": 2}, "assignee": {"id": 510}, "organization": {"id": 116}, "project": {"owner": {"id": 740}, "assignee": {"id": 865}, "organization": {"id": 914}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 73}, "assignee": {"id": 509}, "organization": {"id": 622}, "project": {"owner": {"id": 747}, "assignee": {"id": 808}, "organization": {"id": 919}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 311, "owner": {"id": 79}, "assignee": {"id": 501}, "organization": {"id": 109}, "project": {"owner": {"id": 701}, "assignee": {"id": 894}, "organization": {"id": 943}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 78}, "assignee": {"id": 558}, "organization": {"id": 680}, "project": {"owner": {"id": 742}, "assignee": {"id": 885}, "organization": {"id": 913}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 390, "owner": {"id": 91}, "assignee": {"id": 525}, "organization": {"id": 111}, "project": {"owner": {"id": 710}, "assignee": {"id": 823}, "organization": {"id": 911}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 355, "owner": {"id": 49}, "assignee": {"id": 529}, "organization": {"id": 626}, "project": {"owner": {"id": 706}, "assignee": {"id": 891}, "organization": {"id": 910}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 367, "owner": {"id": 90}, "assignee": {"id": 560}, "organization": {"id": 123}, "project": {"owner": {"id": 790}, "assignee": {"id": 863}, "organization": {"id": 977}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 336, "owner": {"id": 64}, "assignee": {"id": 586}, "organization": {"id": 675}, "project": {"owner": {"id": 707}, "assignee": {"id": 856}, "organization": {"id": 923}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "owner": {"id": 89}, "assignee": {"id": 533}, "organization": {"id": 115}, "project": {"owner": {"id": 769}, "assignee": {"id": 873}, "organization": {"id": 924}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 20}, "assignee": {"id": 524}, "organization": {"id": 623}, "project": {"owner": {"id": 741}, "assignee": {"id": 896}, "organization": {"id": 929}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "owner": {"id": 27}, "assignee": {"id": 576}, "organization": {"id": 154}, "project": {"owner": {"id": 764}, "assignee": {"id": 881}, "organization": {"id": 936}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "owner": {"id": 32}, "assignee": {"id": 530}, "organization": {"id": 667}, "project": {"owner": {"id": 700}, "assignee": {"id": 883}, "organization": {"id": 987}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 320, "owner": {"id": 7}, "assignee": {"id": 507}, "organization": {"id": 179}, "project": {"owner": {"id": 763}, "assignee": {"id": 844}, "organization": {"id": 993}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 355, "owner": {"id": 95}, "assignee": {"id": 586}, "organization": {"id": 697}, "project": {"owner": {"id": 791}, "assignee": {"id": 857}, "organization": {"id": 901}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 340, "owner": {"id": 86}, "assignee": {"id": 598}, "organization": {"id": 108}, "project": {"owner": {"id": 789}, "assignee": {"id": 887}, "organization": {"id": 977}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 333, "owner": {"id": 47}, "assignee": {"id": 540}, "organization": {"id": 657}, "project": {"owner": {"id": 745}, "assignee": {"id": 895}, "organization": {"id": 961}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 397, "owner": {"id": 75}, "assignee": {"id": 540}, "organization": {"id": 121}, "project": {"owner": {"id": 795}, "assignee": {"id": 824}, "organization": {"id": 929}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 59}, "assignee": {"id": 552}, "organization": {"id": 659}, "project": {"owner": {"id": 759}, "assignee": {"id": 841}, "organization": {"id": 951}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "owner": {"id": 17}, "assignee": {"id": 594}, "organization": {"id": 140}, "project": {"owner": {"id": 749}, "assignee": {"id": 853}, "organization": {"id": 903}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 22}, "assignee": {"id": 551}, "organization": {"id": 646}, "project": {"owner": {"id": 701}, "assignee": {"id": 855}, "organization": {"id": 984}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 34}, "assignee": {"id": 512}, "organization": {"id": 143}, "project": {"owner": {"id": 750}, "assignee": {"id": 860}, "organization": {"id": 919}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 29}, "assignee": {"id": 550}, "organization": {"id": 620}, "project": {"owner": {"id": 738}, "assignee": {"id": 870}, "organization": {"id": 935}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 377, "owner": {"id": 85}, "assignee": {"id": 563}, "organization": {"id": 107}, "project": {"owner": {"id": 755}, "assignee": {"id": 820}, "organization": {"id": 962}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 18}, "assignee": {"id": 541}, "organization": {"id": 690}, "project": {"owner": {"id": 761}, "assignee": {"id": 877}, "organization": {"id": 937}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 363, "owner": {"id": 20}, "assignee": {"id": 553}, "organization": {"id": 143}, "project": {"owner": {"id": 701}, "assignee": {"id": 839}, "organization": {"id": 980}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 16}, "assignee": {"id": 579}, "organization": {"id": 654}, "project": {"owner": {"id": 778}, "assignee": {"id": 815}, "organization": {"id": 976}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 343, "owner": {"id": 60}, "assignee": {"id": 547}, "organization": {"id": 108}, "project": {"owner": {"id": 716}, "assignee": {"id": 847}, "organization": {"id": 972}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 29, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 357, "owner": {"id": 29}, "assignee": {"id": 553}, "organization": {"id": 631}, "project": {"owner": {"id": 726}, "assignee": {"id": 841}, "organization": {"id": 988}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 24, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 24}, "assignee": {"id": 571}, "organization": {"id": 116}, "project": {"owner": {"id": 773}, "assignee": {"id": 842}, "organization": {"id": 989}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 31}, "assignee": {"id": 529}, "organization": {"id": 690}, "project": {"owner": {"id": 775}, "assignee": {"id": 878}, "organization": {"id": 930}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 18}, "assignee": {"id": 540}, "organization": {"id": 179}, "project": {"owner": {"id": 712}, "assignee": {"id": 849}, "organization": {"id": 996}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "owner": {"id": 8}, "assignee": {"id": 562}, "organization": {"id": 659}, "project": {"owner": {"id": 777}, "assignee": {"id": 893}, "organization": {"id": 934}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 99}, "assignee": {"id": 598}, "organization": {"id": 107}, "project": {"owner": {"id": 791}, "assignee": {"id": 818}, "organization": {"id": 946}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 61}, "assignee": {"id": 581}, "organization": {"id": 600}, "project": {"owner": {"id": 741}, "assignee": {"id": 845}, "organization": {"id": 979}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 334, "owner": {"id": 82}, "assignee": {"id": 562}, "organization": {"id": 124}, "project": {"owner": {"id": 777}, "assignee": {"id": 868}, "organization": {"id": 925}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 67, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 377, "owner": {"id": 67}, "assignee": {"id": 537}, "organization": {"id": 693}, "project": {"owner": {"id": 707}, "assignee": {"id": 894}, "organization": {"id": 924}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 331, "owner": {"id": 26}, "assignee": {"id": 554}, "organization": {"id": 118}, "project": {"owner": {"id": 701}, "assignee": {"id": 838}, "organization": {"id": 933}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 47}, "assignee": {"id": 583}, "organization": {"id": 682}, "project": {"owner": {"id": 797}, "assignee": {"id": 853}, "organization": {"id": 910}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "owner": {"id": 56}, "assignee": {"id": 580}, "organization": {"id": 197}, "project": {"owner": {"id": 771}, "assignee": {"id": 820}, "organization": {"id": 976}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 58}, "assignee": {"id": 558}, "organization": {"id": 635}, "project": {"owner": {"id": 725}, "assignee": {"id": 890}, "organization": {"id": 977}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "owner": {"id": 70}, "assignee": {"id": 541}, "organization": {"id": 161}, "project": {"owner": {"id": 715}, "assignee": {"id": 806}, "organization": {"id": 941}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 55}, "assignee": {"id": 592}, "organization": {"id": 648}, "project": {"owner": {"id": 770}, "assignee": {"id": 803}, "organization": {"id": 980}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 36}, "assignee": {"id": 541}, "organization": {"id": 141}, "project": {"owner": {"id": 797}, "assignee": {"id": 804}, "organization": {"id": 982}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 396, "owner": {"id": 91}, "assignee": {"id": 505}, "organization": {"id": 665}, "project": {"owner": {"id": 707}, "assignee": {"id": 892}, "organization": {"id": 991}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 308, "owner": {"id": 91}, "assignee": {"id": 517}, "organization": {"id": 130}, "project": {"owner": {"id": 713}, "assignee": {"id": 866}, "organization": {"id": 920}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 96}, "assignee": {"id": 545}, "organization": {"id": 643}, "project": {"owner": {"id": 710}, "assignee": {"id": 852}, "organization": {"id": 943}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 351, "owner": {"id": 469}, "assignee": {"id": 88}, "organization": {"id": 119}, "project": {"owner": {"id": 753}, "assignee": {"id": 882}, "organization": {"id": 950}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 311, "owner": {"id": 426}, "assignee": {"id": 29}, "organization": {"id": 620}, "project": {"owner": {"id": 714}, "assignee": {"id": 897}, "organization": {"id": 933}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 487}, "assignee": {"id": 28}, "organization": {"id": 161}, "project": {"owner": {"id": 706}, "assignee": {"id": 882}, "organization": {"id": 989}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 428}, "assignee": {"id": 40}, "organization": {"id": 629}, "project": {"owner": {"id": 719}, "assignee": {"id": 817}, "organization": {"id": 964}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "owner": {"id": 481}, "assignee": {"id": 37}, "organization": {"id": 163}, "project": {"owner": {"id": 702}, "assignee": {"id": 865}, "organization": {"id": 997}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "owner": {"id": 491}, "assignee": {"id": 25}, "organization": {"id": 653}, "project": {"owner": {"id": 770}, "assignee": {"id": 808}, "organization": {"id": 905}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 326, "owner": {"id": 429}, "assignee": {"id": 10}, "organization": {"id": 174}, "project": {"owner": {"id": 700}, "assignee": {"id": 844}, "organization": {"id": 989}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 365, "owner": {"id": 421}, "assignee": {"id": 80}, "organization": {"id": 627}, "project": {"owner": {"id": 719}, "assignee": {"id": 868}, "organization": {"id": 900}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 336, "owner": {"id": 434}, "assignee": {"id": 25}, "organization": {"id": 196}, "project": {"owner": {"id": 765}, "assignee": {"id": 849}, "organization": {"id": 920}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 332, "owner": {"id": 442}, "assignee": {"id": 83}, "organization": {"id": 641}, "project": {"owner": {"id": 733}, "assignee": {"id": 850}, "organization": {"id": 915}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 457}, "assignee": {"id": 51}, "organization": {"id": 126}, "project": {"owner": {"id": 785}, "assignee": {"id": 865}, "organization": {"id": 998}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 314, "owner": {"id": 405}, "assignee": {"id": 97}, "organization": {"id": 613}, "project": {"owner": {"id": 795}, "assignee": {"id": 826}, "organization": {"id": 925}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 438}, "assignee": {"id": 46}, "organization": {"id": 159}, "project": {"owner": {"id": 727}, "assignee": {"id": 875}, "organization": {"id": 938}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 480}, "assignee": {"id": 3}, "organization": {"id": 672}, "project": {"owner": {"id": 732}, "assignee": {"id": 827}, "organization": {"id": 965}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "owner": {"id": 423}, "assignee": {"id": 92}, "organization": {"id": 141}, "project": {"owner": {"id": 763}, "assignee": {"id": 892}, "organization": {"id": 949}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "owner": {"id": 477}, "assignee": {"id": 76}, "organization": {"id": 621}, "project": {"owner": {"id": 762}, "assignee": {"id": 861}, "organization": {"id": 971}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 409}, "assignee": {"id": 6}, "organization": {"id": 101}, "project": {"owner": {"id": 700}, "assignee": {"id": 803}, "organization": {"id": 979}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 300, "owner": {"id": 438}, "assignee": {"id": 12}, "organization": {"id": 648}, "project": {"owner": {"id": 793}, "assignee": {"id": 872}, "organization": {"id": 920}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 327, "owner": {"id": 482}, "assignee": {"id": 35}, "organization": {"id": 153}, "project": {"owner": {"id": 794}, "assignee": {"id": 847}, "organization": {"id": 909}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 302, "owner": {"id": 438}, "assignee": {"id": 33}, "organization": {"id": 604}, "project": {"owner": {"id": 715}, "assignee": {"id": 838}, "organization": {"id": 918}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 315, "owner": {"id": 481}, "assignee": {"id": 1}, "organization": {"id": 114}, "project": {"owner": {"id": 703}, "assignee": {"id": 860}, "organization": {"id": 922}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 392, "owner": {"id": 430}, "assignee": {"id": 34}, "organization": {"id": 674}, "project": {"owner": {"id": 788}, "assignee": {"id": 871}, "organization": {"id": 934}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 372, "owner": {"id": 461}, "assignee": {"id": 8}, "organization": {"id": 150}, "project": {"owner": {"id": 788}, "assignee": {"id": 819}, "organization": {"id": 927}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 403}, "assignee": {"id": 22}, "organization": {"id": 663}, "project": {"owner": {"id": 755}, "assignee": {"id": 859}, "organization": {"id": 952}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "owner": {"id": 484}, "assignee": {"id": 92}, "organization": {"id": 161}, "project": {"owner": {"id": 735}, "assignee": {"id": 890}, "organization": {"id": 936}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 403}, "assignee": {"id": 57}, "organization": {"id": 634}, "project": {"owner": {"id": 724}, "assignee": {"id": 830}, "organization": {"id": 988}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 305, "owner": {"id": 472}, "assignee": {"id": 91}, "organization": {"id": 195}, "project": {"owner": {"id": 789}, "assignee": {"id": 862}, "organization": {"id": 929}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 336, "owner": {"id": 446}, "assignee": {"id": 69}, "organization": {"id": 676}, "project": {"owner": {"id": 747}, "assignee": {"id": 858}, "organization": {"id": 960}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"id": 384, "owner": {"id": 447}, "assignee": {"id": 94}, "organization": {"id": 181}, "project": {"owner": {"id": 769}, "assignee": {"id": 818}, "organization": {"id": 941}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 352, "owner": {"id": 422}, "assignee": {"id": 98}, "organization": {"id": 651}, "project": {"owner": {"id": 747}, "assignee": {"id": 859}, "organization": {"id": 944}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 386, "owner": {"id": 496}, "assignee": {"id": 55}, "organization": {"id": 111}, "project": {"owner": {"id": 769}, "assignee": {"id": 852}, "organization": {"id": 946}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 417}, "assignee": {"id": 96}, "organization": {"id": 645}, "project": {"owner": {"id": 782}, "assignee": {"id": 859}, "organization": {"id": 957}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 321, "owner": {"id": 405}, "assignee": {"id": 43}, "organization": {"id": 169}, "project": {"owner": {"id": 780}, "assignee": {"id": 818}, "organization": {"id": 976}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 420}, "assignee": {"id": 10}, "organization": {"id": 617}, "project": {"owner": {"id": 726}, "assignee": {"id": 888}, "organization": {"id": 950}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 469}, "assignee": {"id": 32}, "organization": {"id": 170}, "project": {"owner": {"id": 713}, "assignee": {"id": 873}, "organization": {"id": 900}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "owner": {"id": 494}, "assignee": {"id": 14}, "organization": {"id": 687}, "project": {"owner": {"id": 790}, "assignee": {"id": 842}, "organization": {"id": 962}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 347, "owner": {"id": 470}, "assignee": {"id": 73}, "organization": {"id": 144}, "project": {"owner": {"id": 784}, "assignee": {"id": 850}, "organization": {"id": 928}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 488}, "assignee": {"id": 58}, "organization": {"id": 613}, "project": {"owner": {"id": 728}, "assignee": {"id": 881}, "organization": {"id": 982}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 424}, "assignee": {"id": 18}, "organization": {"id": 109}, "project": {"owner": {"id": 764}, "assignee": {"id": 813}, "organization": {"id": 963}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 430}, "assignee": {"id": 81}, "organization": {"id": 651}, "project": {"owner": {"id": 738}, "assignee": {"id": 826}, "organization": {"id": 969}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 402}, "assignee": {"id": 99}, "organization": {"id": 187}, "project": {"owner": {"id": 715}, "assignee": {"id": 826}, "organization": {"id": 923}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 308, "owner": {"id": 432}, "assignee": {"id": 51}, "organization": {"id": 615}, "project": {"owner": {"id": 754}, "assignee": {"id": 845}, "organization": {"id": 984}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "owner": {"id": 438}, "assignee": {"id": 54}, "organization": {"id": 179}, "project": {"owner": {"id": 747}, "assignee": {"id": 826}, "organization": {"id": 938}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 481}, "assignee": {"id": 4}, "organization": {"id": 675}, "project": {"owner": {"id": 705}, "assignee": {"id": 886}, "organization": {"id": 962}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "owner": {"id": 403}, "assignee": {"id": 68}, "organization": {"id": 198}, "project": {"owner": {"id": 760}, "assignee": {"id": 849}, "organization": {"id": 996}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "owner": {"id": 488}, "assignee": {"id": 3}, "organization": {"id": 679}, "project": {"owner": {"id": 744}, "assignee": {"id": 887}, "organization": {"id": 962}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 497}, "assignee": {"id": 10}, "organization": {"id": 131}, "project": {"owner": {"id": 732}, "assignee": {"id": 869}, "organization": {"id": 911}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 391, "owner": {"id": 480}, "assignee": {"id": 30}, "organization": {"id": 658}, "project": {"owner": {"id": 748}, "assignee": {"id": 895}, "organization": {"id": 943}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 304, "owner": {"id": 441}, "assignee": {"id": 27}, "organization": {"id": 178}, "project": {"owner": {"id": 799}, "assignee": {"id": 890}, "organization": {"id": 957}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"id": 312, "owner": {"id": 401}, "assignee": {"id": 3}, "organization": {"id": 616}, "project": {"owner": {"id": 775}, "assignee": {"id": 886}, "organization": {"id": 999}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 308, "owner": {"id": 464}, "assignee": {"id": 523}, "organization": {"id": 168}, "project": {"owner": {"id": 735}, "assignee": {"id": 889}, "organization": {"id": 972}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 392, "owner": {"id": 406}, "assignee": {"id": 532}, "organization": {"id": 674}, "project": {"owner": {"id": 715}, "assignee": {"id": 889}, "organization": {"id": 966}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "owner": {"id": 420}, "assignee": {"id": 505}, "organization": {"id": 187}, "project": {"owner": {"id": 776}, "assignee": {"id": 842}, "organization": {"id": 954}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 425}, "assignee": {"id": 561}, "organization": {"id": 662}, "project": {"owner": {"id": 731}, "assignee": {"id": 800}, "organization": {"id": 949}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "owner": {"id": 498}, "assignee": {"id": 548}, "organization": {"id": 187}, "project": {"owner": {"id": 738}, "assignee": {"id": 823}, "organization": {"id": 928}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "owner": {"id": 429}, "assignee": {"id": 591}, "organization": {"id": 656}, "project": {"owner": {"id": 789}, "assignee": {"id": 814}, "organization": {"id": 912}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 394, "owner": {"id": 477}, "assignee": {"id": 572}, "organization": {"id": 155}, "project": {"owner": {"id": 756}, "assignee": {"id": 863}, "organization": {"id": 946}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 390, "owner": {"id": 467}, "assignee": {"id": 588}, "organization": {"id": 647}, "project": {"owner": {"id": 781}, "assignee": {"id": 869}, "organization": {"id": 913}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 455}, "assignee": {"id": 571}, "organization": {"id": 133}, "project": {"owner": {"id": 754}, "assignee": {"id": 808}, "organization": {"id": 908}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 345, "owner": {"id": 460}, "assignee": {"id": 551}, "organization": {"id": 664}, "project": {"owner": {"id": 731}, "assignee": {"id": 817}, "organization": {"id": 915}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 423}, "assignee": {"id": 585}, "organization": {"id": 171}, "project": {"owner": {"id": 757}, "assignee": {"id": 884}, "organization": {"id": 969}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 408}, "assignee": {"id": 584}, "organization": {"id": 623}, "project": {"owner": {"id": 774}, "assignee": {"id": 852}, "organization": {"id": 914}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "owner": {"id": 418}, "assignee": {"id": 538}, "organization": {"id": 147}, "project": {"owner": {"id": 795}, "assignee": {"id": 889}, "organization": {"id": 950}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "owner": {"id": 401}, "assignee": {"id": 514}, "organization": {"id": 667}, "project": {"owner": {"id": 785}, "assignee": {"id": 834}, "organization": {"id": 974}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "owner": {"id": 440}, "assignee": {"id": 531}, "organization": {"id": 161}, "project": {"owner": {"id": 727}, "assignee": {"id": 824}, "organization": {"id": 984}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "owner": {"id": 412}, "assignee": {"id": 522}, "organization": {"id": 649}, "project": {"owner": {"id": 770}, "assignee": {"id": 881}, "organization": {"id": 980}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 416}, "assignee": {"id": 565}, "organization": {"id": 109}, "project": {"owner": {"id": 797}, "assignee": {"id": 808}, "organization": {"id": 961}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 321, "owner": {"id": 431}, "assignee": {"id": 580}, "organization": {"id": 696}, "project": {"owner": {"id": 752}, "assignee": {"id": 880}, "organization": {"id": 946}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 496}, "assignee": {"id": 555}, "organization": {"id": 124}, "project": {"owner": {"id": 741}, "assignee": {"id": 899}, "organization": {"id": 950}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 392, "owner": {"id": 447}, "assignee": {"id": 550}, "organization": {"id": 657}, "project": {"owner": {"id": 777}, "assignee": {"id": 828}, "organization": {"id": 995}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 365, "owner": {"id": 452}, "assignee": {"id": 582}, "organization": {"id": 166}, "project": {"owner": {"id": 781}, "assignee": {"id": 820}, "organization": {"id": 930}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"id": 363, "owner": {"id": 498}, "assignee": {"id": 509}, "organization": {"id": 655}, "project": {"owner": {"id": 776}, "assignee": {"id": 803}, "organization": {"id": 953}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "owner": {"id": 499}, "assignee": {"id": 518}, "organization": {"id": 150}, "project": {"owner": {"id": 782}, "assignee": {"id": 805}, "organization": {"id": 947}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 483}, "assignee": {"id": 543}, "organization": {"id": 638}, "project": {"owner": {"id": 768}, "assignee": {"id": 877}, "organization": {"id": 941}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 449}, "assignee": {"id": 596}, "organization": {"id": 177}, "project": {"owner": {"id": 775}, "assignee": {"id": 888}, "organization": {"id": 971}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "owner": {"id": 473}, "assignee": {"id": 517}, "organization": {"id": 660}, "project": {"owner": {"id": 743}, "assignee": {"id": 811}, "organization": {"id": 988}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 366, "owner": {"id": 478}, "assignee": {"id": 580}, "organization": {"id": 136}, "project": {"owner": {"id": 732}, "assignee": {"id": 880}, "organization": {"id": 934}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 365, "owner": {"id": 429}, "assignee": {"id": 540}, "organization": {"id": 641}, "project": {"owner": {"id": 730}, "assignee": {"id": 872}, "organization": {"id": 924}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 342, "owner": {"id": 466}, "assignee": {"id": 586}, "organization": {"id": 185}, "project": {"owner": {"id": 735}, "assignee": {"id": 833}, "organization": {"id": 976}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 498}, "assignee": {"id": 578}, "organization": {"id": 617}, "project": {"owner": {"id": 798}, "assignee": {"id": 888}, "organization": {"id": 937}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 491}, "assignee": {"id": 569}, "organization": {"id": 166}, "project": {"owner": {"id": 741}, "assignee": {"id": 826}, "organization": {"id": 959}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 315, "owner": {"id": 492}, "assignee": {"id": 592}, "organization": {"id": 637}, "project": {"owner": {"id": 781}, "assignee": {"id": 831}, "organization": {"id": 926}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 482}, "assignee": {"id": 563}, "organization": {"id": 134}, "project": {"owner": {"id": 731}, "assignee": {"id": 850}, "organization": {"id": 961}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 358, "owner": {"id": 468}, "assignee": {"id": 543}, "organization": {"id": 618}, "project": {"owner": {"id": 732}, "assignee": {"id": 877}, "organization": {"id": 909}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "owner": {"id": 450}, "assignee": {"id": 500}, "organization": {"id": 170}, "project": {"owner": {"id": 724}, "assignee": {"id": 832}, "organization": {"id": 963}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "owner": {"id": 465}, "assignee": {"id": 572}, "organization": {"id": 653}, "project": {"owner": {"id": 725}, "assignee": {"id": 834}, "organization": {"id": 906}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 413}, "assignee": {"id": 560}, "organization": {"id": 123}, "project": {"owner": {"id": 749}, "assignee": {"id": 840}, "organization": {"id": 915}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 346, "owner": {"id": 497}, "assignee": {"id": 506}, "organization": {"id": 605}, "project": {"owner": {"id": 708}, "assignee": {"id": 835}, "organization": {"id": 913}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 316, "owner": {"id": 412}, "assignee": {"id": 595}, "organization": {"id": 172}, "project": {"owner": {"id": 754}, "assignee": {"id": 826}, "organization": {"id": 905}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 301, "owner": {"id": 414}, "assignee": {"id": 543}, "organization": {"id": 679}, "project": {"owner": {"id": 792}, "assignee": {"id": 835}, "organization": {"id": 936}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 328, "owner": {"id": 479}, "assignee": {"id": 577}, "organization": {"id": 130}, "project": {"owner": {"id": 796}, "assignee": {"id": 834}, "organization": {"id": 970}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 302, "owner": {"id": 470}, "assignee": {"id": 574}, "organization": {"id": 640}, "project": {"owner": {"id": 797}, "assignee": {"id": 828}, "organization": {"id": 921}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 402}, "assignee": {"id": 520}, "organization": {"id": 162}, "project": {"owner": {"id": 773}, "assignee": {"id": 894}, "organization": {"id": 978}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "owner": {"id": 431}, "assignee": {"id": 552}, "organization": {"id": 628}, "project": {"owner": {"id": 730}, "assignee": {"id": 858}, "organization": {"id": 978}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "owner": {"id": 413}, "assignee": {"id": 500}, "organization": {"id": 176}, "project": {"owner": {"id": 785}, "assignee": {"id": 839}, "organization": {"id": 955}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "owner": {"id": 427}, "assignee": {"id": 529}, "organization": {"id": 612}, "project": {"owner": {"id": 710}, "assignee": {"id": 852}, "organization": {"id": 991}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 394, "owner": {"id": 449}, "assignee": {"id": 578}, "organization": {"id": 134}, "project": {"owner": {"id": 748}, "assignee": {"id": 802}, "organization": {"id": 969}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 462}, "assignee": {"id": 555}, "organization": {"id": 667}, "project": {"owner": {"id": 743}, "assignee": {"id": 841}, "organization": {"id": 902}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 456}, "assignee": {"id": 577}, "organization": {"id": 176}, "project": {"owner": {"id": 747}, "assignee": {"id": 818}, "organization": {"id": 990}}}} -} - -test_scope_UPDATE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:annotations", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 387, "owner": {"id": 448}, "assignee": {"id": 521}, "organization": {"id": 651}, "project": {"owner": {"id": 726}, "assignee": {"id": 827}, "organization": {"id": 940}}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 459}, "assignee": {"id": 595}, "organization": {"id": 630}, "project": {"owner": {"id": 37}, "assignee": {"id": 806}, "organization": {"id": 975}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 494}, "assignee": {"id": 513}, "organization": {"id": 622}, "project": {"owner": {"id": 92}, "assignee": {"id": 865}, "organization": {"id": 940}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 419}, "assignee": {"id": 560}, "organization": {"id": 624}, "project": {"owner": {"id": 51}, "assignee": {"id": 811}, "organization": {"id": 911}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 432}, "assignee": {"id": 524}, "organization": {"id": 671}, "project": {"owner": {"id": 2}, "assignee": {"id": 815}, "organization": {"id": 918}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 478}, "assignee": {"id": 544}, "organization": {"id": 611}, "project": {"owner": {"id": 90}, "assignee": {"id": 842}, "organization": {"id": 923}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 491}, "assignee": {"id": 505}, "organization": {"id": 642}, "project": {"owner": {"id": 18}, "assignee": {"id": 865}, "organization": {"id": 982}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 452}, "assignee": {"id": 542}, "organization": {"id": 648}, "project": {"owner": {"id": 91}, "assignee": {"id": 884}, "organization": {"id": 919}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 475}, "assignee": {"id": 521}, "organization": {"id": 647}, "project": {"owner": {"id": 68}, "assignee": {"id": 884}, "organization": {"id": 984}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 468}, "assignee": {"id": 584}, "organization": {"id": 623}, "project": {"owner": {"id": 0}, "assignee": {"id": 867}, "organization": {"id": 921}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 406}, "assignee": {"id": 510}, "organization": {"id": 681}, "project": {"owner": {"id": 47}, "assignee": {"id": 804}, "organization": {"id": 935}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 67, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 401}, "assignee": {"id": 526}, "organization": {"id": 625}, "project": {"owner": {"id": 67}, "assignee": {"id": 870}, "organization": {"id": 900}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 409}, "assignee": {"id": 542}, "organization": {"id": 628}, "project": {"owner": {"id": 51}, "assignee": {"id": 895}, "organization": {"id": 930}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 483}, "assignee": {"id": 590}, "organization": {"id": 626}, "project": {"owner": {"id": 92}, "assignee": {"id": 839}, "organization": {"id": 928}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 498}, "assignee": {"id": 555}, "organization": {"id": 668}, "project": {"owner": {"id": 0}, "assignee": {"id": 884}, "organization": {"id": 963}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 413}, "assignee": {"id": 543}, "organization": {"id": 652}, "project": {"owner": {"id": 74}, "assignee": {"id": 822}, "organization": {"id": 918}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 409}, "assignee": {"id": 558}, "organization": {"id": 644}, "project": {"owner": {"id": 778}, "assignee": {"id": 73}, "organization": {"id": 903}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 484}, "assignee": {"id": 505}, "organization": {"id": 697}, "project": {"owner": {"id": 713}, "assignee": {"id": 4}, "organization": {"id": 995}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 404}, "assignee": {"id": 549}, "organization": {"id": 658}, "project": {"owner": {"id": 773}, "assignee": {"id": 62}, "organization": {"id": 934}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 457}, "assignee": {"id": 533}, "organization": {"id": 680}, "project": {"owner": {"id": 780}, "assignee": {"id": 12}, "organization": {"id": 948}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 447}, "assignee": {"id": 589}, "organization": {"id": 627}, "project": {"owner": {"id": 723}, "assignee": {"id": 98}, "organization": {"id": 987}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 440}, "assignee": {"id": 535}, "organization": {"id": 636}, "project": {"owner": {"id": 709}, "assignee": {"id": 88}, "organization": {"id": 966}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 414}, "assignee": {"id": 590}, "organization": {"id": 676}, "project": {"owner": {"id": 757}, "assignee": {"id": 74}, "organization": {"id": 906}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 415}, "assignee": {"id": 570}, "organization": {"id": 608}, "project": {"owner": {"id": 794}, "assignee": {"id": 50}, "organization": {"id": 971}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 473}, "assignee": {"id": 512}, "organization": {"id": 624}, "project": {"owner": {"id": 750}, "assignee": {"id": 59}, "organization": {"id": 918}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 481}, "assignee": {"id": 585}, "organization": {"id": 629}, "project": {"owner": {"id": 710}, "assignee": {"id": 92}, "organization": {"id": 997}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 460}, "assignee": {"id": 597}, "organization": {"id": 630}, "project": {"owner": {"id": 705}, "assignee": {"id": 57}, "organization": {"id": 928}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 422}, "assignee": {"id": 533}, "organization": {"id": 674}, "project": {"owner": {"id": 753}, "assignee": {"id": 42}, "organization": {"id": 992}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 427}, "assignee": {"id": 578}, "organization": {"id": 675}, "project": {"owner": {"id": 729}, "assignee": {"id": 51}, "organization": {"id": 935}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 448}, "assignee": {"id": 502}, "organization": {"id": 651}, "project": {"owner": {"id": 790}, "assignee": {"id": 78}, "organization": {"id": 948}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 472}, "assignee": {"id": 533}, "organization": {"id": 690}, "project": {"owner": {"id": 729}, "assignee": {"id": 44}, "organization": {"id": 900}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 418}, "assignee": {"id": 573}, "organization": {"id": 621}, "project": {"owner": {"id": 780}, "assignee": {"id": 832}, "organization": {"id": 981}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 471}, "assignee": {"id": 517}, "organization": {"id": 665}, "project": {"owner": {"id": 759}, "assignee": {"id": 828}, "organization": {"id": 921}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": null}, "resource": {"owner": {"id": 414}, "assignee": {"id": 505}, "organization": {"id": 660}, "project": {"owner": {"id": 787}, "assignee": {"id": 891}, "organization": {"id": 966}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 474}, "assignee": {"id": 552}, "organization": {"id": 688}, "project": {"owner": {"id": 721}, "assignee": {"id": 866}, "organization": {"id": 900}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 475}, "assignee": {"id": 516}, "organization": {"id": 637}, "project": {"owner": {"id": 712}, "assignee": {"id": 815}, "organization": {"id": 945}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": null}, "resource": {"owner": {"id": 400}, "assignee": {"id": 540}, "organization": {"id": 602}, "project": {"owner": {"id": 783}, "assignee": {"id": 878}, "organization": {"id": 952}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 448}, "assignee": {"id": 590}, "organization": {"id": 666}, "project": {"owner": {"id": 776}, "assignee": {"id": 899}, "organization": {"id": 948}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 407}, "assignee": {"id": 500}, "organization": {"id": 665}, "project": {"owner": {"id": 725}, "assignee": {"id": 834}, "organization": {"id": 958}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": null}, "resource": {"owner": {"id": 455}, "assignee": {"id": 587}, "organization": {"id": 695}, "project": {"owner": {"id": 709}, "assignee": {"id": 816}, "organization": {"id": 985}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 407}, "assignee": {"id": 556}, "organization": {"id": 683}, "project": {"owner": {"id": 785}, "assignee": {"id": 812}, "organization": {"id": 987}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 459}, "assignee": {"id": 559}, "organization": {"id": 649}, "project": {"owner": {"id": 712}, "assignee": {"id": 887}, "organization": {"id": 981}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": null}, "resource": {"owner": {"id": 424}, "assignee": {"id": 540}, "organization": {"id": 684}, "project": {"owner": {"id": 703}, "assignee": {"id": 882}, "organization": {"id": 980}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 427}, "assignee": {"id": 529}, "organization": {"id": 682}, "project": {"owner": {"id": 717}, "assignee": {"id": 862}, "organization": {"id": 952}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 424}, "assignee": {"id": 573}, "organization": {"id": 692}, "project": {"owner": {"id": 776}, "assignee": {"id": 807}, "organization": {"id": 933}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": null}, "resource": {"owner": {"id": 486}, "assignee": {"id": 552}, "organization": {"id": 604}, "project": {"owner": {"id": 703}, "assignee": {"id": 866}, "organization": {"id": 922}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 486}, "assignee": {"id": 502}, "organization": {"id": 107}, "project": {"owner": {"id": 4}, "assignee": {"id": 858}, "organization": {"id": 998}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 477}, "assignee": {"id": 504}, "organization": {"id": 126}, "project": {"owner": {"id": 74}, "assignee": {"id": 859}, "organization": {"id": 903}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 492}, "assignee": {"id": 508}, "organization": {"id": 178}, "project": {"owner": {"id": 39}, "assignee": {"id": 813}, "organization": {"id": 922}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 458}, "assignee": {"id": 555}, "organization": {"id": 676}, "project": {"owner": {"id": 75}, "assignee": {"id": 820}, "organization": {"id": 914}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 448}, "assignee": {"id": 523}, "organization": {"id": 693}, "project": {"owner": {"id": 9}, "assignee": {"id": 870}, "organization": {"id": 983}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 424}, "assignee": {"id": 587}, "organization": {"id": 630}, "project": {"owner": {"id": 20}, "assignee": {"id": 887}, "organization": {"id": 929}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 483}, "assignee": {"id": 578}, "organization": {"id": 129}, "project": {"owner": {"id": 65}, "assignee": {"id": 800}, "organization": {"id": 943}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 428}, "assignee": {"id": 503}, "organization": {"id": 156}, "project": {"owner": {"id": 59}, "assignee": {"id": 820}, "organization": {"id": 922}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 453}, "assignee": {"id": 505}, "organization": {"id": 123}, "project": {"owner": {"id": 35}, "assignee": {"id": 816}, "organization": {"id": 918}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 499}, "assignee": {"id": 506}, "organization": {"id": 640}, "project": {"owner": {"id": 19}, "assignee": {"id": 879}, "organization": {"id": 971}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 441}, "assignee": {"id": 562}, "organization": {"id": 694}, "project": {"owner": {"id": 84}, "assignee": {"id": 868}, "organization": {"id": 956}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 421}, "assignee": {"id": 570}, "organization": {"id": 618}, "project": {"owner": {"id": 95}, "assignee": {"id": 851}, "organization": {"id": 924}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 410}, "assignee": {"id": 521}, "organization": {"id": 152}, "project": {"owner": {"id": 62}, "assignee": {"id": 870}, "organization": {"id": 906}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 437}, "assignee": {"id": 533}, "organization": {"id": 153}, "project": {"owner": {"id": 72}, "assignee": {"id": 853}, "organization": {"id": 946}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 464}, "assignee": {"id": 574}, "organization": {"id": 182}, "project": {"owner": {"id": 2}, "assignee": {"id": 894}, "organization": {"id": 934}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 433}, "assignee": {"id": 556}, "organization": {"id": 619}, "project": {"owner": {"id": 70}, "assignee": {"id": 880}, "organization": {"id": 932}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 443}, "assignee": {"id": 522}, "organization": {"id": 646}, "project": {"owner": {"id": 1}, "assignee": {"id": 827}, "organization": {"id": 957}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 470}, "assignee": {"id": 559}, "organization": {"id": 688}, "project": {"owner": {"id": 89}, "assignee": {"id": 860}, "organization": {"id": 963}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 434}, "assignee": {"id": 553}, "organization": {"id": 119}, "project": {"owner": {"id": 39}, "assignee": {"id": 859}, "organization": {"id": 958}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 499}, "assignee": {"id": 506}, "organization": {"id": 107}, "project": {"owner": {"id": 66}, "assignee": {"id": 818}, "organization": {"id": 978}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 465}, "assignee": {"id": 564}, "organization": {"id": 165}, "project": {"owner": {"id": 17}, "assignee": {"id": 819}, "organization": {"id": 969}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 451}, "assignee": {"id": 587}, "organization": {"id": 692}, "project": {"owner": {"id": 66}, "assignee": {"id": 890}, "organization": {"id": 982}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 496}, "assignee": {"id": 548}, "organization": {"id": 632}, "project": {"owner": {"id": 42}, "assignee": {"id": 856}, "organization": {"id": 903}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 400}, "assignee": {"id": 543}, "organization": {"id": 625}, "project": {"owner": {"id": 91}, "assignee": {"id": 809}, "organization": {"id": 982}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"owner": {"id": 465}, "assignee": {"id": 501}, "organization": {"id": 115}, "project": {"owner": {"id": 24}, "assignee": {"id": 888}, "organization": {"id": 982}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"owner": {"id": 451}, "assignee": {"id": 548}, "organization": {"id": 197}, "project": {"owner": {"id": 97}, "assignee": {"id": 873}, "organization": {"id": 947}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"owner": {"id": 481}, "assignee": {"id": 508}, "organization": {"id": 171}, "project": {"owner": {"id": 17}, "assignee": {"id": 874}, "organization": {"id": 967}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"owner": {"id": 446}, "assignee": {"id": 530}, "organization": {"id": 647}, "project": {"owner": {"id": 2}, "assignee": {"id": 887}, "organization": {"id": 934}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"owner": {"id": 410}, "assignee": {"id": 551}, "organization": {"id": 602}, "project": {"owner": {"id": 0}, "assignee": {"id": 873}, "organization": {"id": 977}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"owner": {"id": 410}, "assignee": {"id": 578}, "organization": {"id": 671}, "project": {"owner": {"id": 60}, "assignee": {"id": 833}, "organization": {"id": 971}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 465}, "assignee": {"id": 599}, "organization": {"id": 136}, "project": {"owner": {"id": 7}, "assignee": {"id": 851}, "organization": {"id": 962}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 413}, "assignee": {"id": 546}, "organization": {"id": 154}, "project": {"owner": {"id": 28}, "assignee": {"id": 861}, "organization": {"id": 959}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 483}, "assignee": {"id": 513}, "organization": {"id": 147}, "project": {"owner": {"id": 74}, "assignee": {"id": 860}, "organization": {"id": 936}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 456}, "assignee": {"id": 576}, "organization": {"id": 648}, "project": {"owner": {"id": 6}, "assignee": {"id": 889}, "organization": {"id": 919}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 482}, "assignee": {"id": 537}, "organization": {"id": 652}, "project": {"owner": {"id": 6}, "assignee": {"id": 885}, "organization": {"id": 906}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 441}, "assignee": {"id": 508}, "organization": {"id": 611}, "project": {"owner": {"id": 71}, "assignee": {"id": 873}, "organization": {"id": 900}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 403}, "assignee": {"id": 592}, "organization": {"id": 179}, "project": {"owner": {"id": 87}, "assignee": {"id": 847}, "organization": {"id": 906}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 419}, "assignee": {"id": 544}, "organization": {"id": 110}, "project": {"owner": {"id": 4}, "assignee": {"id": 872}, "organization": {"id": 960}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 420}, "assignee": {"id": 587}, "organization": {"id": 122}, "project": {"owner": {"id": 86}, "assignee": {"id": 829}, "organization": {"id": 990}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 460}, "assignee": {"id": 546}, "organization": {"id": 679}, "project": {"owner": {"id": 76}, "assignee": {"id": 860}, "organization": {"id": 934}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 482}, "assignee": {"id": 558}, "organization": {"id": 686}, "project": {"owner": {"id": 95}, "assignee": {"id": 883}, "organization": {"id": 984}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 442}, "assignee": {"id": 581}, "organization": {"id": 629}, "project": {"owner": {"id": 97}, "assignee": {"id": 854}, "organization": {"id": 941}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 419}, "assignee": {"id": 549}, "organization": {"id": 199}, "project": {"owner": {"id": 44}, "assignee": {"id": 887}, "organization": {"id": 978}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 497}, "assignee": {"id": 594}, "organization": {"id": 156}, "project": {"owner": {"id": 27}, "assignee": {"id": 883}, "organization": {"id": 921}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 407}, "assignee": {"id": 536}, "organization": {"id": 187}, "project": {"owner": {"id": 5}, "assignee": {"id": 836}, "organization": {"id": 914}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 411}, "assignee": {"id": 524}, "organization": {"id": 630}, "project": {"owner": {"id": 48}, "assignee": {"id": 899}, "organization": {"id": 978}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 498}, "assignee": {"id": 529}, "organization": {"id": 656}, "project": {"owner": {"id": 95}, "assignee": {"id": 896}, "organization": {"id": 950}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 494}, "assignee": {"id": 573}, "organization": {"id": 698}, "project": {"owner": {"id": 98}, "assignee": {"id": 877}, "organization": {"id": 957}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 440}, "assignee": {"id": 543}, "organization": {"id": 135}, "project": {"owner": {"id": 10}, "assignee": {"id": 811}, "organization": {"id": 958}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 438}, "assignee": {"id": 576}, "organization": {"id": 178}, "project": {"owner": {"id": 75}, "assignee": {"id": 846}, "organization": {"id": 966}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 438}, "assignee": {"id": 578}, "organization": {"id": 107}, "project": {"owner": {"id": 65}, "assignee": {"id": 866}, "organization": {"id": 965}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 443}, "assignee": {"id": 564}, "organization": {"id": 651}, "project": {"owner": {"id": 55}, "assignee": {"id": 836}, "organization": {"id": 994}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 405}, "assignee": {"id": 586}, "organization": {"id": 645}, "project": {"owner": {"id": 33}, "assignee": {"id": 832}, "organization": {"id": 933}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 31, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 442}, "assignee": {"id": 503}, "organization": {"id": 672}, "project": {"owner": {"id": 31}, "assignee": {"id": 873}, "organization": {"id": 971}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"owner": {"id": 456}, "assignee": {"id": 594}, "organization": {"id": 165}, "project": {"owner": {"id": 54}, "assignee": {"id": 812}, "organization": {"id": 914}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"owner": {"id": 411}, "assignee": {"id": 588}, "organization": {"id": 185}, "project": {"owner": {"id": 70}, "assignee": {"id": 866}, "organization": {"id": 947}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"owner": {"id": 488}, "assignee": {"id": 509}, "organization": {"id": 176}, "project": {"owner": {"id": 41}, "assignee": {"id": 852}, "organization": {"id": 986}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"owner": {"id": 421}, "assignee": {"id": 509}, "organization": {"id": 631}, "project": {"owner": {"id": 88}, "assignee": {"id": 873}, "organization": {"id": 952}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"owner": {"id": 415}, "assignee": {"id": 564}, "organization": {"id": 685}, "project": {"owner": {"id": 97}, "assignee": {"id": 806}, "organization": {"id": 984}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"owner": {"id": 458}, "assignee": {"id": 592}, "organization": {"id": 688}, "project": {"owner": {"id": 18}, "assignee": {"id": 883}, "organization": {"id": 935}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 433}, "assignee": {"id": 519}, "organization": {"id": 178}, "project": {"owner": {"id": 91}, "assignee": {"id": 863}, "organization": {"id": 984}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 417}, "assignee": {"id": 501}, "organization": {"id": 197}, "project": {"owner": {"id": 8}, "assignee": {"id": 837}, "organization": {"id": 969}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 420}, "assignee": {"id": 573}, "organization": {"id": 187}, "project": {"owner": {"id": 60}, "assignee": {"id": 870}, "organization": {"id": 913}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 477}, "assignee": {"id": 593}, "organization": {"id": 669}, "project": {"owner": {"id": 87}, "assignee": {"id": 857}, "organization": {"id": 939}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 449}, "assignee": {"id": 500}, "organization": {"id": 637}, "project": {"owner": {"id": 10}, "assignee": {"id": 874}, "organization": {"id": 931}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 458}, "assignee": {"id": 513}, "organization": {"id": 661}, "project": {"owner": {"id": 10}, "assignee": {"id": 870}, "organization": {"id": 932}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 463}, "assignee": {"id": 543}, "organization": {"id": 169}, "project": {"owner": {"id": 75}, "assignee": {"id": 834}, "organization": {"id": 944}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 418}, "assignee": {"id": 579}, "organization": {"id": 160}, "project": {"owner": {"id": 59}, "assignee": {"id": 857}, "organization": {"id": 954}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 479}, "assignee": {"id": 564}, "organization": {"id": 135}, "project": {"owner": {"id": 37}, "assignee": {"id": 879}, "organization": {"id": 958}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 465}, "assignee": {"id": 533}, "organization": {"id": 657}, "project": {"owner": {"id": 88}, "assignee": {"id": 837}, "organization": {"id": 908}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 430}, "assignee": {"id": 535}, "organization": {"id": 600}, "project": {"owner": {"id": 55}, "assignee": {"id": 878}, "organization": {"id": 917}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 492}, "assignee": {"id": 574}, "organization": {"id": 688}, "project": {"owner": {"id": 58}, "assignee": {"id": 853}, "organization": {"id": 900}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 408}, "assignee": {"id": 589}, "organization": {"id": 154}, "project": {"owner": {"id": 31}, "assignee": {"id": 832}, "organization": {"id": 948}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 431}, "assignee": {"id": 566}, "organization": {"id": 144}, "project": {"owner": {"id": 85}, "assignee": {"id": 814}, "organization": {"id": 919}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 435}, "assignee": {"id": 567}, "organization": {"id": 108}, "project": {"owner": {"id": 15}, "assignee": {"id": 861}, "organization": {"id": 977}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 452}, "assignee": {"id": 570}, "organization": {"id": 651}, "project": {"owner": {"id": 40}, "assignee": {"id": 890}, "organization": {"id": 916}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 489}, "assignee": {"id": 530}, "organization": {"id": 607}, "project": {"owner": {"id": 48}, "assignee": {"id": 803}, "organization": {"id": 984}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 90, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 453}, "assignee": {"id": 542}, "organization": {"id": 678}, "project": {"owner": {"id": 90}, "assignee": {"id": 866}, "organization": {"id": 903}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 481}, "assignee": {"id": 538}, "organization": {"id": 136}, "project": {"owner": {"id": 20}, "assignee": {"id": 806}, "organization": {"id": 927}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 456}, "assignee": {"id": 586}, "organization": {"id": 145}, "project": {"owner": {"id": 58}, "assignee": {"id": 891}, "organization": {"id": 996}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 462}, "assignee": {"id": 508}, "organization": {"id": 108}, "project": {"owner": {"id": 24}, "assignee": {"id": 881}, "organization": {"id": 983}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 416}, "assignee": {"id": 580}, "organization": {"id": 609}, "project": {"owner": {"id": 40}, "assignee": {"id": 869}, "organization": {"id": 989}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 401}, "assignee": {"id": 562}, "organization": {"id": 669}, "project": {"owner": {"id": 44}, "assignee": {"id": 871}, "organization": {"id": 962}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 469}, "assignee": {"id": 597}, "organization": {"id": 606}, "project": {"owner": {"id": 42}, "assignee": {"id": 853}, "organization": {"id": 909}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"owner": {"id": 448}, "assignee": {"id": 529}, "organization": {"id": 121}, "project": {"owner": {"id": 9}, "assignee": {"id": 841}, "organization": {"id": 990}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"owner": {"id": 437}, "assignee": {"id": 510}, "organization": {"id": 190}, "project": {"owner": {"id": 66}, "assignee": {"id": 821}, "organization": {"id": 980}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"owner": {"id": 470}, "assignee": {"id": 587}, "organization": {"id": 155}, "project": {"owner": {"id": 48}, "assignee": {"id": 843}, "organization": {"id": 917}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"owner": {"id": 405}, "assignee": {"id": 540}, "organization": {"id": 678}, "project": {"owner": {"id": 57}, "assignee": {"id": 849}, "organization": {"id": 975}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 19, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"owner": {"id": 491}, "assignee": {"id": 577}, "organization": {"id": 667}, "project": {"owner": {"id": 19}, "assignee": {"id": 839}, "organization": {"id": 922}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"owner": {"id": 468}, "assignee": {"id": 564}, "organization": {"id": 620}, "project": {"owner": {"id": 10}, "assignee": {"id": 868}, "organization": {"id": 936}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 486}, "assignee": {"id": 521}, "organization": {"id": 137}, "project": {"owner": {"id": 55}, "assignee": {"id": 871}, "organization": {"id": 958}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 411}, "assignee": {"id": 593}, "organization": {"id": 195}, "project": {"owner": {"id": 56}, "assignee": {"id": 826}, "organization": {"id": 995}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 420}, "assignee": {"id": 502}, "organization": {"id": 149}, "project": {"owner": {"id": 69}, "assignee": {"id": 848}, "organization": {"id": 966}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 454}, "assignee": {"id": 569}, "organization": {"id": 689}, "project": {"owner": {"id": 64}, "assignee": {"id": 899}, "organization": {"id": 943}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 423}, "assignee": {"id": 560}, "organization": {"id": 618}, "project": {"owner": {"id": 71}, "assignee": {"id": 859}, "organization": {"id": 994}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 448}, "assignee": {"id": 503}, "organization": {"id": 692}, "project": {"owner": {"id": 56}, "assignee": {"id": 819}, "organization": {"id": 900}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 400}, "assignee": {"id": 552}, "organization": {"id": 154}, "project": {"owner": {"id": 43}, "assignee": {"id": 868}, "organization": {"id": 929}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 24, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 428}, "assignee": {"id": 534}, "organization": {"id": 183}, "project": {"owner": {"id": 24}, "assignee": {"id": 844}, "organization": {"id": 996}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 496}, "assignee": {"id": 581}, "organization": {"id": 163}, "project": {"owner": {"id": 57}, "assignee": {"id": 861}, "organization": {"id": 931}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 491}, "assignee": {"id": 598}, "organization": {"id": 604}, "project": {"owner": {"id": 28}, "assignee": {"id": 832}, "organization": {"id": 942}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 427}, "assignee": {"id": 543}, "organization": {"id": 667}, "project": {"owner": {"id": 85}, "assignee": {"id": 890}, "organization": {"id": 974}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 460}, "assignee": {"id": 527}, "organization": {"id": 607}, "project": {"owner": {"id": 70}, "assignee": {"id": 899}, "organization": {"id": 959}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 402}, "assignee": {"id": 539}, "organization": {"id": 128}, "project": {"owner": {"id": 87}, "assignee": {"id": 832}, "organization": {"id": 905}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 497}, "assignee": {"id": 593}, "organization": {"id": 158}, "project": {"owner": {"id": 57}, "assignee": {"id": 843}, "organization": {"id": 943}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 437}, "assignee": {"id": 552}, "organization": {"id": 137}, "project": {"owner": {"id": 4}, "assignee": {"id": 892}, "organization": {"id": 989}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 413}, "assignee": {"id": 553}, "organization": {"id": 661}, "project": {"owner": {"id": 48}, "assignee": {"id": 868}, "organization": {"id": 908}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 446}, "assignee": {"id": 574}, "organization": {"id": 653}, "project": {"owner": {"id": 38}, "assignee": {"id": 836}, "organization": {"id": 951}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 482}, "assignee": {"id": 558}, "organization": {"id": 629}, "project": {"owner": {"id": 85}, "assignee": {"id": 850}, "organization": {"id": 943}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 485}, "assignee": {"id": 555}, "organization": {"id": 159}, "project": {"owner": {"id": 68}, "assignee": {"id": 829}, "organization": {"id": 926}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 423}, "assignee": {"id": 591}, "organization": {"id": 103}, "project": {"owner": {"id": 56}, "assignee": {"id": 809}, "organization": {"id": 988}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 420}, "assignee": {"id": 536}, "organization": {"id": 154}, "project": {"owner": {"id": 84}, "assignee": {"id": 842}, "organization": {"id": 945}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 430}, "assignee": {"id": 586}, "organization": {"id": 678}, "project": {"owner": {"id": 76}, "assignee": {"id": 840}, "organization": {"id": 974}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 475}, "assignee": {"id": 586}, "organization": {"id": 635}, "project": {"owner": {"id": 7}, "assignee": {"id": 853}, "organization": {"id": 935}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 404}, "assignee": {"id": 562}, "organization": {"id": 652}, "project": {"owner": {"id": 91}, "assignee": {"id": 881}, "organization": {"id": 971}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"owner": {"id": 431}, "assignee": {"id": 573}, "organization": {"id": 170}, "project": {"owner": {"id": 54}, "assignee": {"id": 888}, "organization": {"id": 915}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"owner": {"id": 430}, "assignee": {"id": 592}, "organization": {"id": 141}, "project": {"owner": {"id": 6}, "assignee": {"id": 811}, "organization": {"id": 997}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"owner": {"id": 448}, "assignee": {"id": 518}, "organization": {"id": 109}, "project": {"owner": {"id": 99}, "assignee": {"id": 831}, "organization": {"id": 945}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"owner": {"id": 469}, "assignee": {"id": 586}, "organization": {"id": 602}, "project": {"owner": {"id": 62}, "assignee": {"id": 846}, "organization": {"id": 927}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"owner": {"id": 426}, "assignee": {"id": 558}, "organization": {"id": 635}, "project": {"owner": {"id": 98}, "assignee": {"id": 841}, "organization": {"id": 951}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"owner": {"id": 458}, "assignee": {"id": 502}, "organization": {"id": 616}, "project": {"owner": {"id": 40}, "assignee": {"id": 883}, "organization": {"id": 957}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 477}, "assignee": {"id": 555}, "organization": {"id": 103}, "project": {"owner": {"id": 47}, "assignee": {"id": 847}, "organization": {"id": 959}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 489}, "assignee": {"id": 574}, "organization": {"id": 183}, "project": {"owner": {"id": 41}, "assignee": {"id": 845}, "organization": {"id": 963}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 443}, "assignee": {"id": 572}, "organization": {"id": 180}, "project": {"owner": {"id": 88}, "assignee": {"id": 872}, "organization": {"id": 947}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 417}, "assignee": {"id": 572}, "organization": {"id": 690}, "project": {"owner": {"id": 40}, "assignee": {"id": 810}, "organization": {"id": 956}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 414}, "assignee": {"id": 538}, "organization": {"id": 665}, "project": {"owner": {"id": 84}, "assignee": {"id": 836}, "organization": {"id": 909}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 471}, "assignee": {"id": 528}, "organization": {"id": 679}, "project": {"owner": {"id": 7}, "assignee": {"id": 820}, "organization": {"id": 988}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 499}, "assignee": {"id": 567}, "organization": {"id": 147}, "project": {"owner": {"id": 38}, "assignee": {"id": 820}, "organization": {"id": 999}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 497}, "assignee": {"id": 509}, "organization": {"id": 190}, "project": {"owner": {"id": 37}, "assignee": {"id": 840}, "organization": {"id": 912}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 408}, "assignee": {"id": 578}, "organization": {"id": 119}, "project": {"owner": {"id": 40}, "assignee": {"id": 823}, "organization": {"id": 911}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 426}, "assignee": {"id": 505}, "organization": {"id": 685}, "project": {"owner": {"id": 38}, "assignee": {"id": 860}, "organization": {"id": 980}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 449}, "assignee": {"id": 597}, "organization": {"id": 679}, "project": {"owner": {"id": 93}, "assignee": {"id": 859}, "organization": {"id": 925}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 403}, "assignee": {"id": 565}, "organization": {"id": 693}, "project": {"owner": {"id": 30}, "assignee": {"id": 870}, "organization": {"id": 918}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 411}, "assignee": {"id": 521}, "organization": {"id": 111}, "project": {"owner": {"id": 32}, "assignee": {"id": 836}, "organization": {"id": 901}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 494}, "assignee": {"id": 589}, "organization": {"id": 111}, "project": {"owner": {"id": 91}, "assignee": {"id": 825}, "organization": {"id": 998}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 455}, "assignee": {"id": 529}, "organization": {"id": 146}, "project": {"owner": {"id": 4}, "assignee": {"id": 802}, "organization": {"id": 973}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 484}, "assignee": {"id": 521}, "organization": {"id": 645}, "project": {"owner": {"id": 30}, "assignee": {"id": 873}, "organization": {"id": 940}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 474}, "assignee": {"id": 572}, "organization": {"id": 607}, "project": {"owner": {"id": 38}, "assignee": {"id": 803}, "organization": {"id": 936}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 461}, "assignee": {"id": 577}, "organization": {"id": 632}, "project": {"owner": {"id": 11}, "assignee": {"id": 817}, "organization": {"id": 983}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 411}, "assignee": {"id": 514}, "organization": {"id": 155}, "project": {"owner": {"id": 79}, "assignee": {"id": 894}, "organization": {"id": 993}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 429}, "assignee": {"id": 533}, "organization": {"id": 159}, "project": {"owner": {"id": 22}, "assignee": {"id": 846}, "organization": {"id": 960}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 408}, "assignee": {"id": 525}, "organization": {"id": 153}, "project": {"owner": {"id": 69}, "assignee": {"id": 898}, "organization": {"id": 987}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 423}, "assignee": {"id": 563}, "organization": {"id": 630}, "project": {"owner": {"id": 10}, "assignee": {"id": 816}, "organization": {"id": 914}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 498}, "assignee": {"id": 514}, "organization": {"id": 619}, "project": {"owner": {"id": 11}, "assignee": {"id": 898}, "organization": {"id": 921}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 479}, "assignee": {"id": 511}, "organization": {"id": 689}, "project": {"owner": {"id": 39}, "assignee": {"id": 826}, "organization": {"id": 964}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"owner": {"id": 420}, "assignee": {"id": 579}, "organization": {"id": 114}, "project": {"owner": {"id": 24}, "assignee": {"id": 806}, "organization": {"id": 971}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"owner": {"id": 469}, "assignee": {"id": 582}, "organization": {"id": 186}, "project": {"owner": {"id": 13}, "assignee": {"id": 808}, "organization": {"id": 974}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"owner": {"id": 448}, "assignee": {"id": 586}, "organization": {"id": 104}, "project": {"owner": {"id": 75}, "assignee": {"id": 846}, "organization": {"id": 920}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"owner": {"id": 419}, "assignee": {"id": 508}, "organization": {"id": 685}, "project": {"owner": {"id": 51}, "assignee": {"id": 824}, "organization": {"id": 941}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"owner": {"id": 450}, "assignee": {"id": 571}, "organization": {"id": 693}, "project": {"owner": {"id": 38}, "assignee": {"id": 826}, "organization": {"id": 912}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"owner": {"id": 456}, "assignee": {"id": 519}, "organization": {"id": 629}, "project": {"owner": {"id": 8}, "assignee": {"id": 855}, "organization": {"id": 980}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 401}, "assignee": {"id": 583}, "organization": {"id": 126}, "project": {"owner": {"id": 788}, "assignee": {"id": 92}, "organization": {"id": 972}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 411}, "assignee": {"id": 579}, "organization": {"id": 197}, "project": {"owner": {"id": 764}, "assignee": {"id": 2}, "organization": {"id": 961}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 437}, "assignee": {"id": 504}, "organization": {"id": 133}, "project": {"owner": {"id": 703}, "assignee": {"id": 34}, "organization": {"id": 930}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 447}, "assignee": {"id": 555}, "organization": {"id": 603}, "project": {"owner": {"id": 763}, "assignee": {"id": 19}, "organization": {"id": 932}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 466}, "assignee": {"id": 560}, "organization": {"id": 698}, "project": {"owner": {"id": 750}, "assignee": {"id": 83}, "organization": {"id": 907}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 491}, "assignee": {"id": 563}, "organization": {"id": 658}, "project": {"owner": {"id": 744}, "assignee": {"id": 28}, "organization": {"id": 990}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 7, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 496}, "assignee": {"id": 595}, "organization": {"id": 140}, "project": {"owner": {"id": 715}, "assignee": {"id": 7}, "organization": {"id": 903}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 425}, "assignee": {"id": 584}, "organization": {"id": 196}, "project": {"owner": {"id": 782}, "assignee": {"id": 88}, "organization": {"id": 993}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 409}, "assignee": {"id": 511}, "organization": {"id": 124}, "project": {"owner": {"id": 785}, "assignee": {"id": 3}, "organization": {"id": 998}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 473}, "assignee": {"id": 578}, "organization": {"id": 648}, "project": {"owner": {"id": 798}, "assignee": {"id": 50}, "organization": {"id": 907}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 454}, "assignee": {"id": 551}, "organization": {"id": 659}, "project": {"owner": {"id": 702}, "assignee": {"id": 31}, "organization": {"id": 944}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 476}, "assignee": {"id": 577}, "organization": {"id": 635}, "project": {"owner": {"id": 751}, "assignee": {"id": 98}, "organization": {"id": 950}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 488}, "assignee": {"id": 559}, "organization": {"id": 153}, "project": {"owner": {"id": 703}, "assignee": {"id": 71}, "organization": {"id": 913}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 495}, "assignee": {"id": 587}, "organization": {"id": 123}, "project": {"owner": {"id": 766}, "assignee": {"id": 31}, "organization": {"id": 903}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 474}, "assignee": {"id": 563}, "organization": {"id": 127}, "project": {"owner": {"id": 735}, "assignee": {"id": 38}, "organization": {"id": 906}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 496}, "assignee": {"id": 551}, "organization": {"id": 643}, "project": {"owner": {"id": 768}, "assignee": {"id": 59}, "organization": {"id": 962}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 437}, "assignee": {"id": 536}, "organization": {"id": 689}, "project": {"owner": {"id": 769}, "assignee": {"id": 93}, "organization": {"id": 967}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 470}, "assignee": {"id": 524}, "organization": {"id": 679}, "project": {"owner": {"id": 783}, "assignee": {"id": 63}, "organization": {"id": 931}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 467}, "assignee": {"id": 541}, "organization": {"id": 153}, "project": {"owner": {"id": 788}, "assignee": {"id": 73}, "organization": {"id": 987}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 447}, "assignee": {"id": 570}, "organization": {"id": 139}, "project": {"owner": {"id": 795}, "assignee": {"id": 27}, "organization": {"id": 945}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 440}, "assignee": {"id": 514}, "organization": {"id": 199}, "project": {"owner": {"id": 779}, "assignee": {"id": 21}, "organization": {"id": 914}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 430}, "assignee": {"id": 554}, "organization": {"id": 663}, "project": {"owner": {"id": 769}, "assignee": {"id": 4}, "organization": {"id": 926}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 470}, "assignee": {"id": 590}, "organization": {"id": 662}, "project": {"owner": {"id": 725}, "assignee": {"id": 30}, "organization": {"id": 972}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 481}, "assignee": {"id": 524}, "organization": {"id": 618}, "project": {"owner": {"id": 730}, "assignee": {"id": 56}, "organization": {"id": 902}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"owner": {"id": 439}, "assignee": {"id": 552}, "organization": {"id": 129}, "project": {"owner": {"id": 735}, "assignee": {"id": 51}, "organization": {"id": 955}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"owner": {"id": 494}, "assignee": {"id": 561}, "organization": {"id": 142}, "project": {"owner": {"id": 734}, "assignee": {"id": 58}, "organization": {"id": 950}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"owner": {"id": 429}, "assignee": {"id": 562}, "organization": {"id": 173}, "project": {"owner": {"id": 711}, "assignee": {"id": 21}, "organization": {"id": 904}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"owner": {"id": 461}, "assignee": {"id": 551}, "organization": {"id": 604}, "project": {"owner": {"id": 715}, "assignee": {"id": 56}, "organization": {"id": 945}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"owner": {"id": 465}, "assignee": {"id": 538}, "organization": {"id": 600}, "project": {"owner": {"id": 765}, "assignee": {"id": 14}, "organization": {"id": 914}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"owner": {"id": 495}, "assignee": {"id": 599}, "organization": {"id": 634}, "project": {"owner": {"id": 732}, "assignee": {"id": 91}, "organization": {"id": 947}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 448}, "assignee": {"id": 508}, "organization": {"id": 195}, "project": {"owner": {"id": 753}, "assignee": {"id": 51}, "organization": {"id": 948}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 415}, "assignee": {"id": 513}, "organization": {"id": 142}, "project": {"owner": {"id": 749}, "assignee": {"id": 2}, "organization": {"id": 925}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 448}, "assignee": {"id": 509}, "organization": {"id": 190}, "project": {"owner": {"id": 766}, "assignee": {"id": 43}, "organization": {"id": 921}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 434}, "assignee": {"id": 548}, "organization": {"id": 644}, "project": {"owner": {"id": 733}, "assignee": {"id": 34}, "organization": {"id": 994}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 450}, "assignee": {"id": 564}, "organization": {"id": 631}, "project": {"owner": {"id": 748}, "assignee": {"id": 37}, "organization": {"id": 996}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 432}, "assignee": {"id": 599}, "organization": {"id": 629}, "project": {"owner": {"id": 763}, "assignee": {"id": 80}, "organization": {"id": 911}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 435}, "assignee": {"id": 543}, "organization": {"id": 199}, "project": {"owner": {"id": 745}, "assignee": {"id": 63}, "organization": {"id": 952}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 454}, "assignee": {"id": 503}, "organization": {"id": 166}, "project": {"owner": {"id": 729}, "assignee": {"id": 28}, "organization": {"id": 911}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 411}, "assignee": {"id": 576}, "organization": {"id": 160}, "project": {"owner": {"id": 782}, "assignee": {"id": 75}, "organization": {"id": 919}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 487}, "assignee": {"id": 516}, "organization": {"id": 688}, "project": {"owner": {"id": 712}, "assignee": {"id": 41}, "organization": {"id": 993}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 498}, "assignee": {"id": 556}, "organization": {"id": 695}, "project": {"owner": {"id": 726}, "assignee": {"id": 57}, "organization": {"id": 967}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 429}, "assignee": {"id": 568}, "organization": {"id": 647}, "project": {"owner": {"id": 784}, "assignee": {"id": 24}, "organization": {"id": 974}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 499}, "assignee": {"id": 591}, "organization": {"id": 130}, "project": {"owner": {"id": 773}, "assignee": {"id": 2}, "organization": {"id": 952}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 487}, "assignee": {"id": 546}, "organization": {"id": 180}, "project": {"owner": {"id": 769}, "assignee": {"id": 67}, "organization": {"id": 908}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 424}, "assignee": {"id": 552}, "organization": {"id": 134}, "project": {"owner": {"id": 733}, "assignee": {"id": 71}, "organization": {"id": 999}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 495}, "assignee": {"id": 560}, "organization": {"id": 659}, "project": {"owner": {"id": 704}, "assignee": {"id": 23}, "organization": {"id": 988}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 453}, "assignee": {"id": 522}, "organization": {"id": 662}, "project": {"owner": {"id": 773}, "assignee": {"id": 32}, "organization": {"id": 991}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 484}, "assignee": {"id": 573}, "organization": {"id": 642}, "project": {"owner": {"id": 790}, "assignee": {"id": 95}, "organization": {"id": 939}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 473}, "assignee": {"id": 542}, "organization": {"id": 101}, "project": {"owner": {"id": 717}, "assignee": {"id": 0}, "organization": {"id": 994}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 496}, "assignee": {"id": 589}, "organization": {"id": 195}, "project": {"owner": {"id": 789}, "assignee": {"id": 53}, "organization": {"id": 945}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 455}, "assignee": {"id": 516}, "organization": {"id": 182}, "project": {"owner": {"id": 743}, "assignee": {"id": 8}, "organization": {"id": 964}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 426}, "assignee": {"id": 534}, "organization": {"id": 639}, "project": {"owner": {"id": 759}, "assignee": {"id": 27}, "organization": {"id": 984}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 436}, "assignee": {"id": 589}, "organization": {"id": 696}, "project": {"owner": {"id": 740}, "assignee": {"id": 20}, "organization": {"id": 923}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 429}, "assignee": {"id": 540}, "organization": {"id": 686}, "project": {"owner": {"id": 715}, "assignee": {"id": 93}, "organization": {"id": 991}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 81, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"owner": {"id": 462}, "assignee": {"id": 591}, "organization": {"id": 183}, "project": {"owner": {"id": 787}, "assignee": {"id": 81}, "organization": {"id": 905}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"owner": {"id": 406}, "assignee": {"id": 511}, "organization": {"id": 151}, "project": {"owner": {"id": 701}, "assignee": {"id": 57}, "organization": {"id": 971}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 94, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"owner": {"id": 413}, "assignee": {"id": 516}, "organization": {"id": 194}, "project": {"owner": {"id": 791}, "assignee": {"id": 94}, "organization": {"id": 936}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"owner": {"id": 405}, "assignee": {"id": 534}, "organization": {"id": 699}, "project": {"owner": {"id": 772}, "assignee": {"id": 99}, "organization": {"id": 971}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"owner": {"id": 436}, "assignee": {"id": 511}, "organization": {"id": 689}, "project": {"owner": {"id": 736}, "assignee": {"id": 25}, "organization": {"id": 980}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"owner": {"id": 490}, "assignee": {"id": 581}, "organization": {"id": 631}, "project": {"owner": {"id": 740}, "assignee": {"id": 61}, "organization": {"id": 944}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 468}, "assignee": {"id": 560}, "organization": {"id": 158}, "project": {"owner": {"id": 745}, "assignee": {"id": 81}, "organization": {"id": 984}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 462}, "assignee": {"id": 573}, "organization": {"id": 112}, "project": {"owner": {"id": 715}, "assignee": {"id": 60}, "organization": {"id": 926}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 406}, "assignee": {"id": 517}, "organization": {"id": 166}, "project": {"owner": {"id": 741}, "assignee": {"id": 43}, "organization": {"id": 935}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 416}, "assignee": {"id": 593}, "organization": {"id": 693}, "project": {"owner": {"id": 708}, "assignee": {"id": 14}, "organization": {"id": 959}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 404}, "assignee": {"id": 586}, "organization": {"id": 666}, "project": {"owner": {"id": 776}, "assignee": {"id": 9}, "organization": {"id": 909}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 492}, "assignee": {"id": 500}, "organization": {"id": 662}, "project": {"owner": {"id": 793}, "assignee": {"id": 32}, "organization": {"id": 915}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 491}, "assignee": {"id": 583}, "organization": {"id": 193}, "project": {"owner": {"id": 713}, "assignee": {"id": 27}, "organization": {"id": 964}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 430}, "assignee": {"id": 507}, "organization": {"id": 166}, "project": {"owner": {"id": 773}, "assignee": {"id": 85}, "organization": {"id": 946}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 438}, "assignee": {"id": 522}, "organization": {"id": 197}, "project": {"owner": {"id": 798}, "assignee": {"id": 83}, "organization": {"id": 962}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 490}, "assignee": {"id": 523}, "organization": {"id": 630}, "project": {"owner": {"id": 763}, "assignee": {"id": 15}, "organization": {"id": 985}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 461}, "assignee": {"id": 537}, "organization": {"id": 671}, "project": {"owner": {"id": 786}, "assignee": {"id": 43}, "organization": {"id": 963}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 458}, "assignee": {"id": 500}, "organization": {"id": 607}, "project": {"owner": {"id": 760}, "assignee": {"id": 42}, "organization": {"id": 971}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 411}, "assignee": {"id": 596}, "organization": {"id": 151}, "project": {"owner": {"id": 793}, "assignee": {"id": 85}, "organization": {"id": 971}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 403}, "assignee": {"id": 570}, "organization": {"id": 102}, "project": {"owner": {"id": 796}, "assignee": {"id": 93}, "organization": {"id": 951}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 461}, "assignee": {"id": 573}, "organization": {"id": 155}, "project": {"owner": {"id": 707}, "assignee": {"id": 69}, "organization": {"id": 952}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 492}, "assignee": {"id": 526}, "organization": {"id": 670}, "project": {"owner": {"id": 727}, "assignee": {"id": 91}, "organization": {"id": 982}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 446}, "assignee": {"id": 558}, "organization": {"id": 608}, "project": {"owner": {"id": 752}, "assignee": {"id": 24}, "organization": {"id": 951}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 497}, "assignee": {"id": 585}, "organization": {"id": 667}, "project": {"owner": {"id": 717}, "assignee": {"id": 60}, "organization": {"id": 998}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 495}, "assignee": {"id": 575}, "organization": {"id": 155}, "project": {"owner": {"id": 757}, "assignee": {"id": 97}, "organization": {"id": 931}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 462}, "assignee": {"id": 566}, "organization": {"id": 128}, "project": {"owner": {"id": 707}, "assignee": {"id": 74}, "organization": {"id": 980}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 465}, "assignee": {"id": 596}, "organization": {"id": 163}, "project": {"owner": {"id": 753}, "assignee": {"id": 4}, "organization": {"id": 990}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 490}, "assignee": {"id": 504}, "organization": {"id": 673}, "project": {"owner": {"id": 765}, "assignee": {"id": 56}, "organization": {"id": 934}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 464}, "assignee": {"id": 534}, "organization": {"id": 676}, "project": {"owner": {"id": 719}, "assignee": {"id": 22}, "organization": {"id": 988}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 488}, "assignee": {"id": 555}, "organization": {"id": 662}, "project": {"owner": {"id": 792}, "assignee": {"id": 44}, "organization": {"id": 969}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"owner": {"id": 436}, "assignee": {"id": 586}, "organization": {"id": 164}, "project": {"owner": {"id": 743}, "assignee": {"id": 20}, "organization": {"id": 940}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"owner": {"id": 456}, "assignee": {"id": 517}, "organization": {"id": 175}, "project": {"owner": {"id": 760}, "assignee": {"id": 57}, "organization": {"id": 946}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"owner": {"id": 486}, "assignee": {"id": 535}, "organization": {"id": 161}, "project": {"owner": {"id": 798}, "assignee": {"id": 63}, "organization": {"id": 965}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"owner": {"id": 444}, "assignee": {"id": 500}, "organization": {"id": 605}, "project": {"owner": {"id": 724}, "assignee": {"id": 27}, "organization": {"id": 942}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"owner": {"id": 497}, "assignee": {"id": 516}, "organization": {"id": 696}, "project": {"owner": {"id": 719}, "assignee": {"id": 49}, "organization": {"id": 923}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"owner": {"id": 455}, "assignee": {"id": 522}, "organization": {"id": 650}, "project": {"owner": {"id": 778}, "assignee": {"id": 44}, "organization": {"id": 907}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 456}, "assignee": {"id": 528}, "organization": {"id": 111}, "project": {"owner": {"id": 701}, "assignee": {"id": 42}, "organization": {"id": 991}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 497}, "assignee": {"id": 504}, "organization": {"id": 143}, "project": {"owner": {"id": 796}, "assignee": {"id": 65}, "organization": {"id": 933}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 499}, "assignee": {"id": 597}, "organization": {"id": 119}, "project": {"owner": {"id": 793}, "assignee": {"id": 82}, "organization": {"id": 929}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 459}, "assignee": {"id": 551}, "organization": {"id": 695}, "project": {"owner": {"id": 761}, "assignee": {"id": 92}, "organization": {"id": 915}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 416}, "assignee": {"id": 543}, "organization": {"id": 690}, "project": {"owner": {"id": 771}, "assignee": {"id": 51}, "organization": {"id": 961}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 497}, "assignee": {"id": 581}, "organization": {"id": 673}, "project": {"owner": {"id": 775}, "assignee": {"id": 52}, "organization": {"id": 907}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 424}, "assignee": {"id": 517}, "organization": {"id": 117}, "project": {"owner": {"id": 755}, "assignee": {"id": 59}, "organization": {"id": 927}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 433}, "assignee": {"id": 516}, "organization": {"id": 186}, "project": {"owner": {"id": 768}, "assignee": {"id": 63}, "organization": {"id": 989}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 451}, "assignee": {"id": 520}, "organization": {"id": 143}, "project": {"owner": {"id": 798}, "assignee": {"id": 23}, "organization": {"id": 929}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 474}, "assignee": {"id": 526}, "organization": {"id": 613}, "project": {"owner": {"id": 704}, "assignee": {"id": 18}, "organization": {"id": 929}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 491}, "assignee": {"id": 560}, "organization": {"id": 698}, "project": {"owner": {"id": 793}, "assignee": {"id": 32}, "organization": {"id": 991}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 406}, "assignee": {"id": 500}, "organization": {"id": 669}, "project": {"owner": {"id": 788}, "assignee": {"id": 95}, "organization": {"id": 939}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 434}, "assignee": {"id": 525}, "organization": {"id": 110}, "project": {"owner": {"id": 729}, "assignee": {"id": 98}, "organization": {"id": 925}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 487}, "assignee": {"id": 515}, "organization": {"id": 182}, "project": {"owner": {"id": 780}, "assignee": {"id": 46}, "organization": {"id": 965}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 426}, "assignee": {"id": 568}, "organization": {"id": 180}, "project": {"owner": {"id": 746}, "assignee": {"id": 70}, "organization": {"id": 981}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 434}, "assignee": {"id": 559}, "organization": {"id": 628}, "project": {"owner": {"id": 756}, "assignee": {"id": 84}, "organization": {"id": 975}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 467}, "assignee": {"id": 590}, "organization": {"id": 682}, "project": {"owner": {"id": 780}, "assignee": {"id": 2}, "organization": {"id": 996}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 487}, "assignee": {"id": 586}, "organization": {"id": 614}, "project": {"owner": {"id": 761}, "assignee": {"id": 49}, "organization": {"id": 973}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 490}, "assignee": {"id": 545}, "organization": {"id": 137}, "project": {"owner": {"id": 738}, "assignee": {"id": 55}, "organization": {"id": 988}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 418}, "assignee": {"id": 512}, "organization": {"id": 126}, "project": {"owner": {"id": 762}, "assignee": {"id": 41}, "organization": {"id": 989}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 469}, "assignee": {"id": 528}, "organization": {"id": 180}, "project": {"owner": {"id": 779}, "assignee": {"id": 18}, "organization": {"id": 920}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 425}, "assignee": {"id": 582}, "organization": {"id": 677}, "project": {"owner": {"id": 754}, "assignee": {"id": 28}, "organization": {"id": 967}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 446}, "assignee": {"id": 578}, "organization": {"id": 626}, "project": {"owner": {"id": 733}, "assignee": {"id": 78}, "organization": {"id": 916}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 467}, "assignee": {"id": 571}, "organization": {"id": 627}, "project": {"owner": {"id": 781}, "assignee": {"id": 86}, "organization": {"id": 904}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"owner": {"id": 427}, "assignee": {"id": 586}, "organization": {"id": 199}, "project": {"owner": {"id": 710}, "assignee": {"id": 46}, "organization": {"id": 947}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"owner": {"id": 402}, "assignee": {"id": 530}, "organization": {"id": 187}, "project": {"owner": {"id": 712}, "assignee": {"id": 87}, "organization": {"id": 965}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"owner": {"id": 447}, "assignee": {"id": 596}, "organization": {"id": 116}, "project": {"owner": {"id": 786}, "assignee": {"id": 3}, "organization": {"id": 944}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"owner": {"id": 401}, "assignee": {"id": 550}, "organization": {"id": 655}, "project": {"owner": {"id": 755}, "assignee": {"id": 53}, "organization": {"id": 983}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"owner": {"id": 467}, "assignee": {"id": 551}, "organization": {"id": 681}, "project": {"owner": {"id": 785}, "assignee": {"id": 38}, "organization": {"id": 904}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"owner": {"id": 451}, "assignee": {"id": 582}, "organization": {"id": 658}, "project": {"owner": {"id": 728}, "assignee": {"id": 86}, "organization": {"id": 963}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 431}, "assignee": {"id": 518}, "organization": {"id": 119}, "project": {"owner": {"id": 774}, "assignee": {"id": 21}, "organization": {"id": 992}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 478}, "assignee": {"id": 511}, "organization": {"id": 145}, "project": {"owner": {"id": 700}, "assignee": {"id": 41}, "organization": {"id": 967}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 442}, "assignee": {"id": 523}, "organization": {"id": 151}, "project": {"owner": {"id": 718}, "assignee": {"id": 97}, "organization": {"id": 948}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 486}, "assignee": {"id": 556}, "organization": {"id": 637}, "project": {"owner": {"id": 726}, "assignee": {"id": 72}, "organization": {"id": 986}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 453}, "assignee": {"id": 529}, "organization": {"id": 676}, "project": {"owner": {"id": 777}, "assignee": {"id": 95}, "organization": {"id": 978}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 443}, "assignee": {"id": 576}, "organization": {"id": 636}, "project": {"owner": {"id": 700}, "assignee": {"id": 46}, "organization": {"id": 971}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 484}, "assignee": {"id": 583}, "organization": {"id": 159}, "project": {"owner": {"id": 725}, "assignee": {"id": 94}, "organization": {"id": 960}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 407}, "assignee": {"id": 565}, "organization": {"id": 185}, "project": {"owner": {"id": 727}, "assignee": {"id": 48}, "organization": {"id": 906}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 419}, "assignee": {"id": 594}, "organization": {"id": 187}, "project": {"owner": {"id": 702}, "assignee": {"id": 28}, "organization": {"id": 918}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 421}, "assignee": {"id": 544}, "organization": {"id": 694}, "project": {"owner": {"id": 749}, "assignee": {"id": 27}, "organization": {"id": 959}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 426}, "assignee": {"id": 592}, "organization": {"id": 690}, "project": {"owner": {"id": 723}, "assignee": {"id": 54}, "organization": {"id": 993}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 426}, "assignee": {"id": 536}, "organization": {"id": 664}, "project": {"owner": {"id": 757}, "assignee": {"id": 0}, "organization": {"id": 972}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 415}, "assignee": {"id": 504}, "organization": {"id": 138}, "project": {"owner": {"id": 701}, "assignee": {"id": 39}, "organization": {"id": 970}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 466}, "assignee": {"id": 555}, "organization": {"id": 199}, "project": {"owner": {"id": 792}, "assignee": {"id": 57}, "organization": {"id": 902}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 495}, "assignee": {"id": 556}, "organization": {"id": 173}, "project": {"owner": {"id": 795}, "assignee": {"id": 71}, "organization": {"id": 952}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 488}, "assignee": {"id": 525}, "organization": {"id": 685}, "project": {"owner": {"id": 760}, "assignee": {"id": 25}, "organization": {"id": 945}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 478}, "assignee": {"id": 546}, "organization": {"id": 680}, "project": {"owner": {"id": 735}, "assignee": {"id": 53}, "organization": {"id": 961}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 455}, "assignee": {"id": 507}, "organization": {"id": 678}, "project": {"owner": {"id": 785}, "assignee": {"id": 90}, "organization": {"id": 976}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 446}, "assignee": {"id": 581}, "organization": {"id": 188}, "project": {"owner": {"id": 713}, "assignee": {"id": 27}, "organization": {"id": 936}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 444}, "assignee": {"id": 596}, "organization": {"id": 156}, "project": {"owner": {"id": 731}, "assignee": {"id": 69}, "organization": {"id": 934}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 453}, "assignee": {"id": 555}, "organization": {"id": 107}, "project": {"owner": {"id": 738}, "assignee": {"id": 70}, "organization": {"id": 963}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 498}, "assignee": {"id": 591}, "organization": {"id": 641}, "project": {"owner": {"id": 716}, "assignee": {"id": 94}, "organization": {"id": 973}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 403}, "assignee": {"id": 584}, "organization": {"id": 642}, "project": {"owner": {"id": 749}, "assignee": {"id": 11}, "organization": {"id": 944}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 411}, "assignee": {"id": 570}, "organization": {"id": 624}, "project": {"owner": {"id": 756}, "assignee": {"id": 96}, "organization": {"id": 938}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"owner": {"id": 430}, "assignee": {"id": 556}, "organization": {"id": 107}, "project": {"owner": {"id": 731}, "assignee": {"id": 41}, "organization": {"id": 945}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"owner": {"id": 405}, "assignee": {"id": 577}, "organization": {"id": 105}, "project": {"owner": {"id": 765}, "assignee": {"id": 30}, "organization": {"id": 979}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"owner": {"id": 427}, "assignee": {"id": 564}, "organization": {"id": 182}, "project": {"owner": {"id": 750}, "assignee": {"id": 73}, "organization": {"id": 995}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"owner": {"id": 486}, "assignee": {"id": 549}, "organization": {"id": 635}, "project": {"owner": {"id": 750}, "assignee": {"id": 22}, "organization": {"id": 981}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"owner": {"id": 421}, "assignee": {"id": 533}, "organization": {"id": 628}, "project": {"owner": {"id": 738}, "assignee": {"id": 13}, "organization": {"id": 929}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"owner": {"id": 445}, "assignee": {"id": 532}, "organization": {"id": 667}, "project": {"owner": {"id": 751}, "assignee": {"id": 49}, "organization": {"id": 942}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 464}, "assignee": {"id": 596}, "organization": {"id": 173}, "project": {"owner": {"id": 717}, "assignee": {"id": 884}, "organization": {"id": 919}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 457}, "assignee": {"id": 556}, "organization": {"id": 136}, "project": {"owner": {"id": 742}, "assignee": {"id": 838}, "organization": {"id": 957}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 498}, "assignee": {"id": 557}, "organization": {"id": 116}, "project": {"owner": {"id": 763}, "assignee": {"id": 863}, "organization": {"id": 934}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 465}, "assignee": {"id": 557}, "organization": {"id": 618}, "project": {"owner": {"id": 736}, "assignee": {"id": 894}, "organization": {"id": 975}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 431}, "assignee": {"id": 561}, "organization": {"id": 676}, "project": {"owner": {"id": 760}, "assignee": {"id": 878}, "organization": {"id": 904}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 402}, "assignee": {"id": 563}, "organization": {"id": 607}, "project": {"owner": {"id": 790}, "assignee": {"id": 836}, "organization": {"id": 942}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 459}, "assignee": {"id": 533}, "organization": {"id": 128}, "project": {"owner": {"id": 713}, "assignee": {"id": 855}, "organization": {"id": 954}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 416}, "assignee": {"id": 525}, "organization": {"id": 121}, "project": {"owner": {"id": 772}, "assignee": {"id": 843}, "organization": {"id": 953}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 484}, "assignee": {"id": 562}, "organization": {"id": 155}, "project": {"owner": {"id": 719}, "assignee": {"id": 842}, "organization": {"id": 946}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 36, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 433}, "assignee": {"id": 579}, "organization": {"id": 693}, "project": {"owner": {"id": 702}, "assignee": {"id": 848}, "organization": {"id": 938}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 415}, "assignee": {"id": 519}, "organization": {"id": 699}, "project": {"owner": {"id": 719}, "assignee": {"id": 862}, "organization": {"id": 918}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 486}, "assignee": {"id": 561}, "organization": {"id": 650}, "project": {"owner": {"id": 746}, "assignee": {"id": 825}, "organization": {"id": 908}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 481}, "assignee": {"id": 506}, "organization": {"id": 171}, "project": {"owner": {"id": 743}, "assignee": {"id": 836}, "organization": {"id": 946}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 443}, "assignee": {"id": 571}, "organization": {"id": 126}, "project": {"owner": {"id": 737}, "assignee": {"id": 845}, "organization": {"id": 945}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 479}, "assignee": {"id": 543}, "organization": {"id": 161}, "project": {"owner": {"id": 755}, "assignee": {"id": 823}, "organization": {"id": 915}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 497}, "assignee": {"id": 553}, "organization": {"id": 653}, "project": {"owner": {"id": 765}, "assignee": {"id": 806}, "organization": {"id": 971}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 478}, "assignee": {"id": 545}, "organization": {"id": 697}, "project": {"owner": {"id": 700}, "assignee": {"id": 838}, "organization": {"id": 995}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 474}, "assignee": {"id": 511}, "organization": {"id": 603}, "project": {"owner": {"id": 764}, "assignee": {"id": 853}, "organization": {"id": 997}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 487}, "assignee": {"id": 560}, "organization": {"id": 178}, "project": {"owner": {"id": 741}, "assignee": {"id": 898}, "organization": {"id": 920}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 411}, "assignee": {"id": 580}, "organization": {"id": 108}, "project": {"owner": {"id": 774}, "assignee": {"id": 858}, "organization": {"id": 974}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 429}, "assignee": {"id": 528}, "organization": {"id": 153}, "project": {"owner": {"id": 771}, "assignee": {"id": 849}, "organization": {"id": 905}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 467}, "assignee": {"id": 573}, "organization": {"id": 666}, "project": {"owner": {"id": 764}, "assignee": {"id": 869}, "organization": {"id": 944}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 482}, "assignee": {"id": 586}, "organization": {"id": 603}, "project": {"owner": {"id": 711}, "assignee": {"id": 804}, "organization": {"id": 947}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 447}, "assignee": {"id": 597}, "organization": {"id": 670}, "project": {"owner": {"id": 725}, "assignee": {"id": 876}, "organization": {"id": 910}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"owner": {"id": 406}, "assignee": {"id": 504}, "organization": {"id": 185}, "project": {"owner": {"id": 790}, "assignee": {"id": 824}, "organization": {"id": 987}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"owner": {"id": 486}, "assignee": {"id": 593}, "organization": {"id": 169}, "project": {"owner": {"id": 790}, "assignee": {"id": 827}, "organization": {"id": 973}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"owner": {"id": 455}, "assignee": {"id": 531}, "organization": {"id": 157}, "project": {"owner": {"id": 775}, "assignee": {"id": 805}, "organization": {"id": 923}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_user_num_resources_0_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"owner": {"id": 421}, "assignee": {"id": 583}, "organization": {"id": 608}, "project": {"owner": {"id": 771}, "assignee": {"id": 868}, "organization": {"id": 978}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_user_num_resources_3_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"owner": {"id": 427}, "assignee": {"id": 567}, "organization": {"id": 638}, "project": {"owner": {"id": 736}, "assignee": {"id": 857}, "organization": {"id": 966}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_user_num_resources_10_same_org_FALSE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"owner": {"id": 412}, "assignee": {"id": 596}, "organization": {"id": 696}, "project": {"owner": {"id": 752}, "assignee": {"id": 898}, "organization": {"id": 957}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 429}, "assignee": {"id": 538}, "organization": {"id": 135}, "project": {"owner": {"id": 789}, "assignee": {"id": 811}, "organization": {"id": 923}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 437}, "assignee": {"id": 523}, "organization": {"id": 159}, "project": {"owner": {"id": 798}, "assignee": {"id": 851}, "organization": {"id": 955}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 437}, "assignee": {"id": 561}, "organization": {"id": 124}, "project": {"owner": {"id": 719}, "assignee": {"id": 893}, "organization": {"id": 952}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 487}, "assignee": {"id": 597}, "organization": {"id": 621}, "project": {"owner": {"id": 797}, "assignee": {"id": 863}, "organization": {"id": 976}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 455}, "assignee": {"id": 552}, "organization": {"id": 630}, "project": {"owner": {"id": 756}, "assignee": {"id": 876}, "organization": {"id": 983}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 441}, "assignee": {"id": 566}, "organization": {"id": 611}, "project": {"owner": {"id": 787}, "assignee": {"id": 888}, "organization": {"id": 970}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 467}, "assignee": {"id": 557}, "organization": {"id": 139}, "project": {"owner": {"id": 711}, "assignee": {"id": 839}, "organization": {"id": 932}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 449}, "assignee": {"id": 578}, "organization": {"id": 125}, "project": {"owner": {"id": 772}, "assignee": {"id": 878}, "organization": {"id": 990}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 442}, "assignee": {"id": 531}, "organization": {"id": 101}, "project": {"owner": {"id": 741}, "assignee": {"id": 842}, "organization": {"id": 955}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 480}, "assignee": {"id": 548}, "organization": {"id": 674}, "project": {"owner": {"id": 797}, "assignee": {"id": 801}, "organization": {"id": 971}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 472}, "assignee": {"id": 548}, "organization": {"id": 634}, "project": {"owner": {"id": 798}, "assignee": {"id": 875}, "organization": {"id": 949}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 31, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 449}, "assignee": {"id": 553}, "organization": {"id": 685}, "project": {"owner": {"id": 766}, "assignee": {"id": 808}, "organization": {"id": 915}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 483}, "assignee": {"id": 580}, "organization": {"id": 134}, "project": {"owner": {"id": 717}, "assignee": {"id": 834}, "organization": {"id": 949}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 471}, "assignee": {"id": 562}, "organization": {"id": 186}, "project": {"owner": {"id": 723}, "assignee": {"id": 806}, "organization": {"id": 928}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_user_num_resources_10_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 459}, "assignee": {"id": 526}, "organization": {"id": 126}, "project": {"owner": {"id": 762}, "assignee": {"id": 890}, "organization": {"id": 971}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 452}, "assignee": {"id": 562}, "organization": {"id": 638}, "project": {"owner": {"id": 790}, "assignee": {"id": 866}, "organization": {"id": 941}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 463}, "assignee": {"id": 564}, "organization": {"id": 631}, "project": {"owner": {"id": 706}, "assignee": {"id": 833}, "organization": {"id": 942}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 441}, "assignee": {"id": 574}, "organization": {"id": 649}, "project": {"owner": {"id": 787}, "assignee": {"id": 841}, "organization": {"id": 986}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 449}, "assignee": {"id": 571}, "organization": {"id": 177}, "project": {"owner": {"id": 700}, "assignee": {"id": 806}, "organization": {"id": 945}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 443}, "assignee": {"id": 508}, "organization": {"id": 153}, "project": {"owner": {"id": 716}, "assignee": {"id": 850}, "organization": {"id": 981}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 495}, "assignee": {"id": 561}, "organization": {"id": 159}, "project": {"owner": {"id": 754}, "assignee": {"id": 833}, "organization": {"id": 981}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 447}, "assignee": {"id": 552}, "organization": {"id": 613}, "project": {"owner": {"id": 732}, "assignee": {"id": 855}, "organization": {"id": 945}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 424}, "assignee": {"id": 532}, "organization": {"id": 632}, "project": {"owner": {"id": 722}, "assignee": {"id": 805}, "organization": {"id": 907}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 437}, "assignee": {"id": 519}, "organization": {"id": 611}, "project": {"owner": {"id": 787}, "assignee": {"id": 865}, "organization": {"id": 955}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"owner": {"id": 441}, "assignee": {"id": 510}, "organization": {"id": 170}, "project": {"owner": {"id": 773}, "assignee": {"id": 811}, "organization": {"id": 973}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"owner": {"id": 467}, "assignee": {"id": 544}, "organization": {"id": 169}, "project": {"owner": {"id": 784}, "assignee": {"id": 802}, "organization": {"id": 943}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"owner": {"id": 452}, "assignee": {"id": 547}, "organization": {"id": 133}, "project": {"owner": {"id": 712}, "assignee": {"id": 830}, "organization": {"id": 928}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"owner": {"id": 423}, "assignee": {"id": 523}, "organization": {"id": 690}, "project": {"owner": {"id": 772}, "assignee": {"id": 864}, "organization": {"id": 960}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 26, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"owner": {"id": 454}, "assignee": {"id": 552}, "organization": {"id": 690}, "project": {"owner": {"id": 726}, "assignee": {"id": 823}, "organization": {"id": 962}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"owner": {"id": 485}, "assignee": {"id": 575}, "organization": {"id": 688}, "project": {"owner": {"id": 791}, "assignee": {"id": 806}, "organization": {"id": 999}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 495}, "assignee": {"id": 564}, "organization": {"id": 137}, "project": {"owner": {"id": 709}, "assignee": {"id": 894}, "organization": {"id": 962}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 405}, "assignee": {"id": 504}, "organization": {"id": 152}, "project": {"owner": {"id": 719}, "assignee": {"id": 816}, "organization": {"id": 977}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 410}, "assignee": {"id": 567}, "organization": {"id": 176}, "project": {"owner": {"id": 744}, "assignee": {"id": 858}, "organization": {"id": 983}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 442}, "assignee": {"id": 516}, "organization": {"id": 660}, "project": {"owner": {"id": 702}, "assignee": {"id": 890}, "organization": {"id": 923}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 444}, "assignee": {"id": 578}, "organization": {"id": 679}, "project": {"owner": {"id": 754}, "assignee": {"id": 812}, "organization": {"id": 914}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 437}, "assignee": {"id": 527}, "organization": {"id": 640}, "project": {"owner": {"id": 764}, "assignee": {"id": 824}, "organization": {"id": 905}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 415}, "assignee": {"id": 528}, "organization": {"id": 114}, "project": {"owner": {"id": 754}, "assignee": {"id": 809}, "organization": {"id": 901}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 476}, "assignee": {"id": 596}, "organization": {"id": 130}, "project": {"owner": {"id": 717}, "assignee": {"id": 813}, "organization": {"id": 951}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 470}, "assignee": {"id": 575}, "organization": {"id": 136}, "project": {"owner": {"id": 736}, "assignee": {"id": 843}, "organization": {"id": 925}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 410}, "assignee": {"id": 578}, "organization": {"id": 616}, "project": {"owner": {"id": 756}, "assignee": {"id": 836}, "organization": {"id": 931}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 411}, "assignee": {"id": 522}, "organization": {"id": 652}, "project": {"owner": {"id": 754}, "assignee": {"id": 852}, "organization": {"id": 944}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 450}, "assignee": {"id": 505}, "organization": {"id": 622}, "project": {"owner": {"id": 728}, "assignee": {"id": 825}, "organization": {"id": 951}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_user_num_resources_0_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 432}, "assignee": {"id": 558}, "organization": {"id": 192}, "project": {"owner": {"id": 742}, "assignee": {"id": 843}, "organization": {"id": 919}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_user_num_resources_3_same_org_TRUE { - allow with input as {"scope": "create@project", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 453}, "assignee": {"id": 558}, "organization": {"id": 100}, "project": {"owner": {"id": 706}, "assignee": {"id": 886}, "organization": {"id": 930}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 451}, "assignee": {"id": 580}, "organization": {"id": 195}, "project": {"owner": {"id": 795}, "assignee": {"id": 807}, "organization": {"id": 918}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 455}, "assignee": {"id": 570}, "organization": {"id": 662}, "project": {"owner": {"id": 705}, "assignee": {"id": 854}, "organization": {"id": 974}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 400}, "assignee": {"id": 540}, "organization": {"id": 659}, "project": {"owner": {"id": 709}, "assignee": {"id": 898}, "organization": {"id": 909}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 422}, "assignee": {"id": 510}, "organization": {"id": 689}, "project": {"owner": {"id": 766}, "assignee": {"id": 811}, "organization": {"id": 949}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 429}, "assignee": {"id": 597}, "organization": {"id": 156}, "project": {"owner": {"id": 729}, "assignee": {"id": 802}, "organization": {"id": 980}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 447}, "assignee": {"id": 534}, "organization": {"id": 124}, "project": {"owner": {"id": 736}, "assignee": {"id": 893}, "organization": {"id": 974}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 489}, "assignee": {"id": 540}, "organization": {"id": 190}, "project": {"owner": {"id": 753}, "assignee": {"id": 842}, "organization": {"id": 960}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 429}, "assignee": {"id": 504}, "organization": {"id": 618}, "project": {"owner": {"id": 734}, "assignee": {"id": 822}, "organization": {"id": 950}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 487}, "assignee": {"id": 533}, "organization": {"id": 652}, "project": {"owner": {"id": 795}, "assignee": {"id": 867}, "organization": {"id": 942}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 480}, "assignee": {"id": 587}, "organization": {"id": 642}, "project": {"owner": {"id": 794}, "assignee": {"id": 814}, "organization": {"id": 973}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"owner": {"id": 441}, "assignee": {"id": 590}, "organization": {"id": 128}, "project": {"owner": {"id": 769}, "assignee": {"id": 864}, "organization": {"id": 904}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"owner": {"id": 499}, "assignee": {"id": 540}, "organization": {"id": 197}, "project": {"owner": {"id": 706}, "assignee": {"id": 877}, "organization": {"id": 928}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"owner": {"id": 424}, "assignee": {"id": 536}, "organization": {"id": 140}, "project": {"owner": {"id": 799}, "assignee": {"id": 846}, "organization": {"id": 992}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"owner": {"id": 490}, "assignee": {"id": 598}, "organization": {"id": 647}, "project": {"owner": {"id": 789}, "assignee": {"id": 838}, "organization": {"id": 924}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"owner": {"id": 459}, "assignee": {"id": 589}, "organization": {"id": 606}, "project": {"owner": {"id": 700}, "assignee": {"id": 873}, "organization": {"id": 969}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"owner": {"id": 436}, "assignee": {"id": 515}, "organization": {"id": 651}, "project": {"owner": {"id": 798}, "assignee": {"id": 833}, "organization": {"id": 929}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 495}, "assignee": {"id": 534}, "organization": {"id": 111}, "project": {"owner": {"id": 707}, "assignee": {"id": 814}, "organization": {"id": 923}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 443}, "assignee": {"id": 590}, "organization": {"id": 169}, "project": {"owner": {"id": 779}, "assignee": {"id": 821}, "organization": {"id": 970}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 487}, "assignee": {"id": 528}, "organization": {"id": 167}, "project": {"owner": {"id": 780}, "assignee": {"id": 872}, "organization": {"id": 995}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 458}, "assignee": {"id": 548}, "organization": {"id": 677}, "project": {"owner": {"id": 756}, "assignee": {"id": 847}, "organization": {"id": 904}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 445}, "assignee": {"id": 577}, "organization": {"id": 612}, "project": {"owner": {"id": 763}, "assignee": {"id": 894}, "organization": {"id": 930}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 488}, "assignee": {"id": 599}, "organization": {"id": 672}, "project": {"owner": {"id": 730}, "assignee": {"id": 803}, "organization": {"id": 997}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 499}, "assignee": {"id": 548}, "organization": {"id": 177}, "project": {"owner": {"id": 798}, "assignee": {"id": 870}, "organization": {"id": 924}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 431}, "assignee": {"id": 591}, "organization": {"id": 192}, "project": {"owner": {"id": 709}, "assignee": {"id": 862}, "organization": {"id": 975}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 427}, "assignee": {"id": 548}, "organization": {"id": 149}, "project": {"owner": {"id": 782}, "assignee": {"id": 863}, "organization": {"id": 903}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 490}, "assignee": {"id": 591}, "organization": {"id": 680}, "project": {"owner": {"id": 737}, "assignee": {"id": 845}, "organization": {"id": 919}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 494}, "assignee": {"id": 542}, "organization": {"id": 673}, "project": {"owner": {"id": 725}, "assignee": {"id": 847}, "organization": {"id": 959}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 402}, "assignee": {"id": 584}, "organization": {"id": 663}, "project": {"owner": {"id": 748}, "assignee": {"id": 847}, "organization": {"id": 900}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 454}, "assignee": {"id": 518}, "organization": {"id": 115}, "project": {"owner": {"id": 792}, "assignee": {"id": 823}, "organization": {"id": 957}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 414}, "assignee": {"id": 574}, "organization": {"id": 165}, "project": {"owner": {"id": 720}, "assignee": {"id": 852}, "organization": {"id": 903}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 497}, "assignee": {"id": 516}, "organization": {"id": 115}, "project": {"owner": {"id": 784}, "assignee": {"id": 849}, "organization": {"id": 994}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 477}, "assignee": {"id": 528}, "organization": {"id": 655}, "project": {"owner": {"id": 700}, "assignee": {"id": 875}, "organization": {"id": 983}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 408}, "assignee": {"id": 575}, "organization": {"id": 635}, "project": {"owner": {"id": 773}, "assignee": {"id": 800}, "organization": {"id": 971}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 67, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 408}, "assignee": {"id": 583}, "organization": {"id": 659}, "project": {"owner": {"id": 706}, "assignee": {"id": 806}, "organization": {"id": 925}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 485}, "assignee": {"id": 585}, "organization": {"id": 112}, "project": {"owner": {"id": 767}, "assignee": {"id": 859}, "organization": {"id": 959}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 462}, "assignee": {"id": 563}, "organization": {"id": 142}, "project": {"owner": {"id": 710}, "assignee": {"id": 835}, "organization": {"id": 985}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 475}, "assignee": {"id": 559}, "organization": {"id": 183}, "project": {"owner": {"id": 789}, "assignee": {"id": 849}, "organization": {"id": 964}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 494}, "assignee": {"id": 576}, "organization": {"id": 651}, "project": {"owner": {"id": 739}, "assignee": {"id": 855}, "organization": {"id": 903}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 462}, "assignee": {"id": 557}, "organization": {"id": 625}, "project": {"owner": {"id": 781}, "assignee": {"id": 840}, "organization": {"id": 976}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 446}, "assignee": {"id": 549}, "organization": {"id": 689}, "project": {"owner": {"id": 772}, "assignee": {"id": 887}, "organization": {"id": 914}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"owner": {"id": 430}, "assignee": {"id": 593}, "organization": {"id": 159}, "project": {"owner": {"id": 794}, "assignee": {"id": 884}, "organization": {"id": 958}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"owner": {"id": 436}, "assignee": {"id": 593}, "organization": {"id": 192}, "project": {"owner": {"id": 785}, "assignee": {"id": 878}, "organization": {"id": 922}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"owner": {"id": 445}, "assignee": {"id": 505}, "organization": {"id": 181}, "project": {"owner": {"id": 763}, "assignee": {"id": 845}, "organization": {"id": 913}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"owner": {"id": 424}, "assignee": {"id": 546}, "organization": {"id": 669}, "project": {"owner": {"id": 715}, "assignee": {"id": 870}, "organization": {"id": 916}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"owner": {"id": 493}, "assignee": {"id": 514}, "organization": {"id": 662}, "project": {"owner": {"id": 793}, "assignee": {"id": 863}, "organization": {"id": 933}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"owner": {"id": 465}, "assignee": {"id": 557}, "organization": {"id": 636}, "project": {"owner": {"id": 763}, "assignee": {"id": 857}, "organization": {"id": 977}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 439}, "assignee": {"id": 527}, "organization": {"id": 125}, "project": {"owner": {"id": 730}, "assignee": {"id": 847}, "organization": {"id": 949}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 477}, "assignee": {"id": 574}, "organization": {"id": 148}, "project": {"owner": {"id": 760}, "assignee": {"id": 896}, "organization": {"id": 915}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 422}, "assignee": {"id": 544}, "organization": {"id": 181}, "project": {"owner": {"id": 798}, "assignee": {"id": 804}, "organization": {"id": 910}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 415}, "assignee": {"id": 519}, "organization": {"id": 648}, "project": {"owner": {"id": 762}, "assignee": {"id": 814}, "organization": {"id": 973}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 411}, "assignee": {"id": 572}, "organization": {"id": 653}, "project": {"owner": {"id": 774}, "assignee": {"id": 873}, "organization": {"id": 924}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"owner": {"id": 426}, "assignee": {"id": 547}, "organization": {"id": 630}, "project": {"owner": {"id": 786}, "assignee": {"id": 804}, "organization": {"id": 927}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 441}, "assignee": {"id": 582}, "organization": {"id": 117}, "project": {"owner": {"id": 767}, "assignee": {"id": 816}, "organization": {"id": 965}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 494}, "assignee": {"id": 592}, "organization": {"id": 135}, "project": {"owner": {"id": 747}, "assignee": {"id": 829}, "organization": {"id": 930}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 442}, "assignee": {"id": 542}, "organization": {"id": 162}, "project": {"owner": {"id": 754}, "assignee": {"id": 888}, "organization": {"id": 921}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 461}, "assignee": {"id": 564}, "organization": {"id": 615}, "project": {"owner": {"id": 714}, "assignee": {"id": 823}, "organization": {"id": 971}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 420}, "assignee": {"id": 551}, "organization": {"id": 675}, "project": {"owner": {"id": 785}, "assignee": {"id": 875}, "organization": {"id": 925}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"owner": {"id": 437}, "assignee": {"id": 595}, "organization": {"id": 647}, "project": {"owner": {"id": 715}, "assignee": {"id": 857}, "organization": {"id": 929}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 458}, "assignee": {"id": 565}, "organization": {"id": 161}, "project": {"owner": {"id": 742}, "assignee": {"id": 801}, "organization": {"id": 931}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 472}, "assignee": {"id": 583}, "organization": {"id": 163}, "project": {"owner": {"id": 787}, "assignee": {"id": 892}, "organization": {"id": 956}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 61, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 447}, "assignee": {"id": 597}, "organization": {"id": 199}, "project": {"owner": {"id": 782}, "assignee": {"id": 807}, "organization": {"id": 940}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 410}, "assignee": {"id": 558}, "organization": {"id": 638}, "project": {"owner": {"id": 726}, "assignee": {"id": 809}, "organization": {"id": 916}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 485}, "assignee": {"id": 538}, "organization": {"id": 627}, "project": {"owner": {"id": 738}, "assignee": {"id": 882}, "organization": {"id": 940}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"owner": {"id": 426}, "assignee": {"id": 544}, "organization": {"id": 631}, "project": {"owner": {"id": 764}, "assignee": {"id": 889}, "organization": {"id": 909}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 420}, "assignee": {"id": 506}, "organization": {"id": 125}, "project": {"owner": {"id": 734}, "assignee": {"id": 865}, "organization": {"id": 904}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 493}, "assignee": {"id": 524}, "organization": {"id": 112}, "project": {"owner": {"id": 775}, "assignee": {"id": 889}, "organization": {"id": 947}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 457}, "assignee": {"id": 582}, "organization": {"id": 148}, "project": {"owner": {"id": 753}, "assignee": {"id": 823}, "organization": {"id": 978}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 400}, "assignee": {"id": 566}, "organization": {"id": 668}, "project": {"owner": {"id": 740}, "assignee": {"id": 841}, "organization": {"id": 902}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 451}, "assignee": {"id": 573}, "organization": {"id": 697}, "project": {"owner": {"id": 734}, "assignee": {"id": 829}, "organization": {"id": 999}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"owner": {"id": 474}, "assignee": {"id": 582}, "organization": {"id": 634}, "project": {"owner": {"id": 734}, "assignee": {"id": 813}, "organization": {"id": 907}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_user_num_resources_0_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"owner": {"id": 460}, "assignee": {"id": 533}, "organization": {"id": 179}, "project": {"owner": {"id": 724}, "assignee": {"id": 844}, "organization": {"id": 935}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_user_num_resources_3_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"owner": {"id": 474}, "assignee": {"id": 519}, "organization": {"id": 127}, "project": {"owner": {"id": 700}, "assignee": {"id": 813}, "organization": {"id": 967}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_user_num_resources_10_same_org_TRUE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"owner": {"id": 409}, "assignee": {"id": 564}, "organization": {"id": 180}, "project": {"owner": {"id": 781}, "assignee": {"id": 878}, "organization": {"id": 953}}, "user": {"num_resources": 10}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_user_num_resources_0_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"owner": {"id": 431}, "assignee": {"id": 547}, "organization": {"id": 657}, "project": {"owner": {"id": 741}, "assignee": {"id": 826}, "organization": {"id": 967}}, "user": {"num_resources": 0}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_user_num_resources_3_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"owner": {"id": 439}, "assignee": {"id": 564}, "organization": {"id": 681}, "project": {"owner": {"id": 709}, "assignee": {"id": 812}, "organization": {"id": 911}}, "user": {"num_resources": 3}}} -} - -test_scope_CREATE_IN_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_user_num_resources_10_same_org_FALSE { - not allow with input as {"scope": "create@project", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"owner": {"id": 441}, "assignee": {"id": 591}, "organization": {"id": 663}, "project": {"owner": {"id": 704}, "assignee": {"id": 824}, "organization": {"id": 938}}, "user": {"num_resources": 10}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": null}, "resource": {"id": 373, "owner": {"id": 499}, "assignee": {"id": 545}, "organization": {"id": 613}, "project": {"owner": {"id": 17}, "assignee": {"id": 824}, "organization": {"id": 943}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": null}, "resource": {"id": 372, "owner": {"id": 407}, "assignee": {"id": 590}, "organization": {"id": 642}, "project": {"owner": {"id": 75}, "assignee": {"id": 894}, "organization": {"id": 938}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": null}, "resource": {"id": 346, "owner": {"id": 479}, "assignee": {"id": 538}, "organization": {"id": 669}, "project": {"owner": {"id": 18}, "assignee": {"id": 888}, "organization": {"id": 969}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": null}, "resource": {"id": 301, "owner": {"id": 417}, "assignee": {"id": 540}, "organization": {"id": 631}, "project": {"owner": {"id": 30}, "assignee": {"id": 832}, "organization": {"id": 920}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": null}, "resource": {"id": 335, "owner": {"id": 423}, "assignee": {"id": 555}, "organization": {"id": 644}, "project": {"owner": {"id": 95}, "assignee": {"id": 808}, "organization": {"id": 955}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": null}, "resource": {"id": 392, "owner": {"id": 454}, "assignee": {"id": 587}, "organization": {"id": 674}, "project": {"owner": {"id": 775}, "assignee": {"id": 10}, "organization": {"id": 986}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": null}, "resource": {"id": 312, "owner": {"id": 425}, "assignee": {"id": 524}, "organization": {"id": 690}, "project": {"owner": {"id": 704}, "assignee": {"id": 78}, "organization": {"id": 941}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": null}, "resource": {"id": 367, "owner": {"id": 479}, "assignee": {"id": 583}, "organization": {"id": 692}, "project": {"owner": {"id": 772}, "assignee": {"id": 45}, "organization": {"id": 929}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": null}, "resource": {"id": 338, "owner": {"id": 409}, "assignee": {"id": 590}, "organization": {"id": 632}, "project": {"owner": {"id": 703}, "assignee": {"id": 57}, "organization": {"id": 911}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": null}, "resource": {"id": 358, "owner": {"id": 473}, "assignee": {"id": 538}, "organization": {"id": 617}, "project": {"owner": {"id": 706}, "assignee": {"id": 97}, "organization": {"id": 960}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": null}, "resource": {"id": 335, "owner": {"id": 94}, "assignee": {"id": 514}, "organization": {"id": 675}, "project": {"owner": {"id": 732}, "assignee": {"id": 840}, "organization": {"id": 943}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": null}, "resource": {"id": 352, "owner": {"id": 17}, "assignee": {"id": 566}, "organization": {"id": 640}, "project": {"owner": {"id": 753}, "assignee": {"id": 858}, "organization": {"id": 901}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": null}, "resource": {"id": 396, "owner": {"id": 22}, "assignee": {"id": 539}, "organization": {"id": 663}, "project": {"owner": {"id": 797}, "assignee": {"id": 808}, "organization": {"id": 915}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 67, "privilege": "worker"}, "organization": null}, "resource": {"id": 331, "owner": {"id": 67}, "assignee": {"id": 539}, "organization": {"id": 648}, "project": {"owner": {"id": 784}, "assignee": {"id": 854}, "organization": {"id": 998}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": null}, "resource": {"id": 307, "owner": {"id": 34}, "assignee": {"id": 531}, "organization": {"id": 634}, "project": {"owner": {"id": 730}, "assignee": {"id": 897}, "organization": {"id": 958}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": null}, "resource": {"id": 333, "owner": {"id": 485}, "assignee": {"id": 15}, "organization": {"id": 640}, "project": {"owner": {"id": 799}, "assignee": {"id": 854}, "organization": {"id": 915}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": null}, "resource": {"id": 321, "owner": {"id": 465}, "assignee": {"id": 40}, "organization": {"id": 603}, "project": {"owner": {"id": 743}, "assignee": {"id": 803}, "organization": {"id": 963}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": null}, "resource": {"id": 383, "owner": {"id": 437}, "assignee": {"id": 17}, "organization": {"id": 648}, "project": {"owner": {"id": 702}, "assignee": {"id": 874}, "organization": {"id": 912}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": null}, "resource": {"id": 334, "owner": {"id": 419}, "assignee": {"id": 87}, "organization": {"id": 671}, "project": {"owner": {"id": 773}, "assignee": {"id": 845}, "organization": {"id": 919}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": null}, "resource": {"id": 335, "owner": {"id": 405}, "assignee": {"id": 46}, "organization": {"id": 693}, "project": {"owner": {"id": 749}, "assignee": {"id": 843}, "organization": {"id": 984}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": null}, "resource": {"id": 323, "owner": {"id": 410}, "assignee": {"id": 544}, "organization": {"id": 615}, "project": {"owner": {"id": 705}, "assignee": {"id": 801}, "organization": {"id": 917}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 81, "privilege": "business"}, "organization": null}, "resource": {"id": 320, "owner": {"id": 487}, "assignee": {"id": 588}, "organization": {"id": 658}, "project": {"owner": {"id": 785}, "assignee": {"id": 847}, "organization": {"id": 977}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": null}, "resource": {"id": 307, "owner": {"id": 455}, "assignee": {"id": 500}, "organization": {"id": 677}, "project": {"owner": {"id": 736}, "assignee": {"id": 808}, "organization": {"id": 959}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": null}, "resource": {"id": 397, "owner": {"id": 484}, "assignee": {"id": 541}, "organization": {"id": 605}, "project": {"owner": {"id": 787}, "assignee": {"id": 888}, "organization": {"id": 933}}}} -} - -test_scope_EXPORT_DATASET_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": null}, "resource": {"id": 306, "owner": {"id": 409}, "assignee": {"id": 520}, "organization": {"id": 635}, "project": {"owner": {"id": 773}, "assignee": {"id": 827}, "organization": {"id": 914}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 318, "owner": {"id": 433}, "assignee": {"id": 531}, "organization": {"id": 100}, "project": {"owner": {"id": 56}, "assignee": {"id": 801}, "organization": {"id": 934}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"id": 305, "owner": {"id": 461}, "assignee": {"id": 580}, "organization": {"id": 675}, "project": {"owner": {"id": 8}, "assignee": {"id": 849}, "organization": {"id": 944}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "owner": {"id": 450}, "assignee": {"id": 574}, "organization": {"id": 196}, "project": {"owner": {"id": 17}, "assignee": {"id": 889}, "organization": {"id": 975}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "owner": {"id": 499}, "assignee": {"id": 528}, "organization": {"id": 685}, "project": {"owner": {"id": 26}, "assignee": {"id": 820}, "organization": {"id": 960}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "owner": {"id": 415}, "assignee": {"id": 518}, "organization": {"id": 119}, "project": {"owner": {"id": 9}, "assignee": {"id": 861}, "organization": {"id": 923}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "owner": {"id": 403}, "assignee": {"id": 570}, "organization": {"id": 699}, "project": {"owner": {"id": 64}, "assignee": {"id": 858}, "organization": {"id": 984}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 375, "owner": {"id": 414}, "assignee": {"id": 547}, "organization": {"id": 143}, "project": {"owner": {"id": 23}, "assignee": {"id": 890}, "organization": {"id": 939}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 448}, "assignee": {"id": 502}, "organization": {"id": 600}, "project": {"owner": {"id": 0}, "assignee": {"id": 869}, "organization": {"id": 992}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 427}, "assignee": {"id": 552}, "organization": {"id": 103}, "project": {"owner": {"id": 26}, "assignee": {"id": 805}, "organization": {"id": 989}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 334, "owner": {"id": 409}, "assignee": {"id": 531}, "organization": {"id": 681}, "project": {"owner": {"id": 24}, "assignee": {"id": 843}, "organization": {"id": 983}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 365, "owner": {"id": 441}, "assignee": {"id": 555}, "organization": {"id": 177}, "project": {"owner": {"id": 86}, "assignee": {"id": 834}, "organization": {"id": 978}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 392, "owner": {"id": 456}, "assignee": {"id": 503}, "organization": {"id": 694}, "project": {"owner": {"id": 5}, "assignee": {"id": 805}, "organization": {"id": 954}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 448}, "assignee": {"id": 512}, "organization": {"id": 106}, "project": {"owner": {"id": 4}, "assignee": {"id": 831}, "organization": {"id": 956}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "owner": {"id": 475}, "assignee": {"id": 510}, "organization": {"id": 693}, "project": {"owner": {"id": 36}, "assignee": {"id": 862}, "organization": {"id": 939}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"id": 371, "owner": {"id": 456}, "assignee": {"id": 510}, "organization": {"id": 164}, "project": {"owner": {"id": 30}, "assignee": {"id": 881}, "organization": {"id": 948}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 455}, "assignee": {"id": 523}, "organization": {"id": 610}, "project": {"owner": {"id": 62}, "assignee": {"id": 861}, "organization": {"id": 990}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 394, "owner": {"id": 441}, "assignee": {"id": 532}, "organization": {"id": 167}, "project": {"owner": {"id": 15}, "assignee": {"id": 855}, "organization": {"id": 954}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 337, "owner": {"id": 497}, "assignee": {"id": 569}, "organization": {"id": 692}, "project": {"owner": {"id": 35}, "assignee": {"id": 839}, "organization": {"id": 908}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 446}, "assignee": {"id": 529}, "organization": {"id": 193}, "project": {"owner": {"id": 92}, "assignee": {"id": 832}, "organization": {"id": 913}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 464}, "assignee": {"id": 560}, "organization": {"id": 622}, "project": {"owner": {"id": 33}, "assignee": {"id": 826}, "organization": {"id": 990}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 322, "owner": {"id": 410}, "assignee": {"id": 581}, "organization": {"id": 173}, "project": {"owner": {"id": 28}, "assignee": {"id": 826}, "organization": {"id": 991}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 367, "owner": {"id": 420}, "assignee": {"id": 515}, "organization": {"id": 640}, "project": {"owner": {"id": 59}, "assignee": {"id": 803}, "organization": {"id": 901}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "owner": {"id": 417}, "assignee": {"id": 584}, "organization": {"id": 165}, "project": {"owner": {"id": 34}, "assignee": {"id": 837}, "organization": {"id": 991}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "owner": {"id": 444}, "assignee": {"id": 553}, "organization": {"id": 658}, "project": {"owner": {"id": 85}, "assignee": {"id": 809}, "organization": {"id": 946}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 459}, "assignee": {"id": 583}, "organization": {"id": 140}, "project": {"owner": {"id": 37}, "assignee": {"id": 849}, "organization": {"id": 900}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "owner": {"id": 475}, "assignee": {"id": 529}, "organization": {"id": 673}, "project": {"owner": {"id": 87}, "assignee": {"id": 812}, "organization": {"id": 951}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 347, "owner": {"id": 456}, "assignee": {"id": 583}, "organization": {"id": 151}, "project": {"owner": {"id": 96}, "assignee": {"id": 885}, "organization": {"id": 957}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 492}, "assignee": {"id": 555}, "organization": {"id": 649}, "project": {"owner": {"id": 50}, "assignee": {"id": 832}, "organization": {"id": 961}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 345, "owner": {"id": 416}, "assignee": {"id": 501}, "organization": {"id": 117}, "project": {"owner": {"id": 82}, "assignee": {"id": 894}, "organization": {"id": 943}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 355, "owner": {"id": 439}, "assignee": {"id": 542}, "organization": {"id": 641}, "project": {"owner": {"id": 46}, "assignee": {"id": 809}, "organization": {"id": 962}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 479}, "assignee": {"id": 568}, "organization": {"id": 171}, "project": {"owner": {"id": 75}, "assignee": {"id": 867}, "organization": {"id": 917}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 362, "owner": {"id": 418}, "assignee": {"id": 559}, "organization": {"id": 646}, "project": {"owner": {"id": 18}, "assignee": {"id": 894}, "organization": {"id": 935}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "owner": {"id": 409}, "assignee": {"id": 587}, "organization": {"id": 153}, "project": {"owner": {"id": 5}, "assignee": {"id": 846}, "organization": {"id": 988}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 67, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 321, "owner": {"id": 476}, "assignee": {"id": 568}, "organization": {"id": 659}, "project": {"owner": {"id": 67}, "assignee": {"id": 829}, "organization": {"id": 982}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "owner": {"id": 404}, "assignee": {"id": 507}, "organization": {"id": 155}, "project": {"owner": {"id": 53}, "assignee": {"id": 817}, "organization": {"id": 939}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "owner": {"id": 404}, "assignee": {"id": 531}, "organization": {"id": 620}, "project": {"owner": {"id": 7}, "assignee": {"id": 832}, "organization": {"id": 931}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 369, "owner": {"id": 489}, "assignee": {"id": 524}, "organization": {"id": 113}, "project": {"owner": {"id": 10}, "assignee": {"id": 830}, "organization": {"id": 902}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 365, "owner": {"id": 433}, "assignee": {"id": 585}, "organization": {"id": 602}, "project": {"owner": {"id": 64}, "assignee": {"id": 845}, "organization": {"id": 932}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 466}, "assignee": {"id": 563}, "organization": {"id": 145}, "project": {"owner": {"id": 37}, "assignee": {"id": 817}, "organization": {"id": 989}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 372, "owner": {"id": 450}, "assignee": {"id": 513}, "organization": {"id": 643}, "project": {"owner": {"id": 52}, "assignee": {"id": 835}, "organization": {"id": 924}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 444}, "assignee": {"id": 558}, "organization": {"id": 157}, "project": {"owner": {"id": 9}, "assignee": {"id": 827}, "organization": {"id": 940}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 369, "owner": {"id": 425}, "assignee": {"id": 583}, "organization": {"id": 664}, "project": {"owner": {"id": 84}, "assignee": {"id": 891}, "organization": {"id": 911}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "owner": {"id": 450}, "assignee": {"id": 554}, "organization": {"id": 169}, "project": {"owner": {"id": 26}, "assignee": {"id": 831}, "organization": {"id": 984}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "owner": {"id": 445}, "assignee": {"id": 590}, "organization": {"id": 695}, "project": {"owner": {"id": 32}, "assignee": {"id": 855}, "organization": {"id": 985}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 468}, "assignee": {"id": 518}, "organization": {"id": 115}, "project": {"owner": {"id": 88}, "assignee": {"id": 849}, "organization": {"id": 905}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "owner": {"id": 495}, "assignee": {"id": 574}, "organization": {"id": 614}, "project": {"owner": {"id": 16}, "assignee": {"id": 894}, "organization": {"id": 955}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 377, "owner": {"id": 439}, "assignee": {"id": 581}, "organization": {"id": 125}, "project": {"owner": {"id": 75}, "assignee": {"id": 890}, "organization": {"id": 921}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 387, "owner": {"id": 468}, "assignee": {"id": 536}, "organization": {"id": 617}, "project": {"owner": {"id": 14}, "assignee": {"id": 867}, "organization": {"id": 946}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 424}, "assignee": {"id": 555}, "organization": {"id": 111}, "project": {"owner": {"id": 6}, "assignee": {"id": 893}, "organization": {"id": 977}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 316, "owner": {"id": 483}, "assignee": {"id": 563}, "organization": {"id": 609}, "project": {"owner": {"id": 86}, "assignee": {"id": 897}, "organization": {"id": 907}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 392, "owner": {"id": 494}, "assignee": {"id": 586}, "organization": {"id": 158}, "project": {"owner": {"id": 701}, "assignee": {"id": 84}, "organization": {"id": 969}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 312, "owner": {"id": 416}, "assignee": {"id": 515}, "organization": {"id": 699}, "project": {"owner": {"id": 746}, "assignee": {"id": 73}, "organization": {"id": 909}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "owner": {"id": 445}, "assignee": {"id": 593}, "organization": {"id": 153}, "project": {"owner": {"id": 721}, "assignee": {"id": 34}, "organization": {"id": 992}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 419}, "assignee": {"id": 504}, "organization": {"id": 612}, "project": {"owner": {"id": 750}, "assignee": {"id": 52}, "organization": {"id": 954}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "owner": {"id": 477}, "assignee": {"id": 527}, "organization": {"id": 136}, "project": {"owner": {"id": 745}, "assignee": {"id": 19}, "organization": {"id": 966}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 416}, "assignee": {"id": 549}, "organization": {"id": 616}, "project": {"owner": {"id": 741}, "assignee": {"id": 68}, "organization": {"id": 986}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 301, "owner": {"id": 430}, "assignee": {"id": 506}, "organization": {"id": 196}, "project": {"owner": {"id": 763}, "assignee": {"id": 76}, "organization": {"id": 940}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 36, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 336, "owner": {"id": 408}, "assignee": {"id": 586}, "organization": {"id": 635}, "project": {"owner": {"id": 720}, "assignee": {"id": 36}, "organization": {"id": 918}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 496}, "assignee": {"id": 544}, "organization": {"id": 197}, "project": {"owner": {"id": 762}, "assignee": {"id": 1}, "organization": {"id": 947}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 376, "owner": {"id": 427}, "assignee": {"id": 594}, "organization": {"id": 631}, "project": {"owner": {"id": 723}, "assignee": {"id": 74}, "organization": {"id": 906}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 377, "owner": {"id": 459}, "assignee": {"id": 503}, "organization": {"id": 125}, "project": {"owner": {"id": 733}, "assignee": {"id": 38}, "organization": {"id": 900}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 479}, "assignee": {"id": 501}, "organization": {"id": 659}, "project": {"owner": {"id": 761}, "assignee": {"id": 71}, "organization": {"id": 985}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "owner": {"id": 442}, "assignee": {"id": 589}, "organization": {"id": 160}, "project": {"owner": {"id": 730}, "assignee": {"id": 62}, "organization": {"id": 996}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 428}, "assignee": {"id": 562}, "organization": {"id": 655}, "project": {"owner": {"id": 745}, "assignee": {"id": 56}, "organization": {"id": 932}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "owner": {"id": 416}, "assignee": {"id": 556}, "organization": {"id": 139}, "project": {"owner": {"id": 760}, "assignee": {"id": 41}, "organization": {"id": 943}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 436}, "assignee": {"id": 559}, "organization": {"id": 612}, "project": {"owner": {"id": 723}, "assignee": {"id": 54}, "organization": {"id": 952}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 387, "owner": {"id": 431}, "assignee": {"id": 574}, "organization": {"id": 177}, "project": {"owner": {"id": 798}, "assignee": {"id": 16}, "organization": {"id": 995}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 322, "owner": {"id": 459}, "assignee": {"id": 590}, "organization": {"id": 606}, "project": {"owner": {"id": 717}, "assignee": {"id": 7}, "organization": {"id": 944}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 326, "owner": {"id": 432}, "assignee": {"id": 528}, "organization": {"id": 120}, "project": {"owner": {"id": 731}, "assignee": {"id": 55}, "organization": {"id": 906}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 379, "owner": {"id": 494}, "assignee": {"id": 569}, "organization": {"id": 678}, "project": {"owner": {"id": 782}, "assignee": {"id": 23}, "organization": {"id": 964}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 424}, "assignee": {"id": 527}, "organization": {"id": 177}, "project": {"owner": {"id": 772}, "assignee": {"id": 77}, "organization": {"id": 916}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 328, "owner": {"id": 457}, "assignee": {"id": 514}, "organization": {"id": 688}, "project": {"owner": {"id": 776}, "assignee": {"id": 56}, "organization": {"id": 918}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "owner": {"id": 472}, "assignee": {"id": 589}, "organization": {"id": 136}, "project": {"owner": {"id": 740}, "assignee": {"id": 11}, "organization": {"id": 985}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "owner": {"id": 494}, "assignee": {"id": 511}, "organization": {"id": 653}, "project": {"owner": {"id": 786}, "assignee": {"id": 4}, "organization": {"id": 922}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 492}, "assignee": {"id": 586}, "organization": {"id": 191}, "project": {"owner": {"id": 776}, "assignee": {"id": 0}, "organization": {"id": 905}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "owner": {"id": 424}, "assignee": {"id": 550}, "organization": {"id": 632}, "project": {"owner": {"id": 727}, "assignee": {"id": 37}, "organization": {"id": 934}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 320, "owner": {"id": 495}, "assignee": {"id": 599}, "organization": {"id": 118}, "project": {"owner": {"id": 753}, "assignee": {"id": 32}, "organization": {"id": 911}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 388, "owner": {"id": 497}, "assignee": {"id": 590}, "organization": {"id": 600}, "project": {"owner": {"id": 780}, "assignee": {"id": 80}, "organization": {"id": 959}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 356, "owner": {"id": 450}, "assignee": {"id": 591}, "organization": {"id": 165}, "project": {"owner": {"id": 730}, "assignee": {"id": 59}, "organization": {"id": 920}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 380, "owner": {"id": 464}, "assignee": {"id": 557}, "organization": {"id": 669}, "project": {"owner": {"id": 740}, "assignee": {"id": 13}, "organization": {"id": 961}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 327, "owner": {"id": 424}, "assignee": {"id": 569}, "organization": {"id": 105}, "project": {"owner": {"id": 747}, "assignee": {"id": 1}, "organization": {"id": 905}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 305, "owner": {"id": 407}, "assignee": {"id": 585}, "organization": {"id": 654}, "project": {"owner": {"id": 727}, "assignee": {"id": 43}, "organization": {"id": 917}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "owner": {"id": 482}, "assignee": {"id": 560}, "organization": {"id": 170}, "project": {"owner": {"id": 742}, "assignee": {"id": 47}, "organization": {"id": 951}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "owner": {"id": 461}, "assignee": {"id": 521}, "organization": {"id": 670}, "project": {"owner": {"id": 784}, "assignee": {"id": 83}, "organization": {"id": 959}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "owner": {"id": 435}, "assignee": {"id": 553}, "organization": {"id": 136}, "project": {"owner": {"id": 727}, "assignee": {"id": 91}, "organization": {"id": 923}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 483}, "assignee": {"id": 597}, "organization": {"id": 685}, "project": {"owner": {"id": 752}, "assignee": {"id": 98}, "organization": {"id": 936}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 337, "owner": {"id": 495}, "assignee": {"id": 552}, "organization": {"id": 140}, "project": {"owner": {"id": 725}, "assignee": {"id": 59}, "organization": {"id": 915}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 326, "owner": {"id": 440}, "assignee": {"id": 596}, "organization": {"id": 608}, "project": {"owner": {"id": 765}, "assignee": {"id": 93}, "organization": {"id": 913}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 372, "owner": {"id": 486}, "assignee": {"id": 549}, "organization": {"id": 152}, "project": {"owner": {"id": 790}, "assignee": {"id": 74}, "organization": {"id": 946}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 352, "owner": {"id": 401}, "assignee": {"id": 505}, "organization": {"id": 681}, "project": {"owner": {"id": 798}, "assignee": {"id": 28}, "organization": {"id": 990}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 419}, "assignee": {"id": 523}, "organization": {"id": 132}, "project": {"owner": {"id": 750}, "assignee": {"id": 66}, "organization": {"id": 934}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 317, "owner": {"id": 411}, "assignee": {"id": 501}, "organization": {"id": 672}, "project": {"owner": {"id": 720}, "assignee": {"id": 41}, "organization": {"id": 916}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "owner": {"id": 443}, "assignee": {"id": 545}, "organization": {"id": 125}, "project": {"owner": {"id": 775}, "assignee": {"id": 92}, "organization": {"id": 947}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 416}, "assignee": {"id": 529}, "organization": {"id": 662}, "project": {"owner": {"id": 750}, "assignee": {"id": 34}, "organization": {"id": 905}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 454}, "assignee": {"id": 539}, "organization": {"id": 105}, "project": {"owner": {"id": 707}, "assignee": {"id": 60}, "organization": {"id": 979}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 428}, "assignee": {"id": 562}, "organization": {"id": 619}, "project": {"owner": {"id": 722}, "assignee": {"id": 18}, "organization": {"id": 971}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 379, "owner": {"id": 499}, "assignee": {"id": 525}, "organization": {"id": 185}, "project": {"owner": {"id": 781}, "assignee": {"id": 39}, "organization": {"id": 919}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 377, "owner": {"id": 419}, "assignee": {"id": 521}, "organization": {"id": 677}, "project": {"owner": {"id": 781}, "assignee": {"id": 11}, "organization": {"id": 904}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 439}, "assignee": {"id": 572}, "organization": {"id": 158}, "project": {"owner": {"id": 717}, "assignee": {"id": 3}, "organization": {"id": 933}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 386, "owner": {"id": 482}, "assignee": {"id": 585}, "organization": {"id": 675}, "project": {"owner": {"id": 742}, "assignee": {"id": 6}, "organization": {"id": 977}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 368, "owner": {"id": 51}, "assignee": {"id": 584}, "organization": {"id": 158}, "project": {"owner": {"id": 737}, "assignee": {"id": 896}, "organization": {"id": 963}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 379, "owner": {"id": 38}, "assignee": {"id": 506}, "organization": {"id": 656}, "project": {"owner": {"id": 764}, "assignee": {"id": 819}, "organization": {"id": 939}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "owner": {"id": 55}, "assignee": {"id": 577}, "organization": {"id": 187}, "project": {"owner": {"id": 788}, "assignee": {"id": 871}, "organization": {"id": 928}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "owner": {"id": 64}, "assignee": {"id": 581}, "organization": {"id": 639}, "project": {"owner": {"id": 726}, "assignee": {"id": 866}, "organization": {"id": 952}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "owner": {"id": 74}, "assignee": {"id": 593}, "organization": {"id": 123}, "project": {"owner": {"id": 767}, "assignee": {"id": 841}, "organization": {"id": 942}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 48}, "assignee": {"id": 521}, "organization": {"id": 673}, "project": {"owner": {"id": 761}, "assignee": {"id": 823}, "organization": {"id": 948}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 318, "owner": {"id": 20}, "assignee": {"id": 599}, "organization": {"id": 162}, "project": {"owner": {"id": 741}, "assignee": {"id": 857}, "organization": {"id": 994}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 380, "owner": {"id": 91}, "assignee": {"id": 591}, "organization": {"id": 652}, "project": {"owner": {"id": 769}, "assignee": {"id": 891}, "organization": {"id": 977}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 99}, "assignee": {"id": 587}, "organization": {"id": 186}, "project": {"owner": {"id": 759}, "assignee": {"id": 822}, "organization": {"id": 924}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 330, "owner": {"id": 13}, "assignee": {"id": 581}, "organization": {"id": 632}, "project": {"owner": {"id": 755}, "assignee": {"id": 853}, "organization": {"id": 950}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 312, "owner": {"id": 69}, "assignee": {"id": 576}, "organization": {"id": 106}, "project": {"owner": {"id": 795}, "assignee": {"id": 849}, "organization": {"id": 911}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 94, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 365, "owner": {"id": 94}, "assignee": {"id": 521}, "organization": {"id": 664}, "project": {"owner": {"id": 770}, "assignee": {"id": 849}, "organization": {"id": 996}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 389, "owner": {"id": 77}, "assignee": {"id": 560}, "organization": {"id": 132}, "project": {"owner": {"id": 721}, "assignee": {"id": 834}, "organization": {"id": 932}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "owner": {"id": 46}, "assignee": {"id": 587}, "organization": {"id": 697}, "project": {"owner": {"id": 783}, "assignee": {"id": 886}, "organization": {"id": 979}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "owner": {"id": 85}, "assignee": {"id": 590}, "organization": {"id": 138}, "project": {"owner": {"id": 753}, "assignee": {"id": 811}, "organization": {"id": 929}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 12}, "assignee": {"id": 569}, "organization": {"id": 629}, "project": {"owner": {"id": 789}, "assignee": {"id": 883}, "organization": {"id": 930}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 369, "owner": {"id": 34}, "assignee": {"id": 515}, "organization": {"id": 160}, "project": {"owner": {"id": 774}, "assignee": {"id": 894}, "organization": {"id": 924}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 77}, "assignee": {"id": 517}, "organization": {"id": 682}, "project": {"owner": {"id": 726}, "assignee": {"id": 863}, "organization": {"id": 963}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 378, "owner": {"id": 20}, "assignee": {"id": 500}, "organization": {"id": 103}, "project": {"owner": {"id": 799}, "assignee": {"id": 886}, "organization": {"id": 920}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 3}, "assignee": {"id": 512}, "organization": {"id": 664}, "project": {"owner": {"id": 797}, "assignee": {"id": 846}, "organization": {"id": 923}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 319, "owner": {"id": 9}, "assignee": {"id": 574}, "organization": {"id": 124}, "project": {"owner": {"id": 746}, "assignee": {"id": 819}, "organization": {"id": 927}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 350, "owner": {"id": 37}, "assignee": {"id": 597}, "organization": {"id": 687}, "project": {"owner": {"id": 727}, "assignee": {"id": 886}, "organization": {"id": 908}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "owner": {"id": 23}, "assignee": {"id": 522}, "organization": {"id": 131}, "project": {"owner": {"id": 721}, "assignee": {"id": 862}, "organization": {"id": 905}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "owner": {"id": 23}, "assignee": {"id": 554}, "organization": {"id": 661}, "project": {"owner": {"id": 723}, "assignee": {"id": 804}, "organization": {"id": 914}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "owner": {"id": 62}, "assignee": {"id": 531}, "organization": {"id": 181}, "project": {"owner": {"id": 784}, "assignee": {"id": 898}, "organization": {"id": 958}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "owner": {"id": 0}, "assignee": {"id": 589}, "organization": {"id": 688}, "project": {"owner": {"id": 701}, "assignee": {"id": 800}, "organization": {"id": 989}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 383, "owner": {"id": 48}, "assignee": {"id": 581}, "organization": {"id": 143}, "project": {"owner": {"id": 795}, "assignee": {"id": 810}, "organization": {"id": 959}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 396, "owner": {"id": 27}, "assignee": {"id": 537}, "organization": {"id": 639}, "project": {"owner": {"id": 767}, "assignee": {"id": 830}, "organization": {"id": 932}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 361, "owner": {"id": 63}, "assignee": {"id": 547}, "organization": {"id": 138}, "project": {"owner": {"id": 740}, "assignee": {"id": 836}, "organization": {"id": 992}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 379, "owner": {"id": 88}, "assignee": {"id": 514}, "organization": {"id": 659}, "project": {"owner": {"id": 780}, "assignee": {"id": 807}, "organization": {"id": 991}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 32}, "assignee": {"id": 561}, "organization": {"id": 106}, "project": {"owner": {"id": 768}, "assignee": {"id": 823}, "organization": {"id": 904}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 379, "owner": {"id": 69}, "assignee": {"id": 584}, "organization": {"id": 693}, "project": {"owner": {"id": 792}, "assignee": {"id": 866}, "organization": {"id": 901}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "owner": {"id": 26}, "assignee": {"id": 591}, "organization": {"id": 121}, "project": {"owner": {"id": 782}, "assignee": {"id": 814}, "organization": {"id": 922}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 90}, "assignee": {"id": 587}, "organization": {"id": 601}, "project": {"owner": {"id": 703}, "assignee": {"id": 847}, "organization": {"id": 976}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 94}, "assignee": {"id": 509}, "organization": {"id": 196}, "project": {"owner": {"id": 729}, "assignee": {"id": 817}, "organization": {"id": 987}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 83}, "assignee": {"id": 557}, "organization": {"id": 649}, "project": {"owner": {"id": 720}, "assignee": {"id": 846}, "organization": {"id": 918}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 311, "owner": {"id": 44}, "assignee": {"id": 514}, "organization": {"id": 192}, "project": {"owner": {"id": 755}, "assignee": {"id": 859}, "organization": {"id": 972}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 321, "owner": {"id": 86}, "assignee": {"id": 595}, "organization": {"id": 627}, "project": {"owner": {"id": 721}, "assignee": {"id": 849}, "organization": {"id": 963}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 395, "owner": {"id": 14}, "assignee": {"id": 510}, "organization": {"id": 155}, "project": {"owner": {"id": 757}, "assignee": {"id": 864}, "organization": {"id": 914}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 394, "owner": {"id": 22}, "assignee": {"id": 552}, "organization": {"id": 694}, "project": {"owner": {"id": 717}, "assignee": {"id": 876}, "organization": {"id": 900}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 55}, "assignee": {"id": 564}, "organization": {"id": 156}, "project": {"owner": {"id": 732}, "assignee": {"id": 896}, "organization": {"id": 921}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 399, "owner": {"id": 38}, "assignee": {"id": 521}, "organization": {"id": 621}, "project": {"owner": {"id": 705}, "assignee": {"id": 878}, "organization": {"id": 973}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "owner": {"id": 1}, "assignee": {"id": 526}, "organization": {"id": 146}, "project": {"owner": {"id": 702}, "assignee": {"id": 836}, "organization": {"id": 986}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 85}, "assignee": {"id": 566}, "organization": {"id": 635}, "project": {"owner": {"id": 799}, "assignee": {"id": 809}, "organization": {"id": 907}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "owner": {"id": 40}, "assignee": {"id": 540}, "organization": {"id": 120}, "project": {"owner": {"id": 767}, "assignee": {"id": 833}, "organization": {"id": 964}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "owner": {"id": 64}, "assignee": {"id": 562}, "organization": {"id": 657}, "project": {"owner": {"id": 707}, "assignee": {"id": 829}, "organization": {"id": 963}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 83}, "assignee": {"id": 562}, "organization": {"id": 192}, "project": {"owner": {"id": 793}, "assignee": {"id": 800}, "organization": {"id": 971}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 303, "owner": {"id": 5}, "assignee": {"id": 557}, "organization": {"id": 650}, "project": {"owner": {"id": 734}, "assignee": {"id": 884}, "organization": {"id": 937}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 329, "owner": {"id": 20}, "assignee": {"id": 541}, "organization": {"id": 156}, "project": {"owner": {"id": 700}, "assignee": {"id": 810}, "organization": {"id": 963}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 70}, "assignee": {"id": 576}, "organization": {"id": 656}, "project": {"owner": {"id": 731}, "assignee": {"id": 892}, "organization": {"id": 917}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 415}, "assignee": {"id": 46}, "organization": {"id": 113}, "project": {"owner": {"id": 730}, "assignee": {"id": 816}, "organization": {"id": 901}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 396, "owner": {"id": 420}, "assignee": {"id": 25}, "organization": {"id": 624}, "project": {"owner": {"id": 732}, "assignee": {"id": 803}, "organization": {"id": 954}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "owner": {"id": 409}, "assignee": {"id": 22}, "organization": {"id": 138}, "project": {"owner": {"id": 705}, "assignee": {"id": 846}, "organization": {"id": 903}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 440}, "assignee": {"id": 91}, "organization": {"id": 608}, "project": {"owner": {"id": 786}, "assignee": {"id": 860}, "organization": {"id": 981}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 492}, "assignee": {"id": 34}, "organization": {"id": 169}, "project": {"owner": {"id": 706}, "assignee": {"id": 885}, "organization": {"id": 950}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "owner": {"id": 472}, "assignee": {"id": 80}, "organization": {"id": 665}, "project": {"owner": {"id": 771}, "assignee": {"id": 851}, "organization": {"id": 924}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 320, "owner": {"id": 432}, "assignee": {"id": 3}, "organization": {"id": 139}, "project": {"owner": {"id": 794}, "assignee": {"id": 884}, "organization": {"id": 977}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 338, "owner": {"id": 469}, "assignee": {"id": 66}, "organization": {"id": 610}, "project": {"owner": {"id": 731}, "assignee": {"id": 869}, "organization": {"id": 984}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 415}, "assignee": {"id": 52}, "organization": {"id": 163}, "project": {"owner": {"id": 735}, "assignee": {"id": 842}, "organization": {"id": 989}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 459}, "assignee": {"id": 16}, "organization": {"id": 653}, "project": {"owner": {"id": 709}, "assignee": {"id": 874}, "organization": {"id": 943}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 351, "owner": {"id": 494}, "assignee": {"id": 19}, "organization": {"id": 112}, "project": {"owner": {"id": 761}, "assignee": {"id": 804}, "organization": {"id": 972}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 439}, "assignee": {"id": 5}, "organization": {"id": 609}, "project": {"owner": {"id": 761}, "assignee": {"id": 859}, "organization": {"id": 997}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "owner": {"id": 426}, "assignee": {"id": 29}, "organization": {"id": 139}, "project": {"owner": {"id": 732}, "assignee": {"id": 890}, "organization": {"id": 944}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "owner": {"id": 420}, "assignee": {"id": 24}, "organization": {"id": 658}, "project": {"owner": {"id": 784}, "assignee": {"id": 817}, "organization": {"id": 941}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 479}, "assignee": {"id": 23}, "organization": {"id": 168}, "project": {"owner": {"id": 775}, "assignee": {"id": 882}, "organization": {"id": 988}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "owner": {"id": 472}, "assignee": {"id": 64}, "organization": {"id": 660}, "project": {"owner": {"id": 730}, "assignee": {"id": 846}, "organization": {"id": 990}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 421}, "assignee": {"id": 92}, "organization": {"id": 143}, "project": {"owner": {"id": 724}, "assignee": {"id": 827}, "organization": {"id": 980}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 487}, "assignee": {"id": 3}, "organization": {"id": 602}, "project": {"owner": {"id": 720}, "assignee": {"id": 889}, "organization": {"id": 932}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 373, "owner": {"id": 464}, "assignee": {"id": 77}, "organization": {"id": 167}, "project": {"owner": {"id": 754}, "assignee": {"id": 825}, "organization": {"id": 991}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 398, "owner": {"id": 449}, "assignee": {"id": 86}, "organization": {"id": 668}, "project": {"owner": {"id": 736}, "assignee": {"id": 834}, "organization": {"id": 917}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 374, "owner": {"id": 471}, "assignee": {"id": 86}, "organization": {"id": 144}, "project": {"owner": {"id": 792}, "assignee": {"id": 897}, "organization": {"id": 950}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 390, "owner": {"id": 430}, "assignee": {"id": 53}, "organization": {"id": 609}, "project": {"owner": {"id": 770}, "assignee": {"id": 893}, "organization": {"id": 970}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 421}, "assignee": {"id": 30}, "organization": {"id": 139}, "project": {"owner": {"id": 731}, "assignee": {"id": 842}, "organization": {"id": 928}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "owner": {"id": 480}, "assignee": {"id": 24}, "organization": {"id": 607}, "project": {"owner": {"id": 713}, "assignee": {"id": 852}, "organization": {"id": 954}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "owner": {"id": 407}, "assignee": {"id": 47}, "organization": {"id": 150}, "project": {"owner": {"id": 788}, "assignee": {"id": 817}, "organization": {"id": 911}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "owner": {"id": 432}, "assignee": {"id": 51}, "organization": {"id": 643}, "project": {"owner": {"id": 722}, "assignee": {"id": 853}, "organization": {"id": 927}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 371, "owner": {"id": 453}, "assignee": {"id": 4}, "organization": {"id": 136}, "project": {"owner": {"id": 724}, "assignee": {"id": 846}, "organization": {"id": 958}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 334, "owner": {"id": 446}, "assignee": {"id": 39}, "organization": {"id": 691}, "project": {"owner": {"id": 715}, "assignee": {"id": 894}, "organization": {"id": 983}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"id": 337, "owner": {"id": 418}, "assignee": {"id": 33}, "organization": {"id": 173}, "project": {"owner": {"id": 713}, "assignee": {"id": 859}, "organization": {"id": 943}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 337, "owner": {"id": 472}, "assignee": {"id": 97}, "organization": {"id": 661}, "project": {"owner": {"id": 782}, "assignee": {"id": 836}, "organization": {"id": 921}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 370, "owner": {"id": 468}, "assignee": {"id": 38}, "organization": {"id": 148}, "project": {"owner": {"id": 722}, "assignee": {"id": 880}, "organization": {"id": 998}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 414}, "assignee": {"id": 15}, "organization": {"id": 609}, "project": {"owner": {"id": 720}, "assignee": {"id": 879}, "organization": {"id": 914}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "owner": {"id": 462}, "assignee": {"id": 49}, "organization": {"id": 136}, "project": {"owner": {"id": 722}, "assignee": {"id": 832}, "organization": {"id": 984}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "owner": {"id": 476}, "assignee": {"id": 93}, "organization": {"id": 656}, "project": {"owner": {"id": 722}, "assignee": {"id": 832}, "organization": {"id": 956}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "owner": {"id": 483}, "assignee": {"id": 97}, "organization": {"id": 182}, "project": {"owner": {"id": 767}, "assignee": {"id": 863}, "organization": {"id": 947}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "owner": {"id": 446}, "assignee": {"id": 15}, "organization": {"id": 600}, "project": {"owner": {"id": 707}, "assignee": {"id": 859}, "organization": {"id": 940}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 383, "owner": {"id": 409}, "assignee": {"id": 22}, "organization": {"id": 187}, "project": {"owner": {"id": 735}, "assignee": {"id": 861}, "organization": {"id": 972}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 306, "owner": {"id": 443}, "assignee": {"id": 94}, "organization": {"id": 671}, "project": {"owner": {"id": 721}, "assignee": {"id": 833}, "organization": {"id": 941}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 303, "owner": {"id": 492}, "assignee": {"id": 38}, "organization": {"id": 130}, "project": {"owner": {"id": 717}, "assignee": {"id": 832}, "organization": {"id": 951}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 361, "owner": {"id": 468}, "assignee": {"id": 26}, "organization": {"id": 687}, "project": {"owner": {"id": 749}, "assignee": {"id": 821}, "organization": {"id": 939}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 381, "owner": {"id": 409}, "assignee": {"id": 53}, "organization": {"id": 194}, "project": {"owner": {"id": 753}, "assignee": {"id": 801}, "organization": {"id": 954}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 375, "owner": {"id": 449}, "assignee": {"id": 80}, "organization": {"id": 692}, "project": {"owner": {"id": 703}, "assignee": {"id": 848}, "organization": {"id": 976}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 457}, "assignee": {"id": 66}, "organization": {"id": 162}, "project": {"owner": {"id": 713}, "assignee": {"id": 818}, "organization": {"id": 908}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 389, "owner": {"id": 480}, "assignee": {"id": 9}, "organization": {"id": 649}, "project": {"owner": {"id": 743}, "assignee": {"id": 801}, "organization": {"id": 954}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "owner": {"id": 410}, "assignee": {"id": 21}, "organization": {"id": 140}, "project": {"owner": {"id": 701}, "assignee": {"id": 813}, "organization": {"id": 913}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "owner": {"id": 493}, "assignee": {"id": 32}, "organization": {"id": 610}, "project": {"owner": {"id": 753}, "assignee": {"id": 805}, "organization": {"id": 900}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 323, "owner": {"id": 461}, "assignee": {"id": 65}, "organization": {"id": 129}, "project": {"owner": {"id": 779}, "assignee": {"id": 869}, "organization": {"id": 953}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 317, "owner": {"id": 414}, "assignee": {"id": 33}, "organization": {"id": 607}, "project": {"owner": {"id": 770}, "assignee": {"id": 850}, "organization": {"id": 910}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 378, "owner": {"id": 470}, "assignee": {"id": 79}, "organization": {"id": 150}, "project": {"owner": {"id": 747}, "assignee": {"id": 804}, "organization": {"id": 959}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 479}, "assignee": {"id": 33}, "organization": {"id": 681}, "project": {"owner": {"id": 796}, "assignee": {"id": 857}, "organization": {"id": 964}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 307, "owner": {"id": 482}, "assignee": {"id": 508}, "organization": {"id": 132}, "project": {"owner": {"id": 710}, "assignee": {"id": 835}, "organization": {"id": 934}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 482}, "assignee": {"id": 560}, "organization": {"id": 628}, "project": {"owner": {"id": 762}, "assignee": {"id": 821}, "organization": {"id": 931}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "owner": {"id": 491}, "assignee": {"id": 545}, "organization": {"id": 141}, "project": {"owner": {"id": 747}, "assignee": {"id": 821}, "organization": {"id": 966}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "owner": {"id": 490}, "assignee": {"id": 576}, "organization": {"id": 634}, "project": {"owner": {"id": 758}, "assignee": {"id": 841}, "organization": {"id": 984}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "owner": {"id": 496}, "assignee": {"id": 562}, "organization": {"id": 175}, "project": {"owner": {"id": 797}, "assignee": {"id": 877}, "organization": {"id": 964}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 443}, "assignee": {"id": 540}, "organization": {"id": 663}, "project": {"owner": {"id": 761}, "assignee": {"id": 873}, "organization": {"id": 960}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 368, "owner": {"id": 426}, "assignee": {"id": 549}, "organization": {"id": 192}, "project": {"owner": {"id": 755}, "assignee": {"id": 802}, "organization": {"id": 960}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 312, "owner": {"id": 405}, "assignee": {"id": 547}, "organization": {"id": 675}, "project": {"owner": {"id": 727}, "assignee": {"id": 877}, "organization": {"id": 934}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 7, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 313, "owner": {"id": 440}, "assignee": {"id": 500}, "organization": {"id": 130}, "project": {"owner": {"id": 735}, "assignee": {"id": 829}, "organization": {"id": 972}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 355, "owner": {"id": 494}, "assignee": {"id": 503}, "organization": {"id": 617}, "project": {"owner": {"id": 767}, "assignee": {"id": 845}, "organization": {"id": 998}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 379, "owner": {"id": 480}, "assignee": {"id": 549}, "organization": {"id": 127}, "project": {"owner": {"id": 791}, "assignee": {"id": 801}, "organization": {"id": 979}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 339, "owner": {"id": 486}, "assignee": {"id": 559}, "organization": {"id": 650}, "project": {"owner": {"id": 702}, "assignee": {"id": 862}, "organization": {"id": 941}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 411}, "assignee": {"id": 564}, "organization": {"id": 117}, "project": {"owner": {"id": 716}, "assignee": {"id": 849}, "organization": {"id": 921}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "owner": {"id": 483}, "assignee": {"id": 536}, "organization": {"id": 613}, "project": {"owner": {"id": 767}, "assignee": {"id": 802}, "organization": {"id": 916}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "owner": {"id": 407}, "assignee": {"id": 564}, "organization": {"id": 151}, "project": {"owner": {"id": 777}, "assignee": {"id": 881}, "organization": {"id": 929}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "owner": {"id": 443}, "assignee": {"id": 520}, "organization": {"id": 635}, "project": {"owner": {"id": 782}, "assignee": {"id": 831}, "organization": {"id": 960}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 475}, "assignee": {"id": 542}, "organization": {"id": 146}, "project": {"owner": {"id": 757}, "assignee": {"id": 892}, "organization": {"id": 953}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 441}, "assignee": {"id": 558}, "organization": {"id": 628}, "project": {"owner": {"id": 762}, "assignee": {"id": 832}, "organization": {"id": 971}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 393, "owner": {"id": 495}, "assignee": {"id": 519}, "organization": {"id": 195}, "project": {"owner": {"id": 709}, "assignee": {"id": 821}, "organization": {"id": 921}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 337, "owner": {"id": 453}, "assignee": {"id": 558}, "organization": {"id": 675}, "project": {"owner": {"id": 781}, "assignee": {"id": 806}, "organization": {"id": 910}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 421}, "assignee": {"id": 520}, "organization": {"id": 179}, "project": {"owner": {"id": 775}, "assignee": {"id": 896}, "organization": {"id": 981}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 487}, "assignee": {"id": 597}, "organization": {"id": 654}, "project": {"owner": {"id": 741}, "assignee": {"id": 820}, "organization": {"id": 926}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "owner": {"id": 486}, "assignee": {"id": 574}, "organization": {"id": 128}, "project": {"owner": {"id": 778}, "assignee": {"id": 806}, "organization": {"id": 918}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 71, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "owner": {"id": 443}, "assignee": {"id": 534}, "organization": {"id": 604}, "project": {"owner": {"id": 756}, "assignee": {"id": 800}, "organization": {"id": 907}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "owner": {"id": 443}, "assignee": {"id": 573}, "organization": {"id": 153}, "project": {"owner": {"id": 710}, "assignee": {"id": 816}, "organization": {"id": 936}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "owner": {"id": 440}, "assignee": {"id": 560}, "organization": {"id": 640}, "project": {"owner": {"id": 728}, "assignee": {"id": 888}, "organization": {"id": 969}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 325, "owner": {"id": 486}, "assignee": {"id": 577}, "organization": {"id": 120}, "project": {"owner": {"id": 748}, "assignee": {"id": 890}, "organization": {"id": 931}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 336, "owner": {"id": 453}, "assignee": {"id": 509}, "organization": {"id": 639}, "project": {"owner": {"id": 716}, "assignee": {"id": 892}, "organization": {"id": 955}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"id": 334, "owner": {"id": 407}, "assignee": {"id": 565}, "organization": {"id": 126}, "project": {"owner": {"id": 718}, "assignee": {"id": 802}, "organization": {"id": 950}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 352, "owner": {"id": 409}, "assignee": {"id": 508}, "organization": {"id": 667}, "project": {"owner": {"id": 776}, "assignee": {"id": 863}, "organization": {"id": 967}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 24, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 318, "owner": {"id": 466}, "assignee": {"id": 522}, "organization": {"id": 184}, "project": {"owner": {"id": 748}, "assignee": {"id": 844}, "organization": {"id": 977}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 464}, "assignee": {"id": 505}, "organization": {"id": 636}, "project": {"owner": {"id": 713}, "assignee": {"id": 891}, "organization": {"id": 978}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "owner": {"id": 406}, "assignee": {"id": 531}, "organization": {"id": 164}, "project": {"owner": {"id": 794}, "assignee": {"id": 886}, "organization": {"id": 929}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "owner": {"id": 436}, "assignee": {"id": 511}, "organization": {"id": 667}, "project": {"owner": {"id": 783}, "assignee": {"id": 838}, "organization": {"id": 931}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 485}, "assignee": {"id": 523}, "organization": {"id": 111}, "project": {"owner": {"id": 702}, "assignee": {"id": 880}, "organization": {"id": 977}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 470}, "assignee": {"id": 569}, "organization": {"id": 606}, "project": {"owner": {"id": 793}, "assignee": {"id": 820}, "organization": {"id": 987}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 330, "owner": {"id": 453}, "assignee": {"id": 562}, "organization": {"id": 159}, "project": {"owner": {"id": 792}, "assignee": {"id": 852}, "organization": {"id": 963}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 330, "owner": {"id": 453}, "assignee": {"id": 543}, "organization": {"id": 697}, "project": {"owner": {"id": 758}, "assignee": {"id": 848}, "organization": {"id": 939}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 342, "owner": {"id": 479}, "assignee": {"id": 507}, "organization": {"id": 142}, "project": {"owner": {"id": 732}, "assignee": {"id": 864}, "organization": {"id": 914}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 332, "owner": {"id": 425}, "assignee": {"id": 545}, "organization": {"id": 698}, "project": {"owner": {"id": 794}, "assignee": {"id": 892}, "organization": {"id": 914}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 348, "owner": {"id": 479}, "assignee": {"id": 526}, "organization": {"id": 106}, "project": {"owner": {"id": 740}, "assignee": {"id": 847}, "organization": {"id": 926}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 379, "owner": {"id": 493}, "assignee": {"id": 596}, "organization": {"id": 617}, "project": {"owner": {"id": 724}, "assignee": {"id": 888}, "organization": {"id": 931}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 446}, "assignee": {"id": 586}, "organization": {"id": 140}, "project": {"owner": {"id": 708}, "assignee": {"id": 839}, "organization": {"id": 983}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 403}, "assignee": {"id": 559}, "organization": {"id": 602}, "project": {"owner": {"id": 718}, "assignee": {"id": 848}, "organization": {"id": 932}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "owner": {"id": 401}, "assignee": {"id": 549}, "organization": {"id": 180}, "project": {"owner": {"id": 736}, "assignee": {"id": 891}, "organization": {"id": 913}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "owner": {"id": 438}, "assignee": {"id": 539}, "organization": {"id": 664}, "project": {"owner": {"id": 761}, "assignee": {"id": 855}, "organization": {"id": 920}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 371, "owner": {"id": 431}, "assignee": {"id": 594}, "organization": {"id": 174}, "project": {"owner": {"id": 784}, "assignee": {"id": 817}, "organization": {"id": 958}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 406}, "assignee": {"id": 522}, "organization": {"id": 674}, "project": {"owner": {"id": 736}, "assignee": {"id": 806}, "organization": {"id": 955}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 321, "owner": {"id": 444}, "assignee": {"id": 521}, "organization": {"id": 199}, "project": {"owner": {"id": 704}, "assignee": {"id": 820}, "organization": {"id": 929}}}} -} - -test_scope_EXPORT_DATASET_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:dataset", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 479}, "assignee": {"id": 526}, "organization": {"id": 658}, "project": {"owner": {"id": 759}, "assignee": {"id": 898}, "organization": {"id": 914}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": null}, "resource": {"id": 363, "owner": {"id": 401}, "assignee": {"id": 508}, "organization": {"id": 664}, "project": {"owner": {"id": 62}, "assignee": {"id": 860}, "organization": {"id": 997}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": null}, "resource": {"id": 344, "owner": {"id": 461}, "assignee": {"id": 541}, "organization": {"id": 622}, "project": {"owner": {"id": 82}, "assignee": {"id": 844}, "organization": {"id": 936}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": null}, "resource": {"id": 375, "owner": {"id": 442}, "assignee": {"id": 553}, "organization": {"id": 624}, "project": {"owner": {"id": 47}, "assignee": {"id": 816}, "organization": {"id": 933}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": null}, "resource": {"id": 300, "owner": {"id": 415}, "assignee": {"id": 517}, "organization": {"id": 661}, "project": {"owner": {"id": 91}, "assignee": {"id": 851}, "organization": {"id": 975}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": null}, "resource": {"id": 327, "owner": {"id": 496}, "assignee": {"id": 516}, "organization": {"id": 639}, "project": {"owner": {"id": 90}, "assignee": {"id": 867}, "organization": {"id": 922}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": null}, "resource": {"id": 383, "owner": {"id": 492}, "assignee": {"id": 578}, "organization": {"id": 638}, "project": {"owner": {"id": 761}, "assignee": {"id": 9}, "organization": {"id": 964}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": null}, "resource": {"id": 308, "owner": {"id": 416}, "assignee": {"id": 589}, "organization": {"id": 698}, "project": {"owner": {"id": 750}, "assignee": {"id": 36}, "organization": {"id": 919}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": null}, "resource": {"id": 324, "owner": {"id": 485}, "assignee": {"id": 595}, "organization": {"id": 632}, "project": {"owner": {"id": 794}, "assignee": {"id": 61}, "organization": {"id": 958}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": null}, "resource": {"id": 363, "owner": {"id": 468}, "assignee": {"id": 505}, "organization": {"id": 656}, "project": {"owner": {"id": 717}, "assignee": {"id": 17}, "organization": {"id": 985}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": null}, "resource": {"id": 350, "owner": {"id": 432}, "assignee": {"id": 592}, "organization": {"id": 676}, "project": {"owner": {"id": 700}, "assignee": {"id": 43}, "organization": {"id": 995}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": null}, "resource": {"id": 366, "owner": {"id": 90}, "assignee": {"id": 540}, "organization": {"id": 632}, "project": {"owner": {"id": 750}, "assignee": {"id": 856}, "organization": {"id": 997}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": null}, "resource": {"id": 336, "owner": {"id": 79}, "assignee": {"id": 523}, "organization": {"id": 640}, "project": {"owner": {"id": 772}, "assignee": {"id": 857}, "organization": {"id": 979}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": null}, "resource": {"id": 357, "owner": {"id": 31}, "assignee": {"id": 501}, "organization": {"id": 623}, "project": {"owner": {"id": 749}, "assignee": {"id": 896}, "organization": {"id": 948}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": null}, "resource": {"id": 376, "owner": {"id": 84}, "assignee": {"id": 521}, "organization": {"id": 634}, "project": {"owner": {"id": 797}, "assignee": {"id": 876}, "organization": {"id": 960}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": null}, "resource": {"id": 336, "owner": {"id": 7}, "assignee": {"id": 553}, "organization": {"id": 663}, "project": {"owner": {"id": 704}, "assignee": {"id": 883}, "organization": {"id": 947}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": null}, "resource": {"id": 369, "owner": {"id": 400}, "assignee": {"id": 94}, "organization": {"id": 625}, "project": {"owner": {"id": 721}, "assignee": {"id": 834}, "organization": {"id": 986}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": null}, "resource": {"id": 389, "owner": {"id": 400}, "assignee": {"id": 87}, "organization": {"id": 650}, "project": {"owner": {"id": 723}, "assignee": {"id": 844}, "organization": {"id": 930}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": null}, "resource": {"id": 367, "owner": {"id": 453}, "assignee": {"id": 49}, "organization": {"id": 669}, "project": {"owner": {"id": 752}, "assignee": {"id": 868}, "organization": {"id": 940}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": null}, "resource": {"id": 380, "owner": {"id": 411}, "assignee": {"id": 28}, "organization": {"id": 630}, "project": {"owner": {"id": 732}, "assignee": {"id": 883}, "organization": {"id": 990}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": null}, "resource": {"id": 381, "owner": {"id": 413}, "assignee": {"id": 25}, "organization": {"id": 633}, "project": {"owner": {"id": 778}, "assignee": {"id": 884}, "organization": {"id": 942}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": null}, "resource": {"id": 355, "owner": {"id": 456}, "assignee": {"id": 512}, "organization": {"id": 632}, "project": {"owner": {"id": 769}, "assignee": {"id": 843}, "organization": {"id": 929}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": null}, "resource": {"id": 335, "owner": {"id": 495}, "assignee": {"id": 576}, "organization": {"id": 608}, "project": {"owner": {"id": 729}, "assignee": {"id": 876}, "organization": {"id": 937}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": null}, "resource": {"id": 342, "owner": {"id": 407}, "assignee": {"id": 596}, "organization": {"id": 634}, "project": {"owner": {"id": 785}, "assignee": {"id": 865}, "organization": {"id": 963}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": null}, "resource": {"id": 328, "owner": {"id": 450}, "assignee": {"id": 548}, "organization": {"id": 693}, "project": {"owner": {"id": 707}, "assignee": {"id": 898}, "organization": {"id": 937}}}} -} - -test_scope_VIEW_DATA_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": null}, "resource": {"id": 333, "owner": {"id": 482}, "assignee": {"id": 570}, "organization": {"id": 608}, "project": {"owner": {"id": 731}, "assignee": {"id": 843}, "organization": {"id": 931}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 428}, "assignee": {"id": 501}, "organization": {"id": 176}, "project": {"owner": {"id": 30}, "assignee": {"id": 897}, "organization": {"id": 945}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 317, "owner": {"id": 494}, "assignee": {"id": 589}, "organization": {"id": 650}, "project": {"owner": {"id": 68}, "assignee": {"id": 866}, "organization": {"id": 983}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 476}, "assignee": {"id": 571}, "organization": {"id": 111}, "project": {"owner": {"id": 3}, "assignee": {"id": 837}, "organization": {"id": 990}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "owner": {"id": 479}, "assignee": {"id": 577}, "organization": {"id": 662}, "project": {"owner": {"id": 42}, "assignee": {"id": 838}, "organization": {"id": 958}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 425}, "assignee": {"id": 586}, "organization": {"id": 197}, "project": {"owner": {"id": 35}, "assignee": {"id": 859}, "organization": {"id": 904}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "owner": {"id": 405}, "assignee": {"id": 573}, "organization": {"id": 653}, "project": {"owner": {"id": 77}, "assignee": {"id": 868}, "organization": {"id": 908}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 443}, "assignee": {"id": 573}, "organization": {"id": 112}, "project": {"owner": {"id": 49}, "assignee": {"id": 829}, "organization": {"id": 978}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 304, "owner": {"id": 484}, "assignee": {"id": 525}, "organization": {"id": 698}, "project": {"owner": {"id": 43}, "assignee": {"id": 832}, "organization": {"id": 902}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 469}, "assignee": {"id": 593}, "organization": {"id": 102}, "project": {"owner": {"id": 95}, "assignee": {"id": 806}, "organization": {"id": 966}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 490}, "assignee": {"id": 586}, "organization": {"id": 663}, "project": {"owner": {"id": 81}, "assignee": {"id": 854}, "organization": {"id": 979}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 304, "owner": {"id": 460}, "assignee": {"id": 591}, "organization": {"id": 164}, "project": {"owner": {"id": 84}, "assignee": {"id": 887}, "organization": {"id": 964}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 384, "owner": {"id": 458}, "assignee": {"id": 508}, "organization": {"id": 686}, "project": {"owner": {"id": 75}, "assignee": {"id": 854}, "organization": {"id": 973}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "owner": {"id": 464}, "assignee": {"id": 559}, "organization": {"id": 197}, "project": {"owner": {"id": 39}, "assignee": {"id": 852}, "organization": {"id": 931}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "owner": {"id": 404}, "assignee": {"id": 533}, "organization": {"id": 668}, "project": {"owner": {"id": 91}, "assignee": {"id": 856}, "organization": {"id": 971}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 418}, "assignee": {"id": 549}, "organization": {"id": 108}, "project": {"owner": {"id": 70}, "assignee": {"id": 888}, "organization": {"id": 920}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 498}, "assignee": {"id": 575}, "organization": {"id": 615}, "project": {"owner": {"id": 71}, "assignee": {"id": 862}, "organization": {"id": 997}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 368, "owner": {"id": 465}, "assignee": {"id": 546}, "organization": {"id": 174}, "project": {"owner": {"id": 86}, "assignee": {"id": 833}, "organization": {"id": 973}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 379, "owner": {"id": 451}, "assignee": {"id": 503}, "organization": {"id": 681}, "project": {"owner": {"id": 92}, "assignee": {"id": 837}, "organization": {"id": 912}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 386, "owner": {"id": 471}, "assignee": {"id": 599}, "organization": {"id": 129}, "project": {"owner": {"id": 91}, "assignee": {"id": 824}, "organization": {"id": 959}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 390, "owner": {"id": 435}, "assignee": {"id": 527}, "organization": {"id": 658}, "project": {"owner": {"id": 67}, "assignee": {"id": 826}, "organization": {"id": 915}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 451}, "assignee": {"id": 563}, "organization": {"id": 179}, "project": {"owner": {"id": 96}, "assignee": {"id": 815}, "organization": {"id": 955}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 470}, "assignee": {"id": 590}, "organization": {"id": 612}, "project": {"owner": {"id": 0}, "assignee": {"id": 895}, "organization": {"id": 939}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 493}, "assignee": {"id": 534}, "organization": {"id": 119}, "project": {"owner": {"id": 5}, "assignee": {"id": 847}, "organization": {"id": 952}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "owner": {"id": 415}, "assignee": {"id": 506}, "organization": {"id": 693}, "project": {"owner": {"id": 5}, "assignee": {"id": 839}, "organization": {"id": 999}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "owner": {"id": 462}, "assignee": {"id": 520}, "organization": {"id": 122}, "project": {"owner": {"id": 20}, "assignee": {"id": 867}, "organization": {"id": 994}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 371, "owner": {"id": 464}, "assignee": {"id": 584}, "organization": {"id": 642}, "project": {"owner": {"id": 58}, "assignee": {"id": 839}, "organization": {"id": 919}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 334, "owner": {"id": 433}, "assignee": {"id": 575}, "organization": {"id": 119}, "project": {"owner": {"id": 76}, "assignee": {"id": 873}, "organization": {"id": 994}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 314, "owner": {"id": 482}, "assignee": {"id": 576}, "organization": {"id": 661}, "project": {"owner": {"id": 52}, "assignee": {"id": 824}, "organization": {"id": 952}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 457}, "assignee": {"id": 593}, "organization": {"id": 185}, "project": {"owner": {"id": 89}, "assignee": {"id": 859}, "organization": {"id": 971}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 331, "owner": {"id": 485}, "assignee": {"id": 561}, "organization": {"id": 608}, "project": {"owner": {"id": 24}, "assignee": {"id": 889}, "organization": {"id": 941}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 418}, "assignee": {"id": 545}, "organization": {"id": 188}, "project": {"owner": {"id": 55}, "assignee": {"id": 875}, "organization": {"id": 907}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 358, "owner": {"id": 415}, "assignee": {"id": 571}, "organization": {"id": 641}, "project": {"owner": {"id": 0}, "assignee": {"id": 891}, "organization": {"id": 951}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 460}, "assignee": {"id": 537}, "organization": {"id": 120}, "project": {"owner": {"id": 7}, "assignee": {"id": 802}, "organization": {"id": 932}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 407}, "assignee": {"id": 505}, "organization": {"id": 637}, "project": {"owner": {"id": 52}, "assignee": {"id": 825}, "organization": {"id": 912}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "owner": {"id": 459}, "assignee": {"id": 545}, "organization": {"id": 114}, "project": {"owner": {"id": 56}, "assignee": {"id": 899}, "organization": {"id": 900}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "owner": {"id": 473}, "assignee": {"id": 590}, "organization": {"id": 694}, "project": {"owner": {"id": 56}, "assignee": {"id": 859}, "organization": {"id": 913}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 394, "owner": {"id": 441}, "assignee": {"id": 501}, "organization": {"id": 158}, "project": {"owner": {"id": 89}, "assignee": {"id": 837}, "organization": {"id": 922}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 372, "owner": {"id": 492}, "assignee": {"id": 577}, "organization": {"id": 603}, "project": {"owner": {"id": 65}, "assignee": {"id": 837}, "organization": {"id": 926}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 312, "owner": {"id": 462}, "assignee": {"id": 592}, "organization": {"id": 156}, "project": {"owner": {"id": 21}, "assignee": {"id": 850}, "organization": {"id": 917}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 494}, "assignee": {"id": 544}, "organization": {"id": 639}, "project": {"owner": {"id": 81}, "assignee": {"id": 809}, "organization": {"id": 950}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 308, "owner": {"id": 440}, "assignee": {"id": 565}, "organization": {"id": 142}, "project": {"owner": {"id": 16}, "assignee": {"id": 834}, "organization": {"id": 961}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 306, "owner": {"id": 436}, "assignee": {"id": 549}, "organization": {"id": 659}, "project": {"owner": {"id": 5}, "assignee": {"id": 820}, "organization": {"id": 983}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "owner": {"id": 479}, "assignee": {"id": 502}, "organization": {"id": 189}, "project": {"owner": {"id": 90}, "assignee": {"id": 813}, "organization": {"id": 940}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "owner": {"id": 484}, "assignee": {"id": 523}, "organization": {"id": 650}, "project": {"owner": {"id": 3}, "assignee": {"id": 830}, "organization": {"id": 932}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 428}, "assignee": {"id": 511}, "organization": {"id": 191}, "project": {"owner": {"id": 7}, "assignee": {"id": 898}, "organization": {"id": 986}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 456}, "assignee": {"id": 555}, "organization": {"id": 651}, "project": {"owner": {"id": 0}, "assignee": {"id": 836}, "organization": {"id": 983}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 394, "owner": {"id": 481}, "assignee": {"id": 522}, "organization": {"id": 188}, "project": {"owner": {"id": 14}, "assignee": {"id": 880}, "organization": {"id": 983}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 372, "owner": {"id": 435}, "assignee": {"id": 528}, "organization": {"id": 642}, "project": {"owner": {"id": 64}, "assignee": {"id": 889}, "organization": {"id": 921}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 309, "owner": {"id": 459}, "assignee": {"id": 570}, "organization": {"id": 130}, "project": {"owner": {"id": 8}, "assignee": {"id": 846}, "organization": {"id": 970}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"id": 304, "owner": {"id": 442}, "assignee": {"id": 557}, "organization": {"id": 628}, "project": {"owner": {"id": 48}, "assignee": {"id": 814}, "organization": {"id": 928}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 371, "owner": {"id": 496}, "assignee": {"id": 583}, "organization": {"id": 147}, "project": {"owner": {"id": 749}, "assignee": {"id": 42}, "organization": {"id": 945}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 352, "owner": {"id": 414}, "assignee": {"id": 540}, "organization": {"id": 615}, "project": {"owner": {"id": 703}, "assignee": {"id": 94}, "organization": {"id": 901}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "owner": {"id": 463}, "assignee": {"id": 501}, "organization": {"id": 171}, "project": {"owner": {"id": 720}, "assignee": {"id": 4}, "organization": {"id": 947}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "owner": {"id": 463}, "assignee": {"id": 534}, "organization": {"id": 637}, "project": {"owner": {"id": 711}, "assignee": {"id": 24}, "organization": {"id": 998}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "owner": {"id": 474}, "assignee": {"id": 589}, "organization": {"id": 140}, "project": {"owner": {"id": 775}, "assignee": {"id": 22}, "organization": {"id": 983}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "owner": {"id": 476}, "assignee": {"id": 519}, "organization": {"id": 651}, "project": {"owner": {"id": 731}, "assignee": {"id": 3}, "organization": {"id": 955}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 382, "owner": {"id": 423}, "assignee": {"id": 542}, "organization": {"id": 161}, "project": {"owner": {"id": 744}, "assignee": {"id": 11}, "organization": {"id": 946}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 375, "owner": {"id": 496}, "assignee": {"id": 557}, "organization": {"id": 688}, "project": {"owner": {"id": 746}, "assignee": {"id": 25}, "organization": {"id": 974}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 332, "owner": {"id": 475}, "assignee": {"id": 542}, "organization": {"id": 134}, "project": {"owner": {"id": 708}, "assignee": {"id": 25}, "organization": {"id": 958}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 332, "owner": {"id": 442}, "assignee": {"id": 567}, "organization": {"id": 682}, "project": {"owner": {"id": 702}, "assignee": {"id": 79}, "organization": {"id": 908}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 420}, "assignee": {"id": 514}, "organization": {"id": 150}, "project": {"owner": {"id": 734}, "assignee": {"id": 11}, "organization": {"id": 997}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 387, "owner": {"id": 448}, "assignee": {"id": 509}, "organization": {"id": 640}, "project": {"owner": {"id": 719}, "assignee": {"id": 98}, "organization": {"id": 955}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "owner": {"id": 418}, "assignee": {"id": 516}, "organization": {"id": 194}, "project": {"owner": {"id": 733}, "assignee": {"id": 5}, "organization": {"id": 957}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "owner": {"id": 412}, "assignee": {"id": 500}, "organization": {"id": 613}, "project": {"owner": {"id": 734}, "assignee": {"id": 13}, "organization": {"id": 988}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 456}, "assignee": {"id": 509}, "organization": {"id": 199}, "project": {"owner": {"id": 771}, "assignee": {"id": 5}, "organization": {"id": 934}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "owner": {"id": 484}, "assignee": {"id": 532}, "organization": {"id": 631}, "project": {"owner": {"id": 757}, "assignee": {"id": 70}, "organization": {"id": 938}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 382, "owner": {"id": 493}, "assignee": {"id": 593}, "organization": {"id": 162}, "project": {"owner": {"id": 717}, "assignee": {"id": 14}, "organization": {"id": 965}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 431}, "assignee": {"id": 501}, "organization": {"id": 693}, "project": {"owner": {"id": 701}, "assignee": {"id": 41}, "organization": {"id": 902}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 477}, "assignee": {"id": 501}, "organization": {"id": 115}, "project": {"owner": {"id": 783}, "assignee": {"id": 69}, "organization": {"id": 905}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 302, "owner": {"id": 424}, "assignee": {"id": 527}, "organization": {"id": 636}, "project": {"owner": {"id": 791}, "assignee": {"id": 4}, "organization": {"id": 943}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 314, "owner": {"id": 488}, "assignee": {"id": 592}, "organization": {"id": 143}, "project": {"owner": {"id": 743}, "assignee": {"id": 28}, "organization": {"id": 990}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 366, "owner": {"id": 492}, "assignee": {"id": 584}, "organization": {"id": 655}, "project": {"owner": {"id": 775}, "assignee": {"id": 81}, "organization": {"id": 904}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "owner": {"id": 430}, "assignee": {"id": 508}, "organization": {"id": 138}, "project": {"owner": {"id": 752}, "assignee": {"id": 72}, "organization": {"id": 953}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "owner": {"id": 417}, "assignee": {"id": 581}, "organization": {"id": 609}, "project": {"owner": {"id": 720}, "assignee": {"id": 57}, "organization": {"id": 955}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 418}, "assignee": {"id": 564}, "organization": {"id": 193}, "project": {"owner": {"id": 719}, "assignee": {"id": 92}, "organization": {"id": 987}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "owner": {"id": 467}, "assignee": {"id": 524}, "organization": {"id": 650}, "project": {"owner": {"id": 799}, "assignee": {"id": 58}, "organization": {"id": 906}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 365, "owner": {"id": 471}, "assignee": {"id": 533}, "organization": {"id": 109}, "project": {"owner": {"id": 788}, "assignee": {"id": 76}, "organization": {"id": 941}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 400}, "assignee": {"id": 574}, "organization": {"id": 619}, "project": {"owner": {"id": 700}, "assignee": {"id": 10}, "organization": {"id": 928}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 395, "owner": {"id": 455}, "assignee": {"id": 547}, "organization": {"id": 115}, "project": {"owner": {"id": 787}, "assignee": {"id": 91}, "organization": {"id": 963}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 450}, "assignee": {"id": 545}, "organization": {"id": 662}, "project": {"owner": {"id": 765}, "assignee": {"id": 27}, "organization": {"id": 912}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 479}, "assignee": {"id": 544}, "organization": {"id": 186}, "project": {"owner": {"id": 738}, "assignee": {"id": 72}, "organization": {"id": 964}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 350, "owner": {"id": 437}, "assignee": {"id": 583}, "organization": {"id": 612}, "project": {"owner": {"id": 750}, "assignee": {"id": 5}, "organization": {"id": 945}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "owner": {"id": 492}, "assignee": {"id": 590}, "organization": {"id": 116}, "project": {"owner": {"id": 741}, "assignee": {"id": 98}, "organization": {"id": 916}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "owner": {"id": 460}, "assignee": {"id": 518}, "organization": {"id": 634}, "project": {"owner": {"id": 793}, "assignee": {"id": 49}, "organization": {"id": 962}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 452}, "assignee": {"id": 512}, "organization": {"id": 146}, "project": {"owner": {"id": 785}, "assignee": {"id": 99}, "organization": {"id": 946}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "owner": {"id": 441}, "assignee": {"id": 569}, "organization": {"id": 650}, "project": {"owner": {"id": 715}, "assignee": {"id": 1}, "organization": {"id": 995}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 364, "owner": {"id": 425}, "assignee": {"id": 573}, "organization": {"id": 147}, "project": {"owner": {"id": 739}, "assignee": {"id": 28}, "organization": {"id": 966}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 67, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 381, "owner": {"id": 435}, "assignee": {"id": 518}, "organization": {"id": 686}, "project": {"owner": {"id": 781}, "assignee": {"id": 67}, "organization": {"id": 965}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 369, "owner": {"id": 465}, "assignee": {"id": 515}, "organization": {"id": 149}, "project": {"owner": {"id": 722}, "assignee": {"id": 78}, "organization": {"id": 955}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 478}, "assignee": {"id": 525}, "organization": {"id": 622}, "project": {"owner": {"id": 747}, "assignee": {"id": 53}, "organization": {"id": 976}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 488}, "assignee": {"id": 520}, "organization": {"id": 110}, "project": {"owner": {"id": 730}, "assignee": {"id": 30}, "organization": {"id": 968}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 443}, "assignee": {"id": 529}, "organization": {"id": 632}, "project": {"owner": {"id": 715}, "assignee": {"id": 78}, "organization": {"id": 926}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "owner": {"id": 496}, "assignee": {"id": 544}, "organization": {"id": 199}, "project": {"owner": {"id": 781}, "assignee": {"id": 95}, "organization": {"id": 971}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 320, "owner": {"id": 417}, "assignee": {"id": 565}, "organization": {"id": 602}, "project": {"owner": {"id": 711}, "assignee": {"id": 10}, "organization": {"id": 963}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "owner": {"id": 416}, "assignee": {"id": 572}, "organization": {"id": 149}, "project": {"owner": {"id": 746}, "assignee": {"id": 95}, "organization": {"id": 917}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "owner": {"id": 473}, "assignee": {"id": 536}, "organization": {"id": 634}, "project": {"owner": {"id": 758}, "assignee": {"id": 46}, "organization": {"id": 999}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 412}, "assignee": {"id": 582}, "organization": {"id": 103}, "project": {"owner": {"id": 789}, "assignee": {"id": 9}, "organization": {"id": 979}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 327, "owner": {"id": 423}, "assignee": {"id": 530}, "organization": {"id": 694}, "project": {"owner": {"id": 789}, "assignee": {"id": 55}, "organization": {"id": 967}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 354, "owner": {"id": 459}, "assignee": {"id": 573}, "organization": {"id": 162}, "project": {"owner": {"id": 706}, "assignee": {"id": 81}, "organization": {"id": 954}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 332, "owner": {"id": 460}, "assignee": {"id": 561}, "organization": {"id": 682}, "project": {"owner": {"id": 781}, "assignee": {"id": 6}, "organization": {"id": 996}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 310, "owner": {"id": 65}, "assignee": {"id": 507}, "organization": {"id": 132}, "project": {"owner": {"id": 700}, "assignee": {"id": 870}, "organization": {"id": 929}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 82}, "assignee": {"id": 571}, "organization": {"id": 622}, "project": {"owner": {"id": 750}, "assignee": {"id": 802}, "organization": {"id": 910}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 28}, "assignee": {"id": 560}, "organization": {"id": 124}, "project": {"owner": {"id": 796}, "assignee": {"id": 844}, "organization": {"id": 982}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "owner": {"id": 78}, "assignee": {"id": 517}, "organization": {"id": 641}, "project": {"owner": {"id": 727}, "assignee": {"id": 875}, "organization": {"id": 928}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 98}, "assignee": {"id": 546}, "organization": {"id": 123}, "project": {"owner": {"id": 763}, "assignee": {"id": 861}, "organization": {"id": 957}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 21}, "assignee": {"id": 546}, "organization": {"id": 657}, "project": {"owner": {"id": 786}, "assignee": {"id": 843}, "organization": {"id": 906}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 366, "owner": {"id": 67}, "assignee": {"id": 544}, "organization": {"id": 139}, "project": {"owner": {"id": 711}, "assignee": {"id": 812}, "organization": {"id": 936}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 304, "owner": {"id": 74}, "assignee": {"id": 591}, "organization": {"id": 648}, "project": {"owner": {"id": 724}, "assignee": {"id": 867}, "organization": {"id": 929}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 398, "owner": {"id": 2}, "assignee": {"id": 562}, "organization": {"id": 197}, "project": {"owner": {"id": 764}, "assignee": {"id": 838}, "organization": {"id": 922}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 75}, "assignee": {"id": 559}, "organization": {"id": 642}, "project": {"owner": {"id": 788}, "assignee": {"id": 880}, "organization": {"id": 988}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 331, "owner": {"id": 96}, "assignee": {"id": 584}, "organization": {"id": 160}, "project": {"owner": {"id": 776}, "assignee": {"id": 839}, "organization": {"id": 957}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 349, "owner": {"id": 22}, "assignee": {"id": 589}, "organization": {"id": 692}, "project": {"owner": {"id": 731}, "assignee": {"id": 887}, "organization": {"id": 975}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 330, "owner": {"id": 39}, "assignee": {"id": 582}, "organization": {"id": 152}, "project": {"owner": {"id": 706}, "assignee": {"id": 819}, "organization": {"id": 940}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "owner": {"id": 37}, "assignee": {"id": 585}, "organization": {"id": 690}, "project": {"owner": {"id": 782}, "assignee": {"id": 860}, "organization": {"id": 975}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "owner": {"id": 97}, "assignee": {"id": 557}, "organization": {"id": 172}, "project": {"owner": {"id": 785}, "assignee": {"id": 808}, "organization": {"id": 966}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "owner": {"id": 73}, "assignee": {"id": 591}, "organization": {"id": 653}, "project": {"owner": {"id": 795}, "assignee": {"id": 810}, "organization": {"id": 928}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 391, "owner": {"id": 90}, "assignee": {"id": 599}, "organization": {"id": 108}, "project": {"owner": {"id": 741}, "assignee": {"id": 874}, "organization": {"id": 917}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 391, "owner": {"id": 80}, "assignee": {"id": 542}, "organization": {"id": 695}, "project": {"owner": {"id": 756}, "assignee": {"id": 822}, "organization": {"id": 929}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 62}, "assignee": {"id": 579}, "organization": {"id": 173}, "project": {"owner": {"id": 758}, "assignee": {"id": 827}, "organization": {"id": 963}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 317, "owner": {"id": 45}, "assignee": {"id": 586}, "organization": {"id": 625}, "project": {"owner": {"id": 764}, "assignee": {"id": 874}, "organization": {"id": 948}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 90, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 90}, "assignee": {"id": 563}, "organization": {"id": 161}, "project": {"owner": {"id": 759}, "assignee": {"id": 872}, "organization": {"id": 910}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 380, "owner": {"id": 91}, "assignee": {"id": 519}, "organization": {"id": 617}, "project": {"owner": {"id": 702}, "assignee": {"id": 805}, "organization": {"id": 970}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "owner": {"id": 52}, "assignee": {"id": 512}, "organization": {"id": 185}, "project": {"owner": {"id": 732}, "assignee": {"id": 822}, "organization": {"id": 964}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "owner": {"id": 62}, "assignee": {"id": 550}, "organization": {"id": 623}, "project": {"owner": {"id": 740}, "assignee": {"id": 810}, "organization": {"id": 941}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"id": 343, "owner": {"id": 5}, "assignee": {"id": 532}, "organization": {"id": 172}, "project": {"owner": {"id": 798}, "assignee": {"id": 896}, "organization": {"id": 997}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "owner": {"id": 84}, "assignee": {"id": 512}, "organization": {"id": 680}, "project": {"owner": {"id": 789}, "assignee": {"id": 885}, "organization": {"id": 901}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 300, "owner": {"id": 61}, "assignee": {"id": 533}, "organization": {"id": 123}, "project": {"owner": {"id": 745}, "assignee": {"id": 865}, "organization": {"id": 988}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 320, "owner": {"id": 92}, "assignee": {"id": 522}, "organization": {"id": 661}, "project": {"owner": {"id": 786}, "assignee": {"id": 882}, "organization": {"id": 937}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 38}, "assignee": {"id": 544}, "organization": {"id": 166}, "project": {"owner": {"id": 784}, "assignee": {"id": 816}, "organization": {"id": 979}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 19, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 305, "owner": {"id": 19}, "assignee": {"id": 514}, "organization": {"id": 658}, "project": {"owner": {"id": 715}, "assignee": {"id": 875}, "organization": {"id": 959}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 308, "owner": {"id": 30}, "assignee": {"id": 583}, "organization": {"id": 141}, "project": {"owner": {"id": 732}, "assignee": {"id": 826}, "organization": {"id": 997}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 63}, "assignee": {"id": 547}, "organization": {"id": 686}, "project": {"owner": {"id": 757}, "assignee": {"id": 887}, "organization": {"id": 961}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "owner": {"id": 61}, "assignee": {"id": 516}, "organization": {"id": 141}, "project": {"owner": {"id": 798}, "assignee": {"id": 842}, "organization": {"id": 968}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 75}, "assignee": {"id": 508}, "organization": {"id": 601}, "project": {"owner": {"id": 738}, "assignee": {"id": 890}, "organization": {"id": 982}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "owner": {"id": 87}, "assignee": {"id": 500}, "organization": {"id": 180}, "project": {"owner": {"id": 761}, "assignee": {"id": 809}, "organization": {"id": 980}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "owner": {"id": 4}, "assignee": {"id": 552}, "organization": {"id": 610}, "project": {"owner": {"id": 784}, "assignee": {"id": 873}, "organization": {"id": 976}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 85}, "assignee": {"id": 590}, "organization": {"id": 134}, "project": {"owner": {"id": 777}, "assignee": {"id": 897}, "organization": {"id": 963}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 319, "owner": {"id": 37}, "assignee": {"id": 511}, "organization": {"id": 658}, "project": {"owner": {"id": 715}, "assignee": {"id": 896}, "organization": {"id": 921}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 347, "owner": {"id": 6}, "assignee": {"id": 554}, "organization": {"id": 127}, "project": {"owner": {"id": 784}, "assignee": {"id": 831}, "organization": {"id": 994}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 344, "owner": {"id": 18}, "assignee": {"id": 525}, "organization": {"id": 649}, "project": {"owner": {"id": 773}, "assignee": {"id": 847}, "organization": {"id": 991}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 368, "owner": {"id": 40}, "assignee": {"id": 593}, "organization": {"id": 193}, "project": {"owner": {"id": 748}, "assignee": {"id": 862}, "organization": {"id": 926}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 63}, "assignee": {"id": 597}, "organization": {"id": 611}, "project": {"owner": {"id": 795}, "assignee": {"id": 807}, "organization": {"id": 984}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "owner": {"id": 34}, "assignee": {"id": 583}, "organization": {"id": 192}, "project": {"owner": {"id": 738}, "assignee": {"id": 859}, "organization": {"id": 949}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 33}, "assignee": {"id": 509}, "organization": {"id": 623}, "project": {"owner": {"id": 787}, "assignee": {"id": 848}, "organization": {"id": 911}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 13}, "assignee": {"id": 526}, "organization": {"id": 198}, "project": {"owner": {"id": 751}, "assignee": {"id": 885}, "organization": {"id": 930}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "owner": {"id": 32}, "assignee": {"id": 556}, "organization": {"id": 642}, "project": {"owner": {"id": 750}, "assignee": {"id": 889}, "organization": {"id": 938}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 397, "owner": {"id": 43}, "assignee": {"id": 574}, "organization": {"id": 150}, "project": {"owner": {"id": 708}, "assignee": {"id": 880}, "organization": {"id": 977}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 327, "owner": {"id": 18}, "assignee": {"id": 507}, "organization": {"id": 683}, "project": {"owner": {"id": 750}, "assignee": {"id": 825}, "organization": {"id": 949}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 57}, "assignee": {"id": 586}, "organization": {"id": 165}, "project": {"owner": {"id": 749}, "assignee": {"id": 833}, "organization": {"id": 907}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 394, "owner": {"id": 11}, "assignee": {"id": 582}, "organization": {"id": 607}, "project": {"owner": {"id": 738}, "assignee": {"id": 864}, "organization": {"id": 913}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 383, "owner": {"id": 446}, "assignee": {"id": 60}, "organization": {"id": 195}, "project": {"owner": {"id": 725}, "assignee": {"id": 888}, "organization": {"id": 993}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 480}, "assignee": {"id": 61}, "organization": {"id": 677}, "project": {"owner": {"id": 753}, "assignee": {"id": 846}, "organization": {"id": 920}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 476}, "assignee": {"id": 56}, "organization": {"id": 158}, "project": {"owner": {"id": 795}, "assignee": {"id": 869}, "organization": {"id": 950}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 389, "owner": {"id": 407}, "assignee": {"id": 74}, "organization": {"id": 646}, "project": {"owner": {"id": 738}, "assignee": {"id": 866}, "organization": {"id": 975}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "owner": {"id": 460}, "assignee": {"id": 49}, "organization": {"id": 177}, "project": {"owner": {"id": 788}, "assignee": {"id": 875}, "organization": {"id": 977}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "owner": {"id": 412}, "assignee": {"id": 61}, "organization": {"id": 637}, "project": {"owner": {"id": 790}, "assignee": {"id": 870}, "organization": {"id": 923}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 384, "owner": {"id": 416}, "assignee": {"id": 13}, "organization": {"id": 127}, "project": {"owner": {"id": 727}, "assignee": {"id": 899}, "organization": {"id": 989}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 465}, "assignee": {"id": 2}, "organization": {"id": 624}, "project": {"owner": {"id": 760}, "assignee": {"id": 833}, "organization": {"id": 953}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 331, "owner": {"id": 455}, "assignee": {"id": 46}, "organization": {"id": 163}, "project": {"owner": {"id": 768}, "assignee": {"id": 836}, "organization": {"id": 909}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 488}, "assignee": {"id": 34}, "organization": {"id": 694}, "project": {"owner": {"id": 777}, "assignee": {"id": 808}, "organization": {"id": 967}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 380, "owner": {"id": 482}, "assignee": {"id": 52}, "organization": {"id": 196}, "project": {"owner": {"id": 792}, "assignee": {"id": 875}, "organization": {"id": 945}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 455}, "assignee": {"id": 20}, "organization": {"id": 646}, "project": {"owner": {"id": 743}, "assignee": {"id": 871}, "organization": {"id": 976}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "owner": {"id": 447}, "assignee": {"id": 71}, "organization": {"id": 162}, "project": {"owner": {"id": 788}, "assignee": {"id": 869}, "organization": {"id": 941}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "owner": {"id": 455}, "assignee": {"id": 18}, "organization": {"id": 600}, "project": {"owner": {"id": 785}, "assignee": {"id": 819}, "organization": {"id": 998}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "owner": {"id": 422}, "assignee": {"id": 69}, "organization": {"id": 156}, "project": {"owner": {"id": 730}, "assignee": {"id": 845}, "organization": {"id": 918}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "owner": {"id": 463}, "assignee": {"id": 76}, "organization": {"id": 647}, "project": {"owner": {"id": 792}, "assignee": {"id": 824}, "organization": {"id": 944}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 94, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 338, "owner": {"id": 462}, "assignee": {"id": 94}, "organization": {"id": 163}, "project": {"owner": {"id": 767}, "assignee": {"id": 885}, "organization": {"id": 939}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 435}, "assignee": {"id": 87}, "organization": {"id": 646}, "project": {"owner": {"id": 741}, "assignee": {"id": 804}, "organization": {"id": 958}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 331, "owner": {"id": 413}, "assignee": {"id": 92}, "organization": {"id": 187}, "project": {"owner": {"id": 715}, "assignee": {"id": 870}, "organization": {"id": 945}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 94, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 469}, "assignee": {"id": 94}, "organization": {"id": 669}, "project": {"owner": {"id": 761}, "assignee": {"id": 840}, "organization": {"id": 951}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 396, "owner": {"id": 403}, "assignee": {"id": 83}, "organization": {"id": 101}, "project": {"owner": {"id": 743}, "assignee": {"id": 869}, "organization": {"id": 914}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 367, "owner": {"id": 401}, "assignee": {"id": 87}, "organization": {"id": 600}, "project": {"owner": {"id": 771}, "assignee": {"id": 882}, "organization": {"id": 971}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "owner": {"id": 462}, "assignee": {"id": 75}, "organization": {"id": 127}, "project": {"owner": {"id": 763}, "assignee": {"id": 855}, "organization": {"id": 910}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "owner": {"id": 498}, "assignee": {"id": 49}, "organization": {"id": 670}, "project": {"owner": {"id": 754}, "assignee": {"id": 848}, "organization": {"id": 924}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 497}, "assignee": {"id": 56}, "organization": {"id": 156}, "project": {"owner": {"id": 728}, "assignee": {"id": 829}, "organization": {"id": 938}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "owner": {"id": 473}, "assignee": {"id": 18}, "organization": {"id": 629}, "project": {"owner": {"id": 725}, "assignee": {"id": 861}, "organization": {"id": 973}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 355, "owner": {"id": 421}, "assignee": {"id": 0}, "organization": {"id": 123}, "project": {"owner": {"id": 778}, "assignee": {"id": 809}, "organization": {"id": 944}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 437}, "assignee": {"id": 36}, "organization": {"id": 670}, "project": {"owner": {"id": 781}, "assignee": {"id": 863}, "organization": {"id": 931}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 341, "owner": {"id": 421}, "assignee": {"id": 81}, "organization": {"id": 100}, "project": {"owner": {"id": 737}, "assignee": {"id": 801}, "organization": {"id": 940}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 360, "owner": {"id": 416}, "assignee": {"id": 82}, "organization": {"id": 653}, "project": {"owner": {"id": 703}, "assignee": {"id": 879}, "organization": {"id": 961}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 320, "owner": {"id": 476}, "assignee": {"id": 57}, "organization": {"id": 130}, "project": {"owner": {"id": 745}, "assignee": {"id": 875}, "organization": {"id": 962}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 348, "owner": {"id": 402}, "assignee": {"id": 74}, "organization": {"id": 668}, "project": {"owner": {"id": 796}, "assignee": {"id": 894}, "organization": {"id": 940}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 29, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "owner": {"id": 411}, "assignee": {"id": 29}, "organization": {"id": 149}, "project": {"owner": {"id": 738}, "assignee": {"id": 862}, "organization": {"id": 992}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "owner": {"id": 426}, "assignee": {"id": 44}, "organization": {"id": 656}, "project": {"owner": {"id": 782}, "assignee": {"id": 867}, "organization": {"id": 967}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 464}, "assignee": {"id": 83}, "organization": {"id": 146}, "project": {"owner": {"id": 787}, "assignee": {"id": 887}, "organization": {"id": 944}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 431}, "assignee": {"id": 33}, "organization": {"id": 680}, "project": {"owner": {"id": 778}, "assignee": {"id": 868}, "organization": {"id": 932}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 449}, "assignee": {"id": 23}, "organization": {"id": 143}, "project": {"owner": {"id": 731}, "assignee": {"id": 872}, "organization": {"id": 940}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 332, "owner": {"id": 461}, "assignee": {"id": 81}, "organization": {"id": 661}, "project": {"owner": {"id": 735}, "assignee": {"id": 830}, "organization": {"id": 956}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 428}, "assignee": {"id": 47}, "organization": {"id": 149}, "project": {"owner": {"id": 765}, "assignee": {"id": 858}, "organization": {"id": 956}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 379, "owner": {"id": 410}, "assignee": {"id": 42}, "organization": {"id": 696}, "project": {"owner": {"id": 772}, "assignee": {"id": 866}, "organization": {"id": 960}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 375, "owner": {"id": 485}, "assignee": {"id": 76}, "organization": {"id": 105}, "project": {"owner": {"id": 716}, "assignee": {"id": 893}, "organization": {"id": 923}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 399, "owner": {"id": 403}, "assignee": {"id": 36}, "organization": {"id": 641}, "project": {"owner": {"id": 775}, "assignee": {"id": 801}, "organization": {"id": 940}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "owner": {"id": 456}, "assignee": {"id": 36}, "organization": {"id": 104}, "project": {"owner": {"id": 741}, "assignee": {"id": 870}, "organization": {"id": 946}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "owner": {"id": 472}, "assignee": {"id": 23}, "organization": {"id": 673}, "project": {"owner": {"id": 728}, "assignee": {"id": 835}, "organization": {"id": 938}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 484}, "assignee": {"id": 78}, "organization": {"id": 129}, "project": {"owner": {"id": 713}, "assignee": {"id": 817}, "organization": {"id": 924}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 499}, "assignee": {"id": 47}, "organization": {"id": 652}, "project": {"owner": {"id": 743}, "assignee": {"id": 830}, "organization": {"id": 925}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 347, "owner": {"id": 478}, "assignee": {"id": 2}, "organization": {"id": 173}, "project": {"owner": {"id": 774}, "assignee": {"id": 885}, "organization": {"id": 969}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 320, "owner": {"id": 464}, "assignee": {"id": 51}, "organization": {"id": 693}, "project": {"owner": {"id": 790}, "assignee": {"id": 815}, "organization": {"id": 976}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 362, "owner": {"id": 471}, "assignee": {"id": 60}, "organization": {"id": 164}, "project": {"owner": {"id": 780}, "assignee": {"id": 841}, "organization": {"id": 981}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 370, "owner": {"id": 418}, "assignee": {"id": 54}, "organization": {"id": 689}, "project": {"owner": {"id": 760}, "assignee": {"id": 824}, "organization": {"id": 959}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 375, "owner": {"id": 460}, "assignee": {"id": 558}, "organization": {"id": 131}, "project": {"owner": {"id": 774}, "assignee": {"id": 882}, "organization": {"id": 965}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 349, "owner": {"id": 452}, "assignee": {"id": 503}, "organization": {"id": 672}, "project": {"owner": {"id": 763}, "assignee": {"id": 884}, "organization": {"id": 972}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "owner": {"id": 401}, "assignee": {"id": 596}, "organization": {"id": 146}, "project": {"owner": {"id": 787}, "assignee": {"id": 882}, "organization": {"id": 937}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 456}, "assignee": {"id": 590}, "organization": {"id": 617}, "project": {"owner": {"id": 776}, "assignee": {"id": 851}, "organization": {"id": 920}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "owner": {"id": 403}, "assignee": {"id": 587}, "organization": {"id": 190}, "project": {"owner": {"id": 702}, "assignee": {"id": 856}, "organization": {"id": 978}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "owner": {"id": 418}, "assignee": {"id": 551}, "organization": {"id": 645}, "project": {"owner": {"id": 718}, "assignee": {"id": 857}, "organization": {"id": 966}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 430}, "assignee": {"id": 502}, "organization": {"id": 194}, "project": {"owner": {"id": 779}, "assignee": {"id": 838}, "organization": {"id": 985}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"id": 354, "owner": {"id": 463}, "assignee": {"id": 515}, "organization": {"id": 608}, "project": {"owner": {"id": 758}, "assignee": {"id": 856}, "organization": {"id": 940}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 398, "owner": {"id": 492}, "assignee": {"id": 556}, "organization": {"id": 111}, "project": {"owner": {"id": 735}, "assignee": {"id": 881}, "organization": {"id": 940}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 470}, "assignee": {"id": 558}, "organization": {"id": 685}, "project": {"owner": {"id": 704}, "assignee": {"id": 864}, "organization": {"id": 985}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 363, "owner": {"id": 442}, "assignee": {"id": 591}, "organization": {"id": 100}, "project": {"owner": {"id": 797}, "assignee": {"id": 825}, "organization": {"id": 988}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 325, "owner": {"id": 494}, "assignee": {"id": 550}, "organization": {"id": 643}, "project": {"owner": {"id": 779}, "assignee": {"id": 880}, "organization": {"id": 961}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "owner": {"id": 479}, "assignee": {"id": 547}, "organization": {"id": 103}, "project": {"owner": {"id": 798}, "assignee": {"id": 858}, "organization": {"id": 994}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "owner": {"id": 424}, "assignee": {"id": 505}, "organization": {"id": 652}, "project": {"owner": {"id": 777}, "assignee": {"id": 853}, "organization": {"id": 957}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 468}, "assignee": {"id": 513}, "organization": {"id": 157}, "project": {"owner": {"id": 749}, "assignee": {"id": 870}, "organization": {"id": 931}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 461}, "assignee": {"id": 566}, "organization": {"id": 642}, "project": {"owner": {"id": 728}, "assignee": {"id": 857}, "organization": {"id": 972}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 314, "owner": {"id": 436}, "assignee": {"id": 592}, "organization": {"id": 160}, "project": {"owner": {"id": 721}, "assignee": {"id": 839}, "organization": {"id": 910}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 361, "owner": {"id": 430}, "assignee": {"id": 500}, "organization": {"id": 654}, "project": {"owner": {"id": 788}, "assignee": {"id": 824}, "organization": {"id": 972}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 427}, "assignee": {"id": 504}, "organization": {"id": 126}, "project": {"owner": {"id": 771}, "assignee": {"id": 833}, "organization": {"id": 987}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 399, "owner": {"id": 497}, "assignee": {"id": 566}, "organization": {"id": 615}, "project": {"owner": {"id": 754}, "assignee": {"id": 856}, "organization": {"id": 920}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 443}, "assignee": {"id": 585}, "organization": {"id": 147}, "project": {"owner": {"id": 705}, "assignee": {"id": 851}, "organization": {"id": 960}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 112, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 445}, "assignee": {"id": 557}, "organization": {"id": 631}, "project": {"owner": {"id": 794}, "assignee": {"id": 896}, "organization": {"id": 941}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:data", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "owner": {"id": 495}, "assignee": {"id": 596}, "organization": {"id": 116}, "project": {"owner": {"id": 785}, "assignee": {"id": 856}, "organization": {"id": 961}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 301, "owner": {"id": 437}, "assignee": {"id": 505}, "organization": {"id": 622}, "project": {"owner": {"id": 742}, "assignee": {"id": 888}, "organization": {"id": 995}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "owner": {"id": 464}, "assignee": {"id": 570}, "organization": {"id": 141}, "project": {"owner": {"id": 703}, "assignee": {"id": 880}, "organization": {"id": 969}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "owner": {"id": 419}, "assignee": {"id": 527}, "organization": {"id": 643}, "project": {"owner": {"id": 762}, "assignee": {"id": 864}, "organization": {"id": 937}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 380, "owner": {"id": 419}, "assignee": {"id": 505}, "organization": {"id": 102}, "project": {"owner": {"id": 702}, "assignee": {"id": 819}, "organization": {"id": 936}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 310, "owner": {"id": 447}, "assignee": {"id": 507}, "organization": {"id": 659}, "project": {"owner": {"id": 794}, "assignee": {"id": 897}, "organization": {"id": 938}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 448}, "assignee": {"id": 501}, "organization": {"id": 187}, "project": {"owner": {"id": 785}, "assignee": {"id": 815}, "organization": {"id": 954}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 311, "owner": {"id": 443}, "assignee": {"id": 581}, "organization": {"id": 646}, "project": {"owner": {"id": 780}, "assignee": {"id": 848}, "organization": {"id": 955}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 336, "owner": {"id": 402}, "assignee": {"id": 590}, "organization": {"id": 105}, "project": {"owner": {"id": 756}, "assignee": {"id": 884}, "organization": {"id": 983}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 305, "owner": {"id": 439}, "assignee": {"id": 542}, "organization": {"id": 670}, "project": {"owner": {"id": 738}, "assignee": {"id": 804}, "organization": {"id": 982}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 480}, "assignee": {"id": 561}, "organization": {"id": 104}, "project": {"owner": {"id": 751}, "assignee": {"id": 873}, "organization": {"id": 979}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "owner": {"id": 439}, "assignee": {"id": 577}, "organization": {"id": 639}, "project": {"owner": {"id": 779}, "assignee": {"id": 830}, "organization": {"id": 942}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "owner": {"id": 489}, "assignee": {"id": 583}, "organization": {"id": 150}, "project": {"owner": {"id": 705}, "assignee": {"id": 886}, "organization": {"id": 928}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 371, "owner": {"id": 427}, "assignee": {"id": 551}, "organization": {"id": 637}, "project": {"owner": {"id": 762}, "assignee": {"id": 817}, "organization": {"id": 921}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 398, "owner": {"id": 465}, "assignee": {"id": 595}, "organization": {"id": 128}, "project": {"owner": {"id": 762}, "assignee": {"id": 804}, "organization": {"id": 967}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 408}, "assignee": {"id": 597}, "organization": {"id": 698}, "project": {"owner": {"id": 737}, "assignee": {"id": 882}, "organization": {"id": 985}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 382, "owner": {"id": 481}, "assignee": {"id": 578}, "organization": {"id": 131}, "project": {"owner": {"id": 790}, "assignee": {"id": 852}, "organization": {"id": 951}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 377, "owner": {"id": 404}, "assignee": {"id": 598}, "organization": {"id": 605}, "project": {"owner": {"id": 793}, "assignee": {"id": 804}, "organization": {"id": 933}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 390, "owner": {"id": 470}, "assignee": {"id": 502}, "organization": {"id": 169}, "project": {"owner": {"id": 789}, "assignee": {"id": 892}, "organization": {"id": 970}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 353, "owner": {"id": 463}, "assignee": {"id": 580}, "organization": {"id": 621}, "project": {"owner": {"id": 740}, "assignee": {"id": 813}, "organization": {"id": 938}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 414}, "assignee": {"id": 594}, "organization": {"id": 157}, "project": {"owner": {"id": 706}, "assignee": {"id": 872}, "organization": {"id": 974}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 463}, "assignee": {"id": 501}, "organization": {"id": 675}, "project": {"owner": {"id": 764}, "assignee": {"id": 814}, "organization": {"id": 950}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 428}, "assignee": {"id": 502}, "organization": {"id": 177}, "project": {"owner": {"id": 780}, "assignee": {"id": 869}, "organization": {"id": 937}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "owner": {"id": 423}, "assignee": {"id": 570}, "organization": {"id": 612}, "project": {"owner": {"id": 746}, "assignee": {"id": 806}, "organization": {"id": 912}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 333, "owner": {"id": 452}, "assignee": {"id": 549}, "organization": {"id": 119}, "project": {"owner": {"id": 747}, "assignee": {"id": 856}, "organization": {"id": 929}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 328, "owner": {"id": 453}, "assignee": {"id": 513}, "organization": {"id": 616}, "project": {"owner": {"id": 756}, "assignee": {"id": 851}, "organization": {"id": 975}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 322, "owner": {"id": 498}, "assignee": {"id": 520}, "organization": {"id": 181}, "project": {"owner": {"id": 774}, "assignee": {"id": 845}, "organization": {"id": 963}}}} -} - -test_scope_VIEW_DATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:data", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 462}, "assignee": {"id": 535}, "organization": {"id": 646}, "project": {"owner": {"id": 704}, "assignee": {"id": 871}, "organization": {"id": 907}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": null}, "resource": {"id": 314, "owner": {"id": 428}, "assignee": {"id": 593}, "organization": {"id": 659}, "project": {"owner": {"id": 76}, "assignee": {"id": 805}, "organization": {"id": 932}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": null}, "resource": {"id": 301, "owner": {"id": 473}, "assignee": {"id": 585}, "organization": {"id": 645}, "project": {"owner": {"id": 46}, "assignee": {"id": 816}, "organization": {"id": 980}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": null}, "resource": {"id": 337, "owner": {"id": 497}, "assignee": {"id": 549}, "organization": {"id": 668}, "project": {"owner": {"id": 58}, "assignee": {"id": 881}, "organization": {"id": 990}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": null}, "resource": {"id": 324, "owner": {"id": 425}, "assignee": {"id": 513}, "organization": {"id": 683}, "project": {"owner": {"id": 12}, "assignee": {"id": 885}, "organization": {"id": 993}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": null}, "resource": {"id": 383, "owner": {"id": 422}, "assignee": {"id": 518}, "organization": {"id": 639}, "project": {"owner": {"id": 77}, "assignee": {"id": 870}, "organization": {"id": 981}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": null}, "resource": {"id": 328, "owner": {"id": 460}, "assignee": {"id": 525}, "organization": {"id": 606}, "project": {"owner": {"id": 767}, "assignee": {"id": 10}, "organization": {"id": 958}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": null}, "resource": {"id": 375, "owner": {"id": 485}, "assignee": {"id": 586}, "organization": {"id": 631}, "project": {"owner": {"id": 770}, "assignee": {"id": 62}, "organization": {"id": 937}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": null}, "resource": {"id": 309, "owner": {"id": 429}, "assignee": {"id": 598}, "organization": {"id": 646}, "project": {"owner": {"id": 775}, "assignee": {"id": 0}, "organization": {"id": 964}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": null}, "resource": {"id": 337, "owner": {"id": 440}, "assignee": {"id": 559}, "organization": {"id": 694}, "project": {"owner": {"id": 732}, "assignee": {"id": 97}, "organization": {"id": 942}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": null}, "resource": {"id": 310, "owner": {"id": 485}, "assignee": {"id": 538}, "organization": {"id": 674}, "project": {"owner": {"id": 705}, "assignee": {"id": 10}, "organization": {"id": 960}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": null}, "resource": {"id": 311, "owner": {"id": 41}, "assignee": {"id": 500}, "organization": {"id": 687}, "project": {"owner": {"id": 752}, "assignee": {"id": 851}, "organization": {"id": 976}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": null}, "resource": {"id": 351, "owner": {"id": 37}, "assignee": {"id": 507}, "organization": {"id": 690}, "project": {"owner": {"id": 756}, "assignee": {"id": 870}, "organization": {"id": 919}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": null}, "resource": {"id": 332, "owner": {"id": 96}, "assignee": {"id": 524}, "organization": {"id": 697}, "project": {"owner": {"id": 729}, "assignee": {"id": 812}, "organization": {"id": 955}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": null}, "resource": {"id": 339, "owner": {"id": 47}, "assignee": {"id": 530}, "organization": {"id": 630}, "project": {"owner": {"id": 734}, "assignee": {"id": 889}, "organization": {"id": 928}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": null}, "resource": {"id": 367, "owner": {"id": 64}, "assignee": {"id": 557}, "organization": {"id": 693}, "project": {"owner": {"id": 719}, "assignee": {"id": 849}, "organization": {"id": 950}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": null}, "resource": {"id": 344, "owner": {"id": 400}, "assignee": {"id": 96}, "organization": {"id": 690}, "project": {"owner": {"id": 727}, "assignee": {"id": 866}, "organization": {"id": 944}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 94, "privilege": "business"}, "organization": null}, "resource": {"id": 382, "owner": {"id": 400}, "assignee": {"id": 94}, "organization": {"id": 673}, "project": {"owner": {"id": 746}, "assignee": {"id": 845}, "organization": {"id": 988}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": null}, "resource": {"id": 327, "owner": {"id": 417}, "assignee": {"id": 4}, "organization": {"id": 616}, "project": {"owner": {"id": 723}, "assignee": {"id": 829}, "organization": {"id": 921}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": null}, "resource": {"id": 369, "owner": {"id": 400}, "assignee": {"id": 56}, "organization": {"id": 656}, "project": {"owner": {"id": 781}, "assignee": {"id": 835}, "organization": {"id": 983}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": null}, "resource": {"id": 365, "owner": {"id": 462}, "assignee": {"id": 47}, "organization": {"id": 645}, "project": {"owner": {"id": 728}, "assignee": {"id": 859}, "organization": {"id": 908}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": null}, "resource": {"id": 327, "owner": {"id": 403}, "assignee": {"id": 553}, "organization": {"id": 612}, "project": {"owner": {"id": 768}, "assignee": {"id": 874}, "organization": {"id": 917}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": null}, "resource": {"id": 312, "owner": {"id": 472}, "assignee": {"id": 577}, "organization": {"id": 696}, "project": {"owner": {"id": 753}, "assignee": {"id": 869}, "organization": {"id": 995}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": null}, "resource": {"id": 302, "owner": {"id": 473}, "assignee": {"id": 509}, "organization": {"id": 632}, "project": {"owner": {"id": 734}, "assignee": {"id": 855}, "organization": {"id": 945}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": null}, "resource": {"id": 347, "owner": {"id": 407}, "assignee": {"id": 571}, "organization": {"id": 686}, "project": {"owner": {"id": 715}, "assignee": {"id": 847}, "organization": {"id": 972}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": null}, "resource": {"id": 339, "owner": {"id": 410}, "assignee": {"id": 585}, "organization": {"id": 669}, "project": {"owner": {"id": 729}, "assignee": {"id": 823}, "organization": {"id": 965}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 395, "owner": {"id": 487}, "assignee": {"id": 587}, "organization": {"id": 190}, "project": {"owner": {"id": 76}, "assignee": {"id": 863}, "organization": {"id": 991}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 399, "owner": {"id": 474}, "assignee": {"id": 558}, "organization": {"id": 695}, "project": {"owner": {"id": 11}, "assignee": {"id": 841}, "organization": {"id": 973}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "owner": {"id": 467}, "assignee": {"id": 573}, "organization": {"id": 139}, "project": {"owner": {"id": 84}, "assignee": {"id": 800}, "organization": {"id": 973}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 497}, "assignee": {"id": 569}, "organization": {"id": 632}, "project": {"owner": {"id": 19}, "assignee": {"id": 830}, "organization": {"id": 974}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "owner": {"id": 471}, "assignee": {"id": 594}, "organization": {"id": 161}, "project": {"owner": {"id": 82}, "assignee": {"id": 871}, "organization": {"id": 902}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "owner": {"id": 461}, "assignee": {"id": 550}, "organization": {"id": 685}, "project": {"owner": {"id": 53}, "assignee": {"id": 886}, "organization": {"id": 961}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 426}, "assignee": {"id": 557}, "organization": {"id": 118}, "project": {"owner": {"id": 35}, "assignee": {"id": 841}, "organization": {"id": 931}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 314, "owner": {"id": 472}, "assignee": {"id": 512}, "organization": {"id": 668}, "project": {"owner": {"id": 16}, "assignee": {"id": 815}, "organization": {"id": 954}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 357, "owner": {"id": 439}, "assignee": {"id": 556}, "organization": {"id": 151}, "project": {"owner": {"id": 88}, "assignee": {"id": 855}, "organization": {"id": 954}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 488}, "assignee": {"id": 578}, "organization": {"id": 610}, "project": {"owner": {"id": 24}, "assignee": {"id": 815}, "organization": {"id": 976}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 348, "owner": {"id": 432}, "assignee": {"id": 516}, "organization": {"id": 126}, "project": {"owner": {"id": 78}, "assignee": {"id": 884}, "organization": {"id": 983}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 357, "owner": {"id": 455}, "assignee": {"id": 574}, "organization": {"id": 663}, "project": {"owner": {"id": 53}, "assignee": {"id": 867}, "organization": {"id": 945}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "owner": {"id": 473}, "assignee": {"id": 514}, "organization": {"id": 193}, "project": {"owner": {"id": 55}, "assignee": {"id": 847}, "organization": {"id": 983}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "owner": {"id": 475}, "assignee": {"id": 583}, "organization": {"id": 685}, "project": {"owner": {"id": 84}, "assignee": {"id": 862}, "organization": {"id": 905}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "owner": {"id": 461}, "assignee": {"id": 561}, "organization": {"id": 159}, "project": {"owner": {"id": 57}, "assignee": {"id": 804}, "organization": {"id": 945}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "owner": {"id": 446}, "assignee": {"id": 595}, "organization": {"id": 602}, "project": {"owner": {"id": 47}, "assignee": {"id": 810}, "organization": {"id": 946}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 379, "owner": {"id": 436}, "assignee": {"id": 504}, "organization": {"id": 141}, "project": {"owner": {"id": 68}, "assignee": {"id": 888}, "organization": {"id": 979}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 341, "owner": {"id": 416}, "assignee": {"id": 547}, "organization": {"id": 649}, "project": {"owner": {"id": 33}, "assignee": {"id": 827}, "organization": {"id": 962}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 370, "owner": {"id": 434}, "assignee": {"id": 545}, "organization": {"id": 183}, "project": {"owner": {"id": 85}, "assignee": {"id": 843}, "organization": {"id": 990}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 496}, "assignee": {"id": 586}, "organization": {"id": 652}, "project": {"owner": {"id": 88}, "assignee": {"id": 830}, "organization": {"id": 943}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 300, "owner": {"id": 490}, "assignee": {"id": 542}, "organization": {"id": 101}, "project": {"owner": {"id": 99}, "assignee": {"id": 843}, "organization": {"id": 927}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 357, "owner": {"id": 420}, "assignee": {"id": 560}, "organization": {"id": 693}, "project": {"owner": {"id": 80}, "assignee": {"id": 816}, "organization": {"id": 967}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "owner": {"id": 418}, "assignee": {"id": 560}, "organization": {"id": 171}, "project": {"owner": {"id": 64}, "assignee": {"id": 841}, "organization": {"id": 986}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 491}, "assignee": {"id": 571}, "organization": {"id": 674}, "project": {"owner": {"id": 82}, "assignee": {"id": 820}, "organization": {"id": 994}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 430}, "assignee": {"id": 552}, "organization": {"id": 123}, "project": {"owner": {"id": 81}, "assignee": {"id": 869}, "organization": {"id": 903}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "owner": {"id": 455}, "assignee": {"id": 587}, "organization": {"id": 639}, "project": {"owner": {"id": 82}, "assignee": {"id": 869}, "organization": {"id": 922}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 336, "owner": {"id": 425}, "assignee": {"id": 588}, "organization": {"id": 150}, "project": {"owner": {"id": 77}, "assignee": {"id": 807}, "organization": {"id": 961}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 355, "owner": {"id": 445}, "assignee": {"id": 528}, "organization": {"id": 661}, "project": {"owner": {"id": 87}, "assignee": {"id": 899}, "organization": {"id": 959}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"id": 317, "owner": {"id": 435}, "assignee": {"id": 562}, "organization": {"id": 175}, "project": {"owner": {"id": 8}, "assignee": {"id": 836}, "organization": {"id": 972}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 424}, "assignee": {"id": 587}, "organization": {"id": 654}, "project": {"owner": {"id": 87}, "assignee": {"id": 842}, "organization": {"id": 902}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 343, "owner": {"id": 477}, "assignee": {"id": 522}, "organization": {"id": 109}, "project": {"owner": {"id": 77}, "assignee": {"id": 812}, "organization": {"id": 949}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 478}, "assignee": {"id": 560}, "organization": {"id": 667}, "project": {"owner": {"id": 65}, "assignee": {"id": 861}, "organization": {"id": 979}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "owner": {"id": 461}, "assignee": {"id": 585}, "organization": {"id": 127}, "project": {"owner": {"id": 25}, "assignee": {"id": 867}, "organization": {"id": 908}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 439}, "assignee": {"id": 594}, "organization": {"id": 674}, "project": {"owner": {"id": 98}, "assignee": {"id": 818}, "organization": {"id": 926}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "owner": {"id": 422}, "assignee": {"id": 555}, "organization": {"id": 135}, "project": {"owner": {"id": 99}, "assignee": {"id": 822}, "organization": {"id": 997}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "owner": {"id": 412}, "assignee": {"id": 570}, "organization": {"id": 600}, "project": {"owner": {"id": 86}, "assignee": {"id": 889}, "organization": {"id": 948}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 478}, "assignee": {"id": 578}, "organization": {"id": 173}, "project": {"owner": {"id": 22}, "assignee": {"id": 882}, "organization": {"id": 988}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 353, "owner": {"id": 433}, "assignee": {"id": 505}, "organization": {"id": 631}, "project": {"owner": {"id": 19}, "assignee": {"id": 813}, "organization": {"id": 969}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 376, "owner": {"id": 412}, "assignee": {"id": 533}, "organization": {"id": 110}, "project": {"owner": {"id": 12}, "assignee": {"id": 875}, "organization": {"id": 944}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 403}, "assignee": {"id": 524}, "organization": {"id": 629}, "project": {"owner": {"id": 47}, "assignee": {"id": 895}, "organization": {"id": 907}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 487}, "assignee": {"id": 555}, "organization": {"id": 173}, "project": {"owner": {"id": 27}, "assignee": {"id": 832}, "organization": {"id": 919}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 324, "owner": {"id": 471}, "assignee": {"id": 586}, "organization": {"id": 626}, "project": {"owner": {"id": 86}, "assignee": {"id": 861}, "organization": {"id": 945}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 320, "owner": {"id": 467}, "assignee": {"id": 564}, "organization": {"id": 161}, "project": {"owner": {"id": 92}, "assignee": {"id": 831}, "organization": {"id": 960}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "owner": {"id": 480}, "assignee": {"id": 570}, "organization": {"id": 680}, "project": {"owner": {"id": 94}, "assignee": {"id": 841}, "organization": {"id": 906}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 422}, "assignee": {"id": 557}, "organization": {"id": 173}, "project": {"owner": {"id": 58}, "assignee": {"id": 887}, "organization": {"id": 910}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 451}, "assignee": {"id": 520}, "organization": {"id": 645}, "project": {"owner": {"id": 25}, "assignee": {"id": 842}, "organization": {"id": 945}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 479}, "assignee": {"id": 577}, "organization": {"id": 186}, "project": {"owner": {"id": 39}, "assignee": {"id": 883}, "organization": {"id": 981}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 389, "owner": {"id": 465}, "assignee": {"id": 531}, "organization": {"id": 688}, "project": {"owner": {"id": 71}, "assignee": {"id": 818}, "organization": {"id": 950}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 397, "owner": {"id": 490}, "assignee": {"id": 562}, "organization": {"id": 167}, "project": {"owner": {"id": 85}, "assignee": {"id": 893}, "organization": {"id": 965}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 334, "owner": {"id": 476}, "assignee": {"id": 510}, "organization": {"id": 621}, "project": {"owner": {"id": 21}, "assignee": {"id": 855}, "organization": {"id": 956}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 432}, "assignee": {"id": 563}, "organization": {"id": 137}, "project": {"owner": {"id": 749}, "assignee": {"id": 6}, "organization": {"id": 910}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 356, "owner": {"id": 448}, "assignee": {"id": 590}, "organization": {"id": 621}, "project": {"owner": {"id": 776}, "assignee": {"id": 48}, "organization": {"id": 979}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 436}, "assignee": {"id": 512}, "organization": {"id": 185}, "project": {"owner": {"id": 740}, "assignee": {"id": 9}, "organization": {"id": 928}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "owner": {"id": 418}, "assignee": {"id": 502}, "organization": {"id": 636}, "project": {"owner": {"id": 702}, "assignee": {"id": 90}, "organization": {"id": 909}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 472}, "assignee": {"id": 508}, "organization": {"id": 188}, "project": {"owner": {"id": 776}, "assignee": {"id": 31}, "organization": {"id": 935}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 407}, "assignee": {"id": 523}, "organization": {"id": 654}, "project": {"owner": {"id": 746}, "assignee": {"id": 12}, "organization": {"id": 967}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 428}, "assignee": {"id": 545}, "organization": {"id": 147}, "project": {"owner": {"id": 703}, "assignee": {"id": 26}, "organization": {"id": 974}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 484}, "assignee": {"id": 510}, "organization": {"id": 603}, "project": {"owner": {"id": 714}, "assignee": {"id": 65}, "organization": {"id": 941}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 456}, "assignee": {"id": 528}, "organization": {"id": 105}, "project": {"owner": {"id": 728}, "assignee": {"id": 88}, "organization": {"id": 907}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 491}, "assignee": {"id": 508}, "organization": {"id": 685}, "project": {"owner": {"id": 788}, "assignee": {"id": 72}, "organization": {"id": 935}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 357, "owner": {"id": 446}, "assignee": {"id": 553}, "organization": {"id": 113}, "project": {"owner": {"id": 763}, "assignee": {"id": 23}, "organization": {"id": 900}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 456}, "assignee": {"id": 527}, "organization": {"id": 658}, "project": {"owner": {"id": 727}, "assignee": {"id": 61}, "organization": {"id": 976}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 410}, "assignee": {"id": 500}, "organization": {"id": 152}, "project": {"owner": {"id": 784}, "assignee": {"id": 21}, "organization": {"id": 972}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 470}, "assignee": {"id": 578}, "organization": {"id": 620}, "project": {"owner": {"id": 720}, "assignee": {"id": 33}, "organization": {"id": 986}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "owner": {"id": 409}, "assignee": {"id": 526}, "organization": {"id": 175}, "project": {"owner": {"id": 748}, "assignee": {"id": 88}, "organization": {"id": 934}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 31, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "owner": {"id": 406}, "assignee": {"id": 521}, "organization": {"id": 683}, "project": {"owner": {"id": 740}, "assignee": {"id": 31}, "organization": {"id": 934}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 392, "owner": {"id": 405}, "assignee": {"id": 535}, "organization": {"id": 103}, "project": {"owner": {"id": 710}, "assignee": {"id": 91}, "organization": {"id": 971}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 338, "owner": {"id": 443}, "assignee": {"id": 506}, "organization": {"id": 610}, "project": {"owner": {"id": 740}, "assignee": {"id": 8}, "organization": {"id": 931}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 373, "owner": {"id": 441}, "assignee": {"id": 578}, "organization": {"id": 151}, "project": {"owner": {"id": 752}, "assignee": {"id": 61}, "organization": {"id": 919}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 399, "owner": {"id": 424}, "assignee": {"id": 589}, "organization": {"id": 635}, "project": {"owner": {"id": 796}, "assignee": {"id": 77}, "organization": {"id": 962}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 306, "owner": {"id": 441}, "assignee": {"id": 532}, "organization": {"id": 160}, "project": {"owner": {"id": 742}, "assignee": {"id": 40}, "organization": {"id": 919}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 434}, "assignee": {"id": 521}, "organization": {"id": 622}, "project": {"owner": {"id": 739}, "assignee": {"id": 96}, "organization": {"id": 933}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "owner": {"id": 433}, "assignee": {"id": 584}, "organization": {"id": 114}, "project": {"owner": {"id": 788}, "assignee": {"id": 96}, "organization": {"id": 953}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "owner": {"id": 497}, "assignee": {"id": 562}, "organization": {"id": 643}, "project": {"owner": {"id": 733}, "assignee": {"id": 66}, "organization": {"id": 994}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "owner": {"id": 463}, "assignee": {"id": 513}, "organization": {"id": 148}, "project": {"owner": {"id": 738}, "assignee": {"id": 12}, "organization": {"id": 971}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 471}, "assignee": {"id": 502}, "organization": {"id": 609}, "project": {"owner": {"id": 772}, "assignee": {"id": 42}, "organization": {"id": 985}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 305, "owner": {"id": 471}, "assignee": {"id": 521}, "organization": {"id": 141}, "project": {"owner": {"id": 762}, "assignee": {"id": 48}, "organization": {"id": 970}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 333, "owner": {"id": 434}, "assignee": {"id": 593}, "organization": {"id": 637}, "project": {"owner": {"id": 711}, "assignee": {"id": 95}, "organization": {"id": 935}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 333, "owner": {"id": 498}, "assignee": {"id": 518}, "organization": {"id": 167}, "project": {"owner": {"id": 751}, "assignee": {"id": 2}, "organization": {"id": 980}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 489}, "assignee": {"id": 544}, "organization": {"id": 605}, "project": {"owner": {"id": 708}, "assignee": {"id": 29}, "organization": {"id": 915}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 365, "owner": {"id": 484}, "assignee": {"id": 553}, "organization": {"id": 179}, "project": {"owner": {"id": 722}, "assignee": {"id": 32}, "organization": {"id": 965}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 305, "owner": {"id": 437}, "assignee": {"id": 518}, "organization": {"id": 632}, "project": {"owner": {"id": 708}, "assignee": {"id": 72}, "organization": {"id": 992}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "owner": {"id": 437}, "assignee": {"id": 519}, "organization": {"id": 110}, "project": {"owner": {"id": 756}, "assignee": {"id": 68}, "organization": {"id": 984}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "owner": {"id": 401}, "assignee": {"id": 505}, "organization": {"id": 654}, "project": {"owner": {"id": 768}, "assignee": {"id": 28}, "organization": {"id": 933}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "owner": {"id": 460}, "assignee": {"id": 519}, "organization": {"id": 159}, "project": {"owner": {"id": 728}, "assignee": {"id": 83}, "organization": {"id": 995}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "owner": {"id": 494}, "assignee": {"id": 513}, "organization": {"id": 687}, "project": {"owner": {"id": 706}, "assignee": {"id": 15}, "organization": {"id": 932}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 341, "owner": {"id": 404}, "assignee": {"id": 503}, "organization": {"id": 158}, "project": {"owner": {"id": 755}, "assignee": {"id": 88}, "organization": {"id": 910}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"id": 396, "owner": {"id": 414}, "assignee": {"id": 590}, "organization": {"id": 695}, "project": {"owner": {"id": 768}, "assignee": {"id": 57}, "organization": {"id": 900}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"id": 332, "owner": {"id": 422}, "assignee": {"id": 564}, "organization": {"id": 113}, "project": {"owner": {"id": 747}, "assignee": {"id": 55}, "organization": {"id": 958}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 380, "owner": {"id": 454}, "assignee": {"id": 561}, "organization": {"id": 661}, "project": {"owner": {"id": 705}, "assignee": {"id": 62}, "organization": {"id": 954}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 311, "owner": {"id": 477}, "assignee": {"id": 592}, "organization": {"id": 138}, "project": {"owner": {"id": 722}, "assignee": {"id": 29}, "organization": {"id": 997}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 315, "owner": {"id": 433}, "assignee": {"id": 526}, "organization": {"id": 601}, "project": {"owner": {"id": 781}, "assignee": {"id": 14}, "organization": {"id": 919}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "owner": {"id": 422}, "assignee": {"id": 595}, "organization": {"id": 125}, "project": {"owner": {"id": 779}, "assignee": {"id": 28}, "organization": {"id": 968}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 435}, "assignee": {"id": 588}, "organization": {"id": 606}, "project": {"owner": {"id": 767}, "assignee": {"id": 13}, "organization": {"id": 973}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "owner": {"id": 405}, "assignee": {"id": 544}, "organization": {"id": 159}, "project": {"owner": {"id": 774}, "assignee": {"id": 88}, "organization": {"id": 936}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "owner": {"id": 450}, "assignee": {"id": 575}, "organization": {"id": 694}, "project": {"owner": {"id": 768}, "assignee": {"id": 11}, "organization": {"id": 903}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 421}, "assignee": {"id": 543}, "organization": {"id": 127}, "project": {"owner": {"id": 751}, "assignee": {"id": 68}, "organization": {"id": 907}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 312, "owner": {"id": 495}, "assignee": {"id": 501}, "organization": {"id": 671}, "project": {"owner": {"id": 769}, "assignee": {"id": 45}, "organization": {"id": 919}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 304, "owner": {"id": 408}, "assignee": {"id": 551}, "organization": {"id": 183}, "project": {"owner": {"id": 721}, "assignee": {"id": 94}, "organization": {"id": 906}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"id": 391, "owner": {"id": 430}, "assignee": {"id": 558}, "organization": {"id": 607}, "project": {"owner": {"id": 728}, "assignee": {"id": 79}, "organization": {"id": 943}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 313, "owner": {"id": 9}, "assignee": {"id": 515}, "organization": {"id": 155}, "project": {"owner": {"id": 756}, "assignee": {"id": 848}, "organization": {"id": 996}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 352, "owner": {"id": 95}, "assignee": {"id": 573}, "organization": {"id": 651}, "project": {"owner": {"id": 744}, "assignee": {"id": 869}, "organization": {"id": 950}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "owner": {"id": 62}, "assignee": {"id": 599}, "organization": {"id": 124}, "project": {"owner": {"id": 731}, "assignee": {"id": 848}, "organization": {"id": 965}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 5}, "assignee": {"id": 518}, "organization": {"id": 622}, "project": {"owner": {"id": 741}, "assignee": {"id": 835}, "organization": {"id": 946}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 59}, "assignee": {"id": 534}, "organization": {"id": 126}, "project": {"owner": {"id": 778}, "assignee": {"id": 856}, "organization": {"id": 971}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 371, "owner": {"id": 15}, "assignee": {"id": 512}, "organization": {"id": 668}, "project": {"owner": {"id": 725}, "assignee": {"id": 881}, "organization": {"id": 936}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 306, "owner": {"id": 37}, "assignee": {"id": 500}, "organization": {"id": 165}, "project": {"owner": {"id": 749}, "assignee": {"id": 841}, "organization": {"id": 969}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 330, "owner": {"id": 0}, "assignee": {"id": 596}, "organization": {"id": 672}, "project": {"owner": {"id": 729}, "assignee": {"id": 803}, "organization": {"id": 996}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 0}, "assignee": {"id": 589}, "organization": {"id": 190}, "project": {"owner": {"id": 783}, "assignee": {"id": 891}, "organization": {"id": 953}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 377, "owner": {"id": 72}, "assignee": {"id": 580}, "organization": {"id": 663}, "project": {"owner": {"id": 704}, "assignee": {"id": 849}, "organization": {"id": 935}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 78}, "assignee": {"id": 579}, "organization": {"id": 106}, "project": {"owner": {"id": 736}, "assignee": {"id": 836}, "organization": {"id": 959}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 1}, "assignee": {"id": 570}, "organization": {"id": 631}, "project": {"owner": {"id": 707}, "assignee": {"id": 833}, "organization": {"id": 960}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "owner": {"id": 33}, "assignee": {"id": 573}, "organization": {"id": 147}, "project": {"owner": {"id": 720}, "assignee": {"id": 858}, "organization": {"id": 954}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "owner": {"id": 6}, "assignee": {"id": 587}, "organization": {"id": 698}, "project": {"owner": {"id": 706}, "assignee": {"id": 841}, "organization": {"id": 980}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 369, "owner": {"id": 69}, "assignee": {"id": 562}, "organization": {"id": 165}, "project": {"owner": {"id": 738}, "assignee": {"id": 861}, "organization": {"id": 926}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "owner": {"id": 48}, "assignee": {"id": 536}, "organization": {"id": 623}, "project": {"owner": {"id": 762}, "assignee": {"id": 839}, "organization": {"id": 903}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 321, "owner": {"id": 40}, "assignee": {"id": 541}, "organization": {"id": 128}, "project": {"owner": {"id": 756}, "assignee": {"id": 820}, "organization": {"id": 944}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 301, "owner": {"id": 40}, "assignee": {"id": 588}, "organization": {"id": 617}, "project": {"owner": {"id": 768}, "assignee": {"id": 846}, "organization": {"id": 909}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 11}, "assignee": {"id": 542}, "organization": {"id": 156}, "project": {"owner": {"id": 732}, "assignee": {"id": 859}, "organization": {"id": 910}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 365, "owner": {"id": 92}, "assignee": {"id": 586}, "organization": {"id": 697}, "project": {"owner": {"id": 799}, "assignee": {"id": 844}, "organization": {"id": 901}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 326, "owner": {"id": 34}, "assignee": {"id": 595}, "organization": {"id": 111}, "project": {"owner": {"id": 715}, "assignee": {"id": 867}, "organization": {"id": 981}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 2}, "assignee": {"id": 595}, "organization": {"id": 611}, "project": {"owner": {"id": 737}, "assignee": {"id": 813}, "organization": {"id": 916}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 8}, "assignee": {"id": 580}, "organization": {"id": 142}, "project": {"owner": {"id": 735}, "assignee": {"id": 894}, "organization": {"id": 947}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "owner": {"id": 52}, "assignee": {"id": 527}, "organization": {"id": 627}, "project": {"owner": {"id": 798}, "assignee": {"id": 819}, "organization": {"id": 960}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 57}, "assignee": {"id": 548}, "organization": {"id": 128}, "project": {"owner": {"id": 773}, "assignee": {"id": 874}, "organization": {"id": 933}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "owner": {"id": 47}, "assignee": {"id": 525}, "organization": {"id": 605}, "project": {"owner": {"id": 772}, "assignee": {"id": 819}, "organization": {"id": 986}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 377, "owner": {"id": 52}, "assignee": {"id": 548}, "organization": {"id": 105}, "project": {"owner": {"id": 746}, "assignee": {"id": 852}, "organization": {"id": 925}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 310, "owner": {"id": 78}, "assignee": {"id": 538}, "organization": {"id": 615}, "project": {"owner": {"id": 726}, "assignee": {"id": 861}, "organization": {"id": 926}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 311, "owner": {"id": 28}, "assignee": {"id": 582}, "organization": {"id": 155}, "project": {"owner": {"id": 768}, "assignee": {"id": 808}, "organization": {"id": 972}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 374, "owner": {"id": 44}, "assignee": {"id": 524}, "organization": {"id": 655}, "project": {"owner": {"id": 738}, "assignee": {"id": 826}, "organization": {"id": 954}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 324, "owner": {"id": 76}, "assignee": {"id": 584}, "organization": {"id": 135}, "project": {"owner": {"id": 794}, "assignee": {"id": 840}, "organization": {"id": 988}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 353, "owner": {"id": 69}, "assignee": {"id": 597}, "organization": {"id": 615}, "project": {"owner": {"id": 747}, "assignee": {"id": 804}, "organization": {"id": 996}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 68}, "assignee": {"id": 548}, "organization": {"id": 157}, "project": {"owner": {"id": 729}, "assignee": {"id": 883}, "organization": {"id": 913}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "owner": {"id": 86}, "assignee": {"id": 561}, "organization": {"id": 652}, "project": {"owner": {"id": 799}, "assignee": {"id": 829}, "organization": {"id": 930}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 28}, "assignee": {"id": 501}, "organization": {"id": 188}, "project": {"owner": {"id": 719}, "assignee": {"id": 826}, "organization": {"id": 930}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "owner": {"id": 49}, "assignee": {"id": 597}, "organization": {"id": 630}, "project": {"owner": {"id": 713}, "assignee": {"id": 884}, "organization": {"id": 972}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 318, "owner": {"id": 19}, "assignee": {"id": 503}, "organization": {"id": 163}, "project": {"owner": {"id": 792}, "assignee": {"id": 891}, "organization": {"id": 984}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 333, "owner": {"id": 69}, "assignee": {"id": 503}, "organization": {"id": 699}, "project": {"owner": {"id": 739}, "assignee": {"id": 831}, "organization": {"id": 999}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 354, "owner": {"id": 19}, "assignee": {"id": 538}, "organization": {"id": 149}, "project": {"owner": {"id": 705}, "assignee": {"id": 863}, "organization": {"id": 983}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 394, "owner": {"id": 77}, "assignee": {"id": 559}, "organization": {"id": 640}, "project": {"owner": {"id": 761}, "assignee": {"id": 893}, "organization": {"id": 964}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 325, "owner": {"id": 24}, "assignee": {"id": 564}, "organization": {"id": 167}, "project": {"owner": {"id": 745}, "assignee": {"id": 826}, "organization": {"id": 962}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 371, "owner": {"id": 72}, "assignee": {"id": 567}, "organization": {"id": 618}, "project": {"owner": {"id": 725}, "assignee": {"id": 824}, "organization": {"id": 905}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 63}, "assignee": {"id": 574}, "organization": {"id": 106}, "project": {"owner": {"id": 721}, "assignee": {"id": 837}, "organization": {"id": 959}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "owner": {"id": 17}, "assignee": {"id": 546}, "organization": {"id": 612}, "project": {"owner": {"id": 767}, "assignee": {"id": 888}, "organization": {"id": 950}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "owner": {"id": 51}, "assignee": {"id": 584}, "organization": {"id": 158}, "project": {"owner": {"id": 783}, "assignee": {"id": 852}, "organization": {"id": 924}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 387, "owner": {"id": 69}, "assignee": {"id": 564}, "organization": {"id": 683}, "project": {"owner": {"id": 783}, "assignee": {"id": 808}, "organization": {"id": 954}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 301, "owner": {"id": 67}, "assignee": {"id": 548}, "organization": {"id": 108}, "project": {"owner": {"id": 751}, "assignee": {"id": 864}, "organization": {"id": 987}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 21}, "assignee": {"id": 506}, "organization": {"id": 639}, "project": {"owner": {"id": 793}, "assignee": {"id": 820}, "organization": {"id": 947}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 334, "owner": {"id": 99}, "assignee": {"id": 541}, "organization": {"id": 109}, "project": {"owner": {"id": 702}, "assignee": {"id": 854}, "organization": {"id": 969}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 357, "owner": {"id": 85}, "assignee": {"id": 517}, "organization": {"id": 620}, "project": {"owner": {"id": 780}, "assignee": {"id": 836}, "organization": {"id": 912}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 358, "owner": {"id": 477}, "assignee": {"id": 71}, "organization": {"id": 107}, "project": {"owner": {"id": 727}, "assignee": {"id": 815}, "organization": {"id": 905}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 327, "owner": {"id": 433}, "assignee": {"id": 44}, "organization": {"id": 692}, "project": {"owner": {"id": 700}, "assignee": {"id": 879}, "organization": {"id": 969}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "owner": {"id": 467}, "assignee": {"id": 68}, "organization": {"id": 131}, "project": {"owner": {"id": 773}, "assignee": {"id": 805}, "organization": {"id": 934}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "owner": {"id": 453}, "assignee": {"id": 94}, "organization": {"id": 669}, "project": {"owner": {"id": 748}, "assignee": {"id": 888}, "organization": {"id": 958}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 407}, "assignee": {"id": 64}, "organization": {"id": 188}, "project": {"owner": {"id": 727}, "assignee": {"id": 808}, "organization": {"id": 985}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 7, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "owner": {"id": 490}, "assignee": {"id": 7}, "organization": {"id": 695}, "project": {"owner": {"id": 793}, "assignee": {"id": 853}, "organization": {"id": 938}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 377, "owner": {"id": 473}, "assignee": {"id": 81}, "organization": {"id": 103}, "project": {"owner": {"id": 787}, "assignee": {"id": 838}, "organization": {"id": 928}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"id": 363, "owner": {"id": 492}, "assignee": {"id": 67}, "organization": {"id": 601}, "project": {"owner": {"id": 789}, "assignee": {"id": 827}, "organization": {"id": 956}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"id": 399, "owner": {"id": 442}, "assignee": {"id": 53}, "organization": {"id": 194}, "project": {"owner": {"id": 756}, "assignee": {"id": 813}, "organization": {"id": 916}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 463}, "assignee": {"id": 62}, "organization": {"id": 636}, "project": {"owner": {"id": 710}, "assignee": {"id": 842}, "organization": {"id": 940}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 312, "owner": {"id": 430}, "assignee": {"id": 9}, "organization": {"id": 136}, "project": {"owner": {"id": 756}, "assignee": {"id": 825}, "organization": {"id": 991}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 315, "owner": {"id": 461}, "assignee": {"id": 61}, "organization": {"id": 643}, "project": {"owner": {"id": 749}, "assignee": {"id": 817}, "organization": {"id": 934}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "owner": {"id": 492}, "assignee": {"id": 69}, "organization": {"id": 120}, "project": {"owner": {"id": 725}, "assignee": {"id": 814}, "organization": {"id": 963}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "owner": {"id": 492}, "assignee": {"id": 52}, "organization": {"id": 645}, "project": {"owner": {"id": 783}, "assignee": {"id": 878}, "organization": {"id": 961}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "owner": {"id": 467}, "assignee": {"id": 91}, "organization": {"id": 151}, "project": {"owner": {"id": 756}, "assignee": {"id": 866}, "organization": {"id": 935}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "owner": {"id": 497}, "assignee": {"id": 52}, "organization": {"id": 642}, "project": {"owner": {"id": 756}, "assignee": {"id": 857}, "organization": {"id": 937}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 314, "owner": {"id": 476}, "assignee": {"id": 40}, "organization": {"id": 154}, "project": {"owner": {"id": 762}, "assignee": {"id": 865}, "organization": {"id": 984}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 380, "owner": {"id": 416}, "assignee": {"id": 33}, "organization": {"id": 643}, "project": {"owner": {"id": 784}, "assignee": {"id": 838}, "organization": {"id": 919}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 354, "owner": {"id": 451}, "assignee": {"id": 77}, "organization": {"id": 107}, "project": {"owner": {"id": 778}, "assignee": {"id": 822}, "organization": {"id": 973}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 320, "owner": {"id": 417}, "assignee": {"id": 5}, "organization": {"id": 653}, "project": {"owner": {"id": 760}, "assignee": {"id": 878}, "organization": {"id": 934}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 412}, "assignee": {"id": 66}, "organization": {"id": 120}, "project": {"owner": {"id": 733}, "assignee": {"id": 813}, "organization": {"id": 929}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 429}, "assignee": {"id": 27}, "organization": {"id": 652}, "project": {"owner": {"id": 785}, "assignee": {"id": 868}, "organization": {"id": 967}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "owner": {"id": 425}, "assignee": {"id": 49}, "organization": {"id": 117}, "project": {"owner": {"id": 796}, "assignee": {"id": 877}, "organization": {"id": 967}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "owner": {"id": 482}, "assignee": {"id": 53}, "organization": {"id": 654}, "project": {"owner": {"id": 783}, "assignee": {"id": 864}, "organization": {"id": 994}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "owner": {"id": 455}, "assignee": {"id": 47}, "organization": {"id": 163}, "project": {"owner": {"id": 729}, "assignee": {"id": 846}, "organization": {"id": 951}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "owner": {"id": 470}, "assignee": {"id": 83}, "organization": {"id": 671}, "project": {"owner": {"id": 739}, "assignee": {"id": 825}, "organization": {"id": 962}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 339, "owner": {"id": 498}, "assignee": {"id": 29}, "organization": {"id": 180}, "project": {"owner": {"id": 752}, "assignee": {"id": 818}, "organization": {"id": 961}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 19, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 300, "owner": {"id": 482}, "assignee": {"id": 19}, "organization": {"id": 604}, "project": {"owner": {"id": 706}, "assignee": {"id": 893}, "organization": {"id": 909}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 336, "owner": {"id": 449}, "assignee": {"id": 36}, "organization": {"id": 177}, "project": {"owner": {"id": 774}, "assignee": {"id": 855}, "organization": {"id": 909}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 372, "owner": {"id": 410}, "assignee": {"id": 50}, "organization": {"id": 606}, "project": {"owner": {"id": 776}, "assignee": {"id": 813}, "organization": {"id": 955}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 375, "owner": {"id": 441}, "assignee": {"id": 4}, "organization": {"id": 106}, "project": {"owner": {"id": 739}, "assignee": {"id": 892}, "organization": {"id": 931}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 466}, "assignee": {"id": 62}, "organization": {"id": 651}, "project": {"owner": {"id": 716}, "assignee": {"id": 883}, "organization": {"id": 994}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 483}, "assignee": {"id": 23}, "organization": {"id": 191}, "project": {"owner": {"id": 700}, "assignee": {"id": 882}, "organization": {"id": 940}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 485}, "assignee": {"id": 87}, "organization": {"id": 670}, "project": {"owner": {"id": 773}, "assignee": {"id": 864}, "organization": {"id": 958}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "owner": {"id": 499}, "assignee": {"id": 47}, "organization": {"id": 199}, "project": {"owner": {"id": 713}, "assignee": {"id": 852}, "organization": {"id": 950}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "owner": {"id": 413}, "assignee": {"id": 68}, "organization": {"id": 695}, "project": {"owner": {"id": 757}, "assignee": {"id": 807}, "organization": {"id": 980}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 351, "owner": {"id": 496}, "assignee": {"id": 85}, "organization": {"id": 132}, "project": {"owner": {"id": 763}, "assignee": {"id": 811}, "organization": {"id": 927}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 381, "owner": {"id": 418}, "assignee": {"id": 22}, "organization": {"id": 604}, "project": {"owner": {"id": 702}, "assignee": {"id": 852}, "organization": {"id": 934}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 432}, "assignee": {"id": 97}, "organization": {"id": 185}, "project": {"owner": {"id": 773}, "assignee": {"id": 882}, "organization": {"id": 939}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 417}, "assignee": {"id": 40}, "organization": {"id": 686}, "project": {"owner": {"id": 787}, "assignee": {"id": 845}, "organization": {"id": 907}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 363, "owner": {"id": 462}, "assignee": {"id": 1}, "organization": {"id": 120}, "project": {"owner": {"id": 710}, "assignee": {"id": 810}, "organization": {"id": 952}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 489}, "assignee": {"id": 68}, "organization": {"id": 645}, "project": {"owner": {"id": 724}, "assignee": {"id": 891}, "organization": {"id": 970}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 445}, "assignee": {"id": 72}, "organization": {"id": 194}, "project": {"owner": {"id": 771}, "assignee": {"id": 863}, "organization": {"id": 940}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 433}, "assignee": {"id": 20}, "organization": {"id": 608}, "project": {"owner": {"id": 786}, "assignee": {"id": 844}, "organization": {"id": 941}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "owner": {"id": 497}, "assignee": {"id": 93}, "organization": {"id": 129}, "project": {"owner": {"id": 712}, "assignee": {"id": 851}, "organization": {"id": 935}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 384, "owner": {"id": 431}, "assignee": {"id": 90}, "organization": {"id": 617}, "project": {"owner": {"id": 777}, "assignee": {"id": 863}, "organization": {"id": 958}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 382, "owner": {"id": 499}, "assignee": {"id": 18}, "organization": {"id": 175}, "project": {"owner": {"id": 729}, "assignee": {"id": 899}, "organization": {"id": 991}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 339, "owner": {"id": 444}, "assignee": {"id": 88}, "organization": {"id": 658}, "project": {"owner": {"id": 767}, "assignee": {"id": 854}, "organization": {"id": 963}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 336, "owner": {"id": 490}, "assignee": {"id": 33}, "organization": {"id": 181}, "project": {"owner": {"id": 760}, "assignee": {"id": 858}, "organization": {"id": 916}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"id": 397, "owner": {"id": 450}, "assignee": {"id": 94}, "organization": {"id": 635}, "project": {"owner": {"id": 779}, "assignee": {"id": 861}, "organization": {"id": 919}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 384, "owner": {"id": 499}, "assignee": {"id": 537}, "organization": {"id": 180}, "project": {"owner": {"id": 772}, "assignee": {"id": 801}, "organization": {"id": 952}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 309, "owner": {"id": 402}, "assignee": {"id": 504}, "organization": {"id": 676}, "project": {"owner": {"id": 773}, "assignee": {"id": 856}, "organization": {"id": 971}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 465}, "assignee": {"id": 521}, "organization": {"id": 181}, "project": {"owner": {"id": 772}, "assignee": {"id": 831}, "organization": {"id": 908}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 415}, "assignee": {"id": 516}, "organization": {"id": 664}, "project": {"owner": {"id": 716}, "assignee": {"id": 854}, "organization": {"id": 945}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 499}, "assignee": {"id": 506}, "organization": {"id": 109}, "project": {"owner": {"id": 723}, "assignee": {"id": 836}, "organization": {"id": 966}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 343, "owner": {"id": 482}, "assignee": {"id": 546}, "organization": {"id": 660}, "project": {"owner": {"id": 772}, "assignee": {"id": 873}, "organization": {"id": 972}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 367, "owner": {"id": 495}, "assignee": {"id": 533}, "organization": {"id": 144}, "project": {"owner": {"id": 733}, "assignee": {"id": 886}, "organization": {"id": 944}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 383, "owner": {"id": 418}, "assignee": {"id": 598}, "organization": {"id": 628}, "project": {"owner": {"id": 736}, "assignee": {"id": 826}, "organization": {"id": 933}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 488}, "assignee": {"id": 503}, "organization": {"id": 127}, "project": {"owner": {"id": 798}, "assignee": {"id": 802}, "organization": {"id": 953}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 393, "owner": {"id": 430}, "assignee": {"id": 575}, "organization": {"id": 642}, "project": {"owner": {"id": 778}, "assignee": {"id": 883}, "organization": {"id": 937}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 369, "owner": {"id": 495}, "assignee": {"id": 583}, "organization": {"id": 160}, "project": {"owner": {"id": 741}, "assignee": {"id": 879}, "organization": {"id": 902}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 81, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 493}, "assignee": {"id": 515}, "organization": {"id": 619}, "project": {"owner": {"id": 766}, "assignee": {"id": 820}, "organization": {"id": 909}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 450}, "assignee": {"id": 539}, "organization": {"id": 110}, "project": {"owner": {"id": 719}, "assignee": {"id": 812}, "organization": {"id": 984}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "owner": {"id": 433}, "assignee": {"id": 598}, "organization": {"id": 663}, "project": {"owner": {"id": 770}, "assignee": {"id": 864}, "organization": {"id": 974}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 458}, "assignee": {"id": 506}, "organization": {"id": 103}, "project": {"owner": {"id": 707}, "assignee": {"id": 847}, "organization": {"id": 903}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 482}, "assignee": {"id": 592}, "organization": {"id": 602}, "project": {"owner": {"id": 781}, "assignee": {"id": 851}, "organization": {"id": 916}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 323, "owner": {"id": 456}, "assignee": {"id": 551}, "organization": {"id": 125}, "project": {"owner": {"id": 732}, "assignee": {"id": 891}, "organization": {"id": 984}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 354, "owner": {"id": 442}, "assignee": {"id": 557}, "organization": {"id": 619}, "project": {"owner": {"id": 700}, "assignee": {"id": 898}, "organization": {"id": 963}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 332, "owner": {"id": 494}, "assignee": {"id": 562}, "organization": {"id": 182}, "project": {"owner": {"id": 761}, "assignee": {"id": 865}, "organization": {"id": 979}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 356, "owner": {"id": 477}, "assignee": {"id": 566}, "organization": {"id": 663}, "project": {"owner": {"id": 763}, "assignee": {"id": 884}, "organization": {"id": 942}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 324, "owner": {"id": 479}, "assignee": {"id": 575}, "organization": {"id": 113}, "project": {"owner": {"id": 755}, "assignee": {"id": 824}, "organization": {"id": 949}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 446}, "assignee": {"id": 535}, "organization": {"id": 634}, "project": {"owner": {"id": 713}, "assignee": {"id": 886}, "organization": {"id": 975}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "owner": {"id": 446}, "assignee": {"id": 557}, "organization": {"id": 151}, "project": {"owner": {"id": 772}, "assignee": {"id": 819}, "organization": {"id": 967}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 477}, "assignee": {"id": 502}, "organization": {"id": 612}, "project": {"owner": {"id": 753}, "assignee": {"id": 845}, "organization": {"id": 913}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "owner": {"id": 440}, "assignee": {"id": 521}, "organization": {"id": 163}, "project": {"owner": {"id": 736}, "assignee": {"id": 857}, "organization": {"id": 969}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "owner": {"id": 482}, "assignee": {"id": 542}, "organization": {"id": 694}, "project": {"owner": {"id": 728}, "assignee": {"id": 824}, "organization": {"id": 926}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 373, "owner": {"id": 499}, "assignee": {"id": 529}, "organization": {"id": 163}, "project": {"owner": {"id": 785}, "assignee": {"id": 827}, "organization": {"id": 982}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 408}, "assignee": {"id": 578}, "organization": {"id": 654}, "project": {"owner": {"id": 795}, "assignee": {"id": 812}, "organization": {"id": 959}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 418}, "assignee": {"id": 514}, "organization": {"id": 167}, "project": {"owner": {"id": 702}, "assignee": {"id": 805}, "organization": {"id": 921}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 484}, "assignee": {"id": 578}, "organization": {"id": 698}, "project": {"owner": {"id": 772}, "assignee": {"id": 845}, "organization": {"id": 966}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 307, "owner": {"id": 498}, "assignee": {"id": 500}, "organization": {"id": 129}, "project": {"owner": {"id": 715}, "assignee": {"id": 881}, "organization": {"id": 916}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 383, "owner": {"id": 406}, "assignee": {"id": 583}, "organization": {"id": 653}, "project": {"owner": {"id": 724}, "assignee": {"id": 812}, "organization": {"id": 978}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 327, "owner": {"id": 463}, "assignee": {"id": 549}, "organization": {"id": 159}, "project": {"owner": {"id": 726}, "assignee": {"id": 821}, "organization": {"id": 993}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "owner": {"id": 487}, "assignee": {"id": 521}, "organization": {"id": 690}, "project": {"owner": {"id": 763}, "assignee": {"id": 836}, "organization": {"id": 986}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 24, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "owner": {"id": 450}, "assignee": {"id": 565}, "organization": {"id": 111}, "project": {"owner": {"id": 778}, "assignee": {"id": 860}, "organization": {"id": 940}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "owner": {"id": 444}, "assignee": {"id": 520}, "organization": {"id": 685}, "project": {"owner": {"id": 733}, "assignee": {"id": 897}, "organization": {"id": 926}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 384, "owner": {"id": 403}, "assignee": {"id": 556}, "organization": {"id": 112}, "project": {"owner": {"id": 757}, "assignee": {"id": 877}, "organization": {"id": 924}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 383, "owner": {"id": 438}, "assignee": {"id": 532}, "organization": {"id": 683}, "project": {"owner": {"id": 777}, "assignee": {"id": 834}, "organization": {"id": 914}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 484}, "assignee": {"id": 534}, "organization": {"id": 183}, "project": {"owner": {"id": 786}, "assignee": {"id": 873}, "organization": {"id": 997}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 322, "owner": {"id": 481}, "assignee": {"id": 533}, "organization": {"id": 685}, "project": {"owner": {"id": 725}, "assignee": {"id": 870}, "organization": {"id": 935}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 318, "owner": {"id": 498}, "assignee": {"id": 563}, "organization": {"id": 129}, "project": {"owner": {"id": 785}, "assignee": {"id": 809}, "organization": {"id": 945}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 381, "owner": {"id": 452}, "assignee": {"id": 567}, "organization": {"id": 642}, "project": {"owner": {"id": 700}, "assignee": {"id": 882}, "organization": {"id": 956}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "owner": {"id": 469}, "assignee": {"id": 519}, "organization": {"id": 124}, "project": {"owner": {"id": 711}, "assignee": {"id": 882}, "organization": {"id": 915}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "owner": {"id": 468}, "assignee": {"id": 555}, "organization": {"id": 657}, "project": {"owner": {"id": 716}, "assignee": {"id": 802}, "organization": {"id": 961}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "owner": {"id": 435}, "assignee": {"id": 594}, "organization": {"id": 152}, "project": {"owner": {"id": 753}, "assignee": {"id": 854}, "organization": {"id": 909}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 291}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 458}, "assignee": {"id": 587}, "organization": {"id": 648}, "project": {"owner": {"id": 701}, "assignee": {"id": 811}, "organization": {"id": 992}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 334, "owner": {"id": 430}, "assignee": {"id": 534}, "organization": {"id": 150}, "project": {"owner": {"id": 798}, "assignee": {"id": 810}, "organization": {"id": 900}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"id": 347, "owner": {"id": 443}, "assignee": {"id": 558}, "organization": {"id": 648}, "project": {"owner": {"id": 788}, "assignee": {"id": 838}, "organization": {"id": 959}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 398, "owner": {"id": 450}, "assignee": {"id": 546}, "organization": {"id": 175}, "project": {"owner": {"id": 758}, "assignee": {"id": 824}, "organization": {"id": 992}}}} -} - -test_scope_IMPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "import:annotations", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 361, "owner": {"id": 461}, "assignee": {"id": 538}, "organization": {"id": 610}, "project": {"owner": {"id": 797}, "assignee": {"id": 807}, "organization": {"id": 943}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": null}, "resource": {"id": 355, "owner": {"id": 450}, "assignee": {"id": 515}, "organization": {"id": 650}, "project": {"owner": {"id": 55}, "assignee": {"id": 806}, "organization": {"id": 928}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": null}, "resource": {"id": 379, "owner": {"id": 451}, "assignee": {"id": 567}, "organization": {"id": 694}, "project": {"owner": {"id": 55}, "assignee": {"id": 868}, "organization": {"id": 987}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": null}, "resource": {"id": 321, "owner": {"id": 484}, "assignee": {"id": 527}, "organization": {"id": 684}, "project": {"owner": {"id": 52}, "assignee": {"id": 847}, "organization": {"id": 972}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": null}, "resource": {"id": 354, "owner": {"id": 486}, "assignee": {"id": 506}, "organization": {"id": 681}, "project": {"owner": {"id": 37}, "assignee": {"id": 866}, "organization": {"id": 909}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": null}, "resource": {"id": 377, "owner": {"id": 455}, "assignee": {"id": 522}, "organization": {"id": 698}, "project": {"owner": {"id": 78}, "assignee": {"id": 887}, "organization": {"id": 939}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": null}, "resource": {"id": 300, "owner": {"id": 415}, "assignee": {"id": 515}, "organization": {"id": 640}, "project": {"owner": {"id": 782}, "assignee": {"id": 51}, "organization": {"id": 961}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": null}, "resource": {"id": 388, "owner": {"id": 441}, "assignee": {"id": 598}, "organization": {"id": 641}, "project": {"owner": {"id": 792}, "assignee": {"id": 39}, "organization": {"id": 905}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": null}, "resource": {"id": 357, "owner": {"id": 495}, "assignee": {"id": 503}, "organization": {"id": 699}, "project": {"owner": {"id": 727}, "assignee": {"id": 12}, "organization": {"id": 998}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": null}, "resource": {"id": 319, "owner": {"id": 421}, "assignee": {"id": 519}, "organization": {"id": 601}, "project": {"owner": {"id": 769}, "assignee": {"id": 35}, "organization": {"id": 926}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": null}, "resource": {"id": 383, "owner": {"id": 424}, "assignee": {"id": 581}, "organization": {"id": 601}, "project": {"owner": {"id": 746}, "assignee": {"id": 42}, "organization": {"id": 976}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": null}, "resource": {"id": 326, "owner": {"id": 55}, "assignee": {"id": 517}, "organization": {"id": 699}, "project": {"owner": {"id": 714}, "assignee": {"id": 825}, "organization": {"id": 922}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": null}, "resource": {"id": 300, "owner": {"id": 17}, "assignee": {"id": 507}, "organization": {"id": 616}, "project": {"owner": {"id": 787}, "assignee": {"id": 827}, "organization": {"id": 913}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": null}, "resource": {"id": 309, "owner": {"id": 72}, "assignee": {"id": 584}, "organization": {"id": 657}, "project": {"owner": {"id": 704}, "assignee": {"id": 822}, "organization": {"id": 903}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": null}, "resource": {"id": 309, "owner": {"id": 16}, "assignee": {"id": 543}, "organization": {"id": 612}, "project": {"owner": {"id": 726}, "assignee": {"id": 828}, "organization": {"id": 984}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": null}, "resource": {"id": 334, "owner": {"id": 32}, "assignee": {"id": 546}, "organization": {"id": 600}, "project": {"owner": {"id": 702}, "assignee": {"id": 828}, "organization": {"id": 973}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": null}, "resource": {"id": 384, "owner": {"id": 418}, "assignee": {"id": 25}, "organization": {"id": 681}, "project": {"owner": {"id": 765}, "assignee": {"id": 880}, "organization": {"id": 936}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": null}, "resource": {"id": 374, "owner": {"id": 444}, "assignee": {"id": 32}, "organization": {"id": 660}, "project": {"owner": {"id": 725}, "assignee": {"id": 840}, "organization": {"id": 954}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": null}, "resource": {"id": 308, "owner": {"id": 462}, "assignee": {"id": 49}, "organization": {"id": 634}, "project": {"owner": {"id": 786}, "assignee": {"id": 804}, "organization": {"id": 912}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": null}, "resource": {"id": 331, "owner": {"id": 473}, "assignee": {"id": 1}, "organization": {"id": 672}, "project": {"owner": {"id": 719}, "assignee": {"id": 845}, "organization": {"id": 959}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": null}, "resource": {"id": 337, "owner": {"id": 402}, "assignee": {"id": 59}, "organization": {"id": 694}, "project": {"owner": {"id": 755}, "assignee": {"id": 881}, "organization": {"id": 960}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": null}, "resource": {"id": 329, "owner": {"id": 421}, "assignee": {"id": 591}, "organization": {"id": 660}, "project": {"owner": {"id": 727}, "assignee": {"id": 821}, "organization": {"id": 933}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": null}, "resource": {"id": 384, "owner": {"id": 427}, "assignee": {"id": 559}, "organization": {"id": 631}, "project": {"owner": {"id": 768}, "assignee": {"id": 805}, "organization": {"id": 908}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": null}, "resource": {"id": 369, "owner": {"id": 482}, "assignee": {"id": 566}, "organization": {"id": 677}, "project": {"owner": {"id": 734}, "assignee": {"id": 828}, "organization": {"id": 970}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": null}, "resource": {"id": 394, "owner": {"id": 425}, "assignee": {"id": 566}, "organization": {"id": 695}, "project": {"owner": {"id": 700}, "assignee": {"id": 839}, "organization": {"id": 943}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": null}, "resource": {"id": 306, "owner": {"id": 483}, "assignee": {"id": 530}, "organization": {"id": 631}, "project": {"owner": {"id": 764}, "assignee": {"id": 839}, "organization": {"id": 909}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 365, "owner": {"id": 463}, "assignee": {"id": 539}, "organization": {"id": 188}, "project": {"owner": {"id": 52}, "assignee": {"id": 860}, "organization": {"id": 920}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 467}, "assignee": {"id": 565}, "organization": {"id": 609}, "project": {"owner": {"id": 3}, "assignee": {"id": 843}, "organization": {"id": 988}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 453}, "assignee": {"id": 561}, "organization": {"id": 185}, "project": {"owner": {"id": 65}, "assignee": {"id": 822}, "organization": {"id": 967}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "owner": {"id": 478}, "assignee": {"id": 581}, "organization": {"id": 628}, "project": {"owner": {"id": 42}, "assignee": {"id": 882}, "organization": {"id": 969}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "owner": {"id": 496}, "assignee": {"id": 507}, "organization": {"id": 182}, "project": {"owner": {"id": 57}, "assignee": {"id": 819}, "organization": {"id": 923}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "owner": {"id": 435}, "assignee": {"id": 554}, "organization": {"id": 673}, "project": {"owner": {"id": 40}, "assignee": {"id": 831}, "organization": {"id": 975}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 353, "owner": {"id": 475}, "assignee": {"id": 566}, "organization": {"id": 105}, "project": {"owner": {"id": 22}, "assignee": {"id": 831}, "organization": {"id": 999}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 321, "owner": {"id": 480}, "assignee": {"id": 538}, "organization": {"id": 665}, "project": {"owner": {"id": 10}, "assignee": {"id": 812}, "organization": {"id": 986}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 386, "owner": {"id": 499}, "assignee": {"id": 596}, "organization": {"id": 163}, "project": {"owner": {"id": 49}, "assignee": {"id": 806}, "organization": {"id": 988}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 303, "owner": {"id": 408}, "assignee": {"id": 586}, "organization": {"id": 673}, "project": {"owner": {"id": 4}, "assignee": {"id": 849}, "organization": {"id": 962}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 390, "owner": {"id": 409}, "assignee": {"id": 519}, "organization": {"id": 113}, "project": {"owner": {"id": 56}, "assignee": {"id": 832}, "organization": {"id": 937}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 304, "owner": {"id": 471}, "assignee": {"id": 525}, "organization": {"id": 696}, "project": {"owner": {"id": 70}, "assignee": {"id": 816}, "organization": {"id": 936}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "owner": {"id": 442}, "assignee": {"id": 551}, "organization": {"id": 171}, "project": {"owner": {"id": 82}, "assignee": {"id": 857}, "organization": {"id": 969}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 389, "owner": {"id": 408}, "assignee": {"id": 561}, "organization": {"id": 628}, "project": {"owner": {"id": 52}, "assignee": {"id": 857}, "organization": {"id": 958}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 81, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "owner": {"id": 497}, "assignee": {"id": 524}, "organization": {"id": 108}, "project": {"owner": {"id": 81}, "assignee": {"id": 887}, "organization": {"id": 942}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "owner": {"id": 452}, "assignee": {"id": 571}, "organization": {"id": 672}, "project": {"owner": {"id": 46}, "assignee": {"id": 806}, "organization": {"id": 954}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 337, "owner": {"id": 409}, "assignee": {"id": 589}, "organization": {"id": 128}, "project": {"owner": {"id": 82}, "assignee": {"id": 870}, "organization": {"id": 932}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 351, "owner": {"id": 490}, "assignee": {"id": 531}, "organization": {"id": 686}, "project": {"owner": {"id": 47}, "assignee": {"id": 860}, "organization": {"id": 994}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 464}, "assignee": {"id": 534}, "organization": {"id": 161}, "project": {"owner": {"id": 57}, "assignee": {"id": 843}, "organization": {"id": 961}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 363, "owner": {"id": 467}, "assignee": {"id": 546}, "organization": {"id": 672}, "project": {"owner": {"id": 35}, "assignee": {"id": 888}, "organization": {"id": 978}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 329, "owner": {"id": 452}, "assignee": {"id": 509}, "organization": {"id": 156}, "project": {"owner": {"id": 24}, "assignee": {"id": 865}, "organization": {"id": 989}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 339, "owner": {"id": 469}, "assignee": {"id": 572}, "organization": {"id": 621}, "project": {"owner": {"id": 48}, "assignee": {"id": 897}, "organization": {"id": 979}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 434}, "assignee": {"id": 534}, "organization": {"id": 163}, "project": {"owner": {"id": 49}, "assignee": {"id": 823}, "organization": {"id": 944}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 419}, "assignee": {"id": 515}, "organization": {"id": 661}, "project": {"owner": {"id": 42}, "assignee": {"id": 822}, "organization": {"id": 979}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 369, "owner": {"id": 409}, "assignee": {"id": 550}, "organization": {"id": 156}, "project": {"owner": {"id": 29}, "assignee": {"id": 892}, "organization": {"id": 900}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "owner": {"id": 426}, "assignee": {"id": 597}, "organization": {"id": 620}, "project": {"owner": {"id": 28}, "assignee": {"id": 837}, "organization": {"id": 900}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 303, "owner": {"id": 438}, "assignee": {"id": 527}, "organization": {"id": 155}, "project": {"owner": {"id": 20}, "assignee": {"id": 811}, "organization": {"id": 980}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 370, "owner": {"id": 401}, "assignee": {"id": 565}, "organization": {"id": 693}, "project": {"owner": {"id": 15}, "assignee": {"id": 840}, "organization": {"id": 940}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 352, "owner": {"id": 499}, "assignee": {"id": 513}, "organization": {"id": 192}, "project": {"owner": {"id": 63}, "assignee": {"id": 859}, "organization": {"id": 900}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 426}, "assignee": {"id": 579}, "organization": {"id": 626}, "project": {"owner": {"id": 16}, "assignee": {"id": 810}, "organization": {"id": 930}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 304, "owner": {"id": 421}, "assignee": {"id": 586}, "organization": {"id": 145}, "project": {"owner": {"id": 23}, "assignee": {"id": 875}, "organization": {"id": 937}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 308, "owner": {"id": 451}, "assignee": {"id": 547}, "organization": {"id": 657}, "project": {"owner": {"id": 60}, "assignee": {"id": 846}, "organization": {"id": 940}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 427}, "assignee": {"id": 581}, "organization": {"id": 185}, "project": {"owner": {"id": 87}, "assignee": {"id": 809}, "organization": {"id": 901}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "owner": {"id": 495}, "assignee": {"id": 596}, "organization": {"id": 600}, "project": {"owner": {"id": 43}, "assignee": {"id": 850}, "organization": {"id": 907}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 466}, "assignee": {"id": 591}, "organization": {"id": 173}, "project": {"owner": {"id": 6}, "assignee": {"id": 836}, "organization": {"id": 914}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "owner": {"id": 499}, "assignee": {"id": 503}, "organization": {"id": 695}, "project": {"owner": {"id": 52}, "assignee": {"id": 848}, "organization": {"id": 914}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 384, "owner": {"id": 443}, "assignee": {"id": 524}, "organization": {"id": 188}, "project": {"owner": {"id": 2}, "assignee": {"id": 848}, "organization": {"id": 951}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 337, "owner": {"id": 437}, "assignee": {"id": 588}, "organization": {"id": 647}, "project": {"owner": {"id": 89}, "assignee": {"id": 876}, "organization": {"id": 959}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 365, "owner": {"id": 410}, "assignee": {"id": 537}, "organization": {"id": 179}, "project": {"owner": {"id": 49}, "assignee": {"id": 897}, "organization": {"id": 988}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 342, "owner": {"id": 458}, "assignee": {"id": 542}, "organization": {"id": 646}, "project": {"owner": {"id": 49}, "assignee": {"id": 850}, "organization": {"id": 902}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 334, "owner": {"id": 499}, "assignee": {"id": 523}, "organization": {"id": 167}, "project": {"owner": {"id": 30}, "assignee": {"id": 847}, "organization": {"id": 924}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 320, "owner": {"id": 480}, "assignee": {"id": 539}, "organization": {"id": 677}, "project": {"owner": {"id": 75}, "assignee": {"id": 875}, "organization": {"id": 955}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 406}, "assignee": {"id": 569}, "organization": {"id": 159}, "project": {"owner": {"id": 65}, "assignee": {"id": 887}, "organization": {"id": 914}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "owner": {"id": 466}, "assignee": {"id": 571}, "organization": {"id": 604}, "project": {"owner": {"id": 81}, "assignee": {"id": 813}, "organization": {"id": 937}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "owner": {"id": 428}, "assignee": {"id": 539}, "organization": {"id": 117}, "project": {"owner": {"id": 13}, "assignee": {"id": 833}, "organization": {"id": 942}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 415}, "assignee": {"id": 572}, "organization": {"id": 630}, "project": {"owner": {"id": 21}, "assignee": {"id": 878}, "organization": {"id": 907}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 395, "owner": {"id": 477}, "assignee": {"id": 526}, "organization": {"id": 137}, "project": {"owner": {"id": 37}, "assignee": {"id": 882}, "organization": {"id": 988}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 487}, "assignee": {"id": 520}, "organization": {"id": 610}, "project": {"owner": {"id": 41}, "assignee": {"id": 835}, "organization": {"id": 991}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 377, "owner": {"id": 478}, "assignee": {"id": 576}, "organization": {"id": 151}, "project": {"owner": {"id": 43}, "assignee": {"id": 860}, "organization": {"id": 923}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 471}, "assignee": {"id": 562}, "organization": {"id": 616}, "project": {"owner": {"id": 82}, "assignee": {"id": 807}, "organization": {"id": 948}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 457}, "assignee": {"id": 567}, "organization": {"id": 187}, "project": {"owner": {"id": 756}, "assignee": {"id": 82}, "organization": {"id": 909}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 313, "owner": {"id": 406}, "assignee": {"id": 536}, "organization": {"id": 612}, "project": {"owner": {"id": 730}, "assignee": {"id": 58}, "organization": {"id": 962}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "owner": {"id": 477}, "assignee": {"id": 546}, "organization": {"id": 195}, "project": {"owner": {"id": 784}, "assignee": {"id": 25}, "organization": {"id": 982}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 416}, "assignee": {"id": 534}, "organization": {"id": 676}, "project": {"owner": {"id": 749}, "assignee": {"id": 59}, "organization": {"id": 927}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "owner": {"id": 460}, "assignee": {"id": 540}, "organization": {"id": 116}, "project": {"owner": {"id": 799}, "assignee": {"id": 15}, "organization": {"id": 974}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "owner": {"id": 439}, "assignee": {"id": 542}, "organization": {"id": 633}, "project": {"owner": {"id": 785}, "assignee": {"id": 68}, "organization": {"id": 920}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 388, "owner": {"id": 435}, "assignee": {"id": 538}, "organization": {"id": 148}, "project": {"owner": {"id": 771}, "assignee": {"id": 17}, "organization": {"id": 967}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 451}, "assignee": {"id": 573}, "organization": {"id": 635}, "project": {"owner": {"id": 715}, "assignee": {"id": 49}, "organization": {"id": 986}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 334, "owner": {"id": 498}, "assignee": {"id": 569}, "organization": {"id": 150}, "project": {"owner": {"id": 754}, "assignee": {"id": 74}, "organization": {"id": 977}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 301, "owner": {"id": 466}, "assignee": {"id": 598}, "organization": {"id": 661}, "project": {"owner": {"id": 766}, "assignee": {"id": 72}, "organization": {"id": 929}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 315, "owner": {"id": 469}, "assignee": {"id": 588}, "organization": {"id": 192}, "project": {"owner": {"id": 741}, "assignee": {"id": 95}, "organization": {"id": 904}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 336, "owner": {"id": 478}, "assignee": {"id": 506}, "organization": {"id": 687}, "project": {"owner": {"id": 736}, "assignee": {"id": 59}, "organization": {"id": 933}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 358, "owner": {"id": 406}, "assignee": {"id": 557}, "organization": {"id": 192}, "project": {"owner": {"id": 746}, "assignee": {"id": 43}, "organization": {"id": 934}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 283}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 471}, "assignee": {"id": 552}, "organization": {"id": 608}, "project": {"owner": {"id": 707}, "assignee": {"id": 32}, "organization": {"id": 942}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "owner": {"id": 470}, "assignee": {"id": 560}, "organization": {"id": 178}, "project": {"owner": {"id": 707}, "assignee": {"id": 11}, "organization": {"id": 940}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "owner": {"id": 415}, "assignee": {"id": 532}, "organization": {"id": 648}, "project": {"owner": {"id": 700}, "assignee": {"id": 69}, "organization": {"id": 957}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 303, "owner": {"id": 429}, "assignee": {"id": 540}, "organization": {"id": 114}, "project": {"owner": {"id": 766}, "assignee": {"id": 88}, "organization": {"id": 977}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 302, "owner": {"id": 471}, "assignee": {"id": 583}, "organization": {"id": 682}, "project": {"owner": {"id": 747}, "assignee": {"id": 61}, "organization": {"id": 963}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"id": 392, "owner": {"id": 460}, "assignee": {"id": 545}, "organization": {"id": 186}, "project": {"owner": {"id": 713}, "assignee": {"id": 83}, "organization": {"id": 973}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 327, "owner": {"id": 476}, "assignee": {"id": 580}, "organization": {"id": 622}, "project": {"owner": {"id": 741}, "assignee": {"id": 78}, "organization": {"id": 957}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 438}, "assignee": {"id": 598}, "organization": {"id": 161}, "project": {"owner": {"id": 750}, "assignee": {"id": 97}, "organization": {"id": 911}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 408}, "assignee": {"id": 566}, "organization": {"id": 651}, "project": {"owner": {"id": 723}, "assignee": {"id": 93}, "organization": {"id": 952}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 467}, "assignee": {"id": 552}, "organization": {"id": 171}, "project": {"owner": {"id": 751}, "assignee": {"id": 97}, "organization": {"id": 928}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 468}, "assignee": {"id": 515}, "organization": {"id": 630}, "project": {"owner": {"id": 701}, "assignee": {"id": 95}, "organization": {"id": 918}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 487}, "assignee": {"id": 578}, "organization": {"id": 132}, "project": {"owner": {"id": 753}, "assignee": {"id": 78}, "organization": {"id": 903}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "owner": {"id": 446}, "assignee": {"id": 535}, "organization": {"id": 672}, "project": {"owner": {"id": 762}, "assignee": {"id": 99}, "organization": {"id": 903}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 438}, "assignee": {"id": 534}, "organization": {"id": 136}, "project": {"owner": {"id": 732}, "assignee": {"id": 43}, "organization": {"id": 983}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 316, "owner": {"id": 413}, "assignee": {"id": 583}, "organization": {"id": 659}, "project": {"owner": {"id": 748}, "assignee": {"id": 69}, "organization": {"id": 906}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 309, "owner": {"id": 489}, "assignee": {"id": 522}, "organization": {"id": 120}, "project": {"owner": {"id": 778}, "assignee": {"id": 64}, "organization": {"id": 932}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 301, "owner": {"id": 403}, "assignee": {"id": 586}, "organization": {"id": 675}, "project": {"owner": {"id": 720}, "assignee": {"id": 31}, "organization": {"id": 945}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 436}, "assignee": {"id": 581}, "organization": {"id": 153}, "project": {"owner": {"id": 751}, "assignee": {"id": 79}, "organization": {"id": 954}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 305, "owner": {"id": 404}, "assignee": {"id": 510}, "organization": {"id": 676}, "project": {"owner": {"id": 721}, "assignee": {"id": 11}, "organization": {"id": 924}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "owner": {"id": 401}, "assignee": {"id": 534}, "organization": {"id": 165}, "project": {"owner": {"id": 740}, "assignee": {"id": 41}, "organization": {"id": 958}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 488}, "assignee": {"id": 518}, "organization": {"id": 659}, "project": {"owner": {"id": 754}, "assignee": {"id": 11}, "organization": {"id": 953}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "owner": {"id": 457}, "assignee": {"id": 593}, "organization": {"id": 130}, "project": {"owner": {"id": 795}, "assignee": {"id": 28}, "organization": {"id": 930}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "owner": {"id": 478}, "assignee": {"id": 539}, "organization": {"id": 619}, "project": {"owner": {"id": 702}, "assignee": {"id": 34}, "organization": {"id": 970}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 450}, "assignee": {"id": 548}, "organization": {"id": 173}, "project": {"owner": {"id": 753}, "assignee": {"id": 22}, "organization": {"id": 985}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 398, "owner": {"id": 446}, "assignee": {"id": 506}, "organization": {"id": 693}, "project": {"owner": {"id": 753}, "assignee": {"id": 1}, "organization": {"id": 908}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 439}, "assignee": {"id": 508}, "organization": {"id": 123}, "project": {"owner": {"id": 783}, "assignee": {"id": 85}, "organization": {"id": 931}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 352, "owner": {"id": 447}, "assignee": {"id": 517}, "organization": {"id": 627}, "project": {"owner": {"id": 732}, "assignee": {"id": 47}, "organization": {"id": 954}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 336, "owner": {"id": 454}, "assignee": {"id": 595}, "organization": {"id": 197}, "project": {"owner": {"id": 716}, "assignee": {"id": 28}, "organization": {"id": 907}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 369, "owner": {"id": 435}, "assignee": {"id": 594}, "organization": {"id": 652}, "project": {"owner": {"id": 758}, "assignee": {"id": 55}, "organization": {"id": 922}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "owner": {"id": 406}, "assignee": {"id": 509}, "organization": {"id": 190}, "project": {"owner": {"id": 796}, "assignee": {"id": 22}, "organization": {"id": 979}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 377, "owner": {"id": 414}, "assignee": {"id": 538}, "organization": {"id": 686}, "project": {"owner": {"id": 726}, "assignee": {"id": 43}, "organization": {"id": 927}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 443}, "assignee": {"id": 580}, "organization": {"id": 154}, "project": {"owner": {"id": 755}, "assignee": {"id": 85}, "organization": {"id": 968}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "owner": {"id": 400}, "assignee": {"id": 563}, "organization": {"id": 688}, "project": {"owner": {"id": 765}, "assignee": {"id": 31}, "organization": {"id": 997}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 391, "owner": {"id": 458}, "assignee": {"id": 542}, "organization": {"id": 199}, "project": {"owner": {"id": 731}, "assignee": {"id": 32}, "organization": {"id": 997}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 486}, "assignee": {"id": 534}, "organization": {"id": 679}, "project": {"owner": {"id": 711}, "assignee": {"id": 40}, "organization": {"id": 994}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 468}, "assignee": {"id": 517}, "organization": {"id": 185}, "project": {"owner": {"id": 733}, "assignee": {"id": 44}, "organization": {"id": 997}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 398, "owner": {"id": 434}, "assignee": {"id": 553}, "organization": {"id": 691}, "project": {"owner": {"id": 744}, "assignee": {"id": 7}, "organization": {"id": 916}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 302, "owner": {"id": 79}, "assignee": {"id": 580}, "organization": {"id": 192}, "project": {"owner": {"id": 755}, "assignee": {"id": 813}, "organization": {"id": 912}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 42}, "assignee": {"id": 558}, "organization": {"id": 627}, "project": {"owner": {"id": 781}, "assignee": {"id": 856}, "organization": {"id": 919}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "owner": {"id": 29}, "assignee": {"id": 540}, "organization": {"id": 197}, "project": {"owner": {"id": 734}, "assignee": {"id": 848}, "organization": {"id": 939}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "owner": {"id": 41}, "assignee": {"id": 597}, "organization": {"id": 616}, "project": {"owner": {"id": 770}, "assignee": {"id": 802}, "organization": {"id": 988}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 26}, "assignee": {"id": 574}, "organization": {"id": 113}, "project": {"owner": {"id": 799}, "assignee": {"id": 893}, "organization": {"id": 996}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 43}, "assignee": {"id": 560}, "organization": {"id": 671}, "project": {"owner": {"id": 763}, "assignee": {"id": 831}, "organization": {"id": 901}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 93}, "assignee": {"id": 504}, "organization": {"id": 197}, "project": {"owner": {"id": 797}, "assignee": {"id": 834}, "organization": {"id": 981}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 326, "owner": {"id": 3}, "assignee": {"id": 595}, "organization": {"id": 679}, "project": {"owner": {"id": 720}, "assignee": {"id": 849}, "organization": {"id": 918}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 346, "owner": {"id": 48}, "assignee": {"id": 590}, "organization": {"id": 118}, "project": {"owner": {"id": 790}, "assignee": {"id": 844}, "organization": {"id": 992}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 338, "owner": {"id": 56}, "assignee": {"id": 563}, "organization": {"id": 647}, "project": {"owner": {"id": 749}, "assignee": {"id": 844}, "organization": {"id": 993}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 328, "owner": {"id": 37}, "assignee": {"id": 576}, "organization": {"id": 126}, "project": {"owner": {"id": 777}, "assignee": {"id": 874}, "organization": {"id": 998}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 65}, "assignee": {"id": 587}, "organization": {"id": 644}, "project": {"owner": {"id": 710}, "assignee": {"id": 869}, "organization": {"id": 964}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "owner": {"id": 86}, "assignee": {"id": 556}, "organization": {"id": 172}, "project": {"owner": {"id": 723}, "assignee": {"id": 867}, "organization": {"id": 901}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 66}, "assignee": {"id": 592}, "organization": {"id": 665}, "project": {"owner": {"id": 731}, "assignee": {"id": 877}, "organization": {"id": 957}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 387, "owner": {"id": 80}, "assignee": {"id": 571}, "organization": {"id": 182}, "project": {"owner": {"id": 771}, "assignee": {"id": 855}, "organization": {"id": 946}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "owner": {"id": 88}, "assignee": {"id": 566}, "organization": {"id": 637}, "project": {"owner": {"id": 751}, "assignee": {"id": 896}, "organization": {"id": 981}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 40}, "assignee": {"id": 537}, "organization": {"id": 186}, "project": {"owner": {"id": 753}, "assignee": {"id": 820}, "organization": {"id": 985}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 348, "owner": {"id": 12}, "assignee": {"id": 559}, "organization": {"id": 600}, "project": {"owner": {"id": 726}, "assignee": {"id": 820}, "organization": {"id": 957}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 74}, "assignee": {"id": 545}, "organization": {"id": 170}, "project": {"owner": {"id": 757}, "assignee": {"id": 842}, "organization": {"id": 906}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 5}, "assignee": {"id": 504}, "organization": {"id": 662}, "project": {"owner": {"id": 743}, "assignee": {"id": 884}, "organization": {"id": 916}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 374, "owner": {"id": 80}, "assignee": {"id": 559}, "organization": {"id": 151}, "project": {"owner": {"id": 726}, "assignee": {"id": 874}, "organization": {"id": 902}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 368, "owner": {"id": 5}, "assignee": {"id": 561}, "organization": {"id": 663}, "project": {"owner": {"id": 724}, "assignee": {"id": 878}, "organization": {"id": 921}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 30}, "assignee": {"id": 599}, "organization": {"id": 181}, "project": {"owner": {"id": 701}, "assignee": {"id": 887}, "organization": {"id": 961}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "owner": {"id": 86}, "assignee": {"id": 510}, "organization": {"id": 669}, "project": {"owner": {"id": 783}, "assignee": {"id": 879}, "organization": {"id": 995}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "owner": {"id": 62}, "assignee": {"id": 507}, "organization": {"id": 123}, "project": {"owner": {"id": 725}, "assignee": {"id": 896}, "organization": {"id": 950}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 387, "owner": {"id": 32}, "assignee": {"id": 509}, "organization": {"id": 694}, "project": {"owner": {"id": 750}, "assignee": {"id": 879}, "organization": {"id": 980}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 310, "owner": {"id": 35}, "assignee": {"id": 599}, "organization": {"id": 161}, "project": {"owner": {"id": 753}, "assignee": {"id": 884}, "organization": {"id": 953}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 303, "owner": {"id": 56}, "assignee": {"id": 588}, "organization": {"id": 673}, "project": {"owner": {"id": 728}, "assignee": {"id": 844}, "organization": {"id": 923}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 346, "owner": {"id": 13}, "assignee": {"id": 589}, "organization": {"id": 187}, "project": {"owner": {"id": 703}, "assignee": {"id": 869}, "organization": {"id": 931}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 49}, "assignee": {"id": 501}, "organization": {"id": 683}, "project": {"owner": {"id": 700}, "assignee": {"id": 809}, "organization": {"id": 994}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 367, "owner": {"id": 5}, "assignee": {"id": 522}, "organization": {"id": 107}, "project": {"owner": {"id": 742}, "assignee": {"id": 820}, "organization": {"id": 972}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 337, "owner": {"id": 34}, "assignee": {"id": 594}, "organization": {"id": 649}, "project": {"owner": {"id": 748}, "assignee": {"id": 891}, "organization": {"id": 989}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "owner": {"id": 30}, "assignee": {"id": 503}, "organization": {"id": 112}, "project": {"owner": {"id": 718}, "assignee": {"id": 871}, "organization": {"id": 984}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "owner": {"id": 32}, "assignee": {"id": 527}, "organization": {"id": 616}, "project": {"owner": {"id": 738}, "assignee": {"id": 848}, "organization": {"id": 994}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 58}, "assignee": {"id": 548}, "organization": {"id": 182}, "project": {"owner": {"id": 750}, "assignee": {"id": 807}, "organization": {"id": 955}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 32}, "assignee": {"id": 567}, "organization": {"id": 668}, "project": {"owner": {"id": 779}, "assignee": {"id": 821}, "organization": {"id": 909}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 315, "owner": {"id": 64}, "assignee": {"id": 507}, "organization": {"id": 184}, "project": {"owner": {"id": 720}, "assignee": {"id": 877}, "organization": {"id": 903}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 83}, "assignee": {"id": 568}, "organization": {"id": 692}, "project": {"owner": {"id": 705}, "assignee": {"id": 892}, "organization": {"id": 913}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 81}, "assignee": {"id": 544}, "organization": {"id": 186}, "project": {"owner": {"id": 750}, "assignee": {"id": 834}, "organization": {"id": 959}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 394, "owner": {"id": 46}, "assignee": {"id": 569}, "organization": {"id": 680}, "project": {"owner": {"id": 747}, "assignee": {"id": 858}, "organization": {"id": 996}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 302, "owner": {"id": 93}, "assignee": {"id": 593}, "organization": {"id": 140}, "project": {"owner": {"id": 751}, "assignee": {"id": 880}, "organization": {"id": 959}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 375, "owner": {"id": 10}, "assignee": {"id": 593}, "organization": {"id": 635}, "project": {"owner": {"id": 798}, "assignee": {"id": 862}, "organization": {"id": 977}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 95}, "assignee": {"id": 591}, "organization": {"id": 161}, "project": {"owner": {"id": 774}, "assignee": {"id": 880}, "organization": {"id": 927}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "owner": {"id": 98}, "assignee": {"id": 591}, "organization": {"id": 651}, "project": {"owner": {"id": 740}, "assignee": {"id": 820}, "organization": {"id": 927}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "owner": {"id": 3}, "assignee": {"id": 540}, "organization": {"id": 133}, "project": {"owner": {"id": 724}, "assignee": {"id": 833}, "organization": {"id": 927}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 19, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 369, "owner": {"id": 19}, "assignee": {"id": 503}, "organization": {"id": 659}, "project": {"owner": {"id": 704}, "assignee": {"id": 800}, "organization": {"id": 903}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 90}, "assignee": {"id": 543}, "organization": {"id": 199}, "project": {"owner": {"id": 757}, "assignee": {"id": 844}, "organization": {"id": 925}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 355, "owner": {"id": 17}, "assignee": {"id": 591}, "organization": {"id": 611}, "project": {"owner": {"id": 754}, "assignee": {"id": 826}, "organization": {"id": 967}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"id": 313, "owner": {"id": 44}, "assignee": {"id": 518}, "organization": {"id": 164}, "project": {"owner": {"id": 725}, "assignee": {"id": 806}, "organization": {"id": 924}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 311, "owner": {"id": 3}, "assignee": {"id": 522}, "organization": {"id": 649}, "project": {"owner": {"id": 728}, "assignee": {"id": 887}, "organization": {"id": 931}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 306, "owner": {"id": 495}, "assignee": {"id": 68}, "organization": {"id": 188}, "project": {"owner": {"id": 781}, "assignee": {"id": 881}, "organization": {"id": 901}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 454}, "assignee": {"id": 47}, "organization": {"id": 610}, "project": {"owner": {"id": 713}, "assignee": {"id": 821}, "organization": {"id": 998}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "owner": {"id": 438}, "assignee": {"id": 87}, "organization": {"id": 199}, "project": {"owner": {"id": 707}, "assignee": {"id": 850}, "organization": {"id": 940}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 416}, "assignee": {"id": 89}, "organization": {"id": 612}, "project": {"owner": {"id": 717}, "assignee": {"id": 856}, "organization": {"id": 913}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 400}, "assignee": {"id": 53}, "organization": {"id": 154}, "project": {"owner": {"id": 712}, "assignee": {"id": 884}, "organization": {"id": 958}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 416}, "assignee": {"id": 25}, "organization": {"id": 642}, "project": {"owner": {"id": 719}, "assignee": {"id": 853}, "organization": {"id": 961}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 314, "owner": {"id": 409}, "assignee": {"id": 68}, "organization": {"id": 152}, "project": {"owner": {"id": 797}, "assignee": {"id": 800}, "organization": {"id": 950}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 382, "owner": {"id": 455}, "assignee": {"id": 37}, "organization": {"id": 653}, "project": {"owner": {"id": 794}, "assignee": {"id": 839}, "organization": {"id": 912}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 344, "owner": {"id": 477}, "assignee": {"id": 24}, "organization": {"id": 181}, "project": {"owner": {"id": 770}, "assignee": {"id": 872}, "organization": {"id": 942}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 337, "owner": {"id": 423}, "assignee": {"id": 48}, "organization": {"id": 622}, "project": {"owner": {"id": 740}, "assignee": {"id": 858}, "organization": {"id": 956}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 481}, "assignee": {"id": 28}, "organization": {"id": 187}, "project": {"owner": {"id": 791}, "assignee": {"id": 861}, "organization": {"id": 996}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 411}, "assignee": {"id": 92}, "organization": {"id": 680}, "project": {"owner": {"id": 749}, "assignee": {"id": 804}, "organization": {"id": 928}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "owner": {"id": 431}, "assignee": {"id": 33}, "organization": {"id": 186}, "project": {"owner": {"id": 794}, "assignee": {"id": 803}, "organization": {"id": 912}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "owner": {"id": 478}, "assignee": {"id": 56}, "organization": {"id": 691}, "project": {"owner": {"id": 782}, "assignee": {"id": 807}, "organization": {"id": 986}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "owner": {"id": 482}, "assignee": {"id": 93}, "organization": {"id": 185}, "project": {"owner": {"id": 779}, "assignee": {"id": 878}, "organization": {"id": 948}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "owner": {"id": 428}, "assignee": {"id": 62}, "organization": {"id": 628}, "project": {"owner": {"id": 707}, "assignee": {"id": 883}, "organization": {"id": 939}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"id": 343, "owner": {"id": 491}, "assignee": {"id": 46}, "organization": {"id": 181}, "project": {"owner": {"id": 709}, "assignee": {"id": 889}, "organization": {"id": 911}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 377, "owner": {"id": 490}, "assignee": {"id": 29}, "organization": {"id": 687}, "project": {"owner": {"id": 787}, "assignee": {"id": 880}, "organization": {"id": 929}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 399, "owner": {"id": 437}, "assignee": {"id": 74}, "organization": {"id": 187}, "project": {"owner": {"id": 716}, "assignee": {"id": 896}, "organization": {"id": 987}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 302, "owner": {"id": 455}, "assignee": {"id": 11}, "organization": {"id": 670}, "project": {"owner": {"id": 794}, "assignee": {"id": 897}, "organization": {"id": 965}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 493}, "assignee": {"id": 3}, "organization": {"id": 173}, "project": {"owner": {"id": 706}, "assignee": {"id": 884}, "organization": {"id": 924}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 307, "owner": {"id": 444}, "assignee": {"id": 25}, "organization": {"id": 681}, "project": {"owner": {"id": 766}, "assignee": {"id": 827}, "organization": {"id": 933}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 452}, "assignee": {"id": 88}, "organization": {"id": 166}, "project": {"owner": {"id": 755}, "assignee": {"id": 867}, "organization": {"id": 907}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "owner": {"id": 478}, "assignee": {"id": 18}, "organization": {"id": 696}, "project": {"owner": {"id": 731}, "assignee": {"id": 836}, "organization": {"id": 962}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 412}, "assignee": {"id": 12}, "organization": {"id": 168}, "project": {"owner": {"id": 759}, "assignee": {"id": 849}, "organization": {"id": 918}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "owner": {"id": 437}, "assignee": {"id": 63}, "organization": {"id": 602}, "project": {"owner": {"id": 779}, "assignee": {"id": 852}, "organization": {"id": 936}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 377, "owner": {"id": 481}, "assignee": {"id": 93}, "organization": {"id": 138}, "project": {"owner": {"id": 750}, "assignee": {"id": 867}, "organization": {"id": 930}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 361, "owner": {"id": 403}, "assignee": {"id": 42}, "organization": {"id": 692}, "project": {"owner": {"id": 781}, "assignee": {"id": 822}, "organization": {"id": 974}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"id": 386, "owner": {"id": 421}, "assignee": {"id": 39}, "organization": {"id": 144}, "project": {"owner": {"id": 775}, "assignee": {"id": 805}, "organization": {"id": 971}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 419}, "assignee": {"id": 28}, "organization": {"id": 617}, "project": {"owner": {"id": 756}, "assignee": {"id": 861}, "organization": {"id": 926}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 343, "owner": {"id": 466}, "assignee": {"id": 59}, "organization": {"id": 150}, "project": {"owner": {"id": 785}, "assignee": {"id": 898}, "organization": {"id": 971}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 328, "owner": {"id": 434}, "assignee": {"id": 95}, "organization": {"id": 632}, "project": {"owner": {"id": 713}, "assignee": {"id": 879}, "organization": {"id": 956}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 454}, "assignee": {"id": 38}, "organization": {"id": 151}, "project": {"owner": {"id": 723}, "assignee": {"id": 898}, "organization": {"id": 916}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 466}, "assignee": {"id": 22}, "organization": {"id": 697}, "project": {"owner": {"id": 714}, "assignee": {"id": 852}, "organization": {"id": 975}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 409}, "assignee": {"id": 84}, "organization": {"id": 118}, "project": {"owner": {"id": 731}, "assignee": {"id": 847}, "organization": {"id": 988}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "owner": {"id": 438}, "assignee": {"id": 91}, "organization": {"id": 633}, "project": {"owner": {"id": 782}, "assignee": {"id": 858}, "organization": {"id": 903}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 300, "owner": {"id": 480}, "assignee": {"id": 42}, "organization": {"id": 190}, "project": {"owner": {"id": 756}, "assignee": {"id": 833}, "organization": {"id": 987}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 305, "owner": {"id": 462}, "assignee": {"id": 66}, "organization": {"id": 653}, "project": {"owner": {"id": 739}, "assignee": {"id": 868}, "organization": {"id": 958}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 328, "owner": {"id": 469}, "assignee": {"id": 55}, "organization": {"id": 105}, "project": {"owner": {"id": 715}, "assignee": {"id": 822}, "organization": {"id": 958}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 498}, "assignee": {"id": 69}, "organization": {"id": 625}, "project": {"owner": {"id": 744}, "assignee": {"id": 877}, "organization": {"id": 936}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 316, "owner": {"id": 432}, "assignee": {"id": 68}, "organization": {"id": 115}, "project": {"owner": {"id": 736}, "assignee": {"id": 896}, "organization": {"id": 969}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 484}, "assignee": {"id": 62}, "organization": {"id": 646}, "project": {"owner": {"id": 731}, "assignee": {"id": 839}, "organization": {"id": 913}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "owner": {"id": 439}, "assignee": {"id": 82}, "organization": {"id": 198}, "project": {"owner": {"id": 733}, "assignee": {"id": 812}, "organization": {"id": 913}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "owner": {"id": 413}, "assignee": {"id": 99}, "organization": {"id": 683}, "project": {"owner": {"id": 712}, "assignee": {"id": 837}, "organization": {"id": 986}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "owner": {"id": 482}, "assignee": {"id": 73}, "organization": {"id": 164}, "project": {"owner": {"id": 710}, "assignee": {"id": 880}, "organization": {"id": 921}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "owner": {"id": 440}, "assignee": {"id": 1}, "organization": {"id": 632}, "project": {"owner": {"id": 736}, "assignee": {"id": 871}, "organization": {"id": 990}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 317, "owner": {"id": 458}, "assignee": {"id": 89}, "organization": {"id": 113}, "project": {"owner": {"id": 717}, "assignee": {"id": 856}, "organization": {"id": 962}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 482}, "assignee": {"id": 75}, "organization": {"id": 643}, "project": {"owner": {"id": 724}, "assignee": {"id": 877}, "organization": {"id": 900}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 357, "owner": {"id": 436}, "assignee": {"id": 67}, "organization": {"id": 100}, "project": {"owner": {"id": 772}, "assignee": {"id": 832}, "organization": {"id": 901}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 403}, "assignee": {"id": 21}, "organization": {"id": 668}, "project": {"owner": {"id": 776}, "assignee": {"id": 893}, "organization": {"id": 920}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 305, "owner": {"id": 451}, "assignee": {"id": 533}, "organization": {"id": 141}, "project": {"owner": {"id": 777}, "assignee": {"id": 879}, "organization": {"id": 997}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 395, "owner": {"id": 437}, "assignee": {"id": 504}, "organization": {"id": 619}, "project": {"owner": {"id": 788}, "assignee": {"id": 872}, "organization": {"id": 931}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "owner": {"id": 416}, "assignee": {"id": 553}, "organization": {"id": 167}, "project": {"owner": {"id": 740}, "assignee": {"id": 871}, "organization": {"id": 957}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 321, "owner": {"id": 430}, "assignee": {"id": 570}, "organization": {"id": 649}, "project": {"owner": {"id": 740}, "assignee": {"id": 853}, "organization": {"id": 922}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "owner": {"id": 401}, "assignee": {"id": 546}, "organization": {"id": 167}, "project": {"owner": {"id": 769}, "assignee": {"id": 803}, "organization": {"id": 985}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "owner": {"id": 465}, "assignee": {"id": 501}, "organization": {"id": 600}, "project": {"owner": {"id": 789}, "assignee": {"id": 831}, "organization": {"id": 900}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 468}, "assignee": {"id": 519}, "organization": {"id": 180}, "project": {"owner": {"id": 750}, "assignee": {"id": 867}, "organization": {"id": 994}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 392, "owner": {"id": 483}, "assignee": {"id": 580}, "organization": {"id": 619}, "project": {"owner": {"id": 706}, "assignee": {"id": 896}, "organization": {"id": 924}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 469}, "assignee": {"id": 508}, "organization": {"id": 121}, "project": {"owner": {"id": 754}, "assignee": {"id": 873}, "organization": {"id": 994}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 390, "owner": {"id": 475}, "assignee": {"id": 559}, "organization": {"id": 648}, "project": {"owner": {"id": 782}, "assignee": {"id": 850}, "organization": {"id": 921}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 308, "owner": {"id": 444}, "assignee": {"id": 589}, "organization": {"id": 100}, "project": {"owner": {"id": 774}, "assignee": {"id": 871}, "organization": {"id": 907}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 386, "owner": {"id": 416}, "assignee": {"id": 558}, "organization": {"id": 693}, "project": {"owner": {"id": 717}, "assignee": {"id": 879}, "organization": {"id": 984}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "owner": {"id": 419}, "assignee": {"id": 584}, "organization": {"id": 198}, "project": {"owner": {"id": 752}, "assignee": {"id": 827}, "organization": {"id": 942}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "owner": {"id": 474}, "assignee": {"id": 521}, "organization": {"id": 690}, "project": {"owner": {"id": 749}, "assignee": {"id": 825}, "organization": {"id": 971}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 369, "owner": {"id": 462}, "assignee": {"id": 582}, "organization": {"id": 177}, "project": {"owner": {"id": 734}, "assignee": {"id": 878}, "organization": {"id": 941}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 478}, "assignee": {"id": 518}, "organization": {"id": 698}, "project": {"owner": {"id": 799}, "assignee": {"id": 895}, "organization": {"id": 929}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 367, "owner": {"id": 464}, "assignee": {"id": 544}, "organization": {"id": 133}, "project": {"owner": {"id": 719}, "assignee": {"id": 865}, "organization": {"id": 983}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 383, "owner": {"id": 427}, "assignee": {"id": 582}, "organization": {"id": 666}, "project": {"owner": {"id": 777}, "assignee": {"id": 812}, "organization": {"id": 955}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 303, "owner": {"id": 444}, "assignee": {"id": 541}, "organization": {"id": 189}, "project": {"owner": {"id": 762}, "assignee": {"id": 846}, "organization": {"id": 926}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 319, "owner": {"id": 475}, "assignee": {"id": 552}, "organization": {"id": 611}, "project": {"owner": {"id": 734}, "assignee": {"id": 892}, "organization": {"id": 974}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 307, "owner": {"id": 486}, "assignee": {"id": 578}, "organization": {"id": 141}, "project": {"owner": {"id": 708}, "assignee": {"id": 854}, "organization": {"id": 959}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 384, "owner": {"id": 420}, "assignee": {"id": 583}, "organization": {"id": 605}, "project": {"owner": {"id": 723}, "assignee": {"id": 859}, "organization": {"id": 976}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "owner": {"id": 493}, "assignee": {"id": 588}, "organization": {"id": 110}, "project": {"owner": {"id": 735}, "assignee": {"id": 842}, "organization": {"id": 933}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "owner": {"id": 478}, "assignee": {"id": 515}, "organization": {"id": 660}, "project": {"owner": {"id": 780}, "assignee": {"id": 820}, "organization": {"id": 965}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 468}, "assignee": {"id": 594}, "organization": {"id": 105}, "project": {"owner": {"id": 734}, "assignee": {"id": 875}, "organization": {"id": 932}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "owner": {"id": 453}, "assignee": {"id": 523}, "organization": {"id": 670}, "project": {"owner": {"id": 799}, "assignee": {"id": 866}, "organization": {"id": 950}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 302, "owner": {"id": 463}, "assignee": {"id": 584}, "organization": {"id": 184}, "project": {"owner": {"id": 702}, "assignee": {"id": 807}, "organization": {"id": 971}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 458}, "assignee": {"id": 502}, "organization": {"id": 610}, "project": {"owner": {"id": 772}, "assignee": {"id": 863}, "organization": {"id": 936}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 441}, "assignee": {"id": 557}, "organization": {"id": 116}, "project": {"owner": {"id": 787}, "assignee": {"id": 818}, "organization": {"id": 984}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 344, "owner": {"id": 489}, "assignee": {"id": 597}, "organization": {"id": 647}, "project": {"owner": {"id": 781}, "assignee": {"id": 853}, "organization": {"id": 964}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 370, "owner": {"id": 434}, "assignee": {"id": 554}, "organization": {"id": 143}, "project": {"owner": {"id": 793}, "assignee": {"id": 801}, "organization": {"id": 900}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 383, "owner": {"id": 471}, "assignee": {"id": 514}, "organization": {"id": 616}, "project": {"owner": {"id": 799}, "assignee": {"id": 827}, "organization": {"id": 948}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 437}, "assignee": {"id": 579}, "organization": {"id": 104}, "project": {"owner": {"id": 787}, "assignee": {"id": 836}, "organization": {"id": 961}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "owner": {"id": 444}, "assignee": {"id": 514}, "organization": {"id": 673}, "project": {"owner": {"id": 788}, "assignee": {"id": 805}, "organization": {"id": 950}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 488}, "assignee": {"id": 534}, "organization": {"id": 160}, "project": {"owner": {"id": 754}, "assignee": {"id": 806}, "organization": {"id": 979}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 420}, "assignee": {"id": 536}, "organization": {"id": 668}, "project": {"owner": {"id": 761}, "assignee": {"id": 862}, "organization": {"id": 936}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 306, "owner": {"id": 487}, "assignee": {"id": 568}, "organization": {"id": 168}, "project": {"owner": {"id": 742}, "assignee": {"id": 856}, "organization": {"id": 916}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 303, "owner": {"id": 479}, "assignee": {"id": 512}, "organization": {"id": 686}, "project": {"owner": {"id": 707}, "assignee": {"id": 804}, "organization": {"id": 991}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 334, "owner": {"id": 482}, "assignee": {"id": 558}, "organization": {"id": 164}, "project": {"owner": {"id": 780}, "assignee": {"id": 898}, "organization": {"id": 986}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 24, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 333, "owner": {"id": 499}, "assignee": {"id": 517}, "organization": {"id": 605}, "project": {"owner": {"id": 786}, "assignee": {"id": 819}, "organization": {"id": 920}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 399, "owner": {"id": 472}, "assignee": {"id": 561}, "organization": {"id": 155}, "project": {"owner": {"id": 758}, "assignee": {"id": 831}, "organization": {"id": 927}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 399, "owner": {"id": 483}, "assignee": {"id": 596}, "organization": {"id": 623}, "project": {"owner": {"id": 764}, "assignee": {"id": 861}, "organization": {"id": 948}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "owner": {"id": 445}, "assignee": {"id": 544}, "organization": {"id": 141}, "project": {"owner": {"id": 742}, "assignee": {"id": 865}, "organization": {"id": 952}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 446}, "assignee": {"id": 503}, "organization": {"id": 692}, "project": {"owner": {"id": 754}, "assignee": {"id": 897}, "organization": {"id": 949}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "owner": {"id": 421}, "assignee": {"id": 584}, "organization": {"id": 128}, "project": {"owner": {"id": 739}, "assignee": {"id": 865}, "organization": {"id": 960}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 406}, "assignee": {"id": 522}, "organization": {"id": 643}, "project": {"owner": {"id": 745}, "assignee": {"id": 833}, "organization": {"id": 951}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 430}, "assignee": {"id": 536}, "organization": {"id": 174}, "project": {"owner": {"id": 779}, "assignee": {"id": 865}, "organization": {"id": 944}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 381, "owner": {"id": 480}, "assignee": {"id": 565}, "organization": {"id": 636}, "project": {"owner": {"id": 736}, "assignee": {"id": 858}, "organization": {"id": 900}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 439}, "assignee": {"id": 547}, "organization": {"id": 127}, "project": {"owner": {"id": 742}, "assignee": {"id": 885}, "organization": {"id": 995}}}} -} - -test_scope_DELETE_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete:annotations", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 325, "owner": {"id": 461}, "assignee": {"id": 505}, "organization": {"id": 654}, "project": {"owner": {"id": 777}, "assignee": {"id": 842}, "organization": {"id": 983}}}} -} - -test_scope_EXPORT_BACKUP_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": null}, "resource": {"id": 377, "owner": {"id": 419}, "assignee": {"id": 556}, "organization": {"id": 612}, "project": {"owner": {"id": 53}, "assignee": {"id": 828}, "organization": {"id": 987}}}} -} - -test_scope_EXPORT_BACKUP_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": null}, "resource": {"id": 340, "owner": {"id": 489}, "assignee": {"id": 562}, "organization": {"id": 638}, "project": {"owner": {"id": 68}, "assignee": {"id": 817}, "organization": {"id": 980}}}} -} - -test_scope_EXPORT_BACKUP_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": null}, "resource": {"id": 359, "owner": {"id": 434}, "assignee": {"id": 598}, "organization": {"id": 626}, "project": {"owner": {"id": 76}, "assignee": {"id": 813}, "organization": {"id": 936}}}} -} - -test_scope_EXPORT_BACKUP_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": null}, "resource": {"id": 334, "owner": {"id": 486}, "assignee": {"id": 581}, "organization": {"id": 693}, "project": {"owner": {"id": 60}, "assignee": {"id": 844}, "organization": {"id": 912}}}} -} - -test_scope_EXPORT_BACKUP_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": null}, "resource": {"id": 371, "owner": {"id": 485}, "assignee": {"id": 528}, "organization": {"id": 628}, "project": {"owner": {"id": 51}, "assignee": {"id": 846}, "organization": {"id": 945}}}} -} - -test_scope_EXPORT_BACKUP_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": null}, "resource": {"id": 381, "owner": {"id": 495}, "assignee": {"id": 504}, "organization": {"id": 682}, "project": {"owner": {"id": 750}, "assignee": {"id": 50}, "organization": {"id": 968}}}} -} - -test_scope_EXPORT_BACKUP_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": null}, "resource": {"id": 338, "owner": {"id": 417}, "assignee": {"id": 518}, "organization": {"id": 633}, "project": {"owner": {"id": 794}, "assignee": {"id": 21}, "organization": {"id": 919}}}} -} - -test_scope_EXPORT_BACKUP_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": null}, "resource": {"id": 358, "owner": {"id": 458}, "assignee": {"id": 574}, "organization": {"id": 646}, "project": {"owner": {"id": 727}, "assignee": {"id": 35}, "organization": {"id": 908}}}} -} - -test_scope_EXPORT_BACKUP_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": null}, "resource": {"id": 367, "owner": {"id": 428}, "assignee": {"id": 525}, "organization": {"id": 666}, "project": {"owner": {"id": 792}, "assignee": {"id": 64}, "organization": {"id": 925}}}} -} - -test_scope_EXPORT_BACKUP_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": null}, "resource": {"id": 343, "owner": {"id": 470}, "assignee": {"id": 593}, "organization": {"id": 629}, "project": {"owner": {"id": 726}, "assignee": {"id": 57}, "organization": {"id": 966}}}} -} - -test_scope_EXPORT_BACKUP_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": null}, "resource": {"id": 370, "owner": {"id": 5}, "assignee": {"id": 594}, "organization": {"id": 646}, "project": {"owner": {"id": 782}, "assignee": {"id": 848}, "organization": {"id": 946}}}} -} - -test_scope_EXPORT_BACKUP_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": null}, "resource": {"id": 398, "owner": {"id": 55}, "assignee": {"id": 597}, "organization": {"id": 625}, "project": {"owner": {"id": 791}, "assignee": {"id": 819}, "organization": {"id": 903}}}} -} - -test_scope_EXPORT_BACKUP_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": null}, "resource": {"id": 337, "owner": {"id": 4}, "assignee": {"id": 520}, "organization": {"id": 664}, "project": {"owner": {"id": 752}, "assignee": {"id": 880}, "organization": {"id": 929}}}} -} - -test_scope_EXPORT_BACKUP_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": null}, "resource": {"id": 353, "owner": {"id": 7}, "assignee": {"id": 507}, "organization": {"id": 633}, "project": {"owner": {"id": 710}, "assignee": {"id": 816}, "organization": {"id": 909}}}} -} - -test_scope_EXPORT_BACKUP_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": null}, "resource": {"id": 390, "owner": {"id": 26}, "assignee": {"id": 522}, "organization": {"id": 692}, "project": {"owner": {"id": 760}, "assignee": {"id": 812}, "organization": {"id": 932}}}} -} - -test_scope_EXPORT_BACKUP_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": null}, "resource": {"id": 386, "owner": {"id": 401}, "assignee": {"id": 30}, "organization": {"id": 694}, "project": {"owner": {"id": 783}, "assignee": {"id": 878}, "organization": {"id": 973}}}} -} - -test_scope_EXPORT_BACKUP_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": null}, "resource": {"id": 308, "owner": {"id": 410}, "assignee": {"id": 72}, "organization": {"id": 642}, "project": {"owner": {"id": 708}, "assignee": {"id": 898}, "organization": {"id": 921}}}} -} - -test_scope_EXPORT_BACKUP_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": null}, "resource": {"id": 319, "owner": {"id": 475}, "assignee": {"id": 48}, "organization": {"id": 693}, "project": {"owner": {"id": 714}, "assignee": {"id": 886}, "organization": {"id": 917}}}} -} - -test_scope_EXPORT_BACKUP_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": null}, "resource": {"id": 377, "owner": {"id": 406}, "assignee": {"id": 79}, "organization": {"id": 627}, "project": {"owner": {"id": 705}, "assignee": {"id": 853}, "organization": {"id": 980}}}} -} - -test_scope_EXPORT_BACKUP_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": null}, "resource": {"id": 335, "owner": {"id": 472}, "assignee": {"id": 55}, "organization": {"id": 611}, "project": {"owner": {"id": 715}, "assignee": {"id": 898}, "organization": {"id": 961}}}} -} - -test_scope_EXPORT_BACKUP_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": null}, "resource": {"id": 321, "owner": {"id": 407}, "assignee": {"id": 558}, "organization": {"id": 669}, "project": {"owner": {"id": 705}, "assignee": {"id": 897}, "organization": {"id": 991}}}} -} - -test_scope_EXPORT_BACKUP_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": null}, "resource": {"id": 316, "owner": {"id": 455}, "assignee": {"id": 513}, "organization": {"id": 602}, "project": {"owner": {"id": 743}, "assignee": {"id": 834}, "organization": {"id": 999}}}} -} - -test_scope_EXPORT_BACKUP_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": null}, "resource": {"id": 382, "owner": {"id": 482}, "assignee": {"id": 504}, "organization": {"id": 679}, "project": {"owner": {"id": 707}, "assignee": {"id": 865}, "organization": {"id": 942}}}} -} - -test_scope_EXPORT_BACKUP_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": null}, "resource": {"id": 339, "owner": {"id": 416}, "assignee": {"id": 594}, "organization": {"id": 647}, "project": {"owner": {"id": 753}, "assignee": {"id": 846}, "organization": {"id": 970}}}} -} - -test_scope_EXPORT_BACKUP_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": null}, "resource": {"id": 337, "owner": {"id": 490}, "assignee": {"id": 567}, "organization": {"id": 689}, "project": {"owner": {"id": 763}, "assignee": {"id": 866}, "organization": {"id": 954}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 328, "owner": {"id": 430}, "assignee": {"id": 535}, "organization": {"id": 119}, "project": {"owner": {"id": 67}, "assignee": {"id": 822}, "organization": {"id": 977}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 382, "owner": {"id": 495}, "assignee": {"id": 532}, "organization": {"id": 644}, "project": {"owner": {"id": 65}, "assignee": {"id": 896}, "organization": {"id": 911}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "owner": {"id": 463}, "assignee": {"id": 571}, "organization": {"id": 196}, "project": {"owner": {"id": 62}, "assignee": {"id": 838}, "organization": {"id": 983}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "owner": {"id": 418}, "assignee": {"id": 544}, "organization": {"id": 603}, "project": {"owner": {"id": 67}, "assignee": {"id": 839}, "organization": {"id": 928}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 7, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "owner": {"id": 476}, "assignee": {"id": 545}, "organization": {"id": 156}, "project": {"owner": {"id": 7}, "assignee": {"id": 883}, "organization": {"id": 991}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "owner": {"id": 457}, "assignee": {"id": 557}, "organization": {"id": 642}, "project": {"owner": {"id": 99}, "assignee": {"id": 800}, "organization": {"id": 904}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 7, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 395, "owner": {"id": 440}, "assignee": {"id": 561}, "organization": {"id": 183}, "project": {"owner": {"id": 7}, "assignee": {"id": 849}, "organization": {"id": 991}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 457}, "assignee": {"id": 526}, "organization": {"id": 627}, "project": {"owner": {"id": 23}, "assignee": {"id": 808}, "organization": {"id": 934}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 410}, "assignee": {"id": 545}, "organization": {"id": 119}, "project": {"owner": {"id": 28}, "assignee": {"id": 855}, "organization": {"id": 994}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 340, "owner": {"id": 455}, "assignee": {"id": 553}, "organization": {"id": 690}, "project": {"owner": {"id": 65}, "assignee": {"id": 882}, "organization": {"id": 935}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 320, "owner": {"id": 489}, "assignee": {"id": 533}, "organization": {"id": 143}, "project": {"owner": {"id": 69}, "assignee": {"id": 853}, "organization": {"id": 938}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 356, "owner": {"id": 467}, "assignee": {"id": 520}, "organization": {"id": 689}, "project": {"owner": {"id": 95}, "assignee": {"id": 887}, "organization": {"id": 946}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "owner": {"id": 407}, "assignee": {"id": 597}, "organization": {"id": 110}, "project": {"owner": {"id": 3}, "assignee": {"id": 833}, "organization": {"id": 950}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "owner": {"id": 432}, "assignee": {"id": 598}, "organization": {"id": 611}, "project": {"owner": {"id": 3}, "assignee": {"id": 848}, "organization": {"id": 939}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 493}, "assignee": {"id": 575}, "organization": {"id": 125}, "project": {"owner": {"id": 65}, "assignee": {"id": 852}, "organization": {"id": 986}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 31, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 476}, "assignee": {"id": 583}, "organization": {"id": 654}, "project": {"owner": {"id": 31}, "assignee": {"id": 857}, "organization": {"id": 966}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 461}, "assignee": {"id": 561}, "organization": {"id": 128}, "project": {"owner": {"id": 17}, "assignee": {"id": 833}, "organization": {"id": 900}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 497}, "assignee": {"id": 515}, "organization": {"id": 636}, "project": {"owner": {"id": 57}, "assignee": {"id": 814}, "organization": {"id": 924}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 300, "owner": {"id": 499}, "assignee": {"id": 516}, "organization": {"id": 182}, "project": {"owner": {"id": 45}, "assignee": {"id": 820}, "organization": {"id": 953}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 355, "owner": {"id": 443}, "assignee": {"id": 523}, "organization": {"id": 672}, "project": {"owner": {"id": 61}, "assignee": {"id": 885}, "organization": {"id": 948}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 322, "owner": {"id": 458}, "assignee": {"id": 547}, "organization": {"id": 101}, "project": {"owner": {"id": 33}, "assignee": {"id": 843}, "organization": {"id": 986}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 399, "owner": {"id": 439}, "assignee": {"id": 574}, "organization": {"id": 681}, "project": {"owner": {"id": 31}, "assignee": {"id": 896}, "organization": {"id": 973}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "owner": {"id": 479}, "assignee": {"id": 545}, "organization": {"id": 180}, "project": {"owner": {"id": 38}, "assignee": {"id": 851}, "organization": {"id": 984}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 487}, "assignee": {"id": 506}, "organization": {"id": 674}, "project": {"owner": {"id": 42}, "assignee": {"id": 856}, "organization": {"id": 904}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "owner": {"id": 450}, "assignee": {"id": 545}, "organization": {"id": 184}, "project": {"owner": {"id": 78}, "assignee": {"id": 889}, "organization": {"id": 925}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 390, "owner": {"id": 401}, "assignee": {"id": 508}, "organization": {"id": 671}, "project": {"owner": {"id": 49}, "assignee": {"id": 883}, "organization": {"id": 959}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 377, "owner": {"id": 421}, "assignee": {"id": 557}, "organization": {"id": 142}, "project": {"owner": {"id": 69}, "assignee": {"id": 830}, "organization": {"id": 965}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 318, "owner": {"id": 466}, "assignee": {"id": 557}, "organization": {"id": 608}, "project": {"owner": {"id": 66}, "assignee": {"id": 898}, "organization": {"id": 988}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 383, "owner": {"id": 483}, "assignee": {"id": 599}, "organization": {"id": 179}, "project": {"owner": {"id": 74}, "assignee": {"id": 803}, "organization": {"id": 916}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 384, "owner": {"id": 459}, "assignee": {"id": 591}, "organization": {"id": 630}, "project": {"owner": {"id": 34}, "assignee": {"id": 840}, "organization": {"id": 939}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 307, "owner": {"id": 419}, "assignee": {"id": 578}, "organization": {"id": 138}, "project": {"owner": {"id": 0}, "assignee": {"id": 868}, "organization": {"id": 997}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 465}, "assignee": {"id": 567}, "organization": {"id": 649}, "project": {"owner": {"id": 79}, "assignee": {"id": 892}, "organization": {"id": 980}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "owner": {"id": 479}, "assignee": {"id": 505}, "organization": {"id": 132}, "project": {"owner": {"id": 25}, "assignee": {"id": 857}, "organization": {"id": 951}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "owner": {"id": 462}, "assignee": {"id": 521}, "organization": {"id": 639}, "project": {"owner": {"id": 14}, "assignee": {"id": 859}, "organization": {"id": 913}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "owner": {"id": 458}, "assignee": {"id": 524}, "organization": {"id": 115}, "project": {"owner": {"id": 52}, "assignee": {"id": 810}, "organization": {"id": 943}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "owner": {"id": 408}, "assignee": {"id": 594}, "organization": {"id": 662}, "project": {"owner": {"id": 10}, "assignee": {"id": 848}, "organization": {"id": 960}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 367, "owner": {"id": 492}, "assignee": {"id": 563}, "organization": {"id": 181}, "project": {"owner": {"id": 89}, "assignee": {"id": 837}, "organization": {"id": 902}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 309, "owner": {"id": 472}, "assignee": {"id": 588}, "organization": {"id": 615}, "project": {"owner": {"id": 99}, "assignee": {"id": 854}, "organization": {"id": 953}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 354, "owner": {"id": 421}, "assignee": {"id": 539}, "organization": {"id": 192}, "project": {"owner": {"id": 79}, "assignee": {"id": 884}, "organization": {"id": 950}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 366, "owner": {"id": 492}, "assignee": {"id": 573}, "organization": {"id": 682}, "project": {"owner": {"id": 50}, "assignee": {"id": 855}, "organization": {"id": 961}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 309, "owner": {"id": 464}, "assignee": {"id": 517}, "organization": {"id": 180}, "project": {"owner": {"id": 80}, "assignee": {"id": 859}, "organization": {"id": 972}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 316, "owner": {"id": 432}, "assignee": {"id": 563}, "organization": {"id": 651}, "project": {"owner": {"id": 56}, "assignee": {"id": 870}, "organization": {"id": 954}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 358, "owner": {"id": 413}, "assignee": {"id": 550}, "organization": {"id": 185}, "project": {"owner": {"id": 66}, "assignee": {"id": 881}, "organization": {"id": 934}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "owner": {"id": 458}, "assignee": {"id": 578}, "organization": {"id": 618}, "project": {"owner": {"id": 47}, "assignee": {"id": 858}, "organization": {"id": 968}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 324, "owner": {"id": 440}, "assignee": {"id": 519}, "organization": {"id": 124}, "project": {"owner": {"id": 79}, "assignee": {"id": 807}, "organization": {"id": 903}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "owner": {"id": 408}, "assignee": {"id": 528}, "organization": {"id": 699}, "project": {"owner": {"id": 43}, "assignee": {"id": 830}, "organization": {"id": 932}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 336, "owner": {"id": 461}, "assignee": {"id": 596}, "organization": {"id": 123}, "project": {"owner": {"id": 66}, "assignee": {"id": 844}, "organization": {"id": 940}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 471}, "assignee": {"id": 514}, "organization": {"id": 672}, "project": {"owner": {"id": 11}, "assignee": {"id": 810}, "organization": {"id": 956}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 357, "owner": {"id": 403}, "assignee": {"id": 555}, "organization": {"id": 177}, "project": {"owner": {"id": 85}, "assignee": {"id": 883}, "organization": {"id": 954}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 426}, "assignee": {"id": 512}, "organization": {"id": 650}, "project": {"owner": {"id": 70}, "assignee": {"id": 840}, "organization": {"id": 931}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 351, "owner": {"id": 437}, "assignee": {"id": 520}, "organization": {"id": 131}, "project": {"owner": {"id": 741}, "assignee": {"id": 46}, "organization": {"id": 928}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 494}, "assignee": {"id": 595}, "organization": {"id": 692}, "project": {"owner": {"id": 722}, "assignee": {"id": 4}, "organization": {"id": 911}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 438}, "assignee": {"id": 589}, "organization": {"id": 108}, "project": {"owner": {"id": 757}, "assignee": {"id": 76}, "organization": {"id": 998}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "owner": {"id": 475}, "assignee": {"id": 585}, "organization": {"id": 677}, "project": {"owner": {"id": 745}, "assignee": {"id": 96}, "organization": {"id": 997}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "owner": {"id": 429}, "assignee": {"id": 512}, "organization": {"id": 168}, "project": {"owner": {"id": 761}, "assignee": {"id": 54}, "organization": {"id": 946}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 416}, "assignee": {"id": 547}, "organization": {"id": 670}, "project": {"owner": {"id": 725}, "assignee": {"id": 8}, "organization": {"id": 905}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 342, "owner": {"id": 439}, "assignee": {"id": 547}, "organization": {"id": 165}, "project": {"owner": {"id": 724}, "assignee": {"id": 78}, "organization": {"id": 960}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 387, "owner": {"id": 429}, "assignee": {"id": 555}, "organization": {"id": 664}, "project": {"owner": {"id": 755}, "assignee": {"id": 80}, "organization": {"id": 953}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 492}, "assignee": {"id": 539}, "organization": {"id": 151}, "project": {"owner": {"id": 764}, "assignee": {"id": 84}, "organization": {"id": 903}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 416}, "assignee": {"id": 552}, "organization": {"id": 657}, "project": {"owner": {"id": 797}, "assignee": {"id": 17}, "organization": {"id": 972}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 348, "owner": {"id": 490}, "assignee": {"id": 502}, "organization": {"id": 178}, "project": {"owner": {"id": 717}, "assignee": {"id": 18}, "organization": {"id": 937}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 317, "owner": {"id": 496}, "assignee": {"id": 509}, "organization": {"id": 611}, "project": {"owner": {"id": 778}, "assignee": {"id": 57}, "organization": {"id": 934}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 497}, "assignee": {"id": 580}, "organization": {"id": 161}, "project": {"owner": {"id": 706}, "assignee": {"id": 84}, "organization": {"id": 977}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 321, "owner": {"id": 407}, "assignee": {"id": 573}, "organization": {"id": 674}, "project": {"owner": {"id": 794}, "assignee": {"id": 61}, "organization": {"id": 964}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "owner": {"id": 417}, "assignee": {"id": 502}, "organization": {"id": 178}, "project": {"owner": {"id": 765}, "assignee": {"id": 75}, "organization": {"id": 992}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 324, "owner": {"id": 475}, "assignee": {"id": 596}, "organization": {"id": 676}, "project": {"owner": {"id": 705}, "assignee": {"id": 0}, "organization": {"id": 947}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 486}, "assignee": {"id": 547}, "organization": {"id": 110}, "project": {"owner": {"id": 744}, "assignee": {"id": 54}, "organization": {"id": 962}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 371, "owner": {"id": 496}, "assignee": {"id": 507}, "organization": {"id": 692}, "project": {"owner": {"id": 780}, "assignee": {"id": 4}, "organization": {"id": 965}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 493}, "assignee": {"id": 503}, "organization": {"id": 153}, "project": {"owner": {"id": 741}, "assignee": {"id": 34}, "organization": {"id": 989}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 302, "owner": {"id": 410}, "assignee": {"id": 589}, "organization": {"id": 698}, "project": {"owner": {"id": 725}, "assignee": {"id": 27}, "organization": {"id": 935}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 300, "owner": {"id": 445}, "assignee": {"id": 563}, "organization": {"id": 113}, "project": {"owner": {"id": 725}, "assignee": {"id": 94}, "organization": {"id": 913}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 434}, "assignee": {"id": 573}, "organization": {"id": 642}, "project": {"owner": {"id": 779}, "assignee": {"id": 83}, "organization": {"id": 994}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 473}, "assignee": {"id": 510}, "organization": {"id": 113}, "project": {"owner": {"id": 787}, "assignee": {"id": 94}, "organization": {"id": 976}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 479}, "assignee": {"id": 584}, "organization": {"id": 606}, "project": {"owner": {"id": 777}, "assignee": {"id": 48}, "organization": {"id": 930}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 482}, "assignee": {"id": 553}, "organization": {"id": 147}, "project": {"owner": {"id": 789}, "assignee": {"id": 2}, "organization": {"id": 916}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 469}, "assignee": {"id": 581}, "organization": {"id": 626}, "project": {"owner": {"id": 750}, "assignee": {"id": 3}, "organization": {"id": 972}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 366, "owner": {"id": 401}, "assignee": {"id": 513}, "organization": {"id": 194}, "project": {"owner": {"id": 710}, "assignee": {"id": 27}, "organization": {"id": 984}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 302, "owner": {"id": 479}, "assignee": {"id": 549}, "organization": {"id": 637}, "project": {"owner": {"id": 726}, "assignee": {"id": 46}, "organization": {"id": 938}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 383, "owner": {"id": 434}, "assignee": {"id": 577}, "organization": {"id": 174}, "project": {"owner": {"id": 726}, "assignee": {"id": 0}, "organization": {"id": 907}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 304, "owner": {"id": 414}, "assignee": {"id": 547}, "organization": {"id": 625}, "project": {"owner": {"id": 742}, "assignee": {"id": 3}, "organization": {"id": 980}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 322, "owner": {"id": 498}, "assignee": {"id": 544}, "organization": {"id": 171}, "project": {"owner": {"id": 795}, "assignee": {"id": 86}, "organization": {"id": 939}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 471}, "assignee": {"id": 582}, "organization": {"id": 688}, "project": {"owner": {"id": 769}, "assignee": {"id": 76}, "organization": {"id": 938}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "owner": {"id": 452}, "assignee": {"id": 535}, "organization": {"id": 112}, "project": {"owner": {"id": 789}, "assignee": {"id": 45}, "organization": {"id": 941}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 472}, "assignee": {"id": 593}, "organization": {"id": 626}, "project": {"owner": {"id": 720}, "assignee": {"id": 4}, "organization": {"id": 936}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 457}, "assignee": {"id": 596}, "organization": {"id": 172}, "project": {"owner": {"id": 737}, "assignee": {"id": 81}, "organization": {"id": 910}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 425}, "assignee": {"id": 572}, "organization": {"id": 612}, "project": {"owner": {"id": 780}, "assignee": {"id": 65}, "organization": {"id": 930}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 409}, "assignee": {"id": 588}, "organization": {"id": 187}, "project": {"owner": {"id": 798}, "assignee": {"id": 56}, "organization": {"id": 963}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 379, "owner": {"id": 486}, "assignee": {"id": 546}, "organization": {"id": 619}, "project": {"owner": {"id": 709}, "assignee": {"id": 86}, "organization": {"id": 942}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 491}, "assignee": {"id": 505}, "organization": {"id": 118}, "project": {"owner": {"id": 788}, "assignee": {"id": 33}, "organization": {"id": 977}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 301, "owner": {"id": 404}, "assignee": {"id": 565}, "organization": {"id": 686}, "project": {"owner": {"id": 784}, "assignee": {"id": 18}, "organization": {"id": 975}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 369, "owner": {"id": 481}, "assignee": {"id": 541}, "organization": {"id": 169}, "project": {"owner": {"id": 765}, "assignee": {"id": 91}, "organization": {"id": 977}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 324, "owner": {"id": 461}, "assignee": {"id": 503}, "organization": {"id": 627}, "project": {"owner": {"id": 757}, "assignee": {"id": 96}, "organization": {"id": 926}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "owner": {"id": 447}, "assignee": {"id": 570}, "organization": {"id": 139}, "project": {"owner": {"id": 752}, "assignee": {"id": 88}, "organization": {"id": 982}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "owner": {"id": 426}, "assignee": {"id": 588}, "organization": {"id": 607}, "project": {"owner": {"id": 758}, "assignee": {"id": 58}, "organization": {"id": 966}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 324, "owner": {"id": 432}, "assignee": {"id": 502}, "organization": {"id": 115}, "project": {"owner": {"id": 775}, "assignee": {"id": 83}, "organization": {"id": 988}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "owner": {"id": 440}, "assignee": {"id": 507}, "organization": {"id": 695}, "project": {"owner": {"id": 709}, "assignee": {"id": 31}, "organization": {"id": 912}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 409}, "assignee": {"id": 563}, "organization": {"id": 145}, "project": {"owner": {"id": 700}, "assignee": {"id": 65}, "organization": {"id": 935}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 484}, "assignee": {"id": 513}, "organization": {"id": 692}, "project": {"owner": {"id": 798}, "assignee": {"id": 87}, "organization": {"id": 917}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 332, "owner": {"id": 464}, "assignee": {"id": 513}, "organization": {"id": 141}, "project": {"owner": {"id": 792}, "assignee": {"id": 86}, "organization": {"id": 936}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 340, "owner": {"id": 441}, "assignee": {"id": 531}, "organization": {"id": 689}, "project": {"owner": {"id": 773}, "assignee": {"id": 41}, "organization": {"id": 918}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 310, "owner": {"id": 97}, "assignee": {"id": 534}, "organization": {"id": 188}, "project": {"owner": {"id": 719}, "assignee": {"id": 884}, "organization": {"id": 991}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 393, "owner": {"id": 78}, "assignee": {"id": 569}, "organization": {"id": 657}, "project": {"owner": {"id": 707}, "assignee": {"id": 808}, "organization": {"id": 907}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 63}, "assignee": {"id": 542}, "organization": {"id": 155}, "project": {"owner": {"id": 775}, "assignee": {"id": 832}, "organization": {"id": 913}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "owner": {"id": 96}, "assignee": {"id": 539}, "organization": {"id": 665}, "project": {"owner": {"id": 729}, "assignee": {"id": 820}, "organization": {"id": 932}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "owner": {"id": 52}, "assignee": {"id": 595}, "organization": {"id": 109}, "project": {"owner": {"id": 796}, "assignee": {"id": 817}, "organization": {"id": 986}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "owner": {"id": 11}, "assignee": {"id": 552}, "organization": {"id": 691}, "project": {"owner": {"id": 772}, "assignee": {"id": 838}, "organization": {"id": 966}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 307, "owner": {"id": 28}, "assignee": {"id": 509}, "organization": {"id": 189}, "project": {"owner": {"id": 721}, "assignee": {"id": 890}, "organization": {"id": 926}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 315, "owner": {"id": 80}, "assignee": {"id": 558}, "organization": {"id": 674}, "project": {"owner": {"id": 748}, "assignee": {"id": 843}, "organization": {"id": 947}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 24}, "assignee": {"id": 523}, "organization": {"id": 149}, "project": {"owner": {"id": 770}, "assignee": {"id": 893}, "organization": {"id": 982}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 21}, "assignee": {"id": 537}, "organization": {"id": 630}, "project": {"owner": {"id": 739}, "assignee": {"id": 836}, "organization": {"id": 950}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 302, "owner": {"id": 7}, "assignee": {"id": 562}, "organization": {"id": 140}, "project": {"owner": {"id": 784}, "assignee": {"id": 877}, "organization": {"id": 982}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 365, "owner": {"id": 43}, "assignee": {"id": 593}, "organization": {"id": 673}, "project": {"owner": {"id": 799}, "assignee": {"id": 882}, "organization": {"id": 901}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "owner": {"id": 67}, "assignee": {"id": 578}, "organization": {"id": 182}, "project": {"owner": {"id": 793}, "assignee": {"id": 834}, "organization": {"id": 920}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "owner": {"id": 62}, "assignee": {"id": 529}, "organization": {"id": 650}, "project": {"owner": {"id": 719}, "assignee": {"id": 842}, "organization": {"id": 957}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 15}, "assignee": {"id": 564}, "organization": {"id": 106}, "project": {"owner": {"id": 723}, "assignee": {"id": 859}, "organization": {"id": 936}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "owner": {"id": 95}, "assignee": {"id": 544}, "organization": {"id": 694}, "project": {"owner": {"id": 758}, "assignee": {"id": 873}, "organization": {"id": 965}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 347, "owner": {"id": 45}, "assignee": {"id": 543}, "organization": {"id": 191}, "project": {"owner": {"id": 770}, "assignee": {"id": 839}, "organization": {"id": 975}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 321, "owner": {"id": 17}, "assignee": {"id": 554}, "organization": {"id": 632}, "project": {"owner": {"id": 731}, "assignee": {"id": 880}, "organization": {"id": 940}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 361, "owner": {"id": 99}, "assignee": {"id": 516}, "organization": {"id": 167}, "project": {"owner": {"id": 739}, "assignee": {"id": 818}, "organization": {"id": 933}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 382, "owner": {"id": 20}, "assignee": {"id": 521}, "organization": {"id": 672}, "project": {"owner": {"id": 768}, "assignee": {"id": 807}, "organization": {"id": 984}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 379, "owner": {"id": 99}, "assignee": {"id": 582}, "organization": {"id": 113}, "project": {"owner": {"id": 722}, "assignee": {"id": 849}, "organization": {"id": 940}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 382, "owner": {"id": 80}, "assignee": {"id": 592}, "organization": {"id": 633}, "project": {"owner": {"id": 718}, "assignee": {"id": 804}, "organization": {"id": 939}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "owner": {"id": 97}, "assignee": {"id": 514}, "organization": {"id": 148}, "project": {"owner": {"id": 713}, "assignee": {"id": 837}, "organization": {"id": 946}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 35}, "assignee": {"id": 529}, "organization": {"id": 607}, "project": {"owner": {"id": 727}, "assignee": {"id": 807}, "organization": {"id": 917}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 54}, "assignee": {"id": 514}, "organization": {"id": 138}, "project": {"owner": {"id": 726}, "assignee": {"id": 808}, "organization": {"id": 936}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 64}, "assignee": {"id": 536}, "organization": {"id": 631}, "project": {"owner": {"id": 759}, "assignee": {"id": 882}, "organization": {"id": 961}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 303, "owner": {"id": 17}, "assignee": {"id": 542}, "organization": {"id": 161}, "project": {"owner": {"id": 778}, "assignee": {"id": 817}, "organization": {"id": 994}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 303, "owner": {"id": 72}, "assignee": {"id": 516}, "organization": {"id": 654}, "project": {"owner": {"id": 706}, "assignee": {"id": 894}, "organization": {"id": 939}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 379, "owner": {"id": 57}, "assignee": {"id": 560}, "organization": {"id": 189}, "project": {"owner": {"id": 774}, "assignee": {"id": 894}, "organization": {"id": 966}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 344, "owner": {"id": 39}, "assignee": {"id": 585}, "organization": {"id": 675}, "project": {"owner": {"id": 755}, "assignee": {"id": 882}, "organization": {"id": 999}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 327, "owner": {"id": 79}, "assignee": {"id": 501}, "organization": {"id": 179}, "project": {"owner": {"id": 788}, "assignee": {"id": 855}, "organization": {"id": 937}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 357, "owner": {"id": 27}, "assignee": {"id": 589}, "organization": {"id": 657}, "project": {"owner": {"id": 790}, "assignee": {"id": 851}, "organization": {"id": 924}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "owner": {"id": 36}, "assignee": {"id": 505}, "organization": {"id": 163}, "project": {"owner": {"id": 714}, "assignee": {"id": 813}, "organization": {"id": 978}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "owner": {"id": 5}, "assignee": {"id": 599}, "organization": {"id": 645}, "project": {"owner": {"id": 781}, "assignee": {"id": 823}, "organization": {"id": 916}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 89}, "assignee": {"id": 501}, "organization": {"id": 147}, "project": {"owner": {"id": 736}, "assignee": {"id": 818}, "organization": {"id": 916}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 97}, "assignee": {"id": 530}, "organization": {"id": 683}, "project": {"owner": {"id": 791}, "assignee": {"id": 817}, "organization": {"id": 926}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 338, "owner": {"id": 51}, "assignee": {"id": 527}, "organization": {"id": 194}, "project": {"owner": {"id": 752}, "assignee": {"id": 809}, "organization": {"id": 955}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 62}, "assignee": {"id": 539}, "organization": {"id": 686}, "project": {"owner": {"id": 739}, "assignee": {"id": 852}, "organization": {"id": 974}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 8}, "assignee": {"id": 577}, "organization": {"id": 114}, "project": {"owner": {"id": 791}, "assignee": {"id": 874}, "organization": {"id": 942}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 347, "owner": {"id": 7}, "assignee": {"id": 569}, "organization": {"id": 658}, "project": {"owner": {"id": 716}, "assignee": {"id": 830}, "organization": {"id": 974}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 315, "owner": {"id": 23}, "assignee": {"id": 582}, "organization": {"id": 151}, "project": {"owner": {"id": 766}, "assignee": {"id": 851}, "organization": {"id": 901}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 316, "owner": {"id": 65}, "assignee": {"id": 551}, "organization": {"id": 622}, "project": {"owner": {"id": 792}, "assignee": {"id": 838}, "organization": {"id": 943}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "owner": {"id": 8}, "assignee": {"id": 548}, "organization": {"id": 135}, "project": {"owner": {"id": 774}, "assignee": {"id": 826}, "organization": {"id": 957}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 2}, "assignee": {"id": 563}, "organization": {"id": 644}, "project": {"owner": {"id": 703}, "assignee": {"id": 866}, "organization": {"id": 985}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "owner": {"id": 33}, "assignee": {"id": 580}, "organization": {"id": 180}, "project": {"owner": {"id": 708}, "assignee": {"id": 863}, "organization": {"id": 967}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "owner": {"id": 99}, "assignee": {"id": 507}, "organization": {"id": 619}, "project": {"owner": {"id": 793}, "assignee": {"id": 862}, "organization": {"id": 933}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 332, "owner": {"id": 26}, "assignee": {"id": 535}, "organization": {"id": 151}, "project": {"owner": {"id": 729}, "assignee": {"id": 856}, "organization": {"id": 977}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 354, "owner": {"id": 94}, "assignee": {"id": 536}, "organization": {"id": 639}, "project": {"owner": {"id": 768}, "assignee": {"id": 896}, "organization": {"id": 950}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 315, "owner": {"id": 21}, "assignee": {"id": 567}, "organization": {"id": 194}, "project": {"owner": {"id": 752}, "assignee": {"id": 808}, "organization": {"id": 967}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 391, "owner": {"id": 36}, "assignee": {"id": 582}, "organization": {"id": 628}, "project": {"owner": {"id": 737}, "assignee": {"id": 857}, "organization": {"id": 959}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 356, "owner": {"id": 466}, "assignee": {"id": 59}, "organization": {"id": 130}, "project": {"owner": {"id": 747}, "assignee": {"id": 889}, "organization": {"id": 916}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"id": 331, "owner": {"id": 482}, "assignee": {"id": 66}, "organization": {"id": 681}, "project": {"owner": {"id": 713}, "assignee": {"id": 881}, "organization": {"id": 966}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "owner": {"id": 463}, "assignee": {"id": 35}, "organization": {"id": 180}, "project": {"owner": {"id": 715}, "assignee": {"id": 827}, "organization": {"id": 942}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "owner": {"id": 445}, "assignee": {"id": 81}, "organization": {"id": 684}, "project": {"owner": {"id": 756}, "assignee": {"id": 876}, "organization": {"id": 958}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 7, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 476}, "assignee": {"id": 7}, "organization": {"id": 139}, "project": {"owner": {"id": 760}, "assignee": {"id": 856}, "organization": {"id": 982}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 447}, "assignee": {"id": 62}, "organization": {"id": 626}, "project": {"owner": {"id": 703}, "assignee": {"id": 802}, "organization": {"id": 909}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 433}, "assignee": {"id": 75}, "organization": {"id": 122}, "project": {"owner": {"id": 760}, "assignee": {"id": 822}, "organization": {"id": 944}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 381, "owner": {"id": 423}, "assignee": {"id": 57}, "organization": {"id": 680}, "project": {"owner": {"id": 770}, "assignee": {"id": 845}, "organization": {"id": 948}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 333, "owner": {"id": 406}, "assignee": {"id": 20}, "organization": {"id": 141}, "project": {"owner": {"id": 743}, "assignee": {"id": 882}, "organization": {"id": 980}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 363, "owner": {"id": 460}, "assignee": {"id": 41}, "organization": {"id": 681}, "project": {"owner": {"id": 768}, "assignee": {"id": 845}, "organization": {"id": 955}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 351, "owner": {"id": 439}, "assignee": {"id": 56}, "organization": {"id": 139}, "project": {"owner": {"id": 795}, "assignee": {"id": 834}, "organization": {"id": 927}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 495}, "assignee": {"id": 6}, "organization": {"id": 619}, "project": {"owner": {"id": 703}, "assignee": {"id": 823}, "organization": {"id": 916}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "owner": {"id": 453}, "assignee": {"id": 20}, "organization": {"id": 148}, "project": {"owner": {"id": 751}, "assignee": {"id": 805}, "organization": {"id": 958}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 320, "owner": {"id": 491}, "assignee": {"id": 65}, "organization": {"id": 687}, "project": {"owner": {"id": 713}, "assignee": {"id": 892}, "organization": {"id": 935}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 479}, "assignee": {"id": 47}, "organization": {"id": 104}, "project": {"owner": {"id": 729}, "assignee": {"id": 856}, "organization": {"id": 921}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "owner": {"id": 430}, "assignee": {"id": 49}, "organization": {"id": 615}, "project": {"owner": {"id": 794}, "assignee": {"id": 873}, "organization": {"id": 943}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 324, "owner": {"id": 422}, "assignee": {"id": 93}, "organization": {"id": 144}, "project": {"owner": {"id": 793}, "assignee": {"id": 800}, "organization": {"id": 954}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 472}, "assignee": {"id": 98}, "organization": {"id": 680}, "project": {"owner": {"id": 714}, "assignee": {"id": 886}, "organization": {"id": 992}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 366, "owner": {"id": 432}, "assignee": {"id": 50}, "organization": {"id": 132}, "project": {"owner": {"id": 744}, "assignee": {"id": 816}, "organization": {"id": 927}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 333, "owner": {"id": 409}, "assignee": {"id": 21}, "organization": {"id": 695}, "project": {"owner": {"id": 703}, "assignee": {"id": 804}, "organization": {"id": 986}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 448}, "assignee": {"id": 7}, "organization": {"id": 152}, "project": {"owner": {"id": 795}, "assignee": {"id": 804}, "organization": {"id": 938}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 331, "owner": {"id": 423}, "assignee": {"id": 40}, "organization": {"id": 646}, "project": {"owner": {"id": 715}, "assignee": {"id": 889}, "organization": {"id": 959}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 460}, "assignee": {"id": 43}, "organization": {"id": 166}, "project": {"owner": {"id": 773}, "assignee": {"id": 852}, "organization": {"id": 903}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "owner": {"id": 429}, "assignee": {"id": 22}, "organization": {"id": 634}, "project": {"owner": {"id": 786}, "assignee": {"id": 827}, "organization": {"id": 934}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "owner": {"id": 405}, "assignee": {"id": 58}, "organization": {"id": 158}, "project": {"owner": {"id": 710}, "assignee": {"id": 887}, "organization": {"id": 905}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "owner": {"id": 418}, "assignee": {"id": 42}, "organization": {"id": 659}, "project": {"owner": {"id": 732}, "assignee": {"id": 879}, "organization": {"id": 976}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 324, "owner": {"id": 493}, "assignee": {"id": 93}, "organization": {"id": 150}, "project": {"owner": {"id": 737}, "assignee": {"id": 821}, "organization": {"id": 969}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 310, "owner": {"id": 462}, "assignee": {"id": 85}, "organization": {"id": 650}, "project": {"owner": {"id": 788}, "assignee": {"id": 882}, "organization": {"id": 960}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 327, "owner": {"id": 464}, "assignee": {"id": 8}, "organization": {"id": 126}, "project": {"owner": {"id": 707}, "assignee": {"id": 815}, "organization": {"id": 913}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 383, "owner": {"id": 444}, "assignee": {"id": 67}, "organization": {"id": 687}, "project": {"owner": {"id": 774}, "assignee": {"id": 819}, "organization": {"id": 926}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 321, "owner": {"id": 418}, "assignee": {"id": 34}, "organization": {"id": 136}, "project": {"owner": {"id": 763}, "assignee": {"id": 842}, "organization": {"id": 905}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 450}, "assignee": {"id": 35}, "organization": {"id": 630}, "project": {"owner": {"id": 780}, "assignee": {"id": 823}, "organization": {"id": 933}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 451}, "assignee": {"id": 14}, "organization": {"id": 191}, "project": {"owner": {"id": 752}, "assignee": {"id": 804}, "organization": {"id": 935}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "owner": {"id": 413}, "assignee": {"id": 80}, "organization": {"id": 692}, "project": {"owner": {"id": 795}, "assignee": {"id": 846}, "organization": {"id": 941}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "owner": {"id": 474}, "assignee": {"id": 60}, "organization": {"id": 107}, "project": {"owner": {"id": 784}, "assignee": {"id": 875}, "organization": {"id": 973}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "owner": {"id": 438}, "assignee": {"id": 78}, "organization": {"id": 648}, "project": {"owner": {"id": 709}, "assignee": {"id": 894}, "organization": {"id": 949}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 304, "owner": {"id": 439}, "assignee": {"id": 19}, "organization": {"id": 178}, "project": {"owner": {"id": 748}, "assignee": {"id": 809}, "organization": {"id": 906}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 384, "owner": {"id": 497}, "assignee": {"id": 10}, "organization": {"id": 683}, "project": {"owner": {"id": 746}, "assignee": {"id": 833}, "organization": {"id": 937}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 305, "owner": {"id": 496}, "assignee": {"id": 21}, "organization": {"id": 179}, "project": {"owner": {"id": 762}, "assignee": {"id": 859}, "organization": {"id": 904}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 458}, "assignee": {"id": 52}, "organization": {"id": 642}, "project": {"owner": {"id": 701}, "assignee": {"id": 826}, "organization": {"id": 941}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 330, "owner": {"id": 457}, "assignee": {"id": 34}, "organization": {"id": 198}, "project": {"owner": {"id": 735}, "assignee": {"id": 850}, "organization": {"id": 985}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 350, "owner": {"id": 401}, "assignee": {"id": 10}, "organization": {"id": 668}, "project": {"owner": {"id": 797}, "assignee": {"id": 845}, "organization": {"id": 911}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "owner": {"id": 451}, "assignee": {"id": 22}, "organization": {"id": 123}, "project": {"owner": {"id": 750}, "assignee": {"id": 893}, "organization": {"id": 930}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 462}, "assignee": {"id": 62}, "organization": {"id": 609}, "project": {"owner": {"id": 797}, "assignee": {"id": 814}, "organization": {"id": 909}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 423}, "assignee": {"id": 58}, "organization": {"id": 122}, "project": {"owner": {"id": 791}, "assignee": {"id": 821}, "organization": {"id": 987}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 451}, "assignee": {"id": 16}, "organization": {"id": 637}, "project": {"owner": {"id": 717}, "assignee": {"id": 897}, "organization": {"id": 918}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 431}, "assignee": {"id": 42}, "organization": {"id": 161}, "project": {"owner": {"id": 709}, "assignee": {"id": 870}, "organization": {"id": 956}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 311, "owner": {"id": 462}, "assignee": {"id": 20}, "organization": {"id": 647}, "project": {"owner": {"id": 786}, "assignee": {"id": 862}, "organization": {"id": 920}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 346, "owner": {"id": 466}, "assignee": {"id": 63}, "organization": {"id": 174}, "project": {"owner": {"id": 755}, "assignee": {"id": 855}, "organization": {"id": 901}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 327, "owner": {"id": 430}, "assignee": {"id": 93}, "organization": {"id": 636}, "project": {"owner": {"id": 706}, "assignee": {"id": 865}, "organization": {"id": 925}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 365, "owner": {"id": 427}, "assignee": {"id": 550}, "organization": {"id": 123}, "project": {"owner": {"id": 714}, "assignee": {"id": 845}, "organization": {"id": 981}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 353, "owner": {"id": 466}, "assignee": {"id": 551}, "organization": {"id": 648}, "project": {"owner": {"id": 782}, "assignee": {"id": 866}, "organization": {"id": 903}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "owner": {"id": 447}, "assignee": {"id": 553}, "organization": {"id": 123}, "project": {"owner": {"id": 730}, "assignee": {"id": 806}, "organization": {"id": 903}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "owner": {"id": 446}, "assignee": {"id": 501}, "organization": {"id": 678}, "project": {"owner": {"id": 725}, "assignee": {"id": 888}, "organization": {"id": 952}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 400}, "assignee": {"id": 579}, "organization": {"id": 157}, "project": {"owner": {"id": 771}, "assignee": {"id": 804}, "organization": {"id": 930}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 418}, "assignee": {"id": 587}, "organization": {"id": 614}, "project": {"owner": {"id": 727}, "assignee": {"id": 860}, "organization": {"id": 936}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 372, "owner": {"id": 429}, "assignee": {"id": 574}, "organization": {"id": 192}, "project": {"owner": {"id": 780}, "assignee": {"id": 818}, "organization": {"id": 987}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 364, "owner": {"id": 479}, "assignee": {"id": 535}, "organization": {"id": 673}, "project": {"owner": {"id": 741}, "assignee": {"id": 833}, "organization": {"id": 920}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 316, "owner": {"id": 478}, "assignee": {"id": 531}, "organization": {"id": 193}, "project": {"owner": {"id": 793}, "assignee": {"id": 897}, "organization": {"id": 931}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 365, "owner": {"id": 427}, "assignee": {"id": 518}, "organization": {"id": 696}, "project": {"owner": {"id": 739}, "assignee": {"id": 803}, "organization": {"id": 986}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 310, "owner": {"id": 478}, "assignee": {"id": 544}, "organization": {"id": 153}, "project": {"owner": {"id": 764}, "assignee": {"id": 813}, "organization": {"id": 980}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 464}, "assignee": {"id": 503}, "organization": {"id": 675}, "project": {"owner": {"id": 764}, "assignee": {"id": 896}, "organization": {"id": 903}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 407}, "assignee": {"id": 533}, "organization": {"id": 192}, "project": {"owner": {"id": 779}, "assignee": {"id": 826}, "organization": {"id": 929}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "owner": {"id": 418}, "assignee": {"id": 534}, "organization": {"id": 699}, "project": {"owner": {"id": 738}, "assignee": {"id": 842}, "organization": {"id": 916}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "owner": {"id": 433}, "assignee": {"id": 517}, "organization": {"id": 190}, "project": {"owner": {"id": 762}, "assignee": {"id": 829}, "organization": {"id": 917}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 390, "owner": {"id": 461}, "assignee": {"id": 522}, "organization": {"id": 623}, "project": {"owner": {"id": 718}, "assignee": {"id": 813}, "organization": {"id": 940}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 340, "owner": {"id": 406}, "assignee": {"id": 599}, "organization": {"id": 199}, "project": {"owner": {"id": 750}, "assignee": {"id": 879}, "organization": {"id": 974}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 372, "owner": {"id": 456}, "assignee": {"id": 532}, "organization": {"id": 646}, "project": {"owner": {"id": 712}, "assignee": {"id": 810}, "organization": {"id": 990}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 499}, "assignee": {"id": 508}, "organization": {"id": 199}, "project": {"owner": {"id": 700}, "assignee": {"id": 869}, "organization": {"id": 951}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 441}, "assignee": {"id": 513}, "organization": {"id": 628}, "project": {"owner": {"id": 725}, "assignee": {"id": 874}, "organization": {"id": 954}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 443}, "assignee": {"id": 559}, "organization": {"id": 150}, "project": {"owner": {"id": 719}, "assignee": {"id": 882}, "organization": {"id": 973}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 339, "owner": {"id": 461}, "assignee": {"id": 508}, "organization": {"id": 687}, "project": {"owner": {"id": 711}, "assignee": {"id": 865}, "organization": {"id": 910}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:backup", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "owner": {"id": 458}, "assignee": {"id": 519}, "organization": {"id": 190}, "project": {"owner": {"id": 794}, "assignee": {"id": 873}, "organization": {"id": 915}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "owner": {"id": 433}, "assignee": {"id": 551}, "organization": {"id": 642}, "project": {"owner": {"id": 746}, "assignee": {"id": 806}, "organization": {"id": 999}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "owner": {"id": 488}, "assignee": {"id": 585}, "organization": {"id": 194}, "project": {"owner": {"id": 743}, "assignee": {"id": 808}, "organization": {"id": 948}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 446}, "assignee": {"id": 545}, "organization": {"id": 679}, "project": {"owner": {"id": 779}, "assignee": {"id": 896}, "organization": {"id": 974}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 474}, "assignee": {"id": 556}, "organization": {"id": 125}, "project": {"owner": {"id": 707}, "assignee": {"id": 894}, "organization": {"id": 923}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 439}, "assignee": {"id": 573}, "organization": {"id": 690}, "project": {"owner": {"id": 773}, "assignee": {"id": 844}, "organization": {"id": 987}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 357, "owner": {"id": 485}, "assignee": {"id": 500}, "organization": {"id": 119}, "project": {"owner": {"id": 734}, "assignee": {"id": 825}, "organization": {"id": 987}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 377, "owner": {"id": 413}, "assignee": {"id": 553}, "organization": {"id": 619}, "project": {"owner": {"id": 755}, "assignee": {"id": 825}, "organization": {"id": 915}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 397, "owner": {"id": 434}, "assignee": {"id": 590}, "organization": {"id": 123}, "project": {"owner": {"id": 718}, "assignee": {"id": 823}, "organization": {"id": 918}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 24, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 416}, "assignee": {"id": 582}, "organization": {"id": 613}, "project": {"owner": {"id": 791}, "assignee": {"id": 875}, "organization": {"id": 961}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "owner": {"id": 493}, "assignee": {"id": 587}, "organization": {"id": 126}, "project": {"owner": {"id": 703}, "assignee": {"id": 829}, "organization": {"id": 932}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 358, "owner": {"id": 441}, "assignee": {"id": 512}, "organization": {"id": 604}, "project": {"owner": {"id": 784}, "assignee": {"id": 822}, "organization": {"id": 975}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 471}, "assignee": {"id": 541}, "organization": {"id": 121}, "project": {"owner": {"id": 764}, "assignee": {"id": 894}, "organization": {"id": 926}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "owner": {"id": 403}, "assignee": {"id": 538}, "organization": {"id": 640}, "project": {"owner": {"id": 726}, "assignee": {"id": 894}, "organization": {"id": 941}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 383, "owner": {"id": 454}, "assignee": {"id": 593}, "organization": {"id": 108}, "project": {"owner": {"id": 786}, "assignee": {"id": 890}, "organization": {"id": 937}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 29, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 409}, "assignee": {"id": 577}, "organization": {"id": 686}, "project": {"owner": {"id": 780}, "assignee": {"id": 808}, "organization": {"id": 948}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 344, "owner": {"id": 433}, "assignee": {"id": 557}, "organization": {"id": 127}, "project": {"owner": {"id": 710}, "assignee": {"id": 889}, "organization": {"id": 945}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 381, "owner": {"id": 481}, "assignee": {"id": 564}, "organization": {"id": 621}, "project": {"owner": {"id": 741}, "assignee": {"id": 838}, "organization": {"id": 913}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 418}, "assignee": {"id": 588}, "organization": {"id": 117}, "project": {"owner": {"id": 718}, "assignee": {"id": 804}, "organization": {"id": 950}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 382, "owner": {"id": 475}, "assignee": {"id": 592}, "organization": {"id": 632}, "project": {"owner": {"id": 743}, "assignee": {"id": 898}, "organization": {"id": 970}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "owner": {"id": 438}, "assignee": {"id": 544}, "organization": {"id": 173}, "project": {"owner": {"id": 715}, "assignee": {"id": 886}, "organization": {"id": 971}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "owner": {"id": 496}, "assignee": {"id": 572}, "organization": {"id": 684}, "project": {"owner": {"id": 782}, "assignee": {"id": 865}, "organization": {"id": 910}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 437}, "assignee": {"id": 576}, "organization": {"id": 131}, "project": {"owner": {"id": 725}, "assignee": {"id": 813}, "organization": {"id": 938}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "owner": {"id": 443}, "assignee": {"id": 512}, "organization": {"id": 625}, "project": {"owner": {"id": 727}, "assignee": {"id": 866}, "organization": {"id": 955}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 488}, "assignee": {"id": 537}, "organization": {"id": 101}, "project": {"owner": {"id": 710}, "assignee": {"id": 855}, "organization": {"id": 912}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 334, "owner": {"id": 430}, "assignee": {"id": 528}, "organization": {"id": 657}, "project": {"owner": {"id": 787}, "assignee": {"id": 802}, "organization": {"id": 961}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 330, "owner": {"id": 448}, "assignee": {"id": 560}, "organization": {"id": 161}, "project": {"owner": {"id": 716}, "assignee": {"id": 863}, "organization": {"id": 989}}}} -} - -test_scope_EXPORT_BACKUP_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:backup", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 267}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 477}, "assignee": {"id": 596}, "organization": {"id": 647}, "project": {"owner": {"id": 730}, "assignee": {"id": 809}, "organization": {"id": 922}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": null}, "resource": {"id": 333, "owner": {"id": 450}, "assignee": {"id": 513}, "organization": {"id": 655}, "project": {"owner": {"id": 29}, "assignee": {"id": 837}, "organization": {"id": 990}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": null}, "resource": {"id": 379, "owner": {"id": 474}, "assignee": {"id": 513}, "organization": {"id": 677}, "project": {"owner": {"id": 52}, "assignee": {"id": 899}, "organization": {"id": 959}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": null}, "resource": {"id": 390, "owner": {"id": 419}, "assignee": {"id": 566}, "organization": {"id": 642}, "project": {"owner": {"id": 35}, "assignee": {"id": 888}, "organization": {"id": 980}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": null}, "resource": {"id": 385, "owner": {"id": 482}, "assignee": {"id": 500}, "organization": {"id": 674}, "project": {"owner": {"id": 83}, "assignee": {"id": 850}, "organization": {"id": 990}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": null}, "resource": {"id": 324, "owner": {"id": 488}, "assignee": {"id": 579}, "organization": {"id": 603}, "project": {"owner": {"id": 44}, "assignee": {"id": 878}, "organization": {"id": 963}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": null}, "resource": {"id": 324, "owner": {"id": 426}, "assignee": {"id": 536}, "organization": {"id": 691}, "project": {"owner": {"id": 787}, "assignee": {"id": 96}, "organization": {"id": 929}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": null}, "resource": {"id": 308, "owner": {"id": 477}, "assignee": {"id": 583}, "organization": {"id": 687}, "project": {"owner": {"id": 724}, "assignee": {"id": 99}, "organization": {"id": 937}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": null}, "resource": {"id": 323, "owner": {"id": 456}, "assignee": {"id": 549}, "organization": {"id": 640}, "project": {"owner": {"id": 727}, "assignee": {"id": 69}, "organization": {"id": 937}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": null}, "resource": {"id": 378, "owner": {"id": 478}, "assignee": {"id": 506}, "organization": {"id": 617}, "project": {"owner": {"id": 744}, "assignee": {"id": 95}, "organization": {"id": 932}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": null}, "resource": {"id": 322, "owner": {"id": 415}, "assignee": {"id": 521}, "organization": {"id": 662}, "project": {"owner": {"id": 736}, "assignee": {"id": 12}, "organization": {"id": 920}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": null}, "resource": {"id": 362, "owner": {"id": 46}, "assignee": {"id": 500}, "organization": {"id": 641}, "project": {"owner": {"id": 715}, "assignee": {"id": 871}, "organization": {"id": 952}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": null}, "resource": {"id": 381, "owner": {"id": 42}, "assignee": {"id": 503}, "organization": {"id": 681}, "project": {"owner": {"id": 778}, "assignee": {"id": 820}, "organization": {"id": 923}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": null}, "resource": {"id": 375, "owner": {"id": 76}, "assignee": {"id": 528}, "organization": {"id": 644}, "project": {"owner": {"id": 797}, "assignee": {"id": 882}, "organization": {"id": 982}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": null}, "resource": {"id": 346, "owner": {"id": 33}, "assignee": {"id": 562}, "organization": {"id": 646}, "project": {"owner": {"id": 799}, "assignee": {"id": 866}, "organization": {"id": 926}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": null}, "resource": {"id": 397, "owner": {"id": 26}, "assignee": {"id": 512}, "organization": {"id": 621}, "project": {"owner": {"id": 769}, "assignee": {"id": 833}, "organization": {"id": 971}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": null}, "resource": {"id": 390, "owner": {"id": 433}, "assignee": {"id": 81}, "organization": {"id": 633}, "project": {"owner": {"id": 724}, "assignee": {"id": 871}, "organization": {"id": 944}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": null}, "resource": {"id": 377, "owner": {"id": 453}, "assignee": {"id": 97}, "organization": {"id": 631}, "project": {"owner": {"id": 795}, "assignee": {"id": 865}, "organization": {"id": 962}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": null}, "resource": {"id": 399, "owner": {"id": 483}, "assignee": {"id": 63}, "organization": {"id": 680}, "project": {"owner": {"id": 712}, "assignee": {"id": 830}, "organization": {"id": 963}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": null}, "resource": {"id": 384, "owner": {"id": 448}, "assignee": {"id": 43}, "organization": {"id": 636}, "project": {"owner": {"id": 792}, "assignee": {"id": 881}, "organization": {"id": 981}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": null}, "resource": {"id": 329, "owner": {"id": 472}, "assignee": {"id": 41}, "organization": {"id": 675}, "project": {"owner": {"id": 700}, "assignee": {"id": 833}, "organization": {"id": 949}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": null}, "resource": {"id": 356, "owner": {"id": 494}, "assignee": {"id": 515}, "organization": {"id": 646}, "project": {"owner": {"id": 732}, "assignee": {"id": 819}, "organization": {"id": 920}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": null}, "resource": {"id": 328, "owner": {"id": 420}, "assignee": {"id": 511}, "organization": {"id": 667}, "project": {"owner": {"id": 777}, "assignee": {"id": 835}, "organization": {"id": 998}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": null}, "resource": {"id": 372, "owner": {"id": 486}, "assignee": {"id": 527}, "organization": {"id": 623}, "project": {"owner": {"id": 737}, "assignee": {"id": 818}, "organization": {"id": 935}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": null}, "resource": {"id": 383, "owner": {"id": 479}, "assignee": {"id": 546}, "organization": {"id": 622}, "project": {"owner": {"id": 704}, "assignee": {"id": 856}, "organization": {"id": 949}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": null}, "resource": {"id": 370, "owner": {"id": 434}, "assignee": {"id": 557}, "organization": {"id": 681}, "project": {"owner": {"id": 711}, "assignee": {"id": 895}, "organization": {"id": 988}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 322, "owner": {"id": 413}, "assignee": {"id": 522}, "organization": {"id": 152}, "project": {"owner": {"id": 24}, "assignee": {"id": 868}, "organization": {"id": 920}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 360, "owner": {"id": 417}, "assignee": {"id": 542}, "organization": {"id": 614}, "project": {"owner": {"id": 84}, "assignee": {"id": 817}, "organization": {"id": 976}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 426}, "assignee": {"id": 596}, "organization": {"id": 119}, "project": {"owner": {"id": 48}, "assignee": {"id": 806}, "organization": {"id": 919}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "owner": {"id": 403}, "assignee": {"id": 546}, "organization": {"id": 604}, "project": {"owner": {"id": 37}, "assignee": {"id": 858}, "organization": {"id": 986}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "owner": {"id": 486}, "assignee": {"id": 544}, "organization": {"id": 136}, "project": {"owner": {"id": 41}, "assignee": {"id": 873}, "organization": {"id": 920}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 343, "owner": {"id": 496}, "assignee": {"id": 590}, "organization": {"id": 686}, "project": {"owner": {"id": 28}, "assignee": {"id": 863}, "organization": {"id": 948}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 377, "owner": {"id": 411}, "assignee": {"id": 538}, "organization": {"id": 149}, "project": {"owner": {"id": 26}, "assignee": {"id": 876}, "organization": {"id": 906}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 328, "owner": {"id": 445}, "assignee": {"id": 595}, "organization": {"id": 636}, "project": {"owner": {"id": 20}, "assignee": {"id": 826}, "organization": {"id": 956}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 354, "owner": {"id": 457}, "assignee": {"id": 549}, "organization": {"id": 161}, "project": {"owner": {"id": 89}, "assignee": {"id": 821}, "organization": {"id": 952}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 309, "owner": {"id": 463}, "assignee": {"id": 538}, "organization": {"id": 682}, "project": {"owner": {"id": 35}, "assignee": {"id": 875}, "organization": {"id": 901}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 421}, "assignee": {"id": 596}, "organization": {"id": 188}, "project": {"owner": {"id": 21}, "assignee": {"id": 892}, "organization": {"id": 996}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 476}, "assignee": {"id": 554}, "organization": {"id": 633}, "project": {"owner": {"id": 77}, "assignee": {"id": 846}, "organization": {"id": 936}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "owner": {"id": 448}, "assignee": {"id": 534}, "organization": {"id": 150}, "project": {"owner": {"id": 83}, "assignee": {"id": 810}, "organization": {"id": 979}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "owner": {"id": 482}, "assignee": {"id": 524}, "organization": {"id": 637}, "project": {"owner": {"id": 62}, "assignee": {"id": 865}, "organization": {"id": 979}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 454}, "assignee": {"id": 505}, "organization": {"id": 172}, "project": {"owner": {"id": 30}, "assignee": {"id": 848}, "organization": {"id": 943}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 423}, "assignee": {"id": 511}, "organization": {"id": 612}, "project": {"owner": {"id": 93}, "assignee": {"id": 894}, "organization": {"id": 981}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 423}, "assignee": {"id": 532}, "organization": {"id": 194}, "project": {"owner": {"id": 86}, "assignee": {"id": 844}, "organization": {"id": 902}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 327, "owner": {"id": 481}, "assignee": {"id": 559}, "organization": {"id": 678}, "project": {"owner": {"id": 53}, "assignee": {"id": 890}, "organization": {"id": 967}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 465}, "assignee": {"id": 530}, "organization": {"id": 145}, "project": {"owner": {"id": 47}, "assignee": {"id": 891}, "organization": {"id": 995}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 382, "owner": {"id": 428}, "assignee": {"id": 554}, "organization": {"id": 633}, "project": {"owner": {"id": 71}, "assignee": {"id": 833}, "organization": {"id": 981}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 397, "owner": {"id": 478}, "assignee": {"id": 557}, "organization": {"id": 161}, "project": {"owner": {"id": 91}, "assignee": {"id": 898}, "organization": {"id": 997}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 317, "owner": {"id": 444}, "assignee": {"id": 593}, "organization": {"id": 637}, "project": {"owner": {"id": 82}, "assignee": {"id": 880}, "organization": {"id": 974}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "owner": {"id": 438}, "assignee": {"id": 527}, "organization": {"id": 151}, "project": {"owner": {"id": 41}, "assignee": {"id": 821}, "organization": {"id": 961}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "owner": {"id": 474}, "assignee": {"id": 563}, "organization": {"id": 686}, "project": {"owner": {"id": 88}, "assignee": {"id": 841}, "organization": {"id": 907}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "owner": {"id": 455}, "assignee": {"id": 561}, "organization": {"id": 197}, "project": {"owner": {"id": 7}, "assignee": {"id": 840}, "organization": {"id": 929}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 442}, "assignee": {"id": 567}, "organization": {"id": 600}, "project": {"owner": {"id": 66}, "assignee": {"id": 851}, "organization": {"id": 956}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 433}, "assignee": {"id": 547}, "organization": {"id": 120}, "project": {"owner": {"id": 86}, "assignee": {"id": 877}, "organization": {"id": 928}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 461}, "assignee": {"id": 509}, "organization": {"id": 682}, "project": {"owner": {"id": 78}, "assignee": {"id": 882}, "organization": {"id": 972}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 443}, "assignee": {"id": 521}, "organization": {"id": 192}, "project": {"owner": {"id": 1}, "assignee": {"id": 813}, "organization": {"id": 902}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 393, "owner": {"id": 479}, "assignee": {"id": 547}, "organization": {"id": 678}, "project": {"owner": {"id": 40}, "assignee": {"id": 849}, "organization": {"id": 924}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 371, "owner": {"id": 462}, "assignee": {"id": 544}, "organization": {"id": 105}, "project": {"owner": {"id": 23}, "assignee": {"id": 846}, "organization": {"id": 926}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 431}, "assignee": {"id": 548}, "organization": {"id": 609}, "project": {"owner": {"id": 2}, "assignee": {"id": 887}, "organization": {"id": 980}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "owner": {"id": 452}, "assignee": {"id": 535}, "organization": {"id": 172}, "project": {"owner": {"id": 90}, "assignee": {"id": 861}, "organization": {"id": 920}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "owner": {"id": 409}, "assignee": {"id": 584}, "organization": {"id": 607}, "project": {"owner": {"id": 41}, "assignee": {"id": 854}, "organization": {"id": 963}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 472}, "assignee": {"id": 599}, "organization": {"id": 198}, "project": {"owner": {"id": 93}, "assignee": {"id": 819}, "organization": {"id": 990}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 467}, "assignee": {"id": 575}, "organization": {"id": 634}, "project": {"owner": {"id": 58}, "assignee": {"id": 809}, "organization": {"id": 911}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 304, "owner": {"id": 496}, "assignee": {"id": 531}, "organization": {"id": 112}, "project": {"owner": {"id": 58}, "assignee": {"id": 803}, "organization": {"id": 979}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 333, "owner": {"id": 452}, "assignee": {"id": 558}, "organization": {"id": 675}, "project": {"owner": {"id": 60}, "assignee": {"id": 870}, "organization": {"id": 959}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 360, "owner": {"id": 427}, "assignee": {"id": 581}, "organization": {"id": 144}, "project": {"owner": {"id": 57}, "assignee": {"id": 873}, "organization": {"id": 918}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 321, "owner": {"id": 462}, "assignee": {"id": 539}, "organization": {"id": 652}, "project": {"owner": {"id": 2}, "assignee": {"id": 810}, "organization": {"id": 905}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 377, "owner": {"id": 483}, "assignee": {"id": 556}, "organization": {"id": 188}, "project": {"owner": {"id": 76}, "assignee": {"id": 806}, "organization": {"id": 900}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 307, "owner": {"id": 408}, "assignee": {"id": 565}, "organization": {"id": 627}, "project": {"owner": {"id": 86}, "assignee": {"id": 847}, "organization": {"id": 980}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 495}, "assignee": {"id": 509}, "organization": {"id": 167}, "project": {"owner": {"id": 0}, "assignee": {"id": 848}, "organization": {"id": 912}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "owner": {"id": 458}, "assignee": {"id": 505}, "organization": {"id": 600}, "project": {"owner": {"id": 12}, "assignee": {"id": 807}, "organization": {"id": 902}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "owner": {"id": 417}, "assignee": {"id": 516}, "organization": {"id": 171}, "project": {"owner": {"id": 50}, "assignee": {"id": 821}, "organization": {"id": 989}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "owner": {"id": 405}, "assignee": {"id": 540}, "organization": {"id": 612}, "project": {"owner": {"id": 9}, "assignee": {"id": 804}, "organization": {"id": 915}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 493}, "assignee": {"id": 548}, "organization": {"id": 114}, "project": {"owner": {"id": 75}, "assignee": {"id": 834}, "organization": {"id": 992}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 348, "owner": {"id": 459}, "assignee": {"id": 555}, "organization": {"id": 678}, "project": {"owner": {"id": 5}, "assignee": {"id": 861}, "organization": {"id": 908}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 378, "owner": {"id": 439}, "assignee": {"id": 510}, "organization": {"id": 171}, "project": {"owner": {"id": 22}, "assignee": {"id": 854}, "organization": {"id": 929}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 395, "owner": {"id": 419}, "assignee": {"id": 546}, "organization": {"id": 614}, "project": {"owner": {"id": 98}, "assignee": {"id": 848}, "organization": {"id": 932}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 464}, "assignee": {"id": 580}, "organization": {"id": 113}, "project": {"owner": {"id": 715}, "assignee": {"id": 18}, "organization": {"id": 957}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 362, "owner": {"id": 402}, "assignee": {"id": 519}, "organization": {"id": 641}, "project": {"owner": {"id": 732}, "assignee": {"id": 49}, "organization": {"id": 976}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "owner": {"id": 420}, "assignee": {"id": 590}, "organization": {"id": 166}, "project": {"owner": {"id": 794}, "assignee": {"id": 10}, "organization": {"id": 991}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "owner": {"id": 441}, "assignee": {"id": 533}, "organization": {"id": 681}, "project": {"owner": {"id": 767}, "assignee": {"id": 89}, "organization": {"id": 942}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "owner": {"id": 442}, "assignee": {"id": 500}, "organization": {"id": 198}, "project": {"owner": {"id": 737}, "assignee": {"id": 83}, "organization": {"id": 932}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "owner": {"id": 427}, "assignee": {"id": 531}, "organization": {"id": 647}, "project": {"owner": {"id": 722}, "assignee": {"id": 84}, "organization": {"id": 914}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 341, "owner": {"id": 436}, "assignee": {"id": 564}, "organization": {"id": 119}, "project": {"owner": {"id": 763}, "assignee": {"id": 24}, "organization": {"id": 987}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 319, "owner": {"id": 402}, "assignee": {"id": 551}, "organization": {"id": 611}, "project": {"owner": {"id": 788}, "assignee": {"id": 81}, "organization": {"id": 978}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 330, "owner": {"id": 413}, "assignee": {"id": 599}, "organization": {"id": 159}, "project": {"owner": {"id": 753}, "assignee": {"id": 93}, "organization": {"id": 954}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 466}, "assignee": {"id": 521}, "organization": {"id": 622}, "project": {"owner": {"id": 765}, "assignee": {"id": 70}, "organization": {"id": 962}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 324, "owner": {"id": 478}, "assignee": {"id": 507}, "organization": {"id": 104}, "project": {"owner": {"id": 738}, "assignee": {"id": 29}, "organization": {"id": 955}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 374, "owner": {"id": 449}, "assignee": {"id": 553}, "organization": {"id": 650}, "project": {"owner": {"id": 757}, "assignee": {"id": 22}, "organization": {"id": 955}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "owner": {"id": 480}, "assignee": {"id": 520}, "organization": {"id": 178}, "project": {"owner": {"id": 777}, "assignee": {"id": 39}, "organization": {"id": 983}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "owner": {"id": 481}, "assignee": {"id": 505}, "organization": {"id": 632}, "project": {"owner": {"id": 791}, "assignee": {"id": 53}, "organization": {"id": 915}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "owner": {"id": 432}, "assignee": {"id": 541}, "organization": {"id": 152}, "project": {"owner": {"id": 764}, "assignee": {"id": 38}, "organization": {"id": 993}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "owner": {"id": 459}, "assignee": {"id": 591}, "organization": {"id": 615}, "project": {"owner": {"id": 731}, "assignee": {"id": 57}, "organization": {"id": 981}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 325, "owner": {"id": 432}, "assignee": {"id": 521}, "organization": {"id": 181}, "project": {"owner": {"id": 764}, "assignee": {"id": 27}, "organization": {"id": 974}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 366, "owner": {"id": 459}, "assignee": {"id": 598}, "organization": {"id": 627}, "project": {"owner": {"id": 718}, "assignee": {"id": 59}, "organization": {"id": 922}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 354, "owner": {"id": 441}, "assignee": {"id": 532}, "organization": {"id": 116}, "project": {"owner": {"id": 793}, "assignee": {"id": 37}, "organization": {"id": 980}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 498}, "assignee": {"id": 576}, "organization": {"id": 698}, "project": {"owner": {"id": 737}, "assignee": {"id": 39}, "organization": {"id": 988}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 335, "owner": {"id": 482}, "assignee": {"id": 507}, "organization": {"id": 119}, "project": {"owner": {"id": 793}, "assignee": {"id": 3}, "organization": {"id": 992}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 312, "owner": {"id": 438}, "assignee": {"id": 529}, "organization": {"id": 649}, "project": {"owner": {"id": 753}, "assignee": {"id": 72}, "organization": {"id": 996}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "owner": {"id": 470}, "assignee": {"id": 570}, "organization": {"id": 142}, "project": {"owner": {"id": 727}, "assignee": {"id": 39}, "organization": {"id": 931}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "owner": {"id": 427}, "assignee": {"id": 544}, "organization": {"id": 649}, "project": {"owner": {"id": 753}, "assignee": {"id": 16}, "organization": {"id": 920}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "owner": {"id": 476}, "assignee": {"id": 593}, "organization": {"id": 185}, "project": {"owner": {"id": 753}, "assignee": {"id": 61}, "organization": {"id": 998}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 477}, "assignee": {"id": 581}, "organization": {"id": 619}, "project": {"owner": {"id": 785}, "assignee": {"id": 89}, "organization": {"id": 928}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 300, "owner": {"id": 414}, "assignee": {"id": 525}, "organization": {"id": 109}, "project": {"owner": {"id": 781}, "assignee": {"id": 50}, "organization": {"id": 981}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 309, "owner": {"id": 446}, "assignee": {"id": 586}, "organization": {"id": 658}, "project": {"owner": {"id": 761}, "assignee": {"id": 39}, "organization": {"id": 912}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 445}, "assignee": {"id": 595}, "organization": {"id": 119}, "project": {"owner": {"id": 767}, "assignee": {"id": 48}, "organization": {"id": 981}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 308, "owner": {"id": 445}, "assignee": {"id": 531}, "organization": {"id": 678}, "project": {"owner": {"id": 734}, "assignee": {"id": 9}, "organization": {"id": 970}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 369, "owner": {"id": 459}, "assignee": {"id": 592}, "organization": {"id": 108}, "project": {"owner": {"id": 743}, "assignee": {"id": 99}, "organization": {"id": 973}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 325, "owner": {"id": 476}, "assignee": {"id": 557}, "organization": {"id": 681}, "project": {"owner": {"id": 746}, "assignee": {"id": 56}, "organization": {"id": 947}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "owner": {"id": 497}, "assignee": {"id": 517}, "organization": {"id": 177}, "project": {"owner": {"id": 747}, "assignee": {"id": 83}, "organization": {"id": 904}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 407}, "assignee": {"id": 503}, "organization": {"id": 682}, "project": {"owner": {"id": 774}, "assignee": {"id": 28}, "organization": {"id": 937}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "owner": {"id": 458}, "assignee": {"id": 562}, "organization": {"id": 148}, "project": {"owner": {"id": 717}, "assignee": {"id": 86}, "organization": {"id": 901}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "owner": {"id": 472}, "assignee": {"id": 537}, "organization": {"id": 618}, "project": {"owner": {"id": 757}, "assignee": {"id": 80}, "organization": {"id": 952}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 301, "owner": {"id": 481}, "assignee": {"id": 567}, "organization": {"id": 156}, "project": {"owner": {"id": 748}, "assignee": {"id": 50}, "organization": {"id": 921}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 394, "owner": {"id": 428}, "assignee": {"id": 588}, "organization": {"id": 682}, "project": {"owner": {"id": 712}, "assignee": {"id": 31}, "organization": {"id": 939}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 458}, "assignee": {"id": 543}, "organization": {"id": 135}, "project": {"owner": {"id": 776}, "assignee": {"id": 10}, "organization": {"id": 960}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 334, "owner": {"id": 423}, "assignee": {"id": 555}, "organization": {"id": 692}, "project": {"owner": {"id": 737}, "assignee": {"id": 28}, "organization": {"id": 975}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 432}, "assignee": {"id": 593}, "organization": {"id": 193}, "project": {"owner": {"id": 714}, "assignee": {"id": 64}, "organization": {"id": 925}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 393, "owner": {"id": 464}, "assignee": {"id": 595}, "organization": {"id": 608}, "project": {"owner": {"id": 752}, "assignee": {"id": 90}, "organization": {"id": 938}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "owner": {"id": 469}, "assignee": {"id": 592}, "organization": {"id": 168}, "project": {"owner": {"id": 740}, "assignee": {"id": 45}, "organization": {"id": 906}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "owner": {"id": 460}, "assignee": {"id": 533}, "organization": {"id": 631}, "project": {"owner": {"id": 771}, "assignee": {"id": 62}, "organization": {"id": 937}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "owner": {"id": 475}, "assignee": {"id": 561}, "organization": {"id": 158}, "project": {"owner": {"id": 783}, "assignee": {"id": 77}, "organization": {"id": 942}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 371, "owner": {"id": 475}, "assignee": {"id": 569}, "organization": {"id": 622}, "project": {"owner": {"id": 723}, "assignee": {"id": 44}, "organization": {"id": 943}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 303, "owner": {"id": 493}, "assignee": {"id": 583}, "organization": {"id": 114}, "project": {"owner": {"id": 719}, "assignee": {"id": 1}, "organization": {"id": 902}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 381, "owner": {"id": 475}, "assignee": {"id": 578}, "organization": {"id": 651}, "project": {"owner": {"id": 715}, "assignee": {"id": 60}, "organization": {"id": 997}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"id": 341, "owner": {"id": 435}, "assignee": {"id": 547}, "organization": {"id": 192}, "project": {"owner": {"id": 772}, "assignee": {"id": 4}, "organization": {"id": 983}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 356, "owner": {"id": 490}, "assignee": {"id": 579}, "organization": {"id": 669}, "project": {"owner": {"id": 748}, "assignee": {"id": 95}, "organization": {"id": 916}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 322, "owner": {"id": 1}, "assignee": {"id": 530}, "organization": {"id": 104}, "project": {"owner": {"id": 743}, "assignee": {"id": 830}, "organization": {"id": 993}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 25}, "assignee": {"id": 516}, "organization": {"id": 683}, "project": {"owner": {"id": 744}, "assignee": {"id": 894}, "organization": {"id": 944}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "owner": {"id": 58}, "assignee": {"id": 581}, "organization": {"id": 162}, "project": {"owner": {"id": 751}, "assignee": {"id": 888}, "organization": {"id": 926}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 46}, "assignee": {"id": 513}, "organization": {"id": 622}, "project": {"owner": {"id": 745}, "assignee": {"id": 820}, "organization": {"id": 939}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 8}, "assignee": {"id": 515}, "organization": {"id": 156}, "project": {"owner": {"id": 712}, "assignee": {"id": 894}, "organization": {"id": 914}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "owner": {"id": 25}, "assignee": {"id": 530}, "organization": {"id": 685}, "project": {"owner": {"id": 726}, "assignee": {"id": 846}, "organization": {"id": 971}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 337, "owner": {"id": 43}, "assignee": {"id": 580}, "organization": {"id": 154}, "project": {"owner": {"id": 715}, "assignee": {"id": 843}, "organization": {"id": 911}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 339, "owner": {"id": 8}, "assignee": {"id": 528}, "organization": {"id": 670}, "project": {"owner": {"id": 763}, "assignee": {"id": 870}, "organization": {"id": 960}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 329, "owner": {"id": 85}, "assignee": {"id": 587}, "organization": {"id": 165}, "project": {"owner": {"id": 727}, "assignee": {"id": 844}, "organization": {"id": 989}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 374, "owner": {"id": 99}, "assignee": {"id": 507}, "organization": {"id": 644}, "project": {"owner": {"id": 735}, "assignee": {"id": 868}, "organization": {"id": 998}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 35}, "assignee": {"id": 592}, "organization": {"id": 125}, "project": {"owner": {"id": 727}, "assignee": {"id": 878}, "organization": {"id": 954}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 399, "owner": {"id": 0}, "assignee": {"id": 515}, "organization": {"id": 655}, "project": {"owner": {"id": 710}, "assignee": {"id": 898}, "organization": {"id": 919}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 92}, "assignee": {"id": 570}, "organization": {"id": 190}, "project": {"owner": {"id": 784}, "assignee": {"id": 868}, "organization": {"id": 984}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "owner": {"id": 42}, "assignee": {"id": 519}, "organization": {"id": 685}, "project": {"owner": {"id": 788}, "assignee": {"id": 860}, "organization": {"id": 961}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "owner": {"id": 75}, "assignee": {"id": 584}, "organization": {"id": 156}, "project": {"owner": {"id": 717}, "assignee": {"id": 806}, "organization": {"id": 988}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 345, "owner": {"id": 87}, "assignee": {"id": 549}, "organization": {"id": 648}, "project": {"owner": {"id": 778}, "assignee": {"id": 875}, "organization": {"id": 913}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 72}, "assignee": {"id": 540}, "organization": {"id": 135}, "project": {"owner": {"id": 750}, "assignee": {"id": 866}, "organization": {"id": 942}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 310, "owner": {"id": 98}, "assignee": {"id": 536}, "organization": {"id": 673}, "project": {"owner": {"id": 730}, "assignee": {"id": 826}, "organization": {"id": 912}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 340, "owner": {"id": 39}, "assignee": {"id": 596}, "organization": {"id": 103}, "project": {"owner": {"id": 790}, "assignee": {"id": 869}, "organization": {"id": 940}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 91}, "assignee": {"id": 516}, "organization": {"id": 612}, "project": {"owner": {"id": 766}, "assignee": {"id": 805}, "organization": {"id": 950}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 29}, "assignee": {"id": 531}, "organization": {"id": 187}, "project": {"owner": {"id": 752}, "assignee": {"id": 831}, "organization": {"id": 921}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 84}, "assignee": {"id": 570}, "organization": {"id": 641}, "project": {"owner": {"id": 721}, "assignee": {"id": 818}, "organization": {"id": 976}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "owner": {"id": 94}, "assignee": {"id": 511}, "organization": {"id": 130}, "project": {"owner": {"id": 788}, "assignee": {"id": 807}, "organization": {"id": 956}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "owner": {"id": 37}, "assignee": {"id": 510}, "organization": {"id": 682}, "project": {"owner": {"id": 785}, "assignee": {"id": 837}, "organization": {"id": 965}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 37}, "assignee": {"id": 525}, "organization": {"id": 143}, "project": {"owner": {"id": 700}, "assignee": {"id": 859}, "organization": {"id": 982}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "owner": {"id": 82}, "assignee": {"id": 594}, "organization": {"id": 662}, "project": {"owner": {"id": 760}, "assignee": {"id": 837}, "organization": {"id": 915}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 395, "owner": {"id": 31}, "assignee": {"id": 512}, "organization": {"id": 125}, "project": {"owner": {"id": 726}, "assignee": {"id": 812}, "organization": {"id": 951}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 322, "owner": {"id": 5}, "assignee": {"id": 528}, "organization": {"id": 631}, "project": {"owner": {"id": 790}, "assignee": {"id": 855}, "organization": {"id": 925}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 394, "owner": {"id": 7}, "assignee": {"id": 559}, "organization": {"id": 158}, "project": {"owner": {"id": 764}, "assignee": {"id": 848}, "organization": {"id": 951}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 323, "owner": {"id": 54}, "assignee": {"id": 502}, "organization": {"id": 658}, "project": {"owner": {"id": 792}, "assignee": {"id": 848}, "organization": {"id": 954}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 91}, "assignee": {"id": 586}, "organization": {"id": 118}, "project": {"owner": {"id": 702}, "assignee": {"id": 865}, "organization": {"id": 946}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 310, "owner": {"id": 44}, "assignee": {"id": 553}, "organization": {"id": 665}, "project": {"owner": {"id": 778}, "assignee": {"id": 852}, "organization": {"id": 947}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "owner": {"id": 83}, "assignee": {"id": 597}, "organization": {"id": 190}, "project": {"owner": {"id": 763}, "assignee": {"id": 834}, "organization": {"id": 913}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "owner": {"id": 33}, "assignee": {"id": 586}, "organization": {"id": 634}, "project": {"owner": {"id": 701}, "assignee": {"id": 886}, "organization": {"id": 996}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "owner": {"id": 98}, "assignee": {"id": 536}, "organization": {"id": 149}, "project": {"owner": {"id": 726}, "assignee": {"id": 840}, "organization": {"id": 974}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "owner": {"id": 0}, "assignee": {"id": 508}, "organization": {"id": 670}, "project": {"owner": {"id": 784}, "assignee": {"id": 887}, "organization": {"id": 919}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 127, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 75}, "assignee": {"id": 580}, "organization": {"id": 127}, "project": {"owner": {"id": 767}, "assignee": {"id": 870}, "organization": {"id": 915}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 72}, "assignee": {"id": 580}, "organization": {"id": 682}, "project": {"owner": {"id": 718}, "assignee": {"id": 861}, "organization": {"id": 910}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 61}, "assignee": {"id": 528}, "organization": {"id": 177}, "project": {"owner": {"id": 713}, "assignee": {"id": 878}, "organization": {"id": 968}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 312, "owner": {"id": 59}, "assignee": {"id": 542}, "organization": {"id": 600}, "project": {"owner": {"id": 712}, "assignee": {"id": 867}, "organization": {"id": 909}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"id": 358, "owner": {"id": 66}, "assignee": {"id": 595}, "organization": {"id": 155}, "project": {"owner": {"id": 713}, "assignee": {"id": 865}, "organization": {"id": 904}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 356, "owner": {"id": 16}, "assignee": {"id": 540}, "organization": {"id": 695}, "project": {"owner": {"id": 716}, "assignee": {"id": 816}, "organization": {"id": 952}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 21}, "assignee": {"id": 516}, "organization": {"id": 165}, "project": {"owner": {"id": 766}, "assignee": {"id": 878}, "organization": {"id": 928}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "owner": {"id": 25}, "assignee": {"id": 543}, "organization": {"id": 695}, "project": {"owner": {"id": 710}, "assignee": {"id": 862}, "organization": {"id": 962}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "owner": {"id": 14}, "assignee": {"id": 598}, "organization": {"id": 130}, "project": {"owner": {"id": 737}, "assignee": {"id": 872}, "organization": {"id": 931}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "owner": {"id": 44}, "assignee": {"id": 595}, "organization": {"id": 662}, "project": {"owner": {"id": 786}, "assignee": {"id": 854}, "organization": {"id": 923}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 66}, "assignee": {"id": 554}, "organization": {"id": 116}, "project": {"owner": {"id": 747}, "assignee": {"id": 808}, "organization": {"id": 911}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 355, "owner": {"id": 49}, "assignee": {"id": 554}, "organization": {"id": 680}, "project": {"owner": {"id": 799}, "assignee": {"id": 843}, "organization": {"id": 914}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 32}, "assignee": {"id": 521}, "organization": {"id": 168}, "project": {"owner": {"id": 712}, "assignee": {"id": 898}, "organization": {"id": 942}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 229}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 36}, "assignee": {"id": 522}, "organization": {"id": 668}, "project": {"owner": {"id": 711}, "assignee": {"id": 894}, "organization": {"id": 924}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 403}, "assignee": {"id": 91}, "organization": {"id": 160}, "project": {"owner": {"id": 736}, "assignee": {"id": 851}, "organization": {"id": 901}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 375, "owner": {"id": 453}, "assignee": {"id": 38}, "organization": {"id": 664}, "project": {"owner": {"id": 756}, "assignee": {"id": 841}, "organization": {"id": 957}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "owner": {"id": 454}, "assignee": {"id": 68}, "organization": {"id": 118}, "project": {"owner": {"id": 738}, "assignee": {"id": 890}, "organization": {"id": 932}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "owner": {"id": 462}, "assignee": {"id": 13}, "organization": {"id": 678}, "project": {"owner": {"id": 771}, "assignee": {"id": 884}, "organization": {"id": 922}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 441}, "assignee": {"id": 5}, "organization": {"id": 199}, "project": {"owner": {"id": 762}, "assignee": {"id": 860}, "organization": {"id": 935}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 427}, "assignee": {"id": 39}, "organization": {"id": 608}, "project": {"owner": {"id": 743}, "assignee": {"id": 808}, "organization": {"id": 926}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 348, "owner": {"id": 447}, "assignee": {"id": 41}, "organization": {"id": 188}, "project": {"owner": {"id": 790}, "assignee": {"id": 884}, "organization": {"id": 953}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 379, "owner": {"id": 472}, "assignee": {"id": 62}, "organization": {"id": 688}, "project": {"owner": {"id": 795}, "assignee": {"id": 828}, "organization": {"id": 969}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 361, "owner": {"id": 462}, "assignee": {"id": 43}, "organization": {"id": 195}, "project": {"owner": {"id": 739}, "assignee": {"id": 811}, "organization": {"id": 921}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 382, "owner": {"id": 466}, "assignee": {"id": 11}, "organization": {"id": 699}, "project": {"owner": {"id": 781}, "assignee": {"id": 831}, "organization": {"id": 933}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 499}, "assignee": {"id": 79}, "organization": {"id": 157}, "project": {"owner": {"id": 778}, "assignee": {"id": 893}, "organization": {"id": 992}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 348, "owner": {"id": 446}, "assignee": {"id": 5}, "organization": {"id": 697}, "project": {"owner": {"id": 720}, "assignee": {"id": 891}, "organization": {"id": 998}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 406}, "assignee": {"id": 56}, "organization": {"id": 187}, "project": {"owner": {"id": 729}, "assignee": {"id": 827}, "organization": {"id": 948}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 358, "owner": {"id": 432}, "assignee": {"id": 71}, "organization": {"id": 612}, "project": {"owner": {"id": 704}, "assignee": {"id": 894}, "organization": {"id": 987}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "owner": {"id": 460}, "assignee": {"id": 66}, "organization": {"id": 123}, "project": {"owner": {"id": 798}, "assignee": {"id": 897}, "organization": {"id": 914}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 401}, "assignee": {"id": 94}, "organization": {"id": 685}, "project": {"owner": {"id": 735}, "assignee": {"id": 804}, "organization": {"id": 979}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 394, "owner": {"id": 496}, "assignee": {"id": 14}, "organization": {"id": 162}, "project": {"owner": {"id": 761}, "assignee": {"id": 894}, "organization": {"id": 987}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 387, "owner": {"id": 493}, "assignee": {"id": 1}, "organization": {"id": 606}, "project": {"owner": {"id": 727}, "assignee": {"id": 810}, "organization": {"id": 985}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 436}, "assignee": {"id": 34}, "organization": {"id": 160}, "project": {"owner": {"id": 746}, "assignee": {"id": 812}, "organization": {"id": 964}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 365, "owner": {"id": 463}, "assignee": {"id": 70}, "organization": {"id": 682}, "project": {"owner": {"id": 779}, "assignee": {"id": 859}, "organization": {"id": 967}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 464}, "assignee": {"id": 93}, "organization": {"id": 145}, "project": {"owner": {"id": 792}, "assignee": {"id": 862}, "organization": {"id": 979}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 474}, "assignee": {"id": 11}, "organization": {"id": 610}, "project": {"owner": {"id": 712}, "assignee": {"id": 837}, "organization": {"id": 976}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "owner": {"id": 453}, "assignee": {"id": 75}, "organization": {"id": 190}, "project": {"owner": {"id": 778}, "assignee": {"id": 806}, "organization": {"id": 948}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "owner": {"id": 481}, "assignee": {"id": 68}, "organization": {"id": 673}, "project": {"owner": {"id": 745}, "assignee": {"id": 812}, "organization": {"id": 902}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "owner": {"id": 494}, "assignee": {"id": 66}, "organization": {"id": 150}, "project": {"owner": {"id": 797}, "assignee": {"id": 863}, "organization": {"id": 985}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "owner": {"id": 454}, "assignee": {"id": 38}, "organization": {"id": 684}, "project": {"owner": {"id": 777}, "assignee": {"id": 873}, "organization": {"id": 967}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 302, "owner": {"id": 429}, "assignee": {"id": 29}, "organization": {"id": 106}, "project": {"owner": {"id": 742}, "assignee": {"id": 807}, "organization": {"id": 982}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 317, "owner": {"id": 433}, "assignee": {"id": 5}, "organization": {"id": 612}, "project": {"owner": {"id": 734}, "assignee": {"id": 896}, "organization": {"id": 921}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 352, "owner": {"id": 447}, "assignee": {"id": 72}, "organization": {"id": 136}, "project": {"owner": {"id": 727}, "assignee": {"id": 843}, "organization": {"id": 922}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 347, "owner": {"id": 460}, "assignee": {"id": 96}, "organization": {"id": 606}, "project": {"owner": {"id": 731}, "assignee": {"id": 891}, "organization": {"id": 980}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 409}, "assignee": {"id": 72}, "organization": {"id": 121}, "project": {"owner": {"id": 734}, "assignee": {"id": 880}, "organization": {"id": 987}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 475}, "assignee": {"id": 26}, "organization": {"id": 606}, "project": {"owner": {"id": 738}, "assignee": {"id": 898}, "organization": {"id": 940}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 456}, "assignee": {"id": 72}, "organization": {"id": 157}, "project": {"owner": {"id": 718}, "assignee": {"id": 888}, "organization": {"id": 996}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "owner": {"id": 448}, "assignee": {"id": 38}, "organization": {"id": 614}, "project": {"owner": {"id": 781}, "assignee": {"id": 825}, "organization": {"id": 942}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "owner": {"id": 496}, "assignee": {"id": 44}, "organization": {"id": 194}, "project": {"owner": {"id": 792}, "assignee": {"id": 829}, "organization": {"id": 915}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "owner": {"id": 465}, "assignee": {"id": 82}, "organization": {"id": 624}, "project": {"owner": {"id": 787}, "assignee": {"id": 838}, "organization": {"id": 971}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 391, "owner": {"id": 446}, "assignee": {"id": 66}, "organization": {"id": 198}, "project": {"owner": {"id": 722}, "assignee": {"id": 806}, "organization": {"id": 904}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 373, "owner": {"id": 405}, "assignee": {"id": 35}, "organization": {"id": 606}, "project": {"owner": {"id": 799}, "assignee": {"id": 803}, "organization": {"id": 922}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 357, "owner": {"id": 404}, "assignee": {"id": 31}, "organization": {"id": 162}, "project": {"owner": {"id": 791}, "assignee": {"id": 832}, "organization": {"id": 923}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 331, "owner": {"id": 427}, "assignee": {"id": 39}, "organization": {"id": 626}, "project": {"owner": {"id": 738}, "assignee": {"id": 881}, "organization": {"id": 919}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"id": 380, "owner": {"id": 456}, "assignee": {"id": 20}, "organization": {"id": 109}, "project": {"owner": {"id": 773}, "assignee": {"id": 861}, "organization": {"id": 950}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 460}, "assignee": {"id": 93}, "organization": {"id": 684}, "project": {"owner": {"id": 793}, "assignee": {"id": 893}, "organization": {"id": 937}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 422}, "assignee": {"id": 63}, "organization": {"id": 134}, "project": {"owner": {"id": 713}, "assignee": {"id": 863}, "organization": {"id": 917}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "owner": {"id": 417}, "assignee": {"id": 98}, "organization": {"id": 690}, "project": {"owner": {"id": 743}, "assignee": {"id": 811}, "organization": {"id": 961}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 462}, "assignee": {"id": 28}, "organization": {"id": 118}, "project": {"owner": {"id": 753}, "assignee": {"id": 830}, "organization": {"id": 910}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 387, "owner": {"id": 407}, "assignee": {"id": 10}, "organization": {"id": 693}, "project": {"owner": {"id": 735}, "assignee": {"id": 875}, "organization": {"id": 949}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 389, "owner": {"id": 482}, "assignee": {"id": 50}, "organization": {"id": 121}, "project": {"owner": {"id": 711}, "assignee": {"id": 878}, "organization": {"id": 950}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 311, "owner": {"id": 435}, "assignee": {"id": 88}, "organization": {"id": 661}, "project": {"owner": {"id": 706}, "assignee": {"id": 854}, "organization": {"id": 940}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 355, "owner": {"id": 499}, "assignee": {"id": 56}, "organization": {"id": 165}, "project": {"owner": {"id": 720}, "assignee": {"id": 898}, "organization": {"id": 927}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 496}, "assignee": {"id": 15}, "organization": {"id": 659}, "project": {"owner": {"id": 712}, "assignee": {"id": 886}, "organization": {"id": 959}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 475}, "assignee": {"id": 573}, "organization": {"id": 163}, "project": {"owner": {"id": 788}, "assignee": {"id": 883}, "organization": {"id": 977}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 392, "owner": {"id": 495}, "assignee": {"id": 561}, "organization": {"id": 600}, "project": {"owner": {"id": 785}, "assignee": {"id": 896}, "organization": {"id": 962}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 421}, "assignee": {"id": 582}, "organization": {"id": 194}, "project": {"owner": {"id": 773}, "assignee": {"id": 854}, "organization": {"id": 999}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "owner": {"id": 443}, "assignee": {"id": 523}, "organization": {"id": 656}, "project": {"owner": {"id": 764}, "assignee": {"id": 837}, "organization": {"id": 925}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "owner": {"id": 477}, "assignee": {"id": 569}, "organization": {"id": 153}, "project": {"owner": {"id": 764}, "assignee": {"id": 881}, "organization": {"id": 996}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "owner": {"id": 443}, "assignee": {"id": 572}, "organization": {"id": 639}, "project": {"owner": {"id": 794}, "assignee": {"id": 876}, "organization": {"id": 911}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 353, "owner": {"id": 469}, "assignee": {"id": 582}, "organization": {"id": 162}, "project": {"owner": {"id": 738}, "assignee": {"id": 876}, "organization": {"id": 983}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 334, "owner": {"id": 477}, "assignee": {"id": 590}, "organization": {"id": 624}, "project": {"owner": {"id": 789}, "assignee": {"id": 822}, "organization": {"id": 900}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 421}, "assignee": {"id": 548}, "organization": {"id": 182}, "project": {"owner": {"id": 751}, "assignee": {"id": 864}, "organization": {"id": 960}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 326, "owner": {"id": 460}, "assignee": {"id": 546}, "organization": {"id": 647}, "project": {"owner": {"id": 794}, "assignee": {"id": 862}, "organization": {"id": 968}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 490}, "assignee": {"id": 588}, "organization": {"id": 118}, "project": {"owner": {"id": 741}, "assignee": {"id": 827}, "organization": {"id": 900}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 395, "owner": {"id": 453}, "assignee": {"id": 536}, "organization": {"id": 626}, "project": {"owner": {"id": 702}, "assignee": {"id": 864}, "organization": {"id": 914}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "owner": {"id": 444}, "assignee": {"id": 558}, "organization": {"id": 120}, "project": {"owner": {"id": 702}, "assignee": {"id": 833}, "organization": {"id": 909}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "owner": {"id": 439}, "assignee": {"id": 596}, "organization": {"id": 630}, "project": {"owner": {"id": 788}, "assignee": {"id": 847}, "organization": {"id": 993}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "owner": {"id": 440}, "assignee": {"id": 547}, "organization": {"id": 112}, "project": {"owner": {"id": 782}, "assignee": {"id": 882}, "organization": {"id": 956}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "owner": {"id": 472}, "assignee": {"id": 519}, "organization": {"id": 684}, "project": {"owner": {"id": 754}, "assignee": {"id": 854}, "organization": {"id": 922}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 456}, "assignee": {"id": 554}, "organization": {"id": 164}, "project": {"owner": {"id": 725}, "assignee": {"id": 871}, "organization": {"id": 919}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 361, "owner": {"id": 408}, "assignee": {"id": 507}, "organization": {"id": 606}, "project": {"owner": {"id": 718}, "assignee": {"id": 832}, "organization": {"id": 940}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 486}, "assignee": {"id": 597}, "organization": {"id": 183}, "project": {"owner": {"id": 734}, "assignee": {"id": 814}, "organization": {"id": 980}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 330, "owner": {"id": 476}, "assignee": {"id": 577}, "organization": {"id": 649}, "project": {"owner": {"id": 778}, "assignee": {"id": 861}, "organization": {"id": 977}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 381, "owner": {"id": 428}, "assignee": {"id": 596}, "organization": {"id": 125}, "project": {"owner": {"id": 798}, "assignee": {"id": 825}, "organization": {"id": 931}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 325, "owner": {"id": 467}, "assignee": {"id": 557}, "organization": {"id": 654}, "project": {"owner": {"id": 770}, "assignee": {"id": 865}, "organization": {"id": 926}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "owner": {"id": 474}, "assignee": {"id": 567}, "organization": {"id": 126}, "project": {"owner": {"id": 744}, "assignee": {"id": 865}, "organization": {"id": 915}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 455}, "assignee": {"id": 568}, "organization": {"id": 613}, "project": {"owner": {"id": 748}, "assignee": {"id": 844}, "organization": {"id": 923}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 404}, "assignee": {"id": 562}, "organization": {"id": 130}, "project": {"owner": {"id": 777}, "assignee": {"id": 890}, "organization": {"id": 980}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 369, "owner": {"id": 462}, "assignee": {"id": 529}, "organization": {"id": 693}, "project": {"owner": {"id": 780}, "assignee": {"id": 846}, "organization": {"id": 917}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 366, "owner": {"id": 403}, "assignee": {"id": 548}, "organization": {"id": 185}, "project": {"owner": {"id": 732}, "assignee": {"id": 876}, "organization": {"id": 951}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 326, "owner": {"id": 437}, "assignee": {"id": 522}, "organization": {"id": 676}, "project": {"owner": {"id": 799}, "assignee": {"id": 878}, "organization": {"id": 992}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 459}, "assignee": {"id": 519}, "organization": {"id": 155}, "project": {"owner": {"id": 719}, "assignee": {"id": 852}, "organization": {"id": 984}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 411}, "assignee": {"id": 507}, "organization": {"id": 657}, "project": {"owner": {"id": 751}, "assignee": {"id": 856}, "organization": {"id": 958}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 368, "owner": {"id": 452}, "assignee": {"id": 556}, "organization": {"id": 161}, "project": {"owner": {"id": 791}, "assignee": {"id": 829}, "organization": {"id": 989}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 368, "owner": {"id": 408}, "assignee": {"id": 577}, "organization": {"id": 605}, "project": {"owner": {"id": 745}, "assignee": {"id": 883}, "organization": {"id": 973}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "owner": {"id": 473}, "assignee": {"id": 572}, "organization": {"id": 188}, "project": {"owner": {"id": 727}, "assignee": {"id": 804}, "organization": {"id": 946}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "owner": {"id": 405}, "assignee": {"id": 585}, "organization": {"id": 654}, "project": {"owner": {"id": 720}, "assignee": {"id": 832}, "organization": {"id": 917}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 390, "owner": {"id": 430}, "assignee": {"id": 530}, "organization": {"id": 163}, "project": {"owner": {"id": 735}, "assignee": {"id": 871}, "organization": {"id": 988}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 444}, "assignee": {"id": 513}, "organization": {"id": 667}, "project": {"owner": {"id": 768}, "assignee": {"id": 835}, "organization": {"id": 999}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 368, "owner": {"id": 452}, "assignee": {"id": 596}, "organization": {"id": 138}, "project": {"owner": {"id": 710}, "assignee": {"id": 827}, "organization": {"id": 918}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 351, "owner": {"id": 430}, "assignee": {"id": 546}, "organization": {"id": 660}, "project": {"owner": {"id": 723}, "assignee": {"id": 833}, "organization": {"id": 959}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 370, "owner": {"id": 444}, "assignee": {"id": 560}, "organization": {"id": 166}, "project": {"owner": {"id": 718}, "assignee": {"id": 850}, "organization": {"id": 984}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 304, "owner": {"id": 401}, "assignee": {"id": 559}, "organization": {"id": 617}, "project": {"owner": {"id": 770}, "assignee": {"id": 886}, "organization": {"id": 990}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 382, "owner": {"id": 491}, "assignee": {"id": 588}, "organization": {"id": 174}, "project": {"owner": {"id": 767}, "assignee": {"id": 899}, "organization": {"id": 901}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"id": 375, "owner": {"id": 465}, "assignee": {"id": 554}, "organization": {"id": 655}, "project": {"owner": {"id": 787}, "assignee": {"id": 889}, "organization": {"id": 972}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 440}, "assignee": {"id": 588}, "organization": {"id": 103}, "project": {"owner": {"id": 741}, "assignee": {"id": 808}, "organization": {"id": 934}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "owner": {"id": 496}, "assignee": {"id": 559}, "organization": {"id": 695}, "project": {"owner": {"id": 728}, "assignee": {"id": 844}, "organization": {"id": 992}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 428}, "assignee": {"id": 536}, "organization": {"id": 172}, "project": {"owner": {"id": 730}, "assignee": {"id": 848}, "organization": {"id": 937}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "owner": {"id": 491}, "assignee": {"id": 507}, "organization": {"id": 662}, "project": {"owner": {"id": 763}, "assignee": {"id": 892}, "organization": {"id": 973}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 418}, "assignee": {"id": 519}, "organization": {"id": 148}, "project": {"owner": {"id": 718}, "assignee": {"id": 889}, "organization": {"id": 954}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 410}, "assignee": {"id": 596}, "organization": {"id": 641}, "project": {"owner": {"id": 730}, "assignee": {"id": 830}, "organization": {"id": 904}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 301, "owner": {"id": 417}, "assignee": {"id": 558}, "organization": {"id": 153}, "project": {"owner": {"id": 746}, "assignee": {"id": 894}, "organization": {"id": 907}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 360, "owner": {"id": 497}, "assignee": {"id": 588}, "organization": {"id": 655}, "project": {"owner": {"id": 788}, "assignee": {"id": 872}, "organization": {"id": 931}}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": null}, "resource": {"id": 398, "owner": {"id": 410}, "assignee": {"id": 524}, "organization": {"id": 679}, "project": {"owner": {"id": 47}, "assignee": {"id": 873}, "organization": {"id": 973}}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": null}, "resource": {"id": 366, "owner": {"id": 474}, "assignee": {"id": 577}, "organization": {"id": 696}, "project": {"owner": {"id": 17}, "assignee": {"id": 872}, "organization": {"id": 950}}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": null}, "resource": {"id": 332, "owner": {"id": 465}, "assignee": {"id": 558}, "organization": {"id": 639}, "project": {"owner": {"id": 43}, "assignee": {"id": 860}, "organization": {"id": 904}}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": null}, "resource": {"id": 359, "owner": {"id": 419}, "assignee": {"id": 572}, "organization": {"id": 675}, "project": {"owner": {"id": 41}, "assignee": {"id": 890}, "organization": {"id": 924}}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": null}, "resource": {"id": 339, "owner": {"id": 449}, "assignee": {"id": 527}, "organization": {"id": 625}, "project": {"owner": {"id": 56}, "assignee": {"id": 823}, "organization": {"id": 965}}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": null}, "resource": {"id": 385, "owner": {"id": 496}, "assignee": {"id": 581}, "organization": {"id": 614}, "project": {"owner": {"id": 737}, "assignee": {"id": 52}, "organization": {"id": 954}}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": null}, "resource": {"id": 367, "owner": {"id": 482}, "assignee": {"id": 550}, "organization": {"id": 612}, "project": {"owner": {"id": 739}, "assignee": {"id": 70}, "organization": {"id": 920}}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "user"}, "organization": null}, "resource": {"id": 366, "owner": {"id": 434}, "assignee": {"id": 584}, "organization": {"id": 625}, "project": {"owner": {"id": 715}, "assignee": {"id": 90}, "organization": {"id": 981}}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": null}, "resource": {"id": 370, "owner": {"id": 432}, "assignee": {"id": 500}, "organization": {"id": 608}, "project": {"owner": {"id": 754}, "assignee": {"id": 85}, "organization": {"id": 911}}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": null}, "resource": {"id": 313, "owner": {"id": 439}, "assignee": {"id": 574}, "organization": {"id": 645}, "project": {"owner": {"id": 712}, "assignee": {"id": 88}, "organization": {"id": 974}}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": null}, "resource": {"id": 378, "owner": {"id": 29}, "assignee": {"id": 506}, "organization": {"id": 665}, "project": {"owner": {"id": 710}, "assignee": {"id": 865}, "organization": {"id": 961}}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": null}, "resource": {"id": 318, "owner": {"id": 3}, "assignee": {"id": 507}, "organization": {"id": 681}, "project": {"owner": {"id": 748}, "assignee": {"id": 807}, "organization": {"id": 991}}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 19, "privilege": "user"}, "organization": null}, "resource": {"id": 340, "owner": {"id": 19}, "assignee": {"id": 538}, "organization": {"id": 647}, "project": {"owner": {"id": 771}, "assignee": {"id": 872}, "organization": {"id": 921}}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": null}, "resource": {"id": 336, "owner": {"id": 99}, "assignee": {"id": 565}, "organization": {"id": 627}, "project": {"owner": {"id": 742}, "assignee": {"id": 836}, "organization": {"id": 986}}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": null}, "resource": {"id": 305, "owner": {"id": 22}, "assignee": {"id": 509}, "organization": {"id": 604}, "project": {"owner": {"id": 727}, "assignee": {"id": 802}, "organization": {"id": 920}}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": null}, "resource": {"id": 326, "owner": {"id": 422}, "assignee": {"id": 22}, "organization": {"id": 668}, "project": {"owner": {"id": 738}, "assignee": {"id": 823}, "organization": {"id": 925}}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": null}, "resource": {"id": 355, "owner": {"id": 465}, "assignee": {"id": 1}, "organization": {"id": 610}, "project": {"owner": {"id": 776}, "assignee": {"id": 892}, "organization": {"id": 947}}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": null}, "resource": {"id": 355, "owner": {"id": 464}, "assignee": {"id": 34}, "organization": {"id": 668}, "project": {"owner": {"id": 747}, "assignee": {"id": 869}, "organization": {"id": 995}}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": null}, "resource": {"id": 326, "owner": {"id": 432}, "assignee": {"id": 35}, "organization": {"id": 624}, "project": {"owner": {"id": 712}, "assignee": {"id": 833}, "organization": {"id": 972}}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": null}, "resource": {"id": 323, "owner": {"id": 421}, "assignee": {"id": 88}, "organization": {"id": 638}, "project": {"owner": {"id": 757}, "assignee": {"id": 817}, "organization": {"id": 940}}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": null}, "resource": {"id": 305, "owner": {"id": 477}, "assignee": {"id": 562}, "organization": {"id": 600}, "project": {"owner": {"id": 720}, "assignee": {"id": 801}, "organization": {"id": 977}}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": null}, "resource": {"id": 343, "owner": {"id": 448}, "assignee": {"id": 573}, "organization": {"id": 653}, "project": {"owner": {"id": 734}, "assignee": {"id": 856}, "organization": {"id": 997}}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": null}, "resource": {"id": 365, "owner": {"id": 496}, "assignee": {"id": 581}, "organization": {"id": 617}, "project": {"owner": {"id": 727}, "assignee": {"id": 817}, "organization": {"id": 941}}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": null}, "resource": {"id": 363, "owner": {"id": 481}, "assignee": {"id": 502}, "organization": {"id": 624}, "project": {"owner": {"id": 783}, "assignee": {"id": 834}, "organization": {"id": 973}}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": null}, "resource": {"id": 357, "owner": {"id": 400}, "assignee": {"id": 521}, "organization": {"id": 682}, "project": {"owner": {"id": 753}, "assignee": {"id": 885}, "organization": {"id": 961}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 379, "owner": {"id": 412}, "assignee": {"id": 569}, "organization": {"id": 145}, "project": {"owner": {"id": 58}, "assignee": {"id": 839}, "organization": {"id": 994}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 315, "owner": {"id": 453}, "assignee": {"id": 594}, "organization": {"id": 605}, "project": {"owner": {"id": 74}, "assignee": {"id": 869}, "organization": {"id": 936}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "owner": {"id": 450}, "assignee": {"id": 503}, "organization": {"id": 158}, "project": {"owner": {"id": 64}, "assignee": {"id": 823}, "organization": {"id": 920}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "owner": {"id": 490}, "assignee": {"id": 551}, "organization": {"id": 609}, "project": {"owner": {"id": 96}, "assignee": {"id": 899}, "organization": {"id": 910}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 348, "owner": {"id": 448}, "assignee": {"id": 508}, "organization": {"id": 124}, "project": {"owner": {"id": 79}, "assignee": {"id": 878}, "organization": {"id": 921}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 443}, "assignee": {"id": 557}, "organization": {"id": 667}, "project": {"owner": {"id": 64}, "assignee": {"id": 805}, "organization": {"id": 970}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 354, "owner": {"id": 472}, "assignee": {"id": 501}, "organization": {"id": 136}, "project": {"owner": {"id": 28}, "assignee": {"id": 890}, "organization": {"id": 998}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 395, "owner": {"id": 461}, "assignee": {"id": 594}, "organization": {"id": 693}, "project": {"owner": {"id": 10}, "assignee": {"id": 894}, "organization": {"id": 909}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 317, "owner": {"id": 460}, "assignee": {"id": 527}, "organization": {"id": 180}, "project": {"owner": {"id": 67}, "assignee": {"id": 817}, "organization": {"id": 929}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 381, "owner": {"id": 473}, "assignee": {"id": 542}, "organization": {"id": 689}, "project": {"owner": {"id": 17}, "assignee": {"id": 888}, "organization": {"id": 987}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 319, "owner": {"id": 404}, "assignee": {"id": 559}, "organization": {"id": 131}, "project": {"owner": {"id": 26}, "assignee": {"id": 825}, "organization": {"id": 905}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 470}, "assignee": {"id": 519}, "organization": {"id": 628}, "project": {"owner": {"id": 79}, "assignee": {"id": 873}, "organization": {"id": 969}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "owner": {"id": 413}, "assignee": {"id": 589}, "organization": {"id": 174}, "project": {"owner": {"id": 79}, "assignee": {"id": 880}, "organization": {"id": 997}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 397, "owner": {"id": 494}, "assignee": {"id": 560}, "organization": {"id": 631}, "project": {"owner": {"id": 77}, "assignee": {"id": 884}, "organization": {"id": 958}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "owner": {"id": 459}, "assignee": {"id": 549}, "organization": {"id": 100}, "project": {"owner": {"id": 50}, "assignee": {"id": 820}, "organization": {"id": 931}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "owner": {"id": 491}, "assignee": {"id": 537}, "organization": {"id": 623}, "project": {"owner": {"id": 49}, "assignee": {"id": 875}, "organization": {"id": 998}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 342, "owner": {"id": 413}, "assignee": {"id": 538}, "organization": {"id": 143}, "project": {"owner": {"id": 48}, "assignee": {"id": 833}, "organization": {"id": 965}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 334, "owner": {"id": 425}, "assignee": {"id": 503}, "organization": {"id": 651}, "project": {"owner": {"id": 67}, "assignee": {"id": 802}, "organization": {"id": 948}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 386, "owner": {"id": 486}, "assignee": {"id": 571}, "organization": {"id": 115}, "project": {"owner": {"id": 80}, "assignee": {"id": 872}, "organization": {"id": 978}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 489}, "assignee": {"id": 556}, "organization": {"id": 618}, "project": {"owner": {"id": 65}, "assignee": {"id": 822}, "organization": {"id": 975}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 326, "owner": {"id": 401}, "assignee": {"id": 597}, "organization": {"id": 127}, "project": {"owner": {"id": 82}, "assignee": {"id": 834}, "organization": {"id": 930}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 315, "owner": {"id": 437}, "assignee": {"id": 510}, "organization": {"id": 674}, "project": {"owner": {"id": 96}, "assignee": {"id": 870}, "organization": {"id": 914}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "owner": {"id": 456}, "assignee": {"id": 575}, "organization": {"id": 143}, "project": {"owner": {"id": 80}, "assignee": {"id": 824}, "organization": {"id": 902}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 358, "owner": {"id": 496}, "assignee": {"id": 535}, "organization": {"id": 673}, "project": {"owner": {"id": 36}, "assignee": {"id": 806}, "organization": {"id": 936}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "owner": {"id": 412}, "assignee": {"id": 575}, "organization": {"id": 118}, "project": {"owner": {"id": 0}, "assignee": {"id": 871}, "organization": {"id": 983}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "owner": {"id": 435}, "assignee": {"id": 583}, "organization": {"id": 633}, "project": {"owner": {"id": 11}, "assignee": {"id": 814}, "organization": {"id": 952}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 375, "owner": {"id": 427}, "assignee": {"id": 587}, "organization": {"id": 194}, "project": {"owner": {"id": 66}, "assignee": {"id": 834}, "organization": {"id": 907}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 398, "owner": {"id": 442}, "assignee": {"id": 514}, "organization": {"id": 683}, "project": {"owner": {"id": 16}, "assignee": {"id": 854}, "organization": {"id": 929}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 313, "owner": {"id": 425}, "assignee": {"id": 562}, "organization": {"id": 185}, "project": {"owner": {"id": 91}, "assignee": {"id": 840}, "organization": {"id": 961}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 309, "owner": {"id": 404}, "assignee": {"id": 531}, "organization": {"id": 660}, "project": {"owner": {"id": 53}, "assignee": {"id": 820}, "organization": {"id": 922}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 376, "owner": {"id": 434}, "assignee": {"id": 515}, "organization": {"id": 126}, "project": {"owner": {"id": 68}, "assignee": {"id": 816}, "organization": {"id": 946}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 410}, "assignee": {"id": 555}, "organization": {"id": 629}, "project": {"owner": {"id": 9}, "assignee": {"id": 863}, "organization": {"id": 966}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "owner": {"id": 499}, "assignee": {"id": 535}, "organization": {"id": 161}, "project": {"owner": {"id": 35}, "assignee": {"id": 852}, "organization": {"id": 964}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "owner": {"id": 421}, "assignee": {"id": 587}, "organization": {"id": 679}, "project": {"owner": {"id": 7}, "assignee": {"id": 812}, "organization": {"id": 999}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 412}, "assignee": {"id": 543}, "organization": {"id": 115}, "project": {"owner": {"id": 87}, "assignee": {"id": 886}, "organization": {"id": 943}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "owner": {"id": 447}, "assignee": {"id": 567}, "organization": {"id": 610}, "project": {"owner": {"id": 36}, "assignee": {"id": 806}, "organization": {"id": 912}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 316, "owner": {"id": 424}, "assignee": {"id": 598}, "organization": {"id": 175}, "project": {"owner": {"id": 81}, "assignee": {"id": 831}, "organization": {"id": 943}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 365, "owner": {"id": 420}, "assignee": {"id": 565}, "organization": {"id": 675}, "project": {"owner": {"id": 6}, "assignee": {"id": 812}, "organization": {"id": 934}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 317, "owner": {"id": 488}, "assignee": {"id": 531}, "organization": {"id": 163}, "project": {"owner": {"id": 51}, "assignee": {"id": 829}, "organization": {"id": 910}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 406}, "assignee": {"id": 518}, "organization": {"id": 657}, "project": {"owner": {"id": 74}, "assignee": {"id": 850}, "organization": {"id": 971}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 367, "owner": {"id": 481}, "assignee": {"id": 571}, "organization": {"id": 187}, "project": {"owner": {"id": 98}, "assignee": {"id": 859}, "organization": {"id": 965}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 311, "owner": {"id": 469}, "assignee": {"id": 509}, "organization": {"id": 678}, "project": {"owner": {"id": 39}, "assignee": {"id": 868}, "organization": {"id": 929}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "owner": {"id": 495}, "assignee": {"id": 505}, "organization": {"id": 194}, "project": {"owner": {"id": 97}, "assignee": {"id": 801}, "organization": {"id": 982}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "owner": {"id": 460}, "assignee": {"id": 529}, "organization": {"id": 600}, "project": {"owner": {"id": 23}, "assignee": {"id": 871}, "organization": {"id": 903}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "owner": {"id": 427}, "assignee": {"id": 514}, "organization": {"id": 122}, "project": {"owner": {"id": 65}, "assignee": {"id": 889}, "organization": {"id": 938}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 380, "owner": {"id": 411}, "assignee": {"id": 594}, "organization": {"id": 638}, "project": {"owner": {"id": 35}, "assignee": {"id": 829}, "organization": {"id": 902}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 339, "owner": {"id": 448}, "assignee": {"id": 572}, "organization": {"id": 118}, "project": {"owner": {"id": 37}, "assignee": {"id": 880}, "organization": {"id": 975}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 372, "owner": {"id": 452}, "assignee": {"id": 528}, "organization": {"id": 638}, "project": {"owner": {"id": 97}, "assignee": {"id": 896}, "organization": {"id": 902}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 457}, "assignee": {"id": 553}, "organization": {"id": 131}, "project": {"owner": {"id": 28}, "assignee": {"id": 893}, "organization": {"id": 977}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 346, "owner": {"id": 400}, "assignee": {"id": 507}, "organization": {"id": 633}, "project": {"owner": {"id": 11}, "assignee": {"id": 879}, "organization": {"id": 946}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 325, "owner": {"id": 480}, "assignee": {"id": 505}, "organization": {"id": 149}, "project": {"owner": {"id": 703}, "assignee": {"id": 49}, "organization": {"id": 999}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 400}, "assignee": {"id": 549}, "organization": {"id": 689}, "project": {"owner": {"id": 713}, "assignee": {"id": 92}, "organization": {"id": 987}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "owner": {"id": 434}, "assignee": {"id": 552}, "organization": {"id": 182}, "project": {"owner": {"id": 788}, "assignee": {"id": 17}, "organization": {"id": 986}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "owner": {"id": 466}, "assignee": {"id": 562}, "organization": {"id": 616}, "project": {"owner": {"id": 767}, "assignee": {"id": 66}, "organization": {"id": 998}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 468}, "assignee": {"id": 549}, "organization": {"id": 199}, "project": {"owner": {"id": 750}, "assignee": {"id": 28}, "organization": {"id": 917}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "owner": {"id": 432}, "assignee": {"id": 507}, "organization": {"id": 641}, "project": {"owner": {"id": 747}, "assignee": {"id": 39}, "organization": {"id": 918}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 251}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 421}, "assignee": {"id": 510}, "organization": {"id": 183}, "project": {"owner": {"id": 799}, "assignee": {"id": 25}, "organization": {"id": 952}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 319, "owner": {"id": 403}, "assignee": {"id": 590}, "organization": {"id": 674}, "project": {"owner": {"id": 709}, "assignee": {"id": 84}, "organization": {"id": 900}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"id": 386, "owner": {"id": 437}, "assignee": {"id": 514}, "organization": {"id": 108}, "project": {"owner": {"id": 794}, "assignee": {"id": 24}, "organization": {"id": 920}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 303, "owner": {"id": 408}, "assignee": {"id": 556}, "organization": {"id": 607}, "project": {"owner": {"id": 789}, "assignee": {"id": 67}, "organization": {"id": 954}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 356, "owner": {"id": 417}, "assignee": {"id": 512}, "organization": {"id": 127}, "project": {"owner": {"id": 769}, "assignee": {"id": 73}, "organization": {"id": 971}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 365, "owner": {"id": 432}, "assignee": {"id": 593}, "organization": {"id": 692}, "project": {"owner": {"id": 796}, "assignee": {"id": 39}, "organization": {"id": 906}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "owner": {"id": 446}, "assignee": {"id": 588}, "organization": {"id": 149}, "project": {"owner": {"id": 711}, "assignee": {"id": 40}, "organization": {"id": 953}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "owner": {"id": 488}, "assignee": {"id": 535}, "organization": {"id": 612}, "project": {"owner": {"id": 787}, "assignee": {"id": 50}, "organization": {"id": 940}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 412}, "assignee": {"id": 542}, "organization": {"id": 117}, "project": {"owner": {"id": 798}, "assignee": {"id": 15}, "organization": {"id": 910}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "owner": {"id": 402}, "assignee": {"id": 513}, "organization": {"id": 666}, "project": {"owner": {"id": 788}, "assignee": {"id": 88}, "organization": {"id": 902}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 367, "owner": {"id": 498}, "assignee": {"id": 572}, "organization": {"id": 162}, "project": {"owner": {"id": 797}, "assignee": {"id": 54}, "organization": {"id": 972}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 375, "owner": {"id": 423}, "assignee": {"id": 552}, "organization": {"id": 623}, "project": {"owner": {"id": 746}, "assignee": {"id": 17}, "organization": {"id": 943}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 410}, "assignee": {"id": 544}, "organization": {"id": 144}, "project": {"owner": {"id": 791}, "assignee": {"id": 24}, "organization": {"id": 930}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 380, "owner": {"id": 465}, "assignee": {"id": 582}, "organization": {"id": 633}, "project": {"owner": {"id": 768}, "assignee": {"id": 53}, "organization": {"id": 966}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 486}, "assignee": {"id": 597}, "organization": {"id": 124}, "project": {"owner": {"id": 788}, "assignee": {"id": 94}, "organization": {"id": 966}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 432}, "assignee": {"id": 526}, "organization": {"id": 635}, "project": {"owner": {"id": 718}, "assignee": {"id": 77}, "organization": {"id": 975}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 447}, "assignee": {"id": 527}, "organization": {"id": 108}, "project": {"owner": {"id": 715}, "assignee": {"id": 0}, "organization": {"id": 988}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 330, "owner": {"id": 428}, "assignee": {"id": 574}, "organization": {"id": 669}, "project": {"owner": {"id": 772}, "assignee": {"id": 72}, "organization": {"id": 901}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "owner": {"id": 406}, "assignee": {"id": 531}, "organization": {"id": 194}, "project": {"owner": {"id": 753}, "assignee": {"id": 39}, "organization": {"id": 970}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "owner": {"id": 484}, "assignee": {"id": 502}, "organization": {"id": 613}, "project": {"owner": {"id": 738}, "assignee": {"id": 55}, "organization": {"id": 943}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 300, "owner": {"id": 418}, "assignee": {"id": 545}, "organization": {"id": 194}, "project": {"owner": {"id": 770}, "assignee": {"id": 86}, "organization": {"id": 904}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 305, "owner": {"id": 478}, "assignee": {"id": 541}, "organization": {"id": 678}, "project": {"owner": {"id": 707}, "assignee": {"id": 59}, "organization": {"id": 987}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 372, "owner": {"id": 400}, "assignee": {"id": 534}, "organization": {"id": 199}, "project": {"owner": {"id": 724}, "assignee": {"id": 8}, "organization": {"id": 977}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 397, "owner": {"id": 473}, "assignee": {"id": 514}, "organization": {"id": 666}, "project": {"owner": {"id": 797}, "assignee": {"id": 66}, "organization": {"id": 998}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 367, "owner": {"id": 496}, "assignee": {"id": 569}, "organization": {"id": 153}, "project": {"owner": {"id": 748}, "assignee": {"id": 75}, "organization": {"id": 952}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"id": 352, "owner": {"id": 489}, "assignee": {"id": 524}, "organization": {"id": 649}, "project": {"owner": {"id": 756}, "assignee": {"id": 8}, "organization": {"id": 960}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 358, "owner": {"id": 440}, "assignee": {"id": 523}, "organization": {"id": 190}, "project": {"owner": {"id": 752}, "assignee": {"id": 73}, "organization": {"id": 987}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "owner": {"id": 423}, "assignee": {"id": 588}, "organization": {"id": 649}, "project": {"owner": {"id": 779}, "assignee": {"id": 34}, "organization": {"id": 945}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 380, "owner": {"id": 478}, "assignee": {"id": 559}, "organization": {"id": 181}, "project": {"owner": {"id": 769}, "assignee": {"id": 85}, "organization": {"id": 911}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "owner": {"id": 488}, "assignee": {"id": 517}, "organization": {"id": 633}, "project": {"owner": {"id": 741}, "assignee": {"id": 96}, "organization": {"id": 956}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 346, "owner": {"id": 404}, "assignee": {"id": 568}, "organization": {"id": 155}, "project": {"owner": {"id": 743}, "assignee": {"id": 41}, "organization": {"id": 905}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 333, "owner": {"id": 437}, "assignee": {"id": 568}, "organization": {"id": 610}, "project": {"owner": {"id": 769}, "assignee": {"id": 92}, "organization": {"id": 995}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 384, "owner": {"id": 449}, "assignee": {"id": 556}, "organization": {"id": 112}, "project": {"owner": {"id": 775}, "assignee": {"id": 3}, "organization": {"id": 947}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 373, "owner": {"id": 414}, "assignee": {"id": 573}, "organization": {"id": 625}, "project": {"owner": {"id": 767}, "assignee": {"id": 56}, "organization": {"id": 907}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 310, "owner": {"id": 438}, "assignee": {"id": 521}, "organization": {"id": 184}, "project": {"owner": {"id": 712}, "assignee": {"id": 79}, "organization": {"id": 935}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 339, "owner": {"id": 427}, "assignee": {"id": 570}, "organization": {"id": 695}, "project": {"owner": {"id": 722}, "assignee": {"id": 97}, "organization": {"id": 984}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "owner": {"id": 437}, "assignee": {"id": 549}, "organization": {"id": 187}, "project": {"owner": {"id": 739}, "assignee": {"id": 55}, "organization": {"id": 968}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "owner": {"id": 445}, "assignee": {"id": 556}, "organization": {"id": 696}, "project": {"owner": {"id": 723}, "assignee": {"id": 84}, "organization": {"id": 952}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "owner": {"id": 429}, "assignee": {"id": 506}, "organization": {"id": 139}, "project": {"owner": {"id": 784}, "assignee": {"id": 30}, "organization": {"id": 901}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "owner": {"id": 437}, "assignee": {"id": 539}, "organization": {"id": 650}, "project": {"owner": {"id": 783}, "assignee": {"id": 31}, "organization": {"id": 936}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 495}, "assignee": {"id": 505}, "organization": {"id": 171}, "project": {"owner": {"id": 741}, "assignee": {"id": 49}, "organization": {"id": 976}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 462}, "assignee": {"id": 558}, "organization": {"id": 691}, "project": {"owner": {"id": 785}, "assignee": {"id": 60}, "organization": {"id": 907}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 373, "owner": {"id": 479}, "assignee": {"id": 509}, "organization": {"id": 181}, "project": {"owner": {"id": 792}, "assignee": {"id": 82}, "organization": {"id": 978}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 435}, "assignee": {"id": 550}, "organization": {"id": 657}, "project": {"owner": {"id": 753}, "assignee": {"id": 2}, "organization": {"id": 959}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 44}, "assignee": {"id": 511}, "organization": {"id": 151}, "project": {"owner": {"id": 705}, "assignee": {"id": 827}, "organization": {"id": 991}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 7, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 320, "owner": {"id": 7}, "assignee": {"id": 561}, "organization": {"id": 688}, "project": {"owner": {"id": 750}, "assignee": {"id": 817}, "organization": {"id": 908}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "owner": {"id": 97}, "assignee": {"id": 518}, "organization": {"id": 175}, "project": {"owner": {"id": 703}, "assignee": {"id": 844}, "organization": {"id": 958}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 38}, "assignee": {"id": 502}, "organization": {"id": 603}, "project": {"owner": {"id": 707}, "assignee": {"id": 897}, "organization": {"id": 932}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "owner": {"id": 47}, "assignee": {"id": 598}, "organization": {"id": 193}, "project": {"owner": {"id": 787}, "assignee": {"id": 830}, "organization": {"id": 905}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "owner": {"id": 20}, "assignee": {"id": 547}, "organization": {"id": 655}, "project": {"owner": {"id": 719}, "assignee": {"id": 823}, "organization": {"id": 902}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 241}, "user": {"role": "worker"}}}, "resource": {"id": 340, "owner": {"id": 89}, "assignee": {"id": 572}, "organization": {"id": 102}, "project": {"owner": {"id": 771}, "assignee": {"id": 827}, "organization": {"id": 972}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 324, "owner": {"id": 61}, "assignee": {"id": 503}, "organization": {"id": 615}, "project": {"owner": {"id": 795}, "assignee": {"id": 829}, "organization": {"id": 982}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 85}, "assignee": {"id": 503}, "organization": {"id": 127}, "project": {"owner": {"id": 758}, "assignee": {"id": 823}, "organization": {"id": 900}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 393, "owner": {"id": 29}, "assignee": {"id": 566}, "organization": {"id": 677}, "project": {"owner": {"id": 724}, "assignee": {"id": 899}, "organization": {"id": 918}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 48}, "assignee": {"id": 553}, "organization": {"id": 149}, "project": {"owner": {"id": 760}, "assignee": {"id": 878}, "organization": {"id": 934}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 341, "owner": {"id": 64}, "assignee": {"id": 523}, "organization": {"id": 635}, "project": {"owner": {"id": 714}, "assignee": {"id": 897}, "organization": {"id": 937}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "owner": {"id": 4}, "assignee": {"id": 571}, "organization": {"id": 162}, "project": {"owner": {"id": 765}, "assignee": {"id": 870}, "organization": {"id": 993}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "owner": {"id": 43}, "assignee": {"id": 581}, "organization": {"id": 636}, "project": {"owner": {"id": 755}, "assignee": {"id": 844}, "organization": {"id": 967}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 189, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "owner": {"id": 99}, "assignee": {"id": 547}, "organization": {"id": 189}, "project": {"owner": {"id": 738}, "assignee": {"id": 846}, "organization": {"id": 911}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "owner": {"id": 49}, "assignee": {"id": 517}, "organization": {"id": 657}, "project": {"owner": {"id": 772}, "assignee": {"id": 830}, "organization": {"id": 933}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 316, "owner": {"id": 51}, "assignee": {"id": 578}, "organization": {"id": 144}, "project": {"owner": {"id": 771}, "assignee": {"id": 846}, "organization": {"id": 911}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 323, "owner": {"id": 11}, "assignee": {"id": 566}, "organization": {"id": 662}, "project": {"owner": {"id": 726}, "assignee": {"id": 841}, "organization": {"id": 913}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 361, "owner": {"id": 35}, "assignee": {"id": 550}, "organization": {"id": 136}, "project": {"owner": {"id": 733}, "assignee": {"id": 880}, "organization": {"id": 908}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 361, "owner": {"id": 99}, "assignee": {"id": 562}, "organization": {"id": 656}, "project": {"owner": {"id": 738}, "assignee": {"id": 856}, "organization": {"id": 952}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 357, "owner": {"id": 67}, "assignee": {"id": 592}, "organization": {"id": 168}, "project": {"owner": {"id": 702}, "assignee": {"id": 824}, "organization": {"id": 908}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 399, "owner": {"id": 52}, "assignee": {"id": 563}, "organization": {"id": 662}, "project": {"owner": {"id": 772}, "assignee": {"id": 853}, "organization": {"id": 907}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "owner": {"id": 36}, "assignee": {"id": 585}, "organization": {"id": 193}, "project": {"owner": {"id": 756}, "assignee": {"id": 885}, "organization": {"id": 991}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 301, "owner": {"id": 60}, "assignee": {"id": 587}, "organization": {"id": 689}, "project": {"owner": {"id": 703}, "assignee": {"id": 885}, "organization": {"id": 941}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "owner": {"id": 98}, "assignee": {"id": 518}, "organization": {"id": 152}, "project": {"owner": {"id": 751}, "assignee": {"id": 826}, "organization": {"id": 933}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "owner": {"id": 44}, "assignee": {"id": 592}, "organization": {"id": 651}, "project": {"owner": {"id": 740}, "assignee": {"id": 898}, "organization": {"id": 914}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 316, "owner": {"id": 66}, "assignee": {"id": 537}, "organization": {"id": 116}, "project": {"owner": {"id": 786}, "assignee": {"id": 829}, "organization": {"id": 991}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 255}, "user": {"role": "worker"}}}, "resource": {"id": 378, "owner": {"id": 95}, "assignee": {"id": 582}, "organization": {"id": 661}, "project": {"owner": {"id": 779}, "assignee": {"id": 806}, "organization": {"id": 968}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 384, "owner": {"id": 55}, "assignee": {"id": 554}, "organization": {"id": 152}, "project": {"owner": {"id": 713}, "assignee": {"id": 881}, "organization": {"id": 932}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 313, "owner": {"id": 30}, "assignee": {"id": 501}, "organization": {"id": 698}, "project": {"owner": {"id": 794}, "assignee": {"id": 844}, "organization": {"id": 972}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 359, "owner": {"id": 21}, "assignee": {"id": 513}, "organization": {"id": 123}, "project": {"owner": {"id": 742}, "assignee": {"id": 847}, "organization": {"id": 988}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 339, "owner": {"id": 42}, "assignee": {"id": 594}, "organization": {"id": 617}, "project": {"owner": {"id": 733}, "assignee": {"id": 849}, "organization": {"id": 947}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "owner": {"id": 57}, "assignee": {"id": 576}, "organization": {"id": 125}, "project": {"owner": {"id": 791}, "assignee": {"id": 862}, "organization": {"id": 971}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "owner": {"id": 20}, "assignee": {"id": 569}, "organization": {"id": 630}, "project": {"owner": {"id": 717}, "assignee": {"id": 800}, "organization": {"id": 923}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "owner": {"id": 7}, "assignee": {"id": 527}, "organization": {"id": 118}, "project": {"owner": {"id": 710}, "assignee": {"id": 864}, "organization": {"id": 906}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "owner": {"id": 97}, "assignee": {"id": 576}, "organization": {"id": 666}, "project": {"owner": {"id": 706}, "assignee": {"id": 804}, "organization": {"id": 992}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 62}, "assignee": {"id": 540}, "organization": {"id": 131}, "project": {"owner": {"id": 746}, "assignee": {"id": 857}, "organization": {"id": 987}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 387, "owner": {"id": 77}, "assignee": {"id": 527}, "organization": {"id": 619}, "project": {"owner": {"id": 771}, "assignee": {"id": 823}, "organization": {"id": 929}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 316, "owner": {"id": 53}, "assignee": {"id": 590}, "organization": {"id": 149}, "project": {"owner": {"id": 770}, "assignee": {"id": 881}, "organization": {"id": 930}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 392, "owner": {"id": 65}, "assignee": {"id": 579}, "organization": {"id": 666}, "project": {"owner": {"id": 731}, "assignee": {"id": 845}, "organization": {"id": 975}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 367, "owner": {"id": 26}, "assignee": {"id": 549}, "organization": {"id": 117}, "project": {"owner": {"id": 766}, "assignee": {"id": 896}, "organization": {"id": 963}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 358, "owner": {"id": 18}, "assignee": {"id": 565}, "organization": {"id": 634}, "project": {"owner": {"id": 796}, "assignee": {"id": 842}, "organization": {"id": 954}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 38}, "assignee": {"id": 559}, "organization": {"id": 150}, "project": {"owner": {"id": 780}, "assignee": {"id": 818}, "organization": {"id": 933}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "owner": {"id": 3}, "assignee": {"id": 544}, "organization": {"id": 672}, "project": {"owner": {"id": 769}, "assignee": {"id": 878}, "organization": {"id": 992}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 348, "owner": {"id": 25}, "assignee": {"id": 503}, "organization": {"id": 106}, "project": {"owner": {"id": 738}, "assignee": {"id": 859}, "organization": {"id": 967}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 68}, "assignee": {"id": 537}, "organization": {"id": 651}, "project": {"owner": {"id": 792}, "assignee": {"id": 842}, "organization": {"id": 964}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 370, "owner": {"id": 49}, "assignee": {"id": 522}, "organization": {"id": 131}, "project": {"owner": {"id": 734}, "assignee": {"id": 897}, "organization": {"id": 938}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 318, "owner": {"id": 5}, "assignee": {"id": 567}, "organization": {"id": 687}, "project": {"owner": {"id": 735}, "assignee": {"id": 817}, "organization": {"id": 987}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 75}, "assignee": {"id": 574}, "organization": {"id": 166}, "project": {"owner": {"id": 787}, "assignee": {"id": 872}, "organization": {"id": 905}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 9, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 387, "owner": {"id": 9}, "assignee": {"id": 518}, "organization": {"id": 617}, "project": {"owner": {"id": 704}, "assignee": {"id": 823}, "organization": {"id": 996}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 312, "owner": {"id": 417}, "assignee": {"id": 26}, "organization": {"id": 149}, "project": {"owner": {"id": 764}, "assignee": {"id": 845}, "organization": {"id": 910}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 335, "owner": {"id": 404}, "assignee": {"id": 85}, "organization": {"id": 637}, "project": {"owner": {"id": 713}, "assignee": {"id": 891}, "organization": {"id": 949}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "owner": {"id": 462}, "assignee": {"id": 63}, "organization": {"id": 160}, "project": {"owner": {"id": 798}, "assignee": {"id": 868}, "organization": {"id": 957}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 478}, "assignee": {"id": 20}, "organization": {"id": 696}, "project": {"owner": {"id": 705}, "assignee": {"id": 826}, "organization": {"id": 922}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 460}, "assignee": {"id": 95}, "organization": {"id": 136}, "project": {"owner": {"id": 797}, "assignee": {"id": 859}, "organization": {"id": 965}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "owner": {"id": 454}, "assignee": {"id": 34}, "organization": {"id": 632}, "project": {"owner": {"id": 768}, "assignee": {"id": 839}, "organization": {"id": 954}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 309, "owner": {"id": 499}, "assignee": {"id": 69}, "organization": {"id": 184}, "project": {"owner": {"id": 717}, "assignee": {"id": 827}, "organization": {"id": 929}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 7, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 332, "owner": {"id": 431}, "assignee": {"id": 7}, "organization": {"id": 691}, "project": {"owner": {"id": 755}, "assignee": {"id": 861}, "organization": {"id": 930}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 370, "owner": {"id": 443}, "assignee": {"id": 95}, "organization": {"id": 135}, "project": {"owner": {"id": 709}, "assignee": {"id": 879}, "organization": {"id": 954}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 477}, "assignee": {"id": 34}, "organization": {"id": 653}, "project": {"owner": {"id": 769}, "assignee": {"id": 819}, "organization": {"id": 917}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 317, "owner": {"id": 487}, "assignee": {"id": 64}, "organization": {"id": 164}, "project": {"owner": {"id": 719}, "assignee": {"id": 845}, "organization": {"id": 946}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 366, "owner": {"id": 425}, "assignee": {"id": 2}, "organization": {"id": 678}, "project": {"owner": {"id": 721}, "assignee": {"id": 888}, "organization": {"id": 926}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "owner": {"id": 434}, "assignee": {"id": 59}, "organization": {"id": 102}, "project": {"owner": {"id": 799}, "assignee": {"id": 898}, "organization": {"id": 942}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 457}, "assignee": {"id": 86}, "organization": {"id": 658}, "project": {"owner": {"id": 763}, "assignee": {"id": 879}, "organization": {"id": 990}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 482}, "assignee": {"id": 38}, "organization": {"id": 194}, "project": {"owner": {"id": 732}, "assignee": {"id": 891}, "organization": {"id": 943}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "owner": {"id": 483}, "assignee": {"id": 14}, "organization": {"id": 656}, "project": {"owner": {"id": 708}, "assignee": {"id": 813}, "organization": {"id": 929}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 388, "owner": {"id": 453}, "assignee": {"id": 5}, "organization": {"id": 116}, "project": {"owner": {"id": 726}, "assignee": {"id": 814}, "organization": {"id": 986}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 320, "owner": {"id": 449}, "assignee": {"id": 29}, "organization": {"id": 640}, "project": {"owner": {"id": 776}, "assignee": {"id": 892}, "organization": {"id": 954}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 354, "owner": {"id": 467}, "assignee": {"id": 12}, "organization": {"id": 101}, "project": {"owner": {"id": 765}, "assignee": {"id": 827}, "organization": {"id": 990}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 301, "owner": {"id": 424}, "assignee": {"id": 91}, "organization": {"id": 671}, "project": {"owner": {"id": 786}, "assignee": {"id": 844}, "organization": {"id": 964}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 348, "owner": {"id": 424}, "assignee": {"id": 4}, "organization": {"id": 123}, "project": {"owner": {"id": 788}, "assignee": {"id": 860}, "organization": {"id": 944}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 381, "owner": {"id": 409}, "assignee": {"id": 14}, "organization": {"id": 619}, "project": {"owner": {"id": 749}, "assignee": {"id": 839}, "organization": {"id": 923}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "owner": {"id": 430}, "assignee": {"id": 70}, "organization": {"id": 103}, "project": {"owner": {"id": 756}, "assignee": {"id": 820}, "organization": {"id": 966}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "owner": {"id": 455}, "assignee": {"id": 39}, "organization": {"id": 694}, "project": {"owner": {"id": 799}, "assignee": {"id": 891}, "organization": {"id": 981}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "owner": {"id": 448}, "assignee": {"id": 79}, "organization": {"id": 100}, "project": {"owner": {"id": 740}, "assignee": {"id": 874}, "organization": {"id": 990}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 487}, "assignee": {"id": 80}, "organization": {"id": 614}, "project": {"owner": {"id": 772}, "assignee": {"id": 851}, "organization": {"id": 984}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 395, "owner": {"id": 484}, "assignee": {"id": 24}, "organization": {"id": 174}, "project": {"owner": {"id": 744}, "assignee": {"id": 852}, "organization": {"id": 918}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 303, "owner": {"id": 422}, "assignee": {"id": 0}, "organization": {"id": 609}, "project": {"owner": {"id": 715}, "assignee": {"id": 865}, "organization": {"id": 960}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 300, "owner": {"id": 405}, "assignee": {"id": 45}, "organization": {"id": 130}, "project": {"owner": {"id": 722}, "assignee": {"id": 816}, "organization": {"id": 907}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 395, "owner": {"id": 421}, "assignee": {"id": 91}, "organization": {"id": 669}, "project": {"owner": {"id": 775}, "assignee": {"id": 830}, "organization": {"id": 973}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 406}, "assignee": {"id": 54}, "organization": {"id": 149}, "project": {"owner": {"id": 767}, "assignee": {"id": 803}, "organization": {"id": 937}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 357, "owner": {"id": 414}, "assignee": {"id": 23}, "organization": {"id": 611}, "project": {"owner": {"id": 736}, "assignee": {"id": 860}, "organization": {"id": 968}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "owner": {"id": 472}, "assignee": {"id": 62}, "organization": {"id": 124}, "project": {"owner": {"id": 712}, "assignee": {"id": 898}, "organization": {"id": 915}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 450}, "assignee": {"id": 65}, "organization": {"id": 641}, "project": {"owner": {"id": 707}, "assignee": {"id": 894}, "organization": {"id": 951}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 464}, "assignee": {"id": 4}, "organization": {"id": 123}, "project": {"owner": {"id": 791}, "assignee": {"id": 854}, "organization": {"id": 999}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "owner": {"id": 415}, "assignee": {"id": 19}, "organization": {"id": 602}, "project": {"owner": {"id": 730}, "assignee": {"id": 844}, "organization": {"id": 906}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 343, "owner": {"id": 401}, "assignee": {"id": 7}, "organization": {"id": 188}, "project": {"owner": {"id": 716}, "assignee": {"id": 894}, "organization": {"id": 959}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 444}, "assignee": {"id": 77}, "organization": {"id": 635}, "project": {"owner": {"id": 711}, "assignee": {"id": 884}, "organization": {"id": 954}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 398, "owner": {"id": 481}, "assignee": {"id": 68}, "organization": {"id": 153}, "project": {"owner": {"id": 755}, "assignee": {"id": 838}, "organization": {"id": 948}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 450}, "assignee": {"id": 32}, "organization": {"id": 681}, "project": {"owner": {"id": 784}, "assignee": {"id": 893}, "organization": {"id": 991}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 315, "owner": {"id": 435}, "assignee": {"id": 2}, "organization": {"id": 100}, "project": {"owner": {"id": 764}, "assignee": {"id": 839}, "organization": {"id": 901}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 414}, "assignee": {"id": 57}, "organization": {"id": 697}, "project": {"owner": {"id": 756}, "assignee": {"id": 833}, "organization": {"id": 924}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 362, "owner": {"id": 493}, "assignee": {"id": 64}, "organization": {"id": 122}, "project": {"owner": {"id": 797}, "assignee": {"id": 860}, "organization": {"id": 930}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 418}, "assignee": {"id": 88}, "organization": {"id": 692}, "project": {"owner": {"id": 784}, "assignee": {"id": 887}, "organization": {"id": 969}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "owner": {"id": 454}, "assignee": {"id": 18}, "organization": {"id": 126}, "project": {"owner": {"id": 721}, "assignee": {"id": 882}, "organization": {"id": 993}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "owner": {"id": 434}, "assignee": {"id": 15}, "organization": {"id": 605}, "project": {"owner": {"id": 714}, "assignee": {"id": 843}, "organization": {"id": 935}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 351, "owner": {"id": 447}, "assignee": {"id": 5}, "organization": {"id": 189}, "project": {"owner": {"id": 753}, "assignee": {"id": 855}, "organization": {"id": 910}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 306, "owner": {"id": 404}, "assignee": {"id": 67}, "organization": {"id": 644}, "project": {"owner": {"id": 776}, "assignee": {"id": 811}, "organization": {"id": 915}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 382, "owner": {"id": 493}, "assignee": {"id": 79}, "organization": {"id": 127}, "project": {"owner": {"id": 777}, "assignee": {"id": 896}, "organization": {"id": 930}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 326, "owner": {"id": 438}, "assignee": {"id": 7}, "organization": {"id": 685}, "project": {"owner": {"id": 773}, "assignee": {"id": 810}, "organization": {"id": 936}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 375, "owner": {"id": 482}, "assignee": {"id": 586}, "organization": {"id": 144}, "project": {"owner": {"id": 728}, "assignee": {"id": 811}, "organization": {"id": 940}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 486}, "assignee": {"id": 567}, "organization": {"id": 606}, "project": {"owner": {"id": 783}, "assignee": {"id": 802}, "organization": {"id": 964}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "owner": {"id": 443}, "assignee": {"id": 558}, "organization": {"id": 165}, "project": {"owner": {"id": 712}, "assignee": {"id": 888}, "organization": {"id": 927}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "owner": {"id": 494}, "assignee": {"id": 592}, "organization": {"id": 670}, "project": {"owner": {"id": 717}, "assignee": {"id": 824}, "organization": {"id": 962}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "owner": {"id": 435}, "assignee": {"id": 535}, "organization": {"id": 102}, "project": {"owner": {"id": 749}, "assignee": {"id": 868}, "organization": {"id": 981}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "owner": {"id": 425}, "assignee": {"id": 580}, "organization": {"id": 669}, "project": {"owner": {"id": 711}, "assignee": {"id": 831}, "organization": {"id": 964}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 338, "owner": {"id": 413}, "assignee": {"id": 570}, "organization": {"id": 151}, "project": {"owner": {"id": 722}, "assignee": {"id": 878}, "organization": {"id": 928}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 441}, "assignee": {"id": 558}, "organization": {"id": 605}, "project": {"owner": {"id": 708}, "assignee": {"id": 860}, "organization": {"id": 957}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"id": 384, "owner": {"id": 404}, "assignee": {"id": 508}, "organization": {"id": 105}, "project": {"owner": {"id": 754}, "assignee": {"id": 846}, "organization": {"id": 924}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 337, "owner": {"id": 492}, "assignee": {"id": 572}, "organization": {"id": 662}, "project": {"owner": {"id": 710}, "assignee": {"id": 823}, "organization": {"id": 960}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 380, "owner": {"id": 404}, "assignee": {"id": 568}, "organization": {"id": 161}, "project": {"owner": {"id": 749}, "assignee": {"id": 821}, "organization": {"id": 982}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 453}, "assignee": {"id": 599}, "organization": {"id": 693}, "project": {"owner": {"id": 776}, "assignee": {"id": 877}, "organization": {"id": 990}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "owner": {"id": 488}, "assignee": {"id": 502}, "organization": {"id": 149}, "project": {"owner": {"id": 714}, "assignee": {"id": 864}, "organization": {"id": 955}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 446}, "assignee": {"id": 549}, "organization": {"id": 651}, "project": {"owner": {"id": 712}, "assignee": {"id": 810}, "organization": {"id": 994}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "owner": {"id": 416}, "assignee": {"id": 511}, "organization": {"id": 155}, "project": {"owner": {"id": 702}, "assignee": {"id": 861}, "organization": {"id": 940}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "owner": {"id": 446}, "assignee": {"id": 571}, "organization": {"id": 630}, "project": {"owner": {"id": 702}, "assignee": {"id": 874}, "organization": {"id": 963}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 388, "owner": {"id": 448}, "assignee": {"id": 525}, "organization": {"id": 180}, "project": {"owner": {"id": 733}, "assignee": {"id": 874}, "organization": {"id": 917}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 474}, "assignee": {"id": 512}, "organization": {"id": 666}, "project": {"owner": {"id": 787}, "assignee": {"id": 851}, "organization": {"id": 915}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 382, "owner": {"id": 450}, "assignee": {"id": 569}, "organization": {"id": 135}, "project": {"owner": {"id": 727}, "assignee": {"id": 832}, "organization": {"id": 940}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 435}, "assignee": {"id": 585}, "organization": {"id": 687}, "project": {"owner": {"id": 721}, "assignee": {"id": 822}, "organization": {"id": 903}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 397, "owner": {"id": 473}, "assignee": {"id": 585}, "organization": {"id": 199}, "project": {"owner": {"id": 743}, "assignee": {"id": 899}, "organization": {"id": 943}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 306, "owner": {"id": 401}, "assignee": {"id": 525}, "organization": {"id": 644}, "project": {"owner": {"id": 768}, "assignee": {"id": 807}, "organization": {"id": 984}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "owner": {"id": 458}, "assignee": {"id": 547}, "organization": {"id": 137}, "project": {"owner": {"id": 780}, "assignee": {"id": 831}, "organization": {"id": 932}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "owner": {"id": 492}, "assignee": {"id": 505}, "organization": {"id": 664}, "project": {"owner": {"id": 766}, "assignee": {"id": 844}, "organization": {"id": 929}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "owner": {"id": 410}, "assignee": {"id": 577}, "organization": {"id": 157}, "project": {"owner": {"id": 723}, "assignee": {"id": 856}, "organization": {"id": 992}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 426}, "assignee": {"id": 536}, "organization": {"id": 606}, "project": {"owner": {"id": 763}, "assignee": {"id": 874}, "organization": {"id": 987}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 364, "owner": {"id": 410}, "assignee": {"id": 571}, "organization": {"id": 162}, "project": {"owner": {"id": 749}, "assignee": {"id": 884}, "organization": {"id": 960}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 412}, "assignee": {"id": 515}, "organization": {"id": 600}, "project": {"owner": {"id": 728}, "assignee": {"id": 836}, "organization": {"id": 905}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 213}, "user": {"role": null}}}, "resource": {"id": 328, "owner": {"id": 455}, "assignee": {"id": 508}, "organization": {"id": 133}, "project": {"owner": {"id": 739}, "assignee": {"id": 840}, "organization": {"id": 958}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 360, "owner": {"id": 480}, "assignee": {"id": 578}, "organization": {"id": 608}, "project": {"owner": {"id": 764}, "assignee": {"id": 834}, "organization": {"id": 981}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 307, "owner": {"id": 403}, "assignee": {"id": 596}, "organization": {"id": 187}, "project": {"owner": {"id": 711}, "assignee": {"id": 829}, "organization": {"id": 930}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 321, "owner": {"id": 492}, "assignee": {"id": 515}, "organization": {"id": 635}, "project": {"owner": {"id": 770}, "assignee": {"id": 875}, "organization": {"id": 902}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 493}, "assignee": {"id": 531}, "organization": {"id": 145}, "project": {"owner": {"id": 782}, "assignee": {"id": 873}, "organization": {"id": 920}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "owner": {"id": 471}, "assignee": {"id": 592}, "organization": {"id": 609}, "project": {"owner": {"id": 774}, "assignee": {"id": 819}, "organization": {"id": 959}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 436}, "assignee": {"id": 531}, "organization": {"id": 141}, "project": {"owner": {"id": 757}, "assignee": {"id": 890}, "organization": {"id": 953}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 466}, "assignee": {"id": 593}, "organization": {"id": 694}, "project": {"owner": {"id": 739}, "assignee": {"id": 854}, "organization": {"id": 971}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 388, "owner": {"id": 481}, "assignee": {"id": 569}, "organization": {"id": 179}, "project": {"owner": {"id": 725}, "assignee": {"id": 826}, "organization": {"id": 950}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 439}, "assignee": {"id": 562}, "organization": {"id": 605}, "project": {"owner": {"id": 780}, "assignee": {"id": 875}, "organization": {"id": 913}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 394, "owner": {"id": 488}, "assignee": {"id": 515}, "organization": {"id": 196}, "project": {"owner": {"id": 723}, "assignee": {"id": 889}, "organization": {"id": 986}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 365, "owner": {"id": 428}, "assignee": {"id": 528}, "organization": {"id": 666}, "project": {"owner": {"id": 716}, "assignee": {"id": 895}, "organization": {"id": 948}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 460}, "assignee": {"id": 568}, "organization": {"id": 109}, "project": {"owner": {"id": 799}, "assignee": {"id": 874}, "organization": {"id": 948}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 348, "owner": {"id": 451}, "assignee": {"id": 552}, "organization": {"id": 687}, "project": {"owner": {"id": 778}, "assignee": {"id": 874}, "organization": {"id": 915}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 372, "owner": {"id": 420}, "assignee": {"id": 593}, "organization": {"id": 186}, "project": {"owner": {"id": 758}, "assignee": {"id": 857}, "organization": {"id": 986}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "owner": {"id": 454}, "assignee": {"id": 589}, "organization": {"id": 648}, "project": {"owner": {"id": 745}, "assignee": {"id": 858}, "organization": {"id": 937}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 476}, "assignee": {"id": 557}, "organization": {"id": 162}, "project": {"owner": {"id": 784}, "assignee": {"id": 840}, "organization": {"id": 976}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "owner": {"id": 427}, "assignee": {"id": 588}, "organization": {"id": 685}, "project": {"owner": {"id": 780}, "assignee": {"id": 864}, "organization": {"id": 902}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 304, "owner": {"id": 493}, "assignee": {"id": 552}, "organization": {"id": 131}, "project": {"owner": {"id": 717}, "assignee": {"id": 824}, "organization": {"id": 983}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 430}, "assignee": {"id": 528}, "organization": {"id": 672}, "project": {"owner": {"id": 730}, "assignee": {"id": 835}, "organization": {"id": 959}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 311, "owner": {"id": 485}, "assignee": {"id": 592}, "organization": {"id": 151}, "project": {"owner": {"id": 755}, "assignee": {"id": 863}, "organization": {"id": 971}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 357, "owner": {"id": 406}, "assignee": {"id": 557}, "organization": {"id": 631}, "project": {"owner": {"id": 782}, "assignee": {"id": 869}, "organization": {"id": 947}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": null}, "resource": {"id": 386, "owner": {"id": 476}, "assignee": {"id": 592}, "organization": {"id": 601}, "project": {"owner": {"id": 87}, "assignee": {"id": 816}, "organization": {"id": 924}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 31, "privilege": "business"}, "organization": null}, "resource": {"id": 320, "owner": {"id": 471}, "assignee": {"id": 585}, "organization": {"id": 663}, "project": {"owner": {"id": 31}, "assignee": {"id": 810}, "organization": {"id": 991}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": null}, "resource": {"id": 338, "owner": {"id": 441}, "assignee": {"id": 510}, "organization": {"id": 623}, "project": {"owner": {"id": 46}, "assignee": {"id": 826}, "organization": {"id": 943}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": null}, "resource": {"id": 339, "owner": {"id": 443}, "assignee": {"id": 519}, "organization": {"id": 635}, "project": {"owner": {"id": 35}, "assignee": {"id": 870}, "organization": {"id": 955}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": null}, "resource": {"id": 382, "owner": {"id": 402}, "assignee": {"id": 546}, "organization": {"id": 606}, "project": {"owner": {"id": 27}, "assignee": {"id": 812}, "organization": {"id": 949}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": null}, "resource": {"id": 362, "owner": {"id": 479}, "assignee": {"id": 510}, "organization": {"id": 612}, "project": {"owner": {"id": 760}, "assignee": {"id": 19}, "organization": {"id": 978}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": null}, "resource": {"id": 348, "owner": {"id": 416}, "assignee": {"id": 576}, "organization": {"id": 662}, "project": {"owner": {"id": 700}, "assignee": {"id": 55}, "organization": {"id": 966}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": null}, "resource": {"id": 304, "owner": {"id": 449}, "assignee": {"id": 588}, "organization": {"id": 641}, "project": {"owner": {"id": 723}, "assignee": {"id": 27}, "organization": {"id": 944}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": null}, "resource": {"id": 321, "owner": {"id": 436}, "assignee": {"id": 566}, "organization": {"id": 632}, "project": {"owner": {"id": 774}, "assignee": {"id": 14}, "organization": {"id": 954}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": null}, "resource": {"id": 321, "owner": {"id": 440}, "assignee": {"id": 511}, "organization": {"id": 602}, "project": {"owner": {"id": 701}, "assignee": {"id": 21}, "organization": {"id": 921}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": null}, "resource": {"id": 310, "owner": {"id": 49}, "assignee": {"id": 523}, "organization": {"id": 617}, "project": {"owner": {"id": 782}, "assignee": {"id": 865}, "organization": {"id": 953}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": null}, "resource": {"id": 339, "owner": {"id": 43}, "assignee": {"id": 523}, "organization": {"id": 693}, "project": {"owner": {"id": 772}, "assignee": {"id": 888}, "organization": {"id": 997}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": null}, "resource": {"id": 314, "owner": {"id": 89}, "assignee": {"id": 543}, "organization": {"id": 638}, "project": {"owner": {"id": 718}, "assignee": {"id": 814}, "organization": {"id": 914}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": null}, "resource": {"id": 340, "owner": {"id": 64}, "assignee": {"id": 585}, "organization": {"id": 665}, "project": {"owner": {"id": 777}, "assignee": {"id": 880}, "organization": {"id": 984}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": null}, "resource": {"id": 302, "owner": {"id": 44}, "assignee": {"id": 589}, "organization": {"id": 630}, "project": {"owner": {"id": 790}, "assignee": {"id": 806}, "organization": {"id": 957}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": null}, "resource": {"id": 398, "owner": {"id": 452}, "assignee": {"id": 0}, "organization": {"id": 670}, "project": {"owner": {"id": 765}, "assignee": {"id": 893}, "organization": {"id": 915}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": null}, "resource": {"id": 302, "owner": {"id": 407}, "assignee": {"id": 56}, "organization": {"id": 684}, "project": {"owner": {"id": 717}, "assignee": {"id": 844}, "organization": {"id": 977}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": null}, "resource": {"id": 389, "owner": {"id": 419}, "assignee": {"id": 30}, "organization": {"id": 682}, "project": {"owner": {"id": 738}, "assignee": {"id": 823}, "organization": {"id": 901}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": null}, "resource": {"id": 355, "owner": {"id": 412}, "assignee": {"id": 57}, "organization": {"id": 642}, "project": {"owner": {"id": 783}, "assignee": {"id": 833}, "organization": {"id": 917}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": null}, "resource": {"id": 319, "owner": {"id": 414}, "assignee": {"id": 32}, "organization": {"id": 619}, "project": {"owner": {"id": 790}, "assignee": {"id": 875}, "organization": {"id": 953}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": null}, "resource": {"id": 360, "owner": {"id": 455}, "assignee": {"id": 594}, "organization": {"id": 649}, "project": {"owner": {"id": 774}, "assignee": {"id": 896}, "organization": {"id": 991}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": null}, "resource": {"id": 378, "owner": {"id": 420}, "assignee": {"id": 556}, "organization": {"id": 696}, "project": {"owner": {"id": 701}, "assignee": {"id": 878}, "organization": {"id": 987}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": null}, "resource": {"id": 367, "owner": {"id": 429}, "assignee": {"id": 573}, "organization": {"id": 623}, "project": {"owner": {"id": 794}, "assignee": {"id": 876}, "organization": {"id": 901}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": null}, "resource": {"id": 320, "owner": {"id": 427}, "assignee": {"id": 582}, "organization": {"id": 691}, "project": {"owner": {"id": 734}, "assignee": {"id": 886}, "organization": {"id": 934}}}} -} - -test_scope_VIEW_METADATA_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": null}, "resource": {"id": 318, "owner": {"id": 442}, "assignee": {"id": 592}, "organization": {"id": 673}, "project": {"owner": {"id": 799}, "assignee": {"id": 814}, "organization": {"id": 926}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 327, "owner": {"id": 407}, "assignee": {"id": 579}, "organization": {"id": 178}, "project": {"owner": {"id": 30}, "assignee": {"id": 871}, "organization": {"id": 903}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 392, "owner": {"id": 427}, "assignee": {"id": 532}, "organization": {"id": 651}, "project": {"owner": {"id": 6}, "assignee": {"id": 850}, "organization": {"id": 920}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 427}, "assignee": {"id": 572}, "organization": {"id": 181}, "project": {"owner": {"id": 84}, "assignee": {"id": 811}, "organization": {"id": 997}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "owner": {"id": 470}, "assignee": {"id": 520}, "organization": {"id": 666}, "project": {"owner": {"id": 65}, "assignee": {"id": 872}, "organization": {"id": 910}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 441}, "assignee": {"id": 501}, "organization": {"id": 168}, "project": {"owner": {"id": 38}, "assignee": {"id": 879}, "organization": {"id": 964}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "owner": {"id": 443}, "assignee": {"id": 501}, "organization": {"id": 646}, "project": {"owner": {"id": 15}, "assignee": {"id": 850}, "organization": {"id": 965}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 387, "owner": {"id": 411}, "assignee": {"id": 533}, "organization": {"id": 150}, "project": {"owner": {"id": 42}, "assignee": {"id": 858}, "organization": {"id": 964}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 381, "owner": {"id": 452}, "assignee": {"id": 520}, "organization": {"id": 609}, "project": {"owner": {"id": 50}, "assignee": {"id": 890}, "organization": {"id": 996}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 491}, "assignee": {"id": 522}, "organization": {"id": 134}, "project": {"owner": {"id": 39}, "assignee": {"id": 864}, "organization": {"id": 915}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 352, "owner": {"id": 444}, "assignee": {"id": 510}, "organization": {"id": 690}, "project": {"owner": {"id": 57}, "assignee": {"id": 875}, "organization": {"id": 977}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 383, "owner": {"id": 404}, "assignee": {"id": 508}, "organization": {"id": 131}, "project": {"owner": {"id": 27}, "assignee": {"id": 849}, "organization": {"id": 995}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 333, "owner": {"id": 441}, "assignee": {"id": 541}, "organization": {"id": 636}, "project": {"owner": {"id": 16}, "assignee": {"id": 800}, "organization": {"id": 911}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "owner": {"id": 409}, "assignee": {"id": 578}, "organization": {"id": 171}, "project": {"owner": {"id": 38}, "assignee": {"id": 882}, "organization": {"id": 964}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 410}, "assignee": {"id": 516}, "organization": {"id": 606}, "project": {"owner": {"id": 7}, "assignee": {"id": 877}, "organization": {"id": 931}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "owner": {"id": 479}, "assignee": {"id": 591}, "organization": {"id": 183}, "project": {"owner": {"id": 19}, "assignee": {"id": 872}, "organization": {"id": 989}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "owner": {"id": 491}, "assignee": {"id": 505}, "organization": {"id": 621}, "project": {"owner": {"id": 63}, "assignee": {"id": 839}, "organization": {"id": 908}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 375, "owner": {"id": 456}, "assignee": {"id": 505}, "organization": {"id": 170}, "project": {"owner": {"id": 89}, "assignee": {"id": 867}, "organization": {"id": 925}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 370, "owner": {"id": 421}, "assignee": {"id": 548}, "organization": {"id": 690}, "project": {"owner": {"id": 7}, "assignee": {"id": 857}, "organization": {"id": 937}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 400}, "assignee": {"id": 576}, "organization": {"id": 188}, "project": {"owner": {"id": 41}, "assignee": {"id": 862}, "organization": {"id": 928}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 374, "owner": {"id": 484}, "assignee": {"id": 552}, "organization": {"id": 623}, "project": {"owner": {"id": 44}, "assignee": {"id": 885}, "organization": {"id": 976}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 393, "owner": {"id": 414}, "assignee": {"id": 518}, "organization": {"id": 106}, "project": {"owner": {"id": 24}, "assignee": {"id": 846}, "organization": {"id": 942}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 320, "owner": {"id": 443}, "assignee": {"id": 528}, "organization": {"id": 632}, "project": {"owner": {"id": 93}, "assignee": {"id": 825}, "organization": {"id": 955}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "owner": {"id": 474}, "assignee": {"id": 528}, "organization": {"id": 142}, "project": {"owner": {"id": 81}, "assignee": {"id": 854}, "organization": {"id": 960}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "owner": {"id": 437}, "assignee": {"id": 502}, "organization": {"id": 626}, "project": {"owner": {"id": 65}, "assignee": {"id": 811}, "organization": {"id": 934}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "owner": {"id": 409}, "assignee": {"id": 579}, "organization": {"id": 163}, "project": {"owner": {"id": 89}, "assignee": {"id": 842}, "organization": {"id": 996}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 444}, "assignee": {"id": 547}, "organization": {"id": 640}, "project": {"owner": {"id": 50}, "assignee": {"id": 820}, "organization": {"id": 912}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 383, "owner": {"id": 499}, "assignee": {"id": 599}, "organization": {"id": 119}, "project": {"owner": {"id": 0}, "assignee": {"id": 845}, "organization": {"id": 940}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 436}, "assignee": {"id": 547}, "organization": {"id": 601}, "project": {"owner": {"id": 93}, "assignee": {"id": 866}, "organization": {"id": 926}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 420}, "assignee": {"id": 519}, "organization": {"id": 125}, "project": {"owner": {"id": 73}, "assignee": {"id": 836}, "organization": {"id": 974}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 319, "owner": {"id": 493}, "assignee": {"id": 568}, "organization": {"id": 681}, "project": {"owner": {"id": 91}, "assignee": {"id": 893}, "organization": {"id": 991}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 474}, "assignee": {"id": 567}, "organization": {"id": 186}, "project": {"owner": {"id": 80}, "assignee": {"id": 803}, "organization": {"id": 951}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 492}, "assignee": {"id": 523}, "organization": {"id": 667}, "project": {"owner": {"id": 93}, "assignee": {"id": 836}, "organization": {"id": 939}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "owner": {"id": 422}, "assignee": {"id": 584}, "organization": {"id": 197}, "project": {"owner": {"id": 32}, "assignee": {"id": 854}, "organization": {"id": 913}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "owner": {"id": 429}, "assignee": {"id": 583}, "organization": {"id": 656}, "project": {"owner": {"id": 20}, "assignee": {"id": 858}, "organization": {"id": 981}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 390, "owner": {"id": 417}, "assignee": {"id": 503}, "organization": {"id": 123}, "project": {"owner": {"id": 6}, "assignee": {"id": 881}, "organization": {"id": 944}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "owner": {"id": 437}, "assignee": {"id": 500}, "organization": {"id": 656}, "project": {"owner": {"id": 77}, "assignee": {"id": 878}, "organization": {"id": 929}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 471}, "assignee": {"id": 565}, "organization": {"id": 174}, "project": {"owner": {"id": 47}, "assignee": {"id": 833}, "organization": {"id": 965}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 498}, "assignee": {"id": 576}, "organization": {"id": 603}, "project": {"owner": {"id": 21}, "assignee": {"id": 845}, "organization": {"id": 933}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 457}, "assignee": {"id": 566}, "organization": {"id": 198}, "project": {"owner": {"id": 13}, "assignee": {"id": 805}, "organization": {"id": 939}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 363, "owner": {"id": 413}, "assignee": {"id": 533}, "organization": {"id": 600}, "project": {"owner": {"id": 66}, "assignee": {"id": 865}, "organization": {"id": 996}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 497}, "assignee": {"id": 544}, "organization": {"id": 175}, "project": {"owner": {"id": 78}, "assignee": {"id": 889}, "organization": {"id": 951}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 317, "owner": {"id": 475}, "assignee": {"id": 514}, "organization": {"id": 682}, "project": {"owner": {"id": 98}, "assignee": {"id": 858}, "organization": {"id": 980}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 408}, "assignee": {"id": 550}, "organization": {"id": 139}, "project": {"owner": {"id": 1}, "assignee": {"id": 836}, "organization": {"id": 986}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 451}, "assignee": {"id": 588}, "organization": {"id": 630}, "project": {"owner": {"id": 79}, "assignee": {"id": 801}, "organization": {"id": 999}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 460}, "assignee": {"id": 599}, "organization": {"id": 140}, "project": {"owner": {"id": 13}, "assignee": {"id": 812}, "organization": {"id": 939}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "owner": {"id": 423}, "assignee": {"id": 598}, "organization": {"id": 664}, "project": {"owner": {"id": 48}, "assignee": {"id": 817}, "organization": {"id": 959}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 413}, "assignee": {"id": 555}, "organization": {"id": 152}, "project": {"owner": {"id": 35}, "assignee": {"id": 899}, "organization": {"id": 956}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 348, "owner": {"id": 497}, "assignee": {"id": 556}, "organization": {"id": 671}, "project": {"owner": {"id": 87}, "assignee": {"id": 853}, "organization": {"id": 926}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 437}, "assignee": {"id": 530}, "organization": {"id": 112}, "project": {"owner": {"id": 14}, "assignee": {"id": 883}, "organization": {"id": 990}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 366, "owner": {"id": 447}, "assignee": {"id": 575}, "organization": {"id": 647}, "project": {"owner": {"id": 63}, "assignee": {"id": 839}, "organization": {"id": 909}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 366, "owner": {"id": 463}, "assignee": {"id": 538}, "organization": {"id": 181}, "project": {"owner": {"id": 770}, "assignee": {"id": 52}, "organization": {"id": 940}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 334, "owner": {"id": 493}, "assignee": {"id": 594}, "organization": {"id": 626}, "project": {"owner": {"id": 722}, "assignee": {"id": 1}, "organization": {"id": 911}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "owner": {"id": 421}, "assignee": {"id": 584}, "organization": {"id": 134}, "project": {"owner": {"id": 766}, "assignee": {"id": 15}, "organization": {"id": 988}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "owner": {"id": 498}, "assignee": {"id": 508}, "organization": {"id": 634}, "project": {"owner": {"id": 709}, "assignee": {"id": 11}, "organization": {"id": 910}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "owner": {"id": 410}, "assignee": {"id": 582}, "organization": {"id": 171}, "project": {"owner": {"id": 739}, "assignee": {"id": 89}, "organization": {"id": 933}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 340, "owner": {"id": 487}, "assignee": {"id": 560}, "organization": {"id": 672}, "project": {"owner": {"id": 755}, "assignee": {"id": 35}, "organization": {"id": 975}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 464}, "assignee": {"id": 507}, "organization": {"id": 141}, "project": {"owner": {"id": 794}, "assignee": {"id": 32}, "organization": {"id": 922}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 368, "owner": {"id": 419}, "assignee": {"id": 533}, "organization": {"id": 699}, "project": {"owner": {"id": 761}, "assignee": {"id": 65}, "organization": {"id": 901}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 363, "owner": {"id": 405}, "assignee": {"id": 574}, "organization": {"id": 157}, "project": {"owner": {"id": 759}, "assignee": {"id": 46}, "organization": {"id": 982}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 393, "owner": {"id": 424}, "assignee": {"id": 552}, "organization": {"id": 688}, "project": {"owner": {"id": 736}, "assignee": {"id": 35}, "organization": {"id": 942}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 339, "owner": {"id": 486}, "assignee": {"id": 559}, "organization": {"id": 180}, "project": {"owner": {"id": 722}, "assignee": {"id": 13}, "organization": {"id": 979}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 384, "owner": {"id": 437}, "assignee": {"id": 551}, "organization": {"id": 651}, "project": {"owner": {"id": 755}, "assignee": {"id": 16}, "organization": {"id": 980}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "owner": {"id": 489}, "assignee": {"id": 522}, "organization": {"id": 199}, "project": {"owner": {"id": 758}, "assignee": {"id": 96}, "organization": {"id": 916}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 389, "owner": {"id": 414}, "assignee": {"id": 592}, "organization": {"id": 666}, "project": {"owner": {"id": 782}, "assignee": {"id": 65}, "organization": {"id": 903}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "owner": {"id": 426}, "assignee": {"id": 538}, "organization": {"id": 174}, "project": {"owner": {"id": 793}, "assignee": {"id": 29}, "organization": {"id": 944}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "owner": {"id": 405}, "assignee": {"id": 570}, "organization": {"id": 622}, "project": {"owner": {"id": 772}, "assignee": {"id": 88}, "organization": {"id": 902}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 392, "owner": {"id": 441}, "assignee": {"id": 549}, "organization": {"id": 171}, "project": {"owner": {"id": 776}, "assignee": {"id": 17}, "organization": {"id": 905}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 400}, "assignee": {"id": 519}, "organization": {"id": 657}, "project": {"owner": {"id": 766}, "assignee": {"id": 88}, "organization": {"id": 953}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 470}, "assignee": {"id": 591}, "organization": {"id": 186}, "project": {"owner": {"id": 779}, "assignee": {"id": 87}, "organization": {"id": 913}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 476}, "assignee": {"id": 507}, "organization": {"id": 633}, "project": {"owner": {"id": 736}, "assignee": {"id": 10}, "organization": {"id": 941}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 362, "owner": {"id": 481}, "assignee": {"id": 577}, "organization": {"id": 155}, "project": {"owner": {"id": 751}, "assignee": {"id": 97}, "organization": {"id": 902}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 369, "owner": {"id": 498}, "assignee": {"id": 516}, "organization": {"id": 631}, "project": {"owner": {"id": 787}, "assignee": {"id": 1}, "organization": {"id": 918}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 301, "owner": {"id": 487}, "assignee": {"id": 581}, "organization": {"id": 153}, "project": {"owner": {"id": 776}, "assignee": {"id": 1}, "organization": {"id": 968}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 493}, "assignee": {"id": 570}, "organization": {"id": 617}, "project": {"owner": {"id": 780}, "assignee": {"id": 40}, "organization": {"id": 954}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "owner": {"id": 400}, "assignee": {"id": 578}, "organization": {"id": 116}, "project": {"owner": {"id": 719}, "assignee": {"id": 15}, "organization": {"id": 921}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "owner": {"id": 413}, "assignee": {"id": 551}, "organization": {"id": 679}, "project": {"owner": {"id": 702}, "assignee": {"id": 68}, "organization": {"id": 940}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 322, "owner": {"id": 491}, "assignee": {"id": 519}, "organization": {"id": 139}, "project": {"owner": {"id": 721}, "assignee": {"id": 28}, "organization": {"id": 918}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 317, "owner": {"id": 434}, "assignee": {"id": 509}, "organization": {"id": 698}, "project": {"owner": {"id": 750}, "assignee": {"id": 27}, "organization": {"id": 966}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 382, "owner": {"id": 485}, "assignee": {"id": 510}, "organization": {"id": 176}, "project": {"owner": {"id": 796}, "assignee": {"id": 82}, "organization": {"id": 974}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 369, "owner": {"id": 485}, "assignee": {"id": 521}, "organization": {"id": 685}, "project": {"owner": {"id": 721}, "assignee": {"id": 24}, "organization": {"id": 987}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 174, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 493}, "assignee": {"id": 538}, "organization": {"id": 174}, "project": {"owner": {"id": 796}, "assignee": {"id": 77}, "organization": {"id": 915}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 356, "owner": {"id": 410}, "assignee": {"id": 505}, "organization": {"id": 665}, "project": {"owner": {"id": 790}, "assignee": {"id": 65}, "organization": {"id": 998}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "owner": {"id": 414}, "assignee": {"id": 530}, "organization": {"id": 140}, "project": {"owner": {"id": 729}, "assignee": {"id": 88}, "organization": {"id": 996}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "owner": {"id": 422}, "assignee": {"id": 510}, "organization": {"id": 699}, "project": {"owner": {"id": 733}, "assignee": {"id": 45}, "organization": {"id": 984}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "owner": {"id": 416}, "assignee": {"id": 519}, "organization": {"id": 166}, "project": {"owner": {"id": 703}, "assignee": {"id": 33}, "organization": {"id": 906}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 387, "owner": {"id": 481}, "assignee": {"id": 579}, "organization": {"id": 663}, "project": {"owner": {"id": 733}, "assignee": {"id": 21}, "organization": {"id": 932}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 343, "owner": {"id": 478}, "assignee": {"id": 587}, "organization": {"id": 132}, "project": {"owner": {"id": 725}, "assignee": {"id": 62}, "organization": {"id": 927}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 346, "owner": {"id": 482}, "assignee": {"id": 506}, "organization": {"id": 667}, "project": {"owner": {"id": 727}, "assignee": {"id": 28}, "organization": {"id": 934}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 496}, "assignee": {"id": 506}, "organization": {"id": 131}, "project": {"owner": {"id": 784}, "assignee": {"id": 70}, "organization": {"id": 982}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 381, "owner": {"id": 458}, "assignee": {"id": 562}, "organization": {"id": 631}, "project": {"owner": {"id": 755}, "assignee": {"id": 48}, "organization": {"id": 985}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 464}, "assignee": {"id": 545}, "organization": {"id": 193}, "project": {"owner": {"id": 766}, "assignee": {"id": 11}, "organization": {"id": 962}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 440}, "assignee": {"id": 559}, "organization": {"id": 629}, "project": {"owner": {"id": 728}, "assignee": {"id": 28}, "organization": {"id": 942}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 498}, "assignee": {"id": 575}, "organization": {"id": 195}, "project": {"owner": {"id": 723}, "assignee": {"id": 92}, "organization": {"id": 968}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "owner": {"id": 486}, "assignee": {"id": 507}, "organization": {"id": 641}, "project": {"owner": {"id": 755}, "assignee": {"id": 37}, "organization": {"id": 993}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 348, "owner": {"id": 497}, "assignee": {"id": 513}, "organization": {"id": 115}, "project": {"owner": {"id": 721}, "assignee": {"id": 67}, "organization": {"id": 994}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 19, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "owner": {"id": 486}, "assignee": {"id": 505}, "organization": {"id": 659}, "project": {"owner": {"id": 777}, "assignee": {"id": 19}, "organization": {"id": 951}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 304, "owner": {"id": 473}, "assignee": {"id": 578}, "organization": {"id": 117}, "project": {"owner": {"id": 720}, "assignee": {"id": 84}, "organization": {"id": 933}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 441}, "assignee": {"id": 554}, "organization": {"id": 614}, "project": {"owner": {"id": 757}, "assignee": {"id": 57}, "organization": {"id": 931}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 460}, "assignee": {"id": 593}, "organization": {"id": 141}, "project": {"owner": {"id": 702}, "assignee": {"id": 57}, "organization": {"id": 914}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 61, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 342, "owner": {"id": 442}, "assignee": {"id": 588}, "organization": {"id": 650}, "project": {"owner": {"id": 758}, "assignee": {"id": 61}, "organization": {"id": 937}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 314, "owner": {"id": 33}, "assignee": {"id": 553}, "organization": {"id": 188}, "project": {"owner": {"id": 791}, "assignee": {"id": 838}, "organization": {"id": 938}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 377, "owner": {"id": 89}, "assignee": {"id": 572}, "organization": {"id": 605}, "project": {"owner": {"id": 790}, "assignee": {"id": 862}, "organization": {"id": 915}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 30}, "assignee": {"id": 566}, "organization": {"id": 102}, "project": {"owner": {"id": 791}, "assignee": {"id": 865}, "organization": {"id": 906}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "owner": {"id": 93}, "assignee": {"id": 573}, "organization": {"id": 617}, "project": {"owner": {"id": 728}, "assignee": {"id": 886}, "organization": {"id": 986}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 371, "owner": {"id": 15}, "assignee": {"id": 528}, "organization": {"id": 199}, "project": {"owner": {"id": 715}, "assignee": {"id": 868}, "organization": {"id": 961}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 390, "owner": {"id": 24}, "assignee": {"id": 587}, "organization": {"id": 602}, "project": {"owner": {"id": 725}, "assignee": {"id": 878}, "organization": {"id": 980}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 329, "owner": {"id": 26}, "assignee": {"id": 501}, "organization": {"id": 113}, "project": {"owner": {"id": 796}, "assignee": {"id": 847}, "organization": {"id": 934}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 47}, "assignee": {"id": 528}, "organization": {"id": 613}, "project": {"owner": {"id": 719}, "assignee": {"id": 891}, "organization": {"id": 973}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 399, "owner": {"id": 13}, "assignee": {"id": 570}, "organization": {"id": 198}, "project": {"owner": {"id": 780}, "assignee": {"id": 893}, "organization": {"id": 969}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 369, "owner": {"id": 29}, "assignee": {"id": 589}, "organization": {"id": 646}, "project": {"owner": {"id": 772}, "assignee": {"id": 872}, "organization": {"id": 959}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 322, "owner": {"id": 79}, "assignee": {"id": 574}, "organization": {"id": 175}, "project": {"owner": {"id": 761}, "assignee": {"id": 867}, "organization": {"id": 904}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 26, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 366, "owner": {"id": 26}, "assignee": {"id": 589}, "organization": {"id": 684}, "project": {"owner": {"id": 773}, "assignee": {"id": 869}, "organization": {"id": 950}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 58}, "assignee": {"id": 553}, "organization": {"id": 171}, "project": {"owner": {"id": 703}, "assignee": {"id": 835}, "organization": {"id": 954}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "owner": {"id": 74}, "assignee": {"id": 598}, "organization": {"id": 628}, "project": {"owner": {"id": 769}, "assignee": {"id": 808}, "organization": {"id": 949}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "owner": {"id": 83}, "assignee": {"id": 569}, "organization": {"id": 148}, "project": {"owner": {"id": 761}, "assignee": {"id": 805}, "organization": {"id": 959}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "owner": {"id": 75}, "assignee": {"id": 595}, "organization": {"id": 652}, "project": {"owner": {"id": 732}, "assignee": {"id": 834}, "organization": {"id": 935}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 369, "owner": {"id": 85}, "assignee": {"id": 510}, "organization": {"id": 121}, "project": {"owner": {"id": 713}, "assignee": {"id": 843}, "organization": {"id": 933}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 94, "privilege": "business"}, "organization": {"id": 113, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 94}, "assignee": {"id": 541}, "organization": {"id": 642}, "project": {"owner": {"id": 758}, "assignee": {"id": 829}, "organization": {"id": 901}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 395, "owner": {"id": 38}, "assignee": {"id": 567}, "organization": {"id": 122}, "project": {"owner": {"id": 717}, "assignee": {"id": 843}, "organization": {"id": 964}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 302, "owner": {"id": 62}, "assignee": {"id": 520}, "organization": {"id": 682}, "project": {"owner": {"id": 793}, "assignee": {"id": 860}, "organization": {"id": 923}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 320, "owner": {"id": 93}, "assignee": {"id": 587}, "organization": {"id": 185}, "project": {"owner": {"id": 721}, "assignee": {"id": 862}, "organization": {"id": 999}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"id": 330, "owner": {"id": 8}, "assignee": {"id": 515}, "organization": {"id": 689}, "project": {"owner": {"id": 734}, "assignee": {"id": 828}, "organization": {"id": 936}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "owner": {"id": 96}, "assignee": {"id": 569}, "organization": {"id": 146}, "project": {"owner": {"id": 753}, "assignee": {"id": 859}, "organization": {"id": 956}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "owner": {"id": 73}, "assignee": {"id": 559}, "organization": {"id": 656}, "project": {"owner": {"id": 759}, "assignee": {"id": 814}, "organization": {"id": 983}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "owner": {"id": 50}, "assignee": {"id": 503}, "organization": {"id": 193}, "project": {"owner": {"id": 724}, "assignee": {"id": 889}, "organization": {"id": 938}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 48}, "assignee": {"id": 536}, "organization": {"id": 697}, "project": {"owner": {"id": 796}, "assignee": {"id": 807}, "organization": {"id": 978}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 333, "owner": {"id": 64}, "assignee": {"id": 582}, "organization": {"id": 162}, "project": {"owner": {"id": 755}, "assignee": {"id": 880}, "organization": {"id": 976}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 354, "owner": {"id": 16}, "assignee": {"id": 537}, "organization": {"id": 696}, "project": {"owner": {"id": 751}, "assignee": {"id": 820}, "organization": {"id": 978}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 397, "owner": {"id": 2}, "assignee": {"id": 561}, "organization": {"id": 141}, "project": {"owner": {"id": 724}, "assignee": {"id": 849}, "organization": {"id": 998}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 2}, "assignee": {"id": 500}, "organization": {"id": 669}, "project": {"owner": {"id": 708}, "assignee": {"id": 810}, "organization": {"id": 901}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 93}, "assignee": {"id": 569}, "organization": {"id": 152}, "project": {"owner": {"id": 714}, "assignee": {"id": 866}, "organization": {"id": 920}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 86}, "assignee": {"id": 532}, "organization": {"id": 609}, "project": {"owner": {"id": 775}, "assignee": {"id": 869}, "organization": {"id": 962}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 11}, "assignee": {"id": 523}, "organization": {"id": 179}, "project": {"owner": {"id": 707}, "assignee": {"id": 893}, "organization": {"id": 965}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "owner": {"id": 83}, "assignee": {"id": 586}, "organization": {"id": 619}, "project": {"owner": {"id": 720}, "assignee": {"id": 860}, "organization": {"id": 933}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 36}, "assignee": {"id": 588}, "organization": {"id": 161}, "project": {"owner": {"id": 792}, "assignee": {"id": 836}, "organization": {"id": 998}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "owner": {"id": 36}, "assignee": {"id": 563}, "organization": {"id": 690}, "project": {"owner": {"id": 776}, "assignee": {"id": 822}, "organization": {"id": 937}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 52}, "assignee": {"id": 558}, "organization": {"id": 150}, "project": {"owner": {"id": 758}, "assignee": {"id": 839}, "organization": {"id": 903}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 16}, "assignee": {"id": 572}, "organization": {"id": 698}, "project": {"owner": {"id": 773}, "assignee": {"id": 895}, "organization": {"id": 933}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 398, "owner": {"id": 68}, "assignee": {"id": 515}, "organization": {"id": 121}, "project": {"owner": {"id": 760}, "assignee": {"id": 854}, "organization": {"id": 977}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"id": 357, "owner": {"id": 77}, "assignee": {"id": 510}, "organization": {"id": 671}, "project": {"owner": {"id": 716}, "assignee": {"id": 840}, "organization": {"id": 992}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 369, "owner": {"id": 76}, "assignee": {"id": 566}, "organization": {"id": 108}, "project": {"owner": {"id": 763}, "assignee": {"id": 872}, "organization": {"id": 903}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 40}, "assignee": {"id": 522}, "organization": {"id": 610}, "project": {"owner": {"id": 720}, "assignee": {"id": 851}, "organization": {"id": 927}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "owner": {"id": 49}, "assignee": {"id": 555}, "organization": {"id": 121}, "project": {"owner": {"id": 709}, "assignee": {"id": 804}, "organization": {"id": 922}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "owner": {"id": 24}, "assignee": {"id": 596}, "organization": {"id": 694}, "project": {"owner": {"id": 713}, "assignee": {"id": 877}, "organization": {"id": 925}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 86}, "assignee": {"id": 564}, "organization": {"id": 123}, "project": {"owner": {"id": 737}, "assignee": {"id": 829}, "organization": {"id": 962}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 45}, "assignee": {"id": 532}, "organization": {"id": 603}, "project": {"owner": {"id": 792}, "assignee": {"id": 812}, "organization": {"id": 921}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 307, "owner": {"id": 8}, "assignee": {"id": 533}, "organization": {"id": 169}, "project": {"owner": {"id": 723}, "assignee": {"id": 805}, "organization": {"id": 972}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 364, "owner": {"id": 79}, "assignee": {"id": 583}, "organization": {"id": 615}, "project": {"owner": {"id": 719}, "assignee": {"id": 837}, "organization": {"id": 961}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 24}, "assignee": {"id": 584}, "organization": {"id": 112}, "project": {"owner": {"id": 765}, "assignee": {"id": 826}, "organization": {"id": 903}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"id": 321, "owner": {"id": 27}, "assignee": {"id": 595}, "organization": {"id": 634}, "project": {"owner": {"id": 706}, "assignee": {"id": 878}, "organization": {"id": 978}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 310, "owner": {"id": 427}, "assignee": {"id": 67}, "organization": {"id": 114}, "project": {"owner": {"id": 787}, "assignee": {"id": 868}, "organization": {"id": 933}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 394, "owner": {"id": 483}, "assignee": {"id": 63}, "organization": {"id": 691}, "project": {"owner": {"id": 776}, "assignee": {"id": 894}, "organization": {"id": 948}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "owner": {"id": 471}, "assignee": {"id": 0}, "organization": {"id": 165}, "project": {"owner": {"id": 708}, "assignee": {"id": 879}, "organization": {"id": 919}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 479}, "assignee": {"id": 43}, "organization": {"id": 654}, "project": {"owner": {"id": 744}, "assignee": {"id": 831}, "organization": {"id": 965}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 405}, "assignee": {"id": 87}, "organization": {"id": 144}, "project": {"owner": {"id": 769}, "assignee": {"id": 837}, "organization": {"id": 996}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "owner": {"id": 427}, "assignee": {"id": 59}, "organization": {"id": 632}, "project": {"owner": {"id": 706}, "assignee": {"id": 812}, "organization": {"id": 906}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 370, "owner": {"id": 457}, "assignee": {"id": 17}, "organization": {"id": 143}, "project": {"owner": {"id": 779}, "assignee": {"id": 860}, "organization": {"id": 921}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 484}, "assignee": {"id": 43}, "organization": {"id": 641}, "project": {"owner": {"id": 706}, "assignee": {"id": 816}, "organization": {"id": 922}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 391, "owner": {"id": 415}, "assignee": {"id": 21}, "organization": {"id": 147}, "project": {"owner": {"id": 797}, "assignee": {"id": 823}, "organization": {"id": 960}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 336, "owner": {"id": 486}, "assignee": {"id": 1}, "organization": {"id": 672}, "project": {"owner": {"id": 746}, "assignee": {"id": 840}, "organization": {"id": 980}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 457}, "assignee": {"id": 32}, "organization": {"id": 154}, "project": {"owner": {"id": 769}, "assignee": {"id": 816}, "organization": {"id": 942}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 356, "owner": {"id": 419}, "assignee": {"id": 62}, "organization": {"id": 679}, "project": {"owner": {"id": 748}, "assignee": {"id": 856}, "organization": {"id": 985}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 372, "owner": {"id": 401}, "assignee": {"id": 69}, "organization": {"id": 100}, "project": {"owner": {"id": 710}, "assignee": {"id": 852}, "organization": {"id": 925}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "owner": {"id": 423}, "assignee": {"id": 1}, "organization": {"id": 696}, "project": {"owner": {"id": 761}, "assignee": {"id": 879}, "organization": {"id": 938}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "owner": {"id": 404}, "assignee": {"id": 21}, "organization": {"id": 179}, "project": {"owner": {"id": 759}, "assignee": {"id": 892}, "organization": {"id": 917}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 463}, "assignee": {"id": 51}, "organization": {"id": 635}, "project": {"owner": {"id": 768}, "assignee": {"id": 801}, "organization": {"id": 927}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 381, "owner": {"id": 485}, "assignee": {"id": 86}, "organization": {"id": 191}, "project": {"owner": {"id": 738}, "assignee": {"id": 832}, "organization": {"id": 903}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 410}, "assignee": {"id": 85}, "organization": {"id": 646}, "project": {"owner": {"id": 748}, "assignee": {"id": 842}, "organization": {"id": 902}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 366, "owner": {"id": 435}, "assignee": {"id": 73}, "organization": {"id": 122}, "project": {"owner": {"id": 709}, "assignee": {"id": 881}, "organization": {"id": 934}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 428}, "assignee": {"id": 17}, "organization": {"id": 691}, "project": {"owner": {"id": 751}, "assignee": {"id": 804}, "organization": {"id": 990}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 329, "owner": {"id": 445}, "assignee": {"id": 38}, "organization": {"id": 165}, "project": {"owner": {"id": 784}, "assignee": {"id": 862}, "organization": {"id": 998}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 351, "owner": {"id": 424}, "assignee": {"id": 5}, "organization": {"id": 679}, "project": {"owner": {"id": 731}, "assignee": {"id": 869}, "organization": {"id": 994}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "owner": {"id": 450}, "assignee": {"id": 29}, "organization": {"id": 143}, "project": {"owner": {"id": 700}, "assignee": {"id": 884}, "organization": {"id": 933}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 389, "owner": {"id": 413}, "assignee": {"id": 56}, "organization": {"id": 647}, "project": {"owner": {"id": 777}, "assignee": {"id": 824}, "organization": {"id": 910}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "owner": {"id": 404}, "assignee": {"id": 25}, "organization": {"id": 182}, "project": {"owner": {"id": 733}, "assignee": {"id": 841}, "organization": {"id": 950}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": {"id": 122, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "owner": {"id": 432}, "assignee": {"id": 98}, "organization": {"id": 687}, "project": {"owner": {"id": 775}, "assignee": {"id": 850}, "organization": {"id": 913}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 342, "owner": {"id": 406}, "assignee": {"id": 62}, "organization": {"id": 146}, "project": {"owner": {"id": 791}, "assignee": {"id": 877}, "organization": {"id": 977}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 364, "owner": {"id": 440}, "assignee": {"id": 61}, "organization": {"id": 660}, "project": {"owner": {"id": 775}, "assignee": {"id": 876}, "organization": {"id": 985}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 454}, "assignee": {"id": 79}, "organization": {"id": 151}, "project": {"owner": {"id": 765}, "assignee": {"id": 881}, "organization": {"id": 905}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 309, "owner": {"id": 413}, "assignee": {"id": 57}, "organization": {"id": 670}, "project": {"owner": {"id": 796}, "assignee": {"id": 864}, "organization": {"id": 970}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 490}, "assignee": {"id": 81}, "organization": {"id": 157}, "project": {"owner": {"id": 723}, "assignee": {"id": 810}, "organization": {"id": 960}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 397, "owner": {"id": 441}, "assignee": {"id": 87}, "organization": {"id": 640}, "project": {"owner": {"id": 759}, "assignee": {"id": 836}, "organization": {"id": 961}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "owner": {"id": 405}, "assignee": {"id": 43}, "organization": {"id": 170}, "project": {"owner": {"id": 781}, "assignee": {"id": 843}, "organization": {"id": 994}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "owner": {"id": 485}, "assignee": {"id": 36}, "organization": {"id": 639}, "project": {"owner": {"id": 769}, "assignee": {"id": 847}, "organization": {"id": 953}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "owner": {"id": 421}, "assignee": {"id": 9}, "organization": {"id": 192}, "project": {"owner": {"id": 746}, "assignee": {"id": 839}, "organization": {"id": 910}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "owner": {"id": 446}, "assignee": {"id": 82}, "organization": {"id": 660}, "project": {"owner": {"id": 758}, "assignee": {"id": 806}, "organization": {"id": 910}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 320, "owner": {"id": 449}, "assignee": {"id": 10}, "organization": {"id": 169}, "project": {"owner": {"id": 779}, "assignee": {"id": 872}, "organization": {"id": 968}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 347, "owner": {"id": 416}, "assignee": {"id": 71}, "organization": {"id": 675}, "project": {"owner": {"id": 719}, "assignee": {"id": 803}, "organization": {"id": 905}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 430}, "assignee": {"id": 35}, "organization": {"id": 191}, "project": {"owner": {"id": 792}, "assignee": {"id": 897}, "organization": {"id": 998}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"id": 305, "owner": {"id": 451}, "assignee": {"id": 99}, "organization": {"id": 651}, "project": {"owner": {"id": 781}, "assignee": {"id": 839}, "organization": {"id": 972}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 330, "owner": {"id": 462}, "assignee": {"id": 65}, "organization": {"id": 166}, "project": {"owner": {"id": 788}, "assignee": {"id": 868}, "organization": {"id": 926}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 392, "owner": {"id": 428}, "assignee": {"id": 31}, "organization": {"id": 683}, "project": {"owner": {"id": 711}, "assignee": {"id": 833}, "organization": {"id": 974}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "owner": {"id": 436}, "assignee": {"id": 64}, "organization": {"id": 180}, "project": {"owner": {"id": 773}, "assignee": {"id": 887}, "organization": {"id": 921}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 401}, "assignee": {"id": 33}, "organization": {"id": 654}, "project": {"owner": {"id": 755}, "assignee": {"id": 841}, "organization": {"id": 926}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "owner": {"id": 489}, "assignee": {"id": 2}, "organization": {"id": 119}, "project": {"owner": {"id": 704}, "assignee": {"id": 872}, "organization": {"id": 902}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "owner": {"id": 400}, "assignee": {"id": 53}, "organization": {"id": 602}, "project": {"owner": {"id": 726}, "assignee": {"id": 821}, "organization": {"id": 995}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 311, "owner": {"id": 459}, "assignee": {"id": 51}, "organization": {"id": 132}, "project": {"owner": {"id": 765}, "assignee": {"id": 891}, "organization": {"id": 965}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 388, "owner": {"id": 479}, "assignee": {"id": 63}, "organization": {"id": 674}, "project": {"owner": {"id": 708}, "assignee": {"id": 850}, "organization": {"id": 918}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 399, "owner": {"id": 452}, "assignee": {"id": 97}, "organization": {"id": 137}, "project": {"owner": {"id": 718}, "assignee": {"id": 893}, "organization": {"id": 977}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 320, "owner": {"id": 445}, "assignee": {"id": 73}, "organization": {"id": 697}, "project": {"owner": {"id": 710}, "assignee": {"id": 819}, "organization": {"id": 917}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 325, "owner": {"id": 447}, "assignee": {"id": 525}, "organization": {"id": 109}, "project": {"owner": {"id": 741}, "assignee": {"id": 874}, "organization": {"id": 920}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 36, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 359, "owner": {"id": 450}, "assignee": {"id": 595}, "organization": {"id": 650}, "project": {"owner": {"id": 714}, "assignee": {"id": 848}, "organization": {"id": 921}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "owner": {"id": 424}, "assignee": {"id": 527}, "organization": {"id": 197}, "project": {"owner": {"id": 703}, "assignee": {"id": 814}, "organization": {"id": 985}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 487}, "assignee": {"id": 505}, "organization": {"id": 614}, "project": {"owner": {"id": 756}, "assignee": {"id": 859}, "organization": {"id": 996}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 469}, "assignee": {"id": 528}, "organization": {"id": 114}, "project": {"owner": {"id": 771}, "assignee": {"id": 848}, "organization": {"id": 933}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "owner": {"id": 441}, "assignee": {"id": 501}, "organization": {"id": 658}, "project": {"owner": {"id": 770}, "assignee": {"id": 897}, "organization": {"id": 925}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 328, "owner": {"id": 414}, "assignee": {"id": 540}, "organization": {"id": 148}, "project": {"owner": {"id": 728}, "assignee": {"id": 834}, "organization": {"id": 976}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 313, "owner": {"id": 462}, "assignee": {"id": 536}, "organization": {"id": 609}, "project": {"owner": {"id": 781}, "assignee": {"id": 803}, "organization": {"id": 996}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 344, "owner": {"id": 413}, "assignee": {"id": 538}, "organization": {"id": 194}, "project": {"owner": {"id": 748}, "assignee": {"id": 835}, "organization": {"id": 971}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 388, "owner": {"id": 449}, "assignee": {"id": 567}, "organization": {"id": 687}, "project": {"owner": {"id": 773}, "assignee": {"id": 871}, "organization": {"id": 923}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 358, "owner": {"id": 486}, "assignee": {"id": 524}, "organization": {"id": 104}, "project": {"owner": {"id": 716}, "assignee": {"id": 856}, "organization": {"id": 967}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 367, "owner": {"id": 437}, "assignee": {"id": 589}, "organization": {"id": 679}, "project": {"owner": {"id": 799}, "assignee": {"id": 852}, "organization": {"id": 927}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "owner": {"id": 485}, "assignee": {"id": 502}, "organization": {"id": 185}, "project": {"owner": {"id": 718}, "assignee": {"id": 808}, "organization": {"id": 984}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "owner": {"id": 433}, "assignee": {"id": 586}, "organization": {"id": 675}, "project": {"owner": {"id": 791}, "assignee": {"id": 875}, "organization": {"id": 944}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 343, "owner": {"id": 473}, "assignee": {"id": 546}, "organization": {"id": 149}, "project": {"owner": {"id": 700}, "assignee": {"id": 810}, "organization": {"id": 999}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 472}, "assignee": {"id": 593}, "organization": {"id": 662}, "project": {"owner": {"id": 707}, "assignee": {"id": 843}, "organization": {"id": 979}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 484}, "assignee": {"id": 575}, "organization": {"id": 198}, "project": {"owner": {"id": 712}, "assignee": {"id": 833}, "organization": {"id": 940}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 300, "owner": {"id": 417}, "assignee": {"id": 504}, "organization": {"id": 681}, "project": {"owner": {"id": 797}, "assignee": {"id": 826}, "organization": {"id": 964}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 300, "owner": {"id": 480}, "assignee": {"id": 557}, "organization": {"id": 102}, "project": {"owner": {"id": 731}, "assignee": {"id": 895}, "organization": {"id": 981}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 316, "owner": {"id": 408}, "assignee": {"id": 518}, "organization": {"id": 612}, "project": {"owner": {"id": 700}, "assignee": {"id": 804}, "organization": {"id": 936}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 377, "owner": {"id": 460}, "assignee": {"id": 545}, "organization": {"id": 136}, "project": {"owner": {"id": 710}, "assignee": {"id": 805}, "organization": {"id": 907}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 90, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 440}, "assignee": {"id": 538}, "organization": {"id": 622}, "project": {"owner": {"id": 744}, "assignee": {"id": 886}, "organization": {"id": 942}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "owner": {"id": 449}, "assignee": {"id": 518}, "organization": {"id": 182}, "project": {"owner": {"id": 721}, "assignee": {"id": 879}, "organization": {"id": 907}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 436}, "assignee": {"id": 512}, "organization": {"id": 658}, "project": {"owner": {"id": 711}, "assignee": {"id": 802}, "organization": {"id": 944}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "owner": {"id": 493}, "assignee": {"id": 518}, "organization": {"id": 196}, "project": {"owner": {"id": 727}, "assignee": {"id": 889}, "organization": {"id": 982}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "owner": {"id": 459}, "assignee": {"id": 501}, "organization": {"id": 648}, "project": {"owner": {"id": 732}, "assignee": {"id": 886}, "organization": {"id": 966}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 391, "owner": {"id": 430}, "assignee": {"id": 542}, "organization": {"id": 193}, "project": {"owner": {"id": 767}, "assignee": {"id": 899}, "organization": {"id": 999}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 371, "owner": {"id": 480}, "assignee": {"id": 573}, "organization": {"id": 685}, "project": {"owner": {"id": 784}, "assignee": {"id": 842}, "organization": {"id": 910}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 317, "owner": {"id": 406}, "assignee": {"id": 538}, "organization": {"id": 166}, "project": {"owner": {"id": 761}, "assignee": {"id": 802}, "organization": {"id": 905}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 400}, "assignee": {"id": 587}, "organization": {"id": 657}, "project": {"owner": {"id": 750}, "assignee": {"id": 816}, "organization": {"id": 959}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 343, "owner": {"id": 427}, "assignee": {"id": 569}, "organization": {"id": 171}, "project": {"owner": {"id": 758}, "assignee": {"id": 893}, "organization": {"id": 939}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 319, "owner": {"id": 489}, "assignee": {"id": 550}, "organization": {"id": 697}, "project": {"owner": {"id": 720}, "assignee": {"id": 816}, "organization": {"id": 943}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "owner": {"id": 467}, "assignee": {"id": 526}, "organization": {"id": 117}, "project": {"owner": {"id": 730}, "assignee": {"id": 895}, "organization": {"id": 987}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "owner": {"id": 409}, "assignee": {"id": 533}, "organization": {"id": 652}, "project": {"owner": {"id": 732}, "assignee": {"id": 854}, "organization": {"id": 961}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "owner": {"id": 467}, "assignee": {"id": 507}, "organization": {"id": 169}, "project": {"owner": {"id": 741}, "assignee": {"id": 894}, "organization": {"id": 937}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "owner": {"id": 421}, "assignee": {"id": 507}, "organization": {"id": 627}, "project": {"owner": {"id": 774}, "assignee": {"id": 863}, "organization": {"id": 913}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 302, "owner": {"id": 435}, "assignee": {"id": 596}, "organization": {"id": 197}, "project": {"owner": {"id": 727}, "assignee": {"id": 827}, "organization": {"id": 904}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 469}, "assignee": {"id": 506}, "organization": {"id": 674}, "project": {"owner": {"id": 775}, "assignee": {"id": 830}, "organization": {"id": 932}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 352, "owner": {"id": 489}, "assignee": {"id": 502}, "organization": {"id": 164}, "project": {"owner": {"id": 793}, "assignee": {"id": 867}, "organization": {"id": 961}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 467}, "assignee": {"id": 550}, "organization": {"id": 647}, "project": {"owner": {"id": 741}, "assignee": {"id": 866}, "organization": {"id": 985}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 423}, "assignee": {"id": 559}, "organization": {"id": 142}, "project": {"owner": {"id": 749}, "assignee": {"id": 866}, "organization": {"id": 945}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 455}, "assignee": {"id": 598}, "organization": {"id": 637}, "project": {"owner": {"id": 739}, "assignee": {"id": 818}, "organization": {"id": 974}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "owner": {"id": 402}, "assignee": {"id": 511}, "organization": {"id": 190}, "project": {"owner": {"id": 726}, "assignee": {"id": 818}, "organization": {"id": 946}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "owner": {"id": 439}, "assignee": {"id": 578}, "organization": {"id": 635}, "project": {"owner": {"id": 717}, "assignee": {"id": 823}, "organization": {"id": 997}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 407}, "assignee": {"id": 578}, "organization": {"id": 135}, "project": {"owner": {"id": 722}, "assignee": {"id": 824}, "organization": {"id": 965}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "owner": {"id": 457}, "assignee": {"id": 509}, "organization": {"id": 688}, "project": {"owner": {"id": 736}, "assignee": {"id": 823}, "organization": {"id": 995}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 328, "owner": {"id": 485}, "assignee": {"id": 540}, "organization": {"id": 115}, "project": {"owner": {"id": 763}, "assignee": {"id": 857}, "organization": {"id": 979}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 332, "owner": {"id": 406}, "assignee": {"id": 537}, "organization": {"id": 675}, "project": {"owner": {"id": 731}, "assignee": {"id": 866}, "organization": {"id": 949}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 496}, "assignee": {"id": 529}, "organization": {"id": 126}, "project": {"owner": {"id": 762}, "assignee": {"id": 843}, "organization": {"id": 981}}}} -} - -test_scope_VIEW_METADATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view:metadata", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"id": 393, "owner": {"id": 459}, "assignee": {"id": 525}, "organization": {"id": 680}, "project": {"owner": {"id": 738}, "assignee": {"id": 861}, "organization": {"id": 959}}}} -} - -test_scope_UPLOAD_DATA_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": null}, "resource": {"id": 358, "owner": {"id": 440}, "assignee": {"id": 503}, "organization": {"id": 640}, "project": {"owner": {"id": 91}, "assignee": {"id": 810}, "organization": {"id": 912}}}} -} - -test_scope_UPLOAD_DATA_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": null}, "resource": {"id": 378, "owner": {"id": 401}, "assignee": {"id": 543}, "organization": {"id": 634}, "project": {"owner": {"id": 19}, "assignee": {"id": 842}, "organization": {"id": 997}}}} -} - -test_scope_UPLOAD_DATA_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": null}, "resource": {"id": 309, "owner": {"id": 467}, "assignee": {"id": 588}, "organization": {"id": 649}, "project": {"owner": {"id": 2}, "assignee": {"id": 893}, "organization": {"id": 958}}}} -} - -test_scope_UPLOAD_DATA_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": null}, "resource": {"id": 342, "owner": {"id": 429}, "assignee": {"id": 596}, "organization": {"id": 678}, "project": {"owner": {"id": 1}, "assignee": {"id": 870}, "organization": {"id": 983}}}} -} - -test_scope_UPLOAD_DATA_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": null}, "resource": {"id": 324, "owner": {"id": 401}, "assignee": {"id": 553}, "organization": {"id": 626}, "project": {"owner": {"id": 25}, "assignee": {"id": 835}, "organization": {"id": 937}}}} -} - -test_scope_UPLOAD_DATA_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": null}, "resource": {"id": 363, "owner": {"id": 487}, "assignee": {"id": 591}, "organization": {"id": 662}, "project": {"owner": {"id": 793}, "assignee": {"id": 20}, "organization": {"id": 917}}}} -} - -test_scope_UPLOAD_DATA_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": null}, "resource": {"id": 369, "owner": {"id": 488}, "assignee": {"id": 541}, "organization": {"id": 688}, "project": {"owner": {"id": 714}, "assignee": {"id": 82}, "organization": {"id": 990}}}} -} - -test_scope_UPLOAD_DATA_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": null}, "resource": {"id": 304, "owner": {"id": 454}, "assignee": {"id": 547}, "organization": {"id": 682}, "project": {"owner": {"id": 734}, "assignee": {"id": 45}, "organization": {"id": 950}}}} -} - -test_scope_UPLOAD_DATA_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": null}, "resource": {"id": 329, "owner": {"id": 499}, "assignee": {"id": 538}, "organization": {"id": 633}, "project": {"owner": {"id": 712}, "assignee": {"id": 62}, "organization": {"id": 948}}}} -} - -test_scope_UPLOAD_DATA_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": null}, "resource": {"id": 314, "owner": {"id": 484}, "assignee": {"id": 570}, "organization": {"id": 618}, "project": {"owner": {"id": 750}, "assignee": {"id": 63}, "organization": {"id": 977}}}} -} - -test_scope_UPLOAD_DATA_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": null}, "resource": {"id": 383, "owner": {"id": 30}, "assignee": {"id": 503}, "organization": {"id": 671}, "project": {"owner": {"id": 714}, "assignee": {"id": 806}, "organization": {"id": 995}}}} -} - -test_scope_UPLOAD_DATA_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": null}, "resource": {"id": 305, "owner": {"id": 20}, "assignee": {"id": 534}, "organization": {"id": 619}, "project": {"owner": {"id": 795}, "assignee": {"id": 883}, "organization": {"id": 967}}}} -} - -test_scope_UPLOAD_DATA_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": null}, "resource": {"id": 364, "owner": {"id": 63}, "assignee": {"id": 563}, "organization": {"id": 693}, "project": {"owner": {"id": 747}, "assignee": {"id": 838}, "organization": {"id": 964}}}} -} - -test_scope_UPLOAD_DATA_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": null}, "resource": {"id": 314, "owner": {"id": 16}, "assignee": {"id": 547}, "organization": {"id": 692}, "project": {"owner": {"id": 756}, "assignee": {"id": 882}, "organization": {"id": 936}}}} -} - -test_scope_UPLOAD_DATA_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": null}, "resource": {"id": 329, "owner": {"id": 3}, "assignee": {"id": 576}, "organization": {"id": 695}, "project": {"owner": {"id": 773}, "assignee": {"id": 870}, "organization": {"id": 923}}}} -} - -test_scope_UPLOAD_DATA_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": null}, "resource": {"id": 377, "owner": {"id": 481}, "assignee": {"id": 68}, "organization": {"id": 610}, "project": {"owner": {"id": 728}, "assignee": {"id": 877}, "organization": {"id": 919}}}} -} - -test_scope_UPLOAD_DATA_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": null}, "resource": {"id": 377, "owner": {"id": 436}, "assignee": {"id": 30}, "organization": {"id": 619}, "project": {"owner": {"id": 774}, "assignee": {"id": 823}, "organization": {"id": 921}}}} -} - -test_scope_UPLOAD_DATA_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": null}, "resource": {"id": 376, "owner": {"id": 497}, "assignee": {"id": 70}, "organization": {"id": 611}, "project": {"owner": {"id": 763}, "assignee": {"id": 864}, "organization": {"id": 942}}}} -} - -test_scope_UPLOAD_DATA_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": null}, "resource": {"id": 386, "owner": {"id": 469}, "assignee": {"id": 54}, "organization": {"id": 653}, "project": {"owner": {"id": 711}, "assignee": {"id": 888}, "organization": {"id": 960}}}} -} - -test_scope_UPLOAD_DATA_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": null}, "resource": {"id": 305, "owner": {"id": 464}, "assignee": {"id": 42}, "organization": {"id": 682}, "project": {"owner": {"id": 782}, "assignee": {"id": 875}, "organization": {"id": 994}}}} -} - -test_scope_UPLOAD_DATA_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": null}, "resource": {"id": 347, "owner": {"id": 460}, "assignee": {"id": 506}, "organization": {"id": 665}, "project": {"owner": {"id": 767}, "assignee": {"id": 825}, "organization": {"id": 921}}}} -} - -test_scope_UPLOAD_DATA_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": null}, "resource": {"id": 368, "owner": {"id": 484}, "assignee": {"id": 504}, "organization": {"id": 693}, "project": {"owner": {"id": 795}, "assignee": {"id": 876}, "organization": {"id": 976}}}} -} - -test_scope_UPLOAD_DATA_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": null}, "resource": {"id": 312, "owner": {"id": 432}, "assignee": {"id": 555}, "organization": {"id": 614}, "project": {"owner": {"id": 780}, "assignee": {"id": 821}, "organization": {"id": 905}}}} -} - -test_scope_UPLOAD_DATA_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": null}, "resource": {"id": 304, "owner": {"id": 417}, "assignee": {"id": 540}, "organization": {"id": 673}, "project": {"owner": {"id": 725}, "assignee": {"id": 863}, "organization": {"id": 990}}}} -} - -test_scope_UPLOAD_DATA_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": null}, "resource": {"id": 353, "owner": {"id": 478}, "assignee": {"id": 595}, "organization": {"id": 625}, "project": {"owner": {"id": 779}, "assignee": {"id": 885}, "organization": {"id": 919}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 300, "owner": {"id": 432}, "assignee": {"id": 545}, "organization": {"id": 101}, "project": {"owner": {"id": 29}, "assignee": {"id": 894}, "organization": {"id": 994}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 328, "owner": {"id": 432}, "assignee": {"id": 579}, "organization": {"id": 634}, "project": {"owner": {"id": 72}, "assignee": {"id": 814}, "organization": {"id": 946}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "owner": {"id": 488}, "assignee": {"id": 549}, "organization": {"id": 130}, "project": {"owner": {"id": 28}, "assignee": {"id": 837}, "organization": {"id": 937}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 426}, "assignee": {"id": 514}, "organization": {"id": 633}, "project": {"owner": {"id": 77}, "assignee": {"id": 801}, "organization": {"id": 918}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 406}, "assignee": {"id": 569}, "organization": {"id": 111}, "project": {"owner": {"id": 77}, "assignee": {"id": 800}, "organization": {"id": 928}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 482}, "assignee": {"id": 538}, "organization": {"id": 601}, "project": {"owner": {"id": 73}, "assignee": {"id": 844}, "organization": {"id": 947}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 355, "owner": {"id": 421}, "assignee": {"id": 509}, "organization": {"id": 194}, "project": {"owner": {"id": 39}, "assignee": {"id": 832}, "organization": {"id": 964}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 336, "owner": {"id": 429}, "assignee": {"id": 507}, "organization": {"id": 642}, "project": {"owner": {"id": 96}, "assignee": {"id": 838}, "organization": {"id": 933}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 445}, "assignee": {"id": 502}, "organization": {"id": 167}, "project": {"owner": {"id": 18}, "assignee": {"id": 829}, "organization": {"id": 970}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 471}, "assignee": {"id": 512}, "organization": {"id": 650}, "project": {"owner": {"id": 83}, "assignee": {"id": 829}, "organization": {"id": 958}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 341, "owner": {"id": 487}, "assignee": {"id": 565}, "organization": {"id": 118}, "project": {"owner": {"id": 28}, "assignee": {"id": 803}, "organization": {"id": 962}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 315, "owner": {"id": 439}, "assignee": {"id": 548}, "organization": {"id": 628}, "project": {"owner": {"id": 18}, "assignee": {"id": 843}, "organization": {"id": 937}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "owner": {"id": 466}, "assignee": {"id": 553}, "organization": {"id": 169}, "project": {"owner": {"id": 99}, "assignee": {"id": 880}, "organization": {"id": 991}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "owner": {"id": 406}, "assignee": {"id": 526}, "organization": {"id": 621}, "project": {"owner": {"id": 97}, "assignee": {"id": 867}, "organization": {"id": 928}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 461}, "assignee": {"id": 507}, "organization": {"id": 161}, "project": {"owner": {"id": 17}, "assignee": {"id": 833}, "organization": {"id": 930}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "owner": {"id": 403}, "assignee": {"id": 520}, "organization": {"id": 648}, "project": {"owner": {"id": 41}, "assignee": {"id": 843}, "organization": {"id": 970}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 333, "owner": {"id": 446}, "assignee": {"id": 571}, "organization": {"id": 131}, "project": {"owner": {"id": 93}, "assignee": {"id": 830}, "organization": {"id": 992}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 303, "owner": {"id": 464}, "assignee": {"id": 512}, "organization": {"id": 664}, "project": {"owner": {"id": 92}, "assignee": {"id": 882}, "organization": {"id": 935}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 303, "owner": {"id": 441}, "assignee": {"id": 595}, "organization": {"id": 166}, "project": {"owner": {"id": 84}, "assignee": {"id": 832}, "organization": {"id": 930}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 390, "owner": {"id": 422}, "assignee": {"id": 560}, "organization": {"id": 628}, "project": {"owner": {"id": 34}, "assignee": {"id": 881}, "organization": {"id": 999}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 375, "owner": {"id": 473}, "assignee": {"id": 533}, "organization": {"id": 182}, "project": {"owner": {"id": 68}, "assignee": {"id": 863}, "organization": {"id": 911}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 308, "owner": {"id": 492}, "assignee": {"id": 525}, "organization": {"id": 618}, "project": {"owner": {"id": 52}, "assignee": {"id": 897}, "organization": {"id": 904}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 436}, "assignee": {"id": 552}, "organization": {"id": 156}, "project": {"owner": {"id": 33}, "assignee": {"id": 827}, "organization": {"id": 944}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 431}, "assignee": {"id": 560}, "organization": {"id": 607}, "project": {"owner": {"id": 41}, "assignee": {"id": 898}, "organization": {"id": 941}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "owner": {"id": 488}, "assignee": {"id": 550}, "organization": {"id": 133}, "project": {"owner": {"id": 15}, "assignee": {"id": 880}, "organization": {"id": 970}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "owner": {"id": 445}, "assignee": {"id": 559}, "organization": {"id": 658}, "project": {"owner": {"id": 7}, "assignee": {"id": 814}, "organization": {"id": 971}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 332, "owner": {"id": 472}, "assignee": {"id": 517}, "organization": {"id": 179}, "project": {"owner": {"id": 24}, "assignee": {"id": 884}, "organization": {"id": 982}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 353, "owner": {"id": 446}, "assignee": {"id": 517}, "organization": {"id": 668}, "project": {"owner": {"id": 13}, "assignee": {"id": 846}, "organization": {"id": 989}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 313, "owner": {"id": 475}, "assignee": {"id": 500}, "organization": {"id": 135}, "project": {"owner": {"id": 57}, "assignee": {"id": 823}, "organization": {"id": 998}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 384, "owner": {"id": 457}, "assignee": {"id": 535}, "organization": {"id": 647}, "project": {"owner": {"id": 83}, "assignee": {"id": 844}, "organization": {"id": 974}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 319, "owner": {"id": 447}, "assignee": {"id": 502}, "organization": {"id": 188}, "project": {"owner": {"id": 60}, "assignee": {"id": 824}, "organization": {"id": 929}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 353, "owner": {"id": 436}, "assignee": {"id": 599}, "organization": {"id": 625}, "project": {"owner": {"id": 63}, "assignee": {"id": 896}, "organization": {"id": 929}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "owner": {"id": 437}, "assignee": {"id": 550}, "organization": {"id": 107}, "project": {"owner": {"id": 83}, "assignee": {"id": 863}, "organization": {"id": 907}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "owner": {"id": 467}, "assignee": {"id": 526}, "organization": {"id": 602}, "project": {"owner": {"id": 96}, "assignee": {"id": 821}, "organization": {"id": 998}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "owner": {"id": 419}, "assignee": {"id": 530}, "organization": {"id": 188}, "project": {"owner": {"id": 45}, "assignee": {"id": 822}, "organization": {"id": 951}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "owner": {"id": 436}, "assignee": {"id": 561}, "organization": {"id": 633}, "project": {"owner": {"id": 25}, "assignee": {"id": 837}, "organization": {"id": 977}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 429}, "assignee": {"id": 541}, "organization": {"id": 131}, "project": {"owner": {"id": 66}, "assignee": {"id": 851}, "organization": {"id": 902}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 305, "owner": {"id": 421}, "assignee": {"id": 564}, "organization": {"id": 675}, "project": {"owner": {"id": 0}, "assignee": {"id": 835}, "organization": {"id": 999}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 397, "owner": {"id": 487}, "assignee": {"id": 574}, "organization": {"id": 150}, "project": {"owner": {"id": 88}, "assignee": {"id": 878}, "organization": {"id": 988}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"id": 360, "owner": {"id": 476}, "assignee": {"id": 525}, "organization": {"id": 646}, "project": {"owner": {"id": 43}, "assignee": {"id": 879}, "organization": {"id": 990}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 313, "owner": {"id": 494}, "assignee": {"id": 541}, "organization": {"id": 152}, "project": {"owner": {"id": 17}, "assignee": {"id": 890}, "organization": {"id": 953}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 310, "owner": {"id": 467}, "assignee": {"id": 568}, "organization": {"id": 677}, "project": {"owner": {"id": 94}, "assignee": {"id": 820}, "organization": {"id": 952}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 426}, "assignee": {"id": 555}, "organization": {"id": 156}, "project": {"owner": {"id": 49}, "assignee": {"id": 811}, "organization": {"id": 952}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 418}, "assignee": {"id": 515}, "organization": {"id": 689}, "project": {"owner": {"id": 83}, "assignee": {"id": 882}, "organization": {"id": 958}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 61, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "owner": {"id": 475}, "assignee": {"id": 535}, "organization": {"id": 194}, "project": {"owner": {"id": 61}, "assignee": {"id": 833}, "organization": {"id": 962}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 498}, "assignee": {"id": 535}, "organization": {"id": 643}, "project": {"owner": {"id": 93}, "assignee": {"id": 828}, "organization": {"id": 956}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 476}, "assignee": {"id": 512}, "organization": {"id": 119}, "project": {"owner": {"id": 51}, "assignee": {"id": 817}, "organization": {"id": 958}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 473}, "assignee": {"id": 552}, "organization": {"id": 684}, "project": {"owner": {"id": 28}, "assignee": {"id": 896}, "organization": {"id": 951}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 475}, "assignee": {"id": 567}, "organization": {"id": 198}, "project": {"owner": {"id": 81}, "assignee": {"id": 890}, "organization": {"id": 927}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 371, "owner": {"id": 474}, "assignee": {"id": 509}, "organization": {"id": 660}, "project": {"owner": {"id": 26}, "assignee": {"id": 862}, "organization": {"id": 996}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 453}, "assignee": {"id": 528}, "organization": {"id": 158}, "project": {"owner": {"id": 723}, "assignee": {"id": 64}, "organization": {"id": 913}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 167, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 396, "owner": {"id": 413}, "assignee": {"id": 594}, "organization": {"id": 649}, "project": {"owner": {"id": 718}, "assignee": {"id": 73}, "organization": {"id": 982}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "owner": {"id": 428}, "assignee": {"id": 542}, "organization": {"id": 187}, "project": {"owner": {"id": 786}, "assignee": {"id": 45}, "organization": {"id": 906}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 379, "owner": {"id": 459}, "assignee": {"id": 527}, "organization": {"id": 638}, "project": {"owner": {"id": 738}, "assignee": {"id": 66}, "organization": {"id": 952}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "owner": {"id": 479}, "assignee": {"id": 537}, "organization": {"id": 196}, "project": {"owner": {"id": 778}, "assignee": {"id": 58}, "organization": {"id": 933}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "owner": {"id": 475}, "assignee": {"id": 520}, "organization": {"id": 674}, "project": {"owner": {"id": 729}, "assignee": {"id": 99}, "organization": {"id": 951}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 452}, "assignee": {"id": 519}, "organization": {"id": 156}, "project": {"owner": {"id": 789}, "assignee": {"id": 69}, "organization": {"id": 905}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 316, "owner": {"id": 472}, "assignee": {"id": 550}, "organization": {"id": 669}, "project": {"owner": {"id": 749}, "assignee": {"id": 54}, "organization": {"id": 982}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 362, "owner": {"id": 457}, "assignee": {"id": 554}, "organization": {"id": 147}, "project": {"owner": {"id": 779}, "assignee": {"id": 29}, "organization": {"id": 949}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 360, "owner": {"id": 430}, "assignee": {"id": 551}, "organization": {"id": 601}, "project": {"owner": {"id": 702}, "assignee": {"id": 47}, "organization": {"id": 946}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 483}, "assignee": {"id": 571}, "organization": {"id": 129}, "project": {"owner": {"id": 714}, "assignee": {"id": 65}, "organization": {"id": 925}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 473}, "assignee": {"id": 506}, "organization": {"id": 612}, "project": {"owner": {"id": 708}, "assignee": {"id": 19}, "organization": {"id": 940}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 400}, "assignee": {"id": 582}, "organization": {"id": 182}, "project": {"owner": {"id": 776}, "assignee": {"id": 61}, "organization": {"id": 963}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "owner": {"id": 464}, "assignee": {"id": 592}, "organization": {"id": 692}, "project": {"owner": {"id": 768}, "assignee": {"id": 15}, "organization": {"id": 951}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 453}, "assignee": {"id": 590}, "organization": {"id": 121}, "project": {"owner": {"id": 753}, "assignee": {"id": 5}, "organization": {"id": 933}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "owner": {"id": 400}, "assignee": {"id": 516}, "organization": {"id": 671}, "project": {"owner": {"id": 703}, "assignee": {"id": 22}, "organization": {"id": 921}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 337, "owner": {"id": 449}, "assignee": {"id": 555}, "organization": {"id": 160}, "project": {"owner": {"id": 789}, "assignee": {"id": 11}, "organization": {"id": 941}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 346, "owner": {"id": 471}, "assignee": {"id": 555}, "organization": {"id": 650}, "project": {"owner": {"id": 752}, "assignee": {"id": 45}, "organization": {"id": 951}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 338, "owner": {"id": 427}, "assignee": {"id": 569}, "organization": {"id": 122}, "project": {"owner": {"id": 725}, "assignee": {"id": 73}, "organization": {"id": 996}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 386, "owner": {"id": 493}, "assignee": {"id": 566}, "organization": {"id": 633}, "project": {"owner": {"id": 703}, "assignee": {"id": 91}, "organization": {"id": 973}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 399, "owner": {"id": 450}, "assignee": {"id": 576}, "organization": {"id": 173}, "project": {"owner": {"id": 758}, "assignee": {"id": 32}, "organization": {"id": 998}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 457}, "assignee": {"id": 556}, "organization": {"id": 637}, "project": {"owner": {"id": 721}, "assignee": {"id": 40}, "organization": {"id": 926}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "owner": {"id": 407}, "assignee": {"id": 586}, "organization": {"id": 141}, "project": {"owner": {"id": 787}, "assignee": {"id": 92}, "organization": {"id": 903}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 419}, "assignee": {"id": 506}, "organization": {"id": 696}, "project": {"owner": {"id": 779}, "assignee": {"id": 34}, "organization": {"id": 955}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "owner": {"id": 418}, "assignee": {"id": 575}, "organization": {"id": 160}, "project": {"owner": {"id": 758}, "assignee": {"id": 32}, "organization": {"id": 976}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 477}, "assignee": {"id": 509}, "organization": {"id": 689}, "project": {"owner": {"id": 754}, "assignee": {"id": 5}, "organization": {"id": 969}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 391, "owner": {"id": 414}, "assignee": {"id": 592}, "organization": {"id": 160}, "project": {"owner": {"id": 703}, "assignee": {"id": 72}, "organization": {"id": 957}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"id": 351, "owner": {"id": 449}, "assignee": {"id": 585}, "organization": {"id": 605}, "project": {"owner": {"id": 706}, "assignee": {"id": 1}, "organization": {"id": 920}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 331, "owner": {"id": 488}, "assignee": {"id": 589}, "organization": {"id": 165}, "project": {"owner": {"id": 739}, "assignee": {"id": 27}, "organization": {"id": 916}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 317, "owner": {"id": 431}, "assignee": {"id": 543}, "organization": {"id": 640}, "project": {"owner": {"id": 723}, "assignee": {"id": 77}, "organization": {"id": 903}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 321, "owner": {"id": 433}, "assignee": {"id": 543}, "organization": {"id": 180}, "project": {"owner": {"id": 790}, "assignee": {"id": 81}, "organization": {"id": 923}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 318, "owner": {"id": 494}, "assignee": {"id": 502}, "organization": {"id": 621}, "project": {"owner": {"id": 746}, "assignee": {"id": 3}, "organization": {"id": 982}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "owner": {"id": 410}, "assignee": {"id": 524}, "organization": {"id": 120}, "project": {"owner": {"id": 751}, "assignee": {"id": 44}, "organization": {"id": 933}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "owner": {"id": 440}, "assignee": {"id": 512}, "organization": {"id": 656}, "project": {"owner": {"id": 799}, "assignee": {"id": 53}, "organization": {"id": 940}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 371, "owner": {"id": 428}, "assignee": {"id": 553}, "organization": {"id": 183}, "project": {"owner": {"id": 777}, "assignee": {"id": 76}, "organization": {"id": 903}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "owner": {"id": 418}, "assignee": {"id": 565}, "organization": {"id": 678}, "project": {"owner": {"id": 761}, "assignee": {"id": 62}, "organization": {"id": 986}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 484}, "assignee": {"id": 592}, "organization": {"id": 125}, "project": {"owner": {"id": 791}, "assignee": {"id": 88}, "organization": {"id": 936}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 351, "owner": {"id": 412}, "assignee": {"id": 538}, "organization": {"id": 630}, "project": {"owner": {"id": 722}, "assignee": {"id": 46}, "organization": {"id": 964}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 379, "owner": {"id": 437}, "assignee": {"id": 557}, "organization": {"id": 153}, "project": {"owner": {"id": 776}, "assignee": {"id": 2}, "organization": {"id": 974}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 373, "owner": {"id": 493}, "assignee": {"id": 594}, "organization": {"id": 670}, "project": {"owner": {"id": 714}, "assignee": {"id": 16}, "organization": {"id": 972}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 309, "owner": {"id": 407}, "assignee": {"id": 533}, "organization": {"id": 184}, "project": {"owner": {"id": 774}, "assignee": {"id": 12}, "organization": {"id": 963}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 328, "owner": {"id": 484}, "assignee": {"id": 554}, "organization": {"id": 632}, "project": {"owner": {"id": 754}, "assignee": {"id": 6}, "organization": {"id": 978}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "owner": {"id": 467}, "assignee": {"id": 559}, "organization": {"id": 176}, "project": {"owner": {"id": 740}, "assignee": {"id": 24}, "organization": {"id": 903}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "owner": {"id": 482}, "assignee": {"id": 558}, "organization": {"id": 661}, "project": {"owner": {"id": 779}, "assignee": {"id": 24}, "organization": {"id": 943}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "owner": {"id": 463}, "assignee": {"id": 542}, "organization": {"id": 179}, "project": {"owner": {"id": 792}, "assignee": {"id": 88}, "organization": {"id": 964}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "owner": {"id": 493}, "assignee": {"id": 597}, "organization": {"id": 632}, "project": {"owner": {"id": 723}, "assignee": {"id": 82}, "organization": {"id": 957}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 372, "owner": {"id": 495}, "assignee": {"id": 559}, "organization": {"id": 165}, "project": {"owner": {"id": 797}, "assignee": {"id": 29}, "organization": {"id": 925}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 303, "owner": {"id": 432}, "assignee": {"id": 511}, "organization": {"id": 632}, "project": {"owner": {"id": 785}, "assignee": {"id": 83}, "organization": {"id": 921}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 493}, "assignee": {"id": 587}, "organization": {"id": 115}, "project": {"owner": {"id": 778}, "assignee": {"id": 38}, "organization": {"id": 981}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 333, "owner": {"id": 498}, "assignee": {"id": 517}, "organization": {"id": 626}, "project": {"owner": {"id": 718}, "assignee": {"id": 89}, "organization": {"id": 904}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 349, "owner": {"id": 24}, "assignee": {"id": 569}, "organization": {"id": 128}, "project": {"owner": {"id": 722}, "assignee": {"id": 889}, "organization": {"id": 988}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 371, "owner": {"id": 21}, "assignee": {"id": 567}, "organization": {"id": 608}, "project": {"owner": {"id": 778}, "assignee": {"id": 829}, "organization": {"id": 938}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "owner": {"id": 62}, "assignee": {"id": 582}, "organization": {"id": 128}, "project": {"owner": {"id": 750}, "assignee": {"id": 859}, "organization": {"id": 940}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 389, "owner": {"id": 42}, "assignee": {"id": 510}, "organization": {"id": 690}, "project": {"owner": {"id": 780}, "assignee": {"id": 832}, "organization": {"id": 913}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 14}, "assignee": {"id": 511}, "organization": {"id": 193}, "project": {"owner": {"id": 735}, "assignee": {"id": 828}, "organization": {"id": 919}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 51}, "assignee": {"id": 519}, "organization": {"id": 632}, "project": {"owner": {"id": 760}, "assignee": {"id": 889}, "organization": {"id": 989}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 90}, "assignee": {"id": 529}, "organization": {"id": 104}, "project": {"owner": {"id": 781}, "assignee": {"id": 891}, "organization": {"id": 926}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 398, "owner": {"id": 19}, "assignee": {"id": 549}, "organization": {"id": 666}, "project": {"owner": {"id": 734}, "assignee": {"id": 815}, "organization": {"id": 957}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 334, "owner": {"id": 14}, "assignee": {"id": 550}, "organization": {"id": 129}, "project": {"owner": {"id": 762}, "assignee": {"id": 842}, "organization": {"id": 933}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 323, "owner": {"id": 13}, "assignee": {"id": 524}, "organization": {"id": 691}, "project": {"owner": {"id": 790}, "assignee": {"id": 800}, "organization": {"id": 985}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 370, "owner": {"id": 64}, "assignee": {"id": 596}, "organization": {"id": 125}, "project": {"owner": {"id": 716}, "assignee": {"id": 816}, "organization": {"id": 978}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 375, "owner": {"id": 59}, "assignee": {"id": 518}, "organization": {"id": 609}, "project": {"owner": {"id": 797}, "assignee": {"id": 828}, "organization": {"id": 926}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "owner": {"id": 52}, "assignee": {"id": 589}, "organization": {"id": 102}, "project": {"owner": {"id": 727}, "assignee": {"id": 882}, "organization": {"id": 965}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 321, "owner": {"id": 64}, "assignee": {"id": 538}, "organization": {"id": 624}, "project": {"owner": {"id": 704}, "assignee": {"id": 852}, "organization": {"id": 917}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "owner": {"id": 14}, "assignee": {"id": 542}, "organization": {"id": 178}, "project": {"owner": {"id": 717}, "assignee": {"id": 873}, "organization": {"id": 947}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "owner": {"id": 69}, "assignee": {"id": 518}, "organization": {"id": 668}, "project": {"owner": {"id": 793}, "assignee": {"id": 842}, "organization": {"id": 942}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 379, "owner": {"id": 19}, "assignee": {"id": 530}, "organization": {"id": 160}, "project": {"owner": {"id": 748}, "assignee": {"id": 805}, "organization": {"id": 982}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 354, "owner": {"id": 53}, "assignee": {"id": 593}, "organization": {"id": 691}, "project": {"owner": {"id": 737}, "assignee": {"id": 868}, "organization": {"id": 956}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"id": 392, "owner": {"id": 52}, "assignee": {"id": 595}, "organization": {"id": 177}, "project": {"owner": {"id": 717}, "assignee": {"id": 867}, "organization": {"id": 907}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 340, "owner": {"id": 76}, "assignee": {"id": 520}, "organization": {"id": 615}, "project": {"owner": {"id": 713}, "assignee": {"id": 804}, "organization": {"id": 989}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 327, "owner": {"id": 60}, "assignee": {"id": 550}, "organization": {"id": 191}, "project": {"owner": {"id": 742}, "assignee": {"id": 848}, "organization": {"id": 950}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 387, "owner": {"id": 34}, "assignee": {"id": 578}, "organization": {"id": 656}, "project": {"owner": {"id": 796}, "assignee": {"id": 813}, "organization": {"id": 927}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "owner": {"id": 8}, "assignee": {"id": 518}, "organization": {"id": 101}, "project": {"owner": {"id": 768}, "assignee": {"id": 887}, "organization": {"id": 966}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 321, "owner": {"id": 23}, "assignee": {"id": 570}, "organization": {"id": 680}, "project": {"owner": {"id": 785}, "assignee": {"id": 841}, "organization": {"id": 980}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "owner": {"id": 5}, "assignee": {"id": 540}, "organization": {"id": 164}, "project": {"owner": {"id": 745}, "assignee": {"id": 837}, "organization": {"id": 945}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "owner": {"id": 80}, "assignee": {"id": 569}, "organization": {"id": 666}, "project": {"owner": {"id": 742}, "assignee": {"id": 876}, "organization": {"id": 965}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 305, "owner": {"id": 70}, "assignee": {"id": 573}, "organization": {"id": 160}, "project": {"owner": {"id": 739}, "assignee": {"id": 830}, "organization": {"id": 974}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 367, "owner": {"id": 81}, "assignee": {"id": 577}, "organization": {"id": 674}, "project": {"owner": {"id": 773}, "assignee": {"id": 836}, "organization": {"id": 979}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 398, "owner": {"id": 74}, "assignee": {"id": 500}, "organization": {"id": 196}, "project": {"owner": {"id": 704}, "assignee": {"id": 818}, "organization": {"id": 949}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 373, "owner": {"id": 86}, "assignee": {"id": 546}, "organization": {"id": 676}, "project": {"owner": {"id": 739}, "assignee": {"id": 806}, "organization": {"id": 944}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 313, "owner": {"id": 0}, "assignee": {"id": 567}, "organization": {"id": 198}, "project": {"owner": {"id": 779}, "assignee": {"id": 802}, "organization": {"id": 923}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 359, "owner": {"id": 42}, "assignee": {"id": 524}, "organization": {"id": 606}, "project": {"owner": {"id": 768}, "assignee": {"id": 864}, "organization": {"id": 911}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 320, "owner": {"id": 57}, "assignee": {"id": 528}, "organization": {"id": 107}, "project": {"owner": {"id": 725}, "assignee": {"id": 849}, "organization": {"id": 959}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "owner": {"id": 69}, "assignee": {"id": 563}, "organization": {"id": 674}, "project": {"owner": {"id": 717}, "assignee": {"id": 845}, "organization": {"id": 929}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 390, "owner": {"id": 13}, "assignee": {"id": 518}, "organization": {"id": 128}, "project": {"owner": {"id": 757}, "assignee": {"id": 875}, "organization": {"id": 980}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 96}, "assignee": {"id": 531}, "organization": {"id": 617}, "project": {"owner": {"id": 789}, "assignee": {"id": 845}, "organization": {"id": 966}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 333, "owner": {"id": 97}, "assignee": {"id": 582}, "organization": {"id": 110}, "project": {"owner": {"id": 788}, "assignee": {"id": 802}, "organization": {"id": 938}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 322, "owner": {"id": 85}, "assignee": {"id": 535}, "organization": {"id": 622}, "project": {"owner": {"id": 717}, "assignee": {"id": 812}, "organization": {"id": 916}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 395, "owner": {"id": 82}, "assignee": {"id": 541}, "organization": {"id": 165}, "project": {"owner": {"id": 783}, "assignee": {"id": 834}, "organization": {"id": 939}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 344, "owner": {"id": 89}, "assignee": {"id": 518}, "organization": {"id": 686}, "project": {"owner": {"id": 738}, "assignee": {"id": 896}, "organization": {"id": 952}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 386, "owner": {"id": 63}, "assignee": {"id": 509}, "organization": {"id": 113}, "project": {"owner": {"id": 768}, "assignee": {"id": 811}, "organization": {"id": 900}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 1}, "assignee": {"id": 586}, "organization": {"id": 674}, "project": {"owner": {"id": 795}, "assignee": {"id": 862}, "organization": {"id": 929}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 1}, "assignee": {"id": 512}, "organization": {"id": 157}, "project": {"owner": {"id": 738}, "assignee": {"id": 881}, "organization": {"id": 950}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 22}, "assignee": {"id": 507}, "organization": {"id": 639}, "project": {"owner": {"id": 705}, "assignee": {"id": 831}, "organization": {"id": 981}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "owner": {"id": 56}, "assignee": {"id": 538}, "organization": {"id": 171}, "project": {"owner": {"id": 713}, "assignee": {"id": 820}, "organization": {"id": 909}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "owner": {"id": 25}, "assignee": {"id": 581}, "organization": {"id": 626}, "project": {"owner": {"id": 783}, "assignee": {"id": 896}, "organization": {"id": 939}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 2}, "assignee": {"id": 546}, "organization": {"id": 132}, "project": {"owner": {"id": 710}, "assignee": {"id": 820}, "organization": {"id": 976}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 310, "owner": {"id": 58}, "assignee": {"id": 567}, "organization": {"id": 655}, "project": {"owner": {"id": 768}, "assignee": {"id": 854}, "organization": {"id": 954}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 25}, "assignee": {"id": 551}, "organization": {"id": 148}, "project": {"owner": {"id": 764}, "assignee": {"id": 898}, "organization": {"id": 985}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 326, "owner": {"id": 95}, "assignee": {"id": 519}, "organization": {"id": 604}, "project": {"owner": {"id": 772}, "assignee": {"id": 836}, "organization": {"id": 966}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 445}, "assignee": {"id": 76}, "organization": {"id": 100}, "project": {"owner": {"id": 774}, "assignee": {"id": 874}, "organization": {"id": 984}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 367, "owner": {"id": 460}, "assignee": {"id": 14}, "organization": {"id": 608}, "project": {"owner": {"id": 796}, "assignee": {"id": 838}, "organization": {"id": 948}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 480}, "assignee": {"id": 79}, "organization": {"id": 116}, "project": {"owner": {"id": 760}, "assignee": {"id": 889}, "organization": {"id": 929}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "owner": {"id": 459}, "assignee": {"id": 88}, "organization": {"id": 699}, "project": {"owner": {"id": 729}, "assignee": {"id": 811}, "organization": {"id": 939}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "owner": {"id": 442}, "assignee": {"id": 22}, "organization": {"id": 130}, "project": {"owner": {"id": 765}, "assignee": {"id": 866}, "organization": {"id": 993}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "owner": {"id": 433}, "assignee": {"id": 55}, "organization": {"id": 625}, "project": {"owner": {"id": 779}, "assignee": {"id": 852}, "organization": {"id": 973}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 339, "owner": {"id": 491}, "assignee": {"id": 19}, "organization": {"id": 131}, "project": {"owner": {"id": 786}, "assignee": {"id": 862}, "organization": {"id": 927}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 320, "owner": {"id": 432}, "assignee": {"id": 21}, "organization": {"id": 691}, "project": {"owner": {"id": 791}, "assignee": {"id": 821}, "organization": {"id": 977}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 331, "owner": {"id": 429}, "assignee": {"id": 66}, "organization": {"id": 151}, "project": {"owner": {"id": 700}, "assignee": {"id": 850}, "organization": {"id": 909}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 378, "owner": {"id": 482}, "assignee": {"id": 75}, "organization": {"id": 651}, "project": {"owner": {"id": 702}, "assignee": {"id": 845}, "organization": {"id": 950}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 447}, "assignee": {"id": 79}, "organization": {"id": 145}, "project": {"owner": {"id": 792}, "assignee": {"id": 889}, "organization": {"id": 952}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 367, "owner": {"id": 421}, "assignee": {"id": 12}, "organization": {"id": 610}, "project": {"owner": {"id": 754}, "assignee": {"id": 894}, "organization": {"id": 974}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "owner": {"id": 480}, "assignee": {"id": 19}, "organization": {"id": 197}, "project": {"owner": {"id": 786}, "assignee": {"id": 896}, "organization": {"id": 909}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "owner": {"id": 406}, "assignee": {"id": 76}, "organization": {"id": 640}, "project": {"owner": {"id": 750}, "assignee": {"id": 821}, "organization": {"id": 910}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 455}, "assignee": {"id": 38}, "organization": {"id": 118}, "project": {"owner": {"id": 793}, "assignee": {"id": 838}, "organization": {"id": 907}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 436}, "assignee": {"id": 48}, "organization": {"id": 688}, "project": {"owner": {"id": 786}, "assignee": {"id": 853}, "organization": {"id": 940}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 309, "owner": {"id": 450}, "assignee": {"id": 3}, "organization": {"id": 192}, "project": {"owner": {"id": 751}, "assignee": {"id": 838}, "organization": {"id": 931}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 420}, "assignee": {"id": 1}, "organization": {"id": 659}, "project": {"owner": {"id": 750}, "assignee": {"id": 849}, "organization": {"id": 988}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 391, "owner": {"id": 427}, "assignee": {"id": 96}, "organization": {"id": 167}, "project": {"owner": {"id": 778}, "assignee": {"id": 890}, "organization": {"id": 961}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 436}, "assignee": {"id": 28}, "organization": {"id": 648}, "project": {"owner": {"id": 748}, "assignee": {"id": 892}, "organization": {"id": 977}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 393, "owner": {"id": 461}, "assignee": {"id": 32}, "organization": {"id": 121}, "project": {"owner": {"id": 798}, "assignee": {"id": 895}, "organization": {"id": 922}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 365, "owner": {"id": 439}, "assignee": {"id": 62}, "organization": {"id": 609}, "project": {"owner": {"id": 722}, "assignee": {"id": 868}, "organization": {"id": 985}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 220}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "owner": {"id": 413}, "assignee": {"id": 54}, "organization": {"id": 113}, "project": {"owner": {"id": 794}, "assignee": {"id": 864}, "organization": {"id": 918}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "owner": {"id": 491}, "assignee": {"id": 77}, "organization": {"id": 678}, "project": {"owner": {"id": 770}, "assignee": {"id": 859}, "organization": {"id": 957}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "owner": {"id": 484}, "assignee": {"id": 4}, "organization": {"id": 152}, "project": {"owner": {"id": 774}, "assignee": {"id": 839}, "organization": {"id": 988}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "owner": {"id": 415}, "assignee": {"id": 92}, "organization": {"id": 658}, "project": {"owner": {"id": 744}, "assignee": {"id": 851}, "organization": {"id": 911}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 304, "owner": {"id": 471}, "assignee": {"id": 66}, "organization": {"id": 150}, "project": {"owner": {"id": 724}, "assignee": {"id": 818}, "organization": {"id": 941}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 334, "owner": {"id": 466}, "assignee": {"id": 58}, "organization": {"id": 603}, "project": {"owner": {"id": 748}, "assignee": {"id": 820}, "organization": {"id": 935}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 253}, "user": {"role": null}}}, "resource": {"id": 344, "owner": {"id": 450}, "assignee": {"id": 68}, "organization": {"id": 194}, "project": {"owner": {"id": 780}, "assignee": {"id": 896}, "organization": {"id": 989}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 340, "owner": {"id": 408}, "assignee": {"id": 45}, "organization": {"id": 603}, "project": {"owner": {"id": 743}, "assignee": {"id": 833}, "organization": {"id": 914}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 493}, "assignee": {"id": 59}, "organization": {"id": 198}, "project": {"owner": {"id": 753}, "assignee": {"id": 896}, "organization": {"id": 938}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 300, "owner": {"id": 414}, "assignee": {"id": 95}, "organization": {"id": 674}, "project": {"owner": {"id": 748}, "assignee": {"id": 817}, "organization": {"id": 902}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 330, "owner": {"id": 424}, "assignee": {"id": 47}, "organization": {"id": 198}, "project": {"owner": {"id": 762}, "assignee": {"id": 803}, "organization": {"id": 951}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "owner": {"id": 471}, "assignee": {"id": 42}, "organization": {"id": 626}, "project": {"owner": {"id": 760}, "assignee": {"id": 869}, "organization": {"id": 975}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "owner": {"id": 425}, "assignee": {"id": 8}, "organization": {"id": 120}, "project": {"owner": {"id": 728}, "assignee": {"id": 846}, "organization": {"id": 983}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 90, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 302, "owner": {"id": 439}, "assignee": {"id": 90}, "organization": {"id": 669}, "project": {"owner": {"id": 772}, "assignee": {"id": 853}, "organization": {"id": 928}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 377, "owner": {"id": 446}, "assignee": {"id": 7}, "organization": {"id": 135}, "project": {"owner": {"id": 706}, "assignee": {"id": 843}, "organization": {"id": 905}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 311, "owner": {"id": 495}, "assignee": {"id": 97}, "organization": {"id": 693}, "project": {"owner": {"id": 751}, "assignee": {"id": 882}, "organization": {"id": 948}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"id": 347, "owner": {"id": 471}, "assignee": {"id": 20}, "organization": {"id": 182}, "project": {"owner": {"id": 774}, "assignee": {"id": 840}, "organization": {"id": 972}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 67, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 327, "owner": {"id": 474}, "assignee": {"id": 67}, "organization": {"id": 683}, "project": {"owner": {"id": 764}, "assignee": {"id": 810}, "organization": {"id": 943}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 331, "owner": {"id": 420}, "assignee": {"id": 14}, "organization": {"id": 113}, "project": {"owner": {"id": 762}, "assignee": {"id": 807}, "organization": {"id": 921}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 369, "owner": {"id": 495}, "assignee": {"id": 68}, "organization": {"id": 651}, "project": {"owner": {"id": 785}, "assignee": {"id": 805}, "organization": {"id": 920}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 389, "owner": {"id": 423}, "assignee": {"id": 77}, "organization": {"id": 150}, "project": {"owner": {"id": 732}, "assignee": {"id": 878}, "organization": {"id": 964}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "owner": {"id": 484}, "assignee": {"id": 70}, "organization": {"id": 684}, "project": {"owner": {"id": 712}, "assignee": {"id": 891}, "organization": {"id": 961}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "owner": {"id": 433}, "assignee": {"id": 49}, "organization": {"id": 111}, "project": {"owner": {"id": 770}, "assignee": {"id": 889}, "organization": {"id": 924}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "owner": {"id": 408}, "assignee": {"id": 48}, "organization": {"id": 630}, "project": {"owner": {"id": 771}, "assignee": {"id": 828}, "organization": {"id": 928}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 381, "owner": {"id": 498}, "assignee": {"id": 59}, "organization": {"id": 189}, "project": {"owner": {"id": 775}, "assignee": {"id": 825}, "organization": {"id": 936}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 329, "owner": {"id": 406}, "assignee": {"id": 59}, "organization": {"id": 637}, "project": {"owner": {"id": 782}, "assignee": {"id": 818}, "organization": {"id": 955}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 399, "owner": {"id": 434}, "assignee": {"id": 13}, "organization": {"id": 198}, "project": {"owner": {"id": 755}, "assignee": {"id": 893}, "organization": {"id": 908}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 344, "owner": {"id": 451}, "assignee": {"id": 76}, "organization": {"id": 682}, "project": {"owner": {"id": 709}, "assignee": {"id": 852}, "organization": {"id": 900}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 407}, "assignee": {"id": 547}, "organization": {"id": 103}, "project": {"owner": {"id": 765}, "assignee": {"id": 863}, "organization": {"id": 954}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 493}, "assignee": {"id": 509}, "organization": {"id": 660}, "project": {"owner": {"id": 769}, "assignee": {"id": 820}, "organization": {"id": 986}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "owner": {"id": 495}, "assignee": {"id": 580}, "organization": {"id": 169}, "project": {"owner": {"id": 729}, "assignee": {"id": 802}, "organization": {"id": 957}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "owner": {"id": 419}, "assignee": {"id": 558}, "organization": {"id": 676}, "project": {"owner": {"id": 763}, "assignee": {"id": 893}, "organization": {"id": 991}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "owner": {"id": 401}, "assignee": {"id": 514}, "organization": {"id": 139}, "project": {"owner": {"id": 778}, "assignee": {"id": 854}, "organization": {"id": 979}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 419}, "assignee": {"id": 513}, "organization": {"id": 660}, "project": {"owner": {"id": 737}, "assignee": {"id": 847}, "organization": {"id": 983}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 171, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 488}, "assignee": {"id": 569}, "organization": {"id": 171}, "project": {"owner": {"id": 734}, "assignee": {"id": 825}, "organization": {"id": 970}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 338, "owner": {"id": 428}, "assignee": {"id": 588}, "organization": {"id": 671}, "project": {"owner": {"id": 702}, "assignee": {"id": 885}, "organization": {"id": 950}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 338, "owner": {"id": 447}, "assignee": {"id": 559}, "organization": {"id": 158}, "project": {"owner": {"id": 745}, "assignee": {"id": 844}, "organization": {"id": 994}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 370, "owner": {"id": 408}, "assignee": {"id": 543}, "organization": {"id": 681}, "project": {"owner": {"id": 754}, "assignee": {"id": 891}, "organization": {"id": 957}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 382, "owner": {"id": 416}, "assignee": {"id": 567}, "organization": {"id": 183}, "project": {"owner": {"id": 744}, "assignee": {"id": 854}, "organization": {"id": 910}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 316, "owner": {"id": 480}, "assignee": {"id": 529}, "organization": {"id": 620}, "project": {"owner": {"id": 761}, "assignee": {"id": 851}, "organization": {"id": 927}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "owner": {"id": 480}, "assignee": {"id": 599}, "organization": {"id": 126}, "project": {"owner": {"id": 736}, "assignee": {"id": 899}, "organization": {"id": 977}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "owner": {"id": 457}, "assignee": {"id": 550}, "organization": {"id": 666}, "project": {"owner": {"id": 759}, "assignee": {"id": 887}, "organization": {"id": 988}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "owner": {"id": 437}, "assignee": {"id": 563}, "organization": {"id": 145}, "project": {"owner": {"id": 768}, "assignee": {"id": 810}, "organization": {"id": 986}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 81, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 404}, "assignee": {"id": 574}, "organization": {"id": 655}, "project": {"owner": {"id": 713}, "assignee": {"id": 881}, "organization": {"id": 973}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 398, "owner": {"id": 480}, "assignee": {"id": 544}, "organization": {"id": 127}, "project": {"owner": {"id": 711}, "assignee": {"id": 862}, "organization": {"id": 940}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 407}, "assignee": {"id": 552}, "organization": {"id": 606}, "project": {"owner": {"id": 719}, "assignee": {"id": 815}, "organization": {"id": 904}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 323, "owner": {"id": 455}, "assignee": {"id": 578}, "organization": {"id": 198}, "project": {"owner": {"id": 779}, "assignee": {"id": 853}, "organization": {"id": 961}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 358, "owner": {"id": 464}, "assignee": {"id": 589}, "organization": {"id": 630}, "project": {"owner": {"id": 727}, "assignee": {"id": 822}, "organization": {"id": 922}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 325, "owner": {"id": 408}, "assignee": {"id": 572}, "organization": {"id": 153}, "project": {"owner": {"id": 766}, "assignee": {"id": 822}, "organization": {"id": 938}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 409}, "assignee": {"id": 596}, "organization": {"id": 616}, "project": {"owner": {"id": 705}, "assignee": {"id": 805}, "organization": {"id": 955}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "upload:data", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 457}, "assignee": {"id": 520}, "organization": {"id": 174}, "project": {"owner": {"id": 758}, "assignee": {"id": 815}, "organization": {"id": 947}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "owner": {"id": 438}, "assignee": {"id": 592}, "organization": {"id": 691}, "project": {"owner": {"id": 759}, "assignee": {"id": 801}, "organization": {"id": 909}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "owner": {"id": 486}, "assignee": {"id": 598}, "organization": {"id": 145}, "project": {"owner": {"id": 795}, "assignee": {"id": 898}, "organization": {"id": 932}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "owner": {"id": 448}, "assignee": {"id": 535}, "organization": {"id": 649}, "project": {"owner": {"id": 703}, "assignee": {"id": 862}, "organization": {"id": 987}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 300, "owner": {"id": 455}, "assignee": {"id": 581}, "organization": {"id": 170}, "project": {"owner": {"id": 786}, "assignee": {"id": 850}, "organization": {"id": 944}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 325, "owner": {"id": 406}, "assignee": {"id": 504}, "organization": {"id": 633}, "project": {"owner": {"id": 741}, "assignee": {"id": 847}, "organization": {"id": 960}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 468}, "assignee": {"id": 542}, "organization": {"id": 194}, "project": {"owner": {"id": 723}, "assignee": {"id": 819}, "organization": {"id": 919}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 302, "owner": {"id": 498}, "assignee": {"id": 549}, "organization": {"id": 644}, "project": {"owner": {"id": 792}, "assignee": {"id": 886}, "organization": {"id": 979}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 339, "owner": {"id": 482}, "assignee": {"id": 514}, "organization": {"id": 110}, "project": {"owner": {"id": 734}, "assignee": {"id": 817}, "organization": {"id": 981}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 384, "owner": {"id": 400}, "assignee": {"id": 526}, "organization": {"id": 636}, "project": {"owner": {"id": 718}, "assignee": {"id": 800}, "organization": {"id": 991}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 422}, "assignee": {"id": 508}, "organization": {"id": 153}, "project": {"owner": {"id": 703}, "assignee": {"id": 835}, "organization": {"id": 992}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 482}, "assignee": {"id": 503}, "organization": {"id": 684}, "project": {"owner": {"id": 791}, "assignee": {"id": 885}, "organization": {"id": 971}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 418}, "assignee": {"id": 515}, "organization": {"id": 130}, "project": {"owner": {"id": 755}, "assignee": {"id": 861}, "organization": {"id": 913}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 449}, "assignee": {"id": 589}, "organization": {"id": 643}, "project": {"owner": {"id": 764}, "assignee": {"id": 828}, "organization": {"id": 950}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 369, "owner": {"id": 400}, "assignee": {"id": 595}, "organization": {"id": 152}, "project": {"owner": {"id": 786}, "assignee": {"id": 880}, "organization": {"id": 992}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 353, "owner": {"id": 445}, "assignee": {"id": 569}, "organization": {"id": 687}, "project": {"owner": {"id": 713}, "assignee": {"id": 828}, "organization": {"id": 954}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 321, "owner": {"id": 497}, "assignee": {"id": 519}, "organization": {"id": 103}, "project": {"owner": {"id": 769}, "assignee": {"id": 848}, "organization": {"id": 908}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 312, "owner": {"id": 430}, "assignee": {"id": 502}, "organization": {"id": 690}, "project": {"owner": {"id": 789}, "assignee": {"id": 846}, "organization": {"id": 903}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 377, "owner": {"id": 473}, "assignee": {"id": 533}, "organization": {"id": 170}, "project": {"owner": {"id": 770}, "assignee": {"id": 824}, "organization": {"id": 937}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 434}, "assignee": {"id": 550}, "organization": {"id": 600}, "project": {"owner": {"id": 796}, "assignee": {"id": 886}, "organization": {"id": 996}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 389, "owner": {"id": 456}, "assignee": {"id": 538}, "organization": {"id": 138}, "project": {"owner": {"id": 794}, "assignee": {"id": 859}, "organization": {"id": 972}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 48, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "owner": {"id": 439}, "assignee": {"id": 536}, "organization": {"id": 614}, "project": {"owner": {"id": 785}, "assignee": {"id": 859}, "organization": {"id": 947}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "owner": {"id": 476}, "assignee": {"id": 550}, "organization": {"id": 174}, "project": {"owner": {"id": 711}, "assignee": {"id": 828}, "organization": {"id": 921}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 379, "owner": {"id": 447}, "assignee": {"id": 501}, "organization": {"id": 614}, "project": {"owner": {"id": 786}, "assignee": {"id": 875}, "organization": {"id": 961}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 397, "owner": {"id": 424}, "assignee": {"id": 517}, "organization": {"id": 100}, "project": {"owner": {"id": 750}, "assignee": {"id": 843}, "organization": {"id": 964}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 419}, "assignee": {"id": 548}, "organization": {"id": 685}, "project": {"owner": {"id": 760}, "assignee": {"id": 886}, "organization": {"id": 904}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 309, "owner": {"id": 493}, "assignee": {"id": 514}, "organization": {"id": 186}, "project": {"owner": {"id": 728}, "assignee": {"id": 867}, "organization": {"id": 968}}}} -} - -test_scope_UPLOAD_DATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "upload:data", "auth": {"user": {"id": 50, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 377, "owner": {"id": 402}, "assignee": {"id": 534}, "organization": {"id": 643}, "project": {"owner": {"id": 780}, "assignee": {"id": 865}, "organization": {"id": 911}}}} -} - -test_scope_UPDATE_PROJECT_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": null}, "resource": {"id": 333, "owner": {"id": 474}, "assignee": {"id": 522}, "organization": {"id": 688}, "project": {"owner": {"id": 3}, "assignee": {"id": 832}, "organization": {"id": 933}}}} -} - -test_scope_UPDATE_PROJECT_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": null}, "resource": {"id": 325, "owner": {"id": 443}, "assignee": {"id": 528}, "organization": {"id": 666}, "project": {"owner": {"id": 25}, "assignee": {"id": 839}, "organization": {"id": 956}}}} -} - -test_scope_UPDATE_PROJECT_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": null}, "resource": {"id": 306, "owner": {"id": 419}, "assignee": {"id": 518}, "organization": {"id": 693}, "project": {"owner": {"id": 21}, "assignee": {"id": 810}, "organization": {"id": 904}}}} -} - -test_scope_UPDATE_PROJECT_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": null}, "resource": {"id": 394, "owner": {"id": 475}, "assignee": {"id": 500}, "organization": {"id": 601}, "project": {"owner": {"id": 94}, "assignee": {"id": 861}, "organization": {"id": 986}}}} -} - -test_scope_UPDATE_PROJECT_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": null}, "resource": {"id": 377, "owner": {"id": 419}, "assignee": {"id": 581}, "organization": {"id": 613}, "project": {"owner": {"id": 66}, "assignee": {"id": 812}, "organization": {"id": 900}}}} -} - -test_scope_UPDATE_PROJECT_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": null}, "resource": {"id": 398, "owner": {"id": 425}, "assignee": {"id": 511}, "organization": {"id": 653}, "project": {"owner": {"id": 771}, "assignee": {"id": 89}, "organization": {"id": 911}}}} -} - -test_scope_UPDATE_PROJECT_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": null}, "resource": {"id": 343, "owner": {"id": 468}, "assignee": {"id": 583}, "organization": {"id": 672}, "project": {"owner": {"id": 771}, "assignee": {"id": 92}, "organization": {"id": 920}}}} -} - -test_scope_UPDATE_PROJECT_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": null}, "resource": {"id": 345, "owner": {"id": 446}, "assignee": {"id": 593}, "organization": {"id": 627}, "project": {"owner": {"id": 776}, "assignee": {"id": 33}, "organization": {"id": 966}}}} -} - -test_scope_UPDATE_PROJECT_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": null}, "resource": {"id": 368, "owner": {"id": 454}, "assignee": {"id": 585}, "organization": {"id": 615}, "project": {"owner": {"id": 752}, "assignee": {"id": 9}, "organization": {"id": 906}}}} -} - -test_scope_UPDATE_PROJECT_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": null}, "resource": {"id": 373, "owner": {"id": 484}, "assignee": {"id": 517}, "organization": {"id": 613}, "project": {"owner": {"id": 715}, "assignee": {"id": 68}, "organization": {"id": 922}}}} -} - -test_scope_UPDATE_PROJECT_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": null}, "resource": {"id": 328, "owner": {"id": 85}, "assignee": {"id": 500}, "organization": {"id": 634}, "project": {"owner": {"id": 758}, "assignee": {"id": 812}, "organization": {"id": 948}}}} -} - -test_scope_UPDATE_PROJECT_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": null}, "resource": {"id": 347, "owner": {"id": 44}, "assignee": {"id": 532}, "organization": {"id": 630}, "project": {"owner": {"id": 747}, "assignee": {"id": 830}, "organization": {"id": 941}}}} -} - -test_scope_UPDATE_PROJECT_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": null}, "resource": {"id": 389, "owner": {"id": 97}, "assignee": {"id": 559}, "organization": {"id": 659}, "project": {"owner": {"id": 746}, "assignee": {"id": 847}, "organization": {"id": 954}}}} -} - -test_scope_UPDATE_PROJECT_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": null}, "resource": {"id": 330, "owner": {"id": 58}, "assignee": {"id": 519}, "organization": {"id": 626}, "project": {"owner": {"id": 705}, "assignee": {"id": 891}, "organization": {"id": 989}}}} -} - -test_scope_UPDATE_PROJECT_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": null}, "resource": {"id": 338, "owner": {"id": 72}, "assignee": {"id": 519}, "organization": {"id": 646}, "project": {"owner": {"id": 795}, "assignee": {"id": 888}, "organization": {"id": 906}}}} -} - -test_scope_UPDATE_PROJECT_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": null}, "resource": {"id": 323, "owner": {"id": 458}, "assignee": {"id": 86}, "organization": {"id": 646}, "project": {"owner": {"id": 733}, "assignee": {"id": 881}, "organization": {"id": 962}}}} -} - -test_scope_UPDATE_PROJECT_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": null}, "resource": {"id": 305, "owner": {"id": 433}, "assignee": {"id": 53}, "organization": {"id": 643}, "project": {"owner": {"id": 781}, "assignee": {"id": 837}, "organization": {"id": 924}}}} -} - -test_scope_UPDATE_PROJECT_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": null}, "resource": {"id": 323, "owner": {"id": 462}, "assignee": {"id": 13}, "organization": {"id": 637}, "project": {"owner": {"id": 777}, "assignee": {"id": 895}, "organization": {"id": 905}}}} -} - -test_scope_UPDATE_PROJECT_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": null}, "resource": {"id": 388, "owner": {"id": 446}, "assignee": {"id": 80}, "organization": {"id": 645}, "project": {"owner": {"id": 706}, "assignee": {"id": 844}, "organization": {"id": 912}}}} -} - -test_scope_UPDATE_PROJECT_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": null}, "resource": {"id": 346, "owner": {"id": 499}, "assignee": {"id": 44}, "organization": {"id": 656}, "project": {"owner": {"id": 722}, "assignee": {"id": 845}, "organization": {"id": 952}}}} -} - -test_scope_UPDATE_PROJECT_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": null}, "resource": {"id": 332, "owner": {"id": 407}, "assignee": {"id": 584}, "organization": {"id": 694}, "project": {"owner": {"id": 736}, "assignee": {"id": 860}, "organization": {"id": 971}}}} -} - -test_scope_UPDATE_PROJECT_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": null}, "resource": {"id": 307, "owner": {"id": 437}, "assignee": {"id": 578}, "organization": {"id": 657}, "project": {"owner": {"id": 780}, "assignee": {"id": 885}, "organization": {"id": 929}}}} -} - -test_scope_UPDATE_PROJECT_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": null}, "resource": {"id": 392, "owner": {"id": 433}, "assignee": {"id": 573}, "organization": {"id": 687}, "project": {"owner": {"id": 736}, "assignee": {"id": 846}, "organization": {"id": 957}}}} -} - -test_scope_UPDATE_PROJECT_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": null}, "resource": {"id": 345, "owner": {"id": 442}, "assignee": {"id": 581}, "organization": {"id": 686}, "project": {"owner": {"id": 711}, "assignee": {"id": 856}, "organization": {"id": 918}}}} -} - -test_scope_UPDATE_PROJECT_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": null}, "resource": {"id": 304, "owner": {"id": 480}, "assignee": {"id": 578}, "organization": {"id": 659}, "project": {"owner": {"id": 775}, "assignee": {"id": 869}, "organization": {"id": 975}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"id": 313, "owner": {"id": 471}, "assignee": {"id": 563}, "organization": {"id": 194}, "project": {"owner": {"id": 66}, "assignee": {"id": 866}, "organization": {"id": 958}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 457}, "assignee": {"id": 533}, "organization": {"id": 688}, "project": {"owner": {"id": 54}, "assignee": {"id": 887}, "organization": {"id": 915}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "owner": {"id": 441}, "assignee": {"id": 555}, "organization": {"id": 155}, "project": {"owner": {"id": 67}, "assignee": {"id": 886}, "organization": {"id": 973}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 469}, "assignee": {"id": 568}, "organization": {"id": 642}, "project": {"owner": {"id": 70}, "assignee": {"id": 893}, "organization": {"id": 954}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "owner": {"id": 471}, "assignee": {"id": 547}, "organization": {"id": 178}, "project": {"owner": {"id": 59}, "assignee": {"id": 866}, "organization": {"id": 946}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 408}, "assignee": {"id": 543}, "organization": {"id": 636}, "project": {"owner": {"id": 47}, "assignee": {"id": 810}, "organization": {"id": 985}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 365, "owner": {"id": 474}, "assignee": {"id": 571}, "organization": {"id": 182}, "project": {"owner": {"id": 70}, "assignee": {"id": 813}, "organization": {"id": 969}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 310, "owner": {"id": 448}, "assignee": {"id": 586}, "organization": {"id": 698}, "project": {"owner": {"id": 25}, "assignee": {"id": 868}, "organization": {"id": 962}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 78, "privilege": "admin"}, "organization": {"id": 151, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 471}, "assignee": {"id": 599}, "organization": {"id": 151}, "project": {"owner": {"id": 78}, "assignee": {"id": 889}, "organization": {"id": 932}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 357, "owner": {"id": 447}, "assignee": {"id": 558}, "organization": {"id": 684}, "project": {"owner": {"id": 73}, "assignee": {"id": 889}, "organization": {"id": 948}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 417}, "assignee": {"id": 524}, "organization": {"id": 123}, "project": {"owner": {"id": 36}, "assignee": {"id": 897}, "organization": {"id": 993}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 349, "owner": {"id": 471}, "assignee": {"id": 525}, "organization": {"id": 678}, "project": {"owner": {"id": 48}, "assignee": {"id": 899}, "organization": {"id": 985}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "owner": {"id": 459}, "assignee": {"id": 512}, "organization": {"id": 159}, "project": {"owner": {"id": 45}, "assignee": {"id": 881}, "organization": {"id": 978}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 413}, "assignee": {"id": 554}, "organization": {"id": 670}, "project": {"owner": {"id": 80}, "assignee": {"id": 844}, "organization": {"id": 908}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 434}, "assignee": {"id": 580}, "organization": {"id": 156}, "project": {"owner": {"id": 97}, "assignee": {"id": 828}, "organization": {"id": 966}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 378, "owner": {"id": 486}, "assignee": {"id": 524}, "organization": {"id": 605}, "project": {"owner": {"id": 37}, "assignee": {"id": 868}, "organization": {"id": 914}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 406}, "assignee": {"id": 535}, "organization": {"id": 194}, "project": {"owner": {"id": 23}, "assignee": {"id": 850}, "organization": {"id": 989}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 318, "owner": {"id": 472}, "assignee": {"id": 520}, "organization": {"id": 619}, "project": {"owner": {"id": 91}, "assignee": {"id": 899}, "organization": {"id": 972}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 356, "owner": {"id": 454}, "assignee": {"id": 521}, "organization": {"id": 146}, "project": {"owner": {"id": 70}, "assignee": {"id": 892}, "organization": {"id": 972}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 323, "owner": {"id": 491}, "assignee": {"id": 556}, "organization": {"id": 616}, "project": {"owner": {"id": 55}, "assignee": {"id": 817}, "organization": {"id": 905}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 435}, "assignee": {"id": 574}, "organization": {"id": 127}, "project": {"owner": {"id": 63}, "assignee": {"id": 846}, "organization": {"id": 973}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 330, "owner": {"id": 458}, "assignee": {"id": 541}, "organization": {"id": 685}, "project": {"owner": {"id": 32}, "assignee": {"id": 860}, "organization": {"id": 999}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 464}, "assignee": {"id": 598}, "organization": {"id": 151}, "project": {"owner": {"id": 91}, "assignee": {"id": 826}, "organization": {"id": 900}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "owner": {"id": 472}, "assignee": {"id": 533}, "organization": {"id": 666}, "project": {"owner": {"id": 35}, "assignee": {"id": 856}, "organization": {"id": 906}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "owner": {"id": 462}, "assignee": {"id": 519}, "organization": {"id": 179}, "project": {"owner": {"id": 92}, "assignee": {"id": 817}, "organization": {"id": 957}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "owner": {"id": 474}, "assignee": {"id": 508}, "organization": {"id": 654}, "project": {"owner": {"id": 78}, "assignee": {"id": 857}, "organization": {"id": 988}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 303, "owner": {"id": 404}, "assignee": {"id": 534}, "organization": {"id": 188}, "project": {"owner": {"id": 21}, "assignee": {"id": 818}, "organization": {"id": 900}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 367, "owner": {"id": 468}, "assignee": {"id": 571}, "organization": {"id": 690}, "project": {"owner": {"id": 56}, "assignee": {"id": 827}, "organization": {"id": 974}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 300, "owner": {"id": 498}, "assignee": {"id": 571}, "organization": {"id": 185}, "project": {"owner": {"id": 40}, "assignee": {"id": 804}, "organization": {"id": 908}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 395, "owner": {"id": 438}, "assignee": {"id": 587}, "organization": {"id": 622}, "project": {"owner": {"id": 11}, "assignee": {"id": 836}, "organization": {"id": 931}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 51, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 379, "owner": {"id": 473}, "assignee": {"id": 527}, "organization": {"id": 160}, "project": {"owner": {"id": 51}, "assignee": {"id": 802}, "organization": {"id": 927}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 333, "owner": {"id": 404}, "assignee": {"id": 504}, "organization": {"id": 675}, "project": {"owner": {"id": 99}, "assignee": {"id": 893}, "organization": {"id": 943}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "owner": {"id": 418}, "assignee": {"id": 563}, "organization": {"id": 188}, "project": {"owner": {"id": 13}, "assignee": {"id": 865}, "organization": {"id": 927}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "owner": {"id": 469}, "assignee": {"id": 507}, "organization": {"id": 630}, "project": {"owner": {"id": 3}, "assignee": {"id": 835}, "organization": {"id": 924}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 469}, "assignee": {"id": 570}, "organization": {"id": 139}, "project": {"owner": {"id": 95}, "assignee": {"id": 805}, "organization": {"id": 942}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 470}, "assignee": {"id": 516}, "organization": {"id": 663}, "project": {"owner": {"id": 76}, "assignee": {"id": 845}, "organization": {"id": 987}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 466}, "assignee": {"id": 547}, "organization": {"id": 164}, "project": {"owner": {"id": 35}, "assignee": {"id": 876}, "organization": {"id": 963}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 387, "owner": {"id": 489}, "assignee": {"id": 538}, "organization": {"id": 653}, "project": {"owner": {"id": 69}, "assignee": {"id": 856}, "organization": {"id": 933}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 421}, "assignee": {"id": 568}, "organization": {"id": 138}, "project": {"owner": {"id": 1}, "assignee": {"id": 821}, "organization": {"id": 942}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 459}, "assignee": {"id": 511}, "organization": {"id": 689}, "project": {"owner": {"id": 37}, "assignee": {"id": 889}, "organization": {"id": 962}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 469}, "assignee": {"id": 569}, "organization": {"id": 119}, "project": {"owner": {"id": 10}, "assignee": {"id": 852}, "organization": {"id": 955}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 403}, "assignee": {"id": 510}, "organization": {"id": 608}, "project": {"owner": {"id": 12}, "assignee": {"id": 885}, "organization": {"id": 904}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 490}, "assignee": {"id": 514}, "organization": {"id": 106}, "project": {"owner": {"id": 52}, "assignee": {"id": 812}, "organization": {"id": 988}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "owner": {"id": 422}, "assignee": {"id": 594}, "organization": {"id": 612}, "project": {"owner": {"id": 78}, "assignee": {"id": 874}, "organization": {"id": 951}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 320, "owner": {"id": 452}, "assignee": {"id": 593}, "organization": {"id": 160}, "project": {"owner": {"id": 34}, "assignee": {"id": 848}, "organization": {"id": 971}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "owner": {"id": 402}, "assignee": {"id": 520}, "organization": {"id": 606}, "project": {"owner": {"id": 39}, "assignee": {"id": 824}, "organization": {"id": 908}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 375, "owner": {"id": 416}, "assignee": {"id": 535}, "organization": {"id": 195}, "project": {"owner": {"id": 45}, "assignee": {"id": 823}, "organization": {"id": 974}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 300, "owner": {"id": 485}, "assignee": {"id": 544}, "organization": {"id": 655}, "project": {"owner": {"id": 36}, "assignee": {"id": 889}, "organization": {"id": 949}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 495}, "assignee": {"id": 515}, "organization": {"id": 197}, "project": {"owner": {"id": 35}, "assignee": {"id": 822}, "organization": {"id": 998}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 204}, "user": {"role": null}}}, "resource": {"id": 317, "owner": {"id": 462}, "assignee": {"id": 586}, "organization": {"id": 626}, "project": {"owner": {"id": 72}, "assignee": {"id": 867}, "organization": {"id": 971}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 406}, "assignee": {"id": 539}, "organization": {"id": 156}, "project": {"owner": {"id": 749}, "assignee": {"id": 26}, "organization": {"id": 902}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 336, "owner": {"id": 493}, "assignee": {"id": 545}, "organization": {"id": 660}, "project": {"owner": {"id": 709}, "assignee": {"id": 9}, "organization": {"id": 979}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "owner": {"id": 461}, "assignee": {"id": 525}, "organization": {"id": 132}, "project": {"owner": {"id": 789}, "assignee": {"id": 9}, "organization": {"id": 980}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 412}, "assignee": {"id": 535}, "organization": {"id": 603}, "project": {"owner": {"id": 759}, "assignee": {"id": 98}, "organization": {"id": 971}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "owner": {"id": 484}, "assignee": {"id": 548}, "organization": {"id": 163}, "project": {"owner": {"id": 776}, "assignee": {"id": 1}, "organization": {"id": 975}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 324, "owner": {"id": 466}, "assignee": {"id": 528}, "organization": {"id": 672}, "project": {"owner": {"id": 737}, "assignee": {"id": 14}, "organization": {"id": 959}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 433}, "assignee": {"id": 518}, "organization": {"id": 138}, "project": {"owner": {"id": 762}, "assignee": {"id": 85}, "organization": {"id": 953}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 472}, "assignee": {"id": 517}, "organization": {"id": 616}, "project": {"owner": {"id": 716}, "assignee": {"id": 56}, "organization": {"id": 988}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 353, "owner": {"id": 492}, "assignee": {"id": 537}, "organization": {"id": 173}, "project": {"owner": {"id": 703}, "assignee": {"id": 90}, "organization": {"id": 964}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 320, "owner": {"id": 433}, "assignee": {"id": 515}, "organization": {"id": 634}, "project": {"owner": {"id": 728}, "assignee": {"id": 90}, "organization": {"id": 935}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 454}, "assignee": {"id": 539}, "organization": {"id": 110}, "project": {"owner": {"id": 750}, "assignee": {"id": 61}, "organization": {"id": 977}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 305, "owner": {"id": 411}, "assignee": {"id": 517}, "organization": {"id": 693}, "project": {"owner": {"id": 705}, "assignee": {"id": 30}, "organization": {"id": 926}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "owner": {"id": 481}, "assignee": {"id": 574}, "organization": {"id": 176}, "project": {"owner": {"id": 791}, "assignee": {"id": 34}, "organization": {"id": 979}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "owner": {"id": 451}, "assignee": {"id": 558}, "organization": {"id": 645}, "project": {"owner": {"id": 753}, "assignee": {"id": 84}, "organization": {"id": 948}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"id": 348, "owner": {"id": 450}, "assignee": {"id": 556}, "organization": {"id": 138}, "project": {"owner": {"id": 773}, "assignee": {"id": 28}, "organization": {"id": 911}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 365, "owner": {"id": 413}, "assignee": {"id": 550}, "organization": {"id": 674}, "project": {"owner": {"id": 797}, "assignee": {"id": 1}, "organization": {"id": 935}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 338, "owner": {"id": 499}, "assignee": {"id": 518}, "organization": {"id": 195}, "project": {"owner": {"id": 714}, "assignee": {"id": 32}, "organization": {"id": 989}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 325, "owner": {"id": 489}, "assignee": {"id": 517}, "organization": {"id": 686}, "project": {"owner": {"id": 736}, "assignee": {"id": 88}, "organization": {"id": 936}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 165, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 315, "owner": {"id": 439}, "assignee": {"id": 551}, "organization": {"id": 165}, "project": {"owner": {"id": 701}, "assignee": {"id": 73}, "organization": {"id": 936}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 340, "owner": {"id": 479}, "assignee": {"id": 505}, "organization": {"id": 606}, "project": {"owner": {"id": 742}, "assignee": {"id": 97}, "organization": {"id": 912}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 324, "owner": {"id": 454}, "assignee": {"id": 546}, "organization": {"id": 107}, "project": {"owner": {"id": 797}, "assignee": {"id": 74}, "organization": {"id": 951}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 376, "owner": {"id": 485}, "assignee": {"id": 510}, "organization": {"id": 668}, "project": {"owner": {"id": 729}, "assignee": {"id": 45}, "organization": {"id": 952}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 358, "owner": {"id": 473}, "assignee": {"id": 596}, "organization": {"id": 127}, "project": {"owner": {"id": 704}, "assignee": {"id": 68}, "organization": {"id": 958}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "owner": {"id": 411}, "assignee": {"id": 502}, "organization": {"id": 669}, "project": {"owner": {"id": 706}, "assignee": {"id": 4}, "organization": {"id": 945}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 484}, "assignee": {"id": 527}, "organization": {"id": 155}, "project": {"owner": {"id": 734}, "assignee": {"id": 26}, "organization": {"id": 914}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "owner": {"id": 416}, "assignee": {"id": 592}, "organization": {"id": 689}, "project": {"owner": {"id": 777}, "assignee": {"id": 93}, "organization": {"id": 922}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 305, "owner": {"id": 485}, "assignee": {"id": 586}, "organization": {"id": 124}, "project": {"owner": {"id": 742}, "assignee": {"id": 0}, "organization": {"id": 941}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 318, "owner": {"id": 496}, "assignee": {"id": 589}, "organization": {"id": 612}, "project": {"owner": {"id": 746}, "assignee": {"id": 45}, "organization": {"id": 973}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"id": 394, "owner": {"id": 447}, "assignee": {"id": 573}, "organization": {"id": 188}, "project": {"owner": {"id": 722}, "assignee": {"id": 77}, "organization": {"id": 908}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 455}, "assignee": {"id": 550}, "organization": {"id": 643}, "project": {"owner": {"id": 741}, "assignee": {"id": 5}, "organization": {"id": 948}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 311, "owner": {"id": 413}, "assignee": {"id": 582}, "organization": {"id": 170}, "project": {"owner": {"id": 798}, "assignee": {"id": 16}, "organization": {"id": 926}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 431}, "assignee": {"id": 519}, "organization": {"id": 688}, "project": {"owner": {"id": 745}, "assignee": {"id": 25}, "organization": {"id": 968}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 209}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "owner": {"id": 434}, "assignee": {"id": 589}, "organization": {"id": 119}, "project": {"owner": {"id": 779}, "assignee": {"id": 74}, "organization": {"id": 960}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "owner": {"id": 453}, "assignee": {"id": 543}, "organization": {"id": 609}, "project": {"owner": {"id": 739}, "assignee": {"id": 8}, "organization": {"id": 915}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "owner": {"id": 470}, "assignee": {"id": 563}, "organization": {"id": 130}, "project": {"owner": {"id": 748}, "assignee": {"id": 63}, "organization": {"id": 915}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "owner": {"id": 422}, "assignee": {"id": 515}, "organization": {"id": 647}, "project": {"owner": {"id": 726}, "assignee": {"id": 32}, "organization": {"id": 997}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 326, "owner": {"id": 446}, "assignee": {"id": 541}, "organization": {"id": 128}, "project": {"owner": {"id": 774}, "assignee": {"id": 59}, "organization": {"id": 950}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 192, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 325, "owner": {"id": 485}, "assignee": {"id": 513}, "organization": {"id": 619}, "project": {"owner": {"id": 715}, "assignee": {"id": 9}, "organization": {"id": 999}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 339, "owner": {"id": 425}, "assignee": {"id": 532}, "organization": {"id": 149}, "project": {"owner": {"id": 785}, "assignee": {"id": 89}, "organization": {"id": 948}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 377, "owner": {"id": 414}, "assignee": {"id": 525}, "organization": {"id": 688}, "project": {"owner": {"id": 748}, "assignee": {"id": 42}, "organization": {"id": 910}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 335, "owner": {"id": 433}, "assignee": {"id": 501}, "organization": {"id": 153}, "project": {"owner": {"id": 749}, "assignee": {"id": 37}, "organization": {"id": 909}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 314, "owner": {"id": 489}, "assignee": {"id": 516}, "organization": {"id": 601}, "project": {"owner": {"id": 743}, "assignee": {"id": 35}, "organization": {"id": 970}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "owner": {"id": 432}, "assignee": {"id": 557}, "organization": {"id": 107}, "project": {"owner": {"id": 728}, "assignee": {"id": 54}, "organization": {"id": 925}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 437}, "assignee": {"id": 566}, "organization": {"id": 613}, "project": {"owner": {"id": 725}, "assignee": {"id": 47}, "organization": {"id": 924}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "owner": {"id": 431}, "assignee": {"id": 554}, "organization": {"id": 114}, "project": {"owner": {"id": 735}, "assignee": {"id": 44}, "organization": {"id": 956}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 303, "owner": {"id": 486}, "assignee": {"id": 500}, "organization": {"id": 657}, "project": {"owner": {"id": 784}, "assignee": {"id": 47}, "organization": {"id": 949}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 295}, "user": {"role": "worker"}}}, "resource": {"id": 343, "owner": {"id": 441}, "assignee": {"id": 533}, "organization": {"id": 171}, "project": {"owner": {"id": 794}, "assignee": {"id": 54}, "organization": {"id": 964}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 348, "owner": {"id": 411}, "assignee": {"id": 518}, "organization": {"id": 625}, "project": {"owner": {"id": 787}, "assignee": {"id": 66}, "organization": {"id": 998}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 300, "owner": {"id": 443}, "assignee": {"id": 500}, "organization": {"id": 176}, "project": {"owner": {"id": 726}, "assignee": {"id": 94}, "organization": {"id": 989}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 361, "owner": {"id": 416}, "assignee": {"id": 572}, "organization": {"id": 632}, "project": {"owner": {"id": 787}, "assignee": {"id": 40}, "organization": {"id": 967}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 349, "owner": {"id": 96}, "assignee": {"id": 551}, "organization": {"id": 177}, "project": {"owner": {"id": 724}, "assignee": {"id": 812}, "organization": {"id": 927}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 351, "owner": {"id": 26}, "assignee": {"id": 522}, "organization": {"id": 688}, "project": {"owner": {"id": 766}, "assignee": {"id": 850}, "organization": {"id": 931}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 358, "owner": {"id": 10}, "assignee": {"id": 539}, "organization": {"id": 123}, "project": {"owner": {"id": 702}, "assignee": {"id": 815}, "organization": {"id": 985}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "owner": {"id": 79}, "assignee": {"id": 590}, "organization": {"id": 645}, "project": {"owner": {"id": 777}, "assignee": {"id": 895}, "organization": {"id": 924}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 19}, "assignee": {"id": 556}, "organization": {"id": 168}, "project": {"owner": {"id": 765}, "assignee": {"id": 895}, "organization": {"id": 998}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "owner": {"id": 97}, "assignee": {"id": 544}, "organization": {"id": 653}, "project": {"owner": {"id": 747}, "assignee": {"id": 895}, "organization": {"id": 979}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 337, "owner": {"id": 39}, "assignee": {"id": 522}, "organization": {"id": 158}, "project": {"owner": {"id": 784}, "assignee": {"id": 859}, "organization": {"id": 936}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 302, "owner": {"id": 43}, "assignee": {"id": 535}, "organization": {"id": 669}, "project": {"owner": {"id": 710}, "assignee": {"id": 826}, "organization": {"id": 930}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 320, "owner": {"id": 16}, "assignee": {"id": 575}, "organization": {"id": 129}, "project": {"owner": {"id": 734}, "assignee": {"id": 895}, "organization": {"id": 936}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 399, "owner": {"id": 96}, "assignee": {"id": 551}, "organization": {"id": 669}, "project": {"owner": {"id": 766}, "assignee": {"id": 839}, "organization": {"id": 927}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 375, "owner": {"id": 89}, "assignee": {"id": 585}, "organization": {"id": 118}, "project": {"owner": {"id": 749}, "assignee": {"id": 803}, "organization": {"id": 950}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 325, "owner": {"id": 76}, "assignee": {"id": 590}, "organization": {"id": 618}, "project": {"owner": {"id": 729}, "assignee": {"id": 879}, "organization": {"id": 914}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "owner": {"id": 60}, "assignee": {"id": 589}, "organization": {"id": 135}, "project": {"owner": {"id": 764}, "assignee": {"id": 887}, "organization": {"id": 984}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "owner": {"id": 24}, "assignee": {"id": 553}, "organization": {"id": 691}, "project": {"owner": {"id": 787}, "assignee": {"id": 890}, "organization": {"id": 901}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 74}, "assignee": {"id": 569}, "organization": {"id": 123}, "project": {"owner": {"id": 764}, "assignee": {"id": 849}, "organization": {"id": 946}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "owner": {"id": 77}, "assignee": {"id": 539}, "organization": {"id": 666}, "project": {"owner": {"id": 714}, "assignee": {"id": 880}, "organization": {"id": 922}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 337, "owner": {"id": 15}, "assignee": {"id": 536}, "organization": {"id": 172}, "project": {"owner": {"id": 716}, "assignee": {"id": 858}, "organization": {"id": 963}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 95}, "assignee": {"id": 577}, "organization": {"id": 610}, "project": {"owner": {"id": 781}, "assignee": {"id": 815}, "organization": {"id": 979}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 57}, "assignee": {"id": 529}, "organization": {"id": 160}, "project": {"owner": {"id": 738}, "assignee": {"id": 839}, "organization": {"id": 986}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 374, "owner": {"id": 5}, "assignee": {"id": 515}, "organization": {"id": 669}, "project": {"owner": {"id": 764}, "assignee": {"id": 836}, "organization": {"id": 939}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 314, "owner": {"id": 22}, "assignee": {"id": 557}, "organization": {"id": 125}, "project": {"owner": {"id": 789}, "assignee": {"id": 800}, "organization": {"id": 971}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 387, "owner": {"id": 45}, "assignee": {"id": 548}, "organization": {"id": 614}, "project": {"owner": {"id": 760}, "assignee": {"id": 883}, "organization": {"id": 918}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "owner": {"id": 93}, "assignee": {"id": 584}, "organization": {"id": 121}, "project": {"owner": {"id": 733}, "assignee": {"id": 888}, "organization": {"id": 933}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "owner": {"id": 78}, "assignee": {"id": 564}, "organization": {"id": 603}, "project": {"owner": {"id": 733}, "assignee": {"id": 846}, "organization": {"id": 941}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 369, "owner": {"id": 81}, "assignee": {"id": 572}, "organization": {"id": 186}, "project": {"owner": {"id": 714}, "assignee": {"id": 820}, "organization": {"id": 913}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 96}, "assignee": {"id": 581}, "organization": {"id": 639}, "project": {"owner": {"id": 756}, "assignee": {"id": 847}, "organization": {"id": 954}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 329, "owner": {"id": 60}, "assignee": {"id": 543}, "organization": {"id": 103}, "project": {"owner": {"id": 764}, "assignee": {"id": 827}, "organization": {"id": 999}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 15}, "assignee": {"id": 590}, "organization": {"id": 620}, "project": {"owner": {"id": 724}, "assignee": {"id": 858}, "organization": {"id": 997}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 320, "owner": {"id": 93}, "assignee": {"id": 502}, "organization": {"id": 117}, "project": {"owner": {"id": 765}, "assignee": {"id": 823}, "organization": {"id": 914}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 328, "owner": {"id": 78}, "assignee": {"id": 565}, "organization": {"id": 615}, "project": {"owner": {"id": 799}, "assignee": {"id": 830}, "organization": {"id": 998}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 356, "owner": {"id": 55}, "assignee": {"id": 584}, "organization": {"id": 181}, "project": {"owner": {"id": 710}, "assignee": {"id": 879}, "organization": {"id": 987}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 46}, "assignee": {"id": 547}, "organization": {"id": 619}, "project": {"owner": {"id": 733}, "assignee": {"id": 804}, "organization": {"id": 946}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 72}, "assignee": {"id": 529}, "organization": {"id": 185}, "project": {"owner": {"id": 746}, "assignee": {"id": 876}, "organization": {"id": 908}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "owner": {"id": 76}, "assignee": {"id": 540}, "organization": {"id": 699}, "project": {"owner": {"id": 745}, "assignee": {"id": 820}, "organization": {"id": 921}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 245}, "user": {"role": "supervisor"}}}, "resource": {"id": 356, "owner": {"id": 70}, "assignee": {"id": 504}, "organization": {"id": 136}, "project": {"owner": {"id": 746}, "assignee": {"id": 880}, "organization": {"id": 974}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 371, "owner": {"id": 41}, "assignee": {"id": 540}, "organization": {"id": 636}, "project": {"owner": {"id": 717}, "assignee": {"id": 820}, "organization": {"id": 904}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 364, "owner": {"id": 76}, "assignee": {"id": 557}, "organization": {"id": 164}, "project": {"owner": {"id": 773}, "assignee": {"id": 814}, "organization": {"id": 923}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 388, "owner": {"id": 83}, "assignee": {"id": 572}, "organization": {"id": 651}, "project": {"owner": {"id": 757}, "assignee": {"id": 830}, "organization": {"id": 931}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 387, "owner": {"id": 27}, "assignee": {"id": 558}, "organization": {"id": 118}, "project": {"owner": {"id": 780}, "assignee": {"id": 854}, "organization": {"id": 995}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 94}, "assignee": {"id": 580}, "organization": {"id": 609}, "project": {"owner": {"id": 756}, "assignee": {"id": 810}, "organization": {"id": 977}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 15}, "assignee": {"id": 524}, "organization": {"id": 150}, "project": {"owner": {"id": 776}, "assignee": {"id": 847}, "organization": {"id": 983}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 316, "owner": {"id": 34}, "assignee": {"id": 544}, "organization": {"id": 688}, "project": {"owner": {"id": 754}, "assignee": {"id": 881}, "organization": {"id": 960}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 82}, "assignee": {"id": 563}, "organization": {"id": 102}, "project": {"owner": {"id": 762}, "assignee": {"id": 806}, "organization": {"id": 930}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 6}, "assignee": {"id": 531}, "organization": {"id": 666}, "project": {"owner": {"id": 754}, "assignee": {"id": 885}, "organization": {"id": 990}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 380, "owner": {"id": 64}, "assignee": {"id": 558}, "organization": {"id": 133}, "project": {"owner": {"id": 787}, "assignee": {"id": 858}, "organization": {"id": 942}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 142, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "owner": {"id": 52}, "assignee": {"id": 597}, "organization": {"id": 608}, "project": {"owner": {"id": 768}, "assignee": {"id": 880}, "organization": {"id": 970}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 341, "owner": {"id": 49}, "assignee": {"id": 523}, "organization": {"id": 193}, "project": {"owner": {"id": 765}, "assignee": {"id": 881}, "organization": {"id": 960}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 31}, "assignee": {"id": 559}, "organization": {"id": 634}, "project": {"owner": {"id": 753}, "assignee": {"id": 807}, "organization": {"id": 901}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 300, "owner": {"id": 57}, "assignee": {"id": 547}, "organization": {"id": 103}, "project": {"owner": {"id": 771}, "assignee": {"id": 822}, "organization": {"id": 967}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 347, "owner": {"id": 85}, "assignee": {"id": 561}, "organization": {"id": 611}, "project": {"owner": {"id": 775}, "assignee": {"id": 875}, "organization": {"id": 934}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 456}, "assignee": {"id": 61}, "organization": {"id": 106}, "project": {"owner": {"id": 701}, "assignee": {"id": 802}, "organization": {"id": 977}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 334, "owner": {"id": 484}, "assignee": {"id": 9}, "organization": {"id": 606}, "project": {"owner": {"id": 788}, "assignee": {"id": 860}, "organization": {"id": 984}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "owner": {"id": 441}, "assignee": {"id": 41}, "organization": {"id": 142}, "project": {"owner": {"id": 753}, "assignee": {"id": 813}, "organization": {"id": 912}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 342, "owner": {"id": 423}, "assignee": {"id": 71}, "organization": {"id": 680}, "project": {"owner": {"id": 703}, "assignee": {"id": 817}, "organization": {"id": 956}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 406}, "assignee": {"id": 29}, "organization": {"id": 103}, "project": {"owner": {"id": 770}, "assignee": {"id": 808}, "organization": {"id": 914}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 429}, "assignee": {"id": 98}, "organization": {"id": 644}, "project": {"owner": {"id": 724}, "assignee": {"id": 814}, "organization": {"id": 909}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 379, "owner": {"id": 441}, "assignee": {"id": 18}, "organization": {"id": 196}, "project": {"owner": {"id": 715}, "assignee": {"id": 845}, "organization": {"id": 916}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 333, "owner": {"id": 441}, "assignee": {"id": 3}, "organization": {"id": 607}, "project": {"owner": {"id": 770}, "assignee": {"id": 872}, "organization": {"id": 954}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 309, "owner": {"id": 494}, "assignee": {"id": 59}, "organization": {"id": 101}, "project": {"owner": {"id": 798}, "assignee": {"id": 849}, "organization": {"id": 949}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 371, "owner": {"id": 407}, "assignee": {"id": 43}, "organization": {"id": 697}, "project": {"owner": {"id": 701}, "assignee": {"id": 854}, "organization": {"id": 906}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 453}, "assignee": {"id": 69}, "organization": {"id": 129}, "project": {"owner": {"id": 745}, "assignee": {"id": 812}, "organization": {"id": 911}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 370, "owner": {"id": 493}, "assignee": {"id": 84}, "organization": {"id": 602}, "project": {"owner": {"id": 789}, "assignee": {"id": 895}, "organization": {"id": 912}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "owner": {"id": 405}, "assignee": {"id": 66}, "organization": {"id": 172}, "project": {"owner": {"id": 702}, "assignee": {"id": 834}, "organization": {"id": 925}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "owner": {"id": 441}, "assignee": {"id": 18}, "organization": {"id": 612}, "project": {"owner": {"id": 758}, "assignee": {"id": 824}, "organization": {"id": 994}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 444}, "assignee": {"id": 83}, "organization": {"id": 190}, "project": {"owner": {"id": 720}, "assignee": {"id": 819}, "organization": {"id": 937}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "owner": {"id": 431}, "assignee": {"id": 17}, "organization": {"id": 610}, "project": {"owner": {"id": 737}, "assignee": {"id": 870}, "organization": {"id": 913}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 370, "owner": {"id": 472}, "assignee": {"id": 28}, "organization": {"id": 141}, "project": {"owner": {"id": 747}, "assignee": {"id": 869}, "organization": {"id": 989}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 322, "owner": {"id": 460}, "assignee": {"id": 78}, "organization": {"id": 668}, "project": {"owner": {"id": 726}, "assignee": {"id": 892}, "organization": {"id": 983}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 369, "owner": {"id": 441}, "assignee": {"id": 34}, "organization": {"id": 141}, "project": {"owner": {"id": 791}, "assignee": {"id": 852}, "organization": {"id": 978}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 465}, "assignee": {"id": 27}, "organization": {"id": 635}, "project": {"owner": {"id": 756}, "assignee": {"id": 806}, "organization": {"id": 977}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 462}, "assignee": {"id": 72}, "organization": {"id": 113}, "project": {"owner": {"id": 775}, "assignee": {"id": 854}, "organization": {"id": 942}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 380, "owner": {"id": 431}, "assignee": {"id": 99}, "organization": {"id": 695}, "project": {"owner": {"id": 732}, "assignee": {"id": 832}, "organization": {"id": 982}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 427}, "assignee": {"id": 39}, "organization": {"id": 142}, "project": {"owner": {"id": 783}, "assignee": {"id": 888}, "organization": {"id": 970}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "owner": {"id": 433}, "assignee": {"id": 94}, "organization": {"id": 676}, "project": {"owner": {"id": 783}, "assignee": {"id": 892}, "organization": {"id": 907}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "owner": {"id": 407}, "assignee": {"id": 49}, "organization": {"id": 142}, "project": {"owner": {"id": 714}, "assignee": {"id": 839}, "organization": {"id": 983}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "owner": {"id": 483}, "assignee": {"id": 9}, "organization": {"id": 619}, "project": {"owner": {"id": 771}, "assignee": {"id": 854}, "organization": {"id": 901}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 331, "owner": {"id": 456}, "assignee": {"id": 9}, "organization": {"id": 169}, "project": {"owner": {"id": 708}, "assignee": {"id": 804}, "organization": {"id": 965}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 469}, "assignee": {"id": 60}, "organization": {"id": 688}, "project": {"owner": {"id": 782}, "assignee": {"id": 896}, "organization": {"id": 928}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 414}, "assignee": {"id": 83}, "organization": {"id": 182}, "project": {"owner": {"id": 758}, "assignee": {"id": 800}, "organization": {"id": 965}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 244}, "user": {"role": null}}}, "resource": {"id": 335, "owner": {"id": 489}, "assignee": {"id": 86}, "organization": {"id": 632}, "project": {"owner": {"id": 740}, "assignee": {"id": 829}, "organization": {"id": 999}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 351, "owner": {"id": 460}, "assignee": {"id": 87}, "organization": {"id": 142}, "project": {"owner": {"id": 788}, "assignee": {"id": 808}, "organization": {"id": 972}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 311, "owner": {"id": 400}, "assignee": {"id": 86}, "organization": {"id": 634}, "project": {"owner": {"id": 746}, "assignee": {"id": 892}, "organization": {"id": 987}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "owner": {"id": 496}, "assignee": {"id": 43}, "organization": {"id": 145}, "project": {"owner": {"id": 716}, "assignee": {"id": 809}, "organization": {"id": 952}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 338, "owner": {"id": 455}, "assignee": {"id": 68}, "organization": {"id": 687}, "project": {"owner": {"id": 701}, "assignee": {"id": 800}, "organization": {"id": 900}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 395, "owner": {"id": 466}, "assignee": {"id": 95}, "organization": {"id": 113}, "project": {"owner": {"id": 782}, "assignee": {"id": 853}, "organization": {"id": 938}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "owner": {"id": 458}, "assignee": {"id": 47}, "organization": {"id": 621}, "project": {"owner": {"id": 720}, "assignee": {"id": 822}, "organization": {"id": 964}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 492}, "assignee": {"id": 72}, "organization": {"id": 129}, "project": {"owner": {"id": 710}, "assignee": {"id": 896}, "organization": {"id": 935}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 336, "owner": {"id": 468}, "assignee": {"id": 63}, "organization": {"id": 609}, "project": {"owner": {"id": 792}, "assignee": {"id": 805}, "organization": {"id": 992}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 453}, "assignee": {"id": 92}, "organization": {"id": 105}, "project": {"owner": {"id": 775}, "assignee": {"id": 886}, "organization": {"id": 977}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 357, "owner": {"id": 460}, "assignee": {"id": 21}, "organization": {"id": 631}, "project": {"owner": {"id": 711}, "assignee": {"id": 812}, "organization": {"id": 901}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 324, "owner": {"id": 458}, "assignee": {"id": 42}, "organization": {"id": 169}, "project": {"owner": {"id": 774}, "assignee": {"id": 828}, "organization": {"id": 926}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 314, "owner": {"id": 488}, "assignee": {"id": 73}, "organization": {"id": 685}, "project": {"owner": {"id": 708}, "assignee": {"id": 880}, "organization": {"id": 937}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "owner": {"id": 402}, "assignee": {"id": 29}, "organization": {"id": 175}, "project": {"owner": {"id": 755}, "assignee": {"id": 860}, "organization": {"id": 917}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "owner": {"id": 479}, "assignee": {"id": 64}, "organization": {"id": 668}, "project": {"owner": {"id": 710}, "assignee": {"id": 813}, "organization": {"id": 967}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 396, "owner": {"id": 495}, "assignee": {"id": 97}, "organization": {"id": 187}, "project": {"owner": {"id": 756}, "assignee": {"id": 848}, "organization": {"id": 998}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "owner": {"id": 485}, "assignee": {"id": 84}, "organization": {"id": 673}, "project": {"owner": {"id": 746}, "assignee": {"id": 840}, "organization": {"id": 968}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 387, "owner": {"id": 459}, "assignee": {"id": 28}, "organization": {"id": 188}, "project": {"owner": {"id": 732}, "assignee": {"id": 818}, "organization": {"id": 947}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 452}, "assignee": {"id": 31}, "organization": {"id": 691}, "project": {"owner": {"id": 752}, "assignee": {"id": 861}, "organization": {"id": 991}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 334, "owner": {"id": 475}, "assignee": {"id": 22}, "organization": {"id": 170}, "project": {"owner": {"id": 703}, "assignee": {"id": 862}, "organization": {"id": 900}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 360, "owner": {"id": 427}, "assignee": {"id": 3}, "organization": {"id": 663}, "project": {"owner": {"id": 716}, "assignee": {"id": 826}, "organization": {"id": 970}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 314, "owner": {"id": 419}, "assignee": {"id": 514}, "organization": {"id": 149}, "project": {"owner": {"id": 794}, "assignee": {"id": 855}, "organization": {"id": 923}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 349, "owner": {"id": 466}, "assignee": {"id": 580}, "organization": {"id": 698}, "project": {"owner": {"id": 788}, "assignee": {"id": 823}, "organization": {"id": 961}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "owner": {"id": 472}, "assignee": {"id": 507}, "organization": {"id": 141}, "project": {"owner": {"id": 733}, "assignee": {"id": 821}, "organization": {"id": 950}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "owner": {"id": 437}, "assignee": {"id": 537}, "organization": {"id": 650}, "project": {"owner": {"id": 700}, "assignee": {"id": 880}, "organization": {"id": 983}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "owner": {"id": 464}, "assignee": {"id": 567}, "organization": {"id": 130}, "project": {"owner": {"id": 742}, "assignee": {"id": 864}, "organization": {"id": 977}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 479}, "assignee": {"id": 509}, "organization": {"id": 685}, "project": {"owner": {"id": 794}, "assignee": {"id": 829}, "organization": {"id": 924}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 338, "owner": {"id": 416}, "assignee": {"id": 512}, "organization": {"id": 188}, "project": {"owner": {"id": 777}, "assignee": {"id": 841}, "organization": {"id": 926}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 36, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 444}, "assignee": {"id": 553}, "organization": {"id": 632}, "project": {"owner": {"id": 744}, "assignee": {"id": 895}, "organization": {"id": 901}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 237}, "user": {"role": null}}}, "resource": {"id": 321, "owner": {"id": 433}, "assignee": {"id": 503}, "organization": {"id": 183}, "project": {"owner": {"id": 739}, "assignee": {"id": 887}, "organization": {"id": 998}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 312, "owner": {"id": 451}, "assignee": {"id": 527}, "organization": {"id": 611}, "project": {"owner": {"id": 754}, "assignee": {"id": 892}, "organization": {"id": 984}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 6}, "user": {"role": "owner"}}}, "resource": {"id": 349, "owner": {"id": 498}, "assignee": {"id": 596}, "organization": {"id": 107}, "project": {"owner": {"id": 712}, "assignee": {"id": 862}, "organization": {"id": 907}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 328, "owner": {"id": 456}, "assignee": {"id": 575}, "organization": {"id": 602}, "project": {"owner": {"id": 732}, "assignee": {"id": 856}, "organization": {"id": 934}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 405}, "assignee": {"id": 554}, "organization": {"id": 196}, "project": {"owner": {"id": 750}, "assignee": {"id": 802}, "organization": {"id": 947}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "owner": {"id": 488}, "assignee": {"id": 568}, "organization": {"id": 698}, "project": {"owner": {"id": 741}, "assignee": {"id": 853}, "organization": {"id": 975}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 471}, "assignee": {"id": 585}, "organization": {"id": 164}, "project": {"owner": {"id": 712}, "assignee": {"id": 880}, "organization": {"id": 963}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 401}, "assignee": {"id": 556}, "organization": {"id": 618}, "project": {"owner": {"id": 735}, "assignee": {"id": 819}, "organization": {"id": 907}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 302, "owner": {"id": 496}, "assignee": {"id": 571}, "organization": {"id": 148}, "project": {"owner": {"id": 756}, "assignee": {"id": 859}, "organization": {"id": 918}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 354, "owner": {"id": 499}, "assignee": {"id": 550}, "organization": {"id": 656}, "project": {"owner": {"id": 728}, "assignee": {"id": 835}, "organization": {"id": 979}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 355, "owner": {"id": 407}, "assignee": {"id": 511}, "organization": {"id": 167}, "project": {"owner": {"id": 741}, "assignee": {"id": 891}, "organization": {"id": 904}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 371, "owner": {"id": 441}, "assignee": {"id": 597}, "organization": {"id": 634}, "project": {"owner": {"id": 773}, "assignee": {"id": 808}, "organization": {"id": 991}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 408}, "assignee": {"id": 555}, "organization": {"id": 156}, "project": {"owner": {"id": 774}, "assignee": {"id": 821}, "organization": {"id": 914}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 392, "owner": {"id": 477}, "assignee": {"id": 540}, "organization": {"id": 618}, "project": {"owner": {"id": 751}, "assignee": {"id": 811}, "organization": {"id": 961}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:project", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 407}, "assignee": {"id": 585}, "organization": {"id": 191}, "project": {"owner": {"id": 755}, "assignee": {"id": 864}, "organization": {"id": 930}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 240}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 417}, "assignee": {"id": 503}, "organization": {"id": 608}, "project": {"owner": {"id": 798}, "assignee": {"id": 855}, "organization": {"id": 932}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 459}, "assignee": {"id": 510}, "organization": {"id": 170}, "project": {"owner": {"id": 728}, "assignee": {"id": 817}, "organization": {"id": 985}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "owner": {"id": 474}, "assignee": {"id": 590}, "organization": {"id": 652}, "project": {"owner": {"id": 726}, "assignee": {"id": 832}, "organization": {"id": 970}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 304, "owner": {"id": 438}, "assignee": {"id": 587}, "organization": {"id": 150}, "project": {"owner": {"id": 749}, "assignee": {"id": 818}, "organization": {"id": 947}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 314, "owner": {"id": 485}, "assignee": {"id": 542}, "organization": {"id": 631}, "project": {"owner": {"id": 795}, "assignee": {"id": 882}, "organization": {"id": 993}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 300, "owner": {"id": 443}, "assignee": {"id": 571}, "organization": {"id": 121}, "project": {"owner": {"id": 768}, "assignee": {"id": 863}, "organization": {"id": 988}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 300, "owner": {"id": 435}, "assignee": {"id": 554}, "organization": {"id": 648}, "project": {"owner": {"id": 711}, "assignee": {"id": 803}, "organization": {"id": 908}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 408}, "assignee": {"id": 573}, "organization": {"id": 111}, "project": {"owner": {"id": 795}, "assignee": {"id": 864}, "organization": {"id": 908}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 378, "owner": {"id": 425}, "assignee": {"id": 591}, "organization": {"id": 619}, "project": {"owner": {"id": 773}, "assignee": {"id": 889}, "organization": {"id": 969}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "owner": {"id": 449}, "assignee": {"id": 599}, "organization": {"id": 109}, "project": {"owner": {"id": 738}, "assignee": {"id": 845}, "organization": {"id": 902}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 471}, "assignee": {"id": 561}, "organization": {"id": 671}, "project": {"owner": {"id": 746}, "assignee": {"id": 807}, "organization": {"id": 929}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 221}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "owner": {"id": 425}, "assignee": {"id": 549}, "organization": {"id": 136}, "project": {"owner": {"id": 709}, "assignee": {"id": 822}, "organization": {"id": 943}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "owner": {"id": 484}, "assignee": {"id": 584}, "organization": {"id": 691}, "project": {"owner": {"id": 749}, "assignee": {"id": 812}, "organization": {"id": 967}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 316, "owner": {"id": 439}, "assignee": {"id": 508}, "organization": {"id": 110}, "project": {"owner": {"id": 791}, "assignee": {"id": 820}, "organization": {"id": 908}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 380, "owner": {"id": 479}, "assignee": {"id": 530}, "organization": {"id": 627}, "project": {"owner": {"id": 769}, "assignee": {"id": 858}, "organization": {"id": 926}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 404}, "assignee": {"id": 530}, "organization": {"id": 177}, "project": {"owner": {"id": 720}, "assignee": {"id": 864}, "organization": {"id": 975}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 345, "owner": {"id": 459}, "assignee": {"id": 529}, "organization": {"id": 659}, "project": {"owner": {"id": 795}, "assignee": {"id": 859}, "organization": {"id": 947}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 388, "owner": {"id": 480}, "assignee": {"id": 537}, "organization": {"id": 139}, "project": {"owner": {"id": 713}, "assignee": {"id": 802}, "organization": {"id": 970}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 317, "owner": {"id": 404}, "assignee": {"id": 561}, "organization": {"id": 616}, "project": {"owner": {"id": 798}, "assignee": {"id": 843}, "organization": {"id": 977}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "owner": {"id": 463}, "assignee": {"id": 549}, "organization": {"id": 124}, "project": {"owner": {"id": 774}, "assignee": {"id": 838}, "organization": {"id": 988}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 19, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "owner": {"id": 475}, "assignee": {"id": 565}, "organization": {"id": 632}, "project": {"owner": {"id": 793}, "assignee": {"id": 840}, "organization": {"id": 946}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 243}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 441}, "assignee": {"id": 537}, "organization": {"id": 165}, "project": {"owner": {"id": 790}, "assignee": {"id": 832}, "organization": {"id": 916}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 244}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 433}, "assignee": {"id": 511}, "organization": {"id": 630}, "project": {"owner": {"id": 796}, "assignee": {"id": 850}, "organization": {"id": 994}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 340, "owner": {"id": 467}, "assignee": {"id": 599}, "organization": {"id": 124}, "project": {"owner": {"id": 713}, "assignee": {"id": 830}, "organization": {"id": 927}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 327, "owner": {"id": 401}, "assignee": {"id": 544}, "organization": {"id": 654}, "project": {"owner": {"id": 712}, "assignee": {"id": 880}, "organization": {"id": 929}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 483}, "assignee": {"id": 589}, "organization": {"id": 153}, "project": {"owner": {"id": 763}, "assignee": {"id": 817}, "organization": {"id": 926}}}} -} - -test_scope_UPDATE_PROJECT_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:project", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 391, "owner": {"id": 488}, "assignee": {"id": 579}, "organization": {"id": 606}, "project": {"owner": {"id": 765}, "assignee": {"id": 823}, "organization": {"id": 995}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": null}, "resource": {"id": 315, "owner": {"id": 434}, "assignee": {"id": 530}, "organization": {"id": 626}, "project": {"owner": {"id": 66}, "assignee": {"id": 840}, "organization": {"id": 982}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": null}, "resource": {"id": 381, "owner": {"id": 433}, "assignee": {"id": 570}, "organization": {"id": 674}, "project": {"owner": {"id": 38}, "assignee": {"id": 804}, "organization": {"id": 911}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": null}, "resource": {"id": 337, "owner": {"id": 439}, "assignee": {"id": 584}, "organization": {"id": 654}, "project": {"owner": {"id": 85}, "assignee": {"id": 847}, "organization": {"id": 966}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": null}, "resource": {"id": 341, "owner": {"id": 456}, "assignee": {"id": 595}, "organization": {"id": 640}, "project": {"owner": {"id": 16}, "assignee": {"id": 851}, "organization": {"id": 966}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": null}, "resource": {"id": 354, "owner": {"id": 489}, "assignee": {"id": 528}, "organization": {"id": 612}, "project": {"owner": {"id": 30}, "assignee": {"id": 864}, "organization": {"id": 945}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": null}, "resource": {"id": 356, "owner": {"id": 491}, "assignee": {"id": 556}, "organization": {"id": 692}, "project": {"owner": {"id": 732}, "assignee": {"id": 9}, "organization": {"id": 970}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": null}, "resource": {"id": 325, "owner": {"id": 415}, "assignee": {"id": 588}, "organization": {"id": 683}, "project": {"owner": {"id": 776}, "assignee": {"id": 56}, "organization": {"id": 903}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": null}, "resource": {"id": 336, "owner": {"id": 419}, "assignee": {"id": 508}, "organization": {"id": 600}, "project": {"owner": {"id": 787}, "assignee": {"id": 62}, "organization": {"id": 973}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 24, "privilege": "worker"}, "organization": null}, "resource": {"id": 324, "owner": {"id": 451}, "assignee": {"id": 516}, "organization": {"id": 635}, "project": {"owner": {"id": 700}, "assignee": {"id": 24}, "organization": {"id": 995}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": null}, "resource": {"id": 336, "owner": {"id": 424}, "assignee": {"id": 586}, "organization": {"id": 664}, "project": {"owner": {"id": 784}, "assignee": {"id": 15}, "organization": {"id": 907}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": null}, "resource": {"id": 349, "owner": {"id": 35}, "assignee": {"id": 539}, "organization": {"id": 601}, "project": {"owner": {"id": 778}, "assignee": {"id": 887}, "organization": {"id": 952}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": null}, "resource": {"id": 385, "owner": {"id": 7}, "assignee": {"id": 521}, "organization": {"id": 695}, "project": {"owner": {"id": 793}, "assignee": {"id": 873}, "organization": {"id": 947}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": null}, "resource": {"id": 381, "owner": {"id": 38}, "assignee": {"id": 515}, "organization": {"id": 691}, "project": {"owner": {"id": 783}, "assignee": {"id": 879}, "organization": {"id": 982}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": null}, "resource": {"id": 318, "owner": {"id": 58}, "assignee": {"id": 588}, "organization": {"id": 685}, "project": {"owner": {"id": 772}, "assignee": {"id": 826}, "organization": {"id": 978}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": null}, "resource": {"id": 323, "owner": {"id": 69}, "assignee": {"id": 591}, "organization": {"id": 686}, "project": {"owner": {"id": 717}, "assignee": {"id": 888}, "organization": {"id": 918}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": null}, "resource": {"id": 321, "owner": {"id": 451}, "assignee": {"id": 28}, "organization": {"id": 665}, "project": {"owner": {"id": 712}, "assignee": {"id": 840}, "organization": {"id": 931}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": null}, "resource": {"id": 337, "owner": {"id": 496}, "assignee": {"id": 90}, "organization": {"id": 685}, "project": {"owner": {"id": 781}, "assignee": {"id": 885}, "organization": {"id": 938}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": null}, "resource": {"id": 308, "owner": {"id": 455}, "assignee": {"id": 85}, "organization": {"id": 669}, "project": {"owner": {"id": 770}, "assignee": {"id": 821}, "organization": {"id": 964}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": null}, "resource": {"id": 379, "owner": {"id": 418}, "assignee": {"id": 78}, "organization": {"id": 664}, "project": {"owner": {"id": 724}, "assignee": {"id": 892}, "organization": {"id": 986}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": null}, "resource": {"id": 323, "owner": {"id": 491}, "assignee": {"id": 36}, "organization": {"id": 626}, "project": {"owner": {"id": 763}, "assignee": {"id": 876}, "organization": {"id": 998}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": null}, "resource": {"id": 347, "owner": {"id": 457}, "assignee": {"id": 550}, "organization": {"id": 639}, "project": {"owner": {"id": 754}, "assignee": {"id": 803}, "organization": {"id": 926}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": null}, "resource": {"id": 320, "owner": {"id": 450}, "assignee": {"id": 514}, "organization": {"id": 691}, "project": {"owner": {"id": 784}, "assignee": {"id": 894}, "organization": {"id": 916}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": null}, "resource": {"id": 376, "owner": {"id": 468}, "assignee": {"id": 525}, "organization": {"id": 669}, "project": {"owner": {"id": 786}, "assignee": {"id": 849}, "organization": {"id": 907}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": null}, "resource": {"id": 300, "owner": {"id": 440}, "assignee": {"id": 583}, "organization": {"id": 661}, "project": {"owner": {"id": 733}, "assignee": {"id": 887}, "organization": {"id": 974}}}} -} - -test_scope_UPDATE_METADATA_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": null}, "resource": {"id": 337, "owner": {"id": 447}, "assignee": {"id": 593}, "organization": {"id": 681}, "project": {"owner": {"id": 751}, "assignee": {"id": 854}, "organization": {"id": 929}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 352, "owner": {"id": 425}, "assignee": {"id": 556}, "organization": {"id": 158}, "project": {"owner": {"id": 11}, "assignee": {"id": 855}, "organization": {"id": 929}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 325, "owner": {"id": 496}, "assignee": {"id": 525}, "organization": {"id": 671}, "project": {"owner": {"id": 80}, "assignee": {"id": 850}, "organization": {"id": 970}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "owner": {"id": 497}, "assignee": {"id": 581}, "organization": {"id": 180}, "project": {"owner": {"id": 93}, "assignee": {"id": 805}, "organization": {"id": 993}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "owner": {"id": 442}, "assignee": {"id": 586}, "organization": {"id": 604}, "project": {"owner": {"id": 26}, "assignee": {"id": 831}, "organization": {"id": 934}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "owner": {"id": 478}, "assignee": {"id": 522}, "organization": {"id": 115}, "project": {"owner": {"id": 23}, "assignee": {"id": 841}, "organization": {"id": 951}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 424}, "assignee": {"id": 530}, "organization": {"id": 647}, "project": {"owner": {"id": 22}, "assignee": {"id": 811}, "organization": {"id": 999}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 439}, "assignee": {"id": 578}, "organization": {"id": 154}, "project": {"owner": {"id": 68}, "assignee": {"id": 828}, "organization": {"id": 981}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 348, "owner": {"id": 464}, "assignee": {"id": 523}, "organization": {"id": 667}, "project": {"owner": {"id": 17}, "assignee": {"id": 857}, "organization": {"id": 998}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 365, "owner": {"id": 457}, "assignee": {"id": 504}, "organization": {"id": 188}, "project": {"owner": {"id": 39}, "assignee": {"id": 847}, "organization": {"id": 951}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 397, "owner": {"id": 429}, "assignee": {"id": 515}, "organization": {"id": 686}, "project": {"owner": {"id": 81}, "assignee": {"id": 860}, "organization": {"id": 950}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 307, "owner": {"id": 461}, "assignee": {"id": 503}, "organization": {"id": 105}, "project": {"owner": {"id": 49}, "assignee": {"id": 886}, "organization": {"id": 973}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 455}, "assignee": {"id": 559}, "organization": {"id": 639}, "project": {"owner": {"id": 41}, "assignee": {"id": 829}, "organization": {"id": 982}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "owner": {"id": 435}, "assignee": {"id": 546}, "organization": {"id": 186}, "project": {"owner": {"id": 89}, "assignee": {"id": 809}, "organization": {"id": 952}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "owner": {"id": 483}, "assignee": {"id": 582}, "organization": {"id": 654}, "project": {"owner": {"id": 2}, "assignee": {"id": 831}, "organization": {"id": 949}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "owner": {"id": 402}, "assignee": {"id": 596}, "organization": {"id": 120}, "project": {"owner": {"id": 87}, "assignee": {"id": 810}, "organization": {"id": 931}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "owner": {"id": 423}, "assignee": {"id": 524}, "organization": {"id": 602}, "project": {"owner": {"id": 20}, "assignee": {"id": 851}, "organization": {"id": 963}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 336, "owner": {"id": 456}, "assignee": {"id": 529}, "organization": {"id": 105}, "project": {"owner": {"id": 76}, "assignee": {"id": 811}, "organization": {"id": 952}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 343, "owner": {"id": 403}, "assignee": {"id": 526}, "organization": {"id": 692}, "project": {"owner": {"id": 5}, "assignee": {"id": 834}, "organization": {"id": 916}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 492}, "assignee": {"id": 578}, "organization": {"id": 135}, "project": {"owner": {"id": 1}, "assignee": {"id": 867}, "organization": {"id": 995}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 337, "owner": {"id": 470}, "assignee": {"id": 542}, "organization": {"id": 612}, "project": {"owner": {"id": 55}, "assignee": {"id": 809}, "organization": {"id": 984}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 371, "owner": {"id": 494}, "assignee": {"id": 528}, "organization": {"id": 131}, "project": {"owner": {"id": 39}, "assignee": {"id": 809}, "organization": {"id": 908}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 348, "owner": {"id": 463}, "assignee": {"id": 570}, "organization": {"id": 644}, "project": {"owner": {"id": 24}, "assignee": {"id": 857}, "organization": {"id": 929}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "owner": {"id": 449}, "assignee": {"id": 548}, "organization": {"id": 116}, "project": {"owner": {"id": 67}, "assignee": {"id": 894}, "organization": {"id": 951}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 406}, "assignee": {"id": 503}, "organization": {"id": 694}, "project": {"owner": {"id": 1}, "assignee": {"id": 826}, "organization": {"id": 960}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "owner": {"id": 463}, "assignee": {"id": 537}, "organization": {"id": 143}, "project": {"owner": {"id": 84}, "assignee": {"id": 829}, "organization": {"id": 964}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "owner": {"id": 466}, "assignee": {"id": 521}, "organization": {"id": 647}, "project": {"owner": {"id": 36}, "assignee": {"id": 857}, "organization": {"id": 903}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 396, "owner": {"id": 443}, "assignee": {"id": 599}, "organization": {"id": 147}, "project": {"owner": {"id": 31}, "assignee": {"id": 820}, "organization": {"id": 971}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 365, "owner": {"id": 469}, "assignee": {"id": 561}, "organization": {"id": 680}, "project": {"owner": {"id": 6}, "assignee": {"id": 822}, "organization": {"id": 912}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 329, "owner": {"id": 469}, "assignee": {"id": 505}, "organization": {"id": 175}, "project": {"owner": {"id": 58}, "assignee": {"id": 836}, "organization": {"id": 987}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 393, "owner": {"id": 433}, "assignee": {"id": 595}, "organization": {"id": 665}, "project": {"owner": {"id": 0}, "assignee": {"id": 865}, "organization": {"id": 929}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 397, "owner": {"id": 454}, "assignee": {"id": 506}, "organization": {"id": 147}, "project": {"owner": {"id": 59}, "assignee": {"id": 898}, "organization": {"id": 991}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 328, "owner": {"id": 473}, "assignee": {"id": 529}, "organization": {"id": 684}, "project": {"owner": {"id": 70}, "assignee": {"id": 893}, "organization": {"id": 975}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 457}, "assignee": {"id": 597}, "organization": {"id": 190}, "project": {"owner": {"id": 96}, "assignee": {"id": 801}, "organization": {"id": 903}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 461}, "assignee": {"id": 505}, "organization": {"id": 675}, "project": {"owner": {"id": 52}, "assignee": {"id": 830}, "organization": {"id": 977}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "owner": {"id": 494}, "assignee": {"id": 567}, "organization": {"id": 187}, "project": {"owner": {"id": 25}, "assignee": {"id": 838}, "organization": {"id": 980}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "owner": {"id": 497}, "assignee": {"id": 565}, "organization": {"id": 682}, "project": {"owner": {"id": 27}, "assignee": {"id": 893}, "organization": {"id": 946}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 332, "owner": {"id": 456}, "assignee": {"id": 580}, "organization": {"id": 105}, "project": {"owner": {"id": 64}, "assignee": {"id": 849}, "organization": {"id": 963}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 499}, "assignee": {"id": 556}, "organization": {"id": 683}, "project": {"owner": {"id": 44}, "assignee": {"id": 870}, "organization": {"id": 907}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 439}, "assignee": {"id": 532}, "organization": {"id": 165}, "project": {"owner": {"id": 47}, "assignee": {"id": 874}, "organization": {"id": 921}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 333, "owner": {"id": 474}, "assignee": {"id": 513}, "organization": {"id": 636}, "project": {"owner": {"id": 57}, "assignee": {"id": 800}, "organization": {"id": 971}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 422}, "assignee": {"id": 512}, "organization": {"id": 199}, "project": {"owner": {"id": 12}, "assignee": {"id": 873}, "organization": {"id": 925}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 305, "owner": {"id": 444}, "assignee": {"id": 566}, "organization": {"id": 661}, "project": {"owner": {"id": 51}, "assignee": {"id": 898}, "organization": {"id": 966}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "owner": {"id": 448}, "assignee": {"id": 508}, "organization": {"id": 193}, "project": {"owner": {"id": 41}, "assignee": {"id": 810}, "organization": {"id": 949}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "owner": {"id": 433}, "assignee": {"id": 513}, "organization": {"id": 684}, "project": {"owner": {"id": 57}, "assignee": {"id": 870}, "organization": {"id": 986}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "owner": {"id": 485}, "assignee": {"id": 591}, "organization": {"id": 124}, "project": {"owner": {"id": 52}, "assignee": {"id": 841}, "organization": {"id": 951}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "owner": {"id": 422}, "assignee": {"id": 535}, "organization": {"id": 654}, "project": {"owner": {"id": 98}, "assignee": {"id": 804}, "organization": {"id": 923}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 394, "owner": {"id": 487}, "assignee": {"id": 581}, "organization": {"id": 129}, "project": {"owner": {"id": 43}, "assignee": {"id": 894}, "organization": {"id": 953}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 361, "owner": {"id": 470}, "assignee": {"id": 549}, "organization": {"id": 653}, "project": {"owner": {"id": 54}, "assignee": {"id": 858}, "organization": {"id": 927}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 328, "owner": {"id": 418}, "assignee": {"id": 512}, "organization": {"id": 135}, "project": {"owner": {"id": 21}, "assignee": {"id": 886}, "organization": {"id": 991}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 371, "owner": {"id": 454}, "assignee": {"id": 510}, "organization": {"id": 645}, "project": {"owner": {"id": 73}, "assignee": {"id": 861}, "organization": {"id": 978}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"id": 333, "owner": {"id": 488}, "assignee": {"id": 590}, "organization": {"id": 176}, "project": {"owner": {"id": 769}, "assignee": {"id": 8}, "organization": {"id": 944}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 352, "owner": {"id": 465}, "assignee": {"id": 526}, "organization": {"id": 688}, "project": {"owner": {"id": 720}, "assignee": {"id": 53}, "organization": {"id": 994}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "owner": {"id": 480}, "assignee": {"id": 507}, "organization": {"id": 103}, "project": {"owner": {"id": 718}, "assignee": {"id": 14}, "organization": {"id": 962}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "owner": {"id": 453}, "assignee": {"id": 501}, "organization": {"id": 621}, "project": {"owner": {"id": 725}, "assignee": {"id": 77}, "organization": {"id": 988}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 335, "owner": {"id": 457}, "assignee": {"id": 590}, "organization": {"id": 134}, "project": {"owner": {"id": 719}, "assignee": {"id": 16}, "organization": {"id": 923}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "owner": {"id": 496}, "assignee": {"id": 562}, "organization": {"id": 640}, "project": {"owner": {"id": 769}, "assignee": {"id": 91}, "organization": {"id": 991}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 354, "owner": {"id": 417}, "assignee": {"id": 544}, "organization": {"id": 157}, "project": {"owner": {"id": 749}, "assignee": {"id": 95}, "organization": {"id": 978}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 364, "owner": {"id": 447}, "assignee": {"id": 509}, "organization": {"id": 615}, "project": {"owner": {"id": 734}, "assignee": {"id": 56}, "organization": {"id": 956}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 67, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 425}, "assignee": {"id": 514}, "organization": {"id": 106}, "project": {"owner": {"id": 740}, "assignee": {"id": 67}, "organization": {"id": 925}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 214}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 418}, "assignee": {"id": 583}, "organization": {"id": 694}, "project": {"owner": {"id": 759}, "assignee": {"id": 50}, "organization": {"id": 996}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 311, "owner": {"id": 466}, "assignee": {"id": 595}, "organization": {"id": 129}, "project": {"owner": {"id": 708}, "assignee": {"id": 71}, "organization": {"id": 921}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 435}, "assignee": {"id": 598}, "organization": {"id": 698}, "project": {"owner": {"id": 791}, "assignee": {"id": 4}, "organization": {"id": 934}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 491}, "assignee": {"id": 505}, "organization": {"id": 171}, "project": {"owner": {"id": 765}, "assignee": {"id": 84}, "organization": {"id": 942}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 27, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 495}, "assignee": {"id": 572}, "organization": {"id": 659}, "project": {"owner": {"id": 736}, "assignee": {"id": 27}, "organization": {"id": 981}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 407}, "assignee": {"id": 598}, "organization": {"id": 120}, "project": {"owner": {"id": 740}, "assignee": {"id": 37}, "organization": {"id": 970}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 478}, "assignee": {"id": 597}, "organization": {"id": 646}, "project": {"owner": {"id": 780}, "assignee": {"id": 22}, "organization": {"id": 978}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 459}, "assignee": {"id": 585}, "organization": {"id": 196}, "project": {"owner": {"id": 755}, "assignee": {"id": 29}, "organization": {"id": 940}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 352, "owner": {"id": 452}, "assignee": {"id": 571}, "organization": {"id": 666}, "project": {"owner": {"id": 709}, "assignee": {"id": 82}, "organization": {"id": 943}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 416}, "assignee": {"id": 586}, "organization": {"id": 162}, "project": {"owner": {"id": 711}, "assignee": {"id": 25}, "organization": {"id": 995}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 422}, "assignee": {"id": 550}, "organization": {"id": 684}, "project": {"owner": {"id": 738}, "assignee": {"id": 12}, "organization": {"id": 966}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 338, "owner": {"id": 439}, "assignee": {"id": 536}, "organization": {"id": 103}, "project": {"owner": {"id": 773}, "assignee": {"id": 18}, "organization": {"id": 998}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 337, "owner": {"id": 417}, "assignee": {"id": 559}, "organization": {"id": 629}, "project": {"owner": {"id": 745}, "assignee": {"id": 13}, "organization": {"id": 974}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 90, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 440}, "assignee": {"id": 560}, "organization": {"id": 135}, "project": {"owner": {"id": 764}, "assignee": {"id": 90}, "organization": {"id": 932}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "owner": {"id": 496}, "assignee": {"id": 520}, "organization": {"id": 672}, "project": {"owner": {"id": 755}, "assignee": {"id": 1}, "organization": {"id": 921}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "owner": {"id": 465}, "assignee": {"id": 557}, "organization": {"id": 148}, "project": {"owner": {"id": 704}, "assignee": {"id": 6}, "organization": {"id": 973}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 116, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "owner": {"id": 454}, "assignee": {"id": 596}, "organization": {"id": 647}, "project": {"owner": {"id": 719}, "assignee": {"id": 85}, "organization": {"id": 980}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 451}, "assignee": {"id": 519}, "organization": {"id": 119}, "project": {"owner": {"id": 737}, "assignee": {"id": 53}, "organization": {"id": 959}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"id": 319, "owner": {"id": 492}, "assignee": {"id": 504}, "organization": {"id": 654}, "project": {"owner": {"id": 753}, "assignee": {"id": 46}, "organization": {"id": 933}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 381, "owner": {"id": 453}, "assignee": {"id": 563}, "organization": {"id": 106}, "project": {"owner": {"id": 724}, "assignee": {"id": 56}, "organization": {"id": 906}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 264}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 472}, "assignee": {"id": 547}, "organization": {"id": 691}, "project": {"owner": {"id": 746}, "assignee": {"id": 45}, "organization": {"id": 999}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 367, "owner": {"id": 492}, "assignee": {"id": 516}, "organization": {"id": 132}, "project": {"owner": {"id": 799}, "assignee": {"id": 71}, "organization": {"id": 957}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 326, "owner": {"id": 458}, "assignee": {"id": 511}, "organization": {"id": 613}, "project": {"owner": {"id": 760}, "assignee": {"id": 9}, "organization": {"id": 998}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "owner": {"id": 444}, "assignee": {"id": 589}, "organization": {"id": 108}, "project": {"owner": {"id": 751}, "assignee": {"id": 88}, "organization": {"id": 913}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "owner": {"id": 460}, "assignee": {"id": 569}, "organization": {"id": 610}, "project": {"owner": {"id": 764}, "assignee": {"id": 42}, "organization": {"id": 962}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "owner": {"id": 446}, "assignee": {"id": 570}, "organization": {"id": 117}, "project": {"owner": {"id": 715}, "assignee": {"id": 54}, "organization": {"id": 980}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "owner": {"id": 426}, "assignee": {"id": 559}, "organization": {"id": 666}, "project": {"owner": {"id": 734}, "assignee": {"id": 82}, "organization": {"id": 964}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 373, "owner": {"id": 446}, "assignee": {"id": 561}, "organization": {"id": 113}, "project": {"owner": {"id": 744}, "assignee": {"id": 97}, "organization": {"id": 922}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 306, "owner": {"id": 402}, "assignee": {"id": 533}, "organization": {"id": 662}, "project": {"owner": {"id": 790}, "assignee": {"id": 96}, "organization": {"id": 973}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 355, "owner": {"id": 483}, "assignee": {"id": 542}, "organization": {"id": 107}, "project": {"owner": {"id": 766}, "assignee": {"id": 4}, "organization": {"id": 975}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 356, "owner": {"id": 400}, "assignee": {"id": 569}, "organization": {"id": 653}, "project": {"owner": {"id": 708}, "assignee": {"id": 26}, "organization": {"id": 954}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 306, "owner": {"id": 418}, "assignee": {"id": 558}, "organization": {"id": 164}, "project": {"owner": {"id": 737}, "assignee": {"id": 60}, "organization": {"id": 927}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 357, "owner": {"id": 483}, "assignee": {"id": 554}, "organization": {"id": 617}, "project": {"owner": {"id": 730}, "assignee": {"id": 35}, "organization": {"id": 992}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 418}, "assignee": {"id": 550}, "organization": {"id": 190}, "project": {"owner": {"id": 702}, "assignee": {"id": 52}, "organization": {"id": 947}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 320, "owner": {"id": 479}, "assignee": {"id": 516}, "organization": {"id": 651}, "project": {"owner": {"id": 749}, "assignee": {"id": 29}, "organization": {"id": 920}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 412}, "assignee": {"id": 529}, "organization": {"id": 165}, "project": {"owner": {"id": 718}, "assignee": {"id": 91}, "organization": {"id": 932}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 50, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "owner": {"id": 429}, "assignee": {"id": 503}, "organization": {"id": 618}, "project": {"owner": {"id": 790}, "assignee": {"id": 50}, "organization": {"id": 964}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 50, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 314, "owner": {"id": 410}, "assignee": {"id": 570}, "organization": {"id": 188}, "project": {"owner": {"id": 725}, "assignee": {"id": 50}, "organization": {"id": 975}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 369, "owner": {"id": 442}, "assignee": {"id": 524}, "organization": {"id": 646}, "project": {"owner": {"id": 775}, "assignee": {"id": 94}, "organization": {"id": 924}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 323, "owner": {"id": 486}, "assignee": {"id": 554}, "organization": {"id": 167}, "project": {"owner": {"id": 763}, "assignee": {"id": 57}, "organization": {"id": 936}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 467}, "assignee": {"id": 518}, "organization": {"id": 638}, "project": {"owner": {"id": 742}, "assignee": {"id": 15}, "organization": {"id": 979}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 363, "owner": {"id": 15}, "assignee": {"id": 514}, "organization": {"id": 162}, "project": {"owner": {"id": 727}, "assignee": {"id": 827}, "organization": {"id": 972}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 128, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 325, "owner": {"id": 97}, "assignee": {"id": 516}, "organization": {"id": 670}, "project": {"owner": {"id": 766}, "assignee": {"id": 820}, "organization": {"id": 982}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 99}, "assignee": {"id": 589}, "organization": {"id": 126}, "project": {"owner": {"id": 740}, "assignee": {"id": 839}, "organization": {"id": 911}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 42}, "assignee": {"id": 547}, "organization": {"id": 640}, "project": {"owner": {"id": 736}, "assignee": {"id": 836}, "organization": {"id": 903}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 25}, "assignee": {"id": 545}, "organization": {"id": 153}, "project": {"owner": {"id": 723}, "assignee": {"id": 837}, "organization": {"id": 914}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 305, "owner": {"id": 74}, "assignee": {"id": 504}, "organization": {"id": 620}, "project": {"owner": {"id": 792}, "assignee": {"id": 882}, "organization": {"id": 938}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 60}, "assignee": {"id": 513}, "organization": {"id": 170}, "project": {"owner": {"id": 788}, "assignee": {"id": 860}, "organization": {"id": 912}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 365, "owner": {"id": 26}, "assignee": {"id": 553}, "organization": {"id": 663}, "project": {"owner": {"id": 796}, "assignee": {"id": 845}, "organization": {"id": 994}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 301, "owner": {"id": 43}, "assignee": {"id": 535}, "organization": {"id": 163}, "project": {"owner": {"id": 740}, "assignee": {"id": 896}, "organization": {"id": 938}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 126, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 336, "owner": {"id": 58}, "assignee": {"id": 563}, "organization": {"id": 647}, "project": {"owner": {"id": 729}, "assignee": {"id": 859}, "organization": {"id": 927}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 350, "owner": {"id": 32}, "assignee": {"id": 573}, "organization": {"id": 139}, "project": {"owner": {"id": 725}, "assignee": {"id": 857}, "organization": {"id": 918}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 75}, "assignee": {"id": 592}, "organization": {"id": 615}, "project": {"owner": {"id": 720}, "assignee": {"id": 820}, "organization": {"id": 948}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "owner": {"id": 5}, "assignee": {"id": 581}, "organization": {"id": 107}, "project": {"owner": {"id": 753}, "assignee": {"id": 876}, "organization": {"id": 920}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "owner": {"id": 30}, "assignee": {"id": 518}, "organization": {"id": 644}, "project": {"owner": {"id": 791}, "assignee": {"id": 865}, "organization": {"id": 947}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 306, "owner": {"id": 45}, "assignee": {"id": 576}, "organization": {"id": 130}, "project": {"owner": {"id": 702}, "assignee": {"id": 865}, "organization": {"id": 973}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 109, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 390, "owner": {"id": 4}, "assignee": {"id": 560}, "organization": {"id": 602}, "project": {"owner": {"id": 755}, "assignee": {"id": 884}, "organization": {"id": 933}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 363, "owner": {"id": 16}, "assignee": {"id": 570}, "organization": {"id": 154}, "project": {"owner": {"id": 750}, "assignee": {"id": 863}, "organization": {"id": 971}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 0}, "assignee": {"id": 577}, "organization": {"id": 616}, "project": {"owner": {"id": 733}, "assignee": {"id": 850}, "organization": {"id": 908}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 373, "owner": {"id": 2}, "assignee": {"id": 576}, "organization": {"id": 137}, "project": {"owner": {"id": 731}, "assignee": {"id": 814}, "organization": {"id": 969}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 338, "owner": {"id": 4}, "assignee": {"id": 562}, "organization": {"id": 677}, "project": {"owner": {"id": 736}, "assignee": {"id": 803}, "organization": {"id": 941}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 341, "owner": {"id": 52}, "assignee": {"id": 542}, "organization": {"id": 197}, "project": {"owner": {"id": 734}, "assignee": {"id": 877}, "organization": {"id": 901}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 331, "owner": {"id": 49}, "assignee": {"id": 553}, "organization": {"id": 681}, "project": {"owner": {"id": 720}, "assignee": {"id": 859}, "organization": {"id": 901}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "owner": {"id": 62}, "assignee": {"id": 505}, "organization": {"id": 113}, "project": {"owner": {"id": 798}, "assignee": {"id": 876}, "organization": {"id": 912}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 59}, "assignee": {"id": 531}, "organization": {"id": 656}, "project": {"owner": {"id": 719}, "assignee": {"id": 871}, "organization": {"id": 912}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "owner": {"id": 60}, "assignee": {"id": 571}, "organization": {"id": 173}, "project": {"owner": {"id": 771}, "assignee": {"id": 867}, "organization": {"id": 939}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "owner": {"id": 46}, "assignee": {"id": 527}, "organization": {"id": 609}, "project": {"owner": {"id": 787}, "assignee": {"id": 892}, "organization": {"id": 915}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"id": 341, "owner": {"id": 31}, "assignee": {"id": 508}, "organization": {"id": 188}, "project": {"owner": {"id": 738}, "assignee": {"id": 827}, "organization": {"id": 995}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 375, "owner": {"id": 59}, "assignee": {"id": 516}, "organization": {"id": 666}, "project": {"owner": {"id": 768}, "assignee": {"id": 830}, "organization": {"id": 949}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 70}, "assignee": {"id": 532}, "organization": {"id": 117}, "project": {"owner": {"id": 770}, "assignee": {"id": 870}, "organization": {"id": 953}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 370, "owner": {"id": 12}, "assignee": {"id": 590}, "organization": {"id": 662}, "project": {"owner": {"id": 793}, "assignee": {"id": 845}, "organization": {"id": 962}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 24, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 369, "owner": {"id": 24}, "assignee": {"id": 558}, "organization": {"id": 106}, "project": {"owner": {"id": 781}, "assignee": {"id": 899}, "organization": {"id": 987}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 356, "owner": {"id": 83}, "assignee": {"id": 588}, "organization": {"id": 644}, "project": {"owner": {"id": 760}, "assignee": {"id": 870}, "organization": {"id": 952}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 340, "owner": {"id": 4}, "assignee": {"id": 532}, "organization": {"id": 193}, "project": {"owner": {"id": 795}, "assignee": {"id": 825}, "organization": {"id": 900}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 22}, "assignee": {"id": 521}, "organization": {"id": 602}, "project": {"owner": {"id": 752}, "assignee": {"id": 837}, "organization": {"id": 951}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 53}, "assignee": {"id": 562}, "organization": {"id": 199}, "project": {"owner": {"id": 778}, "assignee": {"id": 864}, "organization": {"id": 930}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "owner": {"id": 23}, "assignee": {"id": 539}, "organization": {"id": 691}, "project": {"owner": {"id": 710}, "assignee": {"id": 892}, "organization": {"id": 903}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 96}, "assignee": {"id": 522}, "organization": {"id": 165}, "project": {"owner": {"id": 751}, "assignee": {"id": 825}, "organization": {"id": 992}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 300, "owner": {"id": 94}, "assignee": {"id": 555}, "organization": {"id": 639}, "project": {"owner": {"id": 796}, "assignee": {"id": 876}, "organization": {"id": 983}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 371, "owner": {"id": 20}, "assignee": {"id": 529}, "organization": {"id": 121}, "project": {"owner": {"id": 744}, "assignee": {"id": 813}, "organization": {"id": 980}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 122, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 355, "owner": {"id": 59}, "assignee": {"id": 582}, "organization": {"id": 667}, "project": {"owner": {"id": 710}, "assignee": {"id": 889}, "organization": {"id": 956}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 129, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 382, "owner": {"id": 54}, "assignee": {"id": 523}, "organization": {"id": 129}, "project": {"owner": {"id": 759}, "assignee": {"id": 867}, "organization": {"id": 925}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 367, "owner": {"id": 28}, "assignee": {"id": 516}, "organization": {"id": 628}, "project": {"owner": {"id": 702}, "assignee": {"id": 841}, "organization": {"id": 988}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "owner": {"id": 69}, "assignee": {"id": 506}, "organization": {"id": 181}, "project": {"owner": {"id": 708}, "assignee": {"id": 881}, "organization": {"id": 911}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 71}, "assignee": {"id": 502}, "organization": {"id": 661}, "project": {"owner": {"id": 727}, "assignee": {"id": 867}, "organization": {"id": 967}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 80}, "assignee": {"id": 518}, "organization": {"id": 125}, "project": {"owner": {"id": 711}, "assignee": {"id": 817}, "organization": {"id": 933}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "owner": {"id": 7}, "assignee": {"id": 587}, "organization": {"id": 653}, "project": {"owner": {"id": 744}, "assignee": {"id": 816}, "organization": {"id": 912}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 44}, "assignee": {"id": 534}, "organization": {"id": 190}, "project": {"owner": {"id": 722}, "assignee": {"id": 806}, "organization": {"id": 992}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 304, "owner": {"id": 92}, "assignee": {"id": 573}, "organization": {"id": 610}, "project": {"owner": {"id": 708}, "assignee": {"id": 877}, "organization": {"id": 980}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 208}, "user": {"role": null}}}, "resource": {"id": 341, "owner": {"id": 10}, "assignee": {"id": 503}, "organization": {"id": 188}, "project": {"owner": {"id": 747}, "assignee": {"id": 880}, "organization": {"id": 915}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 341, "owner": {"id": 20}, "assignee": {"id": 585}, "organization": {"id": 689}, "project": {"owner": {"id": 738}, "assignee": {"id": 813}, "organization": {"id": 921}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 307, "owner": {"id": 409}, "assignee": {"id": 97}, "organization": {"id": 142}, "project": {"owner": {"id": 764}, "assignee": {"id": 858}, "organization": {"id": 999}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 7, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 366, "owner": {"id": 423}, "assignee": {"id": 7}, "organization": {"id": 659}, "project": {"owner": {"id": 705}, "assignee": {"id": 824}, "organization": {"id": 972}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 36, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "owner": {"id": 471}, "assignee": {"id": 36}, "organization": {"id": 177}, "project": {"owner": {"id": 778}, "assignee": {"id": 875}, "organization": {"id": 912}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 413}, "assignee": {"id": 14}, "organization": {"id": 611}, "project": {"owner": {"id": 704}, "assignee": {"id": 835}, "organization": {"id": 947}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "owner": {"id": 448}, "assignee": {"id": 40}, "organization": {"id": 196}, "project": {"owner": {"id": 764}, "assignee": {"id": 815}, "organization": {"id": 963}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "owner": {"id": 405}, "assignee": {"id": 69}, "organization": {"id": 644}, "project": {"owner": {"id": 771}, "assignee": {"id": 829}, "organization": {"id": 937}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 343, "owner": {"id": 476}, "assignee": {"id": 53}, "organization": {"id": 195}, "project": {"owner": {"id": 759}, "assignee": {"id": 842}, "organization": {"id": 929}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 338, "owner": {"id": 460}, "assignee": {"id": 23}, "organization": {"id": 679}, "project": {"owner": {"id": 795}, "assignee": {"id": 807}, "organization": {"id": 945}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 387, "owner": {"id": 424}, "assignee": {"id": 43}, "organization": {"id": 101}, "project": {"owner": {"id": 792}, "assignee": {"id": 839}, "organization": {"id": 960}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 397, "owner": {"id": 473}, "assignee": {"id": 93}, "organization": {"id": 661}, "project": {"owner": {"id": 770}, "assignee": {"id": 824}, "organization": {"id": 945}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 382, "owner": {"id": 448}, "assignee": {"id": 47}, "organization": {"id": 167}, "project": {"owner": {"id": 780}, "assignee": {"id": 880}, "organization": {"id": 985}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 470}, "assignee": {"id": 57}, "organization": {"id": 612}, "project": {"owner": {"id": 769}, "assignee": {"id": 847}, "organization": {"id": 944}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 402}, "assignee": {"id": 55}, "organization": {"id": 116}, "project": {"owner": {"id": 746}, "assignee": {"id": 860}, "organization": {"id": 954}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 407}, "assignee": {"id": 22}, "organization": {"id": 649}, "project": {"owner": {"id": 713}, "assignee": {"id": 804}, "organization": {"id": 936}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 304, "owner": {"id": 431}, "assignee": {"id": 44}, "organization": {"id": 129}, "project": {"owner": {"id": 726}, "assignee": {"id": 890}, "organization": {"id": 993}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 349, "owner": {"id": 467}, "assignee": {"id": 59}, "organization": {"id": 664}, "project": {"owner": {"id": 708}, "assignee": {"id": 841}, "organization": {"id": 979}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 301, "owner": {"id": 492}, "assignee": {"id": 54}, "organization": {"id": 177}, "project": {"owner": {"id": 771}, "assignee": {"id": 849}, "organization": {"id": 914}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 140, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 307, "owner": {"id": 466}, "assignee": {"id": 41}, "organization": {"id": 631}, "project": {"owner": {"id": 733}, "assignee": {"id": 891}, "organization": {"id": 959}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 395, "owner": {"id": 456}, "assignee": {"id": 39}, "organization": {"id": 130}, "project": {"owner": {"id": 712}, "assignee": {"id": 833}, "organization": {"id": 938}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 433}, "assignee": {"id": 51}, "organization": {"id": 652}, "project": {"owner": {"id": 795}, "assignee": {"id": 877}, "organization": {"id": 921}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 353, "owner": {"id": 498}, "assignee": {"id": 89}, "organization": {"id": 166}, "project": {"owner": {"id": 744}, "assignee": {"id": 812}, "organization": {"id": 974}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 429}, "assignee": {"id": 78}, "organization": {"id": 629}, "project": {"owner": {"id": 724}, "assignee": {"id": 835}, "organization": {"id": 989}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 20, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 310, "owner": {"id": 440}, "assignee": {"id": 20}, "organization": {"id": 159}, "project": {"owner": {"id": 773}, "assignee": {"id": 894}, "organization": {"id": 979}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 486}, "assignee": {"id": 79}, "organization": {"id": 611}, "project": {"owner": {"id": 724}, "assignee": {"id": 847}, "organization": {"id": 968}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "owner": {"id": 415}, "assignee": {"id": 13}, "organization": {"id": 114}, "project": {"owner": {"id": 707}, "assignee": {"id": 810}, "organization": {"id": 926}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "owner": {"id": 480}, "assignee": {"id": 60}, "organization": {"id": 664}, "project": {"owner": {"id": 756}, "assignee": {"id": 808}, "organization": {"id": 969}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 359, "owner": {"id": 485}, "assignee": {"id": 73}, "organization": {"id": 130}, "project": {"owner": {"id": 782}, "assignee": {"id": 874}, "organization": {"id": 921}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 373, "owner": {"id": 407}, "assignee": {"id": 70}, "organization": {"id": 657}, "project": {"owner": {"id": 760}, "assignee": {"id": 818}, "organization": {"id": 940}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 477}, "assignee": {"id": 42}, "organization": {"id": 103}, "project": {"owner": {"id": 753}, "assignee": {"id": 823}, "organization": {"id": 981}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 398, "owner": {"id": 434}, "assignee": {"id": 0}, "organization": {"id": 690}, "project": {"owner": {"id": 749}, "assignee": {"id": 885}, "organization": {"id": 950}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 353, "owner": {"id": 466}, "assignee": {"id": 47}, "organization": {"id": 193}, "project": {"owner": {"id": 723}, "assignee": {"id": 846}, "organization": {"id": 994}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 364, "owner": {"id": 466}, "assignee": {"id": 58}, "organization": {"id": 696}, "project": {"owner": {"id": 776}, "assignee": {"id": 858}, "organization": {"id": 925}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "owner": {"id": 403}, "assignee": {"id": 74}, "organization": {"id": 103}, "project": {"owner": {"id": 701}, "assignee": {"id": 833}, "organization": {"id": 914}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 415}, "assignee": {"id": 57}, "organization": {"id": 686}, "project": {"owner": {"id": 799}, "assignee": {"id": 813}, "organization": {"id": 963}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "owner": {"id": 472}, "assignee": {"id": 72}, "organization": {"id": 101}, "project": {"owner": {"id": 797}, "assignee": {"id": 829}, "organization": {"id": 904}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "owner": {"id": 424}, "assignee": {"id": 20}, "organization": {"id": 607}, "project": {"owner": {"id": 714}, "assignee": {"id": 886}, "organization": {"id": 975}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 367, "owner": {"id": 454}, "assignee": {"id": 47}, "organization": {"id": 194}, "project": {"owner": {"id": 702}, "assignee": {"id": 833}, "organization": {"id": 967}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 340, "owner": {"id": 405}, "assignee": {"id": 57}, "organization": {"id": 626}, "project": {"owner": {"id": 710}, "assignee": {"id": 831}, "organization": {"id": 999}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 393, "owner": {"id": 437}, "assignee": {"id": 48}, "organization": {"id": 145}, "project": {"owner": {"id": 762}, "assignee": {"id": 815}, "organization": {"id": 944}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 327, "owner": {"id": 460}, "assignee": {"id": 1}, "organization": {"id": 641}, "project": {"owner": {"id": 794}, "assignee": {"id": 890}, "organization": {"id": 903}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 371, "owner": {"id": 465}, "assignee": {"id": 18}, "organization": {"id": 107}, "project": {"owner": {"id": 719}, "assignee": {"id": 855}, "organization": {"id": 968}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 318, "owner": {"id": 404}, "assignee": {"id": 51}, "organization": {"id": 691}, "project": {"owner": {"id": 713}, "assignee": {"id": 840}, "organization": {"id": 918}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 484}, "assignee": {"id": 73}, "organization": {"id": 146}, "project": {"owner": {"id": 754}, "assignee": {"id": 887}, "organization": {"id": 960}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 440}, "assignee": {"id": 64}, "organization": {"id": 659}, "project": {"owner": {"id": 713}, "assignee": {"id": 893}, "organization": {"id": 996}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "owner": {"id": 418}, "assignee": {"id": 59}, "organization": {"id": 131}, "project": {"owner": {"id": 703}, "assignee": {"id": 855}, "organization": {"id": 976}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"id": 343, "owner": {"id": 465}, "assignee": {"id": 33}, "organization": {"id": 691}, "project": {"owner": {"id": 782}, "assignee": {"id": 890}, "organization": {"id": 974}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 318, "owner": {"id": 484}, "assignee": {"id": 14}, "organization": {"id": 101}, "project": {"owner": {"id": 780}, "assignee": {"id": 844}, "organization": {"id": 913}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 371, "owner": {"id": 410}, "assignee": {"id": 42}, "organization": {"id": 665}, "project": {"owner": {"id": 725}, "assignee": {"id": 810}, "organization": {"id": 929}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 292}, "user": {"role": null}}}, "resource": {"id": 379, "owner": {"id": 407}, "assignee": {"id": 52}, "organization": {"id": 154}, "project": {"owner": {"id": 725}, "assignee": {"id": 888}, "organization": {"id": 998}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 230}, "user": {"role": null}}}, "resource": {"id": 314, "owner": {"id": 461}, "assignee": {"id": 67}, "organization": {"id": 646}, "project": {"owner": {"id": 764}, "assignee": {"id": 864}, "organization": {"id": 910}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 359, "owner": {"id": 448}, "assignee": {"id": 502}, "organization": {"id": 109}, "project": {"owner": {"id": 708}, "assignee": {"id": 883}, "organization": {"id": 989}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 345, "owner": {"id": 443}, "assignee": {"id": 588}, "organization": {"id": 607}, "project": {"owner": {"id": 757}, "assignee": {"id": 844}, "organization": {"id": 969}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 414}, "assignee": {"id": 585}, "organization": {"id": 107}, "project": {"owner": {"id": 768}, "assignee": {"id": 820}, "organization": {"id": 953}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 7, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "owner": {"id": 434}, "assignee": {"id": 584}, "organization": {"id": 634}, "project": {"owner": {"id": 739}, "assignee": {"id": 826}, "organization": {"id": 935}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 7, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "owner": {"id": 442}, "assignee": {"id": 588}, "organization": {"id": 165}, "project": {"owner": {"id": 775}, "assignee": {"id": 876}, "organization": {"id": 910}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "owner": {"id": 413}, "assignee": {"id": 562}, "organization": {"id": 640}, "project": {"owner": {"id": 755}, "assignee": {"id": 848}, "organization": {"id": 993}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 154, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 474}, "assignee": {"id": 500}, "organization": {"id": 154}, "project": {"owner": {"id": 794}, "assignee": {"id": 864}, "organization": {"id": 908}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 366, "owner": {"id": 425}, "assignee": {"id": 520}, "organization": {"id": 607}, "project": {"owner": {"id": 701}, "assignee": {"id": 859}, "organization": {"id": 993}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 387, "owner": {"id": 450}, "assignee": {"id": 542}, "organization": {"id": 115}, "project": {"owner": {"id": 729}, "assignee": {"id": 856}, "organization": {"id": 900}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 476}, "assignee": {"id": 574}, "organization": {"id": 622}, "project": {"owner": {"id": 767}, "assignee": {"id": 877}, "organization": {"id": 958}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 333, "owner": {"id": 473}, "assignee": {"id": 556}, "organization": {"id": 128}, "project": {"owner": {"id": 711}, "assignee": {"id": 878}, "organization": {"id": 999}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 368, "owner": {"id": 463}, "assignee": {"id": 560}, "organization": {"id": 682}, "project": {"owner": {"id": 787}, "assignee": {"id": 848}, "organization": {"id": 905}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 302, "owner": {"id": 491}, "assignee": {"id": 579}, "organization": {"id": 125}, "project": {"owner": {"id": 754}, "assignee": {"id": 816}, "organization": {"id": 933}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 98, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 315, "owner": {"id": 440}, "assignee": {"id": 596}, "organization": {"id": 663}, "project": {"owner": {"id": 713}, "assignee": {"id": 869}, "organization": {"id": 917}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "owner": {"id": 423}, "assignee": {"id": 558}, "organization": {"id": 133}, "project": {"owner": {"id": 788}, "assignee": {"id": 801}, "organization": {"id": 951}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 354, "owner": {"id": 455}, "assignee": {"id": 545}, "organization": {"id": 653}, "project": {"owner": {"id": 746}, "assignee": {"id": 869}, "organization": {"id": 932}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 381, "owner": {"id": 491}, "assignee": {"id": 574}, "organization": {"id": 134}, "project": {"owner": {"id": 782}, "assignee": {"id": 807}, "organization": {"id": 927}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 424}, "assignee": {"id": 554}, "organization": {"id": 638}, "project": {"owner": {"id": 746}, "assignee": {"id": 853}, "organization": {"id": 963}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 238}, "user": {"role": null}}}, "resource": {"id": 389, "owner": {"id": 420}, "assignee": {"id": 538}, "organization": {"id": 181}, "project": {"owner": {"id": 770}, "assignee": {"id": 893}, "organization": {"id": 957}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 309, "owner": {"id": 441}, "assignee": {"id": 545}, "organization": {"id": 660}, "project": {"owner": {"id": 795}, "assignee": {"id": 885}, "organization": {"id": 917}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 308, "owner": {"id": 489}, "assignee": {"id": 579}, "organization": {"id": 130}, "project": {"owner": {"id": 731}, "assignee": {"id": 874}, "organization": {"id": 948}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 389, "owner": {"id": 406}, "assignee": {"id": 521}, "organization": {"id": 664}, "project": {"owner": {"id": 720}, "assignee": {"id": 873}, "organization": {"id": 957}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "owner": {"id": 422}, "assignee": {"id": 599}, "organization": {"id": 109}, "project": {"owner": {"id": 763}, "assignee": {"id": 810}, "organization": {"id": 998}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "owner": {"id": 403}, "assignee": {"id": 582}, "organization": {"id": 691}, "project": {"owner": {"id": 729}, "assignee": {"id": 824}, "organization": {"id": 952}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 71, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "owner": {"id": 436}, "assignee": {"id": 577}, "organization": {"id": 126}, "project": {"owner": {"id": 777}, "assignee": {"id": 818}, "organization": {"id": 963}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 461}, "assignee": {"id": 535}, "organization": {"id": 637}, "project": {"owner": {"id": 762}, "assignee": {"id": 824}, "organization": {"id": 921}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 314, "owner": {"id": 473}, "assignee": {"id": 542}, "organization": {"id": 169}, "project": {"owner": {"id": 734}, "assignee": {"id": 872}, "organization": {"id": 997}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 420}, "assignee": {"id": 558}, "organization": {"id": 687}, "project": {"owner": {"id": 751}, "assignee": {"id": 805}, "organization": {"id": 933}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 369, "owner": {"id": 411}, "assignee": {"id": 561}, "organization": {"id": 174}, "project": {"owner": {"id": 714}, "assignee": {"id": 862}, "organization": {"id": 911}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 227}, "user": {"role": null}}}, "resource": {"id": 336, "owner": {"id": 434}, "assignee": {"id": 539}, "organization": {"id": 623}, "project": {"owner": {"id": 782}, "assignee": {"id": 871}, "organization": {"id": 924}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 322, "owner": {"id": 434}, "assignee": {"id": 563}, "organization": {"id": 187}, "project": {"owner": {"id": 701}, "assignee": {"id": 839}, "organization": {"id": 921}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 21, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 441}, "assignee": {"id": 592}, "organization": {"id": 690}, "project": {"owner": {"id": 734}, "assignee": {"id": 860}, "organization": {"id": 914}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "owner": {"id": 429}, "assignee": {"id": 511}, "organization": {"id": 148}, "project": {"owner": {"id": 771}, "assignee": {"id": 805}, "organization": {"id": 968}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 434}, "assignee": {"id": 518}, "organization": {"id": 631}, "project": {"owner": {"id": 779}, "assignee": {"id": 881}, "organization": {"id": 976}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "owner": {"id": 488}, "assignee": {"id": 561}, "organization": {"id": 172}, "project": {"owner": {"id": 725}, "assignee": {"id": 816}, "organization": {"id": 979}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "owner": {"id": 473}, "assignee": {"id": 512}, "organization": {"id": 670}, "project": {"owner": {"id": 761}, "assignee": {"id": 889}, "organization": {"id": 943}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 346, "owner": {"id": 464}, "assignee": {"id": 567}, "organization": {"id": 196}, "project": {"owner": {"id": 714}, "assignee": {"id": 874}, "organization": {"id": 997}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 339, "owner": {"id": 465}, "assignee": {"id": 523}, "organization": {"id": 635}, "project": {"owner": {"id": 753}, "assignee": {"id": 837}, "organization": {"id": 987}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 289}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 466}, "assignee": {"id": 500}, "organization": {"id": 105}, "project": {"owner": {"id": 792}, "assignee": {"id": 834}, "organization": {"id": 951}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 302, "owner": {"id": 454}, "assignee": {"id": 513}, "organization": {"id": 696}, "project": {"owner": {"id": 754}, "assignee": {"id": 877}, "organization": {"id": 927}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 330, "owner": {"id": 465}, "assignee": {"id": 509}, "organization": {"id": 163}, "project": {"owner": {"id": 797}, "assignee": {"id": 888}, "organization": {"id": 950}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 387, "owner": {"id": 456}, "assignee": {"id": 521}, "organization": {"id": 609}, "project": {"owner": {"id": 771}, "assignee": {"id": 847}, "organization": {"id": 904}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "owner": {"id": 408}, "assignee": {"id": 551}, "organization": {"id": 149}, "project": {"owner": {"id": 739}, "assignee": {"id": 805}, "organization": {"id": 943}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "owner": {"id": 464}, "assignee": {"id": 541}, "organization": {"id": 678}, "project": {"owner": {"id": 702}, "assignee": {"id": 896}, "organization": {"id": 914}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 407}, "assignee": {"id": 589}, "organization": {"id": 103}, "project": {"owner": {"id": 709}, "assignee": {"id": 858}, "organization": {"id": 946}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 36, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "owner": {"id": 485}, "assignee": {"id": 530}, "organization": {"id": 641}, "project": {"owner": {"id": 757}, "assignee": {"id": 870}, "organization": {"id": 914}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 462}, "assignee": {"id": 503}, "organization": {"id": 166}, "project": {"owner": {"id": 793}, "assignee": {"id": 846}, "organization": {"id": 930}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 417}, "assignee": {"id": 584}, "organization": {"id": 668}, "project": {"owner": {"id": 730}, "assignee": {"id": 875}, "organization": {"id": 921}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 235}, "user": {"role": null}}}, "resource": {"id": 330, "owner": {"id": 464}, "assignee": {"id": 586}, "organization": {"id": 162}, "project": {"owner": {"id": 793}, "assignee": {"id": 810}, "organization": {"id": 983}}}} -} - -test_scope_UPDATE_METADATA_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:metadata", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 383, "owner": {"id": 405}, "assignee": {"id": 507}, "organization": {"id": 663}, "project": {"owner": {"id": 732}, "assignee": {"id": 828}, "organization": {"id": 996}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": null}, "resource": {"id": 383, "owner": {"id": 445}, "assignee": {"id": 567}, "organization": {"id": 627}, "project": {"owner": {"id": 85}, "assignee": {"id": 887}, "organization": {"id": 934}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": null}, "resource": {"id": 334, "owner": {"id": 498}, "assignee": {"id": 594}, "organization": {"id": 676}, "project": {"owner": {"id": 93}, "assignee": {"id": 836}, "organization": {"id": 934}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": null}, "resource": {"id": 369, "owner": {"id": 428}, "assignee": {"id": 529}, "organization": {"id": 628}, "project": {"owner": {"id": 21}, "assignee": {"id": 846}, "organization": {"id": 950}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": null}, "resource": {"id": 336, "owner": {"id": 469}, "assignee": {"id": 569}, "organization": {"id": 652}, "project": {"owner": {"id": 78}, "assignee": {"id": 876}, "organization": {"id": 995}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": null}, "resource": {"id": 377, "owner": {"id": 409}, "assignee": {"id": 512}, "organization": {"id": 684}, "project": {"owner": {"id": 39}, "assignee": {"id": 848}, "organization": {"id": 948}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": null}, "resource": {"id": 366, "owner": {"id": 467}, "assignee": {"id": 582}, "organization": {"id": 684}, "project": {"owner": {"id": 776}, "assignee": {"id": 97}, "organization": {"id": 912}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": null}, "resource": {"id": 386, "owner": {"id": 451}, "assignee": {"id": 554}, "organization": {"id": 685}, "project": {"owner": {"id": 730}, "assignee": {"id": 6}, "organization": {"id": 904}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": null}, "resource": {"id": 395, "owner": {"id": 491}, "assignee": {"id": 549}, "organization": {"id": 628}, "project": {"owner": {"id": 794}, "assignee": {"id": 25}, "organization": {"id": 962}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 1, "privilege": "worker"}, "organization": null}, "resource": {"id": 348, "owner": {"id": 449}, "assignee": {"id": 543}, "organization": {"id": 696}, "project": {"owner": {"id": 756}, "assignee": {"id": 1}, "organization": {"id": 953}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": null}, "resource": {"id": 387, "owner": {"id": 448}, "assignee": {"id": 582}, "organization": {"id": 670}, "project": {"owner": {"id": 741}, "assignee": {"id": 58}, "organization": {"id": 974}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 8, "privilege": "admin"}, "organization": null}, "resource": {"id": 336, "owner": {"id": 8}, "assignee": {"id": 595}, "organization": {"id": 646}, "project": {"owner": {"id": 729}, "assignee": {"id": 840}, "organization": {"id": 920}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": null}, "resource": {"id": 335, "owner": {"id": 93}, "assignee": {"id": 569}, "organization": {"id": 606}, "project": {"owner": {"id": 755}, "assignee": {"id": 849}, "organization": {"id": 957}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": null}, "resource": {"id": 383, "owner": {"id": 24}, "assignee": {"id": 523}, "organization": {"id": 624}, "project": {"owner": {"id": 741}, "assignee": {"id": 838}, "organization": {"id": 982}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": null}, "resource": {"id": 349, "owner": {"id": 56}, "assignee": {"id": 546}, "organization": {"id": 679}, "project": {"owner": {"id": 705}, "assignee": {"id": 823}, "organization": {"id": 971}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": null}, "resource": {"id": 335, "owner": {"id": 74}, "assignee": {"id": 547}, "organization": {"id": 665}, "project": {"owner": {"id": 712}, "assignee": {"id": 851}, "organization": {"id": 938}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": null}, "resource": {"id": 344, "owner": {"id": 477}, "assignee": {"id": 86}, "organization": {"id": 642}, "project": {"owner": {"id": 704}, "assignee": {"id": 802}, "organization": {"id": 999}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": null}, "resource": {"id": 366, "owner": {"id": 444}, "assignee": {"id": 77}, "organization": {"id": 626}, "project": {"owner": {"id": 754}, "assignee": {"id": 867}, "organization": {"id": 909}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": null}, "resource": {"id": 308, "owner": {"id": 492}, "assignee": {"id": 13}, "organization": {"id": 620}, "project": {"owner": {"id": 779}, "assignee": {"id": 843}, "organization": {"id": 916}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": null}, "resource": {"id": 372, "owner": {"id": 426}, "assignee": {"id": 34}, "organization": {"id": 658}, "project": {"owner": {"id": 789}, "assignee": {"id": 866}, "organization": {"id": 965}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": null}, "resource": {"id": 304, "owner": {"id": 458}, "assignee": {"id": 79}, "organization": {"id": 619}, "project": {"owner": {"id": 709}, "assignee": {"id": 864}, "organization": {"id": 971}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": null}, "resource": {"id": 386, "owner": {"id": 435}, "assignee": {"id": 577}, "organization": {"id": 618}, "project": {"owner": {"id": 720}, "assignee": {"id": 874}, "organization": {"id": 934}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": null}, "resource": {"id": 362, "owner": {"id": 421}, "assignee": {"id": 544}, "organization": {"id": 675}, "project": {"owner": {"id": 791}, "assignee": {"id": 803}, "organization": {"id": 950}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": null}, "resource": {"id": 341, "owner": {"id": 431}, "assignee": {"id": 541}, "organization": {"id": 692}, "project": {"owner": {"id": 735}, "assignee": {"id": 850}, "organization": {"id": 969}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": null}, "resource": {"id": 339, "owner": {"id": 423}, "assignee": {"id": 560}, "organization": {"id": 640}, "project": {"owner": {"id": 756}, "assignee": {"id": 809}, "organization": {"id": 934}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 73, "privilege": "none"}, "organization": null}, "resource": {"id": 340, "owner": {"id": 404}, "assignee": {"id": 513}, "organization": {"id": 606}, "project": {"owner": {"id": 719}, "assignee": {"id": 885}, "organization": {"id": 931}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 375, "owner": {"id": 407}, "assignee": {"id": 507}, "organization": {"id": 161}, "project": {"owner": {"id": 56}, "assignee": {"id": 805}, "organization": {"id": 915}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 333, "owner": {"id": 479}, "assignee": {"id": 581}, "organization": {"id": 612}, "project": {"owner": {"id": 25}, "assignee": {"id": 822}, "organization": {"id": 965}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 372, "owner": {"id": 447}, "assignee": {"id": 512}, "organization": {"id": 189}, "project": {"owner": {"id": 54}, "assignee": {"id": 875}, "organization": {"id": 991}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "owner": {"id": 403}, "assignee": {"id": 587}, "organization": {"id": 622}, "project": {"owner": {"id": 9}, "assignee": {"id": 879}, "organization": {"id": 908}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "owner": {"id": 477}, "assignee": {"id": 528}, "organization": {"id": 198}, "project": {"owner": {"id": 71}, "assignee": {"id": 858}, "organization": {"id": 982}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 277}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "owner": {"id": 453}, "assignee": {"id": 518}, "organization": {"id": 677}, "project": {"owner": {"id": 49}, "assignee": {"id": 834}, "organization": {"id": 995}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 162, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"id": 326, "owner": {"id": 400}, "assignee": {"id": 588}, "organization": {"id": 162}, "project": {"owner": {"id": 94}, "assignee": {"id": 815}, "organization": {"id": 998}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 322, "owner": {"id": 409}, "assignee": {"id": 582}, "organization": {"id": 674}, "project": {"owner": {"id": 61}, "assignee": {"id": 886}, "organization": {"id": 917}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 391, "owner": {"id": 407}, "assignee": {"id": 551}, "organization": {"id": 137}, "project": {"owner": {"id": 50}, "assignee": {"id": 883}, "organization": {"id": 932}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 463}, "assignee": {"id": 531}, "organization": {"id": 638}, "project": {"owner": {"id": 49}, "assignee": {"id": 884}, "organization": {"id": 956}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 465}, "assignee": {"id": 593}, "organization": {"id": 127}, "project": {"owner": {"id": 10}, "assignee": {"id": 812}, "organization": {"id": 911}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 336, "owner": {"id": 493}, "assignee": {"id": 578}, "organization": {"id": 623}, "project": {"owner": {"id": 60}, "assignee": {"id": 871}, "organization": {"id": 948}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 437}, "assignee": {"id": 539}, "organization": {"id": 114}, "project": {"owner": {"id": 68}, "assignee": {"id": 826}, "organization": {"id": 920}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "owner": {"id": 449}, "assignee": {"id": 509}, "organization": {"id": 625}, "project": {"owner": {"id": 28}, "assignee": {"id": 864}, "organization": {"id": 923}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 418}, "assignee": {"id": 579}, "organization": {"id": 100}, "project": {"owner": {"id": 55}, "assignee": {"id": 890}, "organization": {"id": 937}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 337, "owner": {"id": 449}, "assignee": {"id": 587}, "organization": {"id": 685}, "project": {"owner": {"id": 60}, "assignee": {"id": 838}, "organization": {"id": 904}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 399, "owner": {"id": 467}, "assignee": {"id": 505}, "organization": {"id": 179}, "project": {"owner": {"id": 61}, "assignee": {"id": 813}, "organization": {"id": 965}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 377, "owner": {"id": 461}, "assignee": {"id": 513}, "organization": {"id": 662}, "project": {"owner": {"id": 32}, "assignee": {"id": 802}, "organization": {"id": 969}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 340, "owner": {"id": 489}, "assignee": {"id": 520}, "organization": {"id": 145}, "project": {"owner": {"id": 9}, "assignee": {"id": 889}, "organization": {"id": 913}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 320, "owner": {"id": 463}, "assignee": {"id": 541}, "organization": {"id": 689}, "project": {"owner": {"id": 93}, "assignee": {"id": 859}, "organization": {"id": 981}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 131, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 410}, "assignee": {"id": 530}, "organization": {"id": 131}, "project": {"owner": {"id": 50}, "assignee": {"id": 838}, "organization": {"id": 907}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 320, "owner": {"id": 421}, "assignee": {"id": 524}, "organization": {"id": 649}, "project": {"owner": {"id": 12}, "assignee": {"id": 882}, "organization": {"id": 964}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 474}, "assignee": {"id": 558}, "organization": {"id": 127}, "project": {"owner": {"id": 10}, "assignee": {"id": 810}, "organization": {"id": 913}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 429}, "assignee": {"id": 553}, "organization": {"id": 649}, "project": {"owner": {"id": 76}, "assignee": {"id": 896}, "organization": {"id": 999}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 358, "owner": {"id": 414}, "assignee": {"id": 574}, "organization": {"id": 167}, "project": {"owner": {"id": 56}, "assignee": {"id": 855}, "organization": {"id": 976}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 348, "owner": {"id": 422}, "assignee": {"id": 551}, "organization": {"id": 648}, "project": {"owner": {"id": 34}, "assignee": {"id": 812}, "organization": {"id": 996}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 369, "owner": {"id": 422}, "assignee": {"id": 552}, "organization": {"id": 105}, "project": {"owner": {"id": 63}, "assignee": {"id": 846}, "organization": {"id": 974}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 356, "owner": {"id": 427}, "assignee": {"id": 520}, "organization": {"id": 614}, "project": {"owner": {"id": 85}, "assignee": {"id": 857}, "organization": {"id": 909}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 251}, "user": {"role": null}}}, "resource": {"id": 310, "owner": {"id": 445}, "assignee": {"id": 515}, "organization": {"id": 177}, "project": {"owner": {"id": 2}, "assignee": {"id": 856}, "organization": {"id": 983}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 272}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 419}, "assignee": {"id": 558}, "organization": {"id": 628}, "project": {"owner": {"id": 26}, "assignee": {"id": 854}, "organization": {"id": 960}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"id": 379, "owner": {"id": 419}, "assignee": {"id": 570}, "organization": {"id": 153}, "project": {"owner": {"id": 66}, "assignee": {"id": 855}, "organization": {"id": 962}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 311, "owner": {"id": 457}, "assignee": {"id": 564}, "organization": {"id": 635}, "project": {"owner": {"id": 69}, "assignee": {"id": 841}, "organization": {"id": 938}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 314, "owner": {"id": 416}, "assignee": {"id": 502}, "organization": {"id": 165}, "project": {"owner": {"id": 48}, "assignee": {"id": 816}, "organization": {"id": 994}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "owner": {"id": 460}, "assignee": {"id": 501}, "organization": {"id": 613}, "project": {"owner": {"id": 86}, "assignee": {"id": 834}, "organization": {"id": 979}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 361, "owner": {"id": 412}, "assignee": {"id": 589}, "organization": {"id": 195}, "project": {"owner": {"id": 77}, "assignee": {"id": 867}, "organization": {"id": 982}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "owner": {"id": 463}, "assignee": {"id": 571}, "organization": {"id": 612}, "project": {"owner": {"id": 45}, "assignee": {"id": 818}, "organization": {"id": 987}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 329, "owner": {"id": 427}, "assignee": {"id": 591}, "organization": {"id": 162}, "project": {"owner": {"id": 75}, "assignee": {"id": 872}, "organization": {"id": 909}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 474}, "assignee": {"id": 527}, "organization": {"id": 653}, "project": {"owner": {"id": 20}, "assignee": {"id": 853}, "organization": {"id": 934}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 308, "owner": {"id": 410}, "assignee": {"id": 593}, "organization": {"id": 175}, "project": {"owner": {"id": 0}, "assignee": {"id": 850}, "organization": {"id": 908}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 140, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 308, "owner": {"id": 492}, "assignee": {"id": 517}, "organization": {"id": 667}, "project": {"owner": {"id": 62}, "assignee": {"id": 819}, "organization": {"id": 961}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 384, "owner": {"id": 444}, "assignee": {"id": 524}, "organization": {"id": 162}, "project": {"owner": {"id": 27}, "assignee": {"id": 871}, "organization": {"id": 989}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 139, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 391, "owner": {"id": 480}, "assignee": {"id": 580}, "organization": {"id": 659}, "project": {"owner": {"id": 96}, "assignee": {"id": 820}, "organization": {"id": 953}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 233}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "owner": {"id": 484}, "assignee": {"id": 553}, "organization": {"id": 111}, "project": {"owner": {"id": 3}, "assignee": {"id": 856}, "organization": {"id": 927}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "owner": {"id": 425}, "assignee": {"id": 543}, "organization": {"id": 684}, "project": {"owner": {"id": 78}, "assignee": {"id": 862}, "organization": {"id": 986}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "owner": {"id": 436}, "assignee": {"id": 504}, "organization": {"id": 151}, "project": {"owner": {"id": 95}, "assignee": {"id": 889}, "organization": {"id": 994}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 289}, "user": {"role": "supervisor"}}}, "resource": {"id": 398, "owner": {"id": 492}, "assignee": {"id": 562}, "organization": {"id": 651}, "project": {"owner": {"id": 67}, "assignee": {"id": 833}, "organization": {"id": 961}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 339, "owner": {"id": 466}, "assignee": {"id": 555}, "organization": {"id": 115}, "project": {"owner": {"id": 32}, "assignee": {"id": 840}, "organization": {"id": 949}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 310, "owner": {"id": 490}, "assignee": {"id": 502}, "organization": {"id": 651}, "project": {"owner": {"id": 5}, "assignee": {"id": 850}, "organization": {"id": 999}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 293}, "user": {"role": null}}}, "resource": {"id": 378, "owner": {"id": 489}, "assignee": {"id": 563}, "organization": {"id": 125}, "project": {"owner": {"id": 15}, "assignee": {"id": 838}, "organization": {"id": 942}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 345, "owner": {"id": 452}, "assignee": {"id": 500}, "organization": {"id": 676}, "project": {"owner": {"id": 84}, "assignee": {"id": 806}, "organization": {"id": 909}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 451}, "assignee": {"id": 570}, "organization": {"id": 175}, "project": {"owner": {"id": 707}, "assignee": {"id": 43}, "organization": {"id": 980}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 487}, "assignee": {"id": 500}, "organization": {"id": 626}, "project": {"owner": {"id": 782}, "assignee": {"id": 87}, "organization": {"id": 927}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 321, "owner": {"id": 429}, "assignee": {"id": 560}, "organization": {"id": 137}, "project": {"owner": {"id": 702}, "assignee": {"id": 80}, "organization": {"id": 994}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "owner": {"id": 423}, "assignee": {"id": 592}, "organization": {"id": 653}, "project": {"owner": {"id": 701}, "assignee": {"id": 71}, "organization": {"id": 961}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "owner": {"id": 423}, "assignee": {"id": 536}, "organization": {"id": 157}, "project": {"owner": {"id": 748}, "assignee": {"id": 26}, "organization": {"id": 966}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "owner": {"id": 495}, "assignee": {"id": 533}, "organization": {"id": 691}, "project": {"owner": {"id": 745}, "assignee": {"id": 89}, "organization": {"id": 961}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 327, "owner": {"id": 496}, "assignee": {"id": 502}, "organization": {"id": 142}, "project": {"owner": {"id": 781}, "assignee": {"id": 95}, "organization": {"id": 905}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 339, "owner": {"id": 405}, "assignee": {"id": 594}, "organization": {"id": 602}, "project": {"owner": {"id": 752}, "assignee": {"id": 13}, "organization": {"id": 939}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 463}, "assignee": {"id": 578}, "organization": {"id": 102}, "project": {"owner": {"id": 786}, "assignee": {"id": 92}, "organization": {"id": 936}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 368, "owner": {"id": 463}, "assignee": {"id": 589}, "organization": {"id": 634}, "project": {"owner": {"id": 712}, "assignee": {"id": 83}, "organization": {"id": 996}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 302, "owner": {"id": 458}, "assignee": {"id": 542}, "organization": {"id": 148}, "project": {"owner": {"id": 753}, "assignee": {"id": 73}, "organization": {"id": 939}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 331, "owner": {"id": 499}, "assignee": {"id": 573}, "organization": {"id": 623}, "project": {"owner": {"id": 712}, "assignee": {"id": 15}, "organization": {"id": 971}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"id": 339, "owner": {"id": 421}, "assignee": {"id": 535}, "organization": {"id": 151}, "project": {"owner": {"id": 707}, "assignee": {"id": 25}, "organization": {"id": 998}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "owner": {"id": 495}, "assignee": {"id": 541}, "organization": {"id": 610}, "project": {"owner": {"id": 775}, "assignee": {"id": 54}, "organization": {"id": 991}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 422}, "assignee": {"id": 590}, "organization": {"id": 191}, "project": {"owner": {"id": 719}, "assignee": {"id": 42}, "organization": {"id": 987}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "owner": {"id": 476}, "assignee": {"id": 579}, "organization": {"id": 620}, "project": {"owner": {"id": 753}, "assignee": {"id": 38}, "organization": {"id": 917}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 391, "owner": {"id": 493}, "assignee": {"id": 595}, "organization": {"id": 138}, "project": {"owner": {"id": 759}, "assignee": {"id": 8}, "organization": {"id": 984}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 494}, "assignee": {"id": 505}, "organization": {"id": 668}, "project": {"owner": {"id": 778}, "assignee": {"id": 46}, "organization": {"id": 949}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 371, "owner": {"id": 448}, "assignee": {"id": 513}, "organization": {"id": 114}, "project": {"owner": {"id": 752}, "assignee": {"id": 84}, "organization": {"id": 919}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 309, "owner": {"id": 474}, "assignee": {"id": 528}, "organization": {"id": 687}, "project": {"owner": {"id": 748}, "assignee": {"id": 96}, "organization": {"id": 959}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 335, "owner": {"id": 411}, "assignee": {"id": 521}, "organization": {"id": 162}, "project": {"owner": {"id": 791}, "assignee": {"id": 54}, "organization": {"id": 960}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 386, "owner": {"id": 432}, "assignee": {"id": 534}, "organization": {"id": 639}, "project": {"owner": {"id": 760}, "assignee": {"id": 49}, "organization": {"id": 968}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "owner": {"id": 408}, "assignee": {"id": 529}, "organization": {"id": 106}, "project": {"owner": {"id": 706}, "assignee": {"id": 69}, "organization": {"id": 904}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 140, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 417}, "assignee": {"id": 591}, "organization": {"id": 693}, "project": {"owner": {"id": 766}, "assignee": {"id": 29}, "organization": {"id": 991}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "owner": {"id": 441}, "assignee": {"id": 581}, "organization": {"id": 104}, "project": {"owner": {"id": 712}, "assignee": {"id": 59}, "organization": {"id": 923}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "owner": {"id": 410}, "assignee": {"id": 576}, "organization": {"id": 610}, "project": {"owner": {"id": 793}, "assignee": {"id": 8}, "organization": {"id": 990}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 383, "owner": {"id": 474}, "assignee": {"id": 542}, "organization": {"id": 192}, "project": {"owner": {"id": 742}, "assignee": {"id": 17}, "organization": {"id": 980}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 84, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 315, "owner": {"id": 421}, "assignee": {"id": 554}, "organization": {"id": 653}, "project": {"owner": {"id": 751}, "assignee": {"id": 84}, "organization": {"id": 922}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 371, "owner": {"id": 441}, "assignee": {"id": 550}, "organization": {"id": 178}, "project": {"owner": {"id": 797}, "assignee": {"id": 96}, "organization": {"id": 905}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 390, "owner": {"id": 419}, "assignee": {"id": 565}, "organization": {"id": 670}, "project": {"owner": {"id": 742}, "assignee": {"id": 8}, "organization": {"id": 908}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 19}, "user": {"role": "owner"}}}, "resource": {"id": 315, "owner": {"id": 481}, "assignee": {"id": 516}, "organization": {"id": 148}, "project": {"owner": {"id": 711}, "assignee": {"id": 19}, "organization": {"id": 904}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 447}, "assignee": {"id": 532}, "organization": {"id": 692}, "project": {"owner": {"id": 719}, "assignee": {"id": 57}, "organization": {"id": 988}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 434}, "assignee": {"id": 508}, "organization": {"id": 168}, "project": {"owner": {"id": 739}, "assignee": {"id": 66}, "organization": {"id": 917}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 437}, "assignee": {"id": 593}, "organization": {"id": 655}, "project": {"owner": {"id": 764}, "assignee": {"id": 79}, "organization": {"id": 902}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 387, "owner": {"id": 432}, "assignee": {"id": 579}, "organization": {"id": 142}, "project": {"owner": {"id": 741}, "assignee": {"id": 3}, "organization": {"id": 948}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "owner": {"id": 494}, "assignee": {"id": 594}, "organization": {"id": 664}, "project": {"owner": {"id": 747}, "assignee": {"id": 94}, "organization": {"id": 993}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 312, "owner": {"id": 425}, "assignee": {"id": 562}, "organization": {"id": 116}, "project": {"owner": {"id": 798}, "assignee": {"id": 13}, "organization": {"id": 913}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 29, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 254}, "user": {"role": "worker"}}}, "resource": {"id": 326, "owner": {"id": 409}, "assignee": {"id": 538}, "organization": {"id": 633}, "project": {"owner": {"id": 771}, "assignee": {"id": 29}, "organization": {"id": 951}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 296}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 404}, "assignee": {"id": 522}, "organization": {"id": 143}, "project": {"owner": {"id": 740}, "assignee": {"id": 69}, "organization": {"id": 934}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 252}, "user": {"role": null}}}, "resource": {"id": 372, "owner": {"id": 490}, "assignee": {"id": 595}, "organization": {"id": 698}, "project": {"owner": {"id": 781}, "assignee": {"id": 42}, "organization": {"id": 957}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 497}, "assignee": {"id": 562}, "organization": {"id": 167}, "project": {"owner": {"id": 707}, "assignee": {"id": 17}, "organization": {"id": 952}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 337, "owner": {"id": 436}, "assignee": {"id": 524}, "organization": {"id": 618}, "project": {"owner": {"id": 779}, "assignee": {"id": 90}, "organization": {"id": 904}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "owner": {"id": 411}, "assignee": {"id": 554}, "organization": {"id": 178}, "project": {"owner": {"id": 791}, "assignee": {"id": 22}, "organization": {"id": 952}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "owner": {"id": 472}, "assignee": {"id": 592}, "organization": {"id": 641}, "project": {"owner": {"id": 793}, "assignee": {"id": 55}, "organization": {"id": 981}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 348, "owner": {"id": 411}, "assignee": {"id": 541}, "organization": {"id": 163}, "project": {"owner": {"id": 701}, "assignee": {"id": 26}, "organization": {"id": 900}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 380, "owner": {"id": 481}, "assignee": {"id": 573}, "organization": {"id": 687}, "project": {"owner": {"id": 718}, "assignee": {"id": 1}, "organization": {"id": 919}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 378, "owner": {"id": 465}, "assignee": {"id": 599}, "organization": {"id": 163}, "project": {"owner": {"id": 704}, "assignee": {"id": 91}, "organization": {"id": 988}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 387, "owner": {"id": 441}, "assignee": {"id": 557}, "organization": {"id": 611}, "project": {"owner": {"id": 746}, "assignee": {"id": 49}, "organization": {"id": 942}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 324, "owner": {"id": 473}, "assignee": {"id": 587}, "organization": {"id": 190}, "project": {"owner": {"id": 763}, "assignee": {"id": 52}, "organization": {"id": 939}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 308, "owner": {"id": 494}, "assignee": {"id": 536}, "organization": {"id": 643}, "project": {"owner": {"id": 758}, "assignee": {"id": 79}, "organization": {"id": 947}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 393, "owner": {"id": 70}, "assignee": {"id": 574}, "organization": {"id": 103}, "project": {"owner": {"id": 715}, "assignee": {"id": 877}, "organization": {"id": 992}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 2}, "user": {"role": "owner"}}}, "resource": {"id": 340, "owner": {"id": 2}, "assignee": {"id": 579}, "organization": {"id": 698}, "project": {"owner": {"id": 707}, "assignee": {"id": 845}, "organization": {"id": 948}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 349, "owner": {"id": 93}, "assignee": {"id": 597}, "organization": {"id": 112}, "project": {"owner": {"id": 793}, "assignee": {"id": 888}, "organization": {"id": 943}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 329, "owner": {"id": 4}, "assignee": {"id": 546}, "organization": {"id": 631}, "project": {"owner": {"id": 703}, "assignee": {"id": 865}, "organization": {"id": 959}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "owner": {"id": 85}, "assignee": {"id": 535}, "organization": {"id": 179}, "project": {"owner": {"id": 761}, "assignee": {"id": 861}, "organization": {"id": 953}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "owner": {"id": 54}, "assignee": {"id": 583}, "organization": {"id": 671}, "project": {"owner": {"id": 757}, "assignee": {"id": 893}, "organization": {"id": 900}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 307, "owner": {"id": 60}, "assignee": {"id": 506}, "organization": {"id": 183}, "project": {"owner": {"id": 784}, "assignee": {"id": 808}, "organization": {"id": 900}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 36, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 372, "owner": {"id": 36}, "assignee": {"id": 593}, "organization": {"id": 655}, "project": {"owner": {"id": 763}, "assignee": {"id": 821}, "organization": {"id": 922}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 225}, "user": {"role": null}}}, "resource": {"id": 343, "owner": {"id": 25}, "assignee": {"id": 514}, "organization": {"id": 133}, "project": {"owner": {"id": 780}, "assignee": {"id": 857}, "organization": {"id": 904}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 336, "owner": {"id": 6}, "assignee": {"id": 511}, "organization": {"id": 656}, "project": {"owner": {"id": 709}, "assignee": {"id": 884}, "organization": {"id": 906}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 380, "owner": {"id": 29}, "assignee": {"id": 563}, "organization": {"id": 183}, "project": {"owner": {"id": 705}, "assignee": {"id": 842}, "organization": {"id": 968}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 382, "owner": {"id": 36}, "assignee": {"id": 575}, "organization": {"id": 635}, "project": {"owner": {"id": 731}, "assignee": {"id": 880}, "organization": {"id": 962}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "owner": {"id": 72}, "assignee": {"id": 526}, "organization": {"id": 179}, "project": {"owner": {"id": 771}, "assignee": {"id": 843}, "organization": {"id": 926}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 83}, "assignee": {"id": 551}, "organization": {"id": 692}, "project": {"owner": {"id": 726}, "assignee": {"id": 848}, "organization": {"id": 974}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 332, "owner": {"id": 53}, "assignee": {"id": 510}, "organization": {"id": 134}, "project": {"owner": {"id": 746}, "assignee": {"id": 817}, "organization": {"id": 945}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 90}, "assignee": {"id": 545}, "organization": {"id": 606}, "project": {"owner": {"id": 755}, "assignee": {"id": 837}, "organization": {"id": 927}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 54, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 54}, "assignee": {"id": 507}, "organization": {"id": 147}, "project": {"owner": {"id": 792}, "assignee": {"id": 851}, "organization": {"id": 972}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 335, "owner": {"id": 18}, "assignee": {"id": 518}, "organization": {"id": 649}, "project": {"owner": {"id": 771}, "assignee": {"id": 822}, "organization": {"id": 958}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 81, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 397, "owner": {"id": 81}, "assignee": {"id": 579}, "organization": {"id": 118}, "project": {"owner": {"id": 704}, "assignee": {"id": 807}, "organization": {"id": 974}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 319, "owner": {"id": 15}, "assignee": {"id": 599}, "organization": {"id": 609}, "project": {"owner": {"id": 711}, "assignee": {"id": 860}, "organization": {"id": 960}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 137, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 390, "owner": {"id": 61}, "assignee": {"id": 554}, "organization": {"id": 137}, "project": {"owner": {"id": 730}, "assignee": {"id": 814}, "organization": {"id": 990}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 308, "owner": {"id": 74}, "assignee": {"id": 543}, "organization": {"id": 616}, "project": {"owner": {"id": 713}, "assignee": {"id": 898}, "organization": {"id": 988}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "owner": {"id": 75}, "assignee": {"id": 576}, "organization": {"id": 163}, "project": {"owner": {"id": 753}, "assignee": {"id": 800}, "organization": {"id": 973}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "owner": {"id": 29}, "assignee": {"id": 578}, "organization": {"id": 679}, "project": {"owner": {"id": 747}, "assignee": {"id": 846}, "organization": {"id": 912}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 330, "owner": {"id": 66}, "assignee": {"id": 572}, "organization": {"id": 198}, "project": {"owner": {"id": 754}, "assignee": {"id": 898}, "organization": {"id": 969}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 324, "owner": {"id": 1}, "assignee": {"id": 576}, "organization": {"id": 637}, "project": {"owner": {"id": 712}, "assignee": {"id": 818}, "organization": {"id": 928}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 59}, "assignee": {"id": 597}, "organization": {"id": 192}, "project": {"owner": {"id": 738}, "assignee": {"id": 840}, "organization": {"id": 931}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 304, "owner": {"id": 52}, "assignee": {"id": 550}, "organization": {"id": 632}, "project": {"owner": {"id": 719}, "assignee": {"id": 817}, "organization": {"id": 946}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 19, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 399, "owner": {"id": 19}, "assignee": {"id": 508}, "organization": {"id": 108}, "project": {"owner": {"id": 703}, "assignee": {"id": 825}, "organization": {"id": 914}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 239}, "user": {"role": null}}}, "resource": {"id": 379, "owner": {"id": 69}, "assignee": {"id": 538}, "organization": {"id": 633}, "project": {"owner": {"id": 716}, "assignee": {"id": 894}, "organization": {"id": 924}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 34}, "assignee": {"id": 507}, "organization": {"id": 113}, "project": {"owner": {"id": 717}, "assignee": {"id": 861}, "organization": {"id": 991}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 117, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 72}, "assignee": {"id": 532}, "organization": {"id": 623}, "project": {"owner": {"id": 719}, "assignee": {"id": 846}, "organization": {"id": 947}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 38}, "assignee": {"id": 579}, "organization": {"id": 135}, "project": {"owner": {"id": 780}, "assignee": {"id": 801}, "organization": {"id": 960}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 385, "owner": {"id": 77}, "assignee": {"id": 537}, "organization": {"id": 686}, "project": {"owner": {"id": 766}, "assignee": {"id": 849}, "organization": {"id": 920}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 362, "owner": {"id": 41}, "assignee": {"id": 524}, "organization": {"id": 124}, "project": {"owner": {"id": 781}, "assignee": {"id": 864}, "organization": {"id": 936}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 80}, "assignee": {"id": 521}, "organization": {"id": 697}, "project": {"owner": {"id": 773}, "assignee": {"id": 894}, "organization": {"id": 915}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 307, "owner": {"id": 3}, "assignee": {"id": 589}, "organization": {"id": 194}, "project": {"owner": {"id": 788}, "assignee": {"id": 898}, "organization": {"id": 996}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 371, "owner": {"id": 57}, "assignee": {"id": 528}, "organization": {"id": 694}, "project": {"owner": {"id": 754}, "assignee": {"id": 869}, "organization": {"id": 993}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 360, "owner": {"id": 33}, "assignee": {"id": 509}, "organization": {"id": 182}, "project": {"owner": {"id": 788}, "assignee": {"id": 811}, "organization": {"id": 968}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 231}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 32}, "assignee": {"id": 533}, "organization": {"id": 605}, "project": {"owner": {"id": 707}, "assignee": {"id": 807}, "organization": {"id": 940}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 382, "owner": {"id": 53}, "assignee": {"id": 585}, "organization": {"id": 138}, "project": {"owner": {"id": 716}, "assignee": {"id": 820}, "organization": {"id": 991}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 323, "owner": {"id": 39}, "assignee": {"id": 519}, "organization": {"id": 656}, "project": {"owner": {"id": 721}, "assignee": {"id": 838}, "organization": {"id": 981}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 26, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "owner": {"id": 26}, "assignee": {"id": 545}, "organization": {"id": 138}, "project": {"owner": {"id": 728}, "assignee": {"id": 864}, "organization": {"id": 973}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 354, "owner": {"id": 90}, "assignee": {"id": 535}, "organization": {"id": 679}, "project": {"owner": {"id": 774}, "assignee": {"id": 841}, "organization": {"id": 923}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 340, "owner": {"id": 99}, "assignee": {"id": 593}, "organization": {"id": 123}, "project": {"owner": {"id": 760}, "assignee": {"id": 882}, "organization": {"id": 937}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "owner": {"id": 70}, "assignee": {"id": 597}, "organization": {"id": 656}, "project": {"owner": {"id": 708}, "assignee": {"id": 848}, "organization": {"id": 936}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 397, "owner": {"id": 86}, "assignee": {"id": 515}, "organization": {"id": 151}, "project": {"owner": {"id": 745}, "assignee": {"id": 836}, "organization": {"id": 992}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 45}, "assignee": {"id": 541}, "organization": {"id": 643}, "project": {"owner": {"id": 729}, "assignee": {"id": 864}, "organization": {"id": 946}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 297}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 67}, "assignee": {"id": 573}, "organization": {"id": 172}, "project": {"owner": {"id": 712}, "assignee": {"id": 893}, "organization": {"id": 981}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 307, "owner": {"id": 35}, "assignee": {"id": 534}, "organization": {"id": 660}, "project": {"owner": {"id": 758}, "assignee": {"id": 887}, "organization": {"id": 932}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 444}, "assignee": {"id": 97}, "organization": {"id": 198}, "project": {"owner": {"id": 727}, "assignee": {"id": 890}, "organization": {"id": 977}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 315, "owner": {"id": 496}, "assignee": {"id": 18}, "organization": {"id": 628}, "project": {"owner": {"id": 706}, "assignee": {"id": 868}, "organization": {"id": 926}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 323, "owner": {"id": 413}, "assignee": {"id": 57}, "organization": {"id": 153}, "project": {"owner": {"id": 712}, "assignee": {"id": 897}, "organization": {"id": 982}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "owner": {"id": 411}, "assignee": {"id": 12}, "organization": {"id": 673}, "project": {"owner": {"id": 758}, "assignee": {"id": 826}, "organization": {"id": 986}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 481}, "assignee": {"id": 27}, "organization": {"id": 112}, "project": {"owner": {"id": 766}, "assignee": {"id": 881}, "organization": {"id": 931}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 7, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "owner": {"id": 441}, "assignee": {"id": 7}, "organization": {"id": 683}, "project": {"owner": {"id": 764}, "assignee": {"id": 812}, "organization": {"id": 900}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 109, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 397, "owner": {"id": 478}, "assignee": {"id": 61}, "organization": {"id": 109}, "project": {"owner": {"id": 784}, "assignee": {"id": 883}, "organization": {"id": 968}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 71, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 345, "owner": {"id": 432}, "assignee": {"id": 71}, "organization": {"id": 637}, "project": {"owner": {"id": 704}, "assignee": {"id": 835}, "organization": {"id": 931}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 369, "owner": {"id": 448}, "assignee": {"id": 9}, "organization": {"id": 140}, "project": {"owner": {"id": 742}, "assignee": {"id": 866}, "organization": {"id": 983}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 379, "owner": {"id": 431}, "assignee": {"id": 30}, "organization": {"id": 619}, "project": {"owner": {"id": 718}, "assignee": {"id": 830}, "organization": {"id": 998}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 349, "owner": {"id": 435}, "assignee": {"id": 72}, "organization": {"id": 187}, "project": {"owner": {"id": 773}, "assignee": {"id": 844}, "organization": {"id": 934}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 446}, "assignee": {"id": 38}, "organization": {"id": 672}, "project": {"owner": {"id": 718}, "assignee": {"id": 801}, "organization": {"id": 946}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "owner": {"id": 446}, "assignee": {"id": 59}, "organization": {"id": 176}, "project": {"owner": {"id": 727}, "assignee": {"id": 819}, "organization": {"id": 947}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 161, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 423}, "assignee": {"id": 61}, "organization": {"id": 682}, "project": {"owner": {"id": 779}, "assignee": {"id": 887}, "organization": {"id": 907}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "owner": {"id": 477}, "assignee": {"id": 5}, "organization": {"id": 177}, "project": {"owner": {"id": 723}, "assignee": {"id": 826}, "organization": {"id": 916}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 451}, "assignee": {"id": 4}, "organization": {"id": 618}, "project": {"owner": {"id": 757}, "assignee": {"id": 817}, "organization": {"id": 943}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 308, "owner": {"id": 417}, "assignee": {"id": 5}, "organization": {"id": 160}, "project": {"owner": {"id": 701}, "assignee": {"id": 870}, "organization": {"id": 936}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 366, "owner": {"id": 465}, "assignee": {"id": 86}, "organization": {"id": 616}, "project": {"owner": {"id": 718}, "assignee": {"id": 861}, "organization": {"id": 916}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 341, "owner": {"id": 475}, "assignee": {"id": 42}, "organization": {"id": 164}, "project": {"owner": {"id": 708}, "assignee": {"id": 863}, "organization": {"id": 965}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 484}, "assignee": {"id": 29}, "organization": {"id": 626}, "project": {"owner": {"id": 734}, "assignee": {"id": 806}, "organization": {"id": 944}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 361, "owner": {"id": 488}, "assignee": {"id": 24}, "organization": {"id": 161}, "project": {"owner": {"id": 758}, "assignee": {"id": 801}, "organization": {"id": 986}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 324, "owner": {"id": 456}, "assignee": {"id": 5}, "organization": {"id": 651}, "project": {"owner": {"id": 760}, "assignee": {"id": 818}, "organization": {"id": 971}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 356, "owner": {"id": 415}, "assignee": {"id": 87}, "organization": {"id": 151}, "project": {"owner": {"id": 773}, "assignee": {"id": 873}, "organization": {"id": 932}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "owner": {"id": 404}, "assignee": {"id": 67}, "organization": {"id": 623}, "project": {"owner": {"id": 724}, "assignee": {"id": 843}, "organization": {"id": 961}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 4, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "owner": {"id": 481}, "assignee": {"id": 4}, "organization": {"id": 169}, "project": {"owner": {"id": 778}, "assignee": {"id": 894}, "organization": {"id": 959}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 406}, "assignee": {"id": 47}, "organization": {"id": 619}, "project": {"owner": {"id": 748}, "assignee": {"id": 818}, "organization": {"id": 979}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 439}, "assignee": {"id": 62}, "organization": {"id": 156}, "project": {"owner": {"id": 734}, "assignee": {"id": 868}, "organization": {"id": 960}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 337, "owner": {"id": 443}, "assignee": {"id": 64}, "organization": {"id": 693}, "project": {"owner": {"id": 772}, "assignee": {"id": 835}, "organization": {"id": 915}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 465}, "assignee": {"id": 67}, "organization": {"id": 167}, "project": {"owner": {"id": 700}, "assignee": {"id": 869}, "organization": {"id": 974}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 395, "owner": {"id": 407}, "assignee": {"id": 56}, "organization": {"id": 697}, "project": {"owner": {"id": 724}, "assignee": {"id": 821}, "organization": {"id": 902}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 336, "owner": {"id": 437}, "assignee": {"id": 45}, "organization": {"id": 145}, "project": {"owner": {"id": 797}, "assignee": {"id": 808}, "organization": {"id": 960}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 490}, "assignee": {"id": 97}, "organization": {"id": 676}, "project": {"owner": {"id": 708}, "assignee": {"id": 880}, "organization": {"id": 923}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "owner": {"id": 441}, "assignee": {"id": 69}, "organization": {"id": 173}, "project": {"owner": {"id": 797}, "assignee": {"id": 824}, "organization": {"id": 906}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "owner": {"id": 425}, "assignee": {"id": 22}, "organization": {"id": 660}, "project": {"owner": {"id": 752}, "assignee": {"id": 806}, "organization": {"id": 984}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 407}, "assignee": {"id": 43}, "organization": {"id": 164}, "project": {"owner": {"id": 717}, "assignee": {"id": 814}, "organization": {"id": 982}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 480}, "assignee": {"id": 79}, "organization": {"id": 626}, "project": {"owner": {"id": 705}, "assignee": {"id": 825}, "organization": {"id": 990}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 80, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 467}, "assignee": {"id": 80}, "organization": {"id": 149}, "project": {"owner": {"id": 759}, "assignee": {"id": 834}, "organization": {"id": 928}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 337, "owner": {"id": 464}, "assignee": {"id": 30}, "organization": {"id": 679}, "project": {"owner": {"id": 767}, "assignee": {"id": 866}, "organization": {"id": 930}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 394, "owner": {"id": 470}, "assignee": {"id": 40}, "organization": {"id": 100}, "project": {"owner": {"id": 714}, "assignee": {"id": 856}, "organization": {"id": 993}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 266}, "user": {"role": null}}}, "resource": {"id": 305, "owner": {"id": 488}, "assignee": {"id": 68}, "organization": {"id": 637}, "project": {"owner": {"id": 791}, "assignee": {"id": 859}, "organization": {"id": 908}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 486}, "assignee": {"id": 88}, "organization": {"id": 144}, "project": {"owner": {"id": 786}, "assignee": {"id": 879}, "organization": {"id": 982}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 329, "owner": {"id": 410}, "assignee": {"id": 72}, "organization": {"id": 615}, "project": {"owner": {"id": 798}, "assignee": {"id": 835}, "organization": {"id": 920}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "owner": {"id": 499}, "assignee": {"id": 93}, "organization": {"id": 149}, "project": {"owner": {"id": 732}, "assignee": {"id": 850}, "organization": {"id": 970}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 95, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 326, "owner": {"id": 468}, "assignee": {"id": 95}, "organization": {"id": 637}, "project": {"owner": {"id": 749}, "assignee": {"id": 809}, "organization": {"id": 907}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "owner": {"id": 496}, "assignee": {"id": 32}, "organization": {"id": 179}, "project": {"owner": {"id": 757}, "assignee": {"id": 858}, "organization": {"id": 976}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 454}, "assignee": {"id": 65}, "organization": {"id": 640}, "project": {"owner": {"id": 765}, "assignee": {"id": 878}, "organization": {"id": 970}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 408}, "assignee": {"id": 37}, "organization": {"id": 179}, "project": {"owner": {"id": 718}, "assignee": {"id": 861}, "organization": {"id": 904}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 336, "owner": {"id": 482}, "assignee": {"id": 16}, "organization": {"id": 666}, "project": {"owner": {"id": 797}, "assignee": {"id": 846}, "organization": {"id": 953}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 326, "owner": {"id": 468}, "assignee": {"id": 22}, "organization": {"id": 174}, "project": {"owner": {"id": 714}, "assignee": {"id": 851}, "organization": {"id": 963}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 304, "owner": {"id": 430}, "assignee": {"id": 62}, "organization": {"id": 617}, "project": {"owner": {"id": 787}, "assignee": {"id": 839}, "organization": {"id": 982}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 111, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 384, "owner": {"id": 474}, "assignee": {"id": 584}, "organization": {"id": 111}, "project": {"owner": {"id": 715}, "assignee": {"id": 892}, "organization": {"id": 978}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 306, "owner": {"id": 462}, "assignee": {"id": 538}, "organization": {"id": 641}, "project": {"owner": {"id": 746}, "assignee": {"id": 818}, "organization": {"id": 976}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "owner": {"id": 444}, "assignee": {"id": 578}, "organization": {"id": 182}, "project": {"owner": {"id": 781}, "assignee": {"id": 802}, "organization": {"id": 946}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "owner": {"id": 425}, "assignee": {"id": 574}, "organization": {"id": 687}, "project": {"owner": {"id": 716}, "assignee": {"id": 884}, "organization": {"id": 919}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "owner": {"id": 426}, "assignee": {"id": 506}, "organization": {"id": 163}, "project": {"owner": {"id": 764}, "assignee": {"id": 896}, "organization": {"id": 929}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 251}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "owner": {"id": 452}, "assignee": {"id": 533}, "organization": {"id": 618}, "project": {"owner": {"id": 793}, "assignee": {"id": 877}, "organization": {"id": 935}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 312, "owner": {"id": 418}, "assignee": {"id": 580}, "organization": {"id": 184}, "project": {"owner": {"id": 782}, "assignee": {"id": 862}, "organization": {"id": 978}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 315, "owner": {"id": 488}, "assignee": {"id": 521}, "organization": {"id": 624}, "project": {"owner": {"id": 724}, "assignee": {"id": 815}, "organization": {"id": 987}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 469}, "assignee": {"id": 591}, "organization": {"id": 186}, "project": {"owner": {"id": 776}, "assignee": {"id": 823}, "organization": {"id": 986}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 193, "owner": {"id": 212}, "user": {"role": null}}}, "resource": {"id": 351, "owner": {"id": 430}, "assignee": {"id": 586}, "organization": {"id": 610}, "project": {"owner": {"id": 711}, "assignee": {"id": 837}, "organization": {"id": 902}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 20}, "user": {"role": "owner"}}}, "resource": {"id": 344, "owner": {"id": 426}, "assignee": {"id": 506}, "organization": {"id": 158}, "project": {"owner": {"id": 701}, "assignee": {"id": 836}, "organization": {"id": 907}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 309, "owner": {"id": 459}, "assignee": {"id": 562}, "organization": {"id": 669}, "project": {"owner": {"id": 712}, "assignee": {"id": 821}, "organization": {"id": 988}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 297}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "owner": {"id": 416}, "assignee": {"id": 528}, "organization": {"id": 118}, "project": {"owner": {"id": 747}, "assignee": {"id": 832}, "organization": {"id": 917}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 393, "owner": {"id": 426}, "assignee": {"id": 585}, "organization": {"id": 684}, "project": {"owner": {"id": 710}, "assignee": {"id": 895}, "organization": {"id": 961}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "owner": {"id": 449}, "assignee": {"id": 522}, "organization": {"id": 153}, "project": {"owner": {"id": 793}, "assignee": {"id": 835}, "organization": {"id": 920}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 383, "owner": {"id": 455}, "assignee": {"id": 543}, "organization": {"id": 656}, "project": {"owner": {"id": 702}, "assignee": {"id": 861}, "organization": {"id": 954}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 332, "owner": {"id": 415}, "assignee": {"id": 552}, "organization": {"id": 108}, "project": {"owner": {"id": 740}, "assignee": {"id": 807}, "organization": {"id": 986}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 323, "owner": {"id": 410}, "assignee": {"id": 502}, "organization": {"id": 648}, "project": {"owner": {"id": 783}, "assignee": {"id": 815}, "organization": {"id": 915}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 103, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 395, "owner": {"id": 449}, "assignee": {"id": 536}, "organization": {"id": 103}, "project": {"owner": {"id": 743}, "assignee": {"id": 864}, "organization": {"id": 923}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 32, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 373, "owner": {"id": 432}, "assignee": {"id": 596}, "organization": {"id": 608}, "project": {"owner": {"id": 788}, "assignee": {"id": 816}, "organization": {"id": 934}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 100, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 348, "owner": {"id": 412}, "assignee": {"id": 576}, "organization": {"id": 100}, "project": {"owner": {"id": 752}, "assignee": {"id": 842}, "organization": {"id": 931}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 130, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"id": 319, "owner": {"id": 427}, "assignee": {"id": 595}, "organization": {"id": 665}, "project": {"owner": {"id": 785}, "assignee": {"id": 860}, "organization": {"id": 977}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 428}, "assignee": {"id": 521}, "organization": {"id": 156}, "project": {"owner": {"id": 794}, "assignee": {"id": 831}, "organization": {"id": 991}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 18, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 303, "owner": {"id": 476}, "assignee": {"id": 570}, "organization": {"id": 672}, "project": {"owner": {"id": 747}, "assignee": {"id": 826}, "organization": {"id": 938}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 164, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 399, "owner": {"id": 408}, "assignee": {"id": 563}, "organization": {"id": 164}, "project": {"owner": {"id": 715}, "assignee": {"id": 824}, "organization": {"id": 990}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "owner": {"id": 486}, "assignee": {"id": 520}, "organization": {"id": 615}, "project": {"owner": {"id": 747}, "assignee": {"id": 847}, "organization": {"id": 997}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 371, "owner": {"id": 473}, "assignee": {"id": 579}, "organization": {"id": 115}, "project": {"owner": {"id": 700}, "assignee": {"id": 896}, "organization": {"id": 964}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 301, "owner": {"id": 497}, "assignee": {"id": 513}, "organization": {"id": 651}, "project": {"owner": {"id": 711}, "assignee": {"id": 871}, "organization": {"id": 966}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 16, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 396, "owner": {"id": 408}, "assignee": {"id": 513}, "organization": {"id": 149}, "project": {"owner": {"id": 723}, "assignee": {"id": 808}, "organization": {"id": 984}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 475}, "assignee": {"id": 585}, "organization": {"id": 689}, "project": {"owner": {"id": 781}, "assignee": {"id": 800}, "organization": {"id": 954}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 390, "owner": {"id": 417}, "assignee": {"id": 592}, "organization": {"id": 153}, "project": {"owner": {"id": 799}, "assignee": {"id": 849}, "organization": {"id": 960}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 376, "owner": {"id": 460}, "assignee": {"id": 556}, "organization": {"id": 665}, "project": {"owner": {"id": 703}, "assignee": {"id": 824}, "organization": {"id": 936}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "owner": {"id": 429}, "assignee": {"id": 592}, "organization": {"id": 130}, "project": {"owner": {"id": 727}, "assignee": {"id": 889}, "organization": {"id": 938}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 138, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 346, "owner": {"id": 456}, "assignee": {"id": 539}, "organization": {"id": 673}, "project": {"owner": {"id": 703}, "assignee": {"id": 869}, "organization": {"id": 943}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 310, "owner": {"id": 462}, "assignee": {"id": 556}, "organization": {"id": 166}, "project": {"owner": {"id": 740}, "assignee": {"id": 842}, "organization": {"id": 952}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 33, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 388, "owner": {"id": 448}, "assignee": {"id": 532}, "organization": {"id": 630}, "project": {"owner": {"id": 719}, "assignee": {"id": 819}, "organization": {"id": 991}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 375, "owner": {"id": 449}, "assignee": {"id": 529}, "organization": {"id": 168}, "project": {"owner": {"id": 768}, "assignee": {"id": 881}, "organization": {"id": 912}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 378, "owner": {"id": 453}, "assignee": {"id": 500}, "organization": {"id": 675}, "project": {"owner": {"id": 778}, "assignee": {"id": 825}, "organization": {"id": 990}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 202}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 425}, "assignee": {"id": 532}, "organization": {"id": 120}, "project": {"owner": {"id": 706}, "assignee": {"id": 876}, "organization": {"id": 919}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 257}, "user": {"role": null}}}, "resource": {"id": 336, "owner": {"id": 465}, "assignee": {"id": 517}, "organization": {"id": 632}, "project": {"owner": {"id": 702}, "assignee": {"id": 814}, "organization": {"id": 944}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 426}, "assignee": {"id": 569}, "organization": {"id": 178}, "project": {"owner": {"id": 706}, "assignee": {"id": 808}, "organization": {"id": 984}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 61, "privilege": "none"}, "organization": {"id": 112, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 330, "owner": {"id": 494}, "assignee": {"id": 526}, "organization": {"id": 688}, "project": {"owner": {"id": 780}, "assignee": {"id": 823}, "organization": {"id": 936}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "owner": {"id": 420}, "assignee": {"id": 543}, "organization": {"id": 190}, "project": {"owner": {"id": 774}, "assignee": {"id": 878}, "organization": {"id": 977}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 398, "owner": {"id": 460}, "assignee": {"id": 529}, "organization": {"id": 678}, "project": {"owner": {"id": 707}, "assignee": {"id": 824}, "organization": {"id": 913}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "owner": {"id": 499}, "assignee": {"id": 522}, "organization": {"id": 165}, "project": {"owner": {"id": 713}, "assignee": {"id": 869}, "organization": {"id": 999}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 382, "owner": {"id": 468}, "assignee": {"id": 532}, "organization": {"id": 604}, "project": {"owner": {"id": 758}, "assignee": {"id": 830}, "organization": {"id": 937}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 302, "owner": {"id": 487}, "assignee": {"id": 570}, "organization": {"id": 135}, "project": {"owner": {"id": 780}, "assignee": {"id": 857}, "organization": {"id": 989}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 187, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"id": 379, "owner": {"id": 496}, "assignee": {"id": 566}, "organization": {"id": 690}, "project": {"owner": {"id": 755}, "assignee": {"id": 890}, "organization": {"id": 959}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 376, "owner": {"id": 460}, "assignee": {"id": 507}, "organization": {"id": 136}, "project": {"owner": {"id": 742}, "assignee": {"id": 891}, "organization": {"id": 988}}}} -} - -test_scope_EXPORT_ANNOTATIONS_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "export:annotations", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 417}, "assignee": {"id": 584}, "organization": {"id": 680}, "project": {"owner": {"id": 763}, "assignee": {"id": 805}, "organization": {"id": 979}}}} -} - -test_scope_UPDATE_OWNER_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": null}, "resource": {"id": 307, "owner": {"id": 456}, "assignee": {"id": 524}, "organization": {"id": 649}, "project": {"owner": {"id": 52}, "assignee": {"id": 822}, "organization": {"id": 906}}}} -} - -test_scope_UPDATE_OWNER_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": null}, "resource": {"id": 326, "owner": {"id": 467}, "assignee": {"id": 558}, "organization": {"id": 620}, "project": {"owner": {"id": 60}, "assignee": {"id": 857}, "organization": {"id": 901}}}} -} - -test_scope_UPDATE_OWNER_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": null}, "resource": {"id": 327, "owner": {"id": 497}, "assignee": {"id": 564}, "organization": {"id": 633}, "project": {"owner": {"id": 70}, "assignee": {"id": 807}, "organization": {"id": 947}}}} -} - -test_scope_UPDATE_OWNER_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": null}, "resource": {"id": 370, "owner": {"id": 420}, "assignee": {"id": 578}, "organization": {"id": 680}, "project": {"owner": {"id": 88}, "assignee": {"id": 867}, "organization": {"id": 977}}}} -} - -test_scope_UPDATE_OWNER_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": null}, "resource": {"id": 330, "owner": {"id": 465}, "assignee": {"id": 502}, "organization": {"id": 632}, "project": {"owner": {"id": 14}, "assignee": {"id": 857}, "organization": {"id": 905}}}} -} - -test_scope_UPDATE_OWNER_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": null}, "resource": {"id": 360, "owner": {"id": 401}, "assignee": {"id": 578}, "organization": {"id": 639}, "project": {"owner": {"id": 710}, "assignee": {"id": 74}, "organization": {"id": 996}}}} -} - -test_scope_UPDATE_OWNER_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": null}, "resource": {"id": 358, "owner": {"id": 438}, "assignee": {"id": 584}, "organization": {"id": 641}, "project": {"owner": {"id": 731}, "assignee": {"id": 78}, "organization": {"id": 928}}}} -} - -test_scope_UPDATE_OWNER_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": null}, "resource": {"id": 322, "owner": {"id": 409}, "assignee": {"id": 596}, "organization": {"id": 614}, "project": {"owner": {"id": 790}, "assignee": {"id": 99}, "organization": {"id": 983}}}} -} - -test_scope_UPDATE_OWNER_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": null}, "resource": {"id": 335, "owner": {"id": 459}, "assignee": {"id": 501}, "organization": {"id": 633}, "project": {"owner": {"id": 720}, "assignee": {"id": 64}, "organization": {"id": 937}}}} -} - -test_scope_UPDATE_OWNER_context_SANDBOX_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": null}, "resource": {"id": 317, "owner": {"id": 401}, "assignee": {"id": 566}, "organization": {"id": 694}, "project": {"owner": {"id": 776}, "assignee": {"id": 74}, "organization": {"id": 958}}}} -} - -test_scope_UPDATE_OWNER_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": null}, "resource": {"id": 315, "owner": {"id": 39}, "assignee": {"id": 576}, "organization": {"id": 658}, "project": {"owner": {"id": 793}, "assignee": {"id": 807}, "organization": {"id": 985}}}} -} - -test_scope_UPDATE_OWNER_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": null}, "resource": {"id": 316, "owner": {"id": 60}, "assignee": {"id": 564}, "organization": {"id": 612}, "project": {"owner": {"id": 743}, "assignee": {"id": 898}, "organization": {"id": 936}}}} -} - -test_scope_UPDATE_OWNER_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": null}, "resource": {"id": 360, "owner": {"id": 3}, "assignee": {"id": 586}, "organization": {"id": 623}, "project": {"owner": {"id": 786}, "assignee": {"id": 894}, "organization": {"id": 955}}}} -} - -test_scope_UPDATE_OWNER_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": null}, "resource": {"id": 337, "owner": {"id": 83}, "assignee": {"id": 594}, "organization": {"id": 627}, "project": {"owner": {"id": 770}, "assignee": {"id": 806}, "organization": {"id": 997}}}} -} - -test_scope_UPDATE_OWNER_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": null}, "resource": {"id": 302, "owner": {"id": 54}, "assignee": {"id": 555}, "organization": {"id": 691}, "project": {"owner": {"id": 741}, "assignee": {"id": 857}, "organization": {"id": 909}}}} -} - -test_scope_UPDATE_OWNER_context_SANDBOX_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": null}, "resource": {"id": 306, "owner": {"id": 489}, "assignee": {"id": 31}, "organization": {"id": 621}, "project": {"owner": {"id": 749}, "assignee": {"id": 852}, "organization": {"id": 977}}}} -} - -test_scope_UPDATE_OWNER_context_SANDBOX_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": null}, "resource": {"id": 308, "owner": {"id": 476}, "assignee": {"id": 70}, "organization": {"id": 681}, "project": {"owner": {"id": 758}, "assignee": {"id": 862}, "organization": {"id": 921}}}} -} - -test_scope_UPDATE_OWNER_context_SANDBOX_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": null}, "resource": {"id": 388, "owner": {"id": 434}, "assignee": {"id": 21}, "organization": {"id": 656}, "project": {"owner": {"id": 794}, "assignee": {"id": 848}, "organization": {"id": 995}}}} -} - -test_scope_UPDATE_OWNER_context_SANDBOX_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": null}, "resource": {"id": 390, "owner": {"id": 434}, "assignee": {"id": 25}, "organization": {"id": 661}, "project": {"owner": {"id": 760}, "assignee": {"id": 877}, "organization": {"id": 928}}}} -} - -test_scope_UPDATE_OWNER_context_SANDBOX_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": null}, "resource": {"id": 374, "owner": {"id": 485}, "assignee": {"id": 38}, "organization": {"id": 661}, "project": {"owner": {"id": 798}, "assignee": {"id": 824}, "organization": {"id": 964}}}} -} - -test_scope_UPDATE_OWNER_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 1, "privilege": "admin"}, "organization": null}, "resource": {"id": 361, "owner": {"id": 497}, "assignee": {"id": 547}, "organization": {"id": 661}, "project": {"owner": {"id": 772}, "assignee": {"id": 868}, "organization": {"id": 970}}}} -} - -test_scope_UPDATE_OWNER_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": null}, "resource": {"id": 381, "owner": {"id": 417}, "assignee": {"id": 557}, "organization": {"id": 671}, "project": {"owner": {"id": 702}, "assignee": {"id": 805}, "organization": {"id": 993}}}} -} - -test_scope_UPDATE_OWNER_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": null}, "resource": {"id": 312, "owner": {"id": 469}, "assignee": {"id": 583}, "organization": {"id": 674}, "project": {"owner": {"id": 722}, "assignee": {"id": 859}, "organization": {"id": 966}}}} -} - -test_scope_UPDATE_OWNER_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": null}, "resource": {"id": 338, "owner": {"id": 415}, "assignee": {"id": 594}, "organization": {"id": 600}, "project": {"owner": {"id": 720}, "assignee": {"id": 818}, "organization": {"id": 906}}}} -} - -test_scope_UPDATE_OWNER_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": null}, "resource": {"id": 323, "owner": {"id": 431}, "assignee": {"id": 517}, "organization": {"id": 694}, "project": {"owner": {"id": 724}, "assignee": {"id": 855}, "organization": {"id": 962}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 108, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 306, "owner": {"id": 410}, "assignee": {"id": 596}, "organization": {"id": 108}, "project": {"owner": {"id": 15}, "assignee": {"id": 861}, "organization": {"id": 927}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 114, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 398, "owner": {"id": 421}, "assignee": {"id": 502}, "organization": {"id": 693}, "project": {"owner": {"id": 22}, "assignee": {"id": 859}, "organization": {"id": 921}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 276}, "user": {"role": "maintainer"}}}, "resource": {"id": 330, "owner": {"id": 408}, "assignee": {"id": 562}, "organization": {"id": 179}, "project": {"owner": {"id": 12}, "assignee": {"id": 886}, "organization": {"id": 980}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "owner": {"id": 470}, "assignee": {"id": 572}, "organization": {"id": 616}, "project": {"owner": {"id": 28}, "assignee": {"id": 857}, "organization": {"id": 931}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "owner": {"id": 491}, "assignee": {"id": 542}, "organization": {"id": 155}, "project": {"owner": {"id": 37}, "assignee": {"id": 831}, "organization": {"id": 940}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 431}, "assignee": {"id": 517}, "organization": {"id": 649}, "project": {"owner": {"id": 32}, "assignee": {"id": 854}, "organization": {"id": 917}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 475}, "assignee": {"id": 595}, "organization": {"id": 157}, "project": {"owner": {"id": 2}, "assignee": {"id": 828}, "organization": {"id": 975}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 316, "owner": {"id": 484}, "assignee": {"id": 549}, "organization": {"id": 654}, "project": {"owner": {"id": 80}, "assignee": {"id": 826}, "organization": {"id": 964}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 322, "owner": {"id": 418}, "assignee": {"id": 567}, "organization": {"id": 160}, "project": {"owner": {"id": 82}, "assignee": {"id": 823}, "organization": {"id": 928}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 380, "owner": {"id": 499}, "assignee": {"id": 596}, "organization": {"id": 686}, "project": {"owner": {"id": 79}, "assignee": {"id": 852}, "organization": {"id": 902}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 325, "owner": {"id": 409}, "assignee": {"id": 536}, "organization": {"id": 131}, "project": {"owner": {"id": 88}, "assignee": {"id": 885}, "organization": {"id": 931}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 314, "owner": {"id": 420}, "assignee": {"id": 529}, "organization": {"id": 675}, "project": {"owner": {"id": 11}, "assignee": {"id": 825}, "organization": {"id": 970}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 144, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 332, "owner": {"id": 443}, "assignee": {"id": 580}, "organization": {"id": 144}, "project": {"owner": {"id": 56}, "assignee": {"id": 883}, "organization": {"id": 974}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "owner": {"id": 487}, "assignee": {"id": 543}, "organization": {"id": 620}, "project": {"owner": {"id": 87}, "assignee": {"id": 898}, "organization": {"id": 967}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 373, "owner": {"id": 456}, "assignee": {"id": 519}, "organization": {"id": 191}, "project": {"owner": {"id": 58}, "assignee": {"id": 898}, "organization": {"id": 948}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 328, "owner": {"id": 418}, "assignee": {"id": 517}, "organization": {"id": 687}, "project": {"owner": {"id": 90}, "assignee": {"id": 828}, "organization": {"id": 957}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 229}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 402}, "assignee": {"id": 530}, "organization": {"id": 137}, "project": {"owner": {"id": 39}, "assignee": {"id": 839}, "organization": {"id": 950}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 377, "owner": {"id": 401}, "assignee": {"id": 589}, "organization": {"id": 610}, "project": {"owner": {"id": 28}, "assignee": {"id": 886}, "organization": {"id": 929}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 105, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 371, "owner": {"id": 428}, "assignee": {"id": 524}, "organization": {"id": 105}, "project": {"owner": {"id": 46}, "assignee": {"id": 885}, "organization": {"id": 954}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 301, "owner": {"id": 415}, "assignee": {"id": 522}, "organization": {"id": 667}, "project": {"owner": {"id": 83}, "assignee": {"id": 864}, "organization": {"id": 939}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 328, "owner": {"id": 481}, "assignee": {"id": 549}, "organization": {"id": 186}, "project": {"owner": {"id": 31}, "assignee": {"id": 876}, "organization": {"id": 907}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 397, "owner": {"id": 407}, "assignee": {"id": 549}, "organization": {"id": 659}, "project": {"owner": {"id": 83}, "assignee": {"id": 875}, "organization": {"id": 908}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 250}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 471}, "assignee": {"id": 594}, "organization": {"id": 144}, "project": {"owner": {"id": 49}, "assignee": {"id": 880}, "organization": {"id": 903}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "owner": {"id": 418}, "assignee": {"id": 514}, "organization": {"id": 686}, "project": {"owner": {"id": 17}, "assignee": {"id": 839}, "organization": {"id": 960}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "owner": {"id": 427}, "assignee": {"id": 538}, "organization": {"id": 156}, "project": {"owner": {"id": 91}, "assignee": {"id": 869}, "organization": {"id": 969}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 319, "owner": {"id": 461}, "assignee": {"id": 599}, "organization": {"id": 643}, "project": {"owner": {"id": 53}, "assignee": {"id": 825}, "organization": {"id": 970}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"id": 376, "owner": {"id": 488}, "assignee": {"id": 562}, "organization": {"id": 138}, "project": {"owner": {"id": 93}, "assignee": {"id": 856}, "organization": {"id": 926}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 316, "owner": {"id": 413}, "assignee": {"id": 568}, "organization": {"id": 602}, "project": {"owner": {"id": 78}, "assignee": {"id": 896}, "organization": {"id": 965}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 298}, "user": {"role": null}}}, "resource": {"id": 313, "owner": {"id": 450}, "assignee": {"id": 577}, "organization": {"id": 173}, "project": {"owner": {"id": 63}, "assignee": {"id": 825}, "organization": {"id": 992}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 203}, "user": {"role": null}}}, "resource": {"id": 375, "owner": {"id": 495}, "assignee": {"id": 547}, "organization": {"id": 631}, "project": {"owner": {"id": 87}, "assignee": {"id": 838}, "organization": {"id": 917}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 342, "owner": {"id": 452}, "assignee": {"id": 551}, "organization": {"id": 121}, "project": {"owner": {"id": 45}, "assignee": {"id": 858}, "organization": {"id": 928}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 357, "owner": {"id": 440}, "assignee": {"id": 549}, "organization": {"id": 645}, "project": {"owner": {"id": 86}, "assignee": {"id": 879}, "organization": {"id": 996}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 300, "owner": {"id": 447}, "assignee": {"id": 531}, "organization": {"id": 101}, "project": {"owner": {"id": 15}, "assignee": {"id": 824}, "organization": {"id": 950}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 480}, "assignee": {"id": 555}, "organization": {"id": 680}, "project": {"owner": {"id": 13}, "assignee": {"id": 893}, "organization": {"id": 942}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 312, "owner": {"id": 472}, "assignee": {"id": 591}, "organization": {"id": 171}, "project": {"owner": {"id": 79}, "assignee": {"id": 800}, "organization": {"id": 905}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 360, "owner": {"id": 421}, "assignee": {"id": 550}, "organization": {"id": 634}, "project": {"owner": {"id": 13}, "assignee": {"id": 818}, "organization": {"id": 957}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 233}, "user": {"role": "worker"}}}, "resource": {"id": 344, "owner": {"id": 416}, "assignee": {"id": 501}, "organization": {"id": 142}, "project": {"owner": {"id": 93}, "assignee": {"id": 831}, "organization": {"id": 997}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 310, "owner": {"id": 447}, "assignee": {"id": 563}, "organization": {"id": 693}, "project": {"owner": {"id": 63}, "assignee": {"id": 830}, "organization": {"id": 974}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"id": 332, "owner": {"id": 459}, "assignee": {"id": 536}, "organization": {"id": 112}, "project": {"owner": {"id": 75}, "assignee": {"id": 841}, "organization": {"id": 969}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 141, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 374, "owner": {"id": 490}, "assignee": {"id": 540}, "organization": {"id": 678}, "project": {"owner": {"id": 54}, "assignee": {"id": 896}, "organization": {"id": 939}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 468}, "assignee": {"id": 537}, "organization": {"id": 195}, "project": {"owner": {"id": 27}, "assignee": {"id": 847}, "organization": {"id": 948}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 350, "owner": {"id": 403}, "assignee": {"id": 526}, "organization": {"id": 623}, "project": {"owner": {"id": 70}, "assignee": {"id": 871}, "organization": {"id": 984}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 333, "owner": {"id": 485}, "assignee": {"id": 568}, "organization": {"id": 113}, "project": {"owner": {"id": 38}, "assignee": {"id": 871}, "organization": {"id": 978}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 416}, "assignee": {"id": 555}, "organization": {"id": 697}, "project": {"owner": {"id": 45}, "assignee": {"id": 888}, "organization": {"id": 990}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 20, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "owner": {"id": 417}, "assignee": {"id": 564}, "organization": {"id": 127}, "project": {"owner": {"id": 20}, "assignee": {"id": 887}, "organization": {"id": 967}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 424}, "assignee": {"id": 584}, "organization": {"id": 691}, "project": {"owner": {"id": 44}, "assignee": {"id": 884}, "organization": {"id": 919}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 301, "owner": {"id": 483}, "assignee": {"id": 516}, "organization": {"id": 179}, "project": {"owner": {"id": 66}, "assignee": {"id": 896}, "organization": {"id": 988}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 337, "owner": {"id": 420}, "assignee": {"id": 585}, "organization": {"id": 653}, "project": {"owner": {"id": 5}, "assignee": {"id": 888}, "organization": {"id": 970}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 369, "owner": {"id": 422}, "assignee": {"id": 540}, "organization": {"id": 100}, "project": {"owner": {"id": 84}, "assignee": {"id": 848}, "organization": {"id": 963}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 374, "owner": {"id": 456}, "assignee": {"id": 584}, "organization": {"id": 664}, "project": {"owner": {"id": 4}, "assignee": {"id": 842}, "organization": {"id": 983}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 309, "owner": {"id": 449}, "assignee": {"id": 508}, "organization": {"id": 158}, "project": {"owner": {"id": 715}, "assignee": {"id": 15}, "organization": {"id": 919}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 180, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 368, "owner": {"id": 484}, "assignee": {"id": 592}, "organization": {"id": 668}, "project": {"owner": {"id": 791}, "assignee": {"id": 91}, "organization": {"id": 986}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 355, "owner": {"id": 482}, "assignee": {"id": 523}, "organization": {"id": 160}, "project": {"owner": {"id": 754}, "assignee": {"id": 65}, "organization": {"id": 978}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "owner": {"id": 417}, "assignee": {"id": 520}, "organization": {"id": 630}, "project": {"owner": {"id": 729}, "assignee": {"id": 38}, "organization": {"id": 936}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 293}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "owner": {"id": 411}, "assignee": {"id": 558}, "organization": {"id": 176}, "project": {"owner": {"id": 793}, "assignee": {"id": 38}, "organization": {"id": 940}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 495}, "assignee": {"id": 558}, "organization": {"id": 608}, "project": {"owner": {"id": 787}, "assignee": {"id": 99}, "organization": {"id": 956}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 146, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 378, "owner": {"id": 432}, "assignee": {"id": 582}, "organization": {"id": 146}, "project": {"owner": {"id": 739}, "assignee": {"id": 9}, "organization": {"id": 981}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 349, "owner": {"id": 415}, "assignee": {"id": 532}, "organization": {"id": 642}, "project": {"owner": {"id": 709}, "assignee": {"id": 82}, "organization": {"id": 985}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 14, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 248}, "user": {"role": null}}}, "resource": {"id": 327, "owner": {"id": 409}, "assignee": {"id": 529}, "organization": {"id": 189}, "project": {"owner": {"id": 712}, "assignee": {"id": 14}, "organization": {"id": 967}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 13, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 360, "owner": {"id": 405}, "assignee": {"id": 538}, "organization": {"id": 674}, "project": {"owner": {"id": 713}, "assignee": {"id": 13}, "organization": {"id": 950}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 87, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 362, "owner": {"id": 416}, "assignee": {"id": 555}, "organization": {"id": 145}, "project": {"owner": {"id": 759}, "assignee": {"id": 87}, "organization": {"id": 965}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 353, "owner": {"id": 437}, "assignee": {"id": 595}, "organization": {"id": 607}, "project": {"owner": {"id": 782}, "assignee": {"id": 4}, "organization": {"id": 936}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "owner": {"id": 497}, "assignee": {"id": 595}, "organization": {"id": 192}, "project": {"owner": {"id": 736}, "assignee": {"id": 13}, "organization": {"id": 944}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "owner": {"id": 421}, "assignee": {"id": 561}, "organization": {"id": 617}, "project": {"owner": {"id": 779}, "assignee": {"id": 68}, "organization": {"id": 920}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "owner": {"id": 414}, "assignee": {"id": 554}, "organization": {"id": 120}, "project": {"owner": {"id": 797}, "assignee": {"id": 60}, "organization": {"id": 976}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 334, "owner": {"id": 467}, "assignee": {"id": 595}, "organization": {"id": 631}, "project": {"owner": {"id": 719}, "assignee": {"id": 41}, "organization": {"id": 976}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 26, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 389, "owner": {"id": 470}, "assignee": {"id": 546}, "organization": {"id": 163}, "project": {"owner": {"id": 713}, "assignee": {"id": 26}, "organization": {"id": 928}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 123, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 474}, "assignee": {"id": 598}, "organization": {"id": 625}, "project": {"owner": {"id": 728}, "assignee": {"id": 70}, "organization": {"id": 946}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 326, "owner": {"id": 470}, "assignee": {"id": 568}, "organization": {"id": 175}, "project": {"owner": {"id": 764}, "assignee": {"id": 50}, "organization": {"id": 914}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 349, "owner": {"id": 495}, "assignee": {"id": 556}, "organization": {"id": 698}, "project": {"owner": {"id": 744}, "assignee": {"id": 99}, "organization": {"id": 971}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 82, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 396, "owner": {"id": 417}, "assignee": {"id": 596}, "organization": {"id": 158}, "project": {"owner": {"id": 780}, "assignee": {"id": 82}, "organization": {"id": 939}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 366, "owner": {"id": 404}, "assignee": {"id": 560}, "organization": {"id": 617}, "project": {"owner": {"id": 742}, "assignee": {"id": 73}, "organization": {"id": 984}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 380, "owner": {"id": 409}, "assignee": {"id": 524}, "organization": {"id": 124}, "project": {"owner": {"id": 741}, "assignee": {"id": 53}, "organization": {"id": 935}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 101, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "owner": {"id": 483}, "assignee": {"id": 554}, "organization": {"id": 619}, "project": {"owner": {"id": 713}, "assignee": {"id": 55}, "organization": {"id": 987}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 478}, "assignee": {"id": 536}, "organization": {"id": 180}, "project": {"owner": {"id": 775}, "assignee": {"id": 59}, "organization": {"id": 934}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "owner": {"id": 417}, "assignee": {"id": 539}, "organization": {"id": 645}, "project": {"owner": {"id": 741}, "assignee": {"id": 49}, "organization": {"id": 962}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 468}, "assignee": {"id": 598}, "organization": {"id": 136}, "project": {"owner": {"id": 740}, "assignee": {"id": 79}, "organization": {"id": 913}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 375, "owner": {"id": 431}, "assignee": {"id": 586}, "organization": {"id": 625}, "project": {"owner": {"id": 791}, "assignee": {"id": 96}, "organization": {"id": 950}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 372, "owner": {"id": 455}, "assignee": {"id": 503}, "organization": {"id": 146}, "project": {"owner": {"id": 739}, "assignee": {"id": 14}, "organization": {"id": 963}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 233}, "user": {"role": null}}}, "resource": {"id": 394, "owner": {"id": 473}, "assignee": {"id": 573}, "organization": {"id": 687}, "project": {"owner": {"id": 758}, "assignee": {"id": 9}, "organization": {"id": 984}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 380, "owner": {"id": 434}, "assignee": {"id": 542}, "organization": {"id": 110}, "project": {"owner": {"id": 746}, "assignee": {"id": 50}, "organization": {"id": 978}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 304, "owner": {"id": 478}, "assignee": {"id": 558}, "organization": {"id": 658}, "project": {"owner": {"id": 739}, "assignee": {"id": 36}, "organization": {"id": 965}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 222}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "owner": {"id": 432}, "assignee": {"id": 503}, "organization": {"id": 128}, "project": {"owner": {"id": 731}, "assignee": {"id": 76}, "organization": {"id": 917}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 317, "owner": {"id": 459}, "assignee": {"id": 551}, "organization": {"id": 675}, "project": {"owner": {"id": 789}, "assignee": {"id": 89}, "organization": {"id": 924}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 341, "owner": {"id": 458}, "assignee": {"id": 523}, "organization": {"id": 186}, "project": {"owner": {"id": 765}, "assignee": {"id": 43}, "organization": {"id": 935}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "owner": {"id": 484}, "assignee": {"id": 555}, "organization": {"id": 611}, "project": {"owner": {"id": 751}, "assignee": {"id": 59}, "organization": {"id": 909}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 372, "owner": {"id": 428}, "assignee": {"id": 581}, "organization": {"id": 120}, "project": {"owner": {"id": 778}, "assignee": {"id": 82}, "organization": {"id": 944}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 357, "owner": {"id": 490}, "assignee": {"id": 575}, "organization": {"id": 612}, "project": {"owner": {"id": 766}, "assignee": {"id": 40}, "organization": {"id": 945}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 407}, "assignee": {"id": 590}, "organization": {"id": 130}, "project": {"owner": {"id": 796}, "assignee": {"id": 62}, "organization": {"id": 967}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 294}, "user": {"role": null}}}, "resource": {"id": 300, "owner": {"id": 480}, "assignee": {"id": 517}, "organization": {"id": 672}, "project": {"owner": {"id": 753}, "assignee": {"id": 3}, "organization": {"id": 916}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 352, "owner": {"id": 482}, "assignee": {"id": 531}, "organization": {"id": 174}, "project": {"owner": {"id": 750}, "assignee": {"id": 98}, "organization": {"id": 906}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 352, "owner": {"id": 418}, "assignee": {"id": 596}, "organization": {"id": 669}, "project": {"owner": {"id": 720}, "assignee": {"id": 84}, "organization": {"id": 910}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 15, "privilege": "none"}, "organization": {"id": 102, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 371, "owner": {"id": 470}, "assignee": {"id": 522}, "organization": {"id": 102}, "project": {"owner": {"id": 799}, "assignee": {"id": 15}, "organization": {"id": 931}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 372, "owner": {"id": 451}, "assignee": {"id": 596}, "organization": {"id": 669}, "project": {"owner": {"id": 758}, "assignee": {"id": 38}, "organization": {"id": 947}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "owner": {"id": 498}, "assignee": {"id": 594}, "organization": {"id": 109}, "project": {"owner": {"id": 768}, "assignee": {"id": 96}, "organization": {"id": 992}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 364, "owner": {"id": 419}, "assignee": {"id": 501}, "organization": {"id": 635}, "project": {"owner": {"id": 727}, "assignee": {"id": 11}, "organization": {"id": 966}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 362, "owner": {"id": 427}, "assignee": {"id": 514}, "organization": {"id": 186}, "project": {"owner": {"id": 758}, "assignee": {"id": 37}, "organization": {"id": 959}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 386, "owner": {"id": 461}, "assignee": {"id": 568}, "organization": {"id": 677}, "project": {"owner": {"id": 782}, "assignee": {"id": 24}, "organization": {"id": 933}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 387, "owner": {"id": 471}, "assignee": {"id": 560}, "organization": {"id": 164}, "project": {"owner": {"id": 734}, "assignee": {"id": 44}, "organization": {"id": 959}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_PROJECT_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 334, "owner": {"id": 403}, "assignee": {"id": 588}, "organization": {"id": 648}, "project": {"owner": {"id": 741}, "assignee": {"id": 42}, "organization": {"id": 992}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 392, "owner": {"id": 38}, "assignee": {"id": 581}, "organization": {"id": 156}, "project": {"owner": {"id": 727}, "assignee": {"id": 813}, "organization": {"id": 954}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 43}, "assignee": {"id": 581}, "organization": {"id": 633}, "project": {"owner": {"id": 770}, "assignee": {"id": 871}, "organization": {"id": 959}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 23}, "assignee": {"id": 561}, "organization": {"id": 168}, "project": {"owner": {"id": 780}, "assignee": {"id": 880}, "organization": {"id": 927}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 337, "owner": {"id": 30}, "assignee": {"id": 548}, "organization": {"id": 669}, "project": {"owner": {"id": 765}, "assignee": {"id": 886}, "organization": {"id": 973}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "owner": {"id": 23}, "assignee": {"id": 581}, "organization": {"id": 118}, "project": {"owner": {"id": 711}, "assignee": {"id": 804}, "organization": {"id": 970}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "owner": {"id": 72}, "assignee": {"id": 534}, "organization": {"id": 607}, "project": {"owner": {"id": 727}, "assignee": {"id": 825}, "organization": {"id": 932}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 358, "owner": {"id": 49}, "assignee": {"id": 581}, "organization": {"id": 156}, "project": {"owner": {"id": 778}, "assignee": {"id": 831}, "organization": {"id": 927}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 369, "owner": {"id": 35}, "assignee": {"id": 545}, "organization": {"id": 665}, "project": {"owner": {"id": 770}, "assignee": {"id": 836}, "organization": {"id": 943}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 386, "owner": {"id": 26}, "assignee": {"id": 552}, "organization": {"id": 164}, "project": {"owner": {"id": 781}, "assignee": {"id": 867}, "organization": {"id": 912}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 93, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 318, "owner": {"id": 93}, "assignee": {"id": 529}, "organization": {"id": 688}, "project": {"owner": {"id": 788}, "assignee": {"id": 813}, "organization": {"id": 990}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 35, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 352, "owner": {"id": 35}, "assignee": {"id": 563}, "organization": {"id": 157}, "project": {"owner": {"id": 791}, "assignee": {"id": 850}, "organization": {"id": 985}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 385, "owner": {"id": 48}, "assignee": {"id": 594}, "organization": {"id": 631}, "project": {"owner": {"id": 731}, "assignee": {"id": 845}, "organization": {"id": 948}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 366, "owner": {"id": 57}, "assignee": {"id": 597}, "organization": {"id": 101}, "project": {"owner": {"id": 765}, "assignee": {"id": 821}, "organization": {"id": 923}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "owner": {"id": 30}, "assignee": {"id": 574}, "organization": {"id": 660}, "project": {"owner": {"id": 763}, "assignee": {"id": 858}, "organization": {"id": 962}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "owner": {"id": 56}, "assignee": {"id": 574}, "organization": {"id": 104}, "project": {"owner": {"id": 740}, "assignee": {"id": 807}, "organization": {"id": 957}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "owner": {"id": 92}, "assignee": {"id": 555}, "organization": {"id": 669}, "project": {"owner": {"id": 711}, "assignee": {"id": 886}, "organization": {"id": 906}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 354, "owner": {"id": 2}, "assignee": {"id": 549}, "organization": {"id": 111}, "project": {"owner": {"id": 731}, "assignee": {"id": 818}, "organization": {"id": 995}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 338, "owner": {"id": 75}, "assignee": {"id": 509}, "organization": {"id": 616}, "project": {"owner": {"id": 709}, "assignee": {"id": 832}, "organization": {"id": 993}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 224}, "user": {"role": null}}}, "resource": {"id": 322, "owner": {"id": 86}, "assignee": {"id": 523}, "organization": {"id": 157}, "project": {"owner": {"id": 783}, "assignee": {"id": 881}, "organization": {"id": 953}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 313, "owner": {"id": 83}, "assignee": {"id": 575}, "organization": {"id": 633}, "project": {"owner": {"id": 793}, "assignee": {"id": 815}, "organization": {"id": 981}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 113, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 373, "owner": {"id": 86}, "assignee": {"id": 582}, "organization": {"id": 113}, "project": {"owner": {"id": 793}, "assignee": {"id": 886}, "organization": {"id": 940}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 368, "owner": {"id": 23}, "assignee": {"id": 589}, "organization": {"id": 664}, "project": {"owner": {"id": 707}, "assignee": {"id": 822}, "organization": {"id": 900}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 311, "owner": {"id": 85}, "assignee": {"id": 580}, "organization": {"id": 189}, "project": {"owner": {"id": 782}, "assignee": {"id": 821}, "organization": {"id": 912}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "owner": {"id": 39}, "assignee": {"id": 501}, "organization": {"id": 672}, "project": {"owner": {"id": 752}, "assignee": {"id": 808}, "organization": {"id": 919}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "owner": {"id": 41}, "assignee": {"id": 570}, "organization": {"id": 193}, "project": {"owner": {"id": 738}, "assignee": {"id": 895}, "organization": {"id": 929}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 376, "owner": {"id": 6}, "assignee": {"id": 528}, "organization": {"id": 601}, "project": {"owner": {"id": 798}, "assignee": {"id": 879}, "organization": {"id": 966}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 360, "owner": {"id": 53}, "assignee": {"id": 561}, "organization": {"id": 189}, "project": {"owner": {"id": 766}, "assignee": {"id": 806}, "organization": {"id": 913}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 370, "owner": {"id": 32}, "assignee": {"id": 546}, "organization": {"id": 653}, "project": {"owner": {"id": 724}, "assignee": {"id": 823}, "organization": {"id": 987}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 395, "owner": {"id": 51}, "assignee": {"id": 594}, "organization": {"id": 141}, "project": {"owner": {"id": 728}, "assignee": {"id": 855}, "organization": {"id": 900}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 364, "owner": {"id": 76}, "assignee": {"id": 596}, "organization": {"id": 641}, "project": {"owner": {"id": 733}, "assignee": {"id": 880}, "organization": {"id": 901}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 346, "owner": {"id": 23}, "assignee": {"id": 520}, "organization": {"id": 181}, "project": {"owner": {"id": 757}, "assignee": {"id": 890}, "organization": {"id": 960}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 86}, "assignee": {"id": 519}, "organization": {"id": 674}, "project": {"owner": {"id": 723}, "assignee": {"id": 829}, "organization": {"id": 992}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 9}, "assignee": {"id": 513}, "organization": {"id": 184}, "project": {"owner": {"id": 738}, "assignee": {"id": 834}, "organization": {"id": 953}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 324, "owner": {"id": 56}, "assignee": {"id": 557}, "organization": {"id": 638}, "project": {"owner": {"id": 731}, "assignee": {"id": 803}, "organization": {"id": 984}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "owner": {"id": 32}, "assignee": {"id": 584}, "organization": {"id": 180}, "project": {"owner": {"id": 749}, "assignee": {"id": 857}, "organization": {"id": 983}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "owner": {"id": 59}, "assignee": {"id": 581}, "organization": {"id": 666}, "project": {"owner": {"id": 792}, "assignee": {"id": 891}, "organization": {"id": 938}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 354, "owner": {"id": 44}, "assignee": {"id": 574}, "organization": {"id": 173}, "project": {"owner": {"id": 795}, "assignee": {"id": 846}, "organization": {"id": 924}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 303, "owner": {"id": 32}, "assignee": {"id": 511}, "organization": {"id": 618}, "project": {"owner": {"id": 735}, "assignee": {"id": 806}, "organization": {"id": 970}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 148, "owner": {"id": 222}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 44}, "assignee": {"id": 589}, "organization": {"id": 148}, "project": {"owner": {"id": 703}, "assignee": {"id": 898}, "organization": {"id": 986}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 323, "owner": {"id": 7}, "assignee": {"id": 538}, "organization": {"id": 697}, "project": {"owner": {"id": 758}, "assignee": {"id": 815}, "organization": {"id": 968}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 366, "owner": {"id": 58}, "assignee": {"id": 509}, "organization": {"id": 113}, "project": {"owner": {"id": 737}, "assignee": {"id": 880}, "organization": {"id": 930}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 336, "owner": {"id": 7}, "assignee": {"id": 540}, "organization": {"id": 682}, "project": {"owner": {"id": 766}, "assignee": {"id": 823}, "organization": {"id": 948}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "owner": {"id": 58}, "assignee": {"id": 503}, "organization": {"id": 188}, "project": {"owner": {"id": 758}, "assignee": {"id": 840}, "organization": {"id": 907}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "owner": {"id": 58}, "assignee": {"id": 543}, "organization": {"id": 699}, "project": {"owner": {"id": 718}, "assignee": {"id": 820}, "organization": {"id": 909}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "owner": {"id": 65}, "assignee": {"id": 563}, "organization": {"id": 174}, "project": {"owner": {"id": 738}, "assignee": {"id": 864}, "organization": {"id": 908}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 301, "owner": {"id": 85}, "assignee": {"id": 580}, "organization": {"id": 608}, "project": {"owner": {"id": 751}, "assignee": {"id": 825}, "organization": {"id": 988}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 334, "owner": {"id": 70}, "assignee": {"id": 554}, "organization": {"id": 175}, "project": {"owner": {"id": 727}, "assignee": {"id": 855}, "organization": {"id": 910}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 330, "owner": {"id": 46}, "assignee": {"id": 543}, "organization": {"id": 676}, "project": {"owner": {"id": 796}, "assignee": {"id": 892}, "organization": {"id": 955}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 359, "owner": {"id": 92}, "assignee": {"id": 570}, "organization": {"id": 164}, "project": {"owner": {"id": 770}, "assignee": {"id": 814}, "organization": {"id": 984}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 386, "owner": {"id": 86}, "assignee": {"id": 592}, "organization": {"id": 638}, "project": {"owner": {"id": 759}, "assignee": {"id": 848}, "organization": {"id": 923}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 304, "owner": {"id": 420}, "assignee": {"id": 37}, "organization": {"id": 152}, "project": {"owner": {"id": 762}, "assignee": {"id": 807}, "organization": {"id": 976}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 371, "owner": {"id": 454}, "assignee": {"id": 52}, "organization": {"id": 686}, "project": {"owner": {"id": 761}, "assignee": {"id": 811}, "organization": {"id": 995}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "owner": {"id": 466}, "assignee": {"id": 84}, "organization": {"id": 186}, "project": {"owner": {"id": 753}, "assignee": {"id": 806}, "organization": {"id": 932}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "owner": {"id": 411}, "assignee": {"id": 25}, "organization": {"id": 675}, "project": {"owner": {"id": 784}, "assignee": {"id": 828}, "organization": {"id": 954}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "owner": {"id": 466}, "assignee": {"id": 57}, "organization": {"id": 176}, "project": {"owner": {"id": 784}, "assignee": {"id": 821}, "organization": {"id": 977}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "owner": {"id": 409}, "assignee": {"id": 95}, "organization": {"id": 697}, "project": {"owner": {"id": 738}, "assignee": {"id": 862}, "organization": {"id": 919}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 355, "owner": {"id": 462}, "assignee": {"id": 61}, "organization": {"id": 144}, "project": {"owner": {"id": 792}, "assignee": {"id": 854}, "organization": {"id": 949}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 3, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 379, "owner": {"id": 455}, "assignee": {"id": 3}, "organization": {"id": 626}, "project": {"owner": {"id": 756}, "assignee": {"id": 849}, "organization": {"id": 958}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 392, "owner": {"id": 422}, "assignee": {"id": 38}, "organization": {"id": 129}, "project": {"owner": {"id": 779}, "assignee": {"id": 876}, "organization": {"id": 910}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 330, "owner": {"id": 478}, "assignee": {"id": 28}, "organization": {"id": 686}, "project": {"owner": {"id": 740}, "assignee": {"id": 800}, "organization": {"id": 943}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 380, "owner": {"id": 424}, "assignee": {"id": 37}, "organization": {"id": 154}, "project": {"owner": {"id": 797}, "assignee": {"id": 804}, "organization": {"id": 913}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 314, "owner": {"id": 444}, "assignee": {"id": 71}, "organization": {"id": 610}, "project": {"owner": {"id": 781}, "assignee": {"id": 869}, "organization": {"id": 986}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "owner": {"id": 423}, "assignee": {"id": 21}, "organization": {"id": 137}, "project": {"owner": {"id": 730}, "assignee": {"id": 820}, "organization": {"id": 994}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 24, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 234}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "owner": {"id": 478}, "assignee": {"id": 24}, "organization": {"id": 630}, "project": {"owner": {"id": 748}, "assignee": {"id": 804}, "organization": {"id": 939}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 92, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "owner": {"id": 447}, "assignee": {"id": 92}, "organization": {"id": 131}, "project": {"owner": {"id": 750}, "assignee": {"id": 855}, "organization": {"id": 999}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "owner": {"id": 402}, "assignee": {"id": 42}, "organization": {"id": 610}, "project": {"owner": {"id": 773}, "assignee": {"id": 816}, "organization": {"id": 963}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 390, "owner": {"id": 466}, "assignee": {"id": 38}, "organization": {"id": 157}, "project": {"owner": {"id": 756}, "assignee": {"id": 847}, "organization": {"id": 975}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 323, "owner": {"id": 421}, "assignee": {"id": 19}, "organization": {"id": 685}, "project": {"owner": {"id": 706}, "assignee": {"id": 810}, "organization": {"id": 975}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 226}, "user": {"role": null}}}, "resource": {"id": 348, "owner": {"id": 459}, "assignee": {"id": 80}, "organization": {"id": 149}, "project": {"owner": {"id": 740}, "assignee": {"id": 861}, "organization": {"id": 978}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 40, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 331, "owner": {"id": 460}, "assignee": {"id": 40}, "organization": {"id": 688}, "project": {"owner": {"id": 709}, "assignee": {"id": 876}, "organization": {"id": 925}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 67}, "user": {"role": "owner"}}}, "resource": {"id": 303, "owner": {"id": 470}, "assignee": {"id": 67}, "organization": {"id": 114}, "project": {"owner": {"id": 753}, "assignee": {"id": 840}, "organization": {"id": 906}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 306, "owner": {"id": 426}, "assignee": {"id": 41}, "organization": {"id": 656}, "project": {"owner": {"id": 750}, "assignee": {"id": 808}, "organization": {"id": 927}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "owner": {"id": 470}, "assignee": {"id": 30}, "organization": {"id": 189}, "project": {"owner": {"id": 774}, "assignee": {"id": 835}, "organization": {"id": 942}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 369, "owner": {"id": 433}, "assignee": {"id": 81}, "organization": {"id": 643}, "project": {"owner": {"id": 738}, "assignee": {"id": 820}, "organization": {"id": 981}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "owner": {"id": 435}, "assignee": {"id": 25}, "organization": {"id": 179}, "project": {"owner": {"id": 756}, "assignee": {"id": 844}, "organization": {"id": 997}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": {"id": 184, "owner": {"id": 204}, "user": {"role": "supervisor"}}}, "resource": {"id": 370, "owner": {"id": 457}, "assignee": {"id": 17}, "organization": {"id": 682}, "project": {"owner": {"id": 774}, "assignee": {"id": 888}, "organization": {"id": 995}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 178, "owner": {"id": 223}, "user": {"role": "worker"}}}, "resource": {"id": 311, "owner": {"id": 436}, "assignee": {"id": 61}, "organization": {"id": 178}, "project": {"owner": {"id": 778}, "assignee": {"id": 821}, "organization": {"id": 925}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 68, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 346, "owner": {"id": 486}, "assignee": {"id": 68}, "organization": {"id": 693}, "project": {"owner": {"id": 786}, "assignee": {"id": 876}, "organization": {"id": 948}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 341, "owner": {"id": 401}, "assignee": {"id": 51}, "organization": {"id": 144}, "project": {"owner": {"id": 703}, "assignee": {"id": 815}, "organization": {"id": 910}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 367, "owner": {"id": 451}, "assignee": {"id": 30}, "organization": {"id": 612}, "project": {"owner": {"id": 710}, "assignee": {"id": 844}, "organization": {"id": 903}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 347, "owner": {"id": 470}, "assignee": {"id": 87}, "organization": {"id": 186}, "project": {"owner": {"id": 786}, "assignee": {"id": 807}, "organization": {"id": 986}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 306, "owner": {"id": 453}, "assignee": {"id": 87}, "organization": {"id": 683}, "project": {"owner": {"id": 703}, "assignee": {"id": 845}, "organization": {"id": 954}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"id": 361, "owner": {"id": 484}, "assignee": {"id": 2}, "organization": {"id": 105}, "project": {"owner": {"id": 713}, "assignee": {"id": 824}, "organization": {"id": 955}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 231}, "user": {"role": "maintainer"}}}, "resource": {"id": 334, "owner": {"id": 493}, "assignee": {"id": 93}, "organization": {"id": 627}, "project": {"owner": {"id": 769}, "assignee": {"id": 804}, "organization": {"id": 903}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 477}, "assignee": {"id": 99}, "organization": {"id": 131}, "project": {"owner": {"id": 763}, "assignee": {"id": 867}, "organization": {"id": 917}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 374, "owner": {"id": 489}, "assignee": {"id": 92}, "organization": {"id": 601}, "project": {"owner": {"id": 777}, "assignee": {"id": 886}, "organization": {"id": 979}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 367, "owner": {"id": 457}, "assignee": {"id": 25}, "organization": {"id": 185}, "project": {"owner": {"id": 773}, "assignee": {"id": 812}, "organization": {"id": 949}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 153, "owner": {"id": 269}, "user": {"role": "worker"}}}, "resource": {"id": 388, "owner": {"id": 484}, "assignee": {"id": 11}, "organization": {"id": 678}, "project": {"owner": {"id": 714}, "assignee": {"id": 855}, "organization": {"id": 942}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 142, "owner": {"id": 260}, "user": {"role": null}}}, "resource": {"id": 305, "owner": {"id": 403}, "assignee": {"id": 25}, "organization": {"id": 142}, "project": {"owner": {"id": 723}, "assignee": {"id": 813}, "organization": {"id": 941}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 385, "owner": {"id": 404}, "assignee": {"id": 57}, "organization": {"id": 678}, "project": {"owner": {"id": 726}, "assignee": {"id": 842}, "organization": {"id": 965}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 307, "owner": {"id": 423}, "assignee": {"id": 41}, "organization": {"id": 184}, "project": {"owner": {"id": 784}, "assignee": {"id": 893}, "organization": {"id": 944}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 301, "owner": {"id": 483}, "assignee": {"id": 74}, "organization": {"id": 695}, "project": {"owner": {"id": 769}, "assignee": {"id": 857}, "organization": {"id": 967}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 383, "owner": {"id": 441}, "assignee": {"id": 18}, "organization": {"id": 128}, "project": {"owner": {"id": 777}, "assignee": {"id": 898}, "organization": {"id": 933}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "owner": {"id": 444}, "assignee": {"id": 32}, "organization": {"id": 633}, "project": {"owner": {"id": 725}, "assignee": {"id": 882}, "organization": {"id": 925}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 225}, "user": {"role": "supervisor"}}}, "resource": {"id": 387, "owner": {"id": 499}, "assignee": {"id": 86}, "organization": {"id": 138}, "project": {"owner": {"id": 782}, "assignee": {"id": 810}, "organization": {"id": 922}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "owner": {"id": 418}, "assignee": {"id": 31}, "organization": {"id": 665}, "project": {"owner": {"id": 784}, "assignee": {"id": 881}, "organization": {"id": 925}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 327, "owner": {"id": 451}, "assignee": {"id": 62}, "organization": {"id": 154}, "project": {"owner": {"id": 730}, "assignee": {"id": 817}, "organization": {"id": 917}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 374, "owner": {"id": 401}, "assignee": {"id": 83}, "organization": {"id": 683}, "project": {"owner": {"id": 786}, "assignee": {"id": 889}, "organization": {"id": 961}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 363, "owner": {"id": 483}, "assignee": {"id": 65}, "organization": {"id": 113}, "project": {"owner": {"id": 777}, "assignee": {"id": 881}, "organization": {"id": 992}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_ASSIGNEE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 262}, "user": {"role": null}}}, "resource": {"id": 303, "owner": {"id": 494}, "assignee": {"id": 93}, "organization": {"id": 681}, "project": {"owner": {"id": 792}, "assignee": {"id": 871}, "organization": {"id": 901}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 353, "owner": {"id": 448}, "assignee": {"id": 561}, "organization": {"id": 137}, "project": {"owner": {"id": 739}, "assignee": {"id": 843}, "organization": {"id": 926}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 383, "owner": {"id": 424}, "assignee": {"id": 593}, "organization": {"id": 631}, "project": {"owner": {"id": 744}, "assignee": {"id": 886}, "organization": {"id": 999}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 287}, "user": {"role": "maintainer"}}}, "resource": {"id": 328, "owner": {"id": 458}, "assignee": {"id": 505}, "organization": {"id": 197}, "project": {"owner": {"id": 708}, "assignee": {"id": 886}, "organization": {"id": 909}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 305, "owner": {"id": 425}, "assignee": {"id": 525}, "organization": {"id": 694}, "project": {"owner": {"id": 751}, "assignee": {"id": 810}, "organization": {"id": 926}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 390, "owner": {"id": 441}, "assignee": {"id": 503}, "organization": {"id": 131}, "project": {"owner": {"id": 702}, "assignee": {"id": 840}, "organization": {"id": 907}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 412}, "assignee": {"id": 514}, "organization": {"id": 650}, "project": {"owner": {"id": 730}, "assignee": {"id": 893}, "organization": {"id": 984}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 396, "owner": {"id": 436}, "assignee": {"id": 545}, "organization": {"id": 121}, "project": {"owner": {"id": 757}, "assignee": {"id": 880}, "organization": {"id": 930}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 330, "owner": {"id": 401}, "assignee": {"id": 531}, "organization": {"id": 634}, "project": {"owner": {"id": 784}, "assignee": {"id": 883}, "organization": {"id": 916}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 217}, "user": {"role": null}}}, "resource": {"id": 356, "owner": {"id": 430}, "assignee": {"id": 523}, "organization": {"id": 157}, "project": {"owner": {"id": 751}, "assignee": {"id": 878}, "organization": {"id": 977}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 201}, "user": {"role": null}}}, "resource": {"id": 381, "owner": {"id": 466}, "assignee": {"id": 559}, "organization": {"id": 603}, "project": {"owner": {"id": 716}, "assignee": {"id": 823}, "organization": {"id": 977}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 302, "owner": {"id": 475}, "assignee": {"id": 591}, "organization": {"id": 199}, "project": {"owner": {"id": 742}, "assignee": {"id": 810}, "organization": {"id": 908}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 372, "owner": {"id": 430}, "assignee": {"id": 577}, "organization": {"id": 680}, "project": {"owner": {"id": 789}, "assignee": {"id": 833}, "organization": {"id": 901}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "owner": {"id": 445}, "assignee": {"id": 553}, "organization": {"id": 148}, "project": {"owner": {"id": 771}, "assignee": {"id": 872}, "organization": {"id": 945}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "owner": {"id": 445}, "assignee": {"id": 577}, "organization": {"id": 686}, "project": {"owner": {"id": 767}, "assignee": {"id": 884}, "organization": {"id": 911}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "owner": {"id": 404}, "assignee": {"id": 528}, "organization": {"id": 138}, "project": {"owner": {"id": 775}, "assignee": {"id": 818}, "organization": {"id": 971}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 26, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "owner": {"id": 421}, "assignee": {"id": 513}, "organization": {"id": 627}, "project": {"owner": {"id": 769}, "assignee": {"id": 837}, "organization": {"id": 994}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 106, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 311, "owner": {"id": 498}, "assignee": {"id": 531}, "organization": {"id": 106}, "project": {"owner": {"id": 797}, "assignee": {"id": 804}, "organization": {"id": 907}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 393, "owner": {"id": 421}, "assignee": {"id": 579}, "organization": {"id": 642}, "project": {"owner": {"id": 748}, "assignee": {"id": 800}, "organization": {"id": 924}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 376, "owner": {"id": 425}, "assignee": {"id": 587}, "organization": {"id": 182}, "project": {"owner": {"id": 774}, "assignee": {"id": 843}, "organization": {"id": 964}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 288}, "user": {"role": null}}}, "resource": {"id": 303, "owner": {"id": 421}, "assignee": {"id": 503}, "organization": {"id": 698}, "project": {"owner": {"id": 757}, "assignee": {"id": 845}, "organization": {"id": 919}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 65, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 322, "owner": {"id": 441}, "assignee": {"id": 545}, "organization": {"id": 155}, "project": {"owner": {"id": 776}, "assignee": {"id": 827}, "organization": {"id": 910}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 355, "owner": {"id": 490}, "assignee": {"id": 520}, "organization": {"id": 628}, "project": {"owner": {"id": 781}, "assignee": {"id": 814}, "organization": {"id": 934}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update:owner", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "owner": {"id": 438}, "assignee": {"id": 529}, "organization": {"id": 145}, "project": {"owner": {"id": 731}, "assignee": {"id": 800}, "organization": {"id": 944}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "owner": {"id": 416}, "assignee": {"id": 562}, "organization": {"id": 652}, "project": {"owner": {"id": 730}, "assignee": {"id": 801}, "organization": {"id": 904}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 348, "owner": {"id": 497}, "assignee": {"id": 529}, "organization": {"id": 158}, "project": {"owner": {"id": 781}, "assignee": {"id": 823}, "organization": {"id": 941}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 211}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "owner": {"id": 477}, "assignee": {"id": 556}, "organization": {"id": 649}, "project": {"owner": {"id": 762}, "assignee": {"id": 898}, "organization": {"id": 933}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 329, "owner": {"id": 474}, "assignee": {"id": 512}, "organization": {"id": 146}, "project": {"owner": {"id": 718}, "assignee": {"id": 801}, "organization": {"id": 929}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 213}, "user": {"role": "worker"}}}, "resource": {"id": 350, "owner": {"id": 478}, "assignee": {"id": 539}, "organization": {"id": 608}, "project": {"owner": {"id": 739}, "assignee": {"id": 831}, "organization": {"id": 908}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 39, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 278}, "user": {"role": null}}}, "resource": {"id": 330, "owner": {"id": 475}, "assignee": {"id": 567}, "organization": {"id": 120}, "project": {"owner": {"id": 760}, "assignee": {"id": 889}, "organization": {"id": 971}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 275}, "user": {"role": null}}}, "resource": {"id": 347, "owner": {"id": 430}, "assignee": {"id": 590}, "organization": {"id": 699}, "project": {"owner": {"id": 725}, "assignee": {"id": 892}, "organization": {"id": 959}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 332, "owner": {"id": 496}, "assignee": {"id": 523}, "organization": {"id": 180}, "project": {"owner": {"id": 736}, "assignee": {"id": 801}, "organization": {"id": 968}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 397, "owner": {"id": 499}, "assignee": {"id": 564}, "organization": {"id": 646}, "project": {"owner": {"id": 752}, "assignee": {"id": 886}, "organization": {"id": 928}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "owner": {"id": 469}, "assignee": {"id": 599}, "organization": {"id": 106}, "project": {"owner": {"id": 719}, "assignee": {"id": 808}, "organization": {"id": 919}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "owner": {"id": 482}, "assignee": {"id": 511}, "organization": {"id": 651}, "project": {"owner": {"id": 734}, "assignee": {"id": 870}, "organization": {"id": 989}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 347, "owner": {"id": 445}, "assignee": {"id": 572}, "organization": {"id": 124}, "project": {"owner": {"id": 733}, "assignee": {"id": 869}, "organization": {"id": 961}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 315, "owner": {"id": 466}, "assignee": {"id": 559}, "organization": {"id": 601}, "project": {"owner": {"id": 730}, "assignee": {"id": 878}, "organization": {"id": 946}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 29, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 385, "owner": {"id": 470}, "assignee": {"id": 570}, "organization": {"id": 185}, "project": {"owner": {"id": 766}, "assignee": {"id": 835}, "organization": {"id": 921}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 379, "owner": {"id": 433}, "assignee": {"id": 501}, "organization": {"id": 617}, "project": {"owner": {"id": 793}, "assignee": {"id": 808}, "organization": {"id": 952}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 126, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 305, "owner": {"id": 454}, "assignee": {"id": 570}, "organization": {"id": 126}, "project": {"owner": {"id": 729}, "assignee": {"id": 843}, "organization": {"id": 980}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 391, "owner": {"id": 449}, "assignee": {"id": 518}, "organization": {"id": 618}, "project": {"owner": {"id": 734}, "assignee": {"id": 887}, "organization": {"id": 936}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 354, "owner": {"id": 442}, "assignee": {"id": 546}, "organization": {"id": 184}, "project": {"owner": {"id": 715}, "assignee": {"id": 846}, "organization": {"id": 985}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 159, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 316, "owner": {"id": 429}, "assignee": {"id": 543}, "organization": {"id": 684}, "project": {"owner": {"id": 744}, "assignee": {"id": 810}, "organization": {"id": 961}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 388, "owner": {"id": 470}, "assignee": {"id": 537}, "organization": {"id": 105}, "project": {"owner": {"id": 776}, "assignee": {"id": 887}, "organization": {"id": 923}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "owner": {"id": 476}, "assignee": {"id": 533}, "organization": {"id": 635}, "project": {"owner": {"id": 748}, "assignee": {"id": 812}, "organization": {"id": 957}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 351, "owner": {"id": 407}, "assignee": {"id": 553}, "organization": {"id": 193}, "project": {"owner": {"id": 764}, "assignee": {"id": 836}, "organization": {"id": 937}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 77, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 208}, "user": {"role": "supervisor"}}}, "resource": {"id": 300, "owner": {"id": 454}, "assignee": {"id": 592}, "organization": {"id": 689}, "project": {"owner": {"id": 762}, "assignee": {"id": 839}, "organization": {"id": 900}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 387, "owner": {"id": 420}, "assignee": {"id": 549}, "organization": {"id": 181}, "project": {"owner": {"id": 719}, "assignee": {"id": 881}, "organization": {"id": 964}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 265}, "user": {"role": "worker"}}}, "resource": {"id": 302, "owner": {"id": 492}, "assignee": {"id": 557}, "organization": {"id": 696}, "project": {"owner": {"id": 708}, "assignee": {"id": 813}, "organization": {"id": 903}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 265}, "user": {"role": null}}}, "resource": {"id": 306, "owner": {"id": 497}, "assignee": {"id": 518}, "organization": {"id": 196}, "project": {"owner": {"id": 724}, "assignee": {"id": 818}, "organization": {"id": 945}}}} -} - -test_scope_UPDATE_OWNER_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update:owner", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 268}, "user": {"role": null}}}, "resource": {"id": 350, "owner": {"id": 472}, "assignee": {"id": 579}, "organization": {"id": 680}, "project": {"owner": {"id": 765}, "assignee": {"id": 802}, "organization": {"id": 907}}}} -} - - - -# tasks_test.gen.rego.py -# # Copyright (C) 2021-2022 Intel Corporation -# # -# # SPDX-License-Identifier: MIT -# -# import csv -# import json -# import random -# import sys -# import os -# from itertools import product -# -# random.seed(42) -# -# NAME = 'tasks' -# -# -# def read_rules(name): -# rules = [] -# with open(os.path.join(sys.argv[1], f'{name}.csv')) as f: -# reader = csv.DictReader(f) -# for row in reader: -# row = {k.lower():v.lower().replace('n/a','na') for k,v in row.items()} -# row['limit'] = row['limit'].replace('none', 'None') -# found = False -# for col,val in row.items(): -# if col in ["limit", "method", "url", "resource"]: -# continue -# complex_val = [v.strip() for v in val.split(',')] -# if len(complex_val) > 1: -# found = True -# for item in complex_val: -# new_row = row.copy() -# new_row[col] = item -# rules.append(new_row) -# if not found: -# rules.append(row) -# -# return rules -# -# simple_rules = read_rules(NAME) -# -# SCOPES = list({rule['scope'] for rule in simple_rules}) -# CONTEXTS = ['sandbox', 'organization'] -# OWNERSHIPS = ['project:owner', 'project:assignee', 'owner', 'assignee', 'none'] -# GROUPS = ['admin', 'business', 'user', 'worker', 'none'] -# ORG_ROLES = ['owner', 'maintainer', 'supervisor', 'worker', None] -# SAME_ORG = [True, False] -# -# def RESOURCES(scope): -# if scope == 'list': -# return [None] -# elif scope.startswith('create') or scope == 'import:backup': -# return [{ -# "owner": { "id": random.randrange(400, 500) }, -# "assignee": { "id": random.randrange(500, 600) }, -# "organization": { -# "id": random.randrange(600, 700) -# }, -# "project": { -# "owner": { "id": random.randrange(700, 800) }, -# "assignee": { "id": random.randrange(800, 900) }, -# "organization": { -# "id": random.randrange(900, 1000) -# }, -# }, -# "user": { -# "num_resources": count -# } -# } for count in (0, 3, 10)] -# else: -# return [{ -# "id": random.randrange(300, 400), -# "owner": { "id": random.randrange(400, 500) }, -# "assignee": { "id": random.randrange(500, 600) }, -# "organization": { -# "id": random.randrange(600, 700) -# }, -# "project": { -# "owner": { "id": random.randrange(700, 800) }, -# "assignee": { "id": random.randrange(800, 900) }, -# "organization": { -# "id": random.randrange(900, 1000) -# }, -# } -# }] -# -# -# def is_same_org(org1, org2): -# if org1 != None and org2 != None: -# return org1['id'] == org2['id'] -# elif org1 == None and org2 == None: -# return True -# else: -# return False -# -# def eval_rule(scope, context, ownership, privilege, membership, data): -# if privilege == 'admin': -# return True -# -# rules = list(filter(lambda r: scope == r['scope'], simple_rules)) -# rules = list(filter(lambda r: r['context'] == 'na' or context == r['context'], rules)) -# rules = list(filter(lambda r: r['ownership'] == 'na' or ownership == r['ownership'], rules)) -# rules = list(filter(lambda r: r['membership'] == 'na' or -# ORG_ROLES.index(membership) <= ORG_ROLES.index(r['membership']), rules)) -# rules = list(filter(lambda r: GROUPS.index(privilege) <= GROUPS.index(r['privilege']), rules)) -# resource = data['resource'] -# rules = list(filter(lambda r: not r['limit'] or eval(r['limit'], {'resource': resource}), rules)) -# if not is_same_org(data['auth']['organization'], data['resource']['organization']) and context != 'sandbox': -# return False -# -# return bool(rules) -# -# def get_data(scope, context, ownership, privilege, membership, resource, same_org): -# data = { -# "scope": scope, -# "auth": { -# "user": { "id": random.randrange(0,100), "privilege": privilege }, -# "organization": { -# "id": random.randrange(100,200), -# "owner": { "id": random.randrange(200, 300) }, -# "user": { "role": membership } -# } if context == 'organization' else None -# }, -# "resource": resource -# } -# -# user_id = data['auth']['user']['id'] -# if context == 'organization': -# org_id = data['auth']['organization']['id'] -# if data['auth']['organization']['user']['role'] == 'owner': -# data['auth']['organization']['owner']['id'] = user_id -# -# if same_org: -# data['resource']['organization']['id'] = org_id -# -# if ownership == 'owner': -# data['resource']['owner']['id'] = user_id -# -# if ownership == 'assignee': -# data['resource']['assignee']['id'] = user_id -# -# if ownership == 'project:owner': -# data['resource']['project']['owner']['id'] = user_id -# -# if ownership == 'project:assignee': -# data['resource']['project']['assignee']['id'] = user_id -# -# -# return data -# -# def _get_name(prefix, **kwargs): -# name = prefix -# for k,v in kwargs.items(): -# prefix = '_' + str(k) -# if isinstance(v, dict): -# if 'id' in v: -# v = v.copy() -# v.pop('id') -# if v: -# name += _get_name(prefix, **v) -# else: -# name += ''.join(map(lambda c: c if c.isalnum() else {'@':'_IN_'}.get(c, '_'), -# f'{prefix}_{str(v).upper()}')) -# -# return name -# -# def get_name(scope, context, ownership, privilege, membership, resource, same_org): -# return _get_name('test', **locals()) -# -# def is_valid(scope, context, ownership, privilege, membership, resource, same_org): -# if context == "sandbox" and membership: -# return False -# if scope == 'list' and ownership != 'None': -# return False -# if context == 'sandbox' and same_org == False: -# return False -# if scope.startswith('create') and ownership in ['owner', 'assignee']: -# return False -# if scope in ['create', 'import:backup'] and ownership != 'None': -# return False -# -# return True -# -# def gen_test_rego(name): -# with open(f'{name}_test.gen.rego', 'wt') as f: -# f.write(f'package {name}\n\n') -# for scope, context, ownership, privilege, membership, same_org in product( -# SCOPES, CONTEXTS, OWNERSHIPS, GROUPS, ORG_ROLES, SAME_ORG): -# for resource in RESOURCES(scope): -# if not is_valid(scope, context, ownership, privilege, membership, resource, same_org): -# continue -# -# data = get_data(scope, context, ownership, privilege, membership, resource, same_org) -# test_name = get_name(scope, context, ownership, privilege, membership, resource, same_org) -# result = eval_rule(scope, context, ownership, privilege, membership, data) -# f.write('{test_name} {{\n {allow} with input as {data}\n}}\n\n'.format( -# test_name=test_name, allow='allow' if result else 'not allow', -# data=json.dumps(data))) -# -# # Write the script which is used to generate the file -# with open(sys.argv[0]) as this_file: -# f.write(f'\n\n# {os.path.split(sys.argv[0])[1]}\n') -# for line in this_file: -# if line.strip(): -# f.write(f'# {line}') -# else: -# f.write(f'#\n') -# -# # Write rules which are used to generate the file -# with open(os.path.join(sys.argv[1], f'{name}.csv')) as rego_file: -# f.write(f'\n\n# {name}.csv\n') -# for line in rego_file: -# if line.strip(): -# f.write(f'# {line}') -# else: -# f.write(f'#\n') -# -# gen_test_rego(NAME) - -# tasks.csv -# Scope,Resource,Context,Ownership,Limit,Method,URL,Privilege,Membership -# create,Task,Sandbox,None,resource['user']['num_resources'] < 10,POST,/tasks,User,N/A -# create,Task,Organization,None,resource['user']['num_resources'] < 10,POST,/tasks,User,Supervisor -# create,Task,Sandbox,None,,POST,/tasks,Business,N/A -# create,Task,Organization,None,,POST,/tasks,Business,Supervisor -# import:backup,Task,Sandbox,None,resource['user']['num_resources'] < 10,POST,/tasks/backup,User,N/A -# import:backup,Task,Organization,None,resource['user']['num_resources'] < 10,POST,/tasks/backup,User,Supervisor -# import:backup,Task,Sandbox,None,,POST,/tasks/backup,Business,N/A -# import:backup,Task,Organization,None,,POST,/tasks/backup,Business,Supervisor -# create@project,"Task, Project",Sandbox,None,,POST,/tasks,Admin,N/A -# create@project,"Task, Project",Sandbox,"Project:owner, Project:assignee",resource['user']['num_resources'] < 10,POST,/tasks,User,N/A -# create@project,"Task, Project",Organization,None,resource['user']['num_resources'] < 10,POST,/tasks,User,Supervisor -# create@project,"Task, Project",Organization,"Project:owner, Project:assignee",resource['user']['num_resources'] < 10,POST,/tasks,User,Worker -# create@project,"Task, Project",Sandbox,"Project:owner, Project:assignee",,POST,/tasks,Business,N/A -# create@project,"Task, Project",Organization,None,,POST,/tasks,Business,Supervisor -# create@project,"Task, Project",Organization,"Project:owner, Project:assignee",,POST,/tasks,Business,Worker -# view,Task,Sandbox,None,,GET,"/tasks/{id}, /tasks/{id}/status",Admin,N/A -# view,Task,Sandbox,"Owner, Project:owner, Assignee, Project:assignee",,GET,"/tasks/{id}, /tasks/{id}/status",None,N/A -# view,Task,Organization,None,,GET,"/tasks/{id}, /tasks/{id}/status",User,Maintainer -# view,Task,Organization,"Owner, Project:owner, Assignee, Project:assignee",,GET,"/tasks/{id}, /tasks/{id}/status",None,Worker -# list,N/A,Sandbox,N/A,,GET,/tasks,None,N/A -# list,N/A,Organization,N/A,,GET,/tasks,None,Worker -# update:desc,Task,Sandbox,None,,PATCH,/tasks/{id},Admin,N/A -# update:desc,Task,Sandbox,"Owner, Project:owner, Assignee, Project:assignee",,PATCH,/tasks/{id},Worker,N/A -# update:desc,Task,Organization,None,,PATCH,/tasks/{id},User,Maintainer -# update:desc,Task,Organization,"Owner, Project:owner, Assignee, Project:assignee",,PATCH,/tasks/{id},Worker,Worker -# update:owner,"Task, User",Sandbox,"None, Assignee",,PATCH,/tasks/{id},Admin,N/A -# update:owner,"Task, User",Sandbox,"Owner, Project:owner, Project:assignee",,PATCH,/tasks/{id},Worker,N/A -# update:owner,"Task, User",Organization,"None, Assignee",,PATCH,/tasks/{id},User,Maintainer -# update:owner,"Task, User",Organization,"Owner, Project:owner, Project:assignee",,PATCH,/tasks/{id},Worker,Worker -# update:assignee,"Task, User",Sandbox,"None, Assignee",,PATCH,/tasks/{id},Admin,N/A -# update:assignee,"Task, User",Sandbox,"Owner, Project:owner, Project:assignee",,PATCH,/tasks/{id},Worker,N/A -# update:assignee,"Task, User",Organization,"None, Assignee",,PATCH,/tasks/{id},User,Maintainer -# update:assignee,"Task, User",Organization,"Owner, Project:owner, Project:assignee",,PATCH,/tasks/{id},Worker,Worker -# update:project,"Task, Project",Sandbox,"None, Assignee",,PATCH,/tasks/{id},Admin,N/A -# update:project,"Task, Project",Sandbox,"Owner, Project:owner, Project:assignee",,PATCH,/tasks/{id},Worker,N/A -# update:project,"Task, Project",Organization,"None, Assignee",,PATCH,/tasks/{id},User,Maintainer -# update:project,"Task, Project",Organization,"Owner, Project:owner, Project:assignee",,PATCH,/tasks/{id},Worker,Worker -# delete,Task,Sandbox,"None, Assignee",,DELETE,/tasks/{id},Admin,N/A -# delete,Task,Sandbox,"Owner, Project:owner, Project:assignee",,DELETE,/tasks/{id},Worker,N/A -# delete,Task,Organization,"None, Assignee",,DELETE,/tasks/{id},User,Maintainer -# delete,Task,Organization,"Owner, Project:owner, Project:assignee",,DELETE,/tasks/{id},Worker,Worker -# view:annotations,Task,Sandbox,None,,GET,/tasks/{id}/annotations,Admin,N/A -# view:annotations,Task,Sandbox,"Owner, Project:owner, Assignee, Project:assignee",,GET,/tasks/{id}/annotations,None,N/A -# view:annotations,Task,Organization,None,,GET,/tasks/{id}/annotations,User,Maintainer -# view:annotations,Task,Organization,"Owner, Project:owner, Assignee, Project:assignee",,GET,/tasks/{id}/annotations,None,Worker -# update:annotations,Task,Sandbox,None,,"PATCH, PUT",/tasks/{id}/annotations,Admin,N/A -# update:annotations,Task,Sandbox,"Owner, Project:owner, Assignee, Project:assignee",,"PATCH, PUT",/tasks/{id}/annotations,Worker,N/A -# update:annotations,Task,Organization,None,,"PATCH, PUT",/tasks/{id}/annotations,User,Maintainer -# update:annotations,Task,Organization,"Owner, Project:owner, Assignee, Project:assignee",,"PATCH, PUT",/tasks/{id}/annotations,Worker,Worker -# delete:annotations,Task,Sandbox,None,,DELETE,/tasks/{id}/annotations,Admin,N/A -# delete:annotations,Task,Sandbox,"Owner, Project:owner, Assignee, Project:assignee",,DELETE,/tasks/{id}/annotations,Worker,N/A -# delete:annotations,Task,Organization,None,,DELETE,/tasks/{id}/annotations,User,Maintainer -# delete:annotations,Task,Organization,"Owner, Project:owner, Assignee, Project:assignee",,DELETE,/tasks/{id}/annotations,Worker,Worker -# export:dataset,Task,Sandbox,None,,GET,/tasks/{id}/dataset?format=,Admin,N/A -# export:dataset,Task,Sandbox,"Owner, Project:owner, Assignee, Project:assignee",,GET,/tasks/{id}/dataset?format=,None,N/A -# export:dataset,Task,Organization,None,,GET,/tasks/{id}/dataset?format=,User,Maintainer -# export:dataset,Task,Organization,"Owner, Project:owner, Assignee, Project:assignee",,GET,/tasks/{id}/dataset?format=,None,Worker -# view:data,Task,Sandbox,None,,GET,"/tasks/{id}/data, /tasks/{id}/data/meta",Admin,N/A -# view:data,Task,Sandbox,"Owner, Project:owner, Assignee, Project:assignee",,GET,"/tasks/{id}/data, /tasks/{id}/data/meta",None,N/A -# view:data,Task,Organization,None,,GET,"/tasks/{id}/data, /tasks/{id}/data/meta",User,Maintainer -# view:data,Task,Organization,"Owner, Project:owner, Assignee, Project:assignee",,GET,"/tasks/{id}/data, /tasks/{id}/data/meta",None,Worker -# view:metadata,Task,Sandbox,None,,GET,"/tasks/{id}/data, /tasks/{id}/data/meta",Admin,N/A -# view:metadata,Task,Sandbox,"Owner, Project:owner, Assignee, Project:assignee",,GET,"/tasks/{id}/data, /tasks/{id}/data/meta",None,N/A -# view:metadata,Task,Organization,None,,GET,"/tasks/{id}/data, /tasks/{id}/data/meta",User,Maintainer -# view:metadata,Task,Organization,"Owner, Project:owner, Assignee, Project:assignee",,GET,"/tasks/{id}/data, /tasks/{id}/data/meta",None,Worker -# update:metadata,Task,Sandbox,None,,PATCH,/tasks/{id}/data/meta,Admin,N/A -# update:metadata,Task,Sandbox,"Owner, Project:owner, Assignee, Project:assignee",,PATCH,/tasks/{id}/data/meta,Worker,N/A -# update:metadata,Task,Organization,None,,PATCH,/tasks/{id}/data/meta,User,Maintainer -# update:metadata,Task,Organization,"Owner, Project:owner, Assignee, Project:assignee",,PATCH,/tasks/{id}/data/meta,Worker,Worker -# upload:data,Task,Sandbox,None,,POST,/tasks/{id}/data,Admin,N/A -# upload:data,Task,Sandbox,"Owner, Project:owner, Assignee, Project:assignee",,POST,/tasks/{id}/data,Worker,N/A -# upload:data,Task,Organization,None,,POST,/tasks/{id}/data,User,Maintainer -# upload:data,Task,Organization,"Owner, Project:owner, Assignee, Project:assignee",,POST,/tasks/{id}/data,Worker,Worker -# import:annotations,Task,Sandbox,None,,PUT,/tasks/{id}/annotations?format=,Admin,N/A -# import:annotations,Task,Sandbox,"Owner, Project:owner, Assignee, Project:assignee",,PUT,/tasks/{id}/annotations?format=,Worker,N/A -# import:annotations,Task,Organization,None,,PUT,/tasks/{id}/annotations?format=,User,Maintainer -# import:annotations,Task,Organization,"Owner, Project:owner, Assignee, Project:assignee",,PUT,/tasks/{id}/annotations?format=,Worker,Worker -# export:annotations,Task,Sandbox,None,,GET,/tasks/{id}/annotations?format=,Admin,N/A -# export:annotations,Task,Sandbox,"Owner, Project:owner, Assignee, Project:assignee",,GET,/tasks/{id}/annotations?format=,None,N/A -# export:annotations,Task,Organization,None,,GET,/tasks/{id}/annotations?format=,User,Maintainer -# export:annotations,Task,Organization,"Owner, Project:owner, Assignee, Project:assignee",,GET,/tasks/{id}/annotations?format=,None,Worker -# export:backup,Task,Sandbox,None,,GET,/tasks/{id}/backup,Admin,N/A -# export:backup,Task,Sandbox,"Owner, Project:owner, Assignee, Project:assignee",,GET,/tasks/{id}/backup,None,N/A -# export:backup,Task,Organization,None,,GET,/tasks/{id}/backup,User,Maintainer -# export:backup,Task,Organization,"Owner, Project:owner, Assignee, Project:assignee",,GET,/tasks/{id}/backup,None,Worker -# update:organization,"Task, Organization",Sandbox,"None, Assignee",,PATCH,/tasks/{id},Admin,N/A -# update:organization,"Task, Organization",Sandbox,"Owner, Project:owner, Project:assignee",,PATCH,/tasks/{id},Worker,N/A -# update:organization,"Task, Organization",Organization,"None, Assignee",,PATCH,/tasks/{id},User,Maintainer -# update:organization,"Task, Organization",Organization,"Owner, Project:owner, Project:assignee",,PATCH,/tasks/{id},Worker,Worker diff --git a/cvat/apps/iam/rules/tests/README.md b/cvat/apps/iam/rules/tests/README.md new file mode 100644 index 00000000..7b30d4db --- /dev/null +++ b/cvat/apps/iam/rules/tests/README.md @@ -0,0 +1,3 @@ +# Open Policy Agent Tests + +Read more [here](https://opencv.github.io/cvat/docs/contributing/running-tests/#opa-tests) diff --git a/cvat/apps/iam/rules/analytics.csv b/cvat/apps/iam/rules/tests/configs/analytics.csv similarity index 100% rename from cvat/apps/iam/rules/analytics.csv rename to cvat/apps/iam/rules/tests/configs/analytics.csv diff --git a/cvat/apps/iam/rules/auth.csv b/cvat/apps/iam/rules/tests/configs/auth.csv similarity index 100% rename from cvat/apps/iam/rules/auth.csv rename to cvat/apps/iam/rules/tests/configs/auth.csv diff --git a/cvat/apps/iam/rules/cloudstorages.csv b/cvat/apps/iam/rules/tests/configs/cloudstorages.csv similarity index 100% rename from cvat/apps/iam/rules/cloudstorages.csv rename to cvat/apps/iam/rules/tests/configs/cloudstorages.csv diff --git a/cvat/apps/iam/rules/comments.csv b/cvat/apps/iam/rules/tests/configs/comments.csv similarity index 100% rename from cvat/apps/iam/rules/comments.csv rename to cvat/apps/iam/rules/tests/configs/comments.csv diff --git a/cvat/apps/iam/rules/invitations.csv b/cvat/apps/iam/rules/tests/configs/invitations.csv similarity index 100% rename from cvat/apps/iam/rules/invitations.csv rename to cvat/apps/iam/rules/tests/configs/invitations.csv diff --git a/cvat/apps/iam/rules/issues.csv b/cvat/apps/iam/rules/tests/configs/issues.csv similarity index 100% rename from cvat/apps/iam/rules/issues.csv rename to cvat/apps/iam/rules/tests/configs/issues.csv diff --git a/cvat/apps/iam/rules/jobs.csv b/cvat/apps/iam/rules/tests/configs/jobs.csv similarity index 100% rename from cvat/apps/iam/rules/jobs.csv rename to cvat/apps/iam/rules/tests/configs/jobs.csv diff --git a/cvat/apps/iam/rules/lambda.csv b/cvat/apps/iam/rules/tests/configs/lambda.csv similarity index 100% rename from cvat/apps/iam/rules/lambda.csv rename to cvat/apps/iam/rules/tests/configs/lambda.csv diff --git a/cvat/apps/iam/rules/memberships.csv b/cvat/apps/iam/rules/tests/configs/memberships.csv similarity index 100% rename from cvat/apps/iam/rules/memberships.csv rename to cvat/apps/iam/rules/tests/configs/memberships.csv diff --git a/cvat/apps/iam/rules/organizations.csv b/cvat/apps/iam/rules/tests/configs/organizations.csv similarity index 100% rename from cvat/apps/iam/rules/organizations.csv rename to cvat/apps/iam/rules/tests/configs/organizations.csv diff --git a/cvat/apps/iam/rules/projects.csv b/cvat/apps/iam/rules/tests/configs/projects.csv similarity index 100% rename from cvat/apps/iam/rules/projects.csv rename to cvat/apps/iam/rules/tests/configs/projects.csv diff --git a/cvat/apps/iam/rules/server.csv b/cvat/apps/iam/rules/tests/configs/server.csv similarity index 100% rename from cvat/apps/iam/rules/server.csv rename to cvat/apps/iam/rules/tests/configs/server.csv diff --git a/cvat/apps/iam/rules/tasks.csv b/cvat/apps/iam/rules/tests/configs/tasks.csv similarity index 100% rename from cvat/apps/iam/rules/tasks.csv rename to cvat/apps/iam/rules/tests/configs/tasks.csv diff --git a/cvat/apps/iam/rules/users.csv b/cvat/apps/iam/rules/tests/configs/users.csv similarity index 100% rename from cvat/apps/iam/rules/users.csv rename to cvat/apps/iam/rules/tests/configs/users.csv diff --git a/cvat/apps/iam/rules/webhooks.csv b/cvat/apps/iam/rules/tests/configs/webhooks.csv similarity index 100% rename from cvat/apps/iam/rules/webhooks.csv rename to cvat/apps/iam/rules/tests/configs/webhooks.csv diff --git a/cvat/apps/iam/rules/tests/generate_tests.py b/cvat/apps/iam/rules/tests/generate_tests.py new file mode 100755 index 00000000..72f016ba --- /dev/null +++ b/cvat/apps/iam/rules/tests/generate_tests.py @@ -0,0 +1,73 @@ +#!/usr/bin/env python3 +# +# Copyright (C) 2022 CVAT.ai Corporation +# +# SPDX-License-Identifier: MIT + +import os +import os.path as osp +import subprocess +import sys +from argparse import ArgumentParser, Namespace +from concurrent.futures import ThreadPoolExecutor +from functools import partial +from glob import glob +from typing import Optional, Sequence + + +def create_arg_parser() -> ArgumentParser: + parser = ArgumentParser(add_help=True) + parser.add_argument( + "-c", + "--config-dir", + default=None, + help="The directory with test configs in CSV format (default: the default location)", + ) + parser.add_argument( + "-g", + "--gen-dir", + default=None, + help="The directory with test generators (default: the default location)", + ) + parser.add_argument( + "-o", + "--output-dir", + default=".", + type=osp.abspath, + help="The output directory for rego files (default: current dir)", + ) + return parser + + +def parse_args(args: Optional[Sequence[str]] = None) -> Namespace: + parser = create_arg_parser() + parsed_args = parser.parse_args(args) + return parsed_args + + +def call_generator(module_path: str, gen_params: Namespace): + subprocess.check_call( + ["python3", module_path, gen_params.config_dir], cwd=gen_params.output_dir + ) + + +def main(args: Optional[Sequence[str]] = None) -> int: + args = parse_args(args) + + args.config_dir = osp.abspath(args.config_dir or osp.join(osp.dirname(__file__), "configs")) + args.gen_dir = osp.abspath(args.gen_dir or osp.join(osp.dirname(__file__), "generators")) + + assert osp.isdir(args.config_dir) + assert osp.isdir(args.gen_dir) + + os.makedirs(args.output_dir, exist_ok=True) + + with ThreadPoolExecutor() as pool: + pool.map( + partial(call_generator, gen_params=args), + glob(osp.join(args.gen_dir, "*_test.gen.rego.py")), + ) + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/cvat/apps/iam/rules/tests/generators/analytics_test.gen.rego.py b/cvat/apps/iam/rules/tests/generators/analytics_test.gen.rego.py new file mode 100644 index 00000000..e2fc73eb --- /dev/null +++ b/cvat/apps/iam/rules/tests/generators/analytics_test.gen.rego.py @@ -0,0 +1,179 @@ +# Copyright (C) 2022 CVAT.ai Corporation +# +# SPDX-License-Identifier: MIT + +import csv +import json +import os +import random +import sys +from itertools import product + +NAME = "analytics" + + +def read_rules(name): + rules = [] + with open(os.path.join(sys.argv[1], f"{name}.csv")) as f: + reader = csv.DictReader(f) + for row in reader: + row = {k.lower(): v.lower().replace("n/a", "na") for k, v in row.items()} + row["limit"] = row["limit"].replace("none", "None") + found = False + for col, val in row.items(): + if col in ["limit", "method", "url"]: + continue + complex_val = [v.strip() for v in val.split(",")] + if len(complex_val) > 1: + found = True + for item in complex_val: + new_row = row.copy() + new_row[col] = item + rules.append(new_row) + if not found: + rules.append(row) + + return rules + + +simple_rules = read_rules(NAME) + +SCOPES = {rule["scope"] for rule in simple_rules} +CONTEXTS = ["sandbox", "organization"] +OWNERSHIPS = ["none"] +GROUPS = ["admin", "business", "user", "worker", "none"] +ORG_ROLES = ["owner", "maintainer", "supervisor", "worker", None] + + +def RESOURCES(scope): + if scope == "view": + return [ + {"visibility": "public"}, + {"visibility": "private"}, + ] + + return [None] + + +def eval_rule(scope, context, ownership, privilege, membership, data): + if privilege == "admin": + return True + + rules = list(filter(lambda r: scope == r["scope"], simple_rules)) + rules = list(filter(lambda r: r["context"] == "na" or context == r["context"], rules)) + rules = list(filter(lambda r: r["ownership"] == "na" or ownership == r["ownership"], rules)) + rules = list( + filter( + lambda r: r["membership"] == "na" + or ORG_ROLES.index(membership) <= ORG_ROLES.index(r["membership"]), + rules, + ) + ) + rules = list(filter(lambda r: GROUPS.index(privilege) <= GROUPS.index(r["privilege"]), rules)) + resource = data["resource"] + rules = list(filter(lambda r: eval(r["limit"], {"resource": resource}), rules)) + + return bool(rules) + + +def get_data(scope, context, ownership, privilege, membership, resource): + data = { + "scope": scope, + "auth": { + "user": {"id": random.randrange(0, 100), "privilege": privilege}, + "organization": { + "id": random.randrange(100, 200), + "owner": {"id": random.randrange(200, 300)}, + "user": {"role": membership}, + } + if context == "organization" + else None, + }, + "resource": resource, + } + + user_id = data["auth"]["user"]["id"] + if context == "organization": + if data["auth"]["organization"]["user"]["role"] == "owner": + data["auth"]["organization"]["owner"]["id"] = user_id + + return data + + +def _get_name(prefix, **kwargs): + name = prefix + for k, v in kwargs.items(): + if k == "resource": + continue + prefix = "_" + str(k) + if isinstance(v, dict): + if "id" in v: + v = v.copy() + v.pop("id") + if v: + name += _get_name(prefix, **v) + else: + name += "".join( + map( + lambda c: c if c.isalnum() else {"@": "_IN_"}.get(c, "_"), + f"{prefix}_{str(v).upper()}", + ) + ) + + return name + + +def get_name(scope, context, ownership, privilege, membership, resource): + return _get_name("test", **locals()) + + +def is_valid(scope, context, ownership, privilege, membership, resource): + if context == "sandbox" and membership: + return False + if scope == "list" and ownership != "None": + return False + + return True + + +def gen_test_rego(name): + with open(f"{name}_test.gen.rego", "wt") as f: + f.write(f"package {name}\n\n") + for scope, context, ownership, privilege, membership in product( + SCOPES, CONTEXTS, OWNERSHIPS, GROUPS, ORG_ROLES + ): + for resource in RESOURCES(scope): + if not is_valid(scope, context, ownership, privilege, membership, resource): + continue + + data = get_data(scope, context, ownership, privilege, membership, resource) + test_name = get_name(scope, context, ownership, privilege, membership, resource) + result = eval_rule(scope, context, ownership, privilege, membership, data) + f.write( + "{test_name} {{\n {allow} with input as {data}\n}}\n\n".format( + test_name=test_name, + allow="allow" if result else "not allow", + data=json.dumps(data), + ) + ) + + # Write the script which is used to generate the file + with open(sys.argv[0]) as this_file: + f.write(f"\n\n# {os.path.split(sys.argv[0])[1]}\n") + for line in this_file: + if line.strip(): + f.write(f"# {line}") + else: + f.write(f"#\n") + + # Write rules which are used to generate the file + with open(os.path.join(sys.argv[1], f"{name}.csv")) as rego_file: + f.write(f"\n\n# {name}.csv\n") + for line in rego_file: + if line.strip(): + f.write(f"# {line}") + else: + f.write(f"#\n") + + +gen_test_rego(NAME) diff --git a/cvat/apps/iam/rules/tests/generators/cloudstorages_test.gen.rego.py b/cvat/apps/iam/rules/tests/generators/cloudstorages_test.gen.rego.py new file mode 100644 index 00000000..04802e5e --- /dev/null +++ b/cvat/apps/iam/rules/tests/generators/cloudstorages_test.gen.rego.py @@ -0,0 +1,205 @@ +# Copyright (C) 2022 CVAT.ai Corporation +# +# SPDX-License-Identifier: MIT + +import csv +import json +import os +import random +import sys +from itertools import product + +NAME = "cloudstorages" + + +def read_rules(name): + rules = [] + with open(os.path.join(sys.argv[1], f"{name}.csv")) as f: + reader = csv.DictReader(f) + for row in reader: + row = {k.lower(): v.lower().replace("n/a", "na") for k, v in row.items()} + row["limit"] = row["limit"].replace("none", "None") + found = False + for col, val in row.items(): + if col in ["limit", "method", "url"]: + continue + complex_val = [v.strip() for v in val.split(",")] + if len(complex_val) > 1: + found = True + for item in complex_val: + new_row = row.copy() + new_row[col] = item + rules.append(new_row) + if not found: + rules.append(row) + + return rules + + +simple_rules = read_rules(NAME) + +SCOPES = {rule["scope"] for rule in simple_rules} +CONTEXTS = ["sandbox", "organization"] +OWNERSHIPS = ["owner", "none"] +GROUPS = ["admin", "business", "user", "worker", "none"] +ORG_ROLES = ["owner", "maintainer", "supervisor", "worker", None] +SAME_ORG = [False, True] + + +def RESOURCES(scope): + if scope == "list": + return [None] + else: + return [ + { + "id": random.randrange(300, 400), + "owner": {"id": random.randrange(400, 500)}, + "organization": {"id": random.randrange(500, 600)}, + "user": {"num_resources": random.randrange(10)}, + } + ] + + +def is_same_org(org1, org2): + if org1 is not None and org2 is not None: + return org1["id"] == org2["id"] + elif org1 is None and org2 is None: + return True + else: + return False + + +def eval_rule(scope, context, ownership, privilege, membership, data): + if privilege == "admin": + return True + + rules = list(filter(lambda r: scope == r["scope"], simple_rules)) + rules = list(filter(lambda r: r["context"] == "na" or context == r["context"], rules)) + rules = list(filter(lambda r: r["ownership"] == "na" or ownership == r["ownership"], rules)) + rules = list( + filter( + lambda r: r["membership"] == "na" + or ORG_ROLES.index(membership) <= ORG_ROLES.index(r["membership"]), + rules, + ) + ) + rules = list(filter(lambda r: GROUPS.index(privilege) <= GROUPS.index(r["privilege"]), rules)) + resource = data["resource"] + rules = list( + filter(lambda r: not r["limit"] or eval(r["limit"], {"resource": resource}), rules) + ) + if ( + not is_same_org(data["auth"]["organization"], data["resource"]["organization"]) + and context != "sandbox" + ): + return False + + return bool(rules) + + +def get_data(scope, context, ownership, privilege, membership, resource, same_org): + data = { + "scope": scope, + "auth": { + "user": {"id": random.randrange(0, 100), "privilege": privilege}, + "organization": { + "id": random.randrange(100, 200), + "owner": {"id": random.randrange(200, 300)}, + "user": {"role": membership}, + } + if context == "organization" + else None, + }, + "resource": resource, + } + + user_id = data["auth"]["user"]["id"] + if context == "organization": + org_id = data["auth"]["organization"]["id"] + if data["auth"]["organization"]["user"]["role"] == "owner": + data["auth"]["organization"]["owner"]["id"] = user_id + + if same_org: + data["resource"]["organization"]["id"] = org_id + + if ownership == "owner": + data["resource"]["owner"]["id"] = user_id + + return data + + +def _get_name(prefix, **kwargs): + name = prefix + for k, v in kwargs.items(): + prefix = "_" + str(k) + if isinstance(v, dict): + if "id" not in v: + name += _get_name(prefix, **v) + else: + name += f'{prefix}_{str(v).upper().replace(":", "_")}' + + return name + + +def get_name(scope, context, ownership, privilege, membership, resource, same_org): + return _get_name("test", **locals()) + + +def is_valid(scope, context, ownership, privilege, membership, resource, same_org): + if context == "sandbox" and membership: + return False + if scope == "list" and ownership != "None": + return False + if context == "sandbox" and same_org is False: + return False + + return True + + +def gen_test_rego(name): + with open(f"{name}_test.gen.rego", "wt") as f: + f.write(f"package {name}\n\n") + for scope, context, ownership, privilege, membership, same_org in product( + SCOPES, CONTEXTS, OWNERSHIPS, GROUPS, ORG_ROLES, SAME_ORG + ): + for resource in RESOURCES(scope): + if not is_valid( + scope, context, ownership, privilege, membership, resource, same_org + ): + continue + + data = get_data( + scope, context, ownership, privilege, membership, resource, same_org + ) + test_name = get_name( + scope, context, ownership, privilege, membership, resource, same_org + ) + result = eval_rule(scope, context, ownership, privilege, membership, data) + f.write( + "{test_name} {{\n {allow} with input as {data}\n}}\n\n".format( + test_name=test_name, + allow="allow" if result else "not allow", + data=json.dumps(data), + ) + ) + + # Write the script which is used to generate the file + with open(sys.argv[0]) as this_file: + f.write(f"\n\n# {os.path.split(sys.argv[0])[1]}\n") + for line in this_file: + if line.strip(): + f.write(f"# {line}") + else: + f.write(f"#\n") + + # Write rules which are used to generate the file + with open(os.path.join(sys.argv[1], f"{name}.csv")) as rego_file: + f.write(f"\n\n# {name}.csv\n") + for line in rego_file: + if line.strip(): + f.write(f"# {line}") + else: + f.write(f"#\n") + + +gen_test_rego(NAME) diff --git a/cvat/apps/iam/rules/tests/generators/comments_test.gen.rego.py b/cvat/apps/iam/rules/tests/generators/comments_test.gen.rego.py new file mode 100644 index 00000000..b8c2eff1 --- /dev/null +++ b/cvat/apps/iam/rules/tests/generators/comments_test.gen.rego.py @@ -0,0 +1,270 @@ +# Copyright (C) 2022 CVAT.ai Corporation +# +# SPDX-License-Identifier: MIT + +import csv +import json +import os +import random +import sys +from itertools import product + +NAME = "comments" + + +def read_rules(name): + rules = [] + with open(os.path.join(sys.argv[1], f"{name}.csv")) as f: + reader = csv.DictReader(f) + for row in reader: + row = {k.lower(): v.lower().replace("n/a", "na") for k, v in row.items()} + row["limit"] = row["limit"].replace("none", "None") + found = False + for col, val in row.items(): + if col in ["limit", "method", "url", "resource"]: + continue + complex_val = [v.strip() for v in val.split(",")] + if len(complex_val) > 1: + found = True + for item in complex_val: + new_row = row.copy() + new_row[col] = item + rules.append(new_row) + if not found: + rules.append(row) + + return rules + + +simple_rules = read_rules(NAME) + +SCOPES = list({rule["scope"] for rule in simple_rules}) +CONTEXTS = ["sandbox", "organization"] +OWNERSHIPS = [ + "project:owner", + "project:assignee", + "task:owner", + "task:assignee", + "job:assignee", + "issue:owner", + "issue:assignee", + "owner", + "none", +] +GROUPS = ["admin", "business", "user", "worker", "none"] +ORG_ROLES = ["owner", "maintainer", "supervisor", "worker", None] +SAME_ORG = [True, False] +HAS_PROJ = [True, False] + + +def RESOURCES(scope): + if scope == "list": + return [None] + else: + return [ + { + "id": random.randrange(300, 400), + "owner": {"id": random.randrange(600, 700)}, + "assignee": {"id": random.randrange(500, 600)}, + "project": { + "id": random.randrange(300, 400), + "owner": {"id": random.randrange(700, 800)}, + "assignee": {"id": random.randrange(800, 900)}, + }, + "task": { + "id": random.randrange(300, 400), + "owner": {"id": random.randrange(900, 1000)}, + "assignee": {"id": random.randrange(1000, 1100)}, + }, + "job": { + "id": random.randrange(300, 400), + "assignee": {"id": random.randrange(1100, 1200)}, + }, + "issue": { + "id": random.randrange(300, 400), + "owner": {"id": random.randrange(1200, 1300)}, + "assignee": {"id": random.randrange(1300, 1400)}, + }, + "organization": {"id": random.randrange(1400, 1500)}, + } + ] + + +def is_same_org(org1, org2): + if org1 is not None and org2 is not None: + return org1["id"] == org2["id"] + elif org1 is None and org2 is None: + return True + else: + return False + + +def eval_rule(scope, context, ownership, privilege, membership, data): + if privilege == "admin": + return True + + rules = list(filter(lambda r: scope == r["scope"], simple_rules)) + rules = list(filter(lambda r: r["context"] == "na" or context == r["context"], rules)) + rules = list(filter(lambda r: r["ownership"] == "na" or ownership == r["ownership"], rules)) + rules = list( + filter( + lambda r: r["membership"] == "na" + or ORG_ROLES.index(membership) <= ORG_ROLES.index(r["membership"]), + rules, + ) + ) + rules = list(filter(lambda r: GROUPS.index(privilege) <= GROUPS.index(r["privilege"]), rules)) + resource = data["resource"] + rules = list( + filter(lambda r: not r["limit"] or eval(r["limit"], {"resource": resource}), rules) + ) + if ( + not is_same_org(data["auth"]["organization"], data["resource"]["organization"]) + and context != "sandbox" + ): + return False + + return bool(rules) + + +def get_data(scope, context, ownership, privilege, membership, resource, same_org): + data = { + "scope": scope, + "auth": { + "user": {"id": random.randrange(0, 100), "privilege": privilege}, + "organization": { + "id": random.randrange(100, 200), + "owner": {"id": random.randrange(200, 300)}, + "user": {"role": membership}, + } + if context == "organization" + else None, + }, + "resource": resource, + } + + user_id = data["auth"]["user"]["id"] + if context == "organization": + org_id = data["auth"]["organization"]["id"] + if data["auth"]["organization"]["user"]["role"] == "owner": + data["auth"]["organization"]["owner"]["id"] = user_id + + if same_org: + data["resource"]["organization"]["id"] = org_id + + if ownership == "owner": + data["resource"]["owner"]["id"] = user_id + + if ownership == "project:owner": + data["resource"]["project"]["owner"]["id"] = user_id + + if ownership == "project:assignee": + data["resource"]["project"]["assignee"]["id"] = user_id + + if ownership == "task:owner": + data["resource"]["task"]["owner"]["id"] = user_id + + if ownership == "task:assignee": + data["resource"]["task"]["assignee"]["id"] = user_id + + if ownership == "job:assignee": + data["resource"]["job"]["assignee"]["id"] = user_id + + if ownership == "issue:owner": + data["resource"]["issue"]["owner"]["id"] = user_id + + if ownership == "issue:assignee": + data["resource"]["issue"]["assignee"]["id"] = user_id + + return data + + +def _get_name(prefix, **kwargs): + name = prefix + for k, v in kwargs.items(): + if k == "resource": + continue + prefix = "_" + str(k) + if isinstance(v, dict): + if "id" in v: + v = v.copy() + v.pop("id") + if v: + name += _get_name(prefix, **v) + else: + name += "".join( + map( + lambda c: c if c.isalnum() else {"@": "_IN_"}.get(c, "_"), + f"{prefix}_{str(v).upper()}", + ) + ) + + return name + + +def get_name(scope, context, ownership, privilege, membership, resource, same_org, has_proj): + return _get_name("test", **locals()) + + +def is_valid(scope, context, ownership, privilege, membership, resource, same_org, has_proj): + if context == "sandbox" and membership: + return False + if scope == "list" and ownership != "None": + return False + if context == "sandbox" and same_org is False: + return False + if not has_proj and ownership.startswith("project"): + return False + if scope == "create@issue" and ownership == "owner": + return False + + return True + + +def gen_test_rego(name): + with open(f"{name}_test.gen.rego", "wt") as f: + f.write(f"package {name}\n\n") + for scope, context, ownership, privilege, membership, same_org, has_proj in product( + SCOPES, CONTEXTS, OWNERSHIPS, GROUPS, ORG_ROLES, SAME_ORG, HAS_PROJ + ): + for resource in RESOURCES(scope): + if not is_valid( + scope, context, ownership, privilege, membership, resource, same_org, has_proj + ): + continue + + data = get_data( + scope, context, ownership, privilege, membership, resource, same_org + ) + test_name = get_name( + scope, context, ownership, privilege, membership, resource, same_org, has_proj + ) + result = eval_rule(scope, context, ownership, privilege, membership, data) + f.write( + "{test_name} {{\n {allow} with input as {data}\n}}\n\n".format( + test_name=test_name, + allow="allow" if result else "not allow", + data=json.dumps(data), + ) + ) + + # Write the script which is used to generate the file + with open(sys.argv[0]) as this_file: + f.write(f"\n\n# {os.path.split(sys.argv[0])[1]}\n") + for line in this_file: + if line.strip(): + f.write(f"# {line}") + else: + f.write(f"#\n") + + # Write rules which are used to generate the file + with open(os.path.join(sys.argv[1], f"{name}.csv")) as rego_file: + f.write(f"\n\n# {name}.csv\n") + for line in rego_file: + if line.strip(): + f.write(f"# {line}") + else: + f.write(f"#\n") + + +gen_test_rego(NAME) diff --git a/cvat/apps/iam/rules/tests/generators/invitations_test.gen.rego.py b/cvat/apps/iam/rules/tests/generators/invitations_test.gen.rego.py new file mode 100644 index 00000000..1865236b --- /dev/null +++ b/cvat/apps/iam/rules/tests/generators/invitations_test.gen.rego.py @@ -0,0 +1,217 @@ +# Copyright (C) 2022 CVAT.ai Corporation +# +# SPDX-License-Identifier: MIT + +import csv +import json +import os +import random +import sys +from itertools import product + +NAME = "invitations" + + +def read_rules(name): + rules = [] + with open(os.path.join(sys.argv[1], f"{name}.csv")) as f: + reader = csv.DictReader(f) + for row in reader: + row = {k.lower(): v.lower().replace("n/a", "na") for k, v in row.items()} + row["limit"] = row["limit"].replace("none", "None") + found = False + for col, val in row.items(): + if col in ["limit", "method", "url"]: + continue + complex_val = [v.strip() for v in val.split(",")] + if len(complex_val) > 1: + found = True + for item in complex_val: + new_row = row.copy() + new_row[col] = item + rules.append(new_row) + if not found: + rules.append(row) + + return rules + + +simple_rules = read_rules(NAME) + +SCOPES = {rule["scope"] for rule in simple_rules} +CONTEXTS = ["sandbox", "organization"] +OWNERSHIPS = ["owner", "invitee", "none"] +GROUPS = ["admin", "business", "user", "worker", "none"] +ORG_ROLES = ["owner", "maintainer", "supervisor", "worker", None] +SAME_ORG = [False, True] + + +def RESOURCES(scope): + if scope == "list": + return [None] + else: + return [ + { + "owner": {"id": random.randrange(300, 400)}, + "invitee": {"id": random.randrange(400, 500)}, + "role": role, + "organization": {"id": random.randrange(500, 600)}, + } + for role in ORG_ROLES + if role is not None + ] + + +def is_same_org(org1, org2): + if org1 is not None and org2 is not None: + return org1["id"] == org2["id"] + elif org1 is None and org2 is None: + return True + else: + return False + + +def eval_rule(scope, context, ownership, privilege, membership, data): + if privilege == "admin": + return True + + rules = list(filter(lambda r: scope == r["scope"], simple_rules)) + rules = list(filter(lambda r: r["context"] == "na" or context == r["context"], rules)) + rules = list(filter(lambda r: r["ownership"] == "na" or ownership == r["ownership"], rules)) + rules = list( + filter( + lambda r: r["membership"] == "na" + or ORG_ROLES.index(membership) <= ORG_ROLES.index(r["membership"]), + rules, + ) + ) + rules = list(filter(lambda r: GROUPS.index(privilege) <= GROUPS.index(r["privilege"]), rules)) + resource = data["resource"] + rules = list( + filter( + lambda r: not r["limit"] + or r["limit"].startswith("filter") + or eval(r["limit"], {"resource": resource}), + rules, + ) + ) + if ( + not is_same_org(data["auth"]["organization"], data["resource"]["organization"]) + and context != "sandbox" + ): + return False + + return bool(rules) + + +def get_data(scope, context, ownership, privilege, membership, resource, same_org): + data = { + "scope": scope, + "auth": { + "user": {"id": random.randrange(0, 100), "privilege": privilege}, + "organization": { + "id": random.randrange(100, 200), + "owner": {"id": random.randrange(200, 300)}, + "user": {"role": membership}, + } + if context == "organization" + else None, + }, + "resource": resource, + } + + user_id = data["auth"]["user"]["id"] + if context == "organization": + org_id = data["auth"]["organization"]["id"] + if data["auth"]["organization"]["user"]["role"] == "owner": + data["auth"]["organization"]["owner"]["id"] = user_id + + if same_org: + data["resource"]["organization"]["id"] = org_id + + if ownership == "owner": + data["resource"]["owner"]["id"] = user_id + elif ownership == "invitee": + data["resource"]["invitee"]["id"] = user_id + + if scope == "create": + data["resource"]["invitee"]["id"] = None + + return data + + +def _get_name(prefix, **kwargs): + name = prefix + for k, v in kwargs.items(): + prefix = "_" + str(k) + if isinstance(v, dict): + if "id" not in v: + name += _get_name(prefix, **v) + else: + name += f"{prefix}_{str(v).upper()}" + + return name + + +def get_name(scope, context, ownership, privilege, membership, resource, same_org): + return _get_name("test", **locals()) + + +def is_valid(scope, context, ownership, privilege, membership, resource, same_org): + if context == "sandbox" and membership: + return False + if scope == "list" and ownership != "None": + return False + if context == "sandbox" and same_org is False: + return False + + return True + + +def gen_test_rego(name): + with open(f"{name}_test.gen.rego", "wt") as f: + f.write(f"package {name}\n\n") + for scope, context, ownership, privilege, membership, same_org in product( + SCOPES, CONTEXTS, OWNERSHIPS, GROUPS, ORG_ROLES, SAME_ORG + ): + for resource in RESOURCES(scope): + if not is_valid( + scope, context, ownership, privilege, membership, resource, same_org + ): + continue + + data = get_data( + scope, context, ownership, privilege, membership, resource, same_org + ) + test_name = get_name( + scope, context, ownership, privilege, membership, resource, same_org + ) + result = eval_rule(scope, context, ownership, privilege, membership, data) + f.write( + "{test_name} {{\n {allow} with input as {data}\n}}\n\n".format( + test_name=test_name, + allow="allow" if result else "not allow", + data=json.dumps(data), + ) + ) + + # Write the script which is used to generate the file + with open(sys.argv[0]) as this_file: + f.write(f"\n\n# {os.path.split(sys.argv[0])[1]}\n") + for line in this_file: + if line.strip(): + f.write(f"# {line}") + else: + f.write(f"#\n") + + # Write rules which are used to generate the file + with open(os.path.join(sys.argv[1], f"{name}.csv")) as rego_file: + f.write(f"\n\n# {name}.csv\n") + for line in rego_file: + if line.strip(): + f.write(f"# {line}") + else: + f.write(f"#\n") + + +gen_test_rego(NAME) diff --git a/cvat/apps/iam/rules/tests/generators/issues_test.gen.rego.py b/cvat/apps/iam/rules/tests/generators/issues_test.gen.rego.py new file mode 100644 index 00000000..7951bc92 --- /dev/null +++ b/cvat/apps/iam/rules/tests/generators/issues_test.gen.rego.py @@ -0,0 +1,261 @@ +# Copyright (C) 2022 CVAT.ai Corporation +# +# SPDX-License-Identifier: MIT + +import csv +import json +import os +import random +import sys +from itertools import product + +NAME = "issues" + + +def read_rules(name): + rules = [] + with open(os.path.join(sys.argv[1], f"{name}.csv")) as f: + reader = csv.DictReader(f) + for row in reader: + row = {k.lower(): v.lower().replace("n/a", "na") for k, v in row.items()} + row["limit"] = row["limit"].replace("none", "None") + found = False + for col, val in row.items(): + if col in ["limit", "method", "url", "resource"]: + continue + complex_val = [v.strip() for v in val.split(",")] + if len(complex_val) > 1: + found = True + for item in complex_val: + new_row = row.copy() + new_row[col] = item + rules.append(new_row) + if not found: + rules.append(row) + + return rules + + +simple_rules = read_rules(NAME) + +SCOPES = list({rule["scope"] for rule in simple_rules}) +CONTEXTS = ["sandbox", "organization"] +OWNERSHIPS = [ + "project:owner", + "project:assignee", + "task:owner", + "task:assignee", + "job:assignee", + "owner", + "assignee", + "none", +] +GROUPS = ["admin", "business", "user", "worker", "none"] +ORG_ROLES = ["owner", "maintainer", "supervisor", "worker", None] +SAME_ORG = [True, False] +HAS_PROJ = [True, False] + + +def RESOURCES(scope): + if scope == "list": + return [None] + else: + return [ + { + "id": random.randrange(300, 400), + "owner": {"id": random.randrange(600, 700)}, + "assignee": {"id": random.randrange(500, 600)}, + "project": { + "id": random.randrange(300, 400), + "owner": {"id": random.randrange(700, 800)}, + "assignee": {"id": random.randrange(800, 900)}, + }, + "task": { + "id": random.randrange(300, 400), + "owner": {"id": random.randrange(900, 1000)}, + "assignee": {"id": random.randrange(1000, 1100)}, + }, + "job": { + "id": random.randrange(300, 400), + "assignee": {"id": random.randrange(1100, 1200)}, + }, + "organization": {"id": random.randrange(1200, 1300)}, + } + ] + + +def is_same_org(org1, org2): + if org1 is not None and org2 is not None: + return org1["id"] == org2["id"] + elif org1 is None and org2 is None: + return True + else: + return False + + +def eval_rule(scope, context, ownership, privilege, membership, data): + if privilege == "admin": + return True + + rules = list(filter(lambda r: scope == r["scope"], simple_rules)) + rules = list(filter(lambda r: r["context"] == "na" or context == r["context"], rules)) + rules = list(filter(lambda r: r["ownership"] == "na" or ownership == r["ownership"], rules)) + rules = list( + filter( + lambda r: r["membership"] == "na" + or ORG_ROLES.index(membership) <= ORG_ROLES.index(r["membership"]), + rules, + ) + ) + rules = list(filter(lambda r: GROUPS.index(privilege) <= GROUPS.index(r["privilege"]), rules)) + resource = data["resource"] + rules = list( + filter(lambda r: not r["limit"] or eval(r["limit"], {"resource": resource}), rules) + ) + if ( + not is_same_org(data["auth"]["organization"], data["resource"]["organization"]) + and context != "sandbox" + ): + return False + + return bool(rules) + + +def get_data(scope, context, ownership, privilege, membership, resource, same_org): + data = { + "scope": scope, + "auth": { + "user": {"id": random.randrange(0, 100), "privilege": privilege}, + "organization": { + "id": random.randrange(100, 200), + "owner": {"id": random.randrange(200, 300)}, + "user": {"role": membership}, + } + if context == "organization" + else None, + }, + "resource": resource, + } + + user_id = data["auth"]["user"]["id"] + if context == "organization": + org_id = data["auth"]["organization"]["id"] + if data["auth"]["organization"]["user"]["role"] == "owner": + data["auth"]["organization"]["owner"]["id"] = user_id + + if same_org: + data["resource"]["organization"]["id"] = org_id + + if ownership == "owner": + data["resource"]["owner"]["id"] = user_id + + if ownership == "assignee": + data["resource"]["assignee"]["id"] = user_id + + if ownership == "project:owner": + data["resource"]["project"]["owner"]["id"] = user_id + + if ownership == "project:assignee": + data["resource"]["project"]["assignee"]["id"] = user_id + + if ownership == "task:owner": + data["resource"]["task"]["owner"]["id"] = user_id + + if ownership == "task:assignee": + data["resource"]["task"]["assignee"]["id"] = user_id + + if ownership == "job:assignee": + data["resource"]["job"]["assignee"]["id"] = user_id + + return data + + +def _get_name(prefix, **kwargs): + name = prefix + for k, v in kwargs.items(): + if k == "resource": + continue + prefix = "_" + str(k) + if isinstance(v, dict): + if "id" in v: + v = v.copy() + v.pop("id") + if v: + name += _get_name(prefix, **v) + else: + name += "".join( + map( + lambda c: c if c.isalnum() else {"@": "_IN_"}.get(c, "_"), + f"{prefix}_{str(v).upper()}", + ) + ) + + return name + + +def get_name(scope, context, ownership, privilege, membership, resource, same_org, has_proj): + return _get_name("test", **locals()) + + +def is_valid(scope, context, ownership, privilege, membership, resource, same_org, has_proj): + if context == "sandbox" and membership: + return False + if scope == "list" and ownership != "None": + return False + if context == "sandbox" and same_org is False: + return False + if not has_proj and ownership.startswith("project"): + return False + if scope == "create@job" and ownership in ["owner", "assignee"]: + return False + + return True + + +def gen_test_rego(name): + with open(f"{name}_test.gen.rego", "wt") as f: + f.write(f"package {name}\n\n") + for scope, context, ownership, privilege, membership, same_org, has_proj in product( + SCOPES, CONTEXTS, OWNERSHIPS, GROUPS, ORG_ROLES, SAME_ORG, HAS_PROJ + ): + for resource in RESOURCES(scope): + if not is_valid( + scope, context, ownership, privilege, membership, resource, same_org, has_proj + ): + continue + + data = get_data( + scope, context, ownership, privilege, membership, resource, same_org + ) + test_name = get_name( + scope, context, ownership, privilege, membership, resource, same_org, has_proj + ) + result = eval_rule(scope, context, ownership, privilege, membership, data) + f.write( + "{test_name} {{\n {allow} with input as {data}\n}}\n\n".format( + test_name=test_name, + allow="allow" if result else "not allow", + data=json.dumps(data), + ) + ) + + # Write the script which is used to generate the file + with open(sys.argv[0]) as this_file: + f.write(f"\n\n# {os.path.split(sys.argv[0])[1]}\n") + for line in this_file: + if line.strip(): + f.write(f"# {line}") + else: + f.write(f"#\n") + + # Write rules which are used to generate the file + with open(os.path.join(sys.argv[1], f"{name}.csv")) as rego_file: + f.write(f"\n\n# {name}.csv\n") + for line in rego_file: + if line.strip(): + f.write(f"# {line}") + else: + f.write(f"#\n") + + +gen_test_rego(NAME) diff --git a/cvat/apps/iam/rules/tests/generators/jobs_test.gen.rego.py b/cvat/apps/iam/rules/tests/generators/jobs_test.gen.rego.py new file mode 100644 index 00000000..b5af9119 --- /dev/null +++ b/cvat/apps/iam/rules/tests/generators/jobs_test.gen.rego.py @@ -0,0 +1,245 @@ +# Copyright (C) 2022 CVAT.ai Corporation +# +# SPDX-License-Identifier: MIT + +import csv +import json +import os +import random +import sys +from itertools import product + +random.seed(42) + +NAME = "jobs" + + +def read_rules(name): + rules = [] + with open(os.path.join(sys.argv[1], f"{name}.csv")) as f: + reader = csv.DictReader(f) + for row in reader: + row = {k.lower(): v.lower().replace("n/a", "na") for k, v in row.items()} + row["limit"] = row["limit"].replace("none", "None") + found = False + for col, val in row.items(): + if col in ["limit", "method", "url", "resource"]: + continue + complex_val = [v.strip() for v in val.split(",")] + if len(complex_val) > 1: + found = True + for item in complex_val: + new_row = row.copy() + new_row[col] = item + rules.append(new_row) + if not found: + rules.append(row) + + return rules + + +simple_rules = read_rules(NAME) + +SCOPES = list({rule["scope"] for rule in simple_rules}) +CONTEXTS = ["sandbox", "organization"] +OWNERSHIPS = [ + "project:owner", + "project:assignee", + "task:owner", + "task:assignee", + "assignee", + "none", +] +GROUPS = ["admin", "business", "user", "worker", "none"] +ORG_ROLES = ["owner", "maintainer", "supervisor", "worker", None] +SAME_ORG = [True, False] + + +def RESOURCES(scope): + if scope == "list": + return [None] + else: + return [ + { + "id": random.randrange(300, 400), + "assignee": {"id": random.randrange(500, 600)}, + "organization": {"id": random.randrange(600, 700)}, + "project": { + "id": random.randrange(300, 400), + "owner": {"id": random.randrange(700, 800)}, + "assignee": {"id": random.randrange(800, 900)}, + }, + "task": { + "id": random.randrange(300, 400), + "owner": {"id": random.randrange(900, 1000)}, + "assignee": {"id": random.randrange(1000, 1100)}, + }, + } + ] + + +def is_same_org(org1, org2): + if org1 is not None and org2 is not None: + return org1["id"] == org2["id"] + elif org1 is None and org2 is None: + return True + else: + return False + + +def eval_rule(scope, context, ownership, privilege, membership, data): + if privilege == "admin": + return True + + rules = list(filter(lambda r: scope == r["scope"], simple_rules)) + rules = list(filter(lambda r: r["context"] == "na" or context == r["context"], rules)) + rules = list(filter(lambda r: r["ownership"] == "na" or ownership == r["ownership"], rules)) + rules = list( + filter( + lambda r: r["membership"] == "na" + or ORG_ROLES.index(membership) <= ORG_ROLES.index(r["membership"]), + rules, + ) + ) + rules = list(filter(lambda r: GROUPS.index(privilege) <= GROUPS.index(r["privilege"]), rules)) + resource = data["resource"] + rules = list( + filter(lambda r: not r["limit"] or eval(r["limit"], {"resource": resource}), rules) + ) + if ( + not is_same_org(data["auth"]["organization"], data["resource"]["organization"]) + and context != "sandbox" + ): + return False + + return bool(rules) + + +def get_data(scope, context, ownership, privilege, membership, resource, same_org): + data = { + "scope": scope, + "auth": { + "user": {"id": random.randrange(0, 100), "privilege": privilege}, + "organization": { + "id": random.randrange(100, 200), + "owner": {"id": random.randrange(200, 300)}, + "user": {"role": membership}, + } + if context == "organization" + else None, + }, + "resource": resource, + } + + user_id = data["auth"]["user"]["id"] + if context == "organization": + org_id = data["auth"]["organization"]["id"] + if data["auth"]["organization"]["user"]["role"] == "owner": + data["auth"]["organization"]["owner"]["id"] = user_id + + if same_org: + data["resource"]["organization"]["id"] = org_id + + if ownership == "assignee": + data["resource"]["assignee"]["id"] = user_id + + if ownership == "project:owner": + data["resource"]["project"]["owner"]["id"] = user_id + + if ownership == "project:assignee": + data["resource"]["project"]["assignee"]["id"] = user_id + + if ownership == "task:owner": + data["resource"]["task"]["owner"]["id"] = user_id + + if ownership == "task:assignee": + data["resource"]["task"]["assignee"]["id"] = user_id + + return data + + +def _get_name(prefix, **kwargs): + name = prefix + for k, v in kwargs.items(): + if k == "resource": + continue + prefix = "_" + str(k) + if isinstance(v, dict): + if "id" in v: + v = v.copy() + v.pop("id") + if v: + name += _get_name(prefix, **v) + else: + name += "".join( + map( + lambda c: c if c.isalnum() else {"@": "_IN_"}.get(c, "_"), + f"{prefix}_{str(v).upper()}", + ) + ) + + return name + + +def get_name(scope, context, ownership, privilege, membership, resource, same_org): + return _get_name("test", **locals()) + + +def is_valid(scope, context, ownership, privilege, membership, resource, same_org): + if context == "sandbox" and membership: + return False + if scope == "list" and ownership != "None": + return False + if context == "sandbox" and same_org is False: + return False + + return True + + +def gen_test_rego(name): + with open(f"{name}_test.gen.rego", "wt") as f: + f.write(f"package {name}\n\n") + for scope, context, ownership, privilege, membership, same_org in product( + SCOPES, CONTEXTS, OWNERSHIPS, GROUPS, ORG_ROLES, SAME_ORG + ): + for resource in RESOURCES(scope): + if not is_valid( + scope, context, ownership, privilege, membership, resource, same_org + ): + continue + + data = get_data( + scope, context, ownership, privilege, membership, resource, same_org + ) + test_name = get_name( + scope, context, ownership, privilege, membership, resource, same_org + ) + result = eval_rule(scope, context, ownership, privilege, membership, data) + f.write( + "{test_name} {{\n {allow} with input as {data}\n}}\n\n".format( + test_name=test_name, + allow="allow" if result else "not allow", + data=json.dumps(data), + ) + ) + + # Write the script which is used to generate the file + with open(sys.argv[0]) as this_file: + f.write(f"\n\n# {os.path.split(sys.argv[0])[1]}\n") + for line in this_file: + if line.strip(): + f.write(f"# {line}") + else: + f.write(f"#\n") + + # Write rules which are used to generate the file + with open(os.path.join(sys.argv[1], f"{name}.csv")) as rego_file: + f.write(f"\n\n# {name}.csv\n") + for line in rego_file: + if line.strip(): + f.write(f"# {line}") + else: + f.write(f"#\n") + + +gen_test_rego(NAME) diff --git a/cvat/apps/iam/rules/tests/generators/lambda_test.gen.rego.py b/cvat/apps/iam/rules/tests/generators/lambda_test.gen.rego.py new file mode 100644 index 00000000..b2a9a765 --- /dev/null +++ b/cvat/apps/iam/rules/tests/generators/lambda_test.gen.rego.py @@ -0,0 +1,175 @@ +# Copyright (C) 2022 CVAT.ai Corporation +# +# SPDX-License-Identifier: MIT + +import csv +import json +import os +import random +import sys +from itertools import product + +NAME = "lambda" + + +def read_rules(name): + rules = [] + with open(os.path.join(sys.argv[1], f"{name}.csv")) as f: + reader = csv.DictReader(f) + for row in reader: + row = {k.lower(): v.lower().replace("n/a", "na") for k, v in row.items()} + row["limit"] = row["limit"].replace("none", "None") + found = False + for col, val in row.items(): + if col in ["limit", "method", "url", "resource"]: + continue + complex_val = [v.strip() for v in val.split(",")] + if len(complex_val) > 1: + found = True + for item in complex_val: + new_row = row.copy() + new_row[col] = item + rules.append(new_row) + if not found: + rules.append(row) + + return rules + + +simple_rules = read_rules(NAME) + +SCOPES = list({rule["scope"] for rule in simple_rules}) +CONTEXTS = ["sandbox", "organization"] +OWNERSHIPS = ["none"] +GROUPS = ["admin", "business", "user", "worker", "none"] +ORG_ROLES = ["owner", "maintainer", "supervisor", "worker", None] + + +def RESOURCES(scope): + return [None] + + +def eval_rule(scope, context, ownership, privilege, membership, data): + if privilege == "admin": + return True + + rules = list(filter(lambda r: scope == r["scope"], simple_rules)) + rules = list(filter(lambda r: r["context"] == "na" or context == r["context"], rules)) + rules = list(filter(lambda r: r["ownership"] == "na" or ownership == r["ownership"], rules)) + rules = list( + filter( + lambda r: r["membership"] == "na" + or ORG_ROLES.index(membership) <= ORG_ROLES.index(r["membership"]), + rules, + ) + ) + rules = list(filter(lambda r: GROUPS.index(privilege) <= GROUPS.index(r["privilege"]), rules)) + resource = data["resource"] + rules = list( + filter(lambda r: not r["limit"] or eval(r["limit"], {"resource": resource}), rules) + ) + + return bool(rules) + + +def get_data(scope, context, ownership, privilege, membership, resource): + data = { + "scope": scope, + "auth": { + "user": {"id": random.randrange(0, 100), "privilege": privilege}, + "organization": { + "id": random.randrange(100, 200), + "owner": {"id": random.randrange(200, 300)}, + "user": {"role": membership}, + } + if context == "organization" + else None, + }, + "resource": resource, + } + + user_id = data["auth"]["user"]["id"] + if context == "organization": + if data["auth"]["organization"]["user"]["role"] == "owner": + data["auth"]["organization"]["owner"]["id"] = user_id + + return data + + +def _get_name(prefix, **kwargs): + name = prefix + for k, v in kwargs.items(): + if k == "resource": + continue + prefix = "_" + str(k) + if isinstance(v, dict): + if "id" in v: + v = v.copy() + v.pop("id") + if v: + name += _get_name(prefix, **v) + else: + name += "".join( + map( + lambda c: c if c.isalnum() else {"@": "_IN_"}.get(c, "_"), + f"{prefix}_{str(v).upper()}", + ) + ) + + return name + + +def get_name(scope, context, ownership, privilege, membership, resource): + return _get_name("test", **locals()) + + +def is_valid(scope, context, ownership, privilege, membership, resource): + if context == "sandbox" and membership: + return False + if scope == "list" and ownership != "None": + return False + + return True + + +def gen_test_rego(name): + with open(f"{name}_test.gen.rego", "wt") as f: + f.write(f"package {name}\n\n") + for scope, context, ownership, privilege, membership in product( + SCOPES, CONTEXTS, OWNERSHIPS, GROUPS, ORG_ROLES + ): + for resource in RESOURCES(scope): + if not is_valid(scope, context, ownership, privilege, membership, resource): + continue + + data = get_data(scope, context, ownership, privilege, membership, resource) + test_name = get_name(scope, context, ownership, privilege, membership, resource) + result = eval_rule(scope, context, ownership, privilege, membership, data) + f.write( + "{test_name} {{\n {allow} with input as {data}\n}}\n\n".format( + test_name=test_name, + allow="allow" if result else "not allow", + data=json.dumps(data), + ) + ) + + # Write the script which is used to generate the file + with open(sys.argv[0]) as this_file: + f.write(f"\n\n# {os.path.split(sys.argv[0])[1]}\n") + for line in this_file: + if line.strip(): + f.write(f"# {line}") + else: + f.write(f"#\n") + + # Write rules which are used to generate the file + with open(os.path.join(sys.argv[1], f"{name}.csv")) as rego_file: + f.write(f"\n\n# {name}.csv\n") + for line in rego_file: + if line.strip(): + f.write(f"# {line}") + else: + f.write(f"#\n") + + +gen_test_rego(NAME) diff --git a/cvat/apps/iam/rules/tests/generators/memberships_test.gen.rego.py b/cvat/apps/iam/rules/tests/generators/memberships_test.gen.rego.py new file mode 100644 index 00000000..6510084d --- /dev/null +++ b/cvat/apps/iam/rules/tests/generators/memberships_test.gen.rego.py @@ -0,0 +1,211 @@ +# Copyright (C) 2022 CVAT.ai Corporation +# +# SPDX-License-Identifier: MIT + +import csv +import json +import os +import random +import sys +from itertools import product + +NAME = "memberships" + + +def read_rules(name): + rules = [] + with open(os.path.join(sys.argv[1], f"{name}.csv")) as f: + reader = csv.DictReader(f) + for row in reader: + row = {k.lower(): v.lower().replace("n/a", "na") for k, v in row.items()} + row["limit"] = row["limit"].replace("none", "None") + found = False + for col, val in row.items(): + if col in ["limit", "method", "url"]: + continue + complex_val = [v.strip() for v in val.split(",")] + if len(complex_val) > 1: + found = True + for item in complex_val: + new_row = row.copy() + new_row[col] = item + rules.append(new_row) + if not found: + rules.append(row) + + return rules + + +simple_rules = read_rules(NAME) + +SCOPES = {rule["scope"] for rule in simple_rules} +CONTEXTS = ["sandbox", "organization"] +OWNERSHIPS = ["self", "none"] +GROUPS = ["admin", "business", "user", "worker", "none"] +ORG_ROLES = ["owner", "maintainer", "supervisor", "worker", None] +SAME_ORG = [False, True] + + +def RESOURCES(scope): + if scope == "list": + return [None] + else: + return [ + { + "user": {"id": random.randrange(300, 400)}, + "is_active": active, + "role": role, + "organization": {"id": random.randrange(500, 600)}, + } + for role in ORG_ROLES + if role is not None + for active in [False, True] + ] + + +def is_same_org(org1, org2): + if org1 is not None and org2 is not None: + return org1["id"] == org2["id"] + elif org1 is None and org2 is None: + return True + else: + return False + + +def eval_rule(scope, context, ownership, privilege, membership, data): + if privilege == "admin": + return True + + rules = list(filter(lambda r: scope == r["scope"], simple_rules)) + rules = list(filter(lambda r: r["context"] == "na" or context == r["context"], rules)) + rules = list(filter(lambda r: r["ownership"] == "na" or ownership == r["ownership"], rules)) + rules = list( + filter( + lambda r: r["membership"] == "na" + or ORG_ROLES.index(membership) <= ORG_ROLES.index(r["membership"]), + rules, + ) + ) + rules = list(filter(lambda r: GROUPS.index(privilege) <= GROUPS.index(r["privilege"]), rules)) + resource = data["resource"] + rules = list( + filter(lambda r: not r["limit"] or eval(r["limit"], {"resource": resource}), rules) + ) + if ( + not is_same_org(data["auth"]["organization"], data["resource"]["organization"]) + and context != "sandbox" + ): + return False + + if scope != "create" and not data["resource"]["is_active"]: + return False + + return bool(rules) + + +def get_data(scope, context, ownership, privilege, membership, resource, same_org): + data = { + "scope": scope, + "auth": { + "user": {"id": random.randrange(0, 100), "privilege": privilege}, + "organization": { + "id": random.randrange(100, 200), + "owner": {"id": random.randrange(200, 300)}, + "user": {"role": membership}, + } + if context == "organization" + else None, + }, + "resource": resource, + } + + user_id = data["auth"]["user"]["id"] + if context == "organization": + org_id = data["auth"]["organization"]["id"] + if data["auth"]["organization"]["user"]["role"] == "owner": + data["auth"]["organization"]["owner"]["id"] = user_id + + if same_org: + data["resource"]["organization"]["id"] = org_id + + if ownership == "self": + data["resource"]["user"]["id"] = user_id + + return data + + +def _get_name(prefix, **kwargs): + name = prefix + for k, v in kwargs.items(): + prefix = "_" + str(k) + if isinstance(v, dict): + if "id" not in v: + name += _get_name(prefix, **v) + else: + name += f'{prefix}_{str(v).upper().replace(":", "_")}' + + return name + + +def get_name(scope, context, ownership, privilege, membership, resource, same_org): + return _get_name("test", **locals()) + + +def is_valid(scope, context, ownership, privilege, membership, resource, same_org): + if context == "sandbox" and membership: + return False + if scope == "list" and ownership != "None": + return False + if context == "sandbox" and same_org is False: + return False + + return True + + +def gen_test_rego(name): + with open(f"{name}_test.gen.rego", "wt") as f: + f.write(f"package {name}\n\n") + for scope, context, ownership, privilege, membership, same_org in product( + SCOPES, CONTEXTS, OWNERSHIPS, GROUPS, ORG_ROLES, SAME_ORG + ): + for resource in RESOURCES(scope): + if not is_valid( + scope, context, ownership, privilege, membership, resource, same_org + ): + continue + + data = get_data( + scope, context, ownership, privilege, membership, resource, same_org + ) + test_name = get_name( + scope, context, ownership, privilege, membership, resource, same_org + ) + result = eval_rule(scope, context, ownership, privilege, membership, data) + f.write( + "{test_name} {{\n {allow} with input as {data}\n}}\n\n".format( + test_name=test_name, + allow="allow" if result else "not allow", + data=json.dumps(data), + ) + ) + + # Write the script which is used to generate the file + with open(sys.argv[0]) as this_file: + f.write(f"\n\n# {os.path.split(sys.argv[0])[1]}\n") + for line in this_file: + if line.strip(): + f.write(f"# {line}") + else: + f.write(f"#\n") + + # Write rules which are used to generate the file + with open(os.path.join(sys.argv[1], f"{name}.csv")) as rego_file: + f.write(f"\n\n# {name}.csv\n") + for line in rego_file: + if line.strip(): + f.write(f"# {line}") + else: + f.write(f"#\n") + + +gen_test_rego(NAME) diff --git a/cvat/apps/iam/rules/tests/generators/organizations_test.gen.rego.py b/cvat/apps/iam/rules/tests/generators/organizations_test.gen.rego.py new file mode 100644 index 00000000..d4acedb4 --- /dev/null +++ b/cvat/apps/iam/rules/tests/generators/organizations_test.gen.rego.py @@ -0,0 +1,168 @@ +# Copyright (C) 2022 CVAT.ai Corporation +# +# SPDX-License-Identifier: MIT + +import csv +import json +import os +import random +import sys +from itertools import product + +NAME = "organizations" + + +def read_rules(name): + rules = [] + with open(os.path.join(sys.argv[1], f"{name}.csv")) as f: + reader = csv.DictReader(f) + for row in reader: + row = {k.lower(): v.lower().replace("n/a", "na") for k, v in row.items()} + row["limit"] = row["limit"].replace("none", "None") + found = False + for col, val in row.items(): + if col in ["limit", "method", "url"]: + continue + complex_val = [v.strip() for v in val.split(",")] + if len(complex_val) > 1: + found = True + for item in complex_val: + new_row = row.copy() + new_row[col] = item + rules.append(new_row) + if not found: + rules.append(row) + + return rules + + +simple_rules = read_rules(NAME) + +SCOPES = {rule["scope"] for rule in simple_rules} +CONTEXTS = ["sandbox", "organization"] +OWNERSHIPS = ["owner", "maintainer", "supervisor", "worker", "none"] +GROUPS = ["admin", "business", "user", "worker", "none"] +ORG_ROLES = ["owner", "maintainer", "supervisor", "worker", None] + + +def RESOURCES(ownership): + return [ + {"user": {"num_resources": n, "role": ownership if ownership != "none" else None}} + for n in (0, 1, 10) + ] + [None] + + +def eval_rule(scope, context, ownership, privilege, membership, data): + if privilege == "admin": + return True + rules = list(filter(lambda r: scope == r["scope"], simple_rules)) + rules = list(filter(lambda r: r["context"] == "na" or context == r["context"], rules)) + rules = list(filter(lambda r: r["ownership"] == "na" or ownership == r["ownership"], rules)) + rules = list(filter(lambda r: r["membership"] == "na" or membership == r["membership"], rules)) + rules = list(filter(lambda r: GROUPS.index(privilege) <= GROUPS.index(r["privilege"]), rules)) + resource = data["resource"] + rules = list( + filter( + lambda r: not r["limit"] + or r["limit"].startswith("filter") + or eval(r["limit"], {"resource": resource}), + rules, + ) + ) + + return bool(rules) + + +def get_data(scope, context, ownership, privilege, membership, resource): + data = { + "scope": scope, + "auth": { + "user": {"id": random.randrange(0, 100), "privilege": privilege}, + "organization": { + "id": random.randrange(100, 200), + "owner": {"id": random.randrange(200, 300)}, + "user": {"role": membership}, + } + if context == "organization" + else None, + }, + "resource": {**resource, "owner": {"id": random.randrange(300, 400)}} if resource else None, + } + + user_id = data["auth"]["user"]["id"] + if ownership == "owner": + data["resource"]["owner"]["id"] = user_id + + return data + + +def _get_name(prefix, **kwargs): + name = prefix + for k, v in kwargs.items(): + name += "_" + str(k) + if isinstance(v, dict): + name += _get_name("", **v) + else: + name += f"_{str(v).upper()}" + + return name + + +def get_name(scope, context, ownership, privilege, membership, resource): + return _get_name("test", **locals()) + + +def is_valid(scope, context, ownership, privilege, membership, resource): + if context == "sandbox" and membership: + return False + if scope == "list" and resource is not None: + return False + if resource is None and scope != "list": + return False + if scope == "list" and ownership != "None": + return False + + return True + + +def gen_test_rego(name): + with open(f"{name}_test.gen.rego", "wt") as f: + f.write(f"package {name}\n\n") + for scope, context, ownership, privilege, membership in product( + SCOPES, CONTEXTS, OWNERSHIPS, GROUPS, ORG_ROLES + ): + for resource in RESOURCES(ownership): + if not is_valid(scope, context, ownership, privilege, membership, resource): + continue + + test_name = get_name(scope, context, ownership, privilege, membership, resource) + data = get_data(scope, context, ownership, privilege, membership, resource) + result = eval_rule(scope, context, ownership, privilege, membership, data) + f.write( + "{test_name} {{\n {allow} with input as {data}\n}}\n\n".format( + test_name=test_name, + allow="allow" if result else "not allow", + data=json.dumps(data), + ) + ) + + # Write the script which is used to generate the file + with open(sys.argv[0]) as this_file: + f.write(f"\n\n# {os.path.split(sys.argv[0])[1]}\n") + for line in this_file: + if line.strip(): + f.write(f"# {line}") + else: + f.write(f"#\n") + + # Write rules which are used to generate the file + with open(os.path.join(sys.argv[1], f"{name}.csv")) as rego_file: + f.write(f"\n\n# {name}.csv\n") + for line in rego_file: + if line.strip(): + f.write(f"# {line}") + else: + f.write(f"#\n") + + +gen_test_rego(NAME) diff --git a/cvat/apps/iam/rules/tests/generators/projects_test.gen.rego.py b/cvat/apps/iam/rules/tests/generators/projects_test.gen.rego.py new file mode 100644 index 00000000..ba325f95 --- /dev/null +++ b/cvat/apps/iam/rules/tests/generators/projects_test.gen.rego.py @@ -0,0 +1,221 @@ +# Copyright (C) 2022 CVAT.ai Corporation +# +# SPDX-License-Identifier: MIT + +import csv +import json +import os +import random +import sys +from itertools import product + +NAME = "projects" + + +def read_rules(name): + rules = [] + with open(os.path.join(sys.argv[1], f"{name}.csv")) as f: + reader = csv.DictReader(f) + for row in reader: + row = {k.lower(): v.lower().replace("n/a", "na") for k, v in row.items()} + row["limit"] = row["limit"].replace("none", "None") + found = False + for col, val in row.items(): + if col in ["limit", "method", "url"]: + continue + complex_val = [v.strip() for v in val.split(",")] + if len(complex_val) > 1: + found = True + for item in complex_val: + new_row = row.copy() + new_row[col] = item + rules.append(new_row) + if not found: + rules.append(row) + + return rules + + +simple_rules = read_rules(NAME) + +SCOPES = {rule["scope"] for rule in simple_rules} +CONTEXTS = ["sandbox", "organization"] +OWNERSHIPS = ["owner", "assignee", "none"] +GROUPS = ["admin", "business", "user", "worker", "none"] +ORG_ROLES = ["owner", "maintainer", "supervisor", "worker", None] +SAME_ORG = [False, True] + + +def RESOURCES(scope): + if scope == "list": + return [None] + elif scope in ["create", "import:backup"]: + return [ + { + "owner": {"id": random.randrange(400, 500)}, + "assignee": {"id": random.randrange(500, 600)}, + "organization": {"id": random.randrange(600, 700)}, + "user": {"num_resources": count}, + } + for count in (0, 1, 3, 10) + ] + else: + return [ + { + "id": random.randrange(300, 400), + "owner": {"id": random.randrange(400, 500)}, + "assignee": {"id": random.randrange(500, 600)}, + "organization": {"id": random.randrange(600, 700)}, + } + ] + + +def is_same_org(org1, org2): + if org1 is not None and org2 is not None: + return org1["id"] == org2["id"] + elif org1 is None and org2 is None: + return True + else: + return False + + +def eval_rule(scope, context, ownership, privilege, membership, data): + if privilege == "admin": + return True + + rules = list(filter(lambda r: scope == r["scope"], simple_rules)) + rules = list(filter(lambda r: r["context"] == "na" or context == r["context"], rules)) + rules = list(filter(lambda r: r["ownership"] == "na" or ownership == r["ownership"], rules)) + rules = list( + filter( + lambda r: r["membership"] == "na" + or ORG_ROLES.index(membership) <= ORG_ROLES.index(r["membership"]), + rules, + ) + ) + rules = list(filter(lambda r: GROUPS.index(privilege) <= GROUPS.index(r["privilege"]), rules)) + resource = data["resource"] + rules = list( + filter(lambda r: not r["limit"] or eval(r["limit"], {"resource": resource}), rules) + ) + if ( + not is_same_org(data["auth"]["organization"], data["resource"]["organization"]) + and context != "sandbox" + ): + return False + + return bool(rules) + + +def get_data(scope, context, ownership, privilege, membership, resource, same_org): + data = { + "scope": scope, + "auth": { + "user": {"id": random.randrange(0, 100), "privilege": privilege}, + "organization": { + "id": random.randrange(100, 200), + "owner": {"id": random.randrange(200, 300)}, + "user": {"role": membership}, + } + if context == "organization" + else None, + }, + "resource": resource, + } + + user_id = data["auth"]["user"]["id"] + if context == "organization": + org_id = data["auth"]["organization"]["id"] + if data["auth"]["organization"]["user"]["role"] == "owner": + data["auth"]["organization"]["owner"]["id"] = user_id + + if same_org: + data["resource"]["organization"]["id"] = org_id + + if ownership == "owner": + data["resource"]["owner"]["id"] = user_id + + if ownership == "assignee": + data["resource"]["assignee"]["id"] = user_id + + return data + + +def _get_name(prefix, **kwargs): + name = prefix + for k, v in kwargs.items(): + prefix = "_" + str(k) + if isinstance(v, dict): + if "id" in v: + v = v.copy() + v.pop("id") + if v: + name += _get_name(prefix, **v) + else: + name += f'{prefix}_{str(v).upper().replace(":", "_")}' + + return name + + +def get_name(scope, context, ownership, privilege, membership, resource, same_org): + return _get_name("test", **locals()) + + +def is_valid(scope, context, ownership, privilege, membership, resource, same_org): + if context == "sandbox" and membership: + return False + if scope == "list" and ownership != "None": + return False + if context == "sandbox" and same_org is False: + return False + + return True + + +def gen_test_rego(name): + with open(f"{name}_test.gen.rego", "wt") as f: + f.write(f"package {name}\n\n") + for scope, context, ownership, privilege, membership, same_org in product( + SCOPES, CONTEXTS, OWNERSHIPS, GROUPS, ORG_ROLES, SAME_ORG + ): + for resource in RESOURCES(scope): + if not is_valid( + scope, context, ownership, privilege, membership, resource, same_org + ): + continue + + data = get_data( + scope, context, ownership, privilege, membership, resource, same_org + ) + test_name = get_name( + scope, context, ownership, privilege, membership, resource, same_org + ) + result = eval_rule(scope, context, ownership, privilege, membership, data) + f.write( + "{test_name} {{\n {allow} with input as {data}\n}}\n\n".format( + test_name=test_name, + allow="allow" if result else "not allow", + data=json.dumps(data), + ) + ) + + # Write the script which is used to generate the file + with open(sys.argv[0]) as this_file: + f.write(f"\n\n# {os.path.split(sys.argv[0])[1]}\n") + for line in this_file: + if line.strip(): + f.write(f"# {line}") + else: + f.write(f"#\n") + + # Write rules which are used to generate the file + with open(os.path.join(sys.argv[1], f"{name}.csv")) as csv_file: + f.write(f"\n\n# {name}.csv\n") + for line in csv_file: + if line.strip(): + f.write(f"# {line}") + else: + f.write(f"#\n") + + +gen_test_rego(NAME) diff --git a/cvat/apps/iam/rules/tests/generators/server_test.gen.rego.py b/cvat/apps/iam/rules/tests/generators/server_test.gen.rego.py new file mode 100644 index 00000000..84c9f469 --- /dev/null +++ b/cvat/apps/iam/rules/tests/generators/server_test.gen.rego.py @@ -0,0 +1,161 @@ +# Copyright (C) 2022 CVAT.ai Corporation +# +# SPDX-License-Identifier: MIT + +import csv +import json +import os +import random +import sys +from itertools import product + +NAME = "server" + + +def read_rules(name): + rules = [] + with open(os.path.join(sys.argv[1], f"{name}.csv")) as f: + reader = csv.DictReader(f) + for row in reader: + row = {k.lower(): v.lower().replace("n/a", "na") for k, v in row.items()} + row["limit"] = row["limit"].replace("none", "None") + found = False + for col, val in row.items(): + if col in ["limit", "method", "url"]: + continue + complex_val = [v.strip() for v in val.split(",")] + if len(complex_val) > 1: + found = True + for item in complex_val: + new_row = row.copy() + new_row[col] = item + rules.append(new_row) + if not found: + rules.append(row) + + return rules + + +simple_rules = read_rules(NAME) + +SCOPES = {rule["scope"] for rule in simple_rules} +CONTEXTS = ["sandbox", "organization"] +OWNERSHIPS = ["none"] +GROUPS = ["admin", "business", "user", "worker", "none"] +ORG_ROLES = ["owner", "maintainer", "supervisor", "worker", None] + + +def eval_rule(scope, context, ownership, privilege, membership, data): + if privilege == "admin": + return True + + rules = list(filter(lambda r: scope == r["scope"], simple_rules)) + rules = list(filter(lambda r: r["context"] == "na" or context == r["context"], rules)) + rules = list(filter(lambda r: r["ownership"] == "na" or ownership == r["ownership"], rules)) + rules = list( + filter( + lambda r: r["membership"] == "na" + or ORG_ROLES.index(membership) <= ORG_ROLES.index(r["membership"]), + rules, + ) + ) + rules = list(filter(lambda r: GROUPS.index(privilege) <= GROUPS.index(r["privilege"]), rules)) + rules = list(filter(lambda r: not r["limit"] or eval(r["limit"]), rules)) + + return bool(rules) + + +def get_data(scope, context, ownership, privilege, membership): + data = { + "scope": scope, + "auth": { + "user": {"id": random.randrange(0, 100), "privilege": privilege}, + "organization": { + "id": random.randrange(100, 200), + "owner": {"id": random.randrange(200, 300)}, + "user": {"role": membership}, + } + if context == "organization" + else None, + }, + } + + user_id = data["auth"]["user"]["id"] + if context == "organization": + if data["auth"]["organization"]["user"]["role"] == "owner": + data["auth"]["organization"]["owner"]["id"] = user_id + + return data + + +def _get_name(prefix, **kwargs): + name = prefix + for k, v in kwargs.items(): + prefix = "_" + str(k) + if isinstance(v, dict): + if "id" in v: + v = v.copy() + v.pop("id") + if v: + name += _get_name(prefix, **v) + else: + name += f'{prefix}_{str(v).upper().replace(":", "_")}' + + return name + + +def get_name(scope, context, ownership, privilege, membership): + return _get_name("test", **locals()) + + +def is_valid(scope, context, ownership, privilege, membership): + if context == "sandbox" and membership: + return False + if scope == "list" and ownership != "None": + return False + if context == "organization" and membership is None: + return False + + return True + + +def gen_test_rego(name): + with open(f"{name}_test.gen.rego", "wt") as f: + f.write(f"package {name}\n\n") + for scope, context, ownership, privilege, membership in product( + SCOPES, CONTEXTS, OWNERSHIPS, GROUPS, ORG_ROLES + ): + if not is_valid(scope, context, ownership, privilege, membership): + continue + + data = get_data(scope, context, ownership, privilege, membership) + test_name = get_name(scope, context, ownership, privilege, membership) + result = eval_rule(scope, context, ownership, privilege, membership, data) + f.write( + "{test_name} {{\n {allow} with input as {data}\n}}\n\n".format( + test_name=test_name, + allow="allow" if result else "not allow", + data=json.dumps(data), + ) + ) + + # Write the script which is used to generate the file + with open(sys.argv[0]) as this_file: + f.write(f"\n\n# {os.path.split(sys.argv[0])[1]}\n") + for line in this_file: + if line.strip(): + f.write(f"# {line}") + else: + f.write(f"#\n") + + # Write rules which are used to generate the file + with open(os.path.join(sys.argv[1], f"{name}.csv")) as rego_file: + f.write(f"\n\n# {name}.csv\n") + for line in rego_file: + if line.strip(): + f.write(f"# {line}") + else: + f.write(f"#\n") + + +gen_test_rego(NAME) diff --git a/cvat/apps/iam/rules/tests/generators/tasks_test.gen.rego.py b/cvat/apps/iam/rules/tests/generators/tasks_test.gen.rego.py new file mode 100644 index 00000000..05cc890c --- /dev/null +++ b/cvat/apps/iam/rules/tests/generators/tasks_test.gen.rego.py @@ -0,0 +1,248 @@ +# Copyright (C) 2022 CVAT.ai Corporation +# +# SPDX-License-Identifier: MIT + +import csv +import json +import os +import random +import sys +from itertools import product + +random.seed(42) + +NAME = "tasks" + + +def read_rules(name): + rules = [] + with open(os.path.join(sys.argv[1], f"{name}.csv")) as f: + reader = csv.DictReader(f) + for row in reader: + row = {k.lower(): v.lower().replace("n/a", "na") for k, v in row.items()} + row["limit"] = row["limit"].replace("none", "None") + found = False + for col, val in row.items(): + if col in ["limit", "method", "url", "resource"]: + continue + complex_val = [v.strip() for v in val.split(",")] + if len(complex_val) > 1: + found = True + for item in complex_val: + new_row = row.copy() + new_row[col] = item + rules.append(new_row) + if not found: + rules.append(row) + + return rules + + +simple_rules = read_rules(NAME) + +SCOPES = list({rule["scope"] for rule in simple_rules}) +CONTEXTS = ["sandbox", "organization"] +OWNERSHIPS = ["project:owner", "project:assignee", "owner", "assignee", "none"] +GROUPS = ["admin", "business", "user", "worker", "none"] +ORG_ROLES = ["owner", "maintainer", "supervisor", "worker", None] +SAME_ORG = [True, False] + + +def RESOURCES(scope): + if scope == "list": + return [None] + elif scope.startswith("create") or scope == "import:backup": + return [ + { + "owner": {"id": random.randrange(400, 500)}, + "assignee": {"id": random.randrange(500, 600)}, + "organization": {"id": random.randrange(600, 700)}, + "project": { + "owner": {"id": random.randrange(700, 800)}, + "assignee": {"id": random.randrange(800, 900)}, + "organization": {"id": random.randrange(900, 1000)}, + }, + "user": {"num_resources": count}, + } + for count in (0, 3, 10) + ] + else: + return [ + { + "id": random.randrange(300, 400), + "owner": {"id": random.randrange(400, 500)}, + "assignee": {"id": random.randrange(500, 600)}, + "organization": {"id": random.randrange(600, 700)}, + "project": { + "owner": {"id": random.randrange(700, 800)}, + "assignee": {"id": random.randrange(800, 900)}, + "organization": {"id": random.randrange(900, 1000)}, + }, + } + ] + + +def is_same_org(org1, org2): + if org1 is not None and org2 is not None: + return org1["id"] == org2["id"] + elif org1 is None and org2 is None: + return True + else: + return False + + +def eval_rule(scope, context, ownership, privilege, membership, data): + if privilege == "admin": + return True + + rules = list(filter(lambda r: scope == r["scope"], simple_rules)) + rules = list(filter(lambda r: r["context"] == "na" or context == r["context"], rules)) + rules = list(filter(lambda r: r["ownership"] == "na" or ownership == r["ownership"], rules)) + rules = list( + filter( + lambda r: r["membership"] == "na" + or ORG_ROLES.index(membership) <= ORG_ROLES.index(r["membership"]), + rules, + ) + ) + rules = list(filter(lambda r: GROUPS.index(privilege) <= GROUPS.index(r["privilege"]), rules)) + resource = data["resource"] + rules = list( + filter(lambda r: not r["limit"] or eval(r["limit"], {"resource": resource}), rules) + ) + if ( + not is_same_org(data["auth"]["organization"], data["resource"]["organization"]) + and context != "sandbox" + ): + return False + + return bool(rules) + + +def get_data(scope, context, ownership, privilege, membership, resource, same_org): + data = { + "scope": scope, + "auth": { + "user": {"id": random.randrange(0, 100), "privilege": privilege}, + "organization": { + "id": random.randrange(100, 200), + "owner": {"id": random.randrange(200, 300)}, + "user": {"role": membership}, + } + if context == "organization" + else None, + }, + "resource": resource, + } + + user_id = data["auth"]["user"]["id"] + if context == "organization": + org_id = data["auth"]["organization"]["id"] + if data["auth"]["organization"]["user"]["role"] == "owner": + data["auth"]["organization"]["owner"]["id"] = user_id + + if same_org: + data["resource"]["organization"]["id"] = org_id + + if ownership == "owner": + data["resource"]["owner"]["id"] = user_id + + if ownership == "assignee": + data["resource"]["assignee"]["id"] = user_id + + if ownership == "project:owner": + data["resource"]["project"]["owner"]["id"] = user_id + + if ownership == "project:assignee": + data["resource"]["project"]["assignee"]["id"] = user_id + + return data + + +def _get_name(prefix, **kwargs): + name = prefix + for k, v in kwargs.items(): + prefix = "_" + str(k) + if isinstance(v, dict): + if "id" in v: + v = v.copy() + v.pop("id") + if v: + name += _get_name(prefix, **v) + else: + name += "".join( + map( + lambda c: c if c.isalnum() else {"@": "_IN_"}.get(c, "_"), + f"{prefix}_{str(v).upper()}", + ) + ) + + return name + + +def get_name(scope, context, ownership, privilege, membership, resource, same_org): + return _get_name("test", **locals()) + + +def is_valid(scope, context, ownership, privilege, membership, resource, same_org): + if context == "sandbox" and membership: + return False + if scope == "list" and ownership != "None": + return False + if context == "sandbox" and same_org is False: + return False + if scope.startswith("create") and ownership in ["owner", "assignee"]: + return False + if scope in ["create", "import:backup"] and ownership != "None": + return False + + return True + + +def gen_test_rego(name): + with open(f"{name}_test.gen.rego", "wt") as f: + f.write(f"package {name}\n\n") + for scope, context, ownership, privilege, membership, same_org in product( + SCOPES, CONTEXTS, OWNERSHIPS, GROUPS, ORG_ROLES, SAME_ORG + ): + for resource in RESOURCES(scope): + if not is_valid( + scope, context, ownership, privilege, membership, resource, same_org + ): + continue + + data = get_data( + scope, context, ownership, privilege, membership, resource, same_org + ) + test_name = get_name( + scope, context, ownership, privilege, membership, resource, same_org + ) + result = eval_rule(scope, context, ownership, privilege, membership, data) + f.write( + "{test_name} {{\n {allow} with input as {data}\n}}\n\n".format( + test_name=test_name, + allow="allow" if result else "not allow", + data=json.dumps(data), + ) + ) + + # Write the script which is used to generate the file + with open(sys.argv[0]) as this_file: + f.write(f"\n\n# {os.path.split(sys.argv[0])[1]}\n") + for line in this_file: + if line.strip(): + f.write(f"# {line}") + else: + f.write(f"#\n") + + # Write rules which are used to generate the file + with open(os.path.join(sys.argv[1], f"{name}.csv")) as rego_file: + f.write(f"\n\n# {name}.csv\n") + for line in rego_file: + if line.strip(): + f.write(f"# {line}") + else: + f.write(f"#\n") + + +gen_test_rego(NAME) diff --git a/cvat/apps/iam/rules/tests/generators/users_test.gen.rego.py b/cvat/apps/iam/rules/tests/generators/users_test.gen.rego.py new file mode 100644 index 00000000..8940f5c6 --- /dev/null +++ b/cvat/apps/iam/rules/tests/generators/users_test.gen.rego.py @@ -0,0 +1,180 @@ +# Copyright (C) 2022 CVAT.ai Corporation +# +# SPDX-License-Identifier: MIT + +import csv +import json +import os +import random +import sys +from itertools import product + +NAME = "users" + + +def read_rules(name): + rules = [] + with open(os.path.join(sys.argv[1], f"{name}.csv")) as f: + reader = csv.DictReader(f) + for row in reader: + row = {k.lower(): v.lower().replace("n/a", "na") for k, v in row.items()} + row["limit"] = row["limit"].replace("none", "None") + found = False + for col, val in row.items(): + if col in ["limit", "method", "url"]: + continue + complex_val = [v.strip() for v in val.split(",")] + if len(complex_val) > 1: + found = True + for item in complex_val: + new_row = row.copy() + new_row[col] = item + rules.append(new_row) + if not found: + rules.append(row) + + return rules + + +simple_rules = read_rules(NAME) + +SCOPES = {rule["scope"] for rule in simple_rules} +CONTEXTS = ["sandbox", "organization"] +OWNERSHIPS = ["self", "none"] +GROUPS = ["admin", "business", "user", "worker", "none"] +ORG_ROLES = ["owner", "maintainer", "supervisor", "worker", None] + + +def RESOURCES(scope): + if scope == "list": + return [None] + else: + return [ + {"id": random.randrange(300, 400), "membership": {"role": role}} for role in ORG_ROLES + ] + + +def eval_rule(scope, context, ownership, privilege, membership, data): + if privilege == "admin": + return True + + rules = list(filter(lambda r: scope == r["scope"], simple_rules)) + rules = list(filter(lambda r: r["context"] == "na" or context == r["context"], rules)) + rules = list(filter(lambda r: r["ownership"] == "na" or ownership == r["ownership"], rules)) + rules = list( + filter( + lambda r: r["membership"] == "na" + or ORG_ROLES.index(membership) <= ORG_ROLES.index(r["membership"]), + rules, + ) + ) + rules = list(filter(lambda r: GROUPS.index(privilege) <= GROUPS.index(r["privilege"]), rules)) + resource = data["resource"] + rules = list( + filter(lambda r: not r["limit"] or eval(r["limit"], {"resource": resource}), rules) + ) + + return bool(rules) + + +def get_data(scope, context, ownership, privilege, membership, resource): + data = { + "scope": scope, + "auth": { + "user": {"id": random.randrange(0, 100), "privilege": privilege}, + "organization": { + "id": random.randrange(100, 200), + "owner": {"id": random.randrange(200, 300)}, + "user": {"role": membership}, + } + if context == "organization" + else None, + }, + "resource": resource, + } + + user_id = data["auth"]["user"]["id"] + if context == "organization": + if data["auth"]["organization"]["user"]["role"] == "owner": + data["auth"]["organization"]["owner"]["id"] = user_id + + if ownership == "self": + data["resource"]["id"] = user_id + + return data + + +def _get_name(prefix, **kwargs): + name = prefix + for k, v in kwargs.items(): + prefix = "_" + str(k) + if isinstance(v, dict): + if "id" in v: + v = v.copy() + v.pop("id") + if v: + name += _get_name(prefix, **v) + else: + name += f'{prefix}_{str(v).upper().replace(":", "_")}' + + return name + + +def get_name(scope, context, ownership, privilege, membership, resource): + return _get_name("test", **locals()) + + +def is_valid(scope, context, ownership, privilege, membership, resource): + if context == "sandbox" and membership: + return False + if scope == "list" and ownership != "None": + return False + if context == "sandbox" and resource["membership"]["role"] is not None: + return False + if context == "organization" and membership is None: + return False + + return True + + +def gen_test_rego(name): + with open(f"{name}_test.gen.rego", "wt") as f: + f.write(f"package {name}\n\n") + for scope, context, ownership, privilege, membership in product( + SCOPES, CONTEXTS, OWNERSHIPS, GROUPS, ORG_ROLES + ): + for resource in RESOURCES(scope): + if not is_valid(scope, context, ownership, privilege, membership, resource): + continue + + data = get_data(scope, context, ownership, privilege, membership, resource) + test_name = get_name(scope, context, ownership, privilege, membership, resource) + result = eval_rule(scope, context, ownership, privilege, membership, data) + f.write( + "{test_name} {{\n {allow} with input as {data}\n}}\n\n".format( + test_name=test_name, + allow="allow" if result else "not allow", + data=json.dumps(data), + ) + ) + + # Write the script which is used to generate the file + with open(sys.argv[0]) as this_file: + f.write(f"\n\n# {os.path.split(sys.argv[0])[1]}\n") + for line in this_file: + if line.strip(): + f.write(f"# {line}") + else: + f.write(f"#\n") + + # Write rules which are used to generate the file + with open(os.path.join(sys.argv[1], f"{name}.csv")) as rego_file: + f.write(f"\n\n# {name}.csv\n") + for line in rego_file: + if line.strip(): + f.write(f"# {line}") + else: + f.write(f"#\n") + + +gen_test_rego(NAME) diff --git a/cvat/apps/iam/rules/tests/generators/webhooks_test.gen.rego.py b/cvat/apps/iam/rules/tests/generators/webhooks_test.gen.rego.py new file mode 100644 index 00000000..764e6610 --- /dev/null +++ b/cvat/apps/iam/rules/tests/generators/webhooks_test.gen.rego.py @@ -0,0 +1,224 @@ +# Copyright (C) 2022 CVAT.ai Corporation +# +# SPDX-License-Identifier: MIT + +import csv +import json +import os +import random +import sys +from itertools import product + +NAME = "webhooks" + + +def read_rules(name): + rules = [] + with open(os.path.join(sys.argv[1], f"{name}.csv")) as f: + reader = csv.DictReader(f) + for row in reader: + row = {k.lower(): v.lower().replace("n/a", "na") for k, v in row.items()} + row["limit"] = row["limit"].replace("none", "None") + found = False + for col, val in row.items(): + if col in ["limit", "method", "url", "resource"]: + continue + complex_val = [v.strip() for v in val.split(",")] + if len(complex_val) > 1: + found = True + for item in complex_val: + new_row = row.copy() + new_row[col] = item + rules.append(new_row) + if not found: + rules.append(row) + return rules + + +random.seed(42) +simple_rules = read_rules(NAME) +SCOPES = list({rule["scope"] for rule in simple_rules}) +CONTEXTS = ["sandbox", "organization"] +OWNERSHIPS = ["project:owner", "owner", "none"] +GROUPS = ["admin", "business", "user", "worker", "none"] +ORG_ROLES = ["owner", "maintainer", "supervisor", "worker", None] +SAME_ORG = [True, False] + + +def RESOURCES(scope): + if scope == "list": + return [None] + elif scope == "create@project": + return [ + { + "owner": {"id": random.randrange(100, 200)}, + "assignee": {"id": random.randrange(200, 300)}, + "organization": {"id": random.randrange(300, 400)}, + "project": {"owner": {"id": random.randrange(400, 500)}}, + "num_resources": count, + } + for count in (0, 3, 10) + ] + elif scope == "create@organization": + return [ + { + "owner": {"id": random.randrange(100, 200)}, + "assignee": {"id": random.randrange(200, 300)}, + "organization": {"id": random.randrange(300, 400)}, + "project": None, + "num_resources": count, + } + for count in (0, 3, 10) + ] + else: + return [ + { + "id": random.randrange(100, 200), + "owner": {"id": random.randrange(200, 300)}, + "organization": {"id": random.randrange(300, 400)}, + "project": {"owner": {"id": random.randrange(400, 500)}}, + } + ] + + +def is_same_org(org1, org2): + if org1 is not None and org2 is not None: + return org1["id"] == org2["id"] + elif org1 is None and org2 is None: + return True + return False + + +def eval_rule(scope, context, ownership, privilege, membership, data): + if privilege == "admin": + return True + + rules = list( + filter( + lambda r: scope == r["scope"] + and (r["context"] == "na" or context == r["context"]) + and (r["ownership"] == "na" or ownership == r["ownership"]) + and ( + r["membership"] == "na" + or ORG_ROLES.index(membership) <= ORG_ROLES.index(r["membership"]) + ) + and GROUPS.index(privilege) <= GROUPS.index(r["privilege"]), + simple_rules, + ) + ) + + resource = data["resource"] + + rules = list( + filter(lambda r: not r["limit"] or eval(r["limit"], {"resource": resource}), rules) + ) + if ( + not is_same_org(data["auth"]["organization"], data["resource"]["organization"]) + and context != "sandbox" + ): + return False + return bool(rules) + + +def get_data(scope, context, ownership, privilege, membership, resource, same_org): + data = { + "scope": scope, + "auth": { + "user": {"id": random.randrange(0, 100), "privilege": privilege}, + "organization": { + "id": random.randrange(100, 200), + "owner": {"id": random.randrange(200, 300)}, + "user": {"role": membership}, + } + if context == "organization" + else None, + }, + "resource": resource, + } + + user_id = data["auth"]["user"]["id"] + + if context == "organization": + org_id = data["auth"]["organization"]["id"] + if data["auth"]["organization"]["user"]["role"] == "owner": + data["auth"]["organization"]["owner"]["id"] = user_id + if same_org: + data["resource"]["organization"]["id"] = org_id + + if ownership == "owner": + data["resource"]["owner"]["id"] = user_id + + if ownership == "project:owner": + data["resource"]["project"]["owner"]["id"] = user_id + + return data + + +def _get_name(prefix, **kwargs): + name = prefix + for k, v in kwargs.items(): + prefix = "_" + str(k) + if isinstance(v, dict): + if "id" in v: + v = v.copy() + v.pop("id") + if v: + name += _get_name(prefix, **v) + else: + name += "".join( + map( + lambda c: c if c.isalnum() else {"@": "_IN_"}.get(c, "_"), + f"{prefix}_{str(v).upper()}", + ) + ) + return name + + +def get_name(scope, context, ownership, privilege, membership, resource, same_org): + return _get_name("test", **locals()) + + +def is_valid(scope, context, ownership, privilege, membership, resource, same_org): + if context == "sandbox" and membership: + return False + if scope == "list" and ownership != "None": + return False + if context == "sandbox" and not same_org: + return False + if scope.startswith("create") and ownership != "None": + return False + + return True + + +def gen_test_rego(name): + with open(f"{name}_test.gen.rego", "wt") as f: + f.write(f"package {name}\n\n") + for scope, context, ownership, privilege, membership, same_org in product( + SCOPES, CONTEXTS, OWNERSHIPS, GROUPS, ORG_ROLES, SAME_ORG + ): + for resource in RESOURCES(scope): + + if not is_valid( + scope, context, ownership, privilege, membership, resource, same_org + ): + continue + + data = get_data( + scope, context, ownership, privilege, membership, resource, same_org + ) + test_name = get_name( + scope, context, ownership, privilege, membership, resource, same_org + ) + result = eval_rule(scope, context, ownership, privilege, membership, data) + + f.write( + "{test_name} {{\n {allow} with input as {data}\n}}\n\n".format( + test_name=test_name, + allow="allow" if result else "not allow", + data=json.dumps(data), + ) + ) + + +gen_test_rego(NAME) diff --git a/cvat/apps/iam/rules/users_test.gen.rego b/cvat/apps/iam/rules/users_test.gen.rego deleted file mode 100644 index 237e93bc..00000000 --- a/cvat/apps/iam/rules/users_test.gen.rego +++ /dev/null @@ -1,2697 +0,0 @@ -package users - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_ADMIN_membership_NONE_resource_membership_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": null}, "resource": {"id": 20, "membership": {"role": null}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_membership_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": null}, "resource": {"id": 11, "membership": {"role": null}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_USER_membership_NONE_resource_membership_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": null}, "resource": {"id": 75, "membership": {"role": null}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_WORKER_membership_NONE_resource_membership_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "worker"}, "organization": null}, "resource": {"id": 65, "membership": {"role": null}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_SELF_privilege_NONE_membership_NONE_resource_membership_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 64, "privilege": "none"}, "organization": null}, "resource": {"id": 64, "membership": {"role": null}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_membership_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": null}, "resource": {"id": 372, "membership": {"role": null}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_membership_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": null}, "resource": {"id": 393, "membership": {"role": null}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_membership_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "user"}, "organization": null}, "resource": {"id": 386, "membership": {"role": null}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_membership_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": null}, "resource": {"id": 378, "membership": {"role": null}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_membership_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": null}, "resource": {"id": 325, "membership": {"role": null}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_membership_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 95, "membership": {"role": "owner"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 23, "membership": {"role": "maintainer"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 40}, "user": {"role": "owner"}}}, "resource": {"id": 40, "membership": {"role": "supervisor"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_membership_role_WORKER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 149, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 33, "membership": {"role": "worker"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_membership_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 95, "membership": {"role": null}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_membership_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 7, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 7, "membership": {"role": "owner"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 20, "membership": {"role": "maintainer"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 74, "membership": {"role": "supervisor"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_membership_role_WORKER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 156, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 88, "membership": {"role": "worker"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_membership_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 133, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 26, "membership": {"role": null}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_membership_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 20, "membership": {"role": "owner"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_membership_role_MAINTAINER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 16, "membership": {"role": "maintainer"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 115, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 87, "membership": {"role": "supervisor"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_membership_role_WORKER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 68, "membership": {"role": "worker"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_membership_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 99, "membership": {"role": null}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_membership_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 142, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 68, "membership": {"role": "owner"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 48, "membership": {"role": "maintainer"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 246}, "user": {"role": "worker"}}}, "resource": {"id": 58, "membership": {"role": "supervisor"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_membership_role_WORKER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 87, "membership": {"role": "worker"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_membership_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 27, "membership": {"role": null}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_membership_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 51, "membership": {"role": "owner"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 21, "membership": {"role": "maintainer"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 1, "membership": {"role": "supervisor"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_membership_role_WORKER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 62, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 62, "membership": {"role": "worker"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_membership_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 110, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 80, "membership": {"role": null}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_membership_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 31, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 31, "membership": {"role": "owner"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 28, "membership": {"role": "maintainer"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "delete", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 30, "membership": {"role": "supervisor"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_membership_role_WORKER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 10, "membership": {"role": "worker"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_membership_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 73, "membership": {"role": null}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_membership_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 2, "membership": {"role": "owner"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_membership_role_MAINTAINER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 296}, "user": {"role": "supervisor"}}}, "resource": {"id": 82, "membership": {"role": "maintainer"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 34, "membership": {"role": "supervisor"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_membership_role_WORKER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 88, "membership": {"role": "worker"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_membership_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 9, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 9, "membership": {"role": null}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_membership_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 69, "membership": {"role": "owner"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 68, "membership": {"role": "maintainer"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 55, "membership": {"role": "supervisor"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_membership_role_WORKER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 1, "membership": {"role": "worker"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_membership_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 10, "membership": {"role": null}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_membership_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"id": 66, "membership": {"role": "owner"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 1}, "user": {"role": "owner"}}}, "resource": {"id": 1, "membership": {"role": "maintainer"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "delete", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 69, "membership": {"role": "supervisor"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_membership_role_WORKER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 63, "membership": {"role": "worker"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_membership_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 61, "membership": {"role": null}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_membership_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 74, "membership": {"role": "owner"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 98, "membership": {"role": "maintainer"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 108, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 42, "membership": {"role": "supervisor"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_membership_role_WORKER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 19, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 19, "membership": {"role": "worker"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_membership_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 89, "membership": {"role": null}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_membership_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 21, "membership": {"role": "owner"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_membership_role_MAINTAINER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 54, "membership": {"role": "maintainer"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "delete", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 10, "membership": {"role": "supervisor"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_membership_role_WORKER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 7, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 218}, "user": {"role": "supervisor"}}}, "resource": {"id": 7, "membership": {"role": "worker"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_membership_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 8, "membership": {"role": null}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_membership_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 46, "membership": {"role": "owner"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 95, "membership": {"role": "maintainer"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 41, "membership": {"role": "supervisor"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_membership_role_WORKER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 57, "membership": {"role": "worker"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_membership_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 94, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 94, "membership": {"role": null}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_membership_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 50}, "user": {"role": "owner"}}}, "resource": {"id": 50, "membership": {"role": "owner"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 177, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 0, "membership": {"role": "maintainer"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 55, "membership": {"role": "supervisor"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_membership_role_WORKER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 53, "membership": {"role": "worker"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_membership_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 77, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 77, "membership": {"role": null}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_membership_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 83, "membership": {"role": "owner"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 43, "membership": {"role": "maintainer"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "delete", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 83, "membership": {"role": "supervisor"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_membership_role_WORKER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 85, "membership": {"role": "worker"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_membership_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 46, "membership": {"role": null}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_membership_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 16, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 16, "membership": {"role": "owner"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_membership_role_MAINTAINER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 275}, "user": {"role": "supervisor"}}}, "resource": {"id": 25, "membership": {"role": "maintainer"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "delete", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 30, "membership": {"role": "supervisor"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_membership_role_WORKER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 36, "membership": {"role": "worker"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_membership_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 75, "membership": {"role": null}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_membership_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 58, "membership": {"role": "owner"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 46, "membership": {"role": "maintainer"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "delete", "auth": {"user": {"id": 10, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 10, "membership": {"role": "supervisor"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_membership_role_WORKER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 26, "membership": {"role": "worker"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_membership_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 185, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 75, "membership": {"role": null}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_membership_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 163, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 98, "membership": {"role": "owner"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 54}, "user": {"role": "owner"}}}, "resource": {"id": 54, "membership": {"role": "maintainer"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 145, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 99, "membership": {"role": "supervisor"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_membership_role_WORKER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 4, "membership": {"role": "worker"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_membership_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 55, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 55, "membership": {"role": null}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_membership_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": {"id": 170, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 22, "membership": {"role": "owner"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "none"}, "organization": {"id": 120, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 51, "membership": {"role": "maintainer"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "delete", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 86, "membership": {"role": "supervisor"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_membership_role_WORKER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 262}, "user": {"role": "maintainer"}}}, "resource": {"id": 1, "membership": {"role": "worker"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_membership_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 217}, "user": {"role": "maintainer"}}}, "resource": {"id": 47, "membership": {"role": null}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_membership_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 88, "membership": {"role": "owner"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_membership_role_MAINTAINER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 44, "membership": {"role": "maintainer"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 53, "membership": {"role": "supervisor"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_membership_role_WORKER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 66, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 66, "membership": {"role": "worker"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_membership_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 78, "membership": {"role": null}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_membership_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 53, "membership": {"role": "owner"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 82, "membership": {"role": "maintainer"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 91, "membership": {"role": "supervisor"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_membership_role_WORKER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 219}, "user": {"role": "worker"}}}, "resource": {"id": 0, "membership": {"role": "worker"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_membership_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 62, "membership": {"role": null}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_membership_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 51}, "user": {"role": "owner"}}}, "resource": {"id": 349, "membership": {"role": "owner"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 352, "membership": {"role": "maintainer"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "delete", "auth": {"user": {"id": 76, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 393, "membership": {"role": "supervisor"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_membership_role_WORKER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 366, "membership": {"role": "worker"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_membership_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 372, "membership": {"role": null}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_membership_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 392, "membership": {"role": "owner"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "membership": {"role": "maintainer"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "membership": {"role": "supervisor"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_membership_role_WORKER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 175, "owner": {"id": 271}, "user": {"role": "maintainer"}}}, "resource": {"id": 390, "membership": {"role": "worker"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_membership_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 266}, "user": {"role": "maintainer"}}}, "resource": {"id": 336, "membership": {"role": null}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_membership_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 262}, "user": {"role": "supervisor"}}}, "resource": {"id": 340, "membership": {"role": "owner"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_membership_role_MAINTAINER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 187, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "membership": {"role": "maintainer"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 222}, "user": {"role": "supervisor"}}}, "resource": {"id": 391, "membership": {"role": "supervisor"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_membership_role_WORKER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "membership": {"role": "worker"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_membership_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 329, "membership": {"role": null}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_membership_role_OWNER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 388, "membership": {"role": "owner"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 280}, "user": {"role": "worker"}}}, "resource": {"id": 370, "membership": {"role": "maintainer"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 311, "membership": {"role": "supervisor"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_membership_role_WORKER { - allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 174, "owner": {"id": 239}, "user": {"role": "worker"}}}, "resource": {"id": 314, "membership": {"role": "worker"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_membership_role_NONE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 308, "membership": {"role": null}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_membership_role_OWNER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 307, "membership": {"role": "owner"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_membership_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 26}, "user": {"role": "owner"}}}, "resource": {"id": 398, "membership": {"role": "maintainer"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_membership_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 75}, "user": {"role": "owner"}}}, "resource": {"id": 354, "membership": {"role": "supervisor"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_membership_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 128, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 320, "membership": {"role": "worker"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_membership_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 10, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 359, "membership": {"role": null}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_membership_role_OWNER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": {"id": 159, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "membership": {"role": "owner"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_membership_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "membership": {"role": "maintainer"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_membership_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 136, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "membership": {"role": "supervisor"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_membership_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 193, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 364, "membership": {"role": "worker"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_membership_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "membership": {"role": null}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_membership_role_OWNER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 353, "membership": {"role": "owner"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_membership_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 372, "membership": {"role": "maintainer"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_membership_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 214}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "membership": {"role": "supervisor"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_membership_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "membership": {"role": "worker"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_membership_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "membership": {"role": null}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_membership_role_OWNER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 94, "privilege": "business"}, "organization": {"id": 162, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 304, "membership": {"role": "owner"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_membership_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 349, "membership": {"role": "maintainer"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_membership_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 317, "membership": {"role": "supervisor"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_membership_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 69, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 319, "membership": {"role": "worker"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_membership_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 227}, "user": {"role": "worker"}}}, "resource": {"id": 379, "membership": {"role": null}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_membership_role_OWNER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 126, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 301, "membership": {"role": "owner"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_membership_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 342, "membership": {"role": "maintainer"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_membership_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 363, "membership": {"role": "supervisor"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_membership_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "user"}, "organization": {"id": 187, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 330, "membership": {"role": "worker"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_membership_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 379, "membership": {"role": null}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_membership_role_OWNER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 269}, "user": {"role": "maintainer"}}}, "resource": {"id": 350, "membership": {"role": "owner"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_membership_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 198, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "membership": {"role": "maintainer"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_membership_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 322, "membership": {"role": "supervisor"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_membership_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 148, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 375, "membership": {"role": "worker"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_membership_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "membership": {"role": null}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_membership_role_OWNER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 109, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "membership": {"role": "owner"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_membership_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "membership": {"role": "maintainer"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_membership_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "membership": {"role": "supervisor"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_membership_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 19, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 342, "membership": {"role": "worker"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_membership_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 110, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "membership": {"role": null}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_membership_role_OWNER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 302, "membership": {"role": "owner"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_membership_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 336, "membership": {"role": "maintainer"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_membership_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 355, "membership": {"role": "supervisor"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_membership_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 360, "membership": {"role": "worker"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_membership_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 351, "membership": {"role": null}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_membership_role_OWNER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 375, "membership": {"role": "owner"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_membership_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 325, "membership": {"role": "maintainer"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_membership_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 342, "membership": {"role": "supervisor"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_membership_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "worker"}, "organization": {"id": 108, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 327, "membership": {"role": "worker"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_membership_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 372, "membership": {"role": null}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_membership_role_OWNER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 374, "membership": {"role": "owner"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_membership_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 373, "membership": {"role": "maintainer"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_membership_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 384, "membership": {"role": "supervisor"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_membership_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 223}, "user": {"role": "maintainer"}}}, "resource": {"id": 357, "membership": {"role": "worker"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_membership_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 304, "membership": {"role": null}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_membership_role_OWNER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 368, "membership": {"role": "owner"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_membership_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 385, "membership": {"role": "maintainer"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_membership_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 228}, "user": {"role": "supervisor"}}}, "resource": {"id": 366, "membership": {"role": "supervisor"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_membership_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "membership": {"role": "worker"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_membership_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "worker"}, "organization": {"id": 176, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 397, "membership": {"role": null}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_membership_role_OWNER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 166, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 322, "membership": {"role": "owner"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_membership_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 385, "membership": {"role": "maintainer"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_membership_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 334, "membership": {"role": "supervisor"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_membership_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 212}, "user": {"role": "worker"}}}, "resource": {"id": 378, "membership": {"role": "worker"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_membership_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 293}, "user": {"role": "worker"}}}, "resource": {"id": 334, "membership": {"role": null}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_membership_role_OWNER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 370, "membership": {"role": "owner"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_membership_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 334, "membership": {"role": "maintainer"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_membership_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "none"}, "organization": {"id": 160, "owner": {"id": 28}, "user": {"role": "owner"}}}, "resource": {"id": 328, "membership": {"role": "supervisor"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_membership_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 83}, "user": {"role": "owner"}}}, "resource": {"id": 321, "membership": {"role": "worker"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_membership_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 8}, "user": {"role": "owner"}}}, "resource": {"id": 396, "membership": {"role": null}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_membership_role_OWNER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "membership": {"role": "owner"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_membership_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "membership": {"role": "maintainer"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_membership_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 347, "membership": {"role": "supervisor"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_membership_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "membership": {"role": "worker"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_membership_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "none"}, "organization": {"id": 100, "owner": {"id": 270}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "membership": {"role": null}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_membership_role_OWNER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 203}, "user": {"role": "supervisor"}}}, "resource": {"id": 357, "membership": {"role": "owner"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_membership_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "membership": {"role": "maintainer"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_membership_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 325, "membership": {"role": "supervisor"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_membership_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 248}, "user": {"role": "supervisor"}}}, "resource": {"id": 348, "membership": {"role": "worker"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_membership_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 308, "membership": {"role": null}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_membership_role_OWNER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 157, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 364, "membership": {"role": "owner"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_membership_role_MAINTAINER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 359, "membership": {"role": "maintainer"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_membership_role_SUPERVISOR { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 316, "membership": {"role": "supervisor"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_membership_role_WORKER { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 19, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 320, "membership": {"role": "worker"}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_membership_role_NONE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 273}, "user": {"role": "worker"}}}, "resource": {"id": 370, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_SELF_privilege_ADMIN_membership_NONE_resource_membership_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": null}, "resource": {"id": 16, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_membership_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": null}, "resource": {"id": 75, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_SELF_privilege_USER_membership_NONE_resource_membership_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": null}, "resource": {"id": 33, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_SELF_privilege_WORKER_membership_NONE_resource_membership_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": null}, "resource": {"id": 14, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_SELF_privilege_NONE_membership_NONE_resource_membership_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": null}, "resource": {"id": 99, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_membership_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": null}, "resource": {"id": 348, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_membership_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": null}, "resource": {"id": 351, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_membership_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": null}, "resource": {"id": 335, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_membership_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": null}, "resource": {"id": 372, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_membership_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": null}, "resource": {"id": 339, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_membership_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 79, "membership": {"role": "owner"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 107, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 35, "membership": {"role": "maintainer"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "update", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 148, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 81, "membership": {"role": "supervisor"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_membership_role_WORKER { - allow with input as {"scope": "update", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 184, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 89, "membership": {"role": "worker"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_membership_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 31, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_membership_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 46, "membership": {"role": "owner"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 77, "membership": {"role": "maintainer"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "update", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 37, "membership": {"role": "supervisor"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_membership_role_WORKER { - allow with input as {"scope": "update", "auth": {"user": {"id": 52, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 294}, "user": {"role": "maintainer"}}}, "resource": {"id": 52, "membership": {"role": "worker"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_membership_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 185, "owner": {"id": 225}, "user": {"role": "maintainer"}}}, "resource": {"id": 97, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_membership_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 10, "membership": {"role": "owner"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_membership_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 65, "membership": {"role": "maintainer"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "update", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 19, "membership": {"role": "supervisor"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_membership_role_WORKER { - allow with input as {"scope": "update", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 55, "membership": {"role": "worker"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_membership_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 29, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_membership_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 33, "membership": {"role": "owner"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 216}, "user": {"role": "worker"}}}, "resource": {"id": 66, "membership": {"role": "maintainer"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "update", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 279}, "user": {"role": "worker"}}}, "resource": {"id": 23, "membership": {"role": "supervisor"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_membership_role_WORKER { - allow with input as {"scope": "update", "auth": {"user": {"id": 56, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 56, "membership": {"role": "worker"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_membership_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 226}, "user": {"role": "worker"}}}, "resource": {"id": 35, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_membership_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 46, "membership": {"role": "owner"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 168, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 91, "membership": {"role": "maintainer"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "update", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 78, "membership": {"role": "supervisor"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_membership_role_WORKER { - allow with input as {"scope": "update", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 41, "membership": {"role": "worker"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_membership_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 94, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 94, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_membership_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 72, "membership": {"role": "owner"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 14, "membership": {"role": "maintainer"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "update", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 100, "owner": {"id": 218}, "user": {"role": "maintainer"}}}, "resource": {"id": 77, "membership": {"role": "supervisor"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_membership_role_WORKER { - allow with input as {"scope": "update", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 70, "membership": {"role": "worker"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_membership_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 29, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_membership_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 279}, "user": {"role": "supervisor"}}}, "resource": {"id": 49, "membership": {"role": "owner"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_membership_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 74, "membership": {"role": "maintainer"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "update", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 76, "membership": {"role": "supervisor"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_membership_role_WORKER { - allow with input as {"scope": "update", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 247}, "user": {"role": "supervisor"}}}, "resource": {"id": 36, "membership": {"role": "worker"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_membership_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 83, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 83, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_membership_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 158, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 80, "membership": {"role": "owner"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 82, "privilege": "business"}, "organization": {"id": 146, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 82, "membership": {"role": "maintainer"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "update", "auth": {"user": {"id": 95, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 291}, "user": {"role": "worker"}}}, "resource": {"id": 95, "membership": {"role": "supervisor"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_membership_role_WORKER { - allow with input as {"scope": "update", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 84, "membership": {"role": "worker"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_membership_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 61, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 61, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_membership_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 96, "membership": {"role": "owner"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 55, "membership": {"role": "maintainer"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "update", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 91, "membership": {"role": "supervisor"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_membership_role_WORKER { - allow with input as {"scope": "update", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 43, "membership": {"role": "worker"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_membership_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 73}, "user": {"role": "owner"}}}, "resource": {"id": 73, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_membership_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 221}, "user": {"role": "maintainer"}}}, "resource": {"id": 54, "membership": {"role": "owner"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 29, "membership": {"role": "maintainer"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "update", "auth": {"user": {"id": 59, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 241}, "user": {"role": "maintainer"}}}, "resource": {"id": 59, "membership": {"role": "supervisor"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_membership_role_WORKER { - allow with input as {"scope": "update", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 93, "membership": {"role": "worker"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_membership_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 87, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_membership_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 231}, "user": {"role": "supervisor"}}}, "resource": {"id": 45, "membership": {"role": "owner"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_membership_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 57, "membership": {"role": "maintainer"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "update", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 238}, "user": {"role": "supervisor"}}}, "resource": {"id": 31, "membership": {"role": "supervisor"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_membership_role_WORKER { - allow with input as {"scope": "update", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 78, "membership": {"role": "worker"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_membership_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 70, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_membership_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 80, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 80, "membership": {"role": "owner"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 32, "membership": {"role": "maintainer"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "update", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 61, "membership": {"role": "supervisor"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_membership_role_WORKER { - allow with input as {"scope": "update", "auth": {"user": {"id": 30, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 30, "membership": {"role": "worker"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_membership_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 62, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_membership_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 30, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 30}, "user": {"role": "owner"}}}, "resource": {"id": 30, "membership": {"role": "owner"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 86, "membership": {"role": "maintainer"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "update", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 96, "membership": {"role": "supervisor"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_membership_role_WORKER { - allow with input as {"scope": "update", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 79, "membership": {"role": "worker"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_membership_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 58, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_membership_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 8, "membership": {"role": "owner"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 171, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"id": 22, "membership": {"role": "maintainer"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "update", "auth": {"user": {"id": 94, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 94, "membership": {"role": "supervisor"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_membership_role_WORKER { - allow with input as {"scope": "update", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 66, "membership": {"role": "worker"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_membership_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 245}, "user": {"role": "maintainer"}}}, "resource": {"id": 81, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_membership_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 294}, "user": {"role": "supervisor"}}}, "resource": {"id": 91, "membership": {"role": "owner"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_membership_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 161, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 27, "membership": {"role": "maintainer"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "update", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 69, "membership": {"role": "supervisor"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_membership_role_WORKER { - allow with input as {"scope": "update", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 88, "membership": {"role": "worker"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_membership_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 46, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 46, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_membership_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 84, "membership": {"role": "owner"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 118, "owner": {"id": 250}, "user": {"role": "worker"}}}, "resource": {"id": 5, "membership": {"role": "maintainer"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "update", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 18, "membership": {"role": "supervisor"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_membership_role_WORKER { - allow with input as {"scope": "update", "auth": {"user": {"id": 32, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 32, "membership": {"role": "worker"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_membership_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 107, "owner": {"id": 244}, "user": {"role": "worker"}}}, "resource": {"id": 14, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_membership_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 4, "membership": {"role": "owner"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 80, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 80}, "user": {"role": "owner"}}}, "resource": {"id": 80, "membership": {"role": "maintainer"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "update", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 12, "membership": {"role": "supervisor"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_membership_role_WORKER { - allow with input as {"scope": "update", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 41, "membership": {"role": "worker"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_membership_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 186, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 98, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_membership_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 118, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 34, "membership": {"role": "owner"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 42, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 42, "membership": {"role": "maintainer"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "update", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 1, "membership": {"role": "supervisor"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_membership_role_WORKER { - allow with input as {"scope": "update", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 65, "membership": {"role": "worker"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_membership_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 72, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 72, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_membership_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 11, "membership": {"role": "owner"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_membership_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 35, "membership": {"role": "maintainer"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "update", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 31, "membership": {"role": "supervisor"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_membership_role_WORKER { - allow with input as {"scope": "update", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 62, "membership": {"role": "worker"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_membership_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 29, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_membership_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 71, "membership": {"role": "owner"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 99, "membership": {"role": "maintainer"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "update", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 158, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 79, "membership": {"role": "supervisor"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_membership_role_WORKER { - allow with input as {"scope": "update", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 63, "membership": {"role": "worker"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_membership_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 90, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_membership_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 373, "membership": {"role": "owner"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 95}, "user": {"role": "owner"}}}, "resource": {"id": 318, "membership": {"role": "maintainer"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "update", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 389, "membership": {"role": "supervisor"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_membership_role_WORKER { - allow with input as {"scope": "update", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 68}, "user": {"role": "owner"}}}, "resource": {"id": 355, "membership": {"role": "worker"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_membership_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 16, "privilege": "admin"}, "organization": {"id": 192, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 355, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_membership_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 12, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 309, "membership": {"role": "owner"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 62, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "membership": {"role": "maintainer"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "update", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 381, "membership": {"role": "supervisor"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_membership_role_WORKER { - allow with input as {"scope": "update", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 260}, "user": {"role": "maintainer"}}}, "resource": {"id": 316, "membership": {"role": "worker"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_membership_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 331, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_membership_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "membership": {"role": "owner"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_membership_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 190, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "membership": {"role": "maintainer"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "update", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 172, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 331, "membership": {"role": "supervisor"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_membership_role_WORKER { - allow with input as {"scope": "update", "auth": {"user": {"id": 64, "privilege": "admin"}, "organization": {"id": 165, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 317, "membership": {"role": "worker"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_membership_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 81, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 377, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_membership_role_OWNER { - allow with input as {"scope": "update", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 373, "membership": {"role": "owner"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "update", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 332, "membership": {"role": "maintainer"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "update", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 320, "membership": {"role": "supervisor"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_membership_role_WORKER { - allow with input as {"scope": "update", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 366, "membership": {"role": "worker"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_membership_role_NONE { - allow with input as {"scope": "update", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 259}, "user": {"role": "worker"}}}, "resource": {"id": 337, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_membership_role_OWNER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 346, "membership": {"role": "owner"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_membership_role_MAINTAINER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 382, "membership": {"role": "maintainer"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_membership_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 199, "owner": {"id": 39}, "user": {"role": "owner"}}}, "resource": {"id": 355, "membership": {"role": "supervisor"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_membership_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 331, "membership": {"role": "worker"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_membership_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": {"id": 117, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 307, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_membership_role_OWNER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"id": 344, "membership": {"role": "owner"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_membership_role_MAINTAINER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 353, "membership": {"role": "maintainer"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_membership_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 164, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "membership": {"role": "supervisor"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_membership_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 51, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 367, "membership": {"role": "worker"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_membership_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_membership_role_OWNER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 81, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "membership": {"role": "owner"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_membership_role_MAINTAINER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 363, "membership": {"role": "maintainer"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_membership_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "membership": {"role": "supervisor"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_membership_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 324, "membership": {"role": "worker"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_membership_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 101, "owner": {"id": 236}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_membership_role_OWNER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 111, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 390, "membership": {"role": "owner"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_membership_role_MAINTAINER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 94, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 288}, "user": {"role": "worker"}}}, "resource": {"id": 326, "membership": {"role": "maintainer"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_membership_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 172, "owner": {"id": 286}, "user": {"role": "worker"}}}, "resource": {"id": 316, "membership": {"role": "supervisor"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_membership_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 97, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 384, "membership": {"role": "worker"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_membership_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 224}, "user": {"role": "worker"}}}, "resource": {"id": 302, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_membership_role_OWNER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 390, "membership": {"role": "owner"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_membership_role_MAINTAINER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 304, "membership": {"role": "maintainer"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_membership_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 319, "membership": {"role": "supervisor"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_membership_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 189, "owner": {"id": 42}, "user": {"role": "owner"}}}, "resource": {"id": 304, "membership": {"role": "worker"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_membership_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 172, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 398, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_membership_role_OWNER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"id": 378, "membership": {"role": "owner"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_membership_role_MAINTAINER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 166, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 363, "membership": {"role": "maintainer"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_membership_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 246}, "user": {"role": "maintainer"}}}, "resource": {"id": 394, "membership": {"role": "supervisor"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_membership_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "membership": {"role": "worker"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_membership_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 319, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_membership_role_OWNER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 13, "privilege": "user"}, "organization": {"id": 154, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 346, "membership": {"role": "owner"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_membership_role_MAINTAINER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 197, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "membership": {"role": "maintainer"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_membership_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 174, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 390, "membership": {"role": "supervisor"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_membership_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "membership": {"role": "worker"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_membership_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 381, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_membership_role_OWNER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 301, "membership": {"role": "owner"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_membership_role_MAINTAINER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 25, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 322, "membership": {"role": "maintainer"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_membership_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 72, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 367, "membership": {"role": "supervisor"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_membership_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 399, "membership": {"role": "worker"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_membership_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 75, "privilege": "user"}, "organization": {"id": 102, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 378, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_membership_role_OWNER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 383, "membership": {"role": "owner"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_membership_role_MAINTAINER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 89, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 89}, "user": {"role": "owner"}}}, "resource": {"id": 355, "membership": {"role": "maintainer"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_membership_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 4}, "user": {"role": "owner"}}}, "resource": {"id": 393, "membership": {"role": "supervisor"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_membership_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 369, "membership": {"role": "worker"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_membership_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 311, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_membership_role_OWNER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 244}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "membership": {"role": "owner"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_membership_role_MAINTAINER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 44, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 370, "membership": {"role": "maintainer"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_membership_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 4, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 258}, "user": {"role": "maintainer"}}}, "resource": {"id": 313, "membership": {"role": "supervisor"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_membership_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 84, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 351, "membership": {"role": "worker"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_membership_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 53, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_membership_role_OWNER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 336, "membership": {"role": "owner"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_membership_role_MAINTAINER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 98, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 314, "membership": {"role": "maintainer"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_membership_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 156, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 350, "membership": {"role": "supervisor"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_membership_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 269}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "membership": {"role": "worker"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_membership_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": {"id": 132, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_membership_role_OWNER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 19, "privilege": "worker"}, "organization": {"id": 100, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 384, "membership": {"role": "owner"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_membership_role_MAINTAINER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 347, "membership": {"role": "maintainer"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_membership_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 179, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 364, "membership": {"role": "supervisor"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_membership_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 150, "owner": {"id": 296}, "user": {"role": "worker"}}}, "resource": {"id": 393, "membership": {"role": "worker"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_membership_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": {"id": 123, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 362, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_membership_role_OWNER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 341, "membership": {"role": "owner"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_membership_role_MAINTAINER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 388, "membership": {"role": "maintainer"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_membership_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 320, "membership": {"role": "supervisor"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_membership_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 181, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 338, "membership": {"role": "worker"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_membership_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 71, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 369, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_membership_role_OWNER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 123, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 318, "membership": {"role": "owner"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_membership_role_MAINTAINER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 359, "membership": {"role": "maintainer"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_membership_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "membership": {"role": "supervisor"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_membership_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 307, "membership": {"role": "worker"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_membership_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": {"id": 106, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 399, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_membership_role_OWNER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 168, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 393, "membership": {"role": "owner"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_membership_role_MAINTAINER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "membership": {"role": "maintainer"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_membership_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 355, "membership": {"role": "supervisor"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_membership_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 266}, "user": {"role": "supervisor"}}}, "resource": {"id": 392, "membership": {"role": "worker"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_membership_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 196, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 344, "membership": {"role": null}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_membership_role_OWNER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 312, "membership": {"role": "owner"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_membership_role_MAINTAINER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 257}, "user": {"role": "worker"}}}, "resource": {"id": 323, "membership": {"role": "maintainer"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_membership_role_SUPERVISOR { - not allow with input as {"scope": "update", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 396, "membership": {"role": "supervisor"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_membership_role_WORKER { - not allow with input as {"scope": "update", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 329, "membership": {"role": "worker"}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_membership_role_NONE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 328, "membership": {"role": null}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_ADMIN_membership_NONE_resource_membership_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": null}, "resource": {"id": 21, "membership": {"role": null}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_BUSINESS_membership_NONE_resource_membership_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": null}, "resource": {"id": 11, "membership": {"role": null}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_USER_membership_NONE_resource_membership_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 24, "privilege": "user"}, "organization": null}, "resource": {"id": 24, "membership": {"role": null}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_WORKER_membership_NONE_resource_membership_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": null}, "resource": {"id": 34, "membership": {"role": null}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_SELF_privilege_NONE_membership_NONE_resource_membership_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 27, "privilege": "none"}, "organization": null}, "resource": {"id": 27, "membership": {"role": null}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_membership_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": null}, "resource": {"id": 381, "membership": {"role": null}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_membership_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": null}, "resource": {"id": 362, "membership": {"role": null}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_membership_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": null}, "resource": {"id": 392, "membership": {"role": null}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_membership_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": null}, "resource": {"id": 369, "membership": {"role": null}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_membership_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": null}, "resource": {"id": 302, "membership": {"role": null}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_membership_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 92, "membership": {"role": "owner"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 97, "membership": {"role": "maintainer"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 46, "membership": {"role": "supervisor"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_membership_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 35, "membership": {"role": "worker"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_OWNER_resource_membership_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 31, "membership": {"role": null}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_membership_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 19, "membership": {"role": "owner"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 281}, "user": {"role": "maintainer"}}}, "resource": {"id": 88, "membership": {"role": "maintainer"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 161, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 66, "membership": {"role": "supervisor"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_membership_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 178, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 9, "membership": {"role": "worker"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_MAINTAINER_resource_membership_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 32, "membership": {"role": null}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_membership_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 254}, "user": {"role": "supervisor"}}}, "resource": {"id": 77, "membership": {"role": "owner"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_membership_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 169, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 42, "membership": {"role": "maintainer"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 58, "membership": {"role": "supervisor"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_membership_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 135, "owner": {"id": 282}, "user": {"role": "supervisor"}}}, "resource": {"id": 11, "membership": {"role": "worker"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_SUPERVISOR_resource_membership_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 17, "membership": {"role": null}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_membership_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 155, "owner": {"id": 221}, "user": {"role": "worker"}}}, "resource": {"id": 24, "membership": {"role": "owner"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 70, "membership": {"role": "maintainer"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 98, "membership": {"role": "supervisor"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_membership_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 144, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 0, "membership": {"role": "worker"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_ADMIN_membership_WORKER_resource_membership_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 27, "privilege": "admin"}, "organization": {"id": 121, "owner": {"id": 205}, "user": {"role": "worker"}}}, "resource": {"id": 27, "membership": {"role": null}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_membership_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 33, "membership": {"role": "owner"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 7, "membership": {"role": "maintainer"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 125, "owner": {"id": 74}, "user": {"role": "owner"}}}, "resource": {"id": 74, "membership": {"role": "supervisor"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_membership_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 76}, "user": {"role": "owner"}}}, "resource": {"id": 76, "membership": {"role": "worker"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_OWNER_resource_membership_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 13, "membership": {"role": null}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_membership_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 47, "membership": {"role": "owner"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "business"}, "organization": {"id": 143, "owner": {"id": 238}, "user": {"role": "maintainer"}}}, "resource": {"id": 31, "membership": {"role": "maintainer"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 19, "membership": {"role": "supervisor"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_membership_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 219}, "user": {"role": "maintainer"}}}, "resource": {"id": 58, "membership": {"role": "worker"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_MAINTAINER_resource_membership_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 232}, "user": {"role": "maintainer"}}}, "resource": {"id": 89, "membership": {"role": null}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_membership_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 223}, "user": {"role": "supervisor"}}}, "resource": {"id": 75, "membership": {"role": "owner"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_membership_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 178, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 86, "membership": {"role": "maintainer"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 20, "privilege": "business"}, "organization": {"id": 137, "owner": {"id": 240}, "user": {"role": "supervisor"}}}, "resource": {"id": 20, "membership": {"role": "supervisor"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_membership_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 73, "membership": {"role": "worker"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_SUPERVISOR_resource_membership_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "business"}, "organization": {"id": 182, "owner": {"id": 281}, "user": {"role": "supervisor"}}}, "resource": {"id": 0, "membership": {"role": null}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_membership_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "business"}, "organization": {"id": 139, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 59, "membership": {"role": "owner"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 4, "membership": {"role": "maintainer"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 231}, "user": {"role": "worker"}}}, "resource": {"id": 11, "membership": {"role": "supervisor"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_membership_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 67, "membership": {"role": "worker"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_BUSINESS_membership_WORKER_resource_membership_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 39, "membership": {"role": null}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_membership_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 43, "membership": {"role": "owner"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 87, "membership": {"role": "maintainer"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 9, "membership": {"role": "supervisor"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_membership_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 61, "membership": {"role": "worker"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_OWNER_resource_membership_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 27, "membership": {"role": null}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_membership_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 46, "membership": {"role": "owner"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 48, "membership": {"role": "maintainer"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"id": 22, "membership": {"role": "supervisor"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_membership_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 70, "membership": {"role": "worker"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_MAINTAINER_resource_membership_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 273}, "user": {"role": "maintainer"}}}, "resource": {"id": 76, "membership": {"role": null}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_membership_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 42, "membership": {"role": "owner"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_membership_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 64, "membership": {"role": "maintainer"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 157, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 57, "membership": {"role": "supervisor"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_membership_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 182, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 67, "membership": {"role": "worker"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_SUPERVISOR_resource_membership_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": {"id": 132, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 28, "membership": {"role": null}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_membership_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "user"}, "organization": {"id": 145, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 5, "membership": {"role": "owner"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 193, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 99, "membership": {"role": "maintainer"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 143, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 58, "membership": {"role": "supervisor"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_membership_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 11, "membership": {"role": "worker"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_USER_membership_WORKER_resource_membership_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 209}, "user": {"role": "worker"}}}, "resource": {"id": 66, "membership": {"role": null}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_membership_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 92, "membership": {"role": "owner"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 9, "membership": {"role": "maintainer"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 35, "membership": {"role": "supervisor"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_membership_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 22, "membership": {"role": "worker"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_OWNER_resource_membership_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 91, "membership": {"role": null}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_membership_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "worker"}, "organization": {"id": 191, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 72, "membership": {"role": "owner"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 28, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 252}, "user": {"role": "maintainer"}}}, "resource": {"id": 28, "membership": {"role": "maintainer"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 48, "membership": {"role": "supervisor"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_membership_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "worker"}, "organization": {"id": 116, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 60, "membership": {"role": "worker"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_MAINTAINER_resource_membership_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 184, "owner": {"id": 201}, "user": {"role": "maintainer"}}}, "resource": {"id": 9, "membership": {"role": null}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_membership_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "worker"}, "organization": {"id": 193, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 61, "membership": {"role": "owner"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_membership_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 129, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 37, "membership": {"role": "maintainer"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 96, "membership": {"role": "supervisor"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_membership_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "worker"}, "organization": {"id": 144, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 88, "membership": {"role": "worker"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_SUPERVISOR_resource_membership_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 283}, "user": {"role": "supervisor"}}}, "resource": {"id": 2, "membership": {"role": null}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_membership_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 63, "membership": {"role": "owner"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 99, "membership": {"role": "maintainer"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 290}, "user": {"role": "worker"}}}, "resource": {"id": 78, "membership": {"role": "supervisor"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_membership_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 40, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 282}, "user": {"role": "worker"}}}, "resource": {"id": 40, "membership": {"role": "worker"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_WORKER_membership_WORKER_resource_membership_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 114, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 27, "membership": {"role": null}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_membership_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 18}, "user": {"role": "owner"}}}, "resource": {"id": 18, "membership": {"role": "owner"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": {"id": 103, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 88, "membership": {"role": "maintainer"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 32, "membership": {"role": "supervisor"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_membership_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 131, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 31, "membership": {"role": "worker"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_OWNER_resource_membership_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 87, "membership": {"role": null}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_membership_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 200}, "user": {"role": "maintainer"}}}, "resource": {"id": 6, "membership": {"role": "owner"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 17, "membership": {"role": "maintainer"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 197, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 67, "membership": {"role": "supervisor"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_membership_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 94, "membership": {"role": "worker"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_MAINTAINER_resource_membership_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "none"}, "organization": {"id": 176, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 13, "membership": {"role": null}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_membership_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 124, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 76, "membership": {"role": "owner"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_membership_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 152, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 33, "membership": {"role": "maintainer"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 79, "membership": {"role": "supervisor"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_membership_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 4, "membership": {"role": "worker"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_SUPERVISOR_resource_membership_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "none"}, "organization": {"id": 151, "owner": {"id": 287}, "user": {"role": "supervisor"}}}, "resource": {"id": 31, "membership": {"role": null}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_membership_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 150, "owner": {"id": 207}, "user": {"role": "worker"}}}, "resource": {"id": 90, "membership": {"role": "owner"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 274}, "user": {"role": "worker"}}}, "resource": {"id": 3, "membership": {"role": "maintainer"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 86, "membership": {"role": "supervisor"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_membership_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 19, "membership": {"role": "worker"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_SELF_privilege_NONE_membership_WORKER_resource_membership_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 88, "membership": {"role": null}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_membership_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 317, "membership": {"role": "owner"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 61}, "user": {"role": "owner"}}}, "resource": {"id": 346, "membership": {"role": "maintainer"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 376, "membership": {"role": "supervisor"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_membership_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 326, "membership": {"role": "worker"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_membership_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 332, "membership": {"role": null}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_membership_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 290}, "user": {"role": "maintainer"}}}, "resource": {"id": 368, "membership": {"role": "owner"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": {"id": 153, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "membership": {"role": "maintainer"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "admin"}, "organization": {"id": 164, "owner": {"id": 249}, "user": {"role": "maintainer"}}}, "resource": {"id": 396, "membership": {"role": "supervisor"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_membership_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 189, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 365, "membership": {"role": "worker"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_membership_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "membership": {"role": null}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_membership_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "membership": {"role": "owner"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_membership_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 127, "owner": {"id": 217}, "user": {"role": "supervisor"}}}, "resource": {"id": 311, "membership": {"role": "maintainer"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 327, "membership": {"role": "supervisor"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_membership_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "admin"}, "organization": {"id": 152, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 389, "membership": {"role": "worker"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_membership_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 386, "membership": {"role": null}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_membership_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 166, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 315, "membership": {"role": "owner"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 365, "membership": {"role": "maintainer"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 350, "membership": {"role": "supervisor"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_membership_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "admin"}, "organization": {"id": 117, "owner": {"id": 232}, "user": {"role": "worker"}}}, "resource": {"id": 391, "membership": {"role": "worker"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_membership_role_NONE { - allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 245}, "user": {"role": "worker"}}}, "resource": {"id": 331, "membership": {"role": null}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_membership_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 349, "membership": {"role": "owner"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 33, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 328, "membership": {"role": "maintainer"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 307, "membership": {"role": "supervisor"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_membership_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 37}, "user": {"role": "owner"}}}, "resource": {"id": 361, "membership": {"role": "worker"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_membership_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 104, "owner": {"id": 55}, "user": {"role": "owner"}}}, "resource": {"id": 371, "membership": {"role": null}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_membership_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "business"}, "organization": {"id": 132, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 306, "membership": {"role": "owner"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 152, "owner": {"id": 210}, "user": {"role": "maintainer"}}}, "resource": {"id": 320, "membership": {"role": "maintainer"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "business"}, "organization": {"id": 114, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 376, "membership": {"role": "supervisor"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_membership_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 345, "membership": {"role": "worker"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_membership_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 308, "membership": {"role": null}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_membership_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 205}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "membership": {"role": "owner"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_membership_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 94, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 321, "membership": {"role": "maintainer"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 318, "membership": {"role": "supervisor"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_membership_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 210}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "membership": {"role": "worker"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_membership_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": {"id": 131, "owner": {"id": 260}, "user": {"role": "supervisor"}}}, "resource": {"id": 326, "membership": {"role": null}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_membership_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "business"}, "organization": {"id": 115, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 310, "membership": {"role": "owner"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 393, "membership": {"role": "maintainer"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "business"}, "organization": {"id": 198, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 321, "membership": {"role": "supervisor"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_membership_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 127, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 324, "membership": {"role": "worker"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_membership_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 320, "membership": {"role": null}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_membership_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 307, "membership": {"role": "owner"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 344, "membership": {"role": "maintainer"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 337, "membership": {"role": "supervisor"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_membership_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 376, "membership": {"role": "worker"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_membership_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 32}, "user": {"role": "owner"}}}, "resource": {"id": 321, "membership": {"role": null}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_membership_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 229}, "user": {"role": "maintainer"}}}, "resource": {"id": 395, "membership": {"role": "owner"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 163, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 335, "membership": {"role": "maintainer"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 224}, "user": {"role": "maintainer"}}}, "resource": {"id": 386, "membership": {"role": "supervisor"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_membership_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 348, "membership": {"role": "worker"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_membership_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 325, "membership": {"role": null}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_membership_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 136, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 307, "membership": {"role": "owner"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_membership_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "user"}, "organization": {"id": 125, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 322, "membership": {"role": "maintainer"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 323, "membership": {"role": "supervisor"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_membership_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 150, "owner": {"id": 253}, "user": {"role": "supervisor"}}}, "resource": {"id": 339, "membership": {"role": "worker"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_membership_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 298}, "user": {"role": "supervisor"}}}, "resource": {"id": 352, "membership": {"role": null}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_membership_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 302, "membership": {"role": "owner"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 388, "membership": {"role": "maintainer"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 79, "privilege": "user"}, "organization": {"id": 194, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 347, "membership": {"role": "supervisor"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_membership_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "user"}, "organization": {"id": 161, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 378, "membership": {"role": "worker"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_membership_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 238}, "user": {"role": "worker"}}}, "resource": {"id": 322, "membership": {"role": null}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_membership_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 398, "membership": {"role": "owner"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 139, "owner": {"id": 81}, "user": {"role": "owner"}}}, "resource": {"id": 393, "membership": {"role": "maintainer"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 133, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"id": 394, "membership": {"role": "supervisor"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_membership_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 146, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 389, "membership": {"role": "worker"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_membership_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 365, "membership": {"role": null}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_membership_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 289}, "user": {"role": "maintainer"}}}, "resource": {"id": 312, "membership": {"role": "owner"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 214}, "user": {"role": "maintainer"}}}, "resource": {"id": 343, "membership": {"role": "maintainer"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 113, "owner": {"id": 251}, "user": {"role": "maintainer"}}}, "resource": {"id": 341, "membership": {"role": "supervisor"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_membership_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 263}, "user": {"role": "maintainer"}}}, "resource": {"id": 387, "membership": {"role": "worker"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_membership_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 360, "membership": {"role": null}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_membership_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 333, "membership": {"role": "owner"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_membership_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 375, "membership": {"role": "maintainer"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 394, "membership": {"role": "supervisor"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_membership_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 338, "membership": {"role": "worker"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_membership_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 181, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 367, "membership": {"role": null}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_membership_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 348, "membership": {"role": "owner"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 64, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 235}, "user": {"role": "worker"}}}, "resource": {"id": 390, "membership": {"role": "maintainer"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "worker"}, "organization": {"id": 168, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 330, "membership": {"role": "supervisor"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_membership_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 373, "membership": {"role": "worker"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_membership_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 387, "membership": {"role": null}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_membership_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 82}, "user": {"role": "owner"}}}, "resource": {"id": 316, "membership": {"role": "owner"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 147, "owner": {"id": 92}, "user": {"role": "owner"}}}, "resource": {"id": 399, "membership": {"role": "maintainer"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 347, "membership": {"role": "supervisor"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_membership_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 99}, "user": {"role": "owner"}}}, "resource": {"id": 387, "membership": {"role": "worker"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_membership_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 328, "membership": {"role": null}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_membership_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": {"id": 180, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 330, "membership": {"role": "owner"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 382, "membership": {"role": "maintainer"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 391, "membership": {"role": "supervisor"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_membership_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": {"id": 156, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 320, "membership": {"role": "worker"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_membership_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 352, "membership": {"role": null}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_membership_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 200}, "user": {"role": "supervisor"}}}, "resource": {"id": 387, "membership": {"role": "owner"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_membership_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 161, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 313, "membership": {"role": "maintainer"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 104, "owner": {"id": 220}, "user": {"role": "supervisor"}}}, "resource": {"id": 359, "membership": {"role": "supervisor"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_membership_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 316, "membership": {"role": "worker"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_membership_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 309, "membership": {"role": null}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_membership_role_OWNER { - allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 309, "membership": {"role": "owner"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_membership_role_MAINTAINER { - allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "none"}, "organization": {"id": 143, "owner": {"id": 248}, "user": {"role": "worker"}}}, "resource": {"id": 396, "membership": {"role": "maintainer"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_membership_role_SUPERVISOR { - allow with input as {"scope": "view", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 294}, "user": {"role": "worker"}}}, "resource": {"id": 304, "membership": {"role": "supervisor"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_membership_role_WORKER { - allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": {"id": 105, "owner": {"id": 285}, "user": {"role": "worker"}}}, "resource": {"id": 366, "membership": {"role": "worker"}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_membership_role_NONE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 373, "membership": {"role": null}}} -} - - - -# users_test.gen.rego.py -# # Copyright (C) 2021-2022 Intel Corporation -# # -# # SPDX-License-Identifier: MIT -# -# # Copyright (C) 2021-2022 Intel Corporation -# # -# # SPDX-License-Identifier: MIT -# -# import csv -# import json -# import random -# import sys -# import os -# from itertools import product -# -# NAME = 'users' -# -# def read_rules(name): -# rules = [] -# with open(os.path.join(sys.argv[1], f'{name}.csv')) as f: -# reader = csv.DictReader(f) -# for row in reader: -# row = {k.lower():v.lower().replace('n/a','na') for k,v in row.items()} -# row['limit'] = row['limit'].replace('none', 'None') -# found = False -# for col,val in row.items(): -# if col in ["limit", "method", "url"]: -# continue -# complex_val = [v.strip() for v in val.split(',')] -# if len(complex_val) > 1: -# found = True -# for item in complex_val: -# new_row = row.copy() -# new_row[col] = item -# rules.append(new_row) -# if not found: -# rules.append(row) -# -# return rules -# -# simple_rules = read_rules(NAME) -# -# SCOPES = {rule['scope'] for rule in simple_rules} -# CONTEXTS = ['sandbox', 'organization'] -# OWNERSHIPS = ['self', 'none'] -# GROUPS = ['admin', 'business', 'user', 'worker', 'none'] -# ORG_ROLES = ['owner', 'maintainer', 'supervisor', 'worker', None] -# -# def RESOURCES(scope): -# if scope == 'list': -# return [None] -# else: -# return [{ -# "id": random.randrange(300, 400), -# "membership": { "role": role } -# } for role in ORG_ROLES] -# -# def eval_rule(scope, context, ownership, privilege, membership, data): -# if privilege == 'admin': -# return True -# -# rules = list(filter(lambda r: scope == r['scope'], simple_rules)) -# rules = list(filter(lambda r: r['context'] == 'na' or context == r['context'], rules)) -# rules = list(filter(lambda r: r['ownership'] == 'na' or ownership == r['ownership'], rules)) -# rules = list(filter(lambda r: r['membership'] == 'na' or -# ORG_ROLES.index(membership) <= ORG_ROLES.index(r['membership']), rules)) -# rules = list(filter(lambda r: GROUPS.index(privilege) <= GROUPS.index(r['privilege']), rules)) -# resource = data['resource'] -# rules = list(filter(lambda r: not r['limit'] or eval(r['limit'], {'resource': resource}), rules)) -# -# return bool(rules) -# -# def get_data(scope, context, ownership, privilege, membership, resource): -# data = { -# "scope": scope, -# "auth": { -# "user": { "id": random.randrange(0,100), "privilege": privilege }, -# "organization": { -# "id": random.randrange(100,200), -# "owner": { "id": random.randrange(200, 300) }, -# "user": { "role": membership } -# } if context == 'organization' else None -# }, -# "resource": resource -# } -# -# user_id = data['auth']['user']['id'] -# if context == 'organization': -# if data['auth']['organization']['user']['role'] == 'owner': -# data['auth']['organization']['owner']['id'] = user_id -# -# if ownership == 'self': -# data['resource']['id'] = user_id -# -# return data -# -# def _get_name(prefix, **kwargs): -# name = prefix -# for k,v in kwargs.items(): -# prefix = '_' + str(k) -# if isinstance(v, dict): -# if 'id' in v: -# v = v.copy() -# v.pop('id') -# if v: -# name += _get_name(prefix, **v) -# else: -# name += f'{prefix}_{str(v).upper().replace(":", "_")}' -# -# return name -# -# def get_name(scope, context, ownership, privilege, membership, resource): -# return _get_name('test', **locals()) -# -# def is_valid(scope, context, ownership, privilege, membership, resource): -# if context == "sandbox" and membership: -# return False -# if scope == 'list' and ownership != 'None': -# return False -# if context == "sandbox" and resource["membership"]["role"] != None: -# return False -# if context == "organization" and membership == None: -# return False -# -# return True -# -# def gen_test_rego(name): -# with open(f'{name}_test.gen.rego', 'wt') as f: -# f.write(f'package {name}\n\n') -# for scope, context, ownership, privilege, membership in product( -# SCOPES, CONTEXTS, OWNERSHIPS, GROUPS, ORG_ROLES): -# for resource in RESOURCES(scope): -# if not is_valid(scope, context, ownership, privilege, membership, resource): -# continue -# -# data = get_data(scope, context, ownership, privilege, membership, resource) -# test_name = get_name(scope, context, ownership, privilege, membership, resource) -# result = eval_rule(scope, context, ownership, privilege, membership, data) -# f.write('{test_name} {{\n {allow} with input as {data}\n}}\n\n'.format( -# test_name=test_name, allow='allow' if result else 'not allow', -# data=json.dumps(data))) -# -# # Write the script which is used to generate the file -# with open(sys.argv[0]) as this_file: -# f.write(f'\n\n# {os.path.split(sys.argv[0])[1]}\n') -# for line in this_file: -# if line.strip(): -# f.write(f'# {line}') -# else: -# f.write(f'#\n') -# -# # Write rules which are used to generate the file -# with open(os.path.join(sys.argv[1], f'{name}.csv')) as rego_file: -# f.write(f'\n\n# {name}.csv\n') -# for line in rego_file: -# if line.strip(): -# f.write(f'# {line}') -# else: -# f.write(f'#\n') -# -# gen_test_rego(NAME) - -# users.csv -# Scope,Resource,Context,Ownership,Limit,Method,URL,Privilege,Membership -# list,User,N/A,N/A,,GET,/users,None,N/A -# view,User,Sandbox,None,,GET,/users/{id},Admin,N/A -# view,User,N/A,Self,,GET,/users/{id},None,N/A -# view,User,Organization,None,"resource[""membership""][""role""] != None",GET,/users/{id},None,Worker -# update,User,N/A,None,,PATCH,/users/{id},Admin,N/A -# update,User,N/A,Self,,PATCH,/users/{id},None,N/A -# delete,User,N/A,None,,DELETE,/users/{id},Admin,N/A -# delete,User,N/A,Self,,DELETE,/users/{id},None,N/A \ No newline at end of file diff --git a/cvat/apps/iam/rules/webhooks_test.gen.rego b/cvat/apps/iam/rules/webhooks_test.gen.rego deleted file mode 100644 index 1eabc9a1..00000000 --- a/cvat/apps/iam/rules/webhooks_test.gen.rego +++ /dev/null @@ -1,2206 +0,0 @@ -package webhooks - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": null}, "resource": {"id": 157, "owner": {"id": 275}, "organization": {"id": 335}, "project": {"owner": {"id": 97}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": null}, "resource": {"id": 198, "owner": {"id": 237}, "organization": {"id": 310}, "project": {"owner": {"id": 12}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 27, "privilege": "user"}, "organization": null}, "resource": {"id": 140, "owner": {"id": 251}, "organization": {"id": 334}, "project": {"owner": {"id": 27}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "worker"}, "organization": null}, "resource": {"id": 176, "owner": {"id": 208}, "organization": {"id": 349}, "project": {"owner": {"id": 76}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "none"}, "organization": null}, "resource": {"id": 147, "owner": {"id": 297}, "organization": {"id": 320}, "project": {"owner": {"id": 99}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": null}, "resource": {"id": 125, "owner": {"id": 85}, "organization": {"id": 339}, "project": {"owner": {"id": 451}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "business"}, "organization": null}, "resource": {"id": 173, "owner": {"id": 52}, "organization": {"id": 331}, "project": {"owner": {"id": 460}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": null}, "resource": {"id": 183, "owner": {"id": 96}, "organization": {"id": 301}, "project": {"owner": {"id": 411}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "worker"}, "organization": null}, "resource": {"id": 161, "owner": {"id": 7}, "organization": {"id": 367}, "project": {"owner": {"id": 420}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": null}, "resource": {"id": 140, "owner": {"id": 58}, "organization": {"id": 309}, "project": {"owner": {"id": 401}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "admin"}, "organization": null}, "resource": {"id": 136, "owner": {"id": 277}, "organization": {"id": 326}, "project": {"owner": {"id": 491}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "business"}, "organization": null}, "resource": {"id": 118, "owner": {"id": 255}, "organization": {"id": 316}, "project": {"owner": {"id": 405}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 28, "privilege": "user"}, "organization": null}, "resource": {"id": 158, "owner": {"id": 244}, "organization": {"id": 339}, "project": {"owner": {"id": 429}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": null}, "resource": {"id": 132, "owner": {"id": 205}, "organization": {"id": 390}, "project": {"owner": {"id": 455}}}} -} - -test_scope_VIEW_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": null}, "resource": {"id": 178, "owner": {"id": 272}, "organization": {"id": 338}, "project": {"owner": {"id": 451}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 155, "owner": {"id": 274}, "organization": {"id": 159}, "project": {"owner": {"id": 41}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 60, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 156, "owner": {"id": 286}, "organization": {"id": 327}, "project": {"owner": {"id": 60}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 84, "privilege": "admin"}, "organization": {"id": 181, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 184, "owner": {"id": 210}, "organization": {"id": 181}, "project": {"owner": {"id": 84}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 139, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 142, "owner": {"id": 211}, "organization": {"id": 396}, "project": {"owner": {"id": 86}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 125, "owner": {"id": 218}, "organization": {"id": 160}, "project": {"owner": {"id": 31}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 80, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 198, "owner": {"id": 209}, "organization": {"id": 358}, "project": {"owner": {"id": 80}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 218}, "user": {"role": "worker"}}}, "resource": {"id": 191, "owner": {"id": 289}, "organization": {"id": 131}, "project": {"owner": {"id": 51}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 183, "owner": {"id": 288}, "organization": {"id": 300}, "project": {"owner": {"id": 98}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 154, "owner": {"id": 228}, "organization": {"id": 159}, "project": {"owner": {"id": 66}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 17, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 171, "owner": {"id": 231}, "organization": {"id": 315}, "project": {"owner": {"id": 17}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "business"}, "organization": {"id": 156, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 167, "owner": {"id": 271}, "organization": {"id": 156}, "project": {"owner": {"id": 96}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 192, "owner": {"id": 264}, "organization": {"id": 354}, "project": {"owner": {"id": 57}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 160, "owner": {"id": 257}, "organization": {"id": 181}, "project": {"owner": {"id": 31}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 130, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 198, "owner": {"id": 299}, "organization": {"id": 366}, "project": {"owner": {"id": 80}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 134, "owner": {"id": 242}, "user": {"role": "supervisor"}}}, "resource": {"id": 156, "owner": {"id": 209}, "organization": {"id": 134}, "project": {"owner": {"id": 30}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 19, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 249}, "user": {"role": "supervisor"}}}, "resource": {"id": 140, "owner": {"id": 269}, "organization": {"id": 310}, "project": {"owner": {"id": 19}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "business"}, "organization": {"id": 153, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 188, "owner": {"id": 219}, "organization": {"id": 153}, "project": {"owner": {"id": 8}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 126, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 142, "owner": {"id": 269}, "organization": {"id": 359}, "project": {"owner": {"id": 7}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 197, "owner": {"id": 273}, "user": {"role": null}}}, "resource": {"id": 149, "owner": {"id": 298}, "organization": {"id": 197}, "project": {"owner": {"id": 2}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 249}, "user": {"role": null}}}, "resource": {"id": 148, "owner": {"id": 261}, "organization": {"id": 300}, "project": {"owner": {"id": 38}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 69, "privilege": "user"}, "organization": {"id": 177, "owner": {"id": 69}, "user": {"role": "owner"}}}, "resource": {"id": 153, "owner": {"id": 268}, "organization": {"id": 177}, "project": {"owner": {"id": 69}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 103, "owner": {"id": 62}, "user": {"role": "owner"}}}, "resource": {"id": 162, "owner": {"id": 228}, "organization": {"id": 334}, "project": {"owner": {"id": 62}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 259}, "user": {"role": "maintainer"}}}, "resource": {"id": 143, "owner": {"id": 285}, "organization": {"id": 121}, "project": {"owner": {"id": 92}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 175, "owner": {"id": 272}, "user": {"role": "maintainer"}}}, "resource": {"id": 116, "owner": {"id": 279}, "organization": {"id": 368}, "project": {"owner": {"id": 50}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 54, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 259}, "user": {"role": "supervisor"}}}, "resource": {"id": 184, "owner": {"id": 203}, "organization": {"id": 117}, "project": {"owner": {"id": 54}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 258}, "user": {"role": "supervisor"}}}, "resource": {"id": 123, "owner": {"id": 206}, "organization": {"id": 333}, "project": {"owner": {"id": 41}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 35, "privilege": "user"}, "organization": {"id": 196, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 141, "owner": {"id": 243}, "organization": {"id": 196}, "project": {"owner": {"id": 35}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 132, "owner": {"id": 210}, "organization": {"id": 360}, "project": {"owner": {"id": 95}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 144, "owner": {"id": 228}, "organization": {"id": 183}, "project": {"owner": {"id": 99}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 196, "owner": {"id": 203}, "organization": {"id": 331}, "project": {"owner": {"id": 2}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 130, "owner": {"id": 216}, "organization": {"id": 172}, "project": {"owner": {"id": 14}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 47}, "user": {"role": "owner"}}}, "resource": {"id": 159, "owner": {"id": 289}, "organization": {"id": 332}, "project": {"owner": {"id": 47}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 99, "privilege": "worker"}, "organization": {"id": 120, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 177, "owner": {"id": 295}, "organization": {"id": 120}, "project": {"owner": {"id": 99}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "worker"}, "organization": {"id": 186, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 113, "owner": {"id": 274}, "organization": {"id": 303}, "project": {"owner": {"id": 73}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 150, "owner": {"id": 291}, "organization": {"id": 188}, "project": {"owner": {"id": 75}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 276}, "user": {"role": "supervisor"}}}, "resource": {"id": 131, "owner": {"id": 213}, "organization": {"id": 389}, "project": {"owner": {"id": 38}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 154, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 115, "owner": {"id": 272}, "organization": {"id": 154}, "project": {"owner": {"id": 68}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 101, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 147, "owner": {"id": 208}, "organization": {"id": 364}, "project": {"owner": {"id": 43}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 81, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"id": 162, "owner": {"id": 213}, "organization": {"id": 158}, "project": {"owner": {"id": 81}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 66, "privilege": "worker"}, "organization": {"id": 183, "owner": {"id": 234}, "user": {"role": null}}}, "resource": {"id": 119, "owner": {"id": 255}, "organization": {"id": 322}, "project": {"owner": {"id": 66}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 155, "owner": {"id": 59}, "user": {"role": "owner"}}}, "resource": {"id": 178, "owner": {"id": 268}, "organization": {"id": 155}, "project": {"owner": {"id": 59}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 11, "privilege": "none"}, "organization": {"id": 135, "owner": {"id": 11}, "user": {"role": "owner"}}}, "resource": {"id": 175, "owner": {"id": 234}, "organization": {"id": 341}, "project": {"owner": {"id": 11}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 78, "privilege": "none"}, "organization": {"id": 185, "owner": {"id": 248}, "user": {"role": "maintainer"}}}, "resource": {"id": 131, "owner": {"id": 296}, "organization": {"id": 185}, "project": {"owner": {"id": 78}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 162, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 143, "owner": {"id": 203}, "organization": {"id": 363}, "project": {"owner": {"id": 23}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 145, "owner": {"id": 233}, "organization": {"id": 189}, "project": {"owner": {"id": 76}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 130, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 171, "owner": {"id": 201}, "organization": {"id": 366}, "project": {"owner": {"id": 10}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 152, "owner": {"id": 262}, "organization": {"id": 188}, "project": {"owner": {"id": 30}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 182, "owner": {"id": 291}, "organization": {"id": 362}, "project": {"owner": {"id": 2}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 128, "owner": {"id": 251}, "organization": {"id": 184}, "project": {"owner": {"id": 39}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 295}, "user": {"role": null}}}, "resource": {"id": 147, "owner": {"id": 260}, "organization": {"id": 370}, "project": {"owner": {"id": 44}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "admin"}, "organization": {"id": 134, "owner": {"id": 58}, "user": {"role": "owner"}}}, "resource": {"id": 170, "owner": {"id": 58}, "organization": {"id": 134}, "project": {"owner": {"id": 489}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 24, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 24}, "user": {"role": "owner"}}}, "resource": {"id": 132, "owner": {"id": 24}, "organization": {"id": 315}, "project": {"owner": {"id": 492}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 195, "owner": {"id": 23}, "organization": {"id": 124}, "project": {"owner": {"id": 488}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "admin"}, "organization": {"id": 197, "owner": {"id": 267}, "user": {"role": "maintainer"}}}, "resource": {"id": 194, "owner": {"id": 75}, "organization": {"id": 335}, "project": {"owner": {"id": 492}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "admin"}, "organization": {"id": 129, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 176, "owner": {"id": 37}, "organization": {"id": 129}, "project": {"owner": {"id": 424}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 68, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 122, "owner": {"id": 68}, "organization": {"id": 301}, "project": {"owner": {"id": 490}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 105, "owner": {"id": 89}, "organization": {"id": 116}, "project": {"owner": {"id": 437}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 73, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 260}, "user": {"role": "worker"}}}, "resource": {"id": 196, "owner": {"id": 73}, "organization": {"id": 313}, "project": {"owner": {"id": 401}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 132, "owner": {"id": 261}, "user": {"role": null}}}, "resource": {"id": 161, "owner": {"id": 6}, "organization": {"id": 132}, "project": {"owner": {"id": 423}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "admin"}, "organization": {"id": 173, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 114, "owner": {"id": 9}, "organization": {"id": 351}, "project": {"owner": {"id": 462}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 138, "owner": {"id": 72}, "user": {"role": "owner"}}}, "resource": {"id": 187, "owner": {"id": 72}, "organization": {"id": 138}, "project": {"owner": {"id": 419}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 131, "owner": {"id": 53}, "organization": {"id": 371}, "project": {"owner": {"id": 497}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "business"}, "organization": {"id": 157, "owner": {"id": 256}, "user": {"role": "maintainer"}}}, "resource": {"id": 179, "owner": {"id": 48}, "organization": {"id": 157}, "project": {"owner": {"id": 466}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 207}, "user": {"role": "maintainer"}}}, "resource": {"id": 138, "owner": {"id": 72}, "organization": {"id": 354}, "project": {"owner": {"id": 439}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 26, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 227}, "user": {"role": "supervisor"}}}, "resource": {"id": 178, "owner": {"id": 26}, "organization": {"id": 180}, "project": {"owner": {"id": 497}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "business"}, "organization": {"id": 122, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 133, "owner": {"id": 30}, "organization": {"id": 310}, "project": {"owner": {"id": 420}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 57, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 109, "owner": {"id": 57}, "organization": {"id": 188}, "project": {"owner": {"id": 452}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 190, "owner": {"id": 236}, "user": {"role": "worker"}}}, "resource": {"id": 160, "owner": {"id": 36}, "organization": {"id": 304}, "project": {"owner": {"id": 429}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 189, "owner": {"id": 29}, "organization": {"id": 133}, "project": {"owner": {"id": 487}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 228}, "user": {"role": null}}}, "resource": {"id": 175, "owner": {"id": 14}, "organization": {"id": 325}, "project": {"owner": {"id": 454}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 107, "owner": {"id": 9}, "user": {"role": "owner"}}}, "resource": {"id": 182, "owner": {"id": 9}, "organization": {"id": 107}, "project": {"owner": {"id": 418}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 36, "privilege": "user"}, "organization": {"id": 156, "owner": {"id": 36}, "user": {"role": "owner"}}}, "resource": {"id": 139, "owner": {"id": 36}, "organization": {"id": 395}, "project": {"owner": {"id": 472}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 51, "privilege": "user"}, "organization": {"id": 134, "owner": {"id": 264}, "user": {"role": "maintainer"}}}, "resource": {"id": 159, "owner": {"id": 51}, "organization": {"id": 134}, "project": {"owner": {"id": 489}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 76, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 169, "owner": {"id": 76}, "organization": {"id": 356}, "project": {"owner": {"id": 410}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 229}, "user": {"role": "supervisor"}}}, "resource": {"id": 194, "owner": {"id": 3}, "organization": {"id": 111}, "project": {"owner": {"id": 432}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 97, "privilege": "user"}, "organization": {"id": 186, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 186, "owner": {"id": 97}, "organization": {"id": 375}, "project": {"owner": {"id": 402}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 266}, "user": {"role": "worker"}}}, "resource": {"id": 173, "owner": {"id": 22}, "organization": {"id": 160}, "project": {"owner": {"id": 496}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 155, "owner": {"id": 281}, "user": {"role": "worker"}}}, "resource": {"id": 183, "owner": {"id": 74}, "organization": {"id": 335}, "project": {"owner": {"id": 423}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 162, "owner": {"id": 52}, "organization": {"id": 142}, "project": {"owner": {"id": 444}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 188, "owner": {"id": 263}, "user": {"role": null}}}, "resource": {"id": 185, "owner": {"id": 52}, "organization": {"id": 320}, "project": {"owner": {"id": 442}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "worker"}, "organization": {"id": 104, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 136, "owner": {"id": 70}, "organization": {"id": 104}, "project": {"owner": {"id": 497}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 198, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 111, "owner": {"id": 14}, "organization": {"id": 332}, "project": {"owner": {"id": 441}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 59, "privilege": "worker"}, "organization": {"id": 152, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 165, "owner": {"id": 59}, "organization": {"id": 152}, "project": {"owner": {"id": 469}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 163, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 124, "owner": {"id": 96}, "organization": {"id": 346}, "project": {"owner": {"id": 479}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 216}, "user": {"role": "supervisor"}}}, "resource": {"id": 156, "owner": {"id": 34}, "organization": {"id": 170}, "project": {"owner": {"id": 426}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 103, "owner": {"id": 280}, "user": {"role": "supervisor"}}}, "resource": {"id": 136, "owner": {"id": 15}, "organization": {"id": 389}, "project": {"owner": {"id": 462}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 177, "owner": {"id": 39}, "organization": {"id": 170}, "project": {"owner": {"id": 420}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "worker"}, "organization": {"id": 159, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 170, "owner": {"id": 14}, "organization": {"id": 311}, "project": {"owner": {"id": 428}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"id": 182, "owner": {"id": 37}, "organization": {"id": 165}, "project": {"owner": {"id": 491}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 158, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 134, "owner": {"id": 31}, "organization": {"id": 361}, "project": {"owner": {"id": 460}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 65}, "user": {"role": "owner"}}}, "resource": {"id": 118, "owner": {"id": 65}, "organization": {"id": 195}, "project": {"owner": {"id": 476}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 164, "owner": {"id": 43}, "user": {"role": "owner"}}}, "resource": {"id": 108, "owner": {"id": 43}, "organization": {"id": 398}, "project": {"owner": {"id": 453}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 75, "privilege": "none"}, "organization": {"id": 174, "owner": {"id": 284}, "user": {"role": "maintainer"}}}, "resource": {"id": 100, "owner": {"id": 75}, "organization": {"id": 174}, "project": {"owner": {"id": 438}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 61, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 242}, "user": {"role": "maintainer"}}}, "resource": {"id": 162, "owner": {"id": 61}, "organization": {"id": 357}, "project": {"owner": {"id": 468}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "none"}, "organization": {"id": 141, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 170, "owner": {"id": 58}, "organization": {"id": 141}, "project": {"owner": {"id": 448}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 199, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 189, "owner": {"id": 29}, "organization": {"id": 373}, "project": {"owner": {"id": 449}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 249}, "user": {"role": "worker"}}}, "resource": {"id": 105, "owner": {"id": 90}, "organization": {"id": 148}, "project": {"owner": {"id": 460}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 184, "owner": {"id": 4}, "organization": {"id": 319}, "project": {"owner": {"id": 463}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 258}, "user": {"role": null}}}, "resource": {"id": 175, "owner": {"id": 12}, "organization": {"id": 167}, "project": {"owner": {"id": 456}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 83, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 209}, "user": {"role": null}}}, "resource": {"id": 101, "owner": {"id": 83}, "organization": {"id": 318}, "project": {"owner": {"id": 452}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 88}, "user": {"role": "owner"}}}, "resource": {"id": 160, "owner": {"id": 233}, "organization": {"id": 150}, "project": {"owner": {"id": 479}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 110, "owner": {"id": 242}, "organization": {"id": 386}, "project": {"owner": {"id": 468}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 191, "owner": {"id": 297}, "organization": {"id": 179}, "project": {"owner": {"id": 469}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 29, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 130, "owner": {"id": 280}, "organization": {"id": 387}, "project": {"owner": {"id": 436}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 155, "owner": {"id": 212}, "organization": {"id": 112}, "project": {"owner": {"id": 481}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "admin"}, "organization": {"id": 141, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 121, "owner": {"id": 288}, "organization": {"id": 338}, "project": {"owner": {"id": 403}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "admin"}, "organization": {"id": 131, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 137, "owner": {"id": 245}, "organization": {"id": 131}, "project": {"owner": {"id": 455}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 152, "owner": {"id": 272}, "organization": {"id": 387}, "project": {"owner": {"id": 423}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 178, "owner": {"id": 248}, "organization": {"id": 163}, "project": {"owner": {"id": 487}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "view", "auth": {"user": {"id": 32, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 118, "owner": {"id": 229}, "organization": {"id": 359}, "project": {"owner": {"id": 481}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 169, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 185, "owner": {"id": 201}, "organization": {"id": 169}, "project": {"owner": {"id": 436}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 181, "owner": {"id": 38}, "user": {"role": "owner"}}}, "resource": {"id": 109, "owner": {"id": 256}, "organization": {"id": 344}, "project": {"owner": {"id": 475}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 25, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 188, "owner": {"id": 232}, "organization": {"id": 149}, "project": {"owner": {"id": 438}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 45, "privilege": "business"}, "organization": {"id": 173, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 113, "owner": {"id": 230}, "organization": {"id": 348}, "project": {"owner": {"id": 473}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 50, "privilege": "business"}, "organization": {"id": 135, "owner": {"id": 201}, "user": {"role": "supervisor"}}}, "resource": {"id": 189, "owner": {"id": 237}, "organization": {"id": 135}, "project": {"owner": {"id": 484}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 177, "owner": {"id": 295}, "user": {"role": "supervisor"}}}, "resource": {"id": 172, "owner": {"id": 287}, "organization": {"id": 399}, "project": {"owner": {"id": 495}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 77, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 228}, "user": {"role": "worker"}}}, "resource": {"id": 163, "owner": {"id": 236}, "organization": {"id": 145}, "project": {"owner": {"id": 429}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 196, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 181, "owner": {"id": 224}, "organization": {"id": 379}, "project": {"owner": {"id": 432}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 80, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 198, "owner": {"id": 284}, "organization": {"id": 112}, "project": {"owner": {"id": 417}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 174, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 182, "owner": {"id": 205}, "organization": {"id": 339}, "project": {"owner": {"id": 456}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 41, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 193, "owner": {"id": 216}, "organization": {"id": 195}, "project": {"owner": {"id": 437}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 167, "owner": {"id": 46}, "user": {"role": "owner"}}}, "resource": {"id": 122, "owner": {"id": 225}, "organization": {"id": 316}, "project": {"owner": {"id": 469}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 134, "owner": {"id": 221}, "organization": {"id": 195}, "project": {"owner": {"id": 461}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 96, "privilege": "user"}, "organization": {"id": 128, "owner": {"id": 286}, "user": {"role": "maintainer"}}}, "resource": {"id": 114, "owner": {"id": 259}, "organization": {"id": 309}, "project": {"owner": {"id": 418}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 46, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 250}, "user": {"role": "supervisor"}}}, "resource": {"id": 192, "owner": {"id": 286}, "organization": {"id": 111}, "project": {"owner": {"id": 471}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 101, "owner": {"id": 233}, "organization": {"id": 368}, "project": {"owner": {"id": 415}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 247}, "user": {"role": "worker"}}}, "resource": {"id": 195, "owner": {"id": 286}, "organization": {"id": 181}, "project": {"owner": {"id": 474}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 113, "owner": {"id": 286}, "organization": {"id": 329}, "project": {"owner": {"id": 460}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 141, "owner": {"id": 278}, "organization": {"id": 181}, "project": {"owner": {"id": 482}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "user"}, "organization": {"id": 117, "owner": {"id": 205}, "user": {"role": null}}}, "resource": {"id": 189, "owner": {"id": 238}, "organization": {"id": 383}, "project": {"owner": {"id": 452}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 12}, "user": {"role": "owner"}}}, "resource": {"id": 104, "owner": {"id": 238}, "organization": {"id": 130}, "project": {"owner": {"id": 414}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 117, "owner": {"id": 249}, "organization": {"id": 358}, "project": {"owner": {"id": 447}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "view", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 169, "owner": {"id": 253}, "organization": {"id": 119}, "project": {"owner": {"id": 495}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 52, "privilege": "worker"}, "organization": {"id": 135, "owner": {"id": 204}, "user": {"role": "maintainer"}}}, "resource": {"id": 183, "owner": {"id": 212}, "organization": {"id": 362}, "project": {"owner": {"id": 478}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 246}, "user": {"role": "supervisor"}}}, "resource": {"id": 188, "owner": {"id": 247}, "organization": {"id": 130}, "project": {"owner": {"id": 456}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 145, "owner": {"id": 207}, "user": {"role": "supervisor"}}}, "resource": {"id": 112, "owner": {"id": 287}, "organization": {"id": 347}, "project": {"owner": {"id": 469}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 58, "privilege": "worker"}, "organization": {"id": 111, "owner": {"id": 284}, "user": {"role": "worker"}}}, "resource": {"id": 150, "owner": {"id": 235}, "organization": {"id": 111}, "project": {"owner": {"id": 415}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 242}, "user": {"role": "worker"}}}, "resource": {"id": 127, "owner": {"id": 282}, "organization": {"id": 381}, "project": {"owner": {"id": 476}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 197, "owner": {"id": 270}, "user": {"role": null}}}, "resource": {"id": 131, "owner": {"id": 216}, "organization": {"id": 197}, "project": {"owner": {"id": 426}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 42, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 218}, "user": {"role": null}}}, "resource": {"id": 126, "owner": {"id": 275}, "organization": {"id": 327}, "project": {"owner": {"id": 429}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 169, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 176, "owner": {"id": 200}, "organization": {"id": 169}, "project": {"owner": {"id": 418}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 16, "privilege": "none"}, "organization": {"id": 101, "owner": {"id": 16}, "user": {"role": "owner"}}}, "resource": {"id": 122, "owner": {"id": 214}, "organization": {"id": 384}, "project": {"owner": {"id": 403}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 22, "privilege": "none"}, "organization": {"id": 133, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 130, "owner": {"id": 275}, "organization": {"id": 133}, "project": {"owner": {"id": 402}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 116, "owner": {"id": 294}, "organization": {"id": 353}, "project": {"owner": {"id": 467}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 160, "owner": {"id": 257}, "organization": {"id": 175}, "project": {"owner": {"id": 446}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 193, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 157, "owner": {"id": 264}, "organization": {"id": 328}, "project": {"owner": {"id": 478}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 3, "privilege": "none"}, "organization": {"id": 107, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 166, "owner": {"id": 238}, "organization": {"id": 107}, "project": {"owner": {"id": 482}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 62, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 151, "owner": {"id": 254}, "organization": {"id": 387}, "project": {"owner": {"id": 413}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 18, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 216}, "user": {"role": null}}}, "resource": {"id": 109, "owner": {"id": 210}, "organization": {"id": 108}, "project": {"owner": {"id": 477}}}} -} - -test_scope_VIEW_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "view", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 241}, "user": {"role": null}}}, "resource": {"id": 135, "owner": {"id": 279}, "organization": {"id": 381}, "project": {"owner": {"id": 474}}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "admin"}, "organization": null}, "resource": {"id": 109, "owner": {"id": 225}, "organization": {"id": 317}, "project": {"owner": {"id": 98}}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": null}, "resource": {"id": 106, "owner": {"id": 286}, "organization": {"id": 338}, "project": {"owner": {"id": 22}}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "user"}, "organization": null}, "resource": {"id": 115, "owner": {"id": 205}, "organization": {"id": 359}, "project": {"owner": {"id": 21}}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 2, "privilege": "worker"}, "organization": null}, "resource": {"id": 167, "owner": {"id": 231}, "organization": {"id": 380}, "project": {"owner": {"id": 2}}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 45, "privilege": "none"}, "organization": null}, "resource": {"id": 197, "owner": {"id": 228}, "organization": {"id": 373}, "project": {"owner": {"id": 45}}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": null}, "resource": {"id": 116, "owner": {"id": 41}, "organization": {"id": 391}, "project": {"owner": {"id": 422}}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": null}, "resource": {"id": 175, "owner": {"id": 93}, "organization": {"id": 348}, "project": {"owner": {"id": 439}}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": null}, "resource": {"id": 157, "owner": {"id": 31}, "organization": {"id": 333}, "project": {"owner": {"id": 426}}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": null}, "resource": {"id": 143, "owner": {"id": 93}, "organization": {"id": 348}, "project": {"owner": {"id": 420}}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "none"}, "organization": null}, "resource": {"id": 162, "owner": {"id": 0}, "organization": {"id": 306}, "project": {"owner": {"id": 446}}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": null}, "resource": {"id": 159, "owner": {"id": 233}, "organization": {"id": 328}, "project": {"owner": {"id": 434}}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": null}, "resource": {"id": 118, "owner": {"id": 215}, "organization": {"id": 396}, "project": {"owner": {"id": 457}}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": null}, "resource": {"id": 172, "owner": {"id": 275}, "organization": {"id": 374}, "project": {"owner": {"id": 497}}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 62, "privilege": "worker"}, "organization": null}, "resource": {"id": 143, "owner": {"id": 238}, "organization": {"id": 339}, "project": {"owner": {"id": 435}}}} -} - -test_scope_DELETE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": null}, "resource": {"id": 172, "owner": {"id": 203}, "organization": {"id": 322}, "project": {"owner": {"id": 424}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 35, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 35}, "user": {"role": "owner"}}}, "resource": {"id": 106, "owner": {"id": 246}, "organization": {"id": 147}, "project": {"owner": {"id": 35}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 103, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 164, "owner": {"id": 250}, "organization": {"id": 381}, "project": {"owner": {"id": 87}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 22, "privilege": "admin"}, "organization": {"id": 160, "owner": {"id": 275}, "user": {"role": "maintainer"}}}, "resource": {"id": 147, "owner": {"id": 262}, "organization": {"id": 160}, "project": {"owner": {"id": 22}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 195, "owner": {"id": 288}, "user": {"role": "maintainer"}}}, "resource": {"id": 170, "owner": {"id": 244}, "organization": {"id": 344}, "project": {"owner": {"id": 33}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 273}, "user": {"role": "supervisor"}}}, "resource": {"id": 111, "owner": {"id": 236}, "organization": {"id": 120}, "project": {"owner": {"id": 6}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 226}, "user": {"role": "supervisor"}}}, "resource": {"id": 199, "owner": {"id": 227}, "organization": {"id": 328}, "project": {"owner": {"id": 28}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 2, "privilege": "admin"}, "organization": {"id": 199, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 134, "owner": {"id": 283}, "organization": {"id": 199}, "project": {"owner": {"id": 2}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 122, "owner": {"id": 276}, "user": {"role": "worker"}}}, "resource": {"id": 187, "owner": {"id": 201}, "organization": {"id": 360}, "project": {"owner": {"id": 82}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"id": 101, "owner": {"id": 228}, "organization": {"id": 191}, "project": {"owner": {"id": 39}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 232}, "user": {"role": null}}}, "resource": {"id": 182, "owner": {"id": 235}, "organization": {"id": 354}, "project": {"owner": {"id": 44}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 66, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"id": 127, "owner": {"id": 259}, "organization": {"id": 179}, "project": {"owner": {"id": 66}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 84, "privilege": "business"}, "organization": {"id": 147, "owner": {"id": 84}, "user": {"role": "owner"}}}, "resource": {"id": 174, "owner": {"id": 213}, "organization": {"id": 300}, "project": {"owner": {"id": 84}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 182, "owner": {"id": 276}, "organization": {"id": 187}, "project": {"owner": {"id": 38}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 81, "privilege": "business"}, "organization": {"id": 141, "owner": {"id": 235}, "user": {"role": "maintainer"}}}, "resource": {"id": 161, "owner": {"id": 208}, "organization": {"id": 343}, "project": {"owner": {"id": 81}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 38, "privilege": "business"}, "organization": {"id": 124, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 133, "owner": {"id": 283}, "organization": {"id": 124}, "project": {"owner": {"id": 38}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 76, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 284}, "user": {"role": "supervisor"}}}, "resource": {"id": 166, "owner": {"id": 297}, "organization": {"id": 330}, "project": {"owner": {"id": 76}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "business"}, "organization": {"id": 183, "owner": {"id": 263}, "user": {"role": "worker"}}}, "resource": {"id": 140, "owner": {"id": 287}, "organization": {"id": 183}, "project": {"owner": {"id": 3}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 49, "privilege": "business"}, "organization": {"id": 194, "owner": {"id": 204}, "user": {"role": "worker"}}}, "resource": {"id": 137, "owner": {"id": 233}, "organization": {"id": 353}, "project": {"owner": {"id": 49}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "business"}, "organization": {"id": 192, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 174, "owner": {"id": 290}, "organization": {"id": 192}, "project": {"owner": {"id": 43}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 245}, "user": {"role": null}}}, "resource": {"id": 128, "owner": {"id": 287}, "organization": {"id": 368}, "project": {"owner": {"id": 60}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "user"}, "organization": {"id": 123, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 164, "owner": {"id": 238}, "organization": {"id": 123}, "project": {"owner": {"id": 71}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 33}, "user": {"role": "owner"}}}, "resource": {"id": 112, "owner": {"id": 260}, "organization": {"id": 316}, "project": {"owner": {"id": 33}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 228}, "user": {"role": "maintainer"}}}, "resource": {"id": 197, "owner": {"id": 223}, "organization": {"id": 111}, "project": {"owner": {"id": 83}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 247}, "user": {"role": "maintainer"}}}, "resource": {"id": 145, "owner": {"id": 228}, "organization": {"id": 395}, "project": {"owner": {"id": 53}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 133, "owner": {"id": 274}, "organization": {"id": 160}, "project": {"owner": {"id": 15}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 160, "owner": {"id": 224}, "user": {"role": "supervisor"}}}, "resource": {"id": 181, "owner": {"id": 274}, "organization": {"id": 374}, "project": {"owner": {"id": 9}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "user"}, "organization": {"id": 138, "owner": {"id": 252}, "user": {"role": "worker"}}}, "resource": {"id": 164, "owner": {"id": 215}, "organization": {"id": 138}, "project": {"owner": {"id": 67}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": {"id": 152, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 106, "owner": {"id": 219}, "organization": {"id": 317}, "project": {"owner": {"id": 43}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": {"id": 199, "owner": {"id": 210}, "user": {"role": null}}}, "resource": {"id": 158, "owner": {"id": 218}, "organization": {"id": 199}, "project": {"owner": {"id": 23}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "user"}, "organization": {"id": 181, "owner": {"id": 207}, "user": {"role": null}}}, "resource": {"id": 162, "owner": {"id": 242}, "organization": {"id": 380}, "project": {"owner": {"id": 40}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 100, "owner": {"id": 257}, "organization": {"id": 199}, "project": {"owner": {"id": 97}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "worker"}, "organization": {"id": 199, "owner": {"id": 97}, "user": {"role": "owner"}}}, "resource": {"id": 173, "owner": {"id": 297}, "organization": {"id": 320}, "project": {"owner": {"id": 97}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 54, "privilege": "worker"}, "organization": {"id": 151, "owner": {"id": 254}, "user": {"role": "maintainer"}}}, "resource": {"id": 116, "owner": {"id": 278}, "organization": {"id": 151}, "project": {"owner": {"id": 54}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 293}, "user": {"role": "maintainer"}}}, "resource": {"id": 161, "owner": {"id": 249}, "organization": {"id": 300}, "project": {"owner": {"id": 68}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 147, "owner": {"id": 201}, "organization": {"id": 124}, "project": {"owner": {"id": 67}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 128, "owner": {"id": 288}, "user": {"role": "supervisor"}}}, "resource": {"id": 186, "owner": {"id": 200}, "organization": {"id": 380}, "project": {"owner": {"id": 31}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 49, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 144, "owner": {"id": 239}, "organization": {"id": 164}, "project": {"owner": {"id": 49}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 139, "owner": {"id": 221}, "organization": {"id": 308}, "project": {"owner": {"id": 38}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "worker"}, "organization": {"id": 155, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 193, "owner": {"id": 266}, "organization": {"id": 155}, "project": {"owner": {"id": 43}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 117, "owner": {"id": 243}, "organization": {"id": 362}, "project": {"owner": {"id": 96}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "none"}, "organization": {"id": 116, "owner": {"id": 93}, "user": {"role": "owner"}}}, "resource": {"id": 151, "owner": {"id": 202}, "organization": {"id": 116}, "project": {"owner": {"id": 93}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 21, "privilege": "none"}, "organization": {"id": 115, "owner": {"id": 21}, "user": {"role": "owner"}}}, "resource": {"id": 193, "owner": {"id": 202}, "organization": {"id": 375}, "project": {"owner": {"id": 21}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 81, "privilege": "none"}, "organization": {"id": 132, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 191, "owner": {"id": 283}, "organization": {"id": 132}, "project": {"owner": {"id": 81}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 168, "owner": {"id": 279}, "organization": {"id": 306}, "project": {"owner": {"id": 6}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "none"}, "organization": {"id": 153, "owner": {"id": 256}, "user": {"role": "supervisor"}}}, "resource": {"id": 183, "owner": {"id": 202}, "organization": {"id": 153}, "project": {"owner": {"id": 14}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 60, "privilege": "none"}, "organization": {"id": 189, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 148, "owner": {"id": 215}, "organization": {"id": 370}, "project": {"owner": {"id": 60}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 1, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 253}, "user": {"role": "worker"}}}, "resource": {"id": 126, "owner": {"id": 288}, "organization": {"id": 138}, "project": {"owner": {"id": 1}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "none"}, "organization": {"id": 179, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 184, "owner": {"id": 212}, "organization": {"id": 384}, "project": {"owner": {"id": 34}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"id": 189, "owner": {"id": 217}, "organization": {"id": 192}, "project": {"owner": {"id": 65}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "none"}, "organization": {"id": 125, "owner": {"id": 277}, "user": {"role": null}}}, "resource": {"id": 115, "owner": {"id": 236}, "organization": {"id": 314}, "project": {"owner": {"id": 63}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 25}, "user": {"role": "owner"}}}, "resource": {"id": 125, "owner": {"id": 25}, "organization": {"id": 145}, "project": {"owner": {"id": 466}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 152, "owner": {"id": 70}, "organization": {"id": 320}, "project": {"owner": {"id": 405}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 285}, "user": {"role": "maintainer"}}}, "resource": {"id": 188, "owner": {"id": 0}, "organization": {"id": 101}, "project": {"owner": {"id": 430}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "admin"}, "organization": {"id": 119, "owner": {"id": 211}, "user": {"role": "maintainer"}}}, "resource": {"id": 111, "owner": {"id": 63}, "organization": {"id": 373}, "project": {"owner": {"id": 485}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 92, "privilege": "admin"}, "organization": {"id": 112, "owner": {"id": 232}, "user": {"role": "supervisor"}}}, "resource": {"id": 199, "owner": {"id": 92}, "organization": {"id": 112}, "project": {"owner": {"id": 492}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 33, "privilege": "admin"}, "organization": {"id": 159, "owner": {"id": 206}, "user": {"role": "supervisor"}}}, "resource": {"id": 182, "owner": {"id": 33}, "organization": {"id": 358}, "project": {"owner": {"id": 437}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 186, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 112, "owner": {"id": 46}, "organization": {"id": 186}, "project": {"owner": {"id": 437}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 97, "privilege": "admin"}, "organization": {"id": 105, "owner": {"id": 201}, "user": {"role": "worker"}}}, "resource": {"id": 154, "owner": {"id": 97}, "organization": {"id": 314}, "project": {"owner": {"id": 412}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "admin"}, "organization": {"id": 145, "owner": {"id": 256}, "user": {"role": null}}}, "resource": {"id": 117, "owner": {"id": 42}, "organization": {"id": 145}, "project": {"owner": {"id": 421}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "admin"}, "organization": {"id": 143, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 179, "owner": {"id": 47}, "organization": {"id": 393}, "project": {"owner": {"id": 411}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 34, "privilege": "business"}, "organization": {"id": 149, "owner": {"id": 34}, "user": {"role": "owner"}}}, "resource": {"id": 114, "owner": {"id": 34}, "organization": {"id": 149}, "project": {"owner": {"id": 458}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 161, "owner": {"id": 14}, "organization": {"id": 383}, "project": {"owner": {"id": 421}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 192, "owner": {"id": 53}, "organization": {"id": 175}, "project": {"owner": {"id": 413}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 78, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 299}, "user": {"role": "maintainer"}}}, "resource": {"id": 172, "owner": {"id": 78}, "organization": {"id": 356}, "project": {"owner": {"id": 423}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 145, "owner": {"id": 93}, "organization": {"id": 116}, "project": {"owner": {"id": 487}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 162, "owner": {"id": 5}, "organization": {"id": 352}, "project": {"owner": {"id": 456}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 86, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 298}, "user": {"role": "worker"}}}, "resource": {"id": 183, "owner": {"id": 86}, "organization": {"id": 167}, "project": {"owner": {"id": 490}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 28, "privilege": "business"}, "organization": {"id": 185, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 195, "owner": {"id": 28}, "organization": {"id": 392}, "project": {"owner": {"id": 472}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "business"}, "organization": {"id": 112, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 166, "owner": {"id": 79}, "organization": {"id": 112}, "project": {"owner": {"id": 489}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 286}, "user": {"role": null}}}, "resource": {"id": 184, "owner": {"id": 44}, "organization": {"id": 331}, "project": {"owner": {"id": 461}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 78, "privilege": "user"}, "organization": {"id": 106, "owner": {"id": 78}, "user": {"role": "owner"}}}, "resource": {"id": 182, "owner": {"id": 78}, "organization": {"id": 106}, "project": {"owner": {"id": 471}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 63, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 63}, "user": {"role": "owner"}}}, "resource": {"id": 182, "owner": {"id": 63}, "organization": {"id": 364}, "project": {"owner": {"id": 460}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 135, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 196, "owner": {"id": 42}, "organization": {"id": 135}, "project": {"owner": {"id": 430}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "user"}, "organization": {"id": 151, "owner": {"id": 230}, "user": {"role": "maintainer"}}}, "resource": {"id": 164, "owner": {"id": 48}, "organization": {"id": 370}, "project": {"owner": {"id": 482}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "user"}, "organization": {"id": 111, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 110, "owner": {"id": 57}, "organization": {"id": 111}, "project": {"owner": {"id": 473}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "user"}, "organization": {"id": 183, "owner": {"id": 202}, "user": {"role": "supervisor"}}}, "resource": {"id": 157, "owner": {"id": 95}, "organization": {"id": 315}, "project": {"owner": {"id": 463}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "user"}, "organization": {"id": 170, "owner": {"id": 200}, "user": {"role": "worker"}}}, "resource": {"id": 113, "owner": {"id": 71}, "organization": {"id": 170}, "project": {"owner": {"id": 404}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 38, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 271}, "user": {"role": "worker"}}}, "resource": {"id": 111, "owner": {"id": 38}, "organization": {"id": 379}, "project": {"owner": {"id": 481}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "user"}, "organization": {"id": 146, "owner": {"id": 206}, "user": {"role": null}}}, "resource": {"id": 126, "owner": {"id": 43}, "organization": {"id": 146}, "project": {"owner": {"id": 458}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": {"id": 179, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 128, "owner": {"id": 98}, "organization": {"id": 342}, "project": {"owner": {"id": 471}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 91}, "user": {"role": "owner"}}}, "resource": {"id": 160, "owner": {"id": 91}, "organization": {"id": 157}, "project": {"owner": {"id": 446}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 0, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 0}, "user": {"role": "owner"}}}, "resource": {"id": 112, "owner": {"id": 0}, "organization": {"id": 384}, "project": {"owner": {"id": 428}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 189, "owner": {"id": 213}, "user": {"role": "maintainer"}}}, "resource": {"id": 181, "owner": {"id": 47}, "organization": {"id": 189}, "project": {"owner": {"id": 466}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": {"id": 195, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 105, "owner": {"id": 91}, "organization": {"id": 363}, "project": {"owner": {"id": 417}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 25, "privilege": "worker"}, "organization": {"id": 124, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 152, "owner": {"id": 25}, "organization": {"id": 124}, "project": {"owner": {"id": 478}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "worker"}, "organization": {"id": 143, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 150, "owner": {"id": 91}, "organization": {"id": 358}, "project": {"owner": {"id": 424}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 175, "owner": {"id": 215}, "user": {"role": "worker"}}}, "resource": {"id": 196, "owner": {"id": 86}, "organization": {"id": 175}, "project": {"owner": {"id": 481}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 75, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 198, "owner": {"id": 75}, "organization": {"id": 358}, "project": {"owner": {"id": 484}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 6, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 163, "owner": {"id": 6}, "organization": {"id": 170}, "project": {"owner": {"id": 494}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 188, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 174, "owner": {"id": 22}, "organization": {"id": 365}, "project": {"owner": {"id": 499}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 184, "owner": {"id": 49}, "user": {"role": "owner"}}}, "resource": {"id": 122, "owner": {"id": 49}, "organization": {"id": 184}, "project": {"owner": {"id": 413}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 53, "privilege": "none"}, "organization": {"id": 177, "owner": {"id": 53}, "user": {"role": "owner"}}}, "resource": {"id": 177, "owner": {"id": 53}, "organization": {"id": 364}, "project": {"owner": {"id": 449}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 43, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 257}, "user": {"role": "maintainer"}}}, "resource": {"id": 197, "owner": {"id": 43}, "organization": {"id": 137}, "project": {"owner": {"id": 450}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 195, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 117, "owner": {"id": 89}, "organization": {"id": 352}, "project": {"owner": {"id": 477}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 194, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 138, "owner": {"id": 91}, "organization": {"id": 194}, "project": {"owner": {"id": 440}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 180, "owner": {"id": 79}, "organization": {"id": 325}, "project": {"owner": {"id": 426}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 187, "owner": {"id": 90}, "organization": {"id": 183}, "project": {"owner": {"id": 416}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 41, "privilege": "none"}, "organization": {"id": 190, "owner": {"id": 214}, "user": {"role": "worker"}}}, "resource": {"id": 164, "owner": {"id": 41}, "organization": {"id": 388}, "project": {"owner": {"id": 481}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 74, "privilege": "none"}, "organization": {"id": 173, "owner": {"id": 285}, "user": {"role": null}}}, "resource": {"id": 197, "owner": {"id": 74}, "organization": {"id": 173}, "project": {"owner": {"id": 461}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "none"}, "organization": {"id": 136, "owner": {"id": 254}, "user": {"role": null}}}, "resource": {"id": 190, "owner": {"id": 68}, "organization": {"id": 386}, "project": {"owner": {"id": 495}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 48, "privilege": "admin"}, "organization": {"id": 118, "owner": {"id": 48}, "user": {"role": "owner"}}}, "resource": {"id": 101, "owner": {"id": 266}, "organization": {"id": 118}, "project": {"owner": {"id": 403}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 96, "privilege": "admin"}, "organization": {"id": 120, "owner": {"id": 96}, "user": {"role": "owner"}}}, "resource": {"id": 185, "owner": {"id": 207}, "organization": {"id": 325}, "project": {"owner": {"id": 434}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 137, "owner": {"id": 226}, "user": {"role": "maintainer"}}}, "resource": {"id": 187, "owner": {"id": 232}, "organization": {"id": 137}, "project": {"owner": {"id": 407}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "admin"}, "organization": {"id": 113, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 196, "owner": {"id": 269}, "organization": {"id": 304}, "project": {"owner": {"id": 445}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 271}, "user": {"role": "supervisor"}}}, "resource": {"id": 186, "owner": {"id": 294}, "organization": {"id": 182}, "project": {"owner": {"id": 428}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 36, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 285}, "user": {"role": "supervisor"}}}, "resource": {"id": 149, "owner": {"id": 230}, "organization": {"id": 365}, "project": {"owner": {"id": 489}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 87, "privilege": "admin"}, "organization": {"id": 140, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"id": 106, "owner": {"id": 248}, "organization": {"id": 140}, "project": {"owner": {"id": 453}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 25, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 106, "owner": {"id": 201}, "organization": {"id": 395}, "project": {"owner": {"id": 432}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "admin"}, "organization": {"id": 182, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 156, "owner": {"id": 228}, "organization": {"id": 182}, "project": {"owner": {"id": 490}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 77, "privilege": "admin"}, "organization": {"id": 125, "owner": {"id": 299}, "user": {"role": null}}}, "resource": {"id": 196, "owner": {"id": 275}, "organization": {"id": 369}, "project": {"owner": {"id": 494}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 22, "privilege": "business"}, "organization": {"id": 187, "owner": {"id": 22}, "user": {"role": "owner"}}}, "resource": {"id": 192, "owner": {"id": 224}, "organization": {"id": 187}, "project": {"owner": {"id": 457}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "business"}, "organization": {"id": 148, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 123, "owner": {"id": 222}, "organization": {"id": 394}, "project": {"owner": {"id": 465}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 274}, "user": {"role": "maintainer"}}}, "resource": {"id": 154, "owner": {"id": 235}, "organization": {"id": 120}, "project": {"owner": {"id": 433}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 119, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 132, "owner": {"id": 200}, "organization": {"id": 342}, "project": {"owner": {"id": 459}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 180, "owner": {"id": 278}, "user": {"role": "supervisor"}}}, "resource": {"id": 119, "owner": {"id": 241}, "organization": {"id": 180}, "project": {"owner": {"id": 406}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 145, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 184, "owner": {"id": 238}, "organization": {"id": 362}, "project": {"owner": {"id": 473}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 23, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 208}, "user": {"role": "worker"}}}, "resource": {"id": 190, "owner": {"id": 240}, "organization": {"id": 166}, "project": {"owner": {"id": 428}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 68, "privilege": "business"}, "organization": {"id": 151, "owner": {"id": 211}, "user": {"role": "worker"}}}, "resource": {"id": 164, "owner": {"id": 220}, "organization": {"id": 353}, "project": {"owner": {"id": 469}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "business"}, "organization": {"id": 142, "owner": {"id": 246}, "user": {"role": null}}}, "resource": {"id": 144, "owner": {"id": 228}, "organization": {"id": 142}, "project": {"owner": {"id": 484}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 67, "privilege": "business"}, "organization": {"id": 160, "owner": {"id": 271}, "user": {"role": null}}}, "resource": {"id": 137, "owner": {"id": 227}, "organization": {"id": 396}, "project": {"owner": {"id": 479}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 144, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 196, "owner": {"id": 283}, "organization": {"id": 144}, "project": {"owner": {"id": 414}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 31, "privilege": "user"}, "organization": {"id": 105, "owner": {"id": 31}, "user": {"role": "owner"}}}, "resource": {"id": 130, "owner": {"id": 282}, "organization": {"id": 378}, "project": {"owner": {"id": 479}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 32, "privilege": "user"}, "organization": {"id": 169, "owner": {"id": 292}, "user": {"role": "maintainer"}}}, "resource": {"id": 141, "owner": {"id": 248}, "organization": {"id": 169}, "project": {"owner": {"id": 449}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 47, "privilege": "user"}, "organization": {"id": 165, "owner": {"id": 265}, "user": {"role": "maintainer"}}}, "resource": {"id": 136, "owner": {"id": 203}, "organization": {"id": 366}, "project": {"owner": {"id": 498}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 83, "privilege": "user"}, "organization": {"id": 124, "owner": {"id": 241}, "user": {"role": "supervisor"}}}, "resource": {"id": 157, "owner": {"id": 262}, "organization": {"id": 124}, "project": {"owner": {"id": 437}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 98, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 268}, "user": {"role": "supervisor"}}}, "resource": {"id": 165, "owner": {"id": 210}, "organization": {"id": 312}, "project": {"owner": {"id": 421}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "user"}, "organization": {"id": 180, "owner": {"id": 299}, "user": {"role": "worker"}}}, "resource": {"id": 100, "owner": {"id": 280}, "organization": {"id": 180}, "project": {"owner": {"id": 426}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 168, "owner": {"id": 289}, "user": {"role": "worker"}}}, "resource": {"id": 127, "owner": {"id": 287}, "organization": {"id": 354}, "project": {"owner": {"id": 413}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 9, "privilege": "user"}, "organization": {"id": 195, "owner": {"id": 287}, "user": {"role": null}}}, "resource": {"id": 194, "owner": {"id": 299}, "organization": {"id": 195}, "project": {"owner": {"id": 482}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 42, "privilege": "user"}, "organization": {"id": 104, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 119, "owner": {"id": 203}, "organization": {"id": 358}, "project": {"owner": {"id": 491}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 109, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 109, "owner": {"id": 206}, "organization": {"id": 109}, "project": {"owner": {"id": 432}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 57, "privilege": "worker"}, "organization": {"id": 180, "owner": {"id": 57}, "user": {"role": "owner"}}}, "resource": {"id": 129, "owner": {"id": 233}, "organization": {"id": 352}, "project": {"owner": {"id": 449}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "delete", "auth": {"user": {"id": 86, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 268}, "user": {"role": "maintainer"}}}, "resource": {"id": 155, "owner": {"id": 240}, "organization": {"id": 115}, "project": {"owner": {"id": 449}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 8, "privilege": "worker"}, "organization": {"id": 196, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 100, "owner": {"id": 282}, "organization": {"id": 392}, "project": {"owner": {"id": 479}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 45, "privilege": "worker"}, "organization": {"id": 164, "owner": {"id": 213}, "user": {"role": "supervisor"}}}, "resource": {"id": 174, "owner": {"id": 205}, "organization": {"id": 164}, "project": {"owner": {"id": 409}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 11, "privilege": "worker"}, "organization": {"id": 136, "owner": {"id": 297}, "user": {"role": "supervisor"}}}, "resource": {"id": 137, "owner": {"id": 287}, "organization": {"id": 338}, "project": {"owner": {"id": 477}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 220}, "user": {"role": "worker"}}}, "resource": {"id": 156, "owner": {"id": 248}, "organization": {"id": 160}, "project": {"owner": {"id": 484}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 50, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 237}, "user": {"role": "worker"}}}, "resource": {"id": 168, "owner": {"id": 228}, "organization": {"id": 317}, "project": {"owner": {"id": 495}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 182, "owner": {"id": 247}, "user": {"role": null}}}, "resource": {"id": 181, "owner": {"id": 218}, "organization": {"id": 182}, "project": {"owner": {"id": 486}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 105, "owner": {"id": 200}, "user": {"role": null}}}, "resource": {"id": 101, "owner": {"id": 270}, "organization": {"id": 371}, "project": {"owner": {"id": 418}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 70}, "user": {"role": "owner"}}}, "resource": {"id": 173, "owner": {"id": 276}, "organization": {"id": 110}, "project": {"owner": {"id": 468}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 44, "privilege": "none"}, "organization": {"id": 127, "owner": {"id": 44}, "user": {"role": "owner"}}}, "resource": {"id": 126, "owner": {"id": 295}, "organization": {"id": 394}, "project": {"owner": {"id": 492}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 23, "privilege": "none"}, "organization": {"id": 128, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 182, "owner": {"id": 265}, "organization": {"id": 128}, "project": {"owner": {"id": 420}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 172, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 132, "owner": {"id": 224}, "organization": {"id": 314}, "project": {"owner": {"id": 423}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 109, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 196, "owner": {"id": 270}, "organization": {"id": 109}, "project": {"owner": {"id": 482}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 25, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 185, "owner": {"id": 208}, "organization": {"id": 332}, "project": {"owner": {"id": 412}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 85, "privilege": "none"}, "organization": {"id": 183, "owner": {"id": 230}, "user": {"role": "worker"}}}, "resource": {"id": 162, "owner": {"id": 242}, "organization": {"id": 183}, "project": {"owner": {"id": 416}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 24, "privilege": "none"}, "organization": {"id": 140, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 112, "owner": {"id": 236}, "organization": {"id": 379}, "project": {"owner": {"id": 408}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 39, "privilege": "none"}, "organization": {"id": 188, "owner": {"id": 274}, "user": {"role": null}}}, "resource": {"id": 157, "owner": {"id": 242}, "organization": {"id": 188}, "project": {"owner": {"id": 484}}}} -} - -test_scope_DELETE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "delete", "auth": {"user": {"id": 40, "privilege": "none"}, "organization": {"id": 154, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 119, "owner": {"id": 272}, "organization": {"id": 372}, "project": {"owner": {"id": 446}}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 41, "privilege": "admin"}, "organization": null}, "resource": {"id": 171, "owner": {"id": 292}, "organization": {"id": 305}, "project": {"owner": {"id": 41}}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 21, "privilege": "business"}, "organization": null}, "resource": {"id": 188, "owner": {"id": 275}, "organization": {"id": 313}, "project": {"owner": {"id": 21}}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 17, "privilege": "user"}, "organization": null}, "resource": {"id": 162, "owner": {"id": 263}, "organization": {"id": 329}, "project": {"owner": {"id": 17}}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 55, "privilege": "worker"}, "organization": null}, "resource": {"id": 169, "owner": {"id": 202}, "organization": {"id": 397}, "project": {"owner": {"id": 55}}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": null}, "resource": {"id": 120, "owner": {"id": 264}, "organization": {"id": 307}, "project": {"owner": {"id": 33}}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 39, "privilege": "admin"}, "organization": null}, "resource": {"id": 175, "owner": {"id": 39}, "organization": {"id": 388}, "project": {"owner": {"id": 408}}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 46, "privilege": "business"}, "organization": null}, "resource": {"id": 143, "owner": {"id": 46}, "organization": {"id": 378}, "project": {"owner": {"id": 438}}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 53, "privilege": "user"}, "organization": null}, "resource": {"id": 184, "owner": {"id": 53}, "organization": {"id": 340}, "project": {"owner": {"id": 425}}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 38, "privilege": "worker"}, "organization": null}, "resource": {"id": 119, "owner": {"id": 38}, "organization": {"id": 387}, "project": {"owner": {"id": 497}}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": null}, "resource": {"id": 135, "owner": {"id": 82}, "organization": {"id": 370}, "project": {"owner": {"id": 422}}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 49, "privilege": "admin"}, "organization": null}, "resource": {"id": 140, "owner": {"id": 242}, "organization": {"id": 374}, "project": {"owner": {"id": 494}}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 88, "privilege": "business"}, "organization": null}, "resource": {"id": 104, "owner": {"id": 294}, "organization": {"id": 384}, "project": {"owner": {"id": 406}}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": null}, "resource": {"id": 160, "owner": {"id": 294}, "organization": {"id": 352}, "project": {"owner": {"id": 442}}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": null}, "resource": {"id": 131, "owner": {"id": 266}, "organization": {"id": 391}, "project": {"owner": {"id": 498}}}} -} - -test_scope_UPDATE_context_SANDBOX_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 79, "privilege": "none"}, "organization": null}, "resource": {"id": 189, "owner": {"id": 221}, "organization": {"id": 306}, "project": {"owner": {"id": 451}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 15, "privilege": "admin"}, "organization": {"id": 101, "owner": {"id": 15}, "user": {"role": "owner"}}}, "resource": {"id": 111, "owner": {"id": 247}, "organization": {"id": 101}, "project": {"owner": {"id": 15}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 86, "privilege": "admin"}, "organization": {"id": 163, "owner": {"id": 86}, "user": {"role": "owner"}}}, "resource": {"id": 167, "owner": {"id": 255}, "organization": {"id": 398}, "project": {"owner": {"id": 86}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 34, "privilege": "admin"}, "organization": {"id": 136, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 128, "owner": {"id": 291}, "organization": {"id": 136}, "project": {"owner": {"id": 34}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 26, "privilege": "admin"}, "organization": {"id": 176, "owner": {"id": 227}, "user": {"role": "maintainer"}}}, "resource": {"id": 163, "owner": {"id": 248}, "organization": {"id": 316}, "project": {"owner": {"id": 26}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 53, "privilege": "admin"}, "organization": {"id": 123, "owner": {"id": 252}, "user": {"role": "supervisor"}}}, "resource": {"id": 136, "owner": {"id": 293}, "organization": {"id": 123}, "project": {"owner": {"id": 53}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 30, "privilege": "admin"}, "organization": {"id": 179, "owner": {"id": 257}, "user": {"role": "supervisor"}}}, "resource": {"id": 118, "owner": {"id": 203}, "organization": {"id": 337}, "project": {"owner": {"id": 30}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 82, "privilege": "admin"}, "organization": {"id": 158, "owner": {"id": 210}, "user": {"role": "worker"}}}, "resource": {"id": 131, "owner": {"id": 247}, "organization": {"id": 158}, "project": {"owner": {"id": 82}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 88, "privilege": "admin"}, "organization": {"id": 150, "owner": {"id": 287}, "user": {"role": "worker"}}}, "resource": {"id": 101, "owner": {"id": 260}, "organization": {"id": 317}, "project": {"owner": {"id": 88}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 54, "privilege": "admin"}, "organization": {"id": 194, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 127, "owner": {"id": 291}, "organization": {"id": 194}, "project": {"owner": {"id": 54}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 7, "privilege": "admin"}, "organization": {"id": 106, "owner": {"id": 242}, "user": {"role": null}}}, "resource": {"id": 132, "owner": {"id": 209}, "organization": {"id": 312}, "project": {"owner": {"id": 7}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 85, "privilege": "business"}, "organization": {"id": 176, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 130, "owner": {"id": 260}, "organization": {"id": 176}, "project": {"owner": {"id": 85}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 64}, "user": {"role": "owner"}}}, "resource": {"id": 195, "owner": {"id": 205}, "organization": {"id": 300}, "project": {"owner": {"id": 64}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 16, "privilege": "business"}, "organization": {"id": 171, "owner": {"id": 205}, "user": {"role": "maintainer"}}}, "resource": {"id": 138, "owner": {"id": 250}, "organization": {"id": 171}, "project": {"owner": {"id": 16}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 163, "owner": {"id": 243}, "user": {"role": "maintainer"}}}, "resource": {"id": 174, "owner": {"id": 222}, "organization": {"id": 333}, "project": {"owner": {"id": 64}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 90, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 255}, "user": {"role": "supervisor"}}}, "resource": {"id": 159, "owner": {"id": 216}, "organization": {"id": 167}, "project": {"owner": {"id": 90}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 5, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 263}, "user": {"role": "supervisor"}}}, "resource": {"id": 118, "owner": {"id": 233}, "organization": {"id": 314}, "project": {"owner": {"id": 5}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 36, "privilege": "business"}, "organization": {"id": 133, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 135, "owner": {"id": 295}, "organization": {"id": 133}, "project": {"owner": {"id": 36}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 55, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 240}, "user": {"role": "worker"}}}, "resource": {"id": 197, "owner": {"id": 233}, "organization": {"id": 366}, "project": {"owner": {"id": 55}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 71, "privilege": "business"}, "organization": {"id": 184, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 194, "owner": {"id": 262}, "organization": {"id": 184}, "project": {"owner": {"id": 71}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 6, "privilege": "business"}, "organization": {"id": 129, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 156, "owner": {"id": 206}, "organization": {"id": 324}, "project": {"owner": {"id": 6}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 90, "privilege": "user"}, "organization": {"id": 159, "owner": {"id": 90}, "user": {"role": "owner"}}}, "resource": {"id": 104, "owner": {"id": 260}, "organization": {"id": 159}, "project": {"owner": {"id": 90}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 45, "privilege": "user"}, "organization": {"id": 190, "owner": {"id": 45}, "user": {"role": "owner"}}}, "resource": {"id": 114, "owner": {"id": 263}, "organization": {"id": 305}, "project": {"owner": {"id": 45}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 92, "privilege": "user"}, "organization": {"id": 118, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 162, "owner": {"id": 258}, "organization": {"id": 118}, "project": {"owner": {"id": 92}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": {"id": 121, "owner": {"id": 295}, "user": {"role": "maintainer"}}}, "resource": {"id": 144, "owner": {"id": 211}, "organization": {"id": 326}, "project": {"owner": {"id": 23}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 74, "privilege": "user"}, "organization": {"id": 127, "owner": {"id": 274}, "user": {"role": "supervisor"}}}, "resource": {"id": 165, "owner": {"id": 234}, "organization": {"id": 127}, "project": {"owner": {"id": 74}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 23, "privilege": "user"}, "organization": {"id": 153, "owner": {"id": 209}, "user": {"role": "supervisor"}}}, "resource": {"id": 100, "owner": {"id": 267}, "organization": {"id": 398}, "project": {"owner": {"id": 23}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 12, "privilege": "user"}, "organization": {"id": 142, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 131, "owner": {"id": 298}, "organization": {"id": 142}, "project": {"owner": {"id": 12}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 50, "privilege": "user"}, "organization": {"id": 147, "owner": {"id": 275}, "user": {"role": "worker"}}}, "resource": {"id": 136, "owner": {"id": 287}, "organization": {"id": 387}, "project": {"owner": {"id": 50}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 10, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 290}, "user": {"role": null}}}, "resource": {"id": 113, "owner": {"id": 241}, "organization": {"id": 158}, "project": {"owner": {"id": 10}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 34, "privilege": "user"}, "organization": {"id": 176, "owner": {"id": 284}, "user": {"role": null}}}, "resource": {"id": 184, "owner": {"id": 261}, "organization": {"id": 358}, "project": {"owner": {"id": 34}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 79, "privilege": "worker"}, "organization": {"id": 157, "owner": {"id": 79}, "user": {"role": "owner"}}}, "resource": {"id": 100, "owner": {"id": 242}, "organization": {"id": 157}, "project": {"owner": {"id": 79}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 27, "privilege": "worker"}, "organization": {"id": 106, "owner": {"id": 27}, "user": {"role": "owner"}}}, "resource": {"id": 193, "owner": {"id": 293}, "organization": {"id": 372}, "project": {"owner": {"id": 27}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 9, "privilege": "worker"}, "organization": {"id": 170, "owner": {"id": 277}, "user": {"role": "maintainer"}}}, "resource": {"id": 136, "owner": {"id": 241}, "organization": {"id": 170}, "project": {"owner": {"id": 9}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 22, "privilege": "worker"}, "organization": {"id": 130, "owner": {"id": 298}, "user": {"role": "maintainer"}}}, "resource": {"id": 148, "owner": {"id": 211}, "organization": {"id": 351}, "project": {"owner": {"id": 22}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 20, "privilege": "worker"}, "organization": {"id": 149, "owner": {"id": 299}, "user": {"role": "supervisor"}}}, "resource": {"id": 151, "owner": {"id": 211}, "organization": {"id": 149}, "project": {"owner": {"id": 20}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 83, "privilege": "worker"}, "organization": {"id": 119, "owner": {"id": 215}, "user": {"role": "supervisor"}}}, "resource": {"id": 151, "owner": {"id": 236}, "organization": {"id": 382}, "project": {"owner": {"id": 83}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 39, "privilege": "worker"}, "organization": {"id": 187, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 138, "owner": {"id": 262}, "organization": {"id": 187}, "project": {"owner": {"id": 39}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 165, "owner": {"id": 225}, "user": {"role": "worker"}}}, "resource": {"id": 116, "owner": {"id": 245}, "organization": {"id": 385}, "project": {"owner": {"id": 47}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 172, "owner": {"id": 276}, "user": {"role": null}}}, "resource": {"id": 162, "owner": {"id": 257}, "organization": {"id": 172}, "project": {"owner": {"id": 34}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 47, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 154, "owner": {"id": 211}, "organization": {"id": 396}, "project": {"owner": {"id": 47}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 5, "privilege": "none"}, "organization": {"id": 165, "owner": {"id": 5}, "user": {"role": "owner"}}}, "resource": {"id": 155, "owner": {"id": 280}, "organization": {"id": 165}, "project": {"owner": {"id": 5}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 191, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 159, "owner": {"id": 286}, "organization": {"id": 328}, "project": {"owner": {"id": 87}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 67, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 237}, "user": {"role": "maintainer"}}}, "resource": {"id": 163, "owner": {"id": 267}, "organization": {"id": 110}, "project": {"owner": {"id": 67}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 119, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 159, "owner": {"id": 255}, "organization": {"id": 310}, "project": {"owner": {"id": 38}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 54, "privilege": "none"}, "organization": {"id": 137, "owner": {"id": 272}, "user": {"role": "supervisor"}}}, "resource": {"id": 187, "owner": {"id": 238}, "organization": {"id": 137}, "project": {"owner": {"id": 54}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 65, "privilege": "none"}, "organization": {"id": 113, "owner": {"id": 265}, "user": {"role": "supervisor"}}}, "resource": {"id": 106, "owner": {"id": 270}, "organization": {"id": 309}, "project": {"owner": {"id": 65}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 192, "owner": {"id": 272}, "user": {"role": "worker"}}}, "resource": {"id": 154, "owner": {"id": 252}, "organization": {"id": 192}, "project": {"owner": {"id": 84}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 10, "privilege": "none"}, "organization": {"id": 198, "owner": {"id": 264}, "user": {"role": "worker"}}}, "resource": {"id": 132, "owner": {"id": 245}, "organization": {"id": 332}, "project": {"owner": {"id": 10}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 59, "privilege": "none"}, "organization": {"id": 122, "owner": {"id": 223}, "user": {"role": null}}}, "resource": {"id": 102, "owner": {"id": 214}, "organization": {"id": 122}, "project": {"owner": {"id": 59}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_PROJECT_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 90, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 150, "owner": {"id": 205}, "organization": {"id": 310}, "project": {"owner": {"id": 90}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 85, "privilege": "admin"}, "organization": {"id": 157, "owner": {"id": 85}, "user": {"role": "owner"}}}, "resource": {"id": 175, "owner": {"id": 85}, "organization": {"id": 157}, "project": {"owner": {"id": 496}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 23, "privilege": "admin"}, "organization": {"id": 110, "owner": {"id": 23}, "user": {"role": "owner"}}}, "resource": {"id": 133, "owner": {"id": 23}, "organization": {"id": 323}, "project": {"owner": {"id": 427}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 55, "privilege": "admin"}, "organization": {"id": 168, "owner": {"id": 202}, "user": {"role": "maintainer"}}}, "resource": {"id": 177, "owner": {"id": 55}, "organization": {"id": 168}, "project": {"owner": {"id": 413}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 21, "privilege": "admin"}, "organization": {"id": 183, "owner": {"id": 261}, "user": {"role": "maintainer"}}}, "resource": {"id": 100, "owner": {"id": 21}, "organization": {"id": 314}, "project": {"owner": {"id": 401}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 95, "privilege": "admin"}, "organization": {"id": 177, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 158, "owner": {"id": 95}, "organization": {"id": 177}, "project": {"owner": {"id": 484}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 46, "privilege": "admin"}, "organization": {"id": 188, "owner": {"id": 286}, "user": {"role": "supervisor"}}}, "resource": {"id": 162, "owner": {"id": 46}, "organization": {"id": 379}, "project": {"owner": {"id": 478}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 11, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 217}, "user": {"role": "worker"}}}, "resource": {"id": 188, "owner": {"id": 11}, "organization": {"id": 116}, "project": {"owner": {"id": 438}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 89, "privilege": "admin"}, "organization": {"id": 124, "owner": {"id": 203}, "user": {"role": "worker"}}}, "resource": {"id": 101, "owner": {"id": 89}, "organization": {"id": 314}, "project": {"owner": {"id": 402}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 83, "privilege": "admin"}, "organization": {"id": 130, "owner": {"id": 255}, "user": {"role": null}}}, "resource": {"id": 126, "owner": {"id": 83}, "organization": {"id": 130}, "project": {"owner": {"id": 418}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 38, "privilege": "admin"}, "organization": {"id": 198, "owner": {"id": 259}, "user": {"role": null}}}, "resource": {"id": 180, "owner": {"id": 38}, "organization": {"id": 324}, "project": {"owner": {"id": 411}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 14, "privilege": "business"}, "organization": {"id": 121, "owner": {"id": 14}, "user": {"role": "owner"}}}, "resource": {"id": 118, "owner": {"id": 14}, "organization": {"id": 121}, "project": {"owner": {"id": 402}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 60, "privilege": "business"}, "organization": {"id": 102, "owner": {"id": 60}, "user": {"role": "owner"}}}, "resource": {"id": 194, "owner": {"id": 60}, "organization": {"id": 356}, "project": {"owner": {"id": 462}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 72, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 206}, "user": {"role": "maintainer"}}}, "resource": {"id": 174, "owner": {"id": 72}, "organization": {"id": 150}, "project": {"owner": {"id": 437}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 155, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 142, "owner": {"id": 91}, "organization": {"id": 313}, "project": {"owner": {"id": 480}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 93, "privilege": "business"}, "organization": {"id": 170, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 163, "owner": {"id": 93}, "organization": {"id": 170}, "project": {"owner": {"id": 476}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 175, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 104, "owner": {"id": 65}, "organization": {"id": 351}, "project": {"owner": {"id": 462}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 91, "privilege": "business"}, "organization": {"id": 107, "owner": {"id": 267}, "user": {"role": "worker"}}}, "resource": {"id": 178, "owner": {"id": 91}, "organization": {"id": 107}, "project": {"owner": {"id": 429}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 70, "privilege": "business"}, "organization": {"id": 108, "owner": {"id": 234}, "user": {"role": "worker"}}}, "resource": {"id": 102, "owner": {"id": 70}, "organization": {"id": 373}, "project": {"owner": {"id": 440}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 63, "privilege": "business"}, "organization": {"id": 179, "owner": {"id": 282}, "user": {"role": null}}}, "resource": {"id": 182, "owner": {"id": 63}, "organization": {"id": 179}, "project": {"owner": {"id": 414}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 2, "privilege": "business"}, "organization": {"id": 120, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 144, "owner": {"id": 2}, "organization": {"id": 389}, "project": {"owner": {"id": 455}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 56, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 192, "owner": {"id": 56}, "organization": {"id": 129}, "project": {"owner": {"id": 444}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 191, "owner": {"id": 77}, "user": {"role": "owner"}}}, "resource": {"id": 128, "owner": {"id": 77}, "organization": {"id": 387}, "project": {"owner": {"id": 443}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 91, "privilege": "user"}, "organization": {"id": 149, "owner": {"id": 253}, "user": {"role": "maintainer"}}}, "resource": {"id": 159, "owner": {"id": 91}, "organization": {"id": 149}, "project": {"owner": {"id": 492}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 279}, "user": {"role": "maintainer"}}}, "resource": {"id": 186, "owner": {"id": 60}, "organization": {"id": 394}, "project": {"owner": {"id": 446}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 11, "privilege": "user"}, "organization": {"id": 185, "owner": {"id": 261}, "user": {"role": "supervisor"}}}, "resource": {"id": 126, "owner": {"id": 11}, "organization": {"id": 185}, "project": {"owner": {"id": 495}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 77, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 212}, "user": {"role": "supervisor"}}}, "resource": {"id": 116, "owner": {"id": 77}, "organization": {"id": 325}, "project": {"owner": {"id": 420}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 26, "privilege": "user"}, "organization": {"id": 171, "owner": {"id": 206}, "user": {"role": "worker"}}}, "resource": {"id": 153, "owner": {"id": 26}, "organization": {"id": 171}, "project": {"owner": {"id": 430}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 86, "privilege": "user"}, "organization": {"id": 120, "owner": {"id": 222}, "user": {"role": "worker"}}}, "resource": {"id": 102, "owner": {"id": 86}, "organization": {"id": 333}, "project": {"owner": {"id": 445}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 55, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 279}, "user": {"role": null}}}, "resource": {"id": 164, "owner": {"id": 55}, "organization": {"id": 114}, "project": {"owner": {"id": 443}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 62, "privilege": "user"}, "organization": {"id": 133, "owner": {"id": 243}, "user": {"role": null}}}, "resource": {"id": 129, "owner": {"id": 62}, "organization": {"id": 371}, "project": {"owner": {"id": 428}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 71, "privilege": "worker"}, "organization": {"id": 134, "owner": {"id": 71}, "user": {"role": "owner"}}}, "resource": {"id": 145, "owner": {"id": 71}, "organization": {"id": 134}, "project": {"owner": {"id": 498}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 190, "owner": {"id": 13}, "user": {"role": "owner"}}}, "resource": {"id": 188, "owner": {"id": 13}, "organization": {"id": 377}, "project": {"owner": {"id": 485}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 178, "owner": {"id": 278}, "user": {"role": "maintainer"}}}, "resource": {"id": 156, "owner": {"id": 13}, "organization": {"id": 178}, "project": {"owner": {"id": 414}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 13, "privilege": "worker"}, "organization": {"id": 121, "owner": {"id": 280}, "user": {"role": "maintainer"}}}, "resource": {"id": 113, "owner": {"id": 13}, "organization": {"id": 305}, "project": {"owner": {"id": 464}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 137, "owner": {"id": 290}, "user": {"role": "supervisor"}}}, "resource": {"id": 115, "owner": {"id": 93}, "organization": {"id": 137}, "project": {"owner": {"id": 420}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 93, "privilege": "worker"}, "organization": {"id": 112, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 156, "owner": {"id": 93}, "organization": {"id": 364}, "project": {"owner": {"id": 463}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 15, "privilege": "worker"}, "organization": {"id": 125, "owner": {"id": 256}, "user": {"role": "worker"}}}, "resource": {"id": 182, "owner": {"id": 15}, "organization": {"id": 125}, "project": {"owner": {"id": 417}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 31, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 243}, "user": {"role": "worker"}}}, "resource": {"id": 153, "owner": {"id": 31}, "organization": {"id": 398}, "project": {"owner": {"id": 400}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 34, "privilege": "worker"}, "organization": {"id": 147, "owner": {"id": 291}, "user": {"role": null}}}, "resource": {"id": 136, "owner": {"id": 34}, "organization": {"id": 147}, "project": {"owner": {"id": 410}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 85, "privilege": "worker"}, "organization": {"id": 131, "owner": {"id": 219}, "user": {"role": null}}}, "resource": {"id": 196, "owner": {"id": 85}, "organization": {"id": 346}, "project": {"owner": {"id": 480}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 29, "privilege": "none"}, "organization": {"id": 117, "owner": {"id": 29}, "user": {"role": "owner"}}}, "resource": {"id": 196, "owner": {"id": 29}, "organization": {"id": 117}, "project": {"owner": {"id": 453}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 87, "privilege": "none"}, "organization": {"id": 146, "owner": {"id": 87}, "user": {"role": "owner"}}}, "resource": {"id": 152, "owner": {"id": 87}, "organization": {"id": 358}, "project": {"owner": {"id": 466}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 91, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 208}, "user": {"role": "maintainer"}}}, "resource": {"id": 156, "owner": {"id": 91}, "organization": {"id": 166}, "project": {"owner": {"id": 401}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 121, "owner": {"id": 255}, "user": {"role": "maintainer"}}}, "resource": {"id": 110, "owner": {"id": 98}, "organization": {"id": 340}, "project": {"owner": {"id": 451}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 182, "owner": {"id": 219}, "user": {"role": "supervisor"}}}, "resource": {"id": 107, "owner": {"id": 84}, "organization": {"id": 182}, "project": {"owner": {"id": 404}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 84, "privilege": "none"}, "organization": {"id": 166, "owner": {"id": 237}, "user": {"role": "supervisor"}}}, "resource": {"id": 173, "owner": {"id": 84}, "organization": {"id": 380}, "project": {"owner": {"id": 491}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 70, "privilege": "none"}, "organization": {"id": 138, "owner": {"id": 292}, "user": {"role": "worker"}}}, "resource": {"id": 153, "owner": {"id": 70}, "organization": {"id": 138}, "project": {"owner": {"id": 489}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 35, "privilege": "none"}, "organization": {"id": 167, "owner": {"id": 278}, "user": {"role": "worker"}}}, "resource": {"id": 195, "owner": {"id": 35}, "organization": {"id": 344}, "project": {"owner": {"id": 401}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 82, "privilege": "none"}, "organization": {"id": 126, "owner": {"id": 269}, "user": {"role": null}}}, "resource": {"id": 118, "owner": {"id": 82}, "organization": {"id": 126}, "project": {"owner": {"id": 457}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_OWNER_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 89, "privilege": "none"}, "organization": {"id": 144, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 179, "owner": {"id": 89}, "organization": {"id": 383}, "project": {"owner": {"id": 456}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 10, "privilege": "admin"}, "organization": {"id": 104, "owner": {"id": 10}, "user": {"role": "owner"}}}, "resource": {"id": 151, "owner": {"id": 299}, "organization": {"id": 104}, "project": {"owner": {"id": 438}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_OWNER_resource_project_same_org_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 116, "owner": {"id": 94}, "user": {"role": "owner"}}}, "resource": {"id": 142, "owner": {"id": 249}, "organization": {"id": 392}, "project": {"owner": {"id": 492}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 65, "privilege": "admin"}, "organization": {"id": 170, "owner": {"id": 239}, "user": {"role": "maintainer"}}}, "resource": {"id": 169, "owner": {"id": 236}, "organization": {"id": 170}, "project": {"owner": {"id": 411}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_MAINTAINER_resource_project_same_org_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 20, "privilege": "admin"}, "organization": {"id": 102, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 166, "owner": {"id": 243}, "organization": {"id": 396}, "project": {"owner": {"id": 481}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 99, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 292}, "user": {"role": "supervisor"}}}, "resource": {"id": 169, "owner": {"id": 275}, "organization": {"id": 138}, "project": {"owner": {"id": 430}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_SUPERVISOR_resource_project_same_org_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 7, "privilege": "admin"}, "organization": {"id": 147, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 154, "owner": {"id": 264}, "organization": {"id": 314}, "project": {"owner": {"id": 493}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 6, "privilege": "admin"}, "organization": {"id": 196, "owner": {"id": 283}, "user": {"role": "worker"}}}, "resource": {"id": 180, "owner": {"id": 264}, "organization": {"id": 196}, "project": {"owner": {"id": 415}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_WORKER_resource_project_same_org_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 94, "privilege": "admin"}, "organization": {"id": 100, "owner": {"id": 258}, "user": {"role": "worker"}}}, "resource": {"id": 115, "owner": {"id": 257}, "organization": {"id": 338}, "project": {"owner": {"id": 473}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 72, "privilege": "admin"}, "organization": {"id": 191, "owner": {"id": 280}, "user": {"role": null}}}, "resource": {"id": 143, "owner": {"id": 230}, "organization": {"id": 191}, "project": {"owner": {"id": 474}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_ADMIN_membership_NONE_resource_project_same_org_FALSE { - allow with input as {"scope": "update", "auth": {"user": {"id": 44, "privilege": "admin"}, "organization": {"id": 138, "owner": {"id": 236}, "user": {"role": null}}}, "resource": {"id": 185, "owner": {"id": 268}, "organization": {"id": 376}, "project": {"owner": {"id": 429}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 17, "privilege": "business"}, "organization": {"id": 191, "owner": {"id": 17}, "user": {"role": "owner"}}}, "resource": {"id": 185, "owner": {"id": 291}, "organization": {"id": 191}, "project": {"owner": {"id": 486}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 41, "privilege": "business"}, "organization": {"id": 166, "owner": {"id": 41}, "user": {"role": "owner"}}}, "resource": {"id": 166, "owner": {"id": 294}, "organization": {"id": 331}, "project": {"owner": {"id": 413}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 12, "privilege": "business"}, "organization": {"id": 118, "owner": {"id": 291}, "user": {"role": "maintainer"}}}, "resource": {"id": 124, "owner": {"id": 299}, "organization": {"id": 118}, "project": {"owner": {"id": 458}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 7, "privilege": "business"}, "organization": {"id": 154, "owner": {"id": 216}, "user": {"role": "maintainer"}}}, "resource": {"id": 154, "owner": {"id": 252}, "organization": {"id": 310}, "project": {"owner": {"id": 411}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 47, "privilege": "business"}, "organization": {"id": 186, "owner": {"id": 267}, "user": {"role": "supervisor"}}}, "resource": {"id": 160, "owner": {"id": 227}, "organization": {"id": 186}, "project": {"owner": {"id": 409}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 99, "privilege": "business"}, "organization": {"id": 150, "owner": {"id": 233}, "user": {"role": "supervisor"}}}, "resource": {"id": 151, "owner": {"id": 275}, "organization": {"id": 371}, "project": {"owner": {"id": 466}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 56, "privilege": "business"}, "organization": {"id": 188, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 174, "owner": {"id": 263}, "organization": {"id": 188}, "project": {"owner": {"id": 454}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 64, "privilege": "business"}, "organization": {"id": 116, "owner": {"id": 262}, "user": {"role": "worker"}}}, "resource": {"id": 193, "owner": {"id": 253}, "organization": {"id": 320}, "project": {"owner": {"id": 418}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 65, "privilege": "business"}, "organization": {"id": 167, "owner": {"id": 215}, "user": {"role": null}}}, "resource": {"id": 191, "owner": {"id": 258}, "organization": {"id": 167}, "project": {"owner": {"id": 490}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_BUSINESS_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 4, "privilege": "business"}, "organization": {"id": 195, "owner": {"id": 220}, "user": {"role": null}}}, "resource": {"id": 188, "owner": {"id": 227}, "organization": {"id": 358}, "project": {"owner": {"id": 460}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 52, "privilege": "user"}, "organization": {"id": 114, "owner": {"id": 52}, "user": {"role": "owner"}}}, "resource": {"id": 171, "owner": {"id": 247}, "organization": {"id": 114}, "project": {"owner": {"id": 477}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 66, "privilege": "user"}, "organization": {"id": 119, "owner": {"id": 66}, "user": {"role": "owner"}}}, "resource": {"id": 147, "owner": {"id": 273}, "organization": {"id": 337}, "project": {"owner": {"id": 405}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 37, "privilege": "user"}, "organization": {"id": 162, "owner": {"id": 203}, "user": {"role": "maintainer"}}}, "resource": {"id": 147, "owner": {"id": 239}, "organization": {"id": 162}, "project": {"owner": {"id": 438}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 6, "privilege": "user"}, "organization": {"id": 139, "owner": {"id": 236}, "user": {"role": "maintainer"}}}, "resource": {"id": 118, "owner": {"id": 218}, "organization": {"id": 375}, "project": {"owner": {"id": 453}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 0, "privilege": "user"}, "organization": {"id": 115, "owner": {"id": 270}, "user": {"role": "supervisor"}}}, "resource": {"id": 127, "owner": {"id": 223}, "organization": {"id": 115}, "project": {"owner": {"id": 462}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 61, "privilege": "user"}, "organization": {"id": 173, "owner": {"id": 239}, "user": {"role": "supervisor"}}}, "resource": {"id": 144, "owner": {"id": 208}, "organization": {"id": 305}, "project": {"owner": {"id": 453}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 60, "privilege": "user"}, "organization": {"id": 192, "owner": {"id": 277}, "user": {"role": "worker"}}}, "resource": {"id": 172, "owner": {"id": 257}, "organization": {"id": 192}, "project": {"owner": {"id": 448}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 81, "privilege": "user"}, "organization": {"id": 158, "owner": {"id": 297}, "user": {"role": "worker"}}}, "resource": {"id": 116, "owner": {"id": 297}, "organization": {"id": 317}, "project": {"owner": {"id": 464}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 93, "privilege": "user"}, "organization": {"id": 141, "owner": {"id": 211}, "user": {"role": null}}}, "resource": {"id": 157, "owner": {"id": 285}, "organization": {"id": 141}, "project": {"owner": {"id": 419}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_USER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 49, "privilege": "user"}, "organization": {"id": 129, "owner": {"id": 250}, "user": {"role": null}}}, "resource": {"id": 179, "owner": {"id": 285}, "organization": {"id": 379}, "project": {"owner": {"id": 452}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 194, "owner": {"id": 56}, "user": {"role": "owner"}}}, "resource": {"id": 143, "owner": {"id": 269}, "organization": {"id": 194}, "project": {"owner": {"id": 485}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 3}, "user": {"role": "owner"}}}, "resource": {"id": 182, "owner": {"id": 211}, "organization": {"id": 321}, "project": {"owner": {"id": 490}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_TRUE { - allow with input as {"scope": "update", "auth": {"user": {"id": 82, "privilege": "worker"}, "organization": {"id": 115, "owner": {"id": 282}, "user": {"role": "maintainer"}}}, "resource": {"id": 198, "owner": {"id": 290}, "organization": {"id": 115}, "project": {"owner": {"id": 471}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 69, "privilege": "worker"}, "organization": {"id": 173, "owner": {"id": 296}, "user": {"role": "maintainer"}}}, "resource": {"id": 171, "owner": {"id": 210}, "organization": {"id": 324}, "project": {"owner": {"id": 479}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 96, "privilege": "worker"}, "organization": {"id": 160, "owner": {"id": 264}, "user": {"role": "supervisor"}}}, "resource": {"id": 106, "owner": {"id": 272}, "organization": {"id": 160}, "project": {"owner": {"id": 424}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 23, "privilege": "worker"}, "organization": {"id": 102, "owner": {"id": 235}, "user": {"role": "supervisor"}}}, "resource": {"id": 102, "owner": {"id": 215}, "organization": {"id": 384}, "project": {"owner": {"id": 468}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 56, "privilege": "worker"}, "organization": {"id": 110, "owner": {"id": 268}, "user": {"role": "worker"}}}, "resource": {"id": 126, "owner": {"id": 231}, "organization": {"id": 110}, "project": {"owner": {"id": 474}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 5, "privilege": "worker"}, "organization": {"id": 162, "owner": {"id": 202}, "user": {"role": "worker"}}}, "resource": {"id": 177, "owner": {"id": 241}, "organization": {"id": 351}, "project": {"owner": {"id": 475}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 3, "privilege": "worker"}, "organization": {"id": 167, "owner": {"id": 240}, "user": {"role": null}}}, "resource": {"id": 143, "owner": {"id": 255}, "organization": {"id": 167}, "project": {"owner": {"id": 453}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_WORKER_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 12, "privilege": "worker"}, "organization": {"id": 169, "owner": {"id": 221}, "user": {"role": null}}}, "resource": {"id": 148, "owner": {"id": 232}, "organization": {"id": 311}, "project": {"owner": {"id": 414}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 98, "privilege": "none"}, "organization": {"id": 111, "owner": {"id": 98}, "user": {"role": "owner"}}}, "resource": {"id": 136, "owner": {"id": 218}, "organization": {"id": 111}, "project": {"owner": {"id": 432}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_OWNER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 7, "privilege": "none"}, "organization": {"id": 178, "owner": {"id": 7}, "user": {"role": "owner"}}}, "resource": {"id": 139, "owner": {"id": 252}, "organization": {"id": 386}, "project": {"owner": {"id": 421}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 38, "privilege": "none"}, "organization": {"id": 149, "owner": {"id": 212}, "user": {"role": "maintainer"}}}, "resource": {"id": 123, "owner": {"id": 203}, "organization": {"id": 149}, "project": {"owner": {"id": 407}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_MAINTAINER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 33, "privilege": "none"}, "organization": {"id": 148, "owner": {"id": 215}, "user": {"role": "maintainer"}}}, "resource": {"id": 140, "owner": {"id": 218}, "organization": {"id": 352}, "project": {"owner": {"id": 441}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 76, "privilege": "none"}, "organization": {"id": 175, "owner": {"id": 230}, "user": {"role": "supervisor"}}}, "resource": {"id": 106, "owner": {"id": 225}, "organization": {"id": 175}, "project": {"owner": {"id": 496}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_SUPERVISOR_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 49, "privilege": "none"}, "organization": {"id": 114, "owner": {"id": 234}, "user": {"role": "supervisor"}}}, "resource": {"id": 163, "owner": {"id": 265}, "organization": {"id": 396}, "project": {"owner": {"id": 464}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 52, "privilege": "none"}, "organization": {"id": 108, "owner": {"id": 261}, "user": {"role": "worker"}}}, "resource": {"id": 107, "owner": {"id": 240}, "organization": {"id": 108}, "project": {"owner": {"id": 470}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_WORKER_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 2, "privilege": "none"}, "organization": {"id": 134, "owner": {"id": 270}, "user": {"role": "worker"}}}, "resource": {"id": 103, "owner": {"id": 252}, "organization": {"id": 381}, "project": {"owner": {"id": 429}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_TRUE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 97, "privilege": "none"}, "organization": {"id": 171, "owner": {"id": 283}, "user": {"role": null}}}, "resource": {"id": 175, "owner": {"id": 286}, "organization": {"id": 171}, "project": {"owner": {"id": 431}}}} -} - -test_scope_UPDATE_context_ORGANIZATION_ownership_NONE_privilege_NONE_membership_NONE_resource_project_same_org_FALSE { - not allow with input as {"scope": "update", "auth": {"user": {"id": 57, "privilege": "none"}, "organization": {"id": 110, "owner": {"id": 281}, "user": {"role": null}}}, "resource": {"id": 116, "owner": {"id": 238}, "organization": {"id": 372}, "project": {"owner": {"id": 452}}}} -} - - -# import csv -# import json -# import random -# from itertools import product -# -# NAME = "webhooks" -# -# -# def read_rules(name): -# rules = [] -# with open(f"{name}.csv") as f: -# reader = csv.DictReader(f) -# for row in reader: -# row = {k.lower(): v.lower().replace("n/a", "na") for k, v in row.items()} -# row["limit"] = row["limit"].replace("none", "None") -# found = False -# for col, val in row.items(): -# if col in ["limit", "method", "url", "resource"]: -# continue -# complex_val = [v.strip() for v in val.split(",")] -# if len(complex_val) > 1: -# found = True -# for item in complex_val: -# new_row = row.copy() -# new_row[col] = item -# rules.append(new_row) -# if not found: -# rules.append(row) -# return rules -# -# -# random.seed(42) -# simple_rules = read_rules(NAME) -# SCOPES = list({rule["scope"] for rule in simple_rules}) -# CONTEXTS = ["sandbox", "organization"] -# OWNERSHIPS = ["project:owner", "owner", "none"] -# GROUPS = ["admin", "business", "user", "worker", "none"] -# ORG_ROLES = ["owner", "maintainer", "supervisor", "worker", None] -# SAME_ORG = [True, False] -# -# -# def RESOURCES(scope): -# if scope == "list": -# return [None] -# elif scope == "create@project": -# return [ -# { -# "owner": {"id": random.randrange(100, 200)}, -# "assignee": {"id": random.randrange(200, 300)}, -# "organization": {"id": random.randrange(300, 400)}, -# "project": {"owner": {"id": random.randrange(400, 500)}}, -# "num_resources": count, -# } -# for count in (0, 3, 10) -# ] -# elif scope == "create@organization": -# return [ -# { -# "owner": {"id": random.randrange(100, 200)}, -# "assignee": {"id": random.randrange(200, 300)}, -# "organization": {"id": random.randrange(300, 400)}, -# "project": None, -# "num_resources": count, -# } -# for count in (0, 3, 10) -# ] -# else: -# return [ -# { -# "id": random.randrange(100, 200), -# "owner": {"id": random.randrange(200, 300)}, -# "organization": {"id": random.randrange(300, 400)}, -# "project": {"owner": {"id": random.randrange(400, 500)}}, -# } -# ] -# -# -# def is_same_org(org1, org2): -# if org1 is not None and org2 is not None: -# return org1["id"] == org2["id"] -# elif org1 is None and org2 is None: -# return True -# return False -# -# -# def eval_rule(scope, context, ownership, privilege, membership, data): -# if privilege == "admin": -# return True -# -# rules = list( -# filter( -# lambda r: scope == r["scope"] -# and (r["context"] == "na" or context == r["context"]) -# and (r["ownership"] == "na" or ownership == r["ownership"]) -# and ( -# r["membership"] == "na" -# or ORG_ROLES.index(membership) <= ORG_ROLES.index(r["membership"]) -# ) -# and GROUPS.index(privilege) <= GROUPS.index(r["privilege"]), -# simple_rules, -# ) -# ) -# -# resource = data["resource"] -# -# rules = list( -# filter( -# lambda r: not r["limit"] or eval(r["limit"], {"resource": resource}), rules -# ) -# ) -# if ( -# not is_same_org(data["auth"]["organization"], data["resource"]["organization"]) -# and context != "sandbox" -# ): -# return False -# return bool(rules) -# -# -# def get_data(scope, context, ownership, privilege, membership, resource, same_org): -# data = { -# "scope": scope, -# "auth": { -# "user": {"id": random.randrange(0, 100), "privilege": privilege}, -# "organization": { -# "id": random.randrange(100, 200), -# "owner": {"id": random.randrange(200, 300)}, -# "user": {"role": membership}, -# } -# if context == "organization" -# else None, -# }, -# "resource": resource, -# } -# -# user_id = data["auth"]["user"]["id"] -# -# if context == "organization": -# org_id = data["auth"]["organization"]["id"] -# if data["auth"]["organization"]["user"]["role"] == "owner": -# data["auth"]["organization"]["owner"]["id"] = user_id -# if same_org: -# data["resource"]["organization"]["id"] = org_id -# -# if ownership == "owner": -# data["resource"]["owner"]["id"] = user_id -# -# if ownership == "project:owner": -# data["resource"]["project"]["owner"]["id"] = user_id -# -# return data -# -# -# def _get_name(prefix, **kwargs): -# name = prefix -# for k, v in kwargs.items(): -# prefix = "_" + str(k) -# if isinstance(v, dict): -# if "id" in v: -# v = v.copy() -# v.pop("id") -# if v: -# name += _get_name(prefix, **v) -# else: -# name += "".join( -# map( -# lambda c: c if c.isalnum() else {"@": "_IN_"}.get(c, "_"), -# f"{prefix}_{str(v).upper()}", -# ) -# ) -# return name -# -# -# def get_name(scope, context, ownership, privilege, membership, resource, same_org): -# return _get_name("test", **locals()) -# -# -# def is_valid(scope, context, ownership, privilege, membership, resource, same_org): -# if context == "sandbox" and membership: -# return False -# if scope == "list" and ownership != "None": -# return False -# if context == "sandbox" and not same_org: -# return False -# if scope.startswith("create") and ownership != "None": -# return False -# -# return True -# -# -# def gen_test_rego(name): -# with open(f"{name}_test.gen.rego", "wt") as f: -# f.write(f"package {name}\n\n") -# for scope, context, ownership, privilege, membership, same_org in product( -# SCOPES, CONTEXTS, OWNERSHIPS, GROUPS, ORG_ROLES, SAME_ORG -# ): -# for resource in RESOURCES(scope): -# -# if not is_valid( -# scope, context, ownership, privilege, membership, resource, same_org -# ): -# continue -# -# data = get_data( -# scope, context, ownership, privilege, membership, resource, same_org -# ) -# test_name = get_name( -# scope, context, ownership, privilege, membership, resource, same_org -# ) -# result = eval_rule( -# scope, context, ownership, privilege, membership, data -# ) -# -# f.write( -# "{test_name} {{\n {allow} with input as {data}\n}}\n\n".format( -# test_name=test_name, -# allow="allow" if result else "not allow", -# data=json.dumps(data), -# ) -# ) -# -# -# gen_test_rego(NAME) -# \ No newline at end of file diff --git a/site/content/en/docs/contributing/running-tests.md b/site/content/en/docs/contributing/running-tests.md index c04b1caa..67078962 100644 --- a/site/content/en/docs/contributing/running-tests.md +++ b/site/content/en/docs/contributing/running-tests.md @@ -99,3 +99,30 @@ pytest ./tests/python --rebuild cd cvat-core yarn run test ``` + + + +## IAM and Open Policy Agent tests + +### Generate tests + +```bash +python cvat/apps/iam/rules/tests/generate_tests.py \ + --output-dir cvat/apps/iam/rules/ +``` + +### Run testing + +- In a Docker container +```bash +docker run --rm -v ${PWD}/cvat/apps/iam/rules:/rules \ + openpolicyagent/opa:0.34.2-rootless \ + test /rules -v +``` + +- or execute OPA directly +```bash +curl -L -o opa https://openpolicyagent.org/downloads/v0.34.2/opa_linux_amd64_static +chmod +x ./opa +./opa test cvat/apps/iam/rules +```